diff --git a/dist/index.es.js b/dist/index.es.js index 6718782..0d184a8 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -5141,7 +5141,10 @@ const br = (e, n) => n.map((s) => new RegExp(`\\[?${s}\\]?`)).some((s) => e.matc e.closed = !0; } } -}), ps = (e) => e.chat.history[e.chat.history.length - 1].id, Pr = (e) => e.chat, { +}), ps = (e) => { + var n; + return (n = e.chat.history[e.chat.history.length - 1]) == null ? void 0 : n.id; +}, Pr = (e) => e.chat, { setOutgoing: jr, setIncoming: rn, resetIncoming: hs, diff --git a/dist/index.es.js.map b/dist/index.es.js.map index 57f2d78..cec2add 100644 --- a/dist/index.es.js.map +++ b/dist/index.es.js.map @@ -1 +1 @@ -{"version":3,"file":"index.es.js","sources":["../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer-polyfill/index.js","../node_modules/process/browser.js","../node_modules/vite-plugin-node-polyfills/shims/dist/index.cjs","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/react-dom/client.js","../src/hooks/index.js","../src/store/initialState.js","../src/store/slices/config.js","../src/store/slices/meta.js","../node_modules/tailwind-variants/dist/chunk-T24HS5CV.js","../node_modules/tailwind-merge/dist/lib/tw-join.mjs","../node_modules/tailwind-merge/dist/lib/class-utils.mjs","../node_modules/tailwind-merge/dist/lib/lru-cache.mjs","../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs","../node_modules/tailwind-merge/dist/lib/config-utils.mjs","../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs","../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/from-theme.mjs","../node_modules/tailwind-merge/dist/lib/validators.mjs","../node_modules/tailwind-merge/dist/lib/default-config.mjs","../node_modules/tailwind-merge/dist/lib/merge-configs.mjs","../node_modules/tailwind-merge/dist/lib/extend-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/tw-merge.mjs","../node_modules/tailwind-variants/dist/index.js","../src/components/Layout/variants.js","../src/components/Layout/base.jsx","../src/components/Profile/variants.js","../src/components/Profile/index.jsx","../src/components/Layout/head.jsx","../node_modules/events/events.js","../src/config/socket.js","../src/config/roles.js","../src/config/intentions.js","../src/services/intentions.js","../src/store/slices/intentions.js","../src/components/Input/variants.js","../src/components/Input/basic.jsx","../src/components/Button/variants.js","../src/components/Button/basic.jsx","../src/components/Button/icon.jsx","../node_modules/uid/dist/index.mjs","../src/config/env.js","../src/utils/formatting.js","../src/utils/index.js","../src/store/slices/chat.js","../src/components/Form/response.jsx","../src/components/Form/email.jsx","../src/components/Payment/variants.js","../src/components/Payment/head.jsx","../src/components/Payment/btn.jsx","../src/components/Payment/close.jsx","../src/components/Payment/foot.jsx","../src/components/Payment/loader.jsx","../src/components/Payment/link.jsx","../src/components/Overlay/variants.js","../src/components/Overlay/index.jsx","../src/components/Scenes/payment.jsx","../src/services/tracking.js","../src/config/analytics.js","../src/components/Stream/variants.js","../src/components/Stream/ellipsis.jsx","../src/components/Layout/foot.jsx","../src/components/Stream/head.jsx","../src/components/Link/variants.js","../src/components/Link/basic.jsx","../src/config/patterns.js","../src/components/Stream/modifiers.jsx","../src/components/Stream/bubble.jsx","../src/components/Stream/row.jsx","../src/components/Stream/base.jsx","../src/components/Toggle/variants.js","../src/components/Toggle/index.jsx","../src/components/DevTools/variants.js","../src/components/DevTools/index.jsx","../src/components/AppBase/index.jsx","../node_modules/redux-persist/es/integration/react.js","../src/middleware/socket.js","../src/middleware/intentions.js","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/index.js","../src/utils/reactDevTools.js","../src/store/index.js","../src/main.jsx"],"sourcesContent":["'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";Object.defineProperty(exports,Symbol.toStringTag,{value:\"Module\"});const t=require(\"buffer-polyfill\"),r=require(\"process\"),o=e=>e&&e.__esModule?e:{default:e},l=o(r),u=globalThis||void 0||self;Object.defineProperty(exports,\"Buffer\",{enumerable:!0,get:()=>t.Buffer});Object.defineProperty(exports,\"process\",{enumerable:!0,get:()=>l.default});exports.global=u;\n//# sourceMappingURL=index.cjs.map\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","import { useLayoutEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\n// DEV NOTE: We prep the react-redux hooks to be aliased with types when we switch to TS\nexport const useAppDispatch = () => useDispatch();\nexport const useAppSelector = useSelector;\n\nexport const useWindowSize = () => {\n const [size, setSize] = useState([0, 0]);\n useLayoutEffect(() => {\n function updateSize() {\n setSize([window.innerWidth, window.innerHeight]);\n }\n window.addEventListener('resize', updateSize);\n updateSize();\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n return size;\n};\n","export const meta = {\n pd: null,\n cid: null,\n eid: null,\n systemType: null,\n marketing: {},\n};\n\nexport const config = {\n aiProfile: {\n name: null,\n role: null,\n imgSrc: null,\n initialMessage: '',\n displayInStream: false,\n },\n translations: {},\n themeId: null,\n chatUrl: null,\n enableDevTools: false,\n isPluginMode: false,\n};\n\nexport const chat = {\n outgoing: null,\n incoming: null,\n textToParse: '',\n history: [],\n status: null,\n error: null,\n isLoading: false,\n shouldSendUnsent: false,\n unsent: [],\n connected: false,\n closed: false,\n};\n\nexport const intentions = {\n email: {\n current: '',\n success: false,\n error: false,\n isFormVisible: false,\n isLoading: false,\n },\n response: {\n value: '',\n isFormVisible: false,\n isLoading: false,\n error: false,\n },\n payment: {\n isButtonVisible: false,\n isFormVisible: false,\n isSuccessful: false,\n error: false\n },\n messaging: {\n isVisible: false\n },\n link: {\n isVisible: false,\n href: null,\n text: ''\n }\n};\n\nexport default { meta, config, intentions, chat };\n","import { createSlice } from '@reduxjs/toolkit';\nimport { config as initialState } from '@/store/initialState';\n\nconst configSlice = createSlice({\n name: 'config',\n initialState,\n reducers: {\n setConfig(state, { payload }) {\n state.aiProfile = { ...initialState.aiProfile, ...payload.aiProfile };\n state.translations = { ...initialState.translations, ...payload.translations };\n state.themeId = payload.themeId;\n state.chatUrl = payload.chatUrl;\n },\n resetConfig(state) {\n state.aiProfile = initialState.aiProfile;\n state.themeId = initialState.themeId;\n state.translations = initialState.translations;\n state.chatUrl = initialState.chatUrl;\n },\n setTheme(state, { payload }) {\n state.themeId = payload;\n },\n resetTheme(state) {\n state.themeId = initialState.themeId;\n },\n setDevToolsStatus(state, { payload }) {\n state.enableDevTools = payload;\n },\n resetDevToolsStatus(state) {\n state.enableDevTools = initialState.enableDevTools;\n },\n togglePluginMode(state) {\n state.isPluginMode = !state.isPluginMode;\n },\n setTranslations(state, { payload }) {\n state.translations = { ...state.translations, ...payload };\n },\n }\n});\n\nexport const getConfig = ({ config }) => config;\nexport const getDevToolsStatus = ({ config }) => config.devToolsEnabled;\n\n// DEV NOTE: the createSlice function automatically create both action creator functions\nexport const {\n setConfig, resetConfig,\n setTheme, resetTheme,\n setDevToolsStatus, resetDevToolsStatus,\n togglePluginMode, setTranslations,\n} = configSlice.actions;\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\nimport { meta as initialState } from '@/store/initialState';\n\nconst configSlice = createSlice({\n name: 'meta',\n initialState,\n reducers: {\n setMeta(state, { payload }) {\n state.cid = payload.cid;\n state.eid = payload.eid;\n state.systemType = payload.systemType;\n state.pd = { ...payload.pd, ...state.pd };\n state.marketing = { ...payload.marketing, ...state.marketing };\n },\n resetMeta(state) {\n state.pd = initialState.pd;\n state.cid = initialState.cid;\n state.eid = initialState.eid;\n state.systemType = initialState.systemType;\n state.marketing = initialState.marketing;\n },\n setMarketing(state, { payload }) {\n state.marketing = { ...state.marketing, ...payload };\n },\n setPd(state, { payload }) {\n state.pd = { ...state.pd, ...payload };\n }\n }\n});\n\nexport const getMeta = state => state.meta;\nexport const { setMeta, resetMeta, setMarketing, setPd } = configSlice.actions;\nexport default configSlice.reducer;\n","var a=t=>typeof t==\"boolean\"?`${t}`:t===0?\"0\":t,l=t=>!t||typeof t!=\"object\"||Object.keys(t).length===0,u=(t,e)=>JSON.stringify(t)===JSON.stringify(e),x=t=>typeof t==\"boolean\";function i(t,e){t.forEach(function(n){Array.isArray(n)?i(n,e):e.push(n);});}function y(t){let e=[];return i(t,e),e}var g=(...t)=>y(t).filter(Boolean),p=(t,e)=>{let n={},c=Object.keys(t),f=Object.keys(e);for(let o of c)if(f.includes(o)){let s=t[o],r=e[o];typeof s==\"object\"&&typeof r==\"object\"?n[o]=p(s,r):n[o]=r+\" \"+s;}else n[o]=t[o];for(let o of f)c.includes(o)||(n[o]=e[o]);return n},k=t=>!t||typeof t!=\"string\"?t:t.replace(/\\s+/g,\" \").trim();\n\nexport { a, l as b, u as c, x as d, y as e, g as f, p as g, k as h };\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n var index = 0;\n var argument;\n var resolvedValue;\n var string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction toValue(mix) {\n if (typeof mix === 'string') {\n return mix;\n }\n var resolvedValue;\n var string = '';\n for (var k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\n\nexport { twJoin };\n//# sourceMappingURL=tw-join.mjs.map\n","var CLASS_PART_SEPARATOR = '-';\nfunction createClassUtils(config) {\n var classMap = createClassMap(config);\n var conflictingClassGroups = config.conflictingClassGroups,\n _config$conflictingCl = config.conflictingClassGroupModifiers,\n conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;\n function getClassGroupId(className) {\n var classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n }\n function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {\n var conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);\n }\n return conflicts;\n }\n return {\n getClassGroupId: getClassGroupId,\n getConflictingClassGroupIds: getConflictingClassGroupIds\n };\n}\nfunction getGroupRecursive(classParts, classPartObject) {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n var currentClassPart = classParts[0];\n var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n var classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(function (_ref) {\n var validator = _ref.validator;\n return validator(classRest);\n })?.classGroupId;\n}\nvar arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nfunction getGroupIdForArbitraryProperty(className) {\n if (arbitraryPropertyRegex.test(className)) {\n var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n}\n/**\n * Exported for testing only\n */\nfunction createClassMap(config) {\n var theme = config.theme,\n prefix = config.prefix;\n var classMap = {\n nextPart: new Map(),\n validators: []\n };\n var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(function (_ref2) {\n var classGroupId = _ref2[0],\n classGroup = _ref2[1];\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n}\nfunction processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {\n classGroup.forEach(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId: classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(function (_ref3) {\n var key = _ref3[0],\n classGroup = _ref3[1];\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n}\nfunction getPart(classPartObject, path) {\n var currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n}\nfunction isThemeGetter(func) {\n return func.isThemeGetter;\n}\nfunction getPrefixedClassGroupEntries(classGroupEntries, prefix) {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(function (_ref4) {\n var classGroupId = _ref4[0],\n classGroup = _ref4[1];\n var prefixedClassGroup = classGroup.map(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {\n var key = _ref5[0],\n value = _ref5[1];\n return [prefix + key, value];\n }));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n}\n\nexport { createClassMap, createClassUtils };\n//# sourceMappingURL=class-utils.mjs.map\n","// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nfunction createLruCache(maxCacheSize) {\n if (maxCacheSize < 1) {\n return {\n get: function get() {\n return undefined;\n },\n set: function set() {}\n };\n }\n var cacheSize = 0;\n var cache = new Map();\n var previousCache = new Map();\n function update(key, value) {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n }\n return {\n get: function get(key) {\n var value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set: function set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n}\n\nexport { createLruCache };\n//# sourceMappingURL=lru-cache.mjs.map\n","var IMPORTANT_MODIFIER = '!';\nfunction createSplitModifiers(config) {\n var separator = config.separator || ':';\n var isSeparatorSingleCharacter = separator.length === 1;\n var firstSeparatorCharacter = separator[0];\n var separatorLength = separator.length;\n // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n return function splitModifiers(className) {\n var modifiers = [];\n var bracketDepth = 0;\n var modifierStart = 0;\n var postfixModifierPosition;\n for (var index = 0; index < className.length; index++) {\n var currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers: modifiers,\n hasImportantModifier: hasImportantModifier,\n baseClassName: baseClassName,\n maybePostfixModifierPosition: maybePostfixModifierPosition\n };\n };\n}\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nfunction sortModifiers(modifiers) {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n var sortedModifiers = [];\n var unsortedModifiers = [];\n modifiers.forEach(function (modifier) {\n var isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());\n return sortedModifiers;\n}\n\nexport { IMPORTANT_MODIFIER, createSplitModifiers, sortModifiers };\n//# sourceMappingURL=modifier-utils.mjs.map\n","import { createClassUtils } from './class-utils.mjs';\nimport { createLruCache } from './lru-cache.mjs';\nimport { createSplitModifiers } from './modifier-utils.mjs';\n\nfunction createConfigUtils(config) {\n return {\n cache: createLruCache(config.cacheSize),\n splitModifiers: createSplitModifiers(config),\n ...createClassUtils(config)\n };\n}\n\nexport { createConfigUtils };\n//# sourceMappingURL=config-utils.mjs.map\n","import { sortModifiers, IMPORTANT_MODIFIER } from './modifier-utils.mjs';\n\nvar SPLIT_CLASSES_REGEX = /\\s+/;\nfunction mergeClassList(classList, configUtils) {\n var splitModifiers = configUtils.splitModifiers,\n getClassGroupId = configUtils.getClassGroupId,\n getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n var classGroupsInConflict = new Set();\n return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {\n var _splitModifiers = splitModifiers(originalClassName),\n modifiers = _splitModifiers.modifiers,\n hasImportantModifier = _splitModifiers.hasImportantModifier,\n baseClassName = _splitModifiers.baseClassName,\n maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;\n var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n var hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n hasPostfixModifier = false;\n }\n var variantModifier = sortModifiers(modifiers).join(':');\n var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n return {\n isTailwindClass: true,\n modifierId: modifierId,\n classGroupId: classGroupId,\n originalClassName: originalClassName,\n hasPostfixModifier: hasPostfixModifier\n };\n }).reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter(function (parsed) {\n if (!parsed.isTailwindClass) {\n return true;\n }\n var modifierId = parsed.modifierId,\n classGroupId = parsed.classGroupId,\n hasPostfixModifier = parsed.hasPostfixModifier;\n var classId = modifierId + classGroupId;\n if (classGroupsInConflict.has(classId)) {\n return false;\n }\n classGroupsInConflict.add(classId);\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {\n return classGroupsInConflict.add(modifierId + group);\n });\n return true;\n }).reverse().map(function (parsed) {\n return parsed.originalClassName;\n }).join(' ');\n}\n\nexport { mergeClassList };\n//# sourceMappingURL=merge-classlist.mjs.map\n","import { createConfigUtils } from './config-utils.mjs';\nimport { mergeClassList } from './merge-classlist.mjs';\nimport { twJoin } from './tw-join.mjs';\n\nfunction createTailwindMerge() {\n for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {\n createConfig[_key] = arguments[_key];\n }\n var configUtils;\n var cacheGet;\n var cacheSet;\n var functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n var firstCreateConfig = createConfig[0],\n restCreateConfig = createConfig.slice(1);\n var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {\n return createConfigCurrent(previousConfig);\n }, firstCreateConfig());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n var cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n var result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\n\nexport { createTailwindMerge };\n//# sourceMappingURL=create-tailwind-merge.mjs.map\n","function fromTheme(key) {\n var themeGetter = function themeGetter(theme) {\n return theme[key] || [];\n };\n themeGetter.isThemeGetter = true;\n return themeGetter;\n}\n\nexport { fromTheme };\n//# sourceMappingURL=from-theme.mjs.map\n","var arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nvar fractionRegex = /^\\d+\\/\\d+$/;\nvar stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nvar tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nvar lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\n// Shadow always begins with x and y offset separated by underscore\nvar shadowRegex = /^-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nfunction isLength(value) {\n return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);\n}\nfunction isArbitraryLength(value) {\n return getIsArbitraryValue(value, 'length', isLengthOnly);\n}\nfunction isArbitrarySize(value) {\n return getIsArbitraryValue(value, 'size', isNever);\n}\nfunction isArbitraryPosition(value) {\n return getIsArbitraryValue(value, 'position', isNever);\n}\nfunction isArbitraryUrl(value) {\n return getIsArbitraryValue(value, 'url', isUrl);\n}\nfunction isArbitraryNumber(value) {\n return getIsArbitraryValue(value, 'number', isNumber);\n}\n/**\n * @deprecated Will be removed in next major version. Use `isArbitraryNumber` instead.\n */\nvar isArbitraryWeight = isArbitraryNumber;\nfunction isNumber(value) {\n return !Number.isNaN(Number(value));\n}\nfunction isPercent(value) {\n return value.endsWith('%') && isNumber(value.slice(0, -1));\n}\nfunction isInteger(value) {\n return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);\n}\nfunction isArbitraryValue(value) {\n return arbitraryValueRegex.test(value);\n}\nfunction isAny() {\n return true;\n}\nfunction isTshirtSize(value) {\n return tshirtUnitRegex.test(value);\n}\nfunction isArbitraryShadow(value) {\n return getIsArbitraryValue(value, '', isShadow);\n}\nfunction getIsArbitraryValue(value, label, testValue) {\n var result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return result[1] === label;\n }\n return testValue(result[2]);\n }\n return false;\n}\nfunction isLengthOnly(value) {\n return lengthUnitRegex.test(value);\n}\nfunction isNever() {\n return false;\n}\nfunction isUrl(value) {\n return value.startsWith('url(');\n}\nfunction isIntegerOnly(value) {\n return Number.isInteger(Number(value));\n}\nfunction isShadow(value) {\n return shadowRegex.test(value);\n}\n\nexport { isAny, isArbitraryLength, isArbitraryNumber, isArbitraryPosition, isArbitraryShadow, isArbitrarySize, isArbitraryUrl, isArbitraryValue, isArbitraryWeight, isInteger, isLength, isNumber, isPercent, isTshirtSize };\n//# sourceMappingURL=validators.mjs.map\n","import { fromTheme } from './from-theme.mjs';\nimport { isAny, isLength, isTshirtSize, isArbitraryValue, isPercent, isArbitraryLength, isInteger, isArbitraryNumber, isNumber, isArbitraryPosition, isArbitrarySize, isArbitraryUrl, isArbitraryShadow } from './validators.mjs';\n\nfunction getDefaultConfig() {\n var colors = fromTheme('colors');\n var spacing = fromTheme('spacing');\n var blur = fromTheme('blur');\n var brightness = fromTheme('brightness');\n var borderColor = fromTheme('borderColor');\n var borderRadius = fromTheme('borderRadius');\n var borderSpacing = fromTheme('borderSpacing');\n var borderWidth = fromTheme('borderWidth');\n var contrast = fromTheme('contrast');\n var grayscale = fromTheme('grayscale');\n var hueRotate = fromTheme('hueRotate');\n var invert = fromTheme('invert');\n var gap = fromTheme('gap');\n var gradientColorStops = fromTheme('gradientColorStops');\n var gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n var inset = fromTheme('inset');\n var margin = fromTheme('margin');\n var opacity = fromTheme('opacity');\n var padding = fromTheme('padding');\n var saturate = fromTheme('saturate');\n var scale = fromTheme('scale');\n var sepia = fromTheme('sepia');\n var skew = fromTheme('skew');\n var space = fromTheme('space');\n var translate = fromTheme('translate');\n var getOverscroll = function getOverscroll() {\n return ['auto', 'contain', 'none'];\n };\n var getOverflow = function getOverflow() {\n return ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n };\n var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {\n return ['auto', isArbitraryValue, spacing];\n };\n var getSpacingWithArbitrary = function getSpacingWithArbitrary() {\n return [isArbitraryValue, spacing];\n };\n var getLengthWithEmpty = function getLengthWithEmpty() {\n return ['', isLength];\n };\n var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {\n return ['auto', isNumber, isArbitraryValue];\n };\n var getPositions = function getPositions() {\n return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n };\n var getLineStyles = function getLineStyles() {\n return ['solid', 'dashed', 'dotted', 'double', 'none'];\n };\n var getBlendModes = function getBlendModes() {\n return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];\n };\n var getAlign = function getAlign() {\n return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n };\n var getZeroAndEmpty = function getZeroAndEmpty() {\n return ['', '0', isArbitraryValue];\n };\n var getBreaks = function getBreaks() {\n return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n };\n var getNumber = function getNumber() {\n return [isNumber, isArbitraryNumber];\n };\n var getNumberAndArbitrary = function getNumberAndArbitrary() {\n return [isNumber, isArbitraryValue];\n };\n return {\n cacheSize: 500,\n theme: {\n colors: [isAny],\n spacing: [isLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumber(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmpty(),\n contrast: getNumber(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumber(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumber(),\n scale: getNumber(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n \"float\": [{\n \"float\": ['right', 'left', 'none']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [].concat(getPositions(), [isArbitraryValue])\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal'].concat(getAlign())\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal'].concat(getAlign(), ['baseline'])\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [].concat(getAlign(), ['baseline'])\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize, isArbitraryValue]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [].concat(getLineStyles(), ['wavy'])\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isArbitraryValue, isLength]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n \"break\": [{\n \"break\": ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [].concat(getPositions(), [isArbitraryPosition])\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryUrl]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [].concat(getLineStyles(), ['hidden'])\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: [''].concat(getLineStyles())\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isArbitraryValue, isLength]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmpty()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': getBlendModes()\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: ['appearance-none'],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {\n pan: ['x', 'left', 'right', 'y', 'up', 'down']\n }]\n }],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only']\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n}\n\nexport { getDefaultConfig };\n//# sourceMappingURL=default-config.mjs.map\n","/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nfunction mergeConfigs(baseConfig, configExtension) {\n for (var key in configExtension) {\n mergePropertyRecursively(baseConfig, key, configExtension[key]);\n }\n return baseConfig;\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);\nfunction mergePropertyRecursively(baseObject, mergeKey, mergeValue) {\n if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {\n baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);\n return;\n }\n if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {\n if (baseObject[mergeKey] === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n for (var nextKey in mergeValue) {\n mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);\n }\n }\n}\n\nexport { mergeConfigs };\n//# sourceMappingURL=merge-configs.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\nimport { mergeConfigs } from './merge-configs.mjs';\n\nfunction extendTailwindMerge(configExtension) {\n for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n createConfig[_key - 1] = arguments[_key];\n }\n return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {\n return mergeConfigs(getDefaultConfig(), configExtension);\n }].concat(createConfig));\n}\n\nexport { extendTailwindMerge };\n//# sourceMappingURL=extend-tailwind-merge.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\n\nvar twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\n\nexport { twMerge };\n//# sourceMappingURL=tw-merge.mjs.map\n","import { e, b, g, c, f, a, h } from './chunk-T24HS5CV.js';\nimport { twMerge, extendTailwindMerge } from 'tailwind-merge';\n\nvar re={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Z=s=>s||void 0,j=(...s)=>Z(e(s).filter(Boolean).join(\" \")),R=null,O={},q=!1,w=(...s)=>d=>d.twMerge?((!R||q)&&(q=!1,R=b(O)?twMerge:extendTailwindMerge(O)),Z(R(j(s)))):j(s),Y=(s,d)=>{for(let e in d)s.hasOwnProperty(e)?s[e]=j(s[e],d[e]):s[e]=d[e];return s},se=(s,d)=>{let{extend:e=null,slots:N={},variants:F={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:U={}}=s,m={...re,...d},M=e!=null&&e.base?j(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!b(e.variants)?g(F,e.variants):F,A=e!=null&&e.defaultVariants&&!b(e.defaultVariants)?{...e.defaultVariants,...U}:U;!b(m.twMergeConfig)&&!c(m.twMergeConfig,O)&&(q=!0,O=m.twMergeConfig);let $=b(N)?{}:{base:s==null?void 0:s.base,...N},h$1=b(e==null?void 0:e.slots)?$:Y({...e==null?void 0:e.slots},b($)?{base:s==null?void 0:s.base}:$),v=l=>{if(b(g$1)&&b(N)&&b(e==null?void 0:e.slots))return w(M,l==null?void 0:l.class,l==null?void 0:l.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The \"compoundVariants\" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The \"compoundSlots\" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n==\"string\")r=r.concat(h(n).split(\" \").map(c=>`${t}:${c}`));else if(Array.isArray(n))r=r.concat(n.reduce((c,f)=>c.concat(`${t}:${f}`),[]));else if(typeof n==\"object\"&&typeof i==\"string\"){for(let c in n)if(n.hasOwnProperty(c)&&c===i){let f=n[c];if(f&&typeof f==\"string\"){let o=h(f);r[i]?r[i]=r[i].concat(o.split(\" \").map(u=>`${t}:${u}`)):r[i]=o.split(\" \").map(u=>`${t}:${u}`);}else Array.isArray(f)&&f.length>0&&(r[i]=f.reduce((o,u)=>o.concat(`${t}:${u}`),[]));}}return r},W=(t,n=g$1,a$1=null,i=null)=>{var I;let r=n[t];if(!r||b(r))return null;let c=(I=i==null?void 0:i[t])!=null?I:l==null?void 0:l[t];if(c===null)return null;let f=a(c),o=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=A==null?void 0:A[t],b$1=[];if(typeof f==\"object\"&&o)for(let[T,J]of Object.entries(f)){let te=r[J];if(T===\"initial\"){u=J;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(T)||(b$1=K(T,te,b$1,a$1));}let S=r[f]||r[a(u)];return typeof b$1==\"object\"&&typeof a$1==\"string\"&&b$1[a$1]?Y(b$1,S):b$1.length>0?(b$1.push(S),b$1):S},x=()=>g$1?Object.keys(g$1).map(t=>W(t,g$1)):null,P=(t,n)=>{if(!g$1||typeof g$1!=\"object\")return null;let a=new Array;for(let i in g$1){let r=W(i,g$1,t,n),c=t===\"base\"&&typeof r==\"string\"?r:r&&r[t];c&&(a[a.length]=c);}return a},z={};for(let t in l)l[t]!==void 0&&(z[t]=l[t]);let D=(t,n)=>{var i;let a=typeof(l==null?void 0:l[t])==\"object\"?{[t]:(i=l[t])==null?void 0:i.initial}:{};return {...A,...z,...a,...n}},G=(t=[],n)=>{let a=[];for(let{class:i,className:r,...c}of t){let f=!0;for(let[o,u]of Object.entries(c)){let b=D(o,n);if(Array.isArray(u)){if(!u.includes(b[o])){f=!1;break}}else if(b[o]!==u){f=!1;break}}f&&(i&&a.push(i),r&&a.push(r));}return a},H=t=>{let n=G(C,t),a=G(e==null?void 0:e.compoundVariants,t);return f(a,n)},p=t=>{let n=H(t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i==\"string\"&&(a.base=w(a.base,i)(m)),typeof i==\"object\")for(let[r,c]of Object.entries(i))a[r]=w(a[r],c)(m);return a},ee=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...c}of V){if(!b(c)){let f=!0;for(let o of Object.keys(c)){let u=D(o,t)[o];if(u===void 0||(Array.isArray(c[o])?!c[o].includes(u):c[o]!==u)){f=!1;break}}if(!f)continue}for(let f of a)n[f]=n[f]||[],n[f].push([i,r]);}return n};if(!b(N)||!b(e==null?void 0:e.slots)){let t={};if(typeof h$1==\"object\"&&!b(h$1))for(let n of Object.keys(h$1))t[n]=a=>{var i,r;return w(h$1[n],P(n,a),((i=p(a))!=null?i:[])[n],((r=ee(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return w(M,x(),H(),l==null?void 0:l.class,l==null?void 0:l.className)(m)},_=()=>{if(!(!g$1||typeof g$1!=\"object\"))return Object.keys(g$1)};return v.variantKeys=_(),v.extend=e,v.base=M,v.slots=h$1,v.variants=g$1,v.defaultVariants=A,v.compoundSlots=V,v.compoundVariants=C,v},fe=s=>(d,e)=>se(d,e?g(s,e):s);\n\nexport { w as cn, j as cnBase, fe as createTV, re as defaultConfig, se as tv, Z as voidEmpty };\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const layoutBase = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full',\n wrapper: 'tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-lumina',\n wrapper: 'tw--bg-light-whisper tw--text-light-zephyr-100',\n },\n dark: {\n base: 'tw--bg-dark-lumina',\n wrapper: 'tw--bg-dark-whisper tw--text-white',\n }\n },\n minimized: {\n true: 'tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md'\n }\n },\n});\n\nexport const layoutHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0]',\n },\n variants: {\n theme: {\n light: 'tw--shadow-light-zephyr-200',\n dark: 'tw--shadow-dark-zephyr-200',\n },\n },\n});\n\nexport const layoutFoot = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]',\n input: 'tw--flex-1 tw--pr-2',\n button: 'tw--flex tw--grow-0',\n },\n});\n\nexport default { layoutBase, layoutHead, layoutFoot };\n","import { node } from 'prop-types';\nimport { useAppSelector, useWindowSize } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { layoutBase as variant } from './variants';\n\nexport const LayoutBase = ({ head, stream, foot }) => {\n const { themeId: theme, isPluginMode } = useAppSelector(getConfig);\n const { base, wrapper } = variant({ theme });\n const [_, height] = useWindowSize();\n\n return (\n \n
\n { head }\n { stream }\n { foot }\n
\n
\n );\n};\n\nLayoutBase.propTypes = {\n head: node.isRequired,\n stream: node.isRequired,\n foot: node.isRequired,\n};\n\nexport default LayoutBase;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const profile = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--select-none',\n avatar: 'tw--rounded-full',\n info: '',\n name: '',\n role: '',\n imgWrapper: ''\n },\n variants: {\n theme: {\n light: {\n role: '',\n },\n dark: {\n role: '',\n },\n },\n orientation: {\n horizontal: {\n base: 'tw--flex-row tw--text-left',\n avatar: 'tw--shrink',\n name: 'tw--text-xl/7 tw--font-bold tw--leading-[30px]',\n info: 'tw--pl-[10px]'\n },\n vertical: {\n base: 'tw--flex-col tw--text-center',\n name: 'tw--text-[24px] tw--font-semibold',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'light',\n class: 'tw--text-light-zephyr-600 tw--font-medium'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'light',\n class: 'tw--text-light-zephyr-800'\n },\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-600'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-800'\n },\n {\n slots: ['imgWrapper'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots' },\n {\n slots: ['avatar'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--h-[50px]',\n },\n {\n slots: ['avatar'],\n orientation: 'vertical',\n minimized: false,\n class: 'tw--h-[60px]',\n },\n ],\n});\n\nexport default profile;\n","import { string, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { profile as variant } from './variants';\n\nexport const Profile = ({ orientation = 'horizontal', minimized = false }) => {\n const { aiProfile, themeId: theme } = useAppSelector(getConfig);\n const { base, avatar, info, name, role, imgWrapper } = variant({ theme, orientation, minimized });\n\n return (\n
\n \n \n \n
\n
{ aiProfile.name }
\n
{ aiProfile.role }
\n
\n
\n );\n};\n\nProfile.propTypes = {\n orientation: string,\n minimized: bool,\n};\n\nexport default Profile;\n","import { useAppSelector } from '@/hooks';\n\nimport { Profile } from '@/components/Profile';\nimport { getConfig } from '@/store/slices/config';\nimport { layoutHead as variant } from './variants';\n\nexport const LayoutHead = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n
\n \n
\n );\n};\n\nexport default LayoutHead;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","export const config = {\n transports: ['websocket'],\n upgrade: false,\n pingInterval: 1000 * 60 * 5,\n pingTimeout: 1000 * 60 * 3,\n secure: true,\n reconnect: true,\n};\n\n// DEV Note: TS Enum\nexport const events = {\n chat: 'chat',\n chatHistory: 'chat-history',\n connect: 'connect',\n error: 'error',\n disconnect: 'disconnect',\n streamStart: 'stream-start',\n streamData: 'stream-data',\n streamEnd: 'stream-end',\n streamError: 'stream-error',\n};\n\nexport default { config, events };\n","export const roles = {\n user: 'user',\n assistant: 'assistant',\n};\n\nexport default roles;\n","// DEV Note: TS Enum\nexport const intentions = {\n email: 'email_intent',\n payment: 'payment_intent',\n emailError: 'email_validation_error',\n emailSuccess: 'email_validation_success',\n destroy: 'payment_intent_destroy'\n};\n\nexport default { intentions };\n","import { EventEmitter } from 'node:events';\n\nimport { intentions } from '@/config';\n\nexport const intent = {\n type: intentions,\n core: new EventEmitter()\n};\n\nexport default intent;\n","import { createSlice } from '@reduxjs/toolkit';\nimport { intentions as initialState } from '../initialState';\n\nconst intentionsSlice = createSlice({\n name: 'intentions',\n initialState,\n reducers: {\n setEmail(state, { payload }) {\n state.email.current = payload;\n },\n setEmailSuccess(state, { payload }) {\n state.email.success = payload;\n },\n setEmailError(state, { payload }) {\n state.email.error = payload;\n },\n setIsEmailLoading(state, { payload }) {\n state.email.isLoading = payload;\n },\n setIsEmailFormVisible(state, { payload }) {\n state.email.isFormVisible = payload;\n },\n setIsPaymentButtonVisible(state, { payload }) {\n state.payment.isButtonVisible = payload;\n },\n setPaymentFormVisibility(state, { payload }) {\n state.payment.isFormVisible = payload;\n },\n setIsPaymentSuccessful(state, { payload }) {\n state.payment.isSuccessful = payload;\n },\n setPaymentIntentError(state, { payload }) {\n state.payment.error = payload;\n },\n setLink(state, { payload }) {\n state.link = { ...state.link, ...payload };\n },\n // Response Form reducers\n setResponse(state, { payload }) {\n state.response.value = payload;\n },\n setResponseFormVisibility(state, { payload }) {\n if (payload.isFormVisible !== undefined) {\n state.response.isFormVisible = payload.isFormVisible;\n return;\n }\n state.response.isFormVisible = !payload.intentions.link.isVisible && !payload.intentions.email.isFormVisible && !payload.intentions.payment.isFormVisible && !payload.intentions.payment.isButtonVisible && payload.options.length === 0;\n },\n setResponseLoadingStatus(state, { payload }) {\n state.response.isLoading = payload;\n },\n }\n});\n\nexport const getEmailIntentions = state => state.intentions.email;\nexport const getPaymentIntentions = state => state.intentions.payment;\nexport const getLinkIntentions = state => state.intentions.link;\nexport const getResponseIntentions = state => state.intentions.response;\n\nexport const { setEmail, setEmailSuccess,\n setIsPaymentSuccessful, setPaymentFormVisibility,\n setEmailError, setIsEmailLoading,\n setIsEmailFormVisible, setIsPaymentButtonVisible,\n setLink, setResponse, setResponseFormVisibility,\n setResponseLoadingStatus, setPaymentIntentError\n} = intentionsSlice.actions;\n\nexport default intentionsSlice.reducer;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--relative tw--flex tw--items-center',\n input: 'tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none',\n loader: 'tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]',\n spin: 'tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto'\n },\n variants: {\n theme: {\n light: {\n base: '',\n input: 'tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold',\n loader: '',\n spin: 'tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600',\n },\n dark: {\n base: '',\n input: 'tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold',\n loader: '',\n spin: 'w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600',\n },\n },\n },\n});\n\nexport default basic;\n","import { string, func, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Input = ({ type, ref = null, placeholder = '', onChange = null, onKeyUp = null, isLoading = false, value = null, e2e = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, input, loader, spin } = variant({ theme });\n\n return (\n
\n \n\n { isLoading && (\n \n \n \n ) }\n
\n );\n};\n\nInput.propTypes = {\n type: string.isRequired,\n ref: string,\n value: string,\n placeholder: string,\n onChange: func,\n onKeyUp: func,\n isLoading: bool,\n e2e: string,\n};\n\nexport default Input;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glazeBg tw--text-light-glazeText tw--border-light-seraph tw--font-medium',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText tw--border-dark-glaze',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--text-[inherit]',\n },\n variants: {\n theme: {\n light: { base: 'tw--text-light-status' },\n dark: { base: 'tw--text-dark-seraph' },\n },\n outlined: {\n true: 'tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow',\n false: 'tw--bg-[transparent]',\n },\n },\n});\n","import { string, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Btn = ({ text = null, onClick = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n { text }\n \n );\n};\n\nBtn.propTypes = {\n text: string.isRequired,\n onClick: func,\n};\n\nexport default Btn;\n","import { element, bool, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { icon as variant } from './variants';\n\n// eslint-disable-next-line react/prop-types\nexport const IconBtn = ({ children, outlined = false, onClick = null, e2e = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme, outlined });\n\n return (\n \n { children }\n \n );\n};\n\nIconBtn.propTypes = {\n children: element.isRequired, // DEV NOTE: this explicitly validates for a single child to be passed\n outlined: bool,\n onClick: func,\n};\n\nexport default IconBtn;\n","var IDX=256, HEX=[], SIZE=256, BUFFER;\nwhile (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);\n\nexport function uid(len) {\n\tvar i=0, tmp=(len || 11);\n\tif (!BUFFER || ((IDX + tmp) > SIZE*2)) {\n\t\tfor (BUFFER='',IDX=0; i < SIZE; i++) {\n\t\t\tBUFFER += HEX[Math.random() * 256 | 0];\n\t\t}\n\t}\n\n\treturn BUFFER.substring(IDX, IDX++ + tmp);\n}\n","// DEV Note: will be depricated, replace with env vars\nexport const STORAGE_KEY = 'history';\nexport const CHAT_SEEN_KEY = 'chatSeen';\nexport const ALREADY_REGISTERED_KEY = 'showAlreadyRegisteredUser';\nexport const SHOW_PAYMENT_BUTTON_KEY = 'showPaymentButton';\nexport const SOCKET_IO_URL = 'http://localhost:5000';\nexport const UNSENT_MESSAGES_KEY = 'unsent';\nexport const GO_THROUGH_QUIZ_KEY = 'hasToGoThroughQuiz';\nexport const EXISTING_PRODUCT_LINK_KEY = 'existingProductLink';\nexport const CID = 'cid';\n","import { dateFormattingOptions } from '../config';\nimport { CHAT_SEEN_KEY, CID } from '../config/env';\n// eslint-disable-next-line import/prefer-default-export\n\n/**\n * Extracts options from a string enclosed in square brackets.\n *\n * @param {string} val - The input string possibly containing options enclosed in square brackets.\n * @returns {Object} An object containing the content with options removed and an array of extracted options.\n * @property {string} message - The content with options removed.\n * @property {Array<{id: string, label: string, value: string}>} options - An array of extracted options as objects.\n */\nexport const extractOptionSet = (val) => {\n const match = /\\[(.*?)\\]/.exec(val);\n\n if (!match || match.length <= 1) {\n return { content: val, options: [] };\n }\n\n return {\n content: val.replace(match[0], ''),\n options: match[1].split('|').map((item, index) => ({ id: `opt-${index}`, label: item, value: item })),\n };\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {string} val - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport const formatDateByLocale = (val, locale = undefined, options = dateFormattingOptions) => {\n const date = new Date(val);\n const formattedDate = date.toLocaleDateString(locale, options);\n\n return formattedDate;\n};\n\n/**\n * Extracts a link from a given string and appends query parameters if specified.\n *\n * @param {string} val - The input string from which the link will be extracted.\n * @param {string} userId - The user ID used for query parameter construction.\n * @example constructLink('here is a link to a diet website https://usa.example.com', '12311231a2', hasQueryParams('https://usa.example.com'));\n * //output: https://usa.example.com/?utm_chat=salesmen-keto-redirect&chatSeen=true&cid=12311231a2\n * @returns {string|boolean} The extracted link with optional query parameters or `false` if no link is found.\n */\nexport const constructLink = (val) => {\n const hasQueryParams = (url) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n };\n\n // matching example: 'Secure site: https://www.example.com' will give [ https://www.example.com ]\n const REGEX_URL = /\\b((?:https?:\\/\\/|www\\.)[^\\s/$.?#][^\\s{}[\\]()<>]*)\\b/gi;\n let search = '';\n\n if (window.location.search) {\n search = new URLSearchParams(window.location.search);\n\n search.append(CHAT_SEEN_KEY, 'true');\n search.append(CID, localStorage.getItem('__cid'));\n search = '/?' + search;\n }\n\n // Extract the link from the string\n const matches = val.match(REGEX_URL);\n const link = matches ? matches[0] : '';\n\n if (!link) {\n return false;\n }\n\n if (hasQueryParams(link)) {\n return link;\n }\n\n return link + search;\n};\n","/**\n * @description Check if value is of type 'null'\n * @param val\n * @returns {boolean}\n */\nexport const isNull = val => val === null;\n\n/**\n * @description Check if value is of type 'array'\n * @param val\n * @returns {boolean}\n */\nexport const isArr = val => Array.isArray(val);\n\n/**\n * @description Check if value is of type 'object'\n * @param val\n * @returns {boolean}\n */\nexport const isObj = val => typeof val === 'object' && !isArr(val) && !isNull(val);\n\n/**\n * @description Check if value is of type 'number'\n * @param val\n * @returns {boolean}\n */\n// eslint-disable-next-line no-restricted-globals\nexport const isNum = val => typeof val === 'number' && !isNaN(val);\n\n/**\n * @description Check if value is of type 'function'\n * @param val\n * @returns {boolean}\n */\nexport const isFunc = val => typeof val === 'function';\n\n/**\n * @description Check if value is of type 'string'\n * @param val\n * @returns {boolean}\n */\nexport const isStr = val => typeof val === 'string';\n\n/**\n * @description Check if value is of type 'undefined'\n * @param val\n * @returns {boolean}\n */\nexport const isUndef = val => typeof val === 'undefined';\n\n/**\n * @description Check if value is of type 'boolean'\n * @param val\n * @returns {boolean}\n */\nexport const isBool = val => typeof val === 'boolean';\n\n/**\n * @description Is non empty string\n * @param val\n * @returns {boolean|boolean}\n */\nexport const isNonEmptyStr = val => isStr(val) && val !== '';\n\n/**\n * @description Is non empty array\n * @param val\n * @returns {boolean|boolean}\n */\nexport const isNonEmptyArr = val => isArr(val) && val.length > 0;\n\n/**\n * @description To int\n * @param val\n * @returns {number}\n */\nexport const toInt = val => parseInt(val, 10);\n\n/**\n * @description Check if object has property\n * @param obj\n * @param prop\n * @returns {boolean}\n */\nexport const hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\n\n/**\n * @description Check if object has method\n * @param obj\n * @param method\n * @returns {boolean}\n */\nexport const hasMethod = (obj, method) => hasProp(obj, method) && isFunc(obj[method]);\n\n/**\n * @description Get object keys\n * @param obj\n * @returns {Array}\n */\nexport const getKeys = obj => Object.keys(obj);\n\n/**\n * @description Check if object has key\n * @param obj\n * @param key\n * @returns {boolean}\n */\nexport const hasKey = (obj, key) => getKeys(obj).indexOf(key) > -1;\n\n/**\n * @description Has keys\n * @param obj\n * @returns {boolean}\n */\nexport const hasKeys = obj => getKeys(obj).length > 0;\n\n/**\n * @description Iterate over each key of an object\n * @param obj\n * @param callback\n */\nexport const eachKey = (obj, callback) => {\n Object.keys(obj).forEach((key, index) => callback(key, obj[key], index));\n};\n\n/**\n * @description Linear iterator for object properties\n * @param obj\n * @param callback\n */\nexport const eachProp = (obj, callback) => {\n eachKey(obj, (key, prop, index) => callback(prop, key, index));\n};\n\n/**\n * @description Extract nested prop\n * @param obj\n * @param keysText\n * @returns {*}\n */\nexport const extractNestedProp = (obj, keysText) => {\n const keys = keysText.split('.');\n const keysLength = keys.length - 1;\n let keysIndex = 0;\n let isValidKey = true;\n let targetObj = { ...obj };\n let targetProp;\n let nextTarget;\n\n if (keys.length > 0) {\n while (isValidKey) {\n nextTarget = targetObj[keys[keysIndex]];\n\n if (keysIndex === keysLength) {\n targetProp = !isUndef(nextTarget) && !isNull(nextTarget)\n ? nextTarget\n : undefined;\n break;\n }\n\n if (!isObj(nextTarget)) {\n isValidKey = false;\n break;\n }\n\n targetObj = nextTarget;\n keysIndex += 1;\n }\n }\n\n return targetProp;\n};\n\n/**\n * @description Debounce\n * @returns {function}\n */\nexport const debounce = ({ timeout, id }) => {\n const timers = {};\n\n return callback => {\n if (timers[id]) {\n clearTimeout(timers[id]);\n }\n timers[id] = setTimeout(callback, timeout);\n };\n};\n\n/**\n * @description Hide page scroll\n */\nexport const hidePageScroll = () => {\n document.documentElement.classList.add('hide-scroll');\n};\n\n/**\n * @description Show page scroll\n */\nexport const showPageScroll = () => {\n document.documentElement.classList.remove('hide-scroll');\n};\n\n/**\n * Checks if a URL contains query parameters.\n *\n * @param {string} url - The URL to check for query parameters.\n * @returns {boolean} `true` if the URL contains query parameters, `false` otherwise.\n */\nexport const hasQueryParams = (url) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n};\n\n/**\n * Retrieves certain query parameter from a URL.\n *\n * @example getQueryParam(window.location.search, 'utm_chat')\n * @param {string} url\n * @param {string} param\n */\nexport const getQueryParam = (url, param) => {\n const urlParams = new URLSearchParams(url);\n\n return urlParams.get(param);\n};\n\n/**\n * Checks if 24 hours have passed since the given date.\n *\n * @function isExpired\n * @param {string} date - The date to compare in ISO 8601 format (e.g., \"2023-07-04T14:11:00.097Z\").\n * @returns {boolean} Returns true if 24 hours have passed since the given date, or false otherwise.\n */\nexport const isExpired = (date, maxHours = 24) => {\n const currentDate = new Date();\n const givenDate = new Date(date);\n const elapsedMilliseconds = currentDate - givenDate;\n const elapsedHours = elapsedMilliseconds / (1000 * 60 * 60); // Convert milliseconds to hours\n\n return elapsedHours >= maxHours;\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {string} dateString - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport function formatDateByLocale(dateString) {\n const date = new Date(dateString);\n\n const options = {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n };\n\n const formattedDate = date.toLocaleDateString(undefined, options);\n\n return `${formattedDate}`.toUpperCase();\n}\n\nexport const checkForSpecialPhrases = (string, specialMessages) => {\n const specialRegex = specialMessages.map(keyword => new RegExp(`\\\\[?${keyword}\\\\]?`));\n return specialRegex.some(regex => string.match(regex));\n};\n","import { createSlice } from '@reduxjs/toolkit';\nimport { uid } from 'uid';\nimport { chat as initialState } from '@/store/initialState';\nimport { extractOptionSet } from '@/utils/formatting';\nimport { getQueryParam } from '@/utils';\nimport { roles } from '@/config';\n\nconst configSlice = createSlice({\n name: 'chat',\n initialState,\n reducers: {\n setOutgoing(state, { payload }) {\n state.outgoing = {\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: localStorage.getItem('__cid'),\n role: roles.user,\n message: payload,\n };\n },\n resetOutgoing(state) {\n state.outgoing = initialState.outgoing;\n },\n setIncoming(state, { payload }) {\n state.incoming = {\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: localStorage.getItem('__cid'),\n role: roles.assistant,\n content: payload,\n };\n },\n setError(state, { payload }) {\n state.error = payload;\n },\n resetError(state) {\n state.error = initialState.error;\n },\n resetIncoming(state) {\n state.incoming = initialState.incoming;\n },\n addIncomingChunk(state, { payload }) {\n state.incoming = {\n ...state.incoming,\n content: state.incoming.content + payload.chunk,\n };\n },\n setHistory(state, { payload }) {\n state.history = payload.map((item) => ({ ...item, id: uid(), role: item.role, ...extractOptionSet(item.content) }));\n },\n appendHistory(state, { payload }) {\n let bubbleContent;\n\n if (payload.role === roles.assistant) {\n if (payload.options && payload.options.length > 0) {\n bubbleContent = { content: payload.content, options: payload.options, isSpecial: payload.isSpecial };\n } else {\n bubbleContent = { ...extractOptionSet(payload.content), isSpecial: payload.isSpecial };\n }\n }\n\n if (payload.role === roles.user) {\n bubbleContent = { content: payload.content };\n }\n\n state.history.push({ id: uid(), ...bubbleContent, role: payload.role });\n },\n resetHistory(state) {\n state.history = initialState.history;\n },\n setTextToParse(state, { payload }) {\n state.textToParse += payload;\n },\n resetTextToParse(state) {\n state.textToParse = initialState.textToParse;\n },\n setIsLoading(state) {\n state.isLoading = true;\n },\n resetIsLoading(state) {\n state.isLoading = initialState.isLoading;\n },\n appendUnsent(state, { payload }) {\n state.unsent = [...state.unsent, payload];\n },\n resetUnsent(state) {\n state.unsent = initialState.unsent;\n },\n setShouldSendUnsent(state, { payload }) {\n state.shouldSendUnsent = payload;\n },\n setConnected(state, { payload }) {\n state.connected = payload;\n },\n setClosed(state) {\n state.closed = true;\n },\n },\n});\n\nexport const getCurrentPointer = (state) => state.chat.history[state.chat.history.length - 1].id;\nexport const getStream = state => state.chat;\n\nexport const { setOutgoing, setIncoming,\n resetIncoming, addIncomingChunk,\n resetOutgoing, setHistory, resetHistory,\n appendHistory, setTextToParse, resetTextToParse,\n setIsLoading, resetIsLoading, appendUnsent, resetUnsent,\n setShouldSendUnsent, setError, resetError,\n setConnected, setClosed\n} = configSlice.actions;\n\nexport default configSlice.reducer;\n","import { useState } from 'react';\nimport { getResponseIntentions } from '@/store/slices/intentions';\nimport { getConfig } from '@/store/slices/config';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { Input } from '@/components/Input';\nimport { IconBtn } from '@/components/Button';\n\nimport { appendUnsent, setShouldSendUnsent } from '@/store/slices/chat';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const ResponseForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getResponseIntentions);\n const { base, input, button } = variant({ theme });\n const [response, setCurrentResponse] = useState('');\n const [timerId, setTimerId] = useState(null);\n\n const handleInputChange = (e) => {\n setCurrentResponse(e.target.value);\n setTimerToSendMessage();\n };\n\n const handleFormSubmit = (e) => {\n e.preventDefault();\n\n if (response.trim()) {\n dispatch(appendUnsent(response));\n }\n\n setCurrentResponse('');\n setTimerToSendMessage();\n };\n\n const setTimerToSendMessage = () => {\n clearTimeout(timerId);\n const currentId = setTimeout(() => {\n dispatch(setShouldSendUnsent(true));\n }, 3000);\n setTimerId(currentId);\n };\n\n return (\n
\n
\n \n
\n
\n \n \n \n \n \n
\n
\n );\n};\n\nexport default ResponseForm;\n","import { useState } from 'react';\nimport { intent } from '@/services/intentions';\nimport { getEmailIntentions, setEmail, setIsEmailLoading } from '@/store/slices/intentions';\nimport { getConfig } from '@/store/slices/config';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { Input } from '@/components/Input';\nimport { IconBtn } from '@/components/Button';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const EmailForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme, translations } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getEmailIntentions);\n const { base, input, button } = variant({ theme });\n const [email, setCurrentEmail] = useState('');\n\n const handleInputChange = (e) => {\n const currentValue = e.target.value.trim();\n setCurrentEmail(currentValue);\n };\n\n const handleFormSubmit = (e) => {\n e.preventDefault();\n\n if (email === '') {\n return;\n }\n\n dispatch(setIsEmailLoading(true));\n dispatch(setEmail(email));\n intent.core.emit(intent.type.email, { email });\n setCurrentEmail('');\n };\n\n return (\n
\n
\n \n
\n
\n \n \n \n \n \n
\n
\n );\n};\n\nexport default EmailForm;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const payment = /*tw*/ tv({\n slots: {\n btn: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]',\n\n link: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl',\n }\n});\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50',\n },\n variants: {\n theme: {\n light: 'tw--bg-light-lumina',\n dark: 'tw--bg-dark-lumina'\n }\n }\n});\n\nexport const head = /*tw*/ tv({\n slots: {\n wrapper: 'tw--flex tw--justify-between tw--w-full tw--mb-7',\n left: 'tw--flex tw--flex-col',\n leftTop: 'tw--flex tw--flex-row',\n icon: 'tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]',\n text: 'tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue',\n bottom: 'tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue',\n right: 'tw--flex tw--flex-col tw--items-end',\n price: 'tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]',\n info: 'tw--leading-[2] tw--text-[10px] tw--text-muted-blue',\n },\n});\n\nexport const close = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue',\n },\n});\n\nexport const foot = tv({\n slots: {\n base: 'tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold',\n icon: 'tw--mr-[5px]'\n },\n});\n\nexport const loader = tv({\n slots: {\n wrapper: 'loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5',\n inner: 'tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center',\n dots: 'tw--relative tw--flex tw--items-center tw--justify-center tw--p-3',\n dotsIn: 'tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full',\n progressCheckmark: 'tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center',\n panelTitle: 'js-payment-message tw--text-lg tw--font-bold tw--leading-5',\n icon: 'tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full',\n spinningTexts: 'tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]',\n filmContainer: 'js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center',\n film: 'tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72'\n },\n variants: {\n theme: {\n light: {\n wrapper: 'tw--shadow-light-card tw--bg-light-loader',\n dotsIn: 'tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots',\n icon: 'tw--bg-light-iota-dots',\n spinningTexts: 'tw--text-light-zeta tw--opacity-60'\n },\n dark: {\n wrapper: 'tw--shadow-dark-card tw--bg-dark-loader',\n dotsIn: 'tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots',\n icon: 'tw--bg-dark-iota-dots',\n spinningTexts: 'tw--text-dark-zeta tw--opacity-60'\n }\n }\n }\n});\n\nexport default payment;\n","import { object } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { head as variants } from './variants';\n\nexport const PaymentHead = ({ config = { price: '', period: '' } }) => {\n const { translations } = useAppSelector(state => state.config);\n const { wrapper, left, leftTop, icon, text, bottom, right, price, info } = variants();\n\n return (\n
\n
\n \n
\n \n \n \n \n \n { /* DEV NOTE: be aware that the text is not coming from an input so in the future it is not a good practice to use this attribute */ }\n \n
\n
\n { translations.paymentHeaderTxt2 }\n
\n
\n
\n
{ config.price }
\n
\n { config.period }\n
\n
\n
\n
\n );\n};\n\nPaymentHead.propTypes = {\n config: object\n};\n\nexport default PaymentHead;\n","import { string, func, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { payment as variant } from './variants';\n\nexport const PaymentButton = ({ text = null, onClick = null, e2e = null, disabled = false }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { btn } = variant({ theme });\n\n return (\n \n \n \n \n \n { text }\n \n );\n};\n\nPaymentButton.propTypes = {\n text: string.isRequired,\n onClick: func.isRequired,\n disabled: bool,\n e2e: string\n};\n\nexport default PaymentButton;\n","import { func } from 'prop-types';\nimport { close as variants } from './variants';\n\nexport const CloseButton = ({ onClick }) => {\n const { base } = variants();\n return (\n \n \n \n \n \n );\n};\n\nCloseButton.propTypes = {\n onClick: func.isRequired\n};\n\nexport default CloseButton;\n","import { foot as variants } from './variants';\n\nexport const PaymentFooter = () => {\n const { base, icon } = variants();\n return (\n
\n \n \n \n SSL Secure Connection\n
\n );\n};\n\nexport default PaymentFooter;\n","import { array, string } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { loader as variants } from './variants';\n\nexport const PaymentLoader = ({ texts = [], title = '' }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { wrapper, inner, dots, dotsIn, icon, progressCheckmark, panelTitle, spinningTexts, filmContainer, film } = variants({ theme });\n return (\n \n
\n
\n \n
\n
\n\n
\n \n \n \n \n \n \n

{ title }

\n
\n\n
\n
\n { texts.map((txt) => (\n
\n { txt }\n
\n )) }\n
\n
\n
\n );\n};\n\nPaymentLoader.propTypes = {\n texts: array.isRequired,\n title: string.isRequired,\n};\n\nexport default PaymentLoader;\n","import { func, object, string } from 'prop-types';\nimport payment from './variants';\n\nexport const Link = ({ href, text, onClick, forwardedRef, e2e = null }) => {\n const { link } = payment();\n return (\n { text }\n \n );\n};\n\nLink.propTypes = {\n onClick: func.isRequired,\n text: string.isRequired,\n e2e: string,\n forwardedRef: object.isRequired,\n href: string.isRequired,\n};\n\nexport default Link;\n","import { tv } from 'tailwind-variants';\n\n// eslint-disable-next-line spaced-comment\nexport const overlay = /*tw*/ tv({\n slots: {\n base: 'loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-whisper'\n },\n dark: {\n base: 'tw--bg-dark-whisper'\n }\n }\n }\n});\n\nexport default overlay;\n","import { node } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport overlay from './variants';\n\nexport const Overlay = ({ children }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = overlay({ theme });\n return (\n
\n { children }\n
\n );\n};\n\nOverlay.propTypes = { children: node.isRequired };\n\nexport default Overlay;\n","import { func } from 'prop-types';\nimport { Overlay } from '@/components/Overlay';\nimport { PaymentHead, CloseButton, PaymentFooter, PaymentLoader } from '@/components/Payment';\nimport { useAppSelector } from '@/hooks';\nimport { wrapper } from '../Payment/variants';\n\nexport const PaymentScene = ({ onClose }) => {\n const { displayPlanPrice, billingFrequencyTmsg } = useAppSelector(state => state.meta.pd);\n const { translations, themeId: theme } = useAppSelector(state => state.config);\n const { base } = wrapper({ theme });\n\n return (\n (\n
\n \n \n \n \n \n
\n \n
\n \n
\n
\n )\n );\n};\n\nPaymentScene.propTypes = {\n onClose: func.isRequired,\n};\n\nexport default PaymentScene;\n","/* eslint-disable no-undef */\n// eslint-disable-next-line import/prefer-default-export\nexport const track = ({ eventType, systemType, utmParams, customerUuid, email, phone }) => {\n if (window.trackEventInGTM && window.tracking) {\n const event = window.tracking.event({\n eventType,\n systemType,\n uri: window.location.pathname,\n domain: window.location.hostname,\n email: email || null,\n phone: phone || null,\n customerUuid,\n additionalData: {},\n utmParams,\n });\n\n window.tracking.trackClient(event);\n if (window.trackEventInGTM) {\n window.trackEventInGTM(event);\n }\n }\n};\n","import { getKeys } from '@/utils';\n\n// DEV Note: TS Enum\nexport const baseEvents = {\n addToCart: 'AddToCart',\n contact: 'Contact',\n initiateCheckout: 'InitiateCheckout',\n pageView: 'PageView',\n viewContent: 'ViewContent',\n purchase: 'Purchase',\n subscribe: 'Subscribe',\n recurringSubscriptionPayment: 'RecurringSubscriptionPayment',\n cancelSubscription: 'CancelSubscription',\n purchaseFailed: 'PurchaseFailed',\n subscribeFailed: 'SubscribeFailed',\n recurringSubscriptionPaymentFailed: 'RecurringSubscriptionPaymentFailed',\n customerCreated: 'CustomerCreated',\n subscriptionChargeback: 'SubscriptionChargeback',\n subscriptionRefund: 'SubscriptionRefund',\n transactionChargeback: 'TransactionChargeback',\n transactionRefund: 'TransactionRefund',\n};\n\n// DEV Note: TS Enum\nexport const customEvents = {\n firstMessage: 'FirstMessage',\n linkProvided: 'LinkProvided',\n linkClicked: 'LinkClicked',\n emailField: 'EmailField',\n emailEntered: 'EmailEntered',\n emailWrong: 'EmailWrong',\n emailExist: 'EmailExist',\n priceSeen: 'PriceSeen',\n buttonClick: 'ButtonClick',\n};\n\nexport const baseEventsArr = getKeys(baseEvents);\nexport const customEventsArr = getKeys(customEvents);\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const streamBase = /*tw*/ tv({\n slots: {\n base: 'tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0',\n second: 'tw--mt-0 tw--mb-auto',\n date: 'tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--text-light-zephyr-100 tw--font-medium',\n },\n dark: {\n base: 'tw--text-dark-zephyr-100'\n }\n }\n }\n});\n\nexport const streamHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10',\n title: 'tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none',\n },\n variants: {\n theme: {\n light: { title: 'tw--font-medium' },\n }\n }\n});\n\nexport const streamRow = /*tw*/ tv({\n slots: {\n base: 'tw--grid',\n },\n});\n\nexport const flickerEffect = /* tw */ tv({\n slots: {\n base: 'after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none',\n },\n variants: {\n isTyping: {\n true: 'after:tw--animate-blink',\n false: 'after:tw--hidden'\n },\n theme: {\n light: 'after:tw--bg-light-zephyr-100',\n dark: 'after:tw--bg-dark-zephyr-100'\n }\n }\n});\n\nexport const streamBubble = /*tw*/ tv({\n slots: {\n base: 'tw--relative tw--max-w-[375px] tw--px-[15px] tw--py-[11px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5',\n action: 'tw--absolute tw--bottom-[-16px] tw--right-[-10px]'\n },\n variants: {\n theme: {\n light: {\n action: 'tw--text-light-seraph',\n base: 'tw--font-medium',\n },\n dark: {\n action: 'tw--text-dark-seraph',\n },\n },\n type: {\n assistant: {\n base: 'tw--justify-self-start',\n },\n user: {\n base: 'tw--justify-self-end',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['base'],\n theme: 'light',\n type: 'assistant',\n class: 'tw--bg-light-lumina',\n },\n {\n slots: ['base'],\n theme: 'light',\n type: 'user',\n class: 'tw--bg-light-seraph tw--text-white',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'assistant',\n class: 'tw--bg-dark-lumina',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'user',\n class: 'tw--bg-dark-seraph',\n },\n ],\n});\n\nexport const ellipsis = tv({\n slots: {\n dotFirst: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave',\n dotSecond: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay',\n dotThird: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2',\n },\n compoundSlots: [{\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'light',\n class: 'tw--bg-light-zephyr-100',\n },\n {\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'dark',\n class: 'tw--bg-dark-zephyr-100',\n }]\n});\n\nexport default { streamBase, streamHead, streamRow, streamBubble, ellipsis };\n","import { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { ellipsis as variant } from './variants';\n\nexport const Ellipsis = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { dotFirst, dotSecond, dotThird } = variant({ theme });\n return (\n
\n \n \n \n
\n );\n};\n\nexport default Ellipsis;\n","import { useRef, useState } from 'react';\nimport intent from '@/services/intentions';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { ResponseForm, EmailForm } from '@/components/Form/';\nimport { getEmailIntentions, getLinkIntentions, getPaymentIntentions, getResponseIntentions, setIsPaymentButtonVisible, setIsPaymentSuccessful, setLink, setPaymentFormVisibility, setPaymentIntentError } from '@/store/slices/intentions';\nimport { PaymentButton, Link } from '@/components/Payment';\nimport { appendHistory, getStream, setClosed } from '@/store/slices/chat';\nimport { roles } from '@/config/roles';\nimport { PaymentScene } from '@/components/Scenes/payment';\nimport { getConfig } from '@/store/slices/config';\nimport { track } from '@/services/tracking';\nimport { customEvents } from '@/config/analytics';\nimport { getMeta } from '@/store/slices/meta';\nimport { Ellipsis } from '@/components/Stream/ellipsis';\nimport { CHAT_SEEN_KEY } from '@/config/env';\n\nexport const LayoutFoot = () => {\n const dispatch = useAppDispatch();\n const { isFormVisible: isResponseFormVisible } = useAppSelector(getResponseIntentions);\n const { cid, systemType, marketing } = useAppSelector(getMeta);\n const { translations } = useAppSelector(getConfig);\n const { isVisible: isCtaVisible, text: ctaText, href: ctaHref } = useAppSelector(getLinkIntentions);\n const { isLoading } = useAppSelector(getStream);\n const { error: streamError } = useAppSelector(store => store.chat);\n const { isFormVisible: isEmailFormVisible, current, error: emailError } = useAppSelector(getEmailIntentions);\n const { isButtonVisible: isPaymentButtonVisible, isFormVisible: isPaymentFormVisible, error: paymentIntentError } = useAppSelector(getPaymentIntentions);\n const error = streamError || emailError || paymentIntentError;\n\n const ctaAfterPayButton = useRef(null);\n const [disabled, setDisabled] = useState(false);\n\n const setIsPaymentContainerVisible = (isVisible) => {\n dispatch(setPaymentFormVisibility(isVisible));\n };\n\n const onClosePaymentForm = (e) => {\n e.currentTarget.disabled = true;\n intent.core.emit(intent.type.destroy);\n setIsPaymentContainerVisible(false);\n setDisabled(false);\n };\n\n const onPaymentSuccess = () => {\n // TODO: set in store to be persisted the GO THROUGH QUIZ button\n dispatch(appendHistory({ role: roles.assistant, content: translations.tm1226 }));\n dispatch(setIsPaymentSuccessful(true));\n dispatch(setIsPaymentButtonVisible(false));\n dispatch(setLink({ href: '/', isVisible: true, text: translations.ctaTextContent }));\n setIsPaymentContainerVisible(false);\n\n setTimeout(() => {\n ctaAfterPayButton.current.click();\n }, 7000);\n };\n\n const onError = (message) => {\n dispatch(setPaymentIntentError(message));\n };\n\n const initializePaymentForm = () => {\n intent.core.emit(intent.type.payment, { setIsPaymentContainerVisible, onPaymentSuccess, onError });\n setDisabled(true);\n };\n\n const onClickCtaPay = () => {\n track({\n eventType: customEvents.linkClicked,\n systemType,\n utmParams: marketing.lastUtmParams,\n customerUuid: cid,\n email: current\n });\n\n dispatch(setClosed());\n localStorage.setItem(CHAT_SEEN_KEY, true);\n };\n\n return (\n
\n { error &&
{ error }
}\n { isPaymentFormVisible && }\n { isLoading && }\n { isCtaVisible\n && (\n \n ) }\n\n { isEmailFormVisible && }\n { isResponseFormVisible && }\n\n { isPaymentButtonVisible && (\n \n ) }\n
\n );\n};\n\nexport default LayoutFoot;\n","import { string } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { isNonEmptyStr } from '@/utils';\n\nimport { Profile } from '@/components/Profile';\nimport { getConfig } from '@/store/slices/config';\nimport { streamHead as variant } from './variants';\n\nexport const StreamHead = ({ titleTxt = '' }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, title } = variant({ theme });\n\n const hasTitle = isNonEmptyStr(titleTxt);\n\n return (\n
\n { hasTitle &&
{ titleTxt }
}\n \n
\n );\n};\n\nStreamHead.propTypes = {\n titleTxt: string,\n};\n\nexport default StreamHead;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-3 tw--rounded-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glaze tw--text-white',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-2',\n },\n});\n","import { string, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Link = ({ text = null, href = null, onClick = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n { text }\n \n );\n};\n\nLink.propTypes = {\n href: string.isRequired,\n text: string.isRequired,\n onClick: func,\n};\n\nexport default Link;\n","// This pattern will exclude {https://test.test.test} or any of those symbols {}[]()<> at the end of the link\nexport const link = /((?:https?:\\/\\/|www\\.)[^\\s/$.?#].[^\\s{}[\\]()<>]*)/gi;\n\n// { replaceStringInCurlyBracketsWithStrong('this is a strong {tagged} text {g') } => ...\nexport const curlyBraces = /\\{([^}]+)\\}/g;\n","import { curlyBraces, link } from '@/config/patterns';\nimport { constructLink } from '@/utils/formatting';\n/**\n* Replaces all string links with anchor tags.\n* @example { replaceLinksWithAnchors('hello nice to see you here is a link to diet http://www.yourketo.diet') }\n*/\nexport const replaceLinksWithAnchors = (val) => {\n const parts = val.split(link);\n\n return parts.map((part) => {\n if (link.test(part)) {\n const urlWithParams = constructLink(part);\n return (\n \n { part }\n \n );\n }\n return part;\n });\n};\n\n/**\n * Replaces the string in curly brackets with a string wrapped in tags or anchor if link exists.\n *\n * @param {string} input - The input string to process.\n * @example { replaceStringInCurlyBracketsWithStrong('this is a strong {tagged} text {g') }\n * @returns {React.ReactNode} A React element with replaced content.\n */\nexport const textModifier = (input) => {\n const parts = input.split(curlyBraces);\n return parts.map((part, index) => {\n if (index % 2 === 0) {\n return replaceLinksWithAnchors(part);\n }\n return { replaceLinksWithAnchors(part) };\n });\n};\n","/* eslint-disable react/jsx-props-no-spreading */\nimport { object } from 'prop-types';\nimport { useAppSelector, useAppDispatch } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { appendHistory, getCurrentPointer, getStream, setOutgoing } from '@/store/slices/chat';\nimport { isNonEmptyArr } from '@/utils';\n\nimport { Btn, IconBtn } from '@/components/Button';\nimport { Link } from '@/components/Link';\nimport { roles } from '@/config';\nimport { flickerEffect, streamBubble as variant } from './variants';\nimport { textModifier } from './modifiers';\n\nexport const StreamBubble = ({ item = {} }) => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const currentPointer = useAppSelector(getCurrentPointer);\n const { incoming } = useAppSelector(getStream);\n const displayOptionList = isNonEmptyArr(item.options) && item.id === currentPointer && !item.isSpecial;\n const { base, action } = variant({ theme, type: item.role });\n const { base: baseFlicker } = flickerEffect({ isTyping: !!incoming && !item.id, theme });\n const displayActionButton = false; // DEV NOTE: get from store state\n\n const setOption = (val) => {\n dispatch(setOutgoing(val));\n };\n\n const setMessage = (val) => {\n dispatch(appendHistory({ role: 'user', content: val }));\n };\n\n const OptionList = ({ items = [] }) => (\n items.map(({ id, label, value, link, noStream }) => (\n \n { link\n ? ()\n : ( setMessage(value) : () => setOption(value) } />) }\n \n ))\n );\n\n return (\n
\n \n { textModifier(item.content) }\n \n { displayOptionList &&
}\n { displayActionButton && (\n
\n \n \n \n \n \n \n
\n ) }\n
\n );\n};\n\nStreamBubble.propTypes = {\n item: object.isRequired,\n};\n\nexport default StreamBubble;\n","import { object } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { StreamBubble } from './bubble';\nimport { streamRow as variant } from './variants';\n\nexport const StreamRow = ({ item = {} }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n
\n \n
\n );\n};\n\nStreamRow.propTypes = {\n item: object.isRequired,\n};\n\nexport default StreamRow;\n","import { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { getStream } from '@/store/slices/chat';\nimport { formatDateByLocale } from '@/utils';\nimport { StreamHead } from './head';\nimport { StreamRow } from './row';\nimport { streamBase as variant } from './variants';\n\nexport const StreamBase = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { aiProfile } = useAppSelector(getConfig);\n const { history, incoming } = useAppSelector(getStream);\n const { base, second, date } = variant({ theme });\n const firstMessage = history && history.length > 0 && history[0];\n\n return (\n
\n
\n \n { firstMessage &&
{ formatDateByLocale(firstMessage.time) }
}\n { history.map((message) => (\n )\n ) }\n { incoming && }\n
\n
\n );\n};\n\nexport default StreamBase;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--cursor-pointer tw--h-8 tw--relative tw--w-16 tw--rounded-3xl tw--border-0',\n },\n variants: {\n color: {\n enabled: 'tw--bg-light-seraph',\n disabled: 'tw--bg-light-zephyr-100'\n }\n }\n});\n\nexport const pin = /*tw*/ tv({\n slots: {\n base: 'tw--h-8 tw--w-8 tw--absolute tw---top-1/2 tw--translate-y-1/2 tw--bottom-1 tw--bg-white tw--rounded-full',\n },\n variants: {\n position: {\n enabled: 'tw--left-0',\n disabled: 'tw--right-0'\n }\n }\n});\n\nexport default { wrapper, pin };\n","/* eslint-disable import/prefer-default-export */\nimport { bool, func, string } from 'prop-types';\nimport { wrapper, pin } from './variants';\n\nexport const Toggler = ({ onToggle, on = false, title = '' }) => {\n const { base: outline } = wrapper({ color: on ? 'enabled' : 'disabled' });\n const { base: toggle } = pin({ position: on ? 'enabled' : 'disabled' });\n return (\n
\n { title }\n \n \n \n
\n );\n};\n\nToggler.propTypes = {\n onToggle: func.isRequired,\n title: string.isRequired,\n on: bool,\n};\n","/* eslint-disable import/prefer-default-export */\nimport { tv } from 'tailwind-variants';\n\nexport const wrapper = /* tw */ tv({\n slots: {\n base: 'tw--fixed tw--flex tw--gap-2 tw--flex-col tw--p-3 tw--space-y-4 tw--bg-dark-sigma tw--rounded-lg',\n },\n variants: {\n hidden: {\n true: 'tw--hidden',\n }\n }\n});\n","import { useAppDispatch, useAppSelector } from '@/hooks';\nimport { getConfig, setTheme, togglePluginMode } from '@/store/slices/config';\nimport { Toggler } from '@/components/Toggle';\nimport { wrapper } from './variants';\n\nexport const DevTools = () => {\n const dispatch = useAppDispatch();\n const { enableDevTools, themeId, isPluginMode } = useAppSelector(getConfig);\n // DEV NOTE: when more than 2 themes are available the toggler must be replaced by another component\n const setUiTheme = () => dispatch(setTheme(themeId === 'light' ? 'dark' : 'light'));\n const { base } = wrapper({ hidden: !enableDevTools });\n\n return (\n
\n \n dispatch(togglePluginMode()) }\n />\n
\n );\n};\n\nexport default DevTools;\n","/* eslint-disable no-unused-vars */\nimport { object } from 'prop-types';\nimport { useAppDispatch } from '@/hooks';\n\nimport { setConfig, setDevToolsStatus } from '@/store/slices/config';\nimport { setMeta } from '@/store/slices/meta';\n\nimport { LayoutBase, LayoutHead, LayoutFoot } from '@/components/Layout';\nimport { StreamBase } from '@/components/Stream';\nimport { DevTools } from '@/components/DevTools';\n\nexport const AppBase = ({ config = {} }) => {\n const dispatch = useAppDispatch();\n\n // Set defaults\n dispatch(setMeta(config.meta));\n dispatch(setConfig(config.app));\n dispatch(setDevToolsStatus(false)); // DEV Note: set this in a global plugin process.env.NODE_ENV === 'development'\n\n return (\n <>\n \n\n }\n stream={ }\n foot={ }\n />\n \n );\n};\n\nAppBase.propTypes = {\n config: object.isRequired,\n};\n\nexport default AppBase;\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\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, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { PureComponent } from 'react'; // eslint-disable-line import/no-unresolved\n\nexport var PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(PersistGate, _PureComponent);\n\n function PersistGate() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, PersistGate);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n bootstrapped: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n var persistor = _this.props.persistor;\n\n var _persistor$getState = persistor.getState(),\n bootstrapped = _persistor$getState.bootstrapped;\n\n if (bootstrapped) {\n if (_this.props.onBeforeLift) {\n Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n return _this.setState({\n bootstrapped: true\n });\n });\n } else {\n _this.setState({\n bootstrapped: true\n });\n }\n\n _this._unsubscribe && _this._unsubscribe();\n }\n });\n\n return _this;\n }\n\n _createClass(PersistGate, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n this.handlePersistorState();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._unsubscribe && this._unsubscribe();\n }\n }, {\n key: \"render\",\n value: function render() {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n }\n\n if (typeof this.props.children === 'function') {\n return this.props.children(this.state.bootstrapped);\n }\n\n return this.state.bootstrapped ? this.props.children : this.props.loading;\n }\n }]);\n\n return PersistGate;\n}(PureComponent);\n\n_defineProperty(PersistGate, \"defaultProps\", {\n children: null,\n loading: null\n});","import { io } from 'socket.io-client';\nimport { config as socketConfig, events, roles } from '@/config';\nimport {\n appendHistory, appendUnsent,\n resetIncoming, resetIsLoading,\n resetError, resetTextToParse, resetUnsent,\n resetOutgoing, setIncoming, addIncomingChunk,\n setHistory, setIsLoading,\n setShouldSendUnsent, setError, setTextToParse,\n setOutgoing, setConnected, setClosed\n} from '@/store/slices/chat';\nimport { checkForSpecialPhrases, getQueryParam, isExpired } from '@/utils';\nimport { constructLink, extractOptionSet } from '@/utils/formatting';\nimport intent from '@/services/intentions';\nimport { setIsEmailFormVisible, setIsPaymentButtonVisible, setLink, setResponseFormVisibility } from '@/store/slices/intentions';\nimport { setConfig } from '@/store/slices/config';\nimport { track } from '@/services/tracking';\nimport { baseEvents, customEvents } from '@/config/analytics';\nimport { CHAT_SEEN_KEY } from '@/config/env';\n\nconst specialMessages = [intent.type.email, intent.type.payment];\nlet socket;\n\nconst chatMiddleware = store => next => action => {\n const { meta, chat, intentions } = store.getState();\n if (setOutgoing.match(action)) {\n store.dispatch(appendHistory({\n role: roles.user,\n content: action.payload,\n }));\n\n store.dispatch(setIsLoading());\n\n socket.emit(events.chat, {\n role: roles.user,\n message: action.payload,\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n });\n\n if (isFirstUserMessage(chat.history)) {\n track({\n eventType: customEvents.firstMessage,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid\n });\n }\n }\n\n if (setTextToParse.match(action)) {\n const { textToParse, incoming } = chat;\n const currentText = textToParse + action.payload;\n if (currentText.includes(intent.type.email)) {\n store.dispatch(setIsEmailFormVisible(true));\n }\n\n if (currentText.includes(intent.type.payment)) {\n store.dispatch(setIsPaymentButtonVisible(true));\n store.dispatch(setIncoming(incoming.content + meta.pd.displayPlanPrice + ' ' + meta.pd.billingFrequencyTmsg));\n }\n }\n\n if (setClosed.match(action)) {\n document.querySelector('#chatbot-container').remove();\n document.body.classList.remove('scroll-stop');\n socket.close();\n }\n\n if (appendUnsent.match(action) && action.payload) {\n store.dispatch(appendHistory({ role: roles.user, content: action.payload }));\n }\n\n if (setShouldSendUnsent.match(action) && action.payload && chat.unsent.length) {\n socket.emit(events.chat, {\n role: roles.user,\n message: chat.unsent.join('\\n'),\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n });\n store.dispatch(resetUnsent());\n store.dispatch(setIsLoading());\n }\n\n const hasNoUserMessages = !chat.history.some(item => item.role === roles.user);\n const lastMessage = chat.history[chat.history.length - 1];\n if (hasNoUserMessages && appendHistory.match(action) && action.payload.role === roles.user && lastMessage.options.length) {\n const buttonSequence = lastMessage.options.findIndex((item) => item.value === action.payload.content) + 1;\n track({\n eventType: customEvents.buttonClick + buttonSequence,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n }\n\n if (setIsPaymentButtonVisible.match(action)) {\n if (action.payload === true) {\n const data = {\n eventType: null,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n };\n\n data.eventType = baseEvents.addToCart;\n track(data);\n\n data.eventType = customEvents.priceSeen;\n track(data);\n }\n }\n\n if (setIsEmailFormVisible.match(action) && action.payload) {\n track({\n eventType: customEvents.emailField,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n\n if (setHistory.match(action)) {\n const { intentions } = store.getState();\n store.dispatch(setResponseFormVisibility({ intentions, options: extractOptionSet(action.payload[action.payload.length - 1].content).options }));\n }\n\n if (!setConfig.match(action)) {\n return next(action);\n }\n\n store.dispatch(setIsLoading());\n socket = io.connect(action.payload.chatUrl, socketConfig);\n\n socket.on('connect', () => {\n const { meta } = store.getState();\n socket.emit(events.chatHistory, { user_id: meta.cid });\n store.dispatch(setConnected(true));\n });\n\n socket.on(events.chatHistory, ({ history, errors }) => {\n store.dispatch(resetIsLoading());\n const { config, meta, chat } = store.getState();\n\n if (errors.length && !chat.error) {\n store.dispatch(setError(errors[0]));\n }\n\n if (history.length) {\n const lastMessage = history[history.length - 1];\n updateContent({ lastMessage, store });\n store.dispatch(setHistory(history));\n } else {\n socket.emit(events.chat, {\n role: roles.assistant,\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n message: config.aiProfile.initialMessage\n });\n }\n });\n\n socket.on(events.streamStart, () => {\n store.dispatch(resetIsLoading());\n store.dispatch(resetOutgoing());\n store.dispatch(setIncoming(''));\n store.dispatch(resetError());\n });\n\n socket.on(`${events.chat}-${meta.cid}`, (data) => {\n const { options, content } = extractOptionSet(data.message);\n const isSpecial = checkForSpecialPhrases(data.message, specialMessages);\n updateContent({ lastMessage: { content: data.message }, store });\n const { intentions } = store.getState();\n\n store.dispatch(resetIsLoading());\n store.dispatch(resetError());\n store.dispatch(appendHistory({ content, options, role: roles.assistant, isSpecial }));\n store.dispatch(setResponseFormVisibility({ intentions, options }));\n });\n\n socket.on(events.streamData, ({ chunk, messages, errors }) => {\n const { chat, config } = store.getState();\n const { textToParse, incoming } = chat;\n const link = constructLink(textToParse) || constructLink(incoming.content) || constructLink(chunk);\n\n if (messages.length > chat.history.length) {\n store.dispatch(setHistory(messages));\n }\n\n if (errors.length && !chat.error) {\n store.dispatch(setError(errors[0]));\n }\n\n if (link) {\n store.dispatch(setLink({\n isVisible: true,\n href: link,\n text: config.translations.mealButton\n }));\n store.dispatch(setResponseFormVisibility({ isFormVisible: false }));\n }\n\n if (chunk.includes('[')) {\n store.dispatch(setTextToParse(chunk));\n return;\n }\n\n if (chunk.includes(']') || textToParse) {\n store.dispatch(setTextToParse(chunk));\n return;\n }\n\n store.dispatch(addIncomingChunk({ chunk }));\n });\n\n socket.on(events.streamEnd, () => {\n const { chat, intentions } = store.getState();\n const { options } = extractOptionSet(chat.textToParse);\n const isSpecial = options.some(item => checkForSpecialPhrases(item.value, specialMessages));\n store.dispatch(appendHistory({\n ...chat.incoming,\n options,\n isSpecial\n }));\n store.dispatch(resetIncoming());\n store.dispatch(resetTextToParse());\n store.dispatch(setResponseFormVisibility({ intentions, options }));\n });\n\n const onError = () => {\n const { config } = store.getState();\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n socket.on(events.streamError, onError);\n socket.on(events.error, onError);\n\n socket.on(events.disconnect, () => {\n store.dispatch(setConnected(false));\n });\n\n next(action);\n};\n\nconst mustHideChat = ({ time, role }) => {\n let hasExpired;\n\n if (role === roles.user && time) {\n hasExpired = isExpired(time);\n }\n\n if (hasExpired) {\n localStorage.removeItem(CHAT_SEEN_KEY);\n }\n\n const chatSeen = localStorage.getItem(CHAT_SEEN_KEY);\n\n return chatSeen === 'true';\n};\n\nconst isFirstUserMessage = (messages) => messages.filter(obj => obj.role === roles.user).length === 1;\n\nconst updateContent = ({ lastMessage, store }) => {\n const { meta, config } = store.getState();\n const link = constructLink(lastMessage.content);\n\n if (mustHideChat(lastMessage)) {\n store.dispatch(setClosed(true));\n }\n\n if (link) {\n store.dispatch(setLink({\n isVisible: true,\n href: link,\n text: config.translations.mealButton\n }));\n }\n\n lastMessage.isSpecial = checkForSpecialPhrases(lastMessage.content, specialMessages);\n\n if (lastMessage.content.includes(intent.type.email)) store.dispatch(setIsEmailFormVisible(true));\n\n if (lastMessage.content.includes(intent.type.payment)) {\n store.dispatch(setIsPaymentButtonVisible(true));\n lastMessage.content += meta.pd.displayPlanPrice + ' ' + meta.pd.billingFrequencyTmsg;\n }\n};\n\nexport default chatMiddleware;\n","import { customEvents } from '@/config/analytics';\nimport { track } from '@/services/tracking';\nimport intent from '@/services/intentions';\nimport { setIsEmailLoading, setEmailSuccess, setIsEmailFormVisible, setEmailError, setLink } from '@/store/slices/intentions';\nimport { setPd, setMarketing } from '@/store/slices/meta';\nimport { appendHistory, setOutgoing } from '@/store/slices/chat';\n\nexport const intentionsMiddleware = store => next => {\n const setPaymentDataTranslationAccordingly = (data) => {\n const { meta } = store.getState();\n if (!meta.pd) return;\n data.billingFrequencyTmsg = data.billingOptionType === 'one-time'\n ? meta.pd.oneTimer\n : meta.pd.subscriberBillingFrequency.replace('{1}', data.frequencyInMonths);\n\n return data;\n };\n\n intent.core.on(intent.type.emailSuccess, () => {\n const { meta, intentions } = store.getState();\n\n store.dispatch(setIsEmailLoading(false));\n store.dispatch(setEmailError(''));\n store.dispatch(setOutgoing(intentions.email.current));\n\n // DEV: setEmailSuccess this status is for us to know if mail is validated in the endpoint\n store.dispatch(setEmailSuccess(true));\n store.dispatch(setIsEmailFormVisible(false));\n track({\n eventType: customEvents.emailEntered,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n });\n\n intent.core.on(intent.type.emailError, (response) => {\n const { meta, intentions, config } = store.getState();\n const { tm716, tm526, tm715, tm505 } = config.translations;\n\n store.dispatch(setIsEmailLoading(false));\n\n if (response.status === 409) {\n store.dispatch(appendHistory({\n role: 'assistant',\n content: tm716,\n options: [\n { id: 'opt-1', label: tm526, value: 'link', link: response.data.buttonLink },\n { id: 'opt-2', label: tm715, value: 'button', noStream: true }\n ]\n }));\n\n track({\n eventType: customEvents.emailExist,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n\n // DEV NOTE: this must be persisted so on refresh the message with options is still part of the history;\n // localStorage.setItem(ALREADY_REGISTERED_KEY, 'true');\n return;\n }\n\n if (response.status === 422) {\n store.dispatch(setEmailError(response.errors.email[0] || tm505));\n\n track({\n eventType: customEvents.emailWrong,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n });\n\n dataIntervalChecker('marketing', store, setMarketing);\n dataIntervalChecker('__pd', store, setPd, setPaymentDataTranslationAccordingly);\n\n return action => {\n if (setLink.match(action) && action.payload.isVisible) {\n const { meta, intentions } = store.getState();\n\n track({\n eventType: customEvents.linkProvided,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n next(action);\n };\n};\n\nconst dataIntervalChecker = (key, store, setValue, transformData = null) => {\n const intervalId = setInterval(() => {\n let storedItem = localStorage.getItem(key);\n\n try {\n storedItem = JSON.parse(storedItem);\n } catch (e) {\n storedItem = localStorage.getItem(key);\n }\n\n if (transformData && storedItem) {\n storedItem = transformData(storedItem);\n }\n\n if (storedItem) {\n store.dispatch(setValue(storedItem));\n clearInterval(intervalId);\n }\n }, 1000);\n};\n\nexport default intentionsMiddleware;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","/* eslint-disable no-unused-expressions */\n/* eslint-disable no-restricted-syntax */\n/* eslint-disable no-underscore-dangle */\n\nexport default function disableReactDevTools() {\n if (typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__ === 'object') {\n for (const prop in window.__REACT_DEVTOOLS_GLOBAL_HOOK__) {\n if (prop === 'renderers') {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] = new Map();\n } else {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] = typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] === 'function'\n ? () => {}\n : null;\n }\n }\n }\n}\n","import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport metaReducer from '@/store/slices/meta';\nimport configReducer from '@/store/slices/config';\nimport chatReducer from '@/store/slices/chat';\nimport intentionsReducer from '@/store/slices/intentions';\nimport chatMiddleware from '@/middleware/socket';\nimport intentionsMiddleware from '@/middleware/intentions';\nimport { persistStore, persistReducer } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage';\nimport disableReactDevTools from '@/utils/reactDevTools';\n\ndisableReactDevTools();\n\nconst persistConfig = {\n key: 'root',\n storage,\n blacklist: ['chat', 'intentions'],\n};\n\nexport const store = configureStore({\n reducer: persistReducer(persistConfig, combineReducers({\n meta: metaReducer,\n config: configReducer,\n chat: chatReducer,\n intentions: intentionsReducer,\n })),\n middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false }).concat(chatMiddleware, intentionsMiddleware),\n});\n\nexport const persistor = persistStore(store);\n","import ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\n\nimport '@/assets/css/index.css';\nimport { AppBase } from '@/components/AppBase';\nimport { PersistGate } from 'redux-persist/integration/react';\nimport { persistor, store } from './store';\n\nexport { intent } from '@/services/intentions';\n\n// DEV Note: will be received by Razvigor\nconst initialConfig = {\n meta: {\n pd: {\n subscriberBillingFrequency: 'Billed every {1} month(s)',\n oneTimer: 'Total price to be charged',\n billingFrequencyTmsg: '',\n },\n cid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d',\n systemType: 'test',\n marketing: {\n utmParams: { utm_chat: 'db-sales-nopresetquestions' },\n lastUtmParams: { utm_chat: 'db-sales-nopresetquestions' },\n screen: {\n width: 2084,\n height: 1608,\n }\n },\n eid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d_PageView_1694521420366',\n },\n app: {\n aiProfile: {\n name: 'Meal Mentor',\n role: 'AI-powered nutritionist',\n imgSrc: 'https://storage.1forfit.com/4oZrkOwbOQcSIGJopBG5qsf0CmBbVDKDqflzEkXq.jpg',\n displayInStream: true,\n welcome: 'Welcome to our live support. We\\'re here to understand your requirements and suggest the best Keto diet suited for you.',\n // initialMessage: 'Hi, {I am Meal Mentor}. I will help you to find the right meal plan for you. [yes|no|continue]',\n initialMessage: 'Do you want to lose weight? [Yes|No]',\n },\n chatUrl: 'https://yourketo.ngrok.io',\n themeId: 'dark',\n translations: {\n emailPlaceholder: 'Please enter your email',\n tm526: 'Continue to my plan',\n tm715: 'Enter new email',\n tm716: 'Entered email already exists, choose below to proceed',\n tm530: 'Take the quiz',\n tm1224: 'Payment in progress...',\n paymentHeaderTxt1: 'SECURITY verified',\n paymentHeaderTxt2: 'secured payments',\n loaderTexts: [\n 'We securely lock up your payment details.',\n 'Details zoom to the payment center.',\n 'Payment center requests our bank to process.',\n 'Our bank contacts your card network.',\n 'Card network asks your bank for approval.',\n 'Your bank reviews funds or credit.',\n 'Decision travels back to us.',\n 'Waiting your payment to be verified and complete.'\n ],\n payButton: 'Secure payment',\n ctaTextContent: 'Create Your Menu!',\n mealButton: 'Create your meal plan',\n error: 'Oops something went wrong.',\n tm505: 'Please enter valid email address',\n }\n },\n};\n\nexport const ReactBotClient = (config) => {\n ReactDOM\n .createRoot(config.root)\n .render(\n \n \n \n \n \n );\n};\n\nexport default ReactBotClient;\n"],"names":["base64Js","byteLength","toByteArray","fromByteArray","lookup","revLookup","Arr","code","i","len","getLens","b64","validLen","placeHoldersLen","lens","_byteLength","tmp","arr","curByte","tripletToBase64","num","encodeChunk","uint8","start","end","output","extraBytes","parts","maxChunkLength","len2","ieee754","buffer","offset","isLE","mLen","nBytes","e","m","eLen","eMax","eBias","nBits","d","s","value","c","rt","base64","require$$0","require$$1","customInspectSymbol","exports","Buffer","SlowBuffer","K_MAX_LENGTH","typedArraySupport","proto","createBuffer","length","buf","arg","encodingOrOffset","allocUnsafe","from","fromString","fromArrayView","isInstance","fromArrayBuffer","valueOf","b","fromObject","assertSize","size","alloc","fill","encoding","checked","string","actual","fromArrayLike","array","arrayView","copy","byteOffset","obj","numberIsNaN","a","x","y","list","pos","mustMatch","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","str","max","target","thisStart","thisEnd","thisCopy","targetCopy","bidirectionalIndexOf","val","dir","arrayIndexOf","indexSize","arrLength","valLength","read","foundIndex","found","j","hexWrite","remaining","strLen","parsed","utf8Write","blitBuffer","asciiWrite","asciiToBytes","base64Write","ucs2Write","utf16leToBytes","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","MAX_ARGUMENTS_LENGTH","codePoints","ret","out","hexSliceLookupTable","bytes","newBuf","checkOffset","ext","noAssert","mul","defineBigIntMethod","validateNumber","first","last","boundsError","lo","hi","checkInt","min","maxBytes","wrtBigUInt64LE","checkIntBI","wrtBigUInt64BE","limit","sub","checkIEEE754","writeFloat","littleEndian","writeDouble","targetStart","errors","E","sym","getMessage","Base","name","range","input","msg","received","addNumericalSeparator","checkBounds","type","INVALID_BASE64_RE","base64clean","units","leadSurrogate","byteArray","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","process","browserModule","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","timeout","args","Item","noop","t","r","o","l","u","f","k","p","q","g","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","source","ownerFn","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","client","useAppDispatch","useDispatch","useAppSelector","useSelector","useWindowSize","setSize","useState","useLayoutEffect","updateSize","meta","chat","intentions","configSlice","createSlice","initialState","state","getConfig","setConfig","resetConfig","setTheme","resetTheme","setDevToolsStatus","resetDevToolsStatus","togglePluginMode","setTranslations","getMeta","setMeta","resetMeta","setMarketing","setPd","twJoin","index","argument","resolvedValue","toValue","mix","CLASS_PART_SEPARATOR","createClassUtils","classMap","createClassMap","conflictingClassGroups","_config$conflictingCl","conflictingClassGroupModifiers","getClassGroupId","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","_a","_ref","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","theme","prefixedClassGroupEntries","getPrefixedClassGroupEntries","_ref2","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","_ref3","path","currentClassPartObject","pathPart","func","classGroupEntries","_ref4","prefixedClassGroup","_ref5","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createSplitModifiers","separator","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","modifiers","bracketDepth","modifierStart","postfixModifierPosition","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","isArbitraryVariant","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","splitModifiers","classGroupsInConflict","originalClassName","_splitModifiers","variantModifier","modifierId","classId","group","createTailwindMerge","_len","createConfig","_key","cacheGet","cacheSet","functionToCall","initTailwindMerge","firstCreateConfig","restCreateConfig","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","result","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","shadowRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitrarySize","isNever","isArbitraryPosition","isArbitraryUrl","isUrl","isArbitraryNumber","isPercent","isInteger","isIntegerOnly","isArbitraryValue","isAny","isTshirtSize","isArbitraryShadow","isShadow","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmpty","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumber","getNumberAndArbitrary","mergeConfigs","baseConfig","configExtension","mergePropertyRecursively","overrideTypes","baseObject","mergeKey","mergeValue","nextKey","extendTailwindMerge","twMerge","re","Z","R","O","w","Y","se","N","F","C","V","U","M","g$1","A","$","h$1","v","K","W","a$1","I","b$1","T","J","te","S","P","z","D","G","H","ee","_","layoutBase","tv","layoutHead","layoutFoot","LayoutBase","head","stream","foot","isPluginMode","base","wrapper","variant","height","profile","Profile","orientation","minimized","aiProfile","avatar","role","imgWrapper","bool","LayoutHead","ReflectApply","receiver","ReflectOwnKeys","ProcessEmitWarning","warning","NumberIsNaN","EventEmitter","eventsModule","once","defaultMaxListeners","checkListener","listener","_getMaxListeners","that","doError","events","er","handler","listeners","arrayClone","_addListener","prepend","existing","onceWrapper","_onceWrap","wrapped","position","originalListener","spliceOne","_listeners","unwrap","evlistener","unwrapListeners","emitter","listenerCount","resolve","reject","errorListener","resolver","eventTargetAgnosticAddListener","addErrorHandlerIfEventEmitter","flags","wrapListener","roles","intent","intentionsSlice","getEmailIntentions","getPaymentIntentions","getLinkIntentions","getResponseIntentions","setEmail","setEmailSuccess","setIsPaymentSuccessful","setPaymentFormVisibility","setEmailError","setIsEmailLoading","setIsEmailFormVisible","setIsPaymentButtonVisible","setLink","setResponse","setResponseFormVisibility","setResponseLoadingStatus","setPaymentIntentError","intentionsReducer","basic","Input","placeholder","onChange","onKeyUp","isLoading","e2e","loader","spin","icon","Btn","text","onClick","IconBtn","outlined","IDX","HEX","SIZE","BUFFER","uid","CHAT_SEEN_KEY","CID","extractOptionSet","constructLink","hasQueryParams","url","REGEX_URL","search","matches","link","isArr","isStr","isNonEmptyStr","isNonEmptyArr","getQueryParam","param","isExpired","date","maxHours","currentDate","givenDate","formatDateByLocale","dateString","options","checkForSpecialPhrases","specialMessages","keyword","regex","bubbleContent","getCurrentPointer","getStream","setOutgoing","setIncoming","resetIncoming","addIncomingChunk","resetOutgoing","setHistory","resetHistory","appendHistory","setTextToParse","resetTextToParse","setIsLoading","resetIsLoading","appendUnsent","resetUnsent","setShouldSendUnsent","setError","resetError","setConnected","setClosed","chatReducer","ResponseForm","dispatch","button","response","setCurrentResponse","timerId","setTimerId","handleInputChange","setTimerToSendMessage","handleFormSubmit","currentId","EmailForm","translations","email","setCurrentEmail","currentValue","payment","close","PaymentHead","left","leftTop","bottom","right","price","variants","PaymentButton","disabled","btn","CloseButton","PaymentFooter","PaymentLoader","texts","title","inner","dots","dotsIn","progressCheckmark","panelTitle","spinningTexts","filmContainer","film","txt","Link","href","forwardedRef","overlay","Overlay","PaymentScene","onClose","displayPlanPrice","billingFrequencyTmsg","track","eventType","systemType","utmParams","customerUuid","phone","event","baseEvents","customEvents","streamBase","streamHead","streamRow","flickerEffect","streamBubble","ellipsis","Ellipsis","dotFirst","dotSecond","dotThird","LayoutFoot","isResponseFormVisible","cid","marketing","isCtaVisible","ctaText","ctaHref","streamError","store","isEmailFormVisible","current","emailError","isPaymentButtonVisible","isPaymentFormVisible","paymentIntentError","ctaAfterPayButton","useRef","setDisabled","setIsPaymentContainerVisible","isVisible","onClosePaymentForm","onPaymentSuccess","onError","message","initializePaymentForm","onClickCtaPay","StreamHead","titleTxt","hasTitle","curlyBraces","replaceLinksWithAnchors","part","urlWithParams","textModifier","StreamBubble","currentPointer","incoming","displayOptionList","action","baseFlicker","displayActionButton","setOption","setMessage","OptionList","items","id","noStream","StreamRow","StreamBase","history","second","firstMessage","pin","Toggler","onToggle","on","outline","toggle","DevTools","enableDevTools","themeId","setUiTheme","AppBase","Fragment","_typeof","_classCallCheck","instance","Constructor","_defineProperties","descriptor","_createClass","protoProps","staticProps","_possibleConstructorReturn","call","_assertThisInitialized","_getPrototypeOf","_inherits","subClass","superClass","_setPrototypeOf","_defineProperty","PersistGate","_PureComponent","_getPrototypeOf2","_this","persistor","_persistor$getState","bootstrapped","PureComponent","socket","chatMiddleware","next","isFirstUserMessage","textToParse","currentText","hasNoUserMessages","lastMessage","buttonSequence","data","io","socketConfig","updateContent","content","isSpecial","chunk","messages","mustHideChat","time","hasExpired","intentionsMiddleware","setPaymentDataTranslationAccordingly","tm716","tm526","tm715","tm505","dataIntervalChecker","setValue","transformData","intervalId","storedItem","getStorage_1","getStorage","noopStorage","hasStorage","storageType","storage","testKey","createWebStorage_1","createWebStorage","_getStorage","_interopRequireDefault","default_1","_createWebStorage","_default","disableReactDevTools","prop","persistConfig","configureStore","persistReducer","combineReducers","metaReducer","configReducer","getDefaultMiddleware","persistStore","initialConfig","ReactBotClient","ReactDOM","Provider"],"mappings":";;;;;;;;AAEAA,GAAA,aAAqBC;AACrBD,GAAA,cAAsBE;AACtBF,GAAA,gBAAwBG;AAExB,IAAIC,KAAS,CAAE,GACXC,KAAY,CAAE,GACdC,KAAM,OAAO,aAAe,MAAc,aAAa,OAEvDC,KAAO;AACX,SAASC,KAAI,GAAGC,KAAMF,GAAK,QAAQC,KAAIC,IAAK,EAAED;AAC5C,EAAAJ,GAAOI,EAAC,IAAID,GAAKC,EAAC,GAClBH,GAAUE,GAAK,WAAWC,EAAC,CAAC,IAAIA;AAKlCH,GAAU,IAAI,WAAW,CAAC,CAAC,IAAI;AAC/BA,GAAU,IAAI,WAAW,CAAC,CAAC,IAAI;AAE/B,SAASK,GAASC,GAAK;AACrB,MAAIF,IAAME,EAAI;AAEd,MAAIF,IAAM,IAAI;AACZ,UAAM,IAAI,MAAM,gDAAgD;AAKlE,MAAIG,IAAWD,EAAI,QAAQ,GAAG;AAC9B,EAAIC,MAAa,OAAIA,IAAWH;AAEhC,MAAII,IAAkBD,MAAaH,IAC/B,IACA,IAAKG,IAAW;AAEpB,SAAO,CAACA,GAAUC,CAAe;AACnC;AAGA,SAASZ,GAAYU,GAAK;AACxB,MAAIG,IAA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,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,33,44,79,82,83,84]} \ No newline at end of file +{"version":3,"file":"index.es.js","sources":["../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer-polyfill/index.js","../node_modules/process/browser.js","../node_modules/vite-plugin-node-polyfills/shims/dist/index.cjs","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/react-dom/client.js","../src/hooks/index.js","../src/store/initialState.js","../src/store/slices/config.js","../src/store/slices/meta.js","../node_modules/tailwind-variants/dist/chunk-T24HS5CV.js","../node_modules/tailwind-merge/dist/lib/tw-join.mjs","../node_modules/tailwind-merge/dist/lib/class-utils.mjs","../node_modules/tailwind-merge/dist/lib/lru-cache.mjs","../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs","../node_modules/tailwind-merge/dist/lib/config-utils.mjs","../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs","../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/from-theme.mjs","../node_modules/tailwind-merge/dist/lib/validators.mjs","../node_modules/tailwind-merge/dist/lib/default-config.mjs","../node_modules/tailwind-merge/dist/lib/merge-configs.mjs","../node_modules/tailwind-merge/dist/lib/extend-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/tw-merge.mjs","../node_modules/tailwind-variants/dist/index.js","../src/components/Layout/variants.js","../src/components/Layout/base.jsx","../src/components/Profile/variants.js","../src/components/Profile/index.jsx","../src/components/Layout/head.jsx","../node_modules/events/events.js","../src/config/socket.js","../src/config/roles.js","../src/config/intentions.js","../src/services/intentions.js","../src/store/slices/intentions.js","../src/components/Input/variants.js","../src/components/Input/basic.jsx","../src/components/Button/variants.js","../src/components/Button/basic.jsx","../src/components/Button/icon.jsx","../node_modules/uid/dist/index.mjs","../src/config/env.js","../src/utils/formatting.js","../src/utils/index.js","../src/store/slices/chat.js","../src/components/Form/response.jsx","../src/components/Form/email.jsx","../src/components/Payment/variants.js","../src/components/Payment/head.jsx","../src/components/Payment/btn.jsx","../src/components/Payment/close.jsx","../src/components/Payment/foot.jsx","../src/components/Payment/loader.jsx","../src/components/Payment/link.jsx","../src/components/Overlay/variants.js","../src/components/Overlay/index.jsx","../src/components/Scenes/payment.jsx","../src/services/tracking.js","../src/config/analytics.js","../src/components/Stream/variants.js","../src/components/Stream/ellipsis.jsx","../src/components/Layout/foot.jsx","../src/components/Stream/head.jsx","../src/components/Link/variants.js","../src/components/Link/basic.jsx","../src/config/patterns.js","../src/components/Stream/modifiers.jsx","../src/components/Stream/bubble.jsx","../src/components/Stream/row.jsx","../src/components/Stream/base.jsx","../src/components/Toggle/variants.js","../src/components/Toggle/index.jsx","../src/components/DevTools/variants.js","../src/components/DevTools/index.jsx","../src/components/AppBase/index.jsx","../node_modules/redux-persist/es/integration/react.js","../src/middleware/socket.js","../src/middleware/intentions.js","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/index.js","../src/utils/reactDevTools.js","../src/store/index.js","../src/main.jsx"],"sourcesContent":["'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";Object.defineProperty(exports,Symbol.toStringTag,{value:\"Module\"});const t=require(\"buffer-polyfill\"),r=require(\"process\"),o=e=>e&&e.__esModule?e:{default:e},l=o(r),u=globalThis||void 0||self;Object.defineProperty(exports,\"Buffer\",{enumerable:!0,get:()=>t.Buffer});Object.defineProperty(exports,\"process\",{enumerable:!0,get:()=>l.default});exports.global=u;\n//# sourceMappingURL=index.cjs.map\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","import { useLayoutEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\n// DEV NOTE: We prep the react-redux hooks to be aliased with types when we switch to TS\nexport const useAppDispatch = () => useDispatch();\nexport const useAppSelector = useSelector;\n\nexport const useWindowSize = () => {\n const [size, setSize] = useState([0, 0]);\n useLayoutEffect(() => {\n function updateSize() {\n setSize([window.innerWidth, window.innerHeight]);\n }\n window.addEventListener('resize', updateSize);\n updateSize();\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n return size;\n};\n","export const meta = {\n pd: null,\n cid: null,\n eid: null,\n systemType: null,\n marketing: {},\n};\n\nexport const config = {\n aiProfile: {\n name: null,\n role: null,\n imgSrc: null,\n initialMessage: '',\n displayInStream: false,\n },\n translations: {},\n themeId: null,\n chatUrl: null,\n enableDevTools: false,\n isPluginMode: false,\n};\n\nexport const chat = {\n outgoing: null,\n incoming: null,\n textToParse: '',\n history: [],\n status: null,\n error: null,\n isLoading: false,\n shouldSendUnsent: false,\n unsent: [],\n connected: false,\n closed: false,\n};\n\nexport const intentions = {\n email: {\n current: '',\n success: false,\n error: false,\n isFormVisible: false,\n isLoading: false,\n },\n response: {\n value: '',\n isFormVisible: false,\n isLoading: false,\n error: false,\n },\n payment: {\n isButtonVisible: false,\n isFormVisible: false,\n isSuccessful: false,\n error: false\n },\n messaging: {\n isVisible: false\n },\n link: {\n isVisible: false,\n href: null,\n text: ''\n }\n};\n\nexport default { meta, config, intentions, chat };\n","import { createSlice } from '@reduxjs/toolkit';\nimport { config as initialState } from '@/store/initialState';\n\nconst configSlice = createSlice({\n name: 'config',\n initialState,\n reducers: {\n setConfig(state, { payload }) {\n state.aiProfile = { ...initialState.aiProfile, ...payload.aiProfile };\n state.translations = { ...initialState.translations, ...payload.translations };\n state.themeId = payload.themeId;\n state.chatUrl = payload.chatUrl;\n },\n resetConfig(state) {\n state.aiProfile = initialState.aiProfile;\n state.themeId = initialState.themeId;\n state.translations = initialState.translations;\n state.chatUrl = initialState.chatUrl;\n },\n setTheme(state, { payload }) {\n state.themeId = payload;\n },\n resetTheme(state) {\n state.themeId = initialState.themeId;\n },\n setDevToolsStatus(state, { payload }) {\n state.enableDevTools = payload;\n },\n resetDevToolsStatus(state) {\n state.enableDevTools = initialState.enableDevTools;\n },\n togglePluginMode(state) {\n state.isPluginMode = !state.isPluginMode;\n },\n setTranslations(state, { payload }) {\n state.translations = { ...state.translations, ...payload };\n },\n }\n});\n\nexport const getConfig = ({ config }) => config;\nexport const getDevToolsStatus = ({ config }) => config.devToolsEnabled;\n\n// DEV NOTE: the createSlice function automatically create both action creator functions\nexport const {\n setConfig, resetConfig,\n setTheme, resetTheme,\n setDevToolsStatus, resetDevToolsStatus,\n togglePluginMode, setTranslations,\n} = configSlice.actions;\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\nimport { meta as initialState } from '@/store/initialState';\n\nconst configSlice = createSlice({\n name: 'meta',\n initialState,\n reducers: {\n setMeta(state, { payload }) {\n state.cid = payload.cid;\n state.eid = payload.eid;\n state.systemType = payload.systemType;\n state.pd = { ...payload.pd, ...state.pd };\n state.marketing = { ...payload.marketing, ...state.marketing };\n },\n resetMeta(state) {\n state.pd = initialState.pd;\n state.cid = initialState.cid;\n state.eid = initialState.eid;\n state.systemType = initialState.systemType;\n state.marketing = initialState.marketing;\n },\n setMarketing(state, { payload }) {\n state.marketing = { ...state.marketing, ...payload };\n },\n setPd(state, { payload }) {\n state.pd = { ...state.pd, ...payload };\n }\n }\n});\n\nexport const getMeta = state => state.meta;\nexport const { setMeta, resetMeta, setMarketing, setPd } = configSlice.actions;\nexport default configSlice.reducer;\n","var a=t=>typeof t==\"boolean\"?`${t}`:t===0?\"0\":t,l=t=>!t||typeof t!=\"object\"||Object.keys(t).length===0,u=(t,e)=>JSON.stringify(t)===JSON.stringify(e),x=t=>typeof t==\"boolean\";function i(t,e){t.forEach(function(n){Array.isArray(n)?i(n,e):e.push(n);});}function y(t){let e=[];return i(t,e),e}var g=(...t)=>y(t).filter(Boolean),p=(t,e)=>{let n={},c=Object.keys(t),f=Object.keys(e);for(let o of c)if(f.includes(o)){let s=t[o],r=e[o];typeof s==\"object\"&&typeof r==\"object\"?n[o]=p(s,r):n[o]=r+\" \"+s;}else n[o]=t[o];for(let o of f)c.includes(o)||(n[o]=e[o]);return n},k=t=>!t||typeof t!=\"string\"?t:t.replace(/\\s+/g,\" \").trim();\n\nexport { a, l as b, u as c, x as d, y as e, g as f, p as g, k as h };\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n var index = 0;\n var argument;\n var resolvedValue;\n var string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction toValue(mix) {\n if (typeof mix === 'string') {\n return mix;\n }\n var resolvedValue;\n var string = '';\n for (var k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\n\nexport { twJoin };\n//# sourceMappingURL=tw-join.mjs.map\n","var CLASS_PART_SEPARATOR = '-';\nfunction createClassUtils(config) {\n var classMap = createClassMap(config);\n var conflictingClassGroups = config.conflictingClassGroups,\n _config$conflictingCl = config.conflictingClassGroupModifiers,\n conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;\n function getClassGroupId(className) {\n var classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n }\n function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {\n var conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);\n }\n return conflicts;\n }\n return {\n getClassGroupId: getClassGroupId,\n getConflictingClassGroupIds: getConflictingClassGroupIds\n };\n}\nfunction getGroupRecursive(classParts, classPartObject) {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n var currentClassPart = classParts[0];\n var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n var classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(function (_ref) {\n var validator = _ref.validator;\n return validator(classRest);\n })?.classGroupId;\n}\nvar arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nfunction getGroupIdForArbitraryProperty(className) {\n if (arbitraryPropertyRegex.test(className)) {\n var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n}\n/**\n * Exported for testing only\n */\nfunction createClassMap(config) {\n var theme = config.theme,\n prefix = config.prefix;\n var classMap = {\n nextPart: new Map(),\n validators: []\n };\n var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(function (_ref2) {\n var classGroupId = _ref2[0],\n classGroup = _ref2[1];\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n}\nfunction processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {\n classGroup.forEach(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId: classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(function (_ref3) {\n var key = _ref3[0],\n classGroup = _ref3[1];\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n}\nfunction getPart(classPartObject, path) {\n var currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n}\nfunction isThemeGetter(func) {\n return func.isThemeGetter;\n}\nfunction getPrefixedClassGroupEntries(classGroupEntries, prefix) {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(function (_ref4) {\n var classGroupId = _ref4[0],\n classGroup = _ref4[1];\n var prefixedClassGroup = classGroup.map(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {\n var key = _ref5[0],\n value = _ref5[1];\n return [prefix + key, value];\n }));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n}\n\nexport { createClassMap, createClassUtils };\n//# sourceMappingURL=class-utils.mjs.map\n","// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nfunction createLruCache(maxCacheSize) {\n if (maxCacheSize < 1) {\n return {\n get: function get() {\n return undefined;\n },\n set: function set() {}\n };\n }\n var cacheSize = 0;\n var cache = new Map();\n var previousCache = new Map();\n function update(key, value) {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n }\n return {\n get: function get(key) {\n var value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set: function set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n}\n\nexport { createLruCache };\n//# sourceMappingURL=lru-cache.mjs.map\n","var IMPORTANT_MODIFIER = '!';\nfunction createSplitModifiers(config) {\n var separator = config.separator || ':';\n var isSeparatorSingleCharacter = separator.length === 1;\n var firstSeparatorCharacter = separator[0];\n var separatorLength = separator.length;\n // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n return function splitModifiers(className) {\n var modifiers = [];\n var bracketDepth = 0;\n var modifierStart = 0;\n var postfixModifierPosition;\n for (var index = 0; index < className.length; index++) {\n var currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers: modifiers,\n hasImportantModifier: hasImportantModifier,\n baseClassName: baseClassName,\n maybePostfixModifierPosition: maybePostfixModifierPosition\n };\n };\n}\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nfunction sortModifiers(modifiers) {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n var sortedModifiers = [];\n var unsortedModifiers = [];\n modifiers.forEach(function (modifier) {\n var isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());\n return sortedModifiers;\n}\n\nexport { IMPORTANT_MODIFIER, createSplitModifiers, sortModifiers };\n//# sourceMappingURL=modifier-utils.mjs.map\n","import { createClassUtils } from './class-utils.mjs';\nimport { createLruCache } from './lru-cache.mjs';\nimport { createSplitModifiers } from './modifier-utils.mjs';\n\nfunction createConfigUtils(config) {\n return {\n cache: createLruCache(config.cacheSize),\n splitModifiers: createSplitModifiers(config),\n ...createClassUtils(config)\n };\n}\n\nexport { createConfigUtils };\n//# sourceMappingURL=config-utils.mjs.map\n","import { sortModifiers, IMPORTANT_MODIFIER } from './modifier-utils.mjs';\n\nvar SPLIT_CLASSES_REGEX = /\\s+/;\nfunction mergeClassList(classList, configUtils) {\n var splitModifiers = configUtils.splitModifiers,\n getClassGroupId = configUtils.getClassGroupId,\n getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n var classGroupsInConflict = new Set();\n return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {\n var _splitModifiers = splitModifiers(originalClassName),\n modifiers = _splitModifiers.modifiers,\n hasImportantModifier = _splitModifiers.hasImportantModifier,\n baseClassName = _splitModifiers.baseClassName,\n maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;\n var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n var hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n hasPostfixModifier = false;\n }\n var variantModifier = sortModifiers(modifiers).join(':');\n var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n return {\n isTailwindClass: true,\n modifierId: modifierId,\n classGroupId: classGroupId,\n originalClassName: originalClassName,\n hasPostfixModifier: hasPostfixModifier\n };\n }).reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter(function (parsed) {\n if (!parsed.isTailwindClass) {\n return true;\n }\n var modifierId = parsed.modifierId,\n classGroupId = parsed.classGroupId,\n hasPostfixModifier = parsed.hasPostfixModifier;\n var classId = modifierId + classGroupId;\n if (classGroupsInConflict.has(classId)) {\n return false;\n }\n classGroupsInConflict.add(classId);\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {\n return classGroupsInConflict.add(modifierId + group);\n });\n return true;\n }).reverse().map(function (parsed) {\n return parsed.originalClassName;\n }).join(' ');\n}\n\nexport { mergeClassList };\n//# sourceMappingURL=merge-classlist.mjs.map\n","import { createConfigUtils } from './config-utils.mjs';\nimport { mergeClassList } from './merge-classlist.mjs';\nimport { twJoin } from './tw-join.mjs';\n\nfunction createTailwindMerge() {\n for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {\n createConfig[_key] = arguments[_key];\n }\n var configUtils;\n var cacheGet;\n var cacheSet;\n var functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n var firstCreateConfig = createConfig[0],\n restCreateConfig = createConfig.slice(1);\n var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {\n return createConfigCurrent(previousConfig);\n }, firstCreateConfig());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n var cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n var result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\n\nexport { createTailwindMerge };\n//# sourceMappingURL=create-tailwind-merge.mjs.map\n","function fromTheme(key) {\n var themeGetter = function themeGetter(theme) {\n return theme[key] || [];\n };\n themeGetter.isThemeGetter = true;\n return themeGetter;\n}\n\nexport { fromTheme };\n//# sourceMappingURL=from-theme.mjs.map\n","var arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nvar fractionRegex = /^\\d+\\/\\d+$/;\nvar stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nvar tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nvar lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\n// Shadow always begins with x and y offset separated by underscore\nvar shadowRegex = /^-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nfunction isLength(value) {\n return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);\n}\nfunction isArbitraryLength(value) {\n return getIsArbitraryValue(value, 'length', isLengthOnly);\n}\nfunction isArbitrarySize(value) {\n return getIsArbitraryValue(value, 'size', isNever);\n}\nfunction isArbitraryPosition(value) {\n return getIsArbitraryValue(value, 'position', isNever);\n}\nfunction isArbitraryUrl(value) {\n return getIsArbitraryValue(value, 'url', isUrl);\n}\nfunction isArbitraryNumber(value) {\n return getIsArbitraryValue(value, 'number', isNumber);\n}\n/**\n * @deprecated Will be removed in next major version. Use `isArbitraryNumber` instead.\n */\nvar isArbitraryWeight = isArbitraryNumber;\nfunction isNumber(value) {\n return !Number.isNaN(Number(value));\n}\nfunction isPercent(value) {\n return value.endsWith('%') && isNumber(value.slice(0, -1));\n}\nfunction isInteger(value) {\n return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);\n}\nfunction isArbitraryValue(value) {\n return arbitraryValueRegex.test(value);\n}\nfunction isAny() {\n return true;\n}\nfunction isTshirtSize(value) {\n return tshirtUnitRegex.test(value);\n}\nfunction isArbitraryShadow(value) {\n return getIsArbitraryValue(value, '', isShadow);\n}\nfunction getIsArbitraryValue(value, label, testValue) {\n var result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return result[1] === label;\n }\n return testValue(result[2]);\n }\n return false;\n}\nfunction isLengthOnly(value) {\n return lengthUnitRegex.test(value);\n}\nfunction isNever() {\n return false;\n}\nfunction isUrl(value) {\n return value.startsWith('url(');\n}\nfunction isIntegerOnly(value) {\n return Number.isInteger(Number(value));\n}\nfunction isShadow(value) {\n return shadowRegex.test(value);\n}\n\nexport { isAny, isArbitraryLength, isArbitraryNumber, isArbitraryPosition, isArbitraryShadow, isArbitrarySize, isArbitraryUrl, isArbitraryValue, isArbitraryWeight, isInteger, isLength, isNumber, isPercent, isTshirtSize };\n//# sourceMappingURL=validators.mjs.map\n","import { fromTheme } from './from-theme.mjs';\nimport { isAny, isLength, isTshirtSize, isArbitraryValue, isPercent, isArbitraryLength, isInteger, isArbitraryNumber, isNumber, isArbitraryPosition, isArbitrarySize, isArbitraryUrl, isArbitraryShadow } from './validators.mjs';\n\nfunction getDefaultConfig() {\n var colors = fromTheme('colors');\n var spacing = fromTheme('spacing');\n var blur = fromTheme('blur');\n var brightness = fromTheme('brightness');\n var borderColor = fromTheme('borderColor');\n var borderRadius = fromTheme('borderRadius');\n var borderSpacing = fromTheme('borderSpacing');\n var borderWidth = fromTheme('borderWidth');\n var contrast = fromTheme('contrast');\n var grayscale = fromTheme('grayscale');\n var hueRotate = fromTheme('hueRotate');\n var invert = fromTheme('invert');\n var gap = fromTheme('gap');\n var gradientColorStops = fromTheme('gradientColorStops');\n var gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n var inset = fromTheme('inset');\n var margin = fromTheme('margin');\n var opacity = fromTheme('opacity');\n var padding = fromTheme('padding');\n var saturate = fromTheme('saturate');\n var scale = fromTheme('scale');\n var sepia = fromTheme('sepia');\n var skew = fromTheme('skew');\n var space = fromTheme('space');\n var translate = fromTheme('translate');\n var getOverscroll = function getOverscroll() {\n return ['auto', 'contain', 'none'];\n };\n var getOverflow = function getOverflow() {\n return ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n };\n var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {\n return ['auto', isArbitraryValue, spacing];\n };\n var getSpacingWithArbitrary = function getSpacingWithArbitrary() {\n return [isArbitraryValue, spacing];\n };\n var getLengthWithEmpty = function getLengthWithEmpty() {\n return ['', isLength];\n };\n var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {\n return ['auto', isNumber, isArbitraryValue];\n };\n var getPositions = function getPositions() {\n return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n };\n var getLineStyles = function getLineStyles() {\n return ['solid', 'dashed', 'dotted', 'double', 'none'];\n };\n var getBlendModes = function getBlendModes() {\n return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];\n };\n var getAlign = function getAlign() {\n return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n };\n var getZeroAndEmpty = function getZeroAndEmpty() {\n return ['', '0', isArbitraryValue];\n };\n var getBreaks = function getBreaks() {\n return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n };\n var getNumber = function getNumber() {\n return [isNumber, isArbitraryNumber];\n };\n var getNumberAndArbitrary = function getNumberAndArbitrary() {\n return [isNumber, isArbitraryValue];\n };\n return {\n cacheSize: 500,\n theme: {\n colors: [isAny],\n spacing: [isLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumber(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmpty(),\n contrast: getNumber(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumber(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumber(),\n scale: getNumber(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n \"float\": [{\n \"float\": ['right', 'left', 'none']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [].concat(getPositions(), [isArbitraryValue])\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal'].concat(getAlign())\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal'].concat(getAlign(), ['baseline'])\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [].concat(getAlign(), ['baseline'])\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize, isArbitraryValue]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [].concat(getLineStyles(), ['wavy'])\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isArbitraryValue, isLength]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n \"break\": [{\n \"break\": ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [].concat(getPositions(), [isArbitraryPosition])\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryUrl]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [].concat(getLineStyles(), ['hidden'])\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: [''].concat(getLineStyles())\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isArbitraryValue, isLength]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmpty()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': getBlendModes()\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: ['appearance-none'],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {\n pan: ['x', 'left', 'right', 'y', 'up', 'down']\n }]\n }],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only']\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n}\n\nexport { getDefaultConfig };\n//# sourceMappingURL=default-config.mjs.map\n","/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nfunction mergeConfigs(baseConfig, configExtension) {\n for (var key in configExtension) {\n mergePropertyRecursively(baseConfig, key, configExtension[key]);\n }\n return baseConfig;\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);\nfunction mergePropertyRecursively(baseObject, mergeKey, mergeValue) {\n if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {\n baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);\n return;\n }\n if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {\n if (baseObject[mergeKey] === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n for (var nextKey in mergeValue) {\n mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);\n }\n }\n}\n\nexport { mergeConfigs };\n//# sourceMappingURL=merge-configs.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\nimport { mergeConfigs } from './merge-configs.mjs';\n\nfunction extendTailwindMerge(configExtension) {\n for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n createConfig[_key - 1] = arguments[_key];\n }\n return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {\n return mergeConfigs(getDefaultConfig(), configExtension);\n }].concat(createConfig));\n}\n\nexport { extendTailwindMerge };\n//# sourceMappingURL=extend-tailwind-merge.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\n\nvar twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\n\nexport { twMerge };\n//# sourceMappingURL=tw-merge.mjs.map\n","import { e, b, g, c, f, a, h } from './chunk-T24HS5CV.js';\nimport { twMerge, extendTailwindMerge } from 'tailwind-merge';\n\nvar re={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Z=s=>s||void 0,j=(...s)=>Z(e(s).filter(Boolean).join(\" \")),R=null,O={},q=!1,w=(...s)=>d=>d.twMerge?((!R||q)&&(q=!1,R=b(O)?twMerge:extendTailwindMerge(O)),Z(R(j(s)))):j(s),Y=(s,d)=>{for(let e in d)s.hasOwnProperty(e)?s[e]=j(s[e],d[e]):s[e]=d[e];return s},se=(s,d)=>{let{extend:e=null,slots:N={},variants:F={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:U={}}=s,m={...re,...d},M=e!=null&&e.base?j(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!b(e.variants)?g(F,e.variants):F,A=e!=null&&e.defaultVariants&&!b(e.defaultVariants)?{...e.defaultVariants,...U}:U;!b(m.twMergeConfig)&&!c(m.twMergeConfig,O)&&(q=!0,O=m.twMergeConfig);let $=b(N)?{}:{base:s==null?void 0:s.base,...N},h$1=b(e==null?void 0:e.slots)?$:Y({...e==null?void 0:e.slots},b($)?{base:s==null?void 0:s.base}:$),v=l=>{if(b(g$1)&&b(N)&&b(e==null?void 0:e.slots))return w(M,l==null?void 0:l.class,l==null?void 0:l.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The \"compoundVariants\" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The \"compoundSlots\" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n==\"string\")r=r.concat(h(n).split(\" \").map(c=>`${t}:${c}`));else if(Array.isArray(n))r=r.concat(n.reduce((c,f)=>c.concat(`${t}:${f}`),[]));else if(typeof n==\"object\"&&typeof i==\"string\"){for(let c in n)if(n.hasOwnProperty(c)&&c===i){let f=n[c];if(f&&typeof f==\"string\"){let o=h(f);r[i]?r[i]=r[i].concat(o.split(\" \").map(u=>`${t}:${u}`)):r[i]=o.split(\" \").map(u=>`${t}:${u}`);}else Array.isArray(f)&&f.length>0&&(r[i]=f.reduce((o,u)=>o.concat(`${t}:${u}`),[]));}}return r},W=(t,n=g$1,a$1=null,i=null)=>{var I;let r=n[t];if(!r||b(r))return null;let c=(I=i==null?void 0:i[t])!=null?I:l==null?void 0:l[t];if(c===null)return null;let f=a(c),o=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=A==null?void 0:A[t],b$1=[];if(typeof f==\"object\"&&o)for(let[T,J]of Object.entries(f)){let te=r[J];if(T===\"initial\"){u=J;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(T)||(b$1=K(T,te,b$1,a$1));}let S=r[f]||r[a(u)];return typeof b$1==\"object\"&&typeof a$1==\"string\"&&b$1[a$1]?Y(b$1,S):b$1.length>0?(b$1.push(S),b$1):S},x=()=>g$1?Object.keys(g$1).map(t=>W(t,g$1)):null,P=(t,n)=>{if(!g$1||typeof g$1!=\"object\")return null;let a=new Array;for(let i in g$1){let r=W(i,g$1,t,n),c=t===\"base\"&&typeof r==\"string\"?r:r&&r[t];c&&(a[a.length]=c);}return a},z={};for(let t in l)l[t]!==void 0&&(z[t]=l[t]);let D=(t,n)=>{var i;let a=typeof(l==null?void 0:l[t])==\"object\"?{[t]:(i=l[t])==null?void 0:i.initial}:{};return {...A,...z,...a,...n}},G=(t=[],n)=>{let a=[];for(let{class:i,className:r,...c}of t){let f=!0;for(let[o,u]of Object.entries(c)){let b=D(o,n);if(Array.isArray(u)){if(!u.includes(b[o])){f=!1;break}}else if(b[o]!==u){f=!1;break}}f&&(i&&a.push(i),r&&a.push(r));}return a},H=t=>{let n=G(C,t),a=G(e==null?void 0:e.compoundVariants,t);return f(a,n)},p=t=>{let n=H(t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i==\"string\"&&(a.base=w(a.base,i)(m)),typeof i==\"object\")for(let[r,c]of Object.entries(i))a[r]=w(a[r],c)(m);return a},ee=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...c}of V){if(!b(c)){let f=!0;for(let o of Object.keys(c)){let u=D(o,t)[o];if(u===void 0||(Array.isArray(c[o])?!c[o].includes(u):c[o]!==u)){f=!1;break}}if(!f)continue}for(let f of a)n[f]=n[f]||[],n[f].push([i,r]);}return n};if(!b(N)||!b(e==null?void 0:e.slots)){let t={};if(typeof h$1==\"object\"&&!b(h$1))for(let n of Object.keys(h$1))t[n]=a=>{var i,r;return w(h$1[n],P(n,a),((i=p(a))!=null?i:[])[n],((r=ee(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return w(M,x(),H(),l==null?void 0:l.class,l==null?void 0:l.className)(m)},_=()=>{if(!(!g$1||typeof g$1!=\"object\"))return Object.keys(g$1)};return v.variantKeys=_(),v.extend=e,v.base=M,v.slots=h$1,v.variants=g$1,v.defaultVariants=A,v.compoundSlots=V,v.compoundVariants=C,v},fe=s=>(d,e)=>se(d,e?g(s,e):s);\n\nexport { w as cn, j as cnBase, fe as createTV, re as defaultConfig, se as tv, Z as voidEmpty };\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const layoutBase = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full',\n wrapper: 'tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-lumina',\n wrapper: 'tw--bg-light-whisper tw--text-light-zephyr-100',\n },\n dark: {\n base: 'tw--bg-dark-lumina',\n wrapper: 'tw--bg-dark-whisper tw--text-white',\n }\n },\n minimized: {\n true: 'tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md'\n }\n },\n});\n\nexport const layoutHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0]',\n },\n variants: {\n theme: {\n light: 'tw--shadow-light-zephyr-200',\n dark: 'tw--shadow-dark-zephyr-200',\n },\n },\n});\n\nexport const layoutFoot = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]',\n input: 'tw--flex-1 tw--pr-2',\n button: 'tw--flex tw--grow-0',\n },\n});\n\nexport default { layoutBase, layoutHead, layoutFoot };\n","import { node } from 'prop-types';\nimport { useAppSelector, useWindowSize } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { layoutBase as variant } from './variants';\n\nexport const LayoutBase = ({ head, stream, foot }) => {\n const { themeId: theme, isPluginMode } = useAppSelector(getConfig);\n const { base, wrapper } = variant({ theme });\n const [_, height] = useWindowSize();\n\n return (\n \n
\n { head }\n { stream }\n { foot }\n
\n
\n );\n};\n\nLayoutBase.propTypes = {\n head: node.isRequired,\n stream: node.isRequired,\n foot: node.isRequired,\n};\n\nexport default LayoutBase;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const profile = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--select-none',\n avatar: 'tw--rounded-full',\n info: '',\n name: '',\n role: '',\n imgWrapper: ''\n },\n variants: {\n theme: {\n light: {\n role: '',\n },\n dark: {\n role: '',\n },\n },\n orientation: {\n horizontal: {\n base: 'tw--flex-row tw--text-left',\n avatar: 'tw--shrink',\n name: 'tw--text-xl/7 tw--font-bold tw--leading-[30px]',\n info: 'tw--pl-[10px]'\n },\n vertical: {\n base: 'tw--flex-col tw--text-center',\n name: 'tw--text-[24px] tw--font-semibold',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'light',\n class: 'tw--text-light-zephyr-600 tw--font-medium'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'light',\n class: 'tw--text-light-zephyr-800'\n },\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-600'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-800'\n },\n {\n slots: ['imgWrapper'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots' },\n {\n slots: ['avatar'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--h-[50px]',\n },\n {\n slots: ['avatar'],\n orientation: 'vertical',\n minimized: false,\n class: 'tw--h-[60px]',\n },\n ],\n});\n\nexport default profile;\n","import { string, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { profile as variant } from './variants';\n\nexport const Profile = ({ orientation = 'horizontal', minimized = false }) => {\n const { aiProfile, themeId: theme } = useAppSelector(getConfig);\n const { base, avatar, info, name, role, imgWrapper } = variant({ theme, orientation, minimized });\n\n return (\n
\n \n \n \n
\n
{ aiProfile.name }
\n
{ aiProfile.role }
\n
\n
\n );\n};\n\nProfile.propTypes = {\n orientation: string,\n minimized: bool,\n};\n\nexport default Profile;\n","import { useAppSelector } from '@/hooks';\n\nimport { Profile } from '@/components/Profile';\nimport { getConfig } from '@/store/slices/config';\nimport { layoutHead as variant } from './variants';\n\nexport const LayoutHead = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n
\n \n
\n );\n};\n\nexport default LayoutHead;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","export const config = {\n transports: ['websocket'],\n upgrade: false,\n pingInterval: 1000 * 60 * 5,\n pingTimeout: 1000 * 60 * 3,\n secure: true,\n reconnect: true,\n};\n\n// DEV Note: TS Enum\nexport const events = {\n chat: 'chat',\n chatHistory: 'chat-history',\n connect: 'connect',\n error: 'error',\n disconnect: 'disconnect',\n streamStart: 'stream-start',\n streamData: 'stream-data',\n streamEnd: 'stream-end',\n streamError: 'stream-error',\n};\n\nexport default { config, events };\n","export const roles = {\n user: 'user',\n assistant: 'assistant',\n};\n\nexport default roles;\n","// DEV Note: TS Enum\nexport const intentions = {\n email: 'email_intent',\n payment: 'payment_intent',\n emailError: 'email_validation_error',\n emailSuccess: 'email_validation_success',\n destroy: 'payment_intent_destroy'\n};\n\nexport default { intentions };\n","import { EventEmitter } from 'node:events';\n\nimport { intentions } from '@/config';\n\nexport const intent = {\n type: intentions,\n core: new EventEmitter()\n};\n\nexport default intent;\n","import { createSlice } from '@reduxjs/toolkit';\nimport { intentions as initialState } from '../initialState';\n\nconst intentionsSlice = createSlice({\n name: 'intentions',\n initialState,\n reducers: {\n setEmail(state, { payload }) {\n state.email.current = payload;\n },\n setEmailSuccess(state, { payload }) {\n state.email.success = payload;\n },\n setEmailError(state, { payload }) {\n state.email.error = payload;\n },\n setIsEmailLoading(state, { payload }) {\n state.email.isLoading = payload;\n },\n setIsEmailFormVisible(state, { payload }) {\n state.email.isFormVisible = payload;\n },\n setIsPaymentButtonVisible(state, { payload }) {\n state.payment.isButtonVisible = payload;\n },\n setPaymentFormVisibility(state, { payload }) {\n state.payment.isFormVisible = payload;\n },\n setIsPaymentSuccessful(state, { payload }) {\n state.payment.isSuccessful = payload;\n },\n setPaymentIntentError(state, { payload }) {\n state.payment.error = payload;\n },\n setLink(state, { payload }) {\n state.link = { ...state.link, ...payload };\n },\n // Response Form reducers\n setResponse(state, { payload }) {\n state.response.value = payload;\n },\n setResponseFormVisibility(state, { payload }) {\n if (payload.isFormVisible !== undefined) {\n state.response.isFormVisible = payload.isFormVisible;\n return;\n }\n state.response.isFormVisible = !payload.intentions.link.isVisible && !payload.intentions.email.isFormVisible && !payload.intentions.payment.isFormVisible && !payload.intentions.payment.isButtonVisible && payload.options.length === 0;\n },\n setResponseLoadingStatus(state, { payload }) {\n state.response.isLoading = payload;\n },\n }\n});\n\nexport const getEmailIntentions = state => state.intentions.email;\nexport const getPaymentIntentions = state => state.intentions.payment;\nexport const getLinkIntentions = state => state.intentions.link;\nexport const getResponseIntentions = state => state.intentions.response;\n\nexport const { setEmail, setEmailSuccess,\n setIsPaymentSuccessful, setPaymentFormVisibility,\n setEmailError, setIsEmailLoading,\n setIsEmailFormVisible, setIsPaymentButtonVisible,\n setLink, setResponse, setResponseFormVisibility,\n setResponseLoadingStatus, setPaymentIntentError\n} = intentionsSlice.actions;\n\nexport default intentionsSlice.reducer;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--relative tw--flex tw--items-center',\n input: 'tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none',\n loader: 'tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]',\n spin: 'tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto'\n },\n variants: {\n theme: {\n light: {\n base: '',\n input: 'tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold',\n loader: '',\n spin: 'tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600',\n },\n dark: {\n base: '',\n input: 'tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold',\n loader: '',\n spin: 'w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600',\n },\n },\n },\n});\n\nexport default basic;\n","import { string, func, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Input = ({ type, ref = null, placeholder = '', onChange = null, onKeyUp = null, isLoading = false, value = null, e2e = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, input, loader, spin } = variant({ theme });\n\n return (\n
\n \n\n { isLoading && (\n \n \n \n ) }\n
\n );\n};\n\nInput.propTypes = {\n type: string.isRequired,\n ref: string,\n value: string,\n placeholder: string,\n onChange: func,\n onKeyUp: func,\n isLoading: bool,\n e2e: string,\n};\n\nexport default Input;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glazeBg tw--text-light-glazeText tw--border-light-seraph tw--font-medium',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText tw--border-dark-glaze',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--text-[inherit]',\n },\n variants: {\n theme: {\n light: { base: 'tw--text-light-status' },\n dark: { base: 'tw--text-dark-seraph' },\n },\n outlined: {\n true: 'tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow',\n false: 'tw--bg-[transparent]',\n },\n },\n});\n","import { string, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Btn = ({ text = null, onClick = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n { text }\n \n );\n};\n\nBtn.propTypes = {\n text: string.isRequired,\n onClick: func,\n};\n\nexport default Btn;\n","import { element, bool, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { icon as variant } from './variants';\n\n// eslint-disable-next-line react/prop-types\nexport const IconBtn = ({ children, outlined = false, onClick = null, e2e = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme, outlined });\n\n return (\n \n { children }\n \n );\n};\n\nIconBtn.propTypes = {\n children: element.isRequired, // DEV NOTE: this explicitly validates for a single child to be passed\n outlined: bool,\n onClick: func,\n};\n\nexport default IconBtn;\n","var IDX=256, HEX=[], SIZE=256, BUFFER;\nwhile (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);\n\nexport function uid(len) {\n\tvar i=0, tmp=(len || 11);\n\tif (!BUFFER || ((IDX + tmp) > SIZE*2)) {\n\t\tfor (BUFFER='',IDX=0; i < SIZE; i++) {\n\t\t\tBUFFER += HEX[Math.random() * 256 | 0];\n\t\t}\n\t}\n\n\treturn BUFFER.substring(IDX, IDX++ + tmp);\n}\n","// DEV Note: will be depricated, replace with env vars\nexport const STORAGE_KEY = 'history';\nexport const CHAT_SEEN_KEY = 'chatSeen';\nexport const ALREADY_REGISTERED_KEY = 'showAlreadyRegisteredUser';\nexport const SHOW_PAYMENT_BUTTON_KEY = 'showPaymentButton';\nexport const SOCKET_IO_URL = 'http://localhost:5000';\nexport const UNSENT_MESSAGES_KEY = 'unsent';\nexport const GO_THROUGH_QUIZ_KEY = 'hasToGoThroughQuiz';\nexport const EXISTING_PRODUCT_LINK_KEY = 'existingProductLink';\nexport const CID = 'cid';\n","import { dateFormattingOptions } from '../config';\nimport { CHAT_SEEN_KEY, CID } from '../config/env';\n// eslint-disable-next-line import/prefer-default-export\n\n/**\n * Extracts options from a string enclosed in square brackets.\n *\n * @param {string} val - The input string possibly containing options enclosed in square brackets.\n * @returns {Object} An object containing the content with options removed and an array of extracted options.\n * @property {string} message - The content with options removed.\n * @property {Array<{id: string, label: string, value: string}>} options - An array of extracted options as objects.\n */\nexport const extractOptionSet = (val) => {\n const match = /\\[(.*?)\\]/.exec(val);\n\n if (!match || match.length <= 1) {\n return { content: val, options: [] };\n }\n\n return {\n content: val.replace(match[0], ''),\n options: match[1].split('|').map((item, index) => ({ id: `opt-${index}`, label: item, value: item })),\n };\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {string} val - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport const formatDateByLocale = (val, locale = undefined, options = dateFormattingOptions) => {\n const date = new Date(val);\n const formattedDate = date.toLocaleDateString(locale, options);\n\n return formattedDate;\n};\n\n/**\n * Extracts a link from a given string and appends query parameters if specified.\n *\n * @param {string} val - The input string from which the link will be extracted.\n * @param {string} userId - The user ID used for query parameter construction.\n * @example constructLink('here is a link to a diet website https://usa.example.com', '12311231a2', hasQueryParams('https://usa.example.com'));\n * //output: https://usa.example.com/?utm_chat=salesmen-keto-redirect&chatSeen=true&cid=12311231a2\n * @returns {string|boolean} The extracted link with optional query parameters or `false` if no link is found.\n */\nexport const constructLink = (val) => {\n const hasQueryParams = (url) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n };\n\n // matching example: 'Secure site: https://www.example.com' will give [ https://www.example.com ]\n const REGEX_URL = /\\b((?:https?:\\/\\/|www\\.)[^\\s/$.?#][^\\s{}[\\]()<>]*)\\b/gi;\n let search = '';\n\n if (window.location.search) {\n search = new URLSearchParams(window.location.search);\n\n search.append(CHAT_SEEN_KEY, 'true');\n search.append(CID, localStorage.getItem('__cid'));\n search = '/?' + search;\n }\n\n // Extract the link from the string\n const matches = val.match(REGEX_URL);\n const link = matches ? matches[0] : '';\n\n if (!link) {\n return false;\n }\n\n if (hasQueryParams(link)) {\n return link;\n }\n\n return link + search;\n};\n","/**\n * @description Check if value is of type 'null'\n * @param val\n * @returns {boolean}\n */\nexport const isNull = val => val === null;\n\n/**\n * @description Check if value is of type 'array'\n * @param val\n * @returns {boolean}\n */\nexport const isArr = val => Array.isArray(val);\n\n/**\n * @description Check if value is of type 'object'\n * @param val\n * @returns {boolean}\n */\nexport const isObj = val => typeof val === 'object' && !isArr(val) && !isNull(val);\n\n/**\n * @description Check if value is of type 'number'\n * @param val\n * @returns {boolean}\n */\n// eslint-disable-next-line no-restricted-globals\nexport const isNum = val => typeof val === 'number' && !isNaN(val);\n\n/**\n * @description Check if value is of type 'function'\n * @param val\n * @returns {boolean}\n */\nexport const isFunc = val => typeof val === 'function';\n\n/**\n * @description Check if value is of type 'string'\n * @param val\n * @returns {boolean}\n */\nexport const isStr = val => typeof val === 'string';\n\n/**\n * @description Check if value is of type 'undefined'\n * @param val\n * @returns {boolean}\n */\nexport const isUndef = val => typeof val === 'undefined';\n\n/**\n * @description Check if value is of type 'boolean'\n * @param val\n * @returns {boolean}\n */\nexport const isBool = val => typeof val === 'boolean';\n\n/**\n * @description Is non empty string\n * @param val\n * @returns {boolean|boolean}\n */\nexport const isNonEmptyStr = val => isStr(val) && val !== '';\n\n/**\n * @description Is non empty array\n * @param val\n * @returns {boolean|boolean}\n */\nexport const isNonEmptyArr = val => isArr(val) && val.length > 0;\n\n/**\n * @description To int\n * @param val\n * @returns {number}\n */\nexport const toInt = val => parseInt(val, 10);\n\n/**\n * @description Check if object has property\n * @param obj\n * @param prop\n * @returns {boolean}\n */\nexport const hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\n\n/**\n * @description Check if object has method\n * @param obj\n * @param method\n * @returns {boolean}\n */\nexport const hasMethod = (obj, method) => hasProp(obj, method) && isFunc(obj[method]);\n\n/**\n * @description Get object keys\n * @param obj\n * @returns {Array}\n */\nexport const getKeys = obj => Object.keys(obj);\n\n/**\n * @description Check if object has key\n * @param obj\n * @param key\n * @returns {boolean}\n */\nexport const hasKey = (obj, key) => getKeys(obj).indexOf(key) > -1;\n\n/**\n * @description Has keys\n * @param obj\n * @returns {boolean}\n */\nexport const hasKeys = obj => getKeys(obj).length > 0;\n\n/**\n * @description Iterate over each key of an object\n * @param obj\n * @param callback\n */\nexport const eachKey = (obj, callback) => {\n Object.keys(obj).forEach((key, index) => callback(key, obj[key], index));\n};\n\n/**\n * @description Linear iterator for object properties\n * @param obj\n * @param callback\n */\nexport const eachProp = (obj, callback) => {\n eachKey(obj, (key, prop, index) => callback(prop, key, index));\n};\n\n/**\n * @description Extract nested prop\n * @param obj\n * @param keysText\n * @returns {*}\n */\nexport const extractNestedProp = (obj, keysText) => {\n const keys = keysText.split('.');\n const keysLength = keys.length - 1;\n let keysIndex = 0;\n let isValidKey = true;\n let targetObj = { ...obj };\n let targetProp;\n let nextTarget;\n\n if (keys.length > 0) {\n while (isValidKey) {\n nextTarget = targetObj[keys[keysIndex]];\n\n if (keysIndex === keysLength) {\n targetProp = !isUndef(nextTarget) && !isNull(nextTarget)\n ? nextTarget\n : undefined;\n break;\n }\n\n if (!isObj(nextTarget)) {\n isValidKey = false;\n break;\n }\n\n targetObj = nextTarget;\n keysIndex += 1;\n }\n }\n\n return targetProp;\n};\n\n/**\n * @description Debounce\n * @returns {function}\n */\nexport const debounce = ({ timeout, id }) => {\n const timers = {};\n\n return callback => {\n if (timers[id]) {\n clearTimeout(timers[id]);\n }\n timers[id] = setTimeout(callback, timeout);\n };\n};\n\n/**\n * @description Hide page scroll\n */\nexport const hidePageScroll = () => {\n document.documentElement.classList.add('hide-scroll');\n};\n\n/**\n * @description Show page scroll\n */\nexport const showPageScroll = () => {\n document.documentElement.classList.remove('hide-scroll');\n};\n\n/**\n * Checks if a URL contains query parameters.\n *\n * @param {string} url - The URL to check for query parameters.\n * @returns {boolean} `true` if the URL contains query parameters, `false` otherwise.\n */\nexport const hasQueryParams = (url) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n};\n\n/**\n * Retrieves certain query parameter from a URL.\n *\n * @example getQueryParam(window.location.search, 'utm_chat')\n * @param {string} url\n * @param {string} param\n */\nexport const getQueryParam = (url, param) => {\n const urlParams = new URLSearchParams(url);\n\n return urlParams.get(param);\n};\n\n/**\n * Checks if 24 hours have passed since the given date.\n *\n * @function isExpired\n * @param {string} date - The date to compare in ISO 8601 format (e.g., \"2023-07-04T14:11:00.097Z\").\n * @returns {boolean} Returns true if 24 hours have passed since the given date, or false otherwise.\n */\nexport const isExpired = (date, maxHours = 24) => {\n const currentDate = new Date();\n const givenDate = new Date(date);\n const elapsedMilliseconds = currentDate - givenDate;\n const elapsedHours = elapsedMilliseconds / (1000 * 60 * 60); // Convert milliseconds to hours\n\n return elapsedHours >= maxHours;\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {string} dateString - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport function formatDateByLocale(dateString) {\n const date = new Date(dateString);\n\n const options = {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n };\n\n const formattedDate = date.toLocaleDateString(undefined, options);\n\n return `${formattedDate}`.toUpperCase();\n}\n\nexport const checkForSpecialPhrases = (string, specialMessages) => {\n const specialRegex = specialMessages.map(keyword => new RegExp(`\\\\[?${keyword}\\\\]?`));\n return specialRegex.some(regex => string.match(regex));\n};\n","import { createSlice } from '@reduxjs/toolkit';\nimport { uid } from 'uid';\nimport { chat as initialState } from '@/store/initialState';\nimport { extractOptionSet } from '@/utils/formatting';\nimport { getQueryParam } from '@/utils';\nimport { roles } from '@/config';\n\nconst configSlice = createSlice({\n name: 'chat',\n initialState,\n reducers: {\n setOutgoing(state, { payload }) {\n state.outgoing = {\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: localStorage.getItem('__cid'),\n role: roles.user,\n message: payload,\n };\n },\n resetOutgoing(state) {\n state.outgoing = initialState.outgoing;\n },\n setIncoming(state, { payload }) {\n state.incoming = {\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: localStorage.getItem('__cid'),\n role: roles.assistant,\n content: payload,\n };\n },\n setError(state, { payload }) {\n state.error = payload;\n },\n resetError(state) {\n state.error = initialState.error;\n },\n resetIncoming(state) {\n state.incoming = initialState.incoming;\n },\n addIncomingChunk(state, { payload }) {\n state.incoming = {\n ...state.incoming,\n content: state.incoming.content + payload.chunk,\n };\n },\n setHistory(state, { payload }) {\n state.history = payload.map((item) => ({ ...item, id: uid(), role: item.role, ...extractOptionSet(item.content) }));\n },\n appendHistory(state, { payload }) {\n let bubbleContent;\n\n if (payload.role === roles.assistant) {\n if (payload.options && payload.options.length > 0) {\n bubbleContent = { content: payload.content, options: payload.options, isSpecial: payload.isSpecial };\n } else {\n bubbleContent = { ...extractOptionSet(payload.content), isSpecial: payload.isSpecial };\n }\n }\n\n if (payload.role === roles.user) {\n bubbleContent = { content: payload.content };\n }\n\n state.history.push({ id: uid(), ...bubbleContent, role: payload.role });\n },\n resetHistory(state) {\n state.history = initialState.history;\n },\n setTextToParse(state, { payload }) {\n state.textToParse += payload;\n },\n resetTextToParse(state) {\n state.textToParse = initialState.textToParse;\n },\n setIsLoading(state) {\n state.isLoading = true;\n },\n resetIsLoading(state) {\n state.isLoading = initialState.isLoading;\n },\n appendUnsent(state, { payload }) {\n state.unsent = [...state.unsent, payload];\n },\n resetUnsent(state) {\n state.unsent = initialState.unsent;\n },\n setShouldSendUnsent(state, { payload }) {\n state.shouldSendUnsent = payload;\n },\n setConnected(state, { payload }) {\n state.connected = payload;\n },\n setClosed(state) {\n state.closed = true;\n },\n },\n});\n\nexport const getCurrentPointer = (state) => state.chat.history[state.chat.history.length - 1]?.id;\nexport const getStream = state => state.chat;\n\nexport const { setOutgoing, setIncoming,\n resetIncoming, addIncomingChunk,\n resetOutgoing, setHistory, resetHistory,\n appendHistory, setTextToParse, resetTextToParse,\n setIsLoading, resetIsLoading, appendUnsent, resetUnsent,\n setShouldSendUnsent, setError, resetError,\n setConnected, setClosed\n} = configSlice.actions;\n\nexport default configSlice.reducer;\n","import { useState } from 'react';\nimport { getResponseIntentions } from '@/store/slices/intentions';\nimport { getConfig } from '@/store/slices/config';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { Input } from '@/components/Input';\nimport { IconBtn } from '@/components/Button';\n\nimport { appendUnsent, setShouldSendUnsent } from '@/store/slices/chat';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const ResponseForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getResponseIntentions);\n const { base, input, button } = variant({ theme });\n const [response, setCurrentResponse] = useState('');\n const [timerId, setTimerId] = useState(null);\n\n const handleInputChange = (e) => {\n setCurrentResponse(e.target.value);\n setTimerToSendMessage();\n };\n\n const handleFormSubmit = (e) => {\n e.preventDefault();\n\n if (response.trim()) {\n dispatch(appendUnsent(response));\n }\n\n setCurrentResponse('');\n setTimerToSendMessage();\n };\n\n const setTimerToSendMessage = () => {\n clearTimeout(timerId);\n const currentId = setTimeout(() => {\n dispatch(setShouldSendUnsent(true));\n }, 3000);\n setTimerId(currentId);\n };\n\n return (\n
\n
\n \n
\n
\n \n \n \n \n \n
\n
\n );\n};\n\nexport default ResponseForm;\n","import { useState } from 'react';\nimport { intent } from '@/services/intentions';\nimport { getEmailIntentions, setEmail, setIsEmailLoading } from '@/store/slices/intentions';\nimport { getConfig } from '@/store/slices/config';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { Input } from '@/components/Input';\nimport { IconBtn } from '@/components/Button';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const EmailForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme, translations } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getEmailIntentions);\n const { base, input, button } = variant({ theme });\n const [email, setCurrentEmail] = useState('');\n\n const handleInputChange = (e) => {\n const currentValue = e.target.value.trim();\n setCurrentEmail(currentValue);\n };\n\n const handleFormSubmit = (e) => {\n e.preventDefault();\n\n if (email === '') {\n return;\n }\n\n dispatch(setIsEmailLoading(true));\n dispatch(setEmail(email));\n intent.core.emit(intent.type.email, { email });\n setCurrentEmail('');\n };\n\n return (\n
\n
\n \n
\n
\n \n \n \n \n \n
\n
\n );\n};\n\nexport default EmailForm;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const payment = /*tw*/ tv({\n slots: {\n btn: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]',\n\n link: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl',\n }\n});\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50',\n },\n variants: {\n theme: {\n light: 'tw--bg-light-lumina',\n dark: 'tw--bg-dark-lumina'\n }\n }\n});\n\nexport const head = /*tw*/ tv({\n slots: {\n wrapper: 'tw--flex tw--justify-between tw--w-full tw--mb-7',\n left: 'tw--flex tw--flex-col',\n leftTop: 'tw--flex tw--flex-row',\n icon: 'tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]',\n text: 'tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue',\n bottom: 'tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue',\n right: 'tw--flex tw--flex-col tw--items-end',\n price: 'tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]',\n info: 'tw--leading-[2] tw--text-[10px] tw--text-muted-blue',\n },\n});\n\nexport const close = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue',\n },\n});\n\nexport const foot = tv({\n slots: {\n base: 'tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold',\n icon: 'tw--mr-[5px]'\n },\n});\n\nexport const loader = tv({\n slots: {\n wrapper: 'loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5',\n inner: 'tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center',\n dots: 'tw--relative tw--flex tw--items-center tw--justify-center tw--p-3',\n dotsIn: 'tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full',\n progressCheckmark: 'tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center',\n panelTitle: 'js-payment-message tw--text-lg tw--font-bold tw--leading-5',\n icon: 'tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full',\n spinningTexts: 'tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]',\n filmContainer: 'js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center',\n film: 'tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72'\n },\n variants: {\n theme: {\n light: {\n wrapper: 'tw--shadow-light-card tw--bg-light-loader',\n dotsIn: 'tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots',\n icon: 'tw--bg-light-iota-dots',\n spinningTexts: 'tw--text-light-zeta tw--opacity-60'\n },\n dark: {\n wrapper: 'tw--shadow-dark-card tw--bg-dark-loader',\n dotsIn: 'tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots',\n icon: 'tw--bg-dark-iota-dots',\n spinningTexts: 'tw--text-dark-zeta tw--opacity-60'\n }\n }\n }\n});\n\nexport default payment;\n","import { object } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { head as variants } from './variants';\n\nexport const PaymentHead = ({ config = { price: '', period: '' } }) => {\n const { translations } = useAppSelector(state => state.config);\n const { wrapper, left, leftTop, icon, text, bottom, right, price, info } = variants();\n\n return (\n
\n
\n \n
\n \n \n \n \n \n { /* DEV NOTE: be aware that the text is not coming from an input so in the future it is not a good practice to use this attribute */ }\n \n
\n
\n { translations.paymentHeaderTxt2 }\n
\n
\n
\n
{ config.price }
\n
\n { config.period }\n
\n
\n
\n
\n );\n};\n\nPaymentHead.propTypes = {\n config: object\n};\n\nexport default PaymentHead;\n","import { string, func, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { payment as variant } from './variants';\n\nexport const PaymentButton = ({ text = null, onClick = null, e2e = null, disabled = false }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { btn } = variant({ theme });\n\n return (\n \n \n \n \n \n { text }\n \n );\n};\n\nPaymentButton.propTypes = {\n text: string.isRequired,\n onClick: func.isRequired,\n disabled: bool,\n e2e: string\n};\n\nexport default PaymentButton;\n","import { func } from 'prop-types';\nimport { close as variants } from './variants';\n\nexport const CloseButton = ({ onClick }) => {\n const { base } = variants();\n return (\n \n \n \n \n \n );\n};\n\nCloseButton.propTypes = {\n onClick: func.isRequired\n};\n\nexport default CloseButton;\n","import { foot as variants } from './variants';\n\nexport const PaymentFooter = () => {\n const { base, icon } = variants();\n return (\n
\n \n \n \n SSL Secure Connection\n
\n );\n};\n\nexport default PaymentFooter;\n","import { array, string } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { loader as variants } from './variants';\n\nexport const PaymentLoader = ({ texts = [], title = '' }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { wrapper, inner, dots, dotsIn, icon, progressCheckmark, panelTitle, spinningTexts, filmContainer, film } = variants({ theme });\n return (\n \n
\n
\n \n
\n
\n\n
\n \n \n \n \n \n \n

{ title }

\n
\n\n
\n
\n { texts.map((txt) => (\n
\n { txt }\n
\n )) }\n
\n
\n
\n );\n};\n\nPaymentLoader.propTypes = {\n texts: array.isRequired,\n title: string.isRequired,\n};\n\nexport default PaymentLoader;\n","import { func, object, string } from 'prop-types';\nimport payment from './variants';\n\nexport const Link = ({ href, text, onClick, forwardedRef, e2e = null }) => {\n const { link } = payment();\n return (\n { text }\n \n );\n};\n\nLink.propTypes = {\n onClick: func.isRequired,\n text: string.isRequired,\n e2e: string,\n forwardedRef: object.isRequired,\n href: string.isRequired,\n};\n\nexport default Link;\n","import { tv } from 'tailwind-variants';\n\n// eslint-disable-next-line spaced-comment\nexport const overlay = /*tw*/ tv({\n slots: {\n base: 'loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-whisper'\n },\n dark: {\n base: 'tw--bg-dark-whisper'\n }\n }\n }\n});\n\nexport default overlay;\n","import { node } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport overlay from './variants';\n\nexport const Overlay = ({ children }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = overlay({ theme });\n return (\n
\n { children }\n
\n );\n};\n\nOverlay.propTypes = { children: node.isRequired };\n\nexport default Overlay;\n","import { func } from 'prop-types';\nimport { Overlay } from '@/components/Overlay';\nimport { PaymentHead, CloseButton, PaymentFooter, PaymentLoader } from '@/components/Payment';\nimport { useAppSelector } from '@/hooks';\nimport { wrapper } from '../Payment/variants';\n\nexport const PaymentScene = ({ onClose }) => {\n const { displayPlanPrice, billingFrequencyTmsg } = useAppSelector(state => state.meta.pd);\n const { translations, themeId: theme } = useAppSelector(state => state.config);\n const { base } = wrapper({ theme });\n\n return (\n (\n
\n \n \n \n \n \n
\n \n
\n \n
\n
\n )\n );\n};\n\nPaymentScene.propTypes = {\n onClose: func.isRequired,\n};\n\nexport default PaymentScene;\n","/* eslint-disable no-undef */\n// eslint-disable-next-line import/prefer-default-export\nexport const track = ({ eventType, systemType, utmParams, customerUuid, email, phone }) => {\n if (window.trackEventInGTM && window.tracking) {\n const event = window.tracking.event({\n eventType,\n systemType,\n uri: window.location.pathname,\n domain: window.location.hostname,\n email: email || null,\n phone: phone || null,\n customerUuid,\n additionalData: {},\n utmParams,\n });\n\n window.tracking.trackClient(event);\n if (window.trackEventInGTM) {\n window.trackEventInGTM(event);\n }\n }\n};\n","import { getKeys } from '@/utils';\n\n// DEV Note: TS Enum\nexport const baseEvents = {\n addToCart: 'AddToCart',\n contact: 'Contact',\n initiateCheckout: 'InitiateCheckout',\n pageView: 'PageView',\n viewContent: 'ViewContent',\n purchase: 'Purchase',\n subscribe: 'Subscribe',\n recurringSubscriptionPayment: 'RecurringSubscriptionPayment',\n cancelSubscription: 'CancelSubscription',\n purchaseFailed: 'PurchaseFailed',\n subscribeFailed: 'SubscribeFailed',\n recurringSubscriptionPaymentFailed: 'RecurringSubscriptionPaymentFailed',\n customerCreated: 'CustomerCreated',\n subscriptionChargeback: 'SubscriptionChargeback',\n subscriptionRefund: 'SubscriptionRefund',\n transactionChargeback: 'TransactionChargeback',\n transactionRefund: 'TransactionRefund',\n};\n\n// DEV Note: TS Enum\nexport const customEvents = {\n firstMessage: 'FirstMessage',\n linkProvided: 'LinkProvided',\n linkClicked: 'LinkClicked',\n emailField: 'EmailField',\n emailEntered: 'EmailEntered',\n emailWrong: 'EmailWrong',\n emailExist: 'EmailExist',\n priceSeen: 'PriceSeen',\n buttonClick: 'ButtonClick',\n};\n\nexport const baseEventsArr = getKeys(baseEvents);\nexport const customEventsArr = getKeys(customEvents);\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const streamBase = /*tw*/ tv({\n slots: {\n base: 'tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0',\n second: 'tw--mt-0 tw--mb-auto',\n date: 'tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--text-light-zephyr-100 tw--font-medium',\n },\n dark: {\n base: 'tw--text-dark-zephyr-100'\n }\n }\n }\n});\n\nexport const streamHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10',\n title: 'tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none',\n },\n variants: {\n theme: {\n light: { title: 'tw--font-medium' },\n }\n }\n});\n\nexport const streamRow = /*tw*/ tv({\n slots: {\n base: 'tw--grid',\n },\n});\n\nexport const flickerEffect = /* tw */ tv({\n slots: {\n base: 'after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none',\n },\n variants: {\n isTyping: {\n true: 'after:tw--animate-blink',\n false: 'after:tw--hidden'\n },\n theme: {\n light: 'after:tw--bg-light-zephyr-100',\n dark: 'after:tw--bg-dark-zephyr-100'\n }\n }\n});\n\nexport const streamBubble = /*tw*/ tv({\n slots: {\n base: 'tw--relative tw--max-w-[375px] tw--px-[15px] tw--py-[11px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5',\n action: 'tw--absolute tw--bottom-[-16px] tw--right-[-10px]'\n },\n variants: {\n theme: {\n light: {\n action: 'tw--text-light-seraph',\n base: 'tw--font-medium',\n },\n dark: {\n action: 'tw--text-dark-seraph',\n },\n },\n type: {\n assistant: {\n base: 'tw--justify-self-start',\n },\n user: {\n base: 'tw--justify-self-end',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['base'],\n theme: 'light',\n type: 'assistant',\n class: 'tw--bg-light-lumina',\n },\n {\n slots: ['base'],\n theme: 'light',\n type: 'user',\n class: 'tw--bg-light-seraph tw--text-white',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'assistant',\n class: 'tw--bg-dark-lumina',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'user',\n class: 'tw--bg-dark-seraph',\n },\n ],\n});\n\nexport const ellipsis = tv({\n slots: {\n dotFirst: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave',\n dotSecond: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay',\n dotThird: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2',\n },\n compoundSlots: [{\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'light',\n class: 'tw--bg-light-zephyr-100',\n },\n {\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'dark',\n class: 'tw--bg-dark-zephyr-100',\n }]\n});\n\nexport default { streamBase, streamHead, streamRow, streamBubble, ellipsis };\n","import { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { ellipsis as variant } from './variants';\n\nexport const Ellipsis = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { dotFirst, dotSecond, dotThird } = variant({ theme });\n return (\n
\n \n \n \n
\n );\n};\n\nexport default Ellipsis;\n","import { useRef, useState } from 'react';\nimport intent from '@/services/intentions';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { ResponseForm, EmailForm } from '@/components/Form/';\nimport { getEmailIntentions, getLinkIntentions, getPaymentIntentions, getResponseIntentions, setIsPaymentButtonVisible, setIsPaymentSuccessful, setLink, setPaymentFormVisibility, setPaymentIntentError } from '@/store/slices/intentions';\nimport { PaymentButton, Link } from '@/components/Payment';\nimport { appendHistory, getStream, setClosed } from '@/store/slices/chat';\nimport { roles } from '@/config/roles';\nimport { PaymentScene } from '@/components/Scenes/payment';\nimport { getConfig } from '@/store/slices/config';\nimport { track } from '@/services/tracking';\nimport { customEvents } from '@/config/analytics';\nimport { getMeta } from '@/store/slices/meta';\nimport { Ellipsis } from '@/components/Stream/ellipsis';\nimport { CHAT_SEEN_KEY } from '@/config/env';\n\nexport const LayoutFoot = () => {\n const dispatch = useAppDispatch();\n const { isFormVisible: isResponseFormVisible } = useAppSelector(getResponseIntentions);\n const { cid, systemType, marketing } = useAppSelector(getMeta);\n const { translations } = useAppSelector(getConfig);\n const { isVisible: isCtaVisible, text: ctaText, href: ctaHref } = useAppSelector(getLinkIntentions);\n const { isLoading } = useAppSelector(getStream);\n const { error: streamError } = useAppSelector(store => store.chat);\n const { isFormVisible: isEmailFormVisible, current, error: emailError } = useAppSelector(getEmailIntentions);\n const { isButtonVisible: isPaymentButtonVisible, isFormVisible: isPaymentFormVisible, error: paymentIntentError } = useAppSelector(getPaymentIntentions);\n const error = streamError || emailError || paymentIntentError;\n\n const ctaAfterPayButton = useRef(null);\n const [disabled, setDisabled] = useState(false);\n\n const setIsPaymentContainerVisible = (isVisible) => {\n dispatch(setPaymentFormVisibility(isVisible));\n };\n\n const onClosePaymentForm = (e) => {\n e.currentTarget.disabled = true;\n intent.core.emit(intent.type.destroy);\n setIsPaymentContainerVisible(false);\n setDisabled(false);\n };\n\n const onPaymentSuccess = () => {\n // TODO: set in store to be persisted the GO THROUGH QUIZ button\n dispatch(appendHistory({ role: roles.assistant, content: translations.tm1226 }));\n dispatch(setIsPaymentSuccessful(true));\n dispatch(setIsPaymentButtonVisible(false));\n dispatch(setLink({ href: '/', isVisible: true, text: translations.ctaTextContent }));\n setIsPaymentContainerVisible(false);\n\n setTimeout(() => {\n ctaAfterPayButton.current.click();\n }, 7000);\n };\n\n const onError = (message) => {\n dispatch(setPaymentIntentError(message));\n };\n\n const initializePaymentForm = () => {\n intent.core.emit(intent.type.payment, { setIsPaymentContainerVisible, onPaymentSuccess, onError });\n setDisabled(true);\n };\n\n const onClickCtaPay = () => {\n track({\n eventType: customEvents.linkClicked,\n systemType,\n utmParams: marketing.lastUtmParams,\n customerUuid: cid,\n email: current\n });\n\n dispatch(setClosed());\n localStorage.setItem(CHAT_SEEN_KEY, true);\n };\n\n return (\n
\n { error &&
{ error }
}\n { isPaymentFormVisible && }\n { isLoading && }\n { isCtaVisible\n && (\n \n ) }\n\n { isEmailFormVisible && }\n { isResponseFormVisible && }\n\n { isPaymentButtonVisible && (\n \n ) }\n
\n );\n};\n\nexport default LayoutFoot;\n","import { string } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { isNonEmptyStr } from '@/utils';\n\nimport { Profile } from '@/components/Profile';\nimport { getConfig } from '@/store/slices/config';\nimport { streamHead as variant } from './variants';\n\nexport const StreamHead = ({ titleTxt = '' }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, title } = variant({ theme });\n\n const hasTitle = isNonEmptyStr(titleTxt);\n\n return (\n
\n { hasTitle &&
{ titleTxt }
}\n \n
\n );\n};\n\nStreamHead.propTypes = {\n titleTxt: string,\n};\n\nexport default StreamHead;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-3 tw--rounded-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glaze tw--text-white',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-2',\n },\n});\n","import { string, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Link = ({ text = null, href = null, onClick = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n { text }\n \n );\n};\n\nLink.propTypes = {\n href: string.isRequired,\n text: string.isRequired,\n onClick: func,\n};\n\nexport default Link;\n","// This pattern will exclude {https://test.test.test} or any of those symbols {}[]()<> at the end of the link\nexport const link = /((?:https?:\\/\\/|www\\.)[^\\s/$.?#].[^\\s{}[\\]()<>]*)/gi;\n\n// { replaceStringInCurlyBracketsWithStrong('this is a strong {tagged} text {g') } => ...\nexport const curlyBraces = /\\{([^}]+)\\}/g;\n","import { curlyBraces, link } from '@/config/patterns';\nimport { constructLink } from '@/utils/formatting';\n/**\n* Replaces all string links with anchor tags.\n* @example { replaceLinksWithAnchors('hello nice to see you here is a link to diet http://www.yourketo.diet') }\n*/\nexport const replaceLinksWithAnchors = (val) => {\n const parts = val.split(link);\n\n return parts.map((part) => {\n if (link.test(part)) {\n const urlWithParams = constructLink(part);\n return (\n \n { part }\n \n );\n }\n return part;\n });\n};\n\n/**\n * Replaces the string in curly brackets with a string wrapped in tags or anchor if link exists.\n *\n * @param {string} input - The input string to process.\n * @example { replaceStringInCurlyBracketsWithStrong('this is a strong {tagged} text {g') }\n * @returns {React.ReactNode} A React element with replaced content.\n */\nexport const textModifier = (input) => {\n const parts = input.split(curlyBraces);\n return parts.map((part, index) => {\n if (index % 2 === 0) {\n return replaceLinksWithAnchors(part);\n }\n return { replaceLinksWithAnchors(part) };\n });\n};\n","/* eslint-disable react/jsx-props-no-spreading */\nimport { object } from 'prop-types';\nimport { useAppSelector, useAppDispatch } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { appendHistory, getCurrentPointer, getStream, setOutgoing } from '@/store/slices/chat';\nimport { isNonEmptyArr } from '@/utils';\n\nimport { Btn, IconBtn } from '@/components/Button';\nimport { Link } from '@/components/Link';\nimport { roles } from '@/config';\nimport { flickerEffect, streamBubble as variant } from './variants';\nimport { textModifier } from './modifiers';\n\nexport const StreamBubble = ({ item = {} }) => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const currentPointer = useAppSelector(getCurrentPointer);\n const { incoming } = useAppSelector(getStream);\n const displayOptionList = isNonEmptyArr(item.options) && item.id === currentPointer && !item.isSpecial;\n const { base, action } = variant({ theme, type: item.role });\n const { base: baseFlicker } = flickerEffect({ isTyping: !!incoming && !item.id, theme });\n const displayActionButton = false; // DEV NOTE: get from store state\n\n const setOption = (val) => {\n dispatch(setOutgoing(val));\n };\n\n const setMessage = (val) => {\n dispatch(appendHistory({ role: 'user', content: val }));\n };\n\n const OptionList = ({ items = [] }) => (\n items.map(({ id, label, value, link, noStream }) => (\n \n { link\n ? ()\n : ( setMessage(value) : () => setOption(value) } />) }\n \n ))\n );\n\n return (\n
\n \n { textModifier(item.content) }\n \n { displayOptionList &&
}\n { displayActionButton && (\n
\n \n \n \n \n \n \n
\n ) }\n
\n );\n};\n\nStreamBubble.propTypes = {\n item: object.isRequired,\n};\n\nexport default StreamBubble;\n","import { object } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { StreamBubble } from './bubble';\nimport { streamRow as variant } from './variants';\n\nexport const StreamRow = ({ item = {} }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n
\n \n
\n );\n};\n\nStreamRow.propTypes = {\n item: object.isRequired,\n};\n\nexport default StreamRow;\n","import { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { getStream } from '@/store/slices/chat';\nimport { formatDateByLocale } from '@/utils';\nimport { StreamHead } from './head';\nimport { StreamRow } from './row';\nimport { streamBase as variant } from './variants';\n\nexport const StreamBase = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { aiProfile } = useAppSelector(getConfig);\n const { history, incoming } = useAppSelector(getStream);\n const { base, second, date } = variant({ theme });\n const firstMessage = history && history.length > 0 && history[0];\n\n return (\n
\n
\n \n { firstMessage &&
{ formatDateByLocale(firstMessage.time) }
}\n { history.map((message) => (\n )\n ) }\n { incoming && }\n
\n
\n );\n};\n\nexport default StreamBase;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--cursor-pointer tw--h-8 tw--relative tw--w-16 tw--rounded-3xl tw--border-0',\n },\n variants: {\n color: {\n enabled: 'tw--bg-light-seraph',\n disabled: 'tw--bg-light-zephyr-100'\n }\n }\n});\n\nexport const pin = /*tw*/ tv({\n slots: {\n base: 'tw--h-8 tw--w-8 tw--absolute tw---top-1/2 tw--translate-y-1/2 tw--bottom-1 tw--bg-white tw--rounded-full',\n },\n variants: {\n position: {\n enabled: 'tw--left-0',\n disabled: 'tw--right-0'\n }\n }\n});\n\nexport default { wrapper, pin };\n","/* eslint-disable import/prefer-default-export */\nimport { bool, func, string } from 'prop-types';\nimport { wrapper, pin } from './variants';\n\nexport const Toggler = ({ onToggle, on = false, title = '' }) => {\n const { base: outline } = wrapper({ color: on ? 'enabled' : 'disabled' });\n const { base: toggle } = pin({ position: on ? 'enabled' : 'disabled' });\n return (\n
\n { title }\n \n \n \n
\n );\n};\n\nToggler.propTypes = {\n onToggle: func.isRequired,\n title: string.isRequired,\n on: bool,\n};\n","/* eslint-disable import/prefer-default-export */\nimport { tv } from 'tailwind-variants';\n\nexport const wrapper = /* tw */ tv({\n slots: {\n base: 'tw--fixed tw--flex tw--gap-2 tw--flex-col tw--p-3 tw--space-y-4 tw--bg-dark-sigma tw--rounded-lg',\n },\n variants: {\n hidden: {\n true: 'tw--hidden',\n }\n }\n});\n","import { useAppDispatch, useAppSelector } from '@/hooks';\nimport { getConfig, setTheme, togglePluginMode } from '@/store/slices/config';\nimport { Toggler } from '@/components/Toggle';\nimport { wrapper } from './variants';\n\nexport const DevTools = () => {\n const dispatch = useAppDispatch();\n const { enableDevTools, themeId, isPluginMode } = useAppSelector(getConfig);\n // DEV NOTE: when more than 2 themes are available the toggler must be replaced by another component\n const setUiTheme = () => dispatch(setTheme(themeId === 'light' ? 'dark' : 'light'));\n const { base } = wrapper({ hidden: !enableDevTools });\n\n return (\n
\n \n dispatch(togglePluginMode()) }\n />\n
\n );\n};\n\nexport default DevTools;\n","/* eslint-disable no-unused-vars */\nimport { object } from 'prop-types';\nimport { useAppDispatch } from '@/hooks';\n\nimport { setConfig, setDevToolsStatus } from '@/store/slices/config';\nimport { setMeta } from '@/store/slices/meta';\n\nimport { LayoutBase, LayoutHead, LayoutFoot } from '@/components/Layout';\nimport { StreamBase } from '@/components/Stream';\nimport { DevTools } from '@/components/DevTools';\n\nexport const AppBase = ({ config = {} }) => {\n const dispatch = useAppDispatch();\n\n // Set defaults\n dispatch(setMeta(config.meta));\n dispatch(setConfig(config.app));\n dispatch(setDevToolsStatus(false)); // DEV Note: set this in a global plugin process.env.NODE_ENV === 'development'\n\n return (\n <>\n \n\n }\n stream={ }\n foot={ }\n />\n \n );\n};\n\nAppBase.propTypes = {\n config: object.isRequired,\n};\n\nexport default AppBase;\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\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, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { PureComponent } from 'react'; // eslint-disable-line import/no-unresolved\n\nexport var PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(PersistGate, _PureComponent);\n\n function PersistGate() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, PersistGate);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n bootstrapped: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n var persistor = _this.props.persistor;\n\n var _persistor$getState = persistor.getState(),\n bootstrapped = _persistor$getState.bootstrapped;\n\n if (bootstrapped) {\n if (_this.props.onBeforeLift) {\n Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n return _this.setState({\n bootstrapped: true\n });\n });\n } else {\n _this.setState({\n bootstrapped: true\n });\n }\n\n _this._unsubscribe && _this._unsubscribe();\n }\n });\n\n return _this;\n }\n\n _createClass(PersistGate, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n this.handlePersistorState();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._unsubscribe && this._unsubscribe();\n }\n }, {\n key: \"render\",\n value: function render() {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n }\n\n if (typeof this.props.children === 'function') {\n return this.props.children(this.state.bootstrapped);\n }\n\n return this.state.bootstrapped ? this.props.children : this.props.loading;\n }\n }]);\n\n return PersistGate;\n}(PureComponent);\n\n_defineProperty(PersistGate, \"defaultProps\", {\n children: null,\n loading: null\n});","import { io } from 'socket.io-client';\nimport { config as socketConfig, events, roles } from '@/config';\nimport {\n appendHistory, appendUnsent,\n resetIncoming, resetIsLoading,\n resetError, resetTextToParse, resetUnsent,\n resetOutgoing, setIncoming, addIncomingChunk,\n setHistory, setIsLoading,\n setShouldSendUnsent, setError, setTextToParse,\n setOutgoing, setConnected, setClosed\n} from '@/store/slices/chat';\nimport { checkForSpecialPhrases, getQueryParam, isExpired } from '@/utils';\nimport { constructLink, extractOptionSet } from '@/utils/formatting';\nimport intent from '@/services/intentions';\nimport { setIsEmailFormVisible, setIsPaymentButtonVisible, setLink, setResponseFormVisibility } from '@/store/slices/intentions';\nimport { setConfig } from '@/store/slices/config';\nimport { track } from '@/services/tracking';\nimport { baseEvents, customEvents } from '@/config/analytics';\nimport { CHAT_SEEN_KEY } from '@/config/env';\n\nconst specialMessages = [intent.type.email, intent.type.payment];\nlet socket;\n\nconst chatMiddleware = store => next => action => {\n const { meta, chat, intentions } = store.getState();\n if (setOutgoing.match(action)) {\n store.dispatch(appendHistory({\n role: roles.user,\n content: action.payload,\n }));\n\n store.dispatch(setIsLoading());\n\n socket.emit(events.chat, {\n role: roles.user,\n message: action.payload,\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n });\n\n if (isFirstUserMessage(chat.history)) {\n track({\n eventType: customEvents.firstMessage,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid\n });\n }\n }\n\n if (setTextToParse.match(action)) {\n const { textToParse, incoming } = chat;\n const currentText = textToParse + action.payload;\n if (currentText.includes(intent.type.email)) {\n store.dispatch(setIsEmailFormVisible(true));\n }\n\n if (currentText.includes(intent.type.payment)) {\n store.dispatch(setIsPaymentButtonVisible(true));\n store.dispatch(setIncoming(incoming.content + meta.pd.displayPlanPrice + ' ' + meta.pd.billingFrequencyTmsg));\n }\n }\n\n if (setClosed.match(action)) {\n document.querySelector('#chatbot-container').remove();\n document.body.classList.remove('scroll-stop');\n socket.close();\n }\n\n if (appendUnsent.match(action) && action.payload) {\n store.dispatch(appendHistory({ role: roles.user, content: action.payload }));\n }\n\n if (setShouldSendUnsent.match(action) && action.payload && chat.unsent.length) {\n socket.emit(events.chat, {\n role: roles.user,\n message: chat.unsent.join('\\n'),\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n });\n store.dispatch(resetUnsent());\n store.dispatch(setIsLoading());\n }\n\n const hasNoUserMessages = !chat.history.some(item => item.role === roles.user);\n const lastMessage = chat.history[chat.history.length - 1];\n if (hasNoUserMessages && appendHistory.match(action) && action.payload.role === roles.user && lastMessage.options.length) {\n const buttonSequence = lastMessage.options.findIndex((item) => item.value === action.payload.content) + 1;\n track({\n eventType: customEvents.buttonClick + buttonSequence,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n }\n\n if (setIsPaymentButtonVisible.match(action)) {\n if (action.payload === true) {\n const data = {\n eventType: null,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n };\n\n data.eventType = baseEvents.addToCart;\n track(data);\n\n data.eventType = customEvents.priceSeen;\n track(data);\n }\n }\n\n if (setIsEmailFormVisible.match(action) && action.payload) {\n track({\n eventType: customEvents.emailField,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n\n if (setHistory.match(action)) {\n const { intentions } = store.getState();\n store.dispatch(setResponseFormVisibility({ intentions, options: extractOptionSet(action.payload[action.payload.length - 1].content).options }));\n }\n\n if (!setConfig.match(action)) {\n return next(action);\n }\n\n store.dispatch(setIsLoading());\n socket = io.connect(action.payload.chatUrl, socketConfig);\n\n socket.on('connect', () => {\n const { meta } = store.getState();\n socket.emit(events.chatHistory, { user_id: meta.cid });\n store.dispatch(setConnected(true));\n });\n\n socket.on(events.chatHistory, ({ history, errors }) => {\n store.dispatch(resetIsLoading());\n const { config, meta, chat } = store.getState();\n\n if (errors.length && !chat.error) {\n store.dispatch(setError(errors[0]));\n }\n\n if (history.length) {\n const lastMessage = history[history.length - 1];\n updateContent({ lastMessage, store });\n store.dispatch(setHistory(history));\n } else {\n socket.emit(events.chat, {\n role: roles.assistant,\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n message: config.aiProfile.initialMessage\n });\n }\n });\n\n socket.on(events.streamStart, () => {\n store.dispatch(resetIsLoading());\n store.dispatch(resetOutgoing());\n store.dispatch(setIncoming(''));\n store.dispatch(resetError());\n });\n\n socket.on(`${events.chat}-${meta.cid}`, (data) => {\n const { options, content } = extractOptionSet(data.message);\n const isSpecial = checkForSpecialPhrases(data.message, specialMessages);\n updateContent({ lastMessage: { content: data.message }, store });\n const { intentions } = store.getState();\n\n store.dispatch(resetIsLoading());\n store.dispatch(resetError());\n store.dispatch(appendHistory({ content, options, role: roles.assistant, isSpecial }));\n store.dispatch(setResponseFormVisibility({ intentions, options }));\n });\n\n socket.on(events.streamData, ({ chunk, messages, errors }) => {\n const { chat, config } = store.getState();\n const { textToParse, incoming } = chat;\n const link = constructLink(textToParse) || constructLink(incoming.content) || constructLink(chunk);\n\n if (messages.length > chat.history.length) {\n store.dispatch(setHistory(messages));\n }\n\n if (errors.length && !chat.error) {\n store.dispatch(setError(errors[0]));\n }\n\n if (link) {\n store.dispatch(setLink({\n isVisible: true,\n href: link,\n text: config.translations.mealButton\n }));\n store.dispatch(setResponseFormVisibility({ isFormVisible: false }));\n }\n\n if (chunk.includes('[')) {\n store.dispatch(setTextToParse(chunk));\n return;\n }\n\n if (chunk.includes(']') || textToParse) {\n store.dispatch(setTextToParse(chunk));\n return;\n }\n\n store.dispatch(addIncomingChunk({ chunk }));\n });\n\n socket.on(events.streamEnd, () => {\n const { chat, intentions } = store.getState();\n const { options } = extractOptionSet(chat.textToParse);\n const isSpecial = options.some(item => checkForSpecialPhrases(item.value, specialMessages));\n store.dispatch(appendHistory({\n ...chat.incoming,\n options,\n isSpecial\n }));\n store.dispatch(resetIncoming());\n store.dispatch(resetTextToParse());\n store.dispatch(setResponseFormVisibility({ intentions, options }));\n });\n\n const onError = () => {\n const { config } = store.getState();\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n socket.on(events.streamError, onError);\n socket.on(events.error, onError);\n\n socket.on(events.disconnect, () => {\n store.dispatch(setConnected(false));\n });\n\n next(action);\n};\n\nconst mustHideChat = ({ time, role }) => {\n let hasExpired;\n\n if (role === roles.user && time) {\n hasExpired = isExpired(time);\n }\n\n if (hasExpired) {\n localStorage.removeItem(CHAT_SEEN_KEY);\n }\n\n const chatSeen = localStorage.getItem(CHAT_SEEN_KEY);\n\n return chatSeen === 'true';\n};\n\nconst isFirstUserMessage = (messages) => messages.filter(obj => obj.role === roles.user).length === 1;\n\nconst updateContent = ({ lastMessage, store }) => {\n const { meta, config } = store.getState();\n const link = constructLink(lastMessage.content);\n\n if (mustHideChat(lastMessage)) {\n store.dispatch(setClosed(true));\n }\n\n if (link) {\n store.dispatch(setLink({\n isVisible: true,\n href: link,\n text: config.translations.mealButton\n }));\n }\n\n lastMessage.isSpecial = checkForSpecialPhrases(lastMessage.content, specialMessages);\n\n if (lastMessage.content.includes(intent.type.email)) store.dispatch(setIsEmailFormVisible(true));\n\n if (lastMessage.content.includes(intent.type.payment)) {\n store.dispatch(setIsPaymentButtonVisible(true));\n lastMessage.content += meta.pd.displayPlanPrice + ' ' + meta.pd.billingFrequencyTmsg;\n }\n};\n\nexport default chatMiddleware;\n","import { customEvents } from '@/config/analytics';\nimport { track } from '@/services/tracking';\nimport intent from '@/services/intentions';\nimport { setIsEmailLoading, setEmailSuccess, setIsEmailFormVisible, setEmailError, setLink } from '@/store/slices/intentions';\nimport { setPd, setMarketing } from '@/store/slices/meta';\nimport { appendHistory, setOutgoing } from '@/store/slices/chat';\n\nexport const intentionsMiddleware = store => next => {\n const setPaymentDataTranslationAccordingly = (data) => {\n const { meta } = store.getState();\n if (!meta.pd) return;\n data.billingFrequencyTmsg = data.billingOptionType === 'one-time'\n ? meta.pd.oneTimer\n : meta.pd.subscriberBillingFrequency.replace('{1}', data.frequencyInMonths);\n\n return data;\n };\n\n intent.core.on(intent.type.emailSuccess, () => {\n const { meta, intentions } = store.getState();\n\n store.dispatch(setIsEmailLoading(false));\n store.dispatch(setEmailError(''));\n store.dispatch(setOutgoing(intentions.email.current));\n\n // DEV: setEmailSuccess this status is for us to know if mail is validated in the endpoint\n store.dispatch(setEmailSuccess(true));\n store.dispatch(setIsEmailFormVisible(false));\n track({\n eventType: customEvents.emailEntered,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n });\n\n intent.core.on(intent.type.emailError, (response) => {\n const { meta, intentions, config } = store.getState();\n const { tm716, tm526, tm715, tm505 } = config.translations;\n\n store.dispatch(setIsEmailLoading(false));\n\n if (response.status === 409) {\n store.dispatch(appendHistory({\n role: 'assistant',\n content: tm716,\n options: [\n { id: 'opt-1', label: tm526, value: 'link', link: response.data.buttonLink },\n { id: 'opt-2', label: tm715, value: 'button', noStream: true }\n ]\n }));\n\n track({\n eventType: customEvents.emailExist,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n\n // DEV NOTE: this must be persisted so on refresh the message with options is still part of the history;\n // localStorage.setItem(ALREADY_REGISTERED_KEY, 'true');\n return;\n }\n\n if (response.status === 422) {\n store.dispatch(setEmailError(response.errors.email[0] || tm505));\n\n track({\n eventType: customEvents.emailWrong,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n });\n\n dataIntervalChecker('marketing', store, setMarketing);\n dataIntervalChecker('__pd', store, setPd, setPaymentDataTranslationAccordingly);\n\n return action => {\n if (setLink.match(action) && action.payload.isVisible) {\n const { meta, intentions } = store.getState();\n\n track({\n eventType: customEvents.linkProvided,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n next(action);\n };\n};\n\nconst dataIntervalChecker = (key, store, setValue, transformData = null) => {\n const intervalId = setInterval(() => {\n let storedItem = localStorage.getItem(key);\n\n try {\n storedItem = JSON.parse(storedItem);\n } catch (e) {\n storedItem = localStorage.getItem(key);\n }\n\n if (transformData && storedItem) {\n storedItem = transformData(storedItem);\n }\n\n if (storedItem) {\n store.dispatch(setValue(storedItem));\n clearInterval(intervalId);\n }\n }, 1000);\n};\n\nexport default intentionsMiddleware;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","/* eslint-disable no-unused-expressions */\n/* eslint-disable no-restricted-syntax */\n/* eslint-disable no-underscore-dangle */\n\nexport default function disableReactDevTools() {\n if (typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__ === 'object') {\n for (const prop in window.__REACT_DEVTOOLS_GLOBAL_HOOK__) {\n if (prop === 'renderers') {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] = new Map();\n } else {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] = typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] === 'function'\n ? () => {}\n : null;\n }\n }\n }\n}\n","import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport metaReducer from '@/store/slices/meta';\nimport configReducer from '@/store/slices/config';\nimport chatReducer from '@/store/slices/chat';\nimport intentionsReducer from '@/store/slices/intentions';\nimport chatMiddleware from '@/middleware/socket';\nimport intentionsMiddleware from '@/middleware/intentions';\nimport { persistStore, persistReducer } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage';\nimport disableReactDevTools from '@/utils/reactDevTools';\n\ndisableReactDevTools();\n\nconst persistConfig = {\n key: 'root',\n storage,\n blacklist: ['chat', 'intentions'],\n};\n\nexport const store = configureStore({\n reducer: persistReducer(persistConfig, combineReducers({\n meta: metaReducer,\n config: configReducer,\n chat: chatReducer,\n intentions: intentionsReducer,\n })),\n middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false }).concat(chatMiddleware, intentionsMiddleware),\n});\n\nexport const persistor = persistStore(store);\n","import ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\n\nimport '@/assets/css/index.css';\nimport { AppBase } from '@/components/AppBase';\nimport { PersistGate } from 'redux-persist/integration/react';\nimport { persistor, store } from './store';\n\nexport { intent } from '@/services/intentions';\n\n// DEV Note: will be received by Razvigor\nconst initialConfig = {\n meta: {\n pd: {\n subscriberBillingFrequency: 'Billed every {1} month(s)',\n oneTimer: 'Total price to be charged',\n billingFrequencyTmsg: '',\n },\n cid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d',\n systemType: 'test',\n marketing: {\n utmParams: { utm_chat: 'db-sales-nopresetquestions' },\n lastUtmParams: { utm_chat: 'db-sales-nopresetquestions' },\n screen: {\n width: 2084,\n height: 1608,\n }\n },\n eid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d_PageView_1694521420366',\n },\n app: {\n aiProfile: {\n name: 'Meal Mentor',\n role: 'AI-powered nutritionist',\n imgSrc: 'https://storage.1forfit.com/4oZrkOwbOQcSIGJopBG5qsf0CmBbVDKDqflzEkXq.jpg',\n displayInStream: true,\n welcome: 'Welcome to our live support. We\\'re here to understand your requirements and suggest the best Keto diet suited for you.',\n // initialMessage: 'Hi, {I am Meal Mentor}. I will help you to find the right meal plan for you. [yes|no|continue]',\n initialMessage: 'Do you want to lose weight? [Yes|No]',\n },\n chatUrl: 'https://yourketo.ngrok.io',\n themeId: 'dark',\n translations: {\n emailPlaceholder: 'Please enter your email',\n tm526: 'Continue to my plan',\n tm715: 'Enter new email',\n tm716: 'Entered email already exists, choose below to proceed',\n tm530: 'Take the quiz',\n tm1224: 'Payment in progress...',\n paymentHeaderTxt1: 'SECURITY verified',\n paymentHeaderTxt2: 'secured payments',\n loaderTexts: [\n 'We securely lock up your payment details.',\n 'Details zoom to the payment center.',\n 'Payment center requests our bank to process.',\n 'Our bank contacts your card network.',\n 'Card network asks your bank for approval.',\n 'Your bank reviews funds or credit.',\n 'Decision travels back to us.',\n 'Waiting your payment to be verified and complete.'\n ],\n payButton: 'Secure payment',\n ctaTextContent: 'Create Your Menu!',\n mealButton: 'Create your meal plan',\n error: 'Oops something went wrong.',\n tm505: 'Please enter valid email address',\n }\n },\n};\n\nexport const ReactBotClient = (config) => {\n ReactDOM\n .createRoot(config.root)\n .render(\n \n \n \n \n \n );\n};\n\nexport default ReactBotClient;\n"],"names":["base64Js","byteLength","toByteArray","fromByteArray","lookup","revLookup","Arr","code","i","len","getLens","b64","validLen","placeHoldersLen","lens","_byteLength","tmp","arr","curByte","tripletToBase64","num","encodeChunk","uint8","start","end","output","extraBytes","parts","maxChunkLength","len2","ieee754","buffer","offset","isLE","mLen","nBytes","e","m","eLen","eMax","eBias","nBits","d","s","value","c","rt","base64","require$$0","require$$1","customInspectSymbol","exports","Buffer","SlowBuffer","K_MAX_LENGTH","typedArraySupport","proto","createBuffer","length","buf","arg","encodingOrOffset","allocUnsafe","from","fromString","fromArrayView","isInstance","fromArrayBuffer","valueOf","b","fromObject","assertSize","size","alloc","fill","encoding","checked","string","actual","fromArrayLike","array","arrayView","copy","byteOffset","obj","numberIsNaN","a","x","y","list","pos","mustMatch","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","str","max","target","thisStart","thisEnd","thisCopy","targetCopy","bidirectionalIndexOf","val","dir","arrayIndexOf","indexSize","arrLength","valLength","read","foundIndex","found","j","hexWrite","remaining","strLen","parsed","utf8Write","blitBuffer","asciiWrite","asciiToBytes","base64Write","ucs2Write","utf16leToBytes","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","MAX_ARGUMENTS_LENGTH","codePoints","ret","out","hexSliceLookupTable","bytes","newBuf","checkOffset","ext","noAssert","mul","defineBigIntMethod","validateNumber","first","last","boundsError","lo","hi","checkInt","min","maxBytes","wrtBigUInt64LE","checkIntBI","wrtBigUInt64BE","limit","sub","checkIEEE754","writeFloat","littleEndian","writeDouble","targetStart","errors","E","sym","getMessage","Base","name","range","input","msg","received","addNumericalSeparator","checkBounds","type","INVALID_BASE64_RE","base64clean","units","leadSurrogate","byteArray","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","process","browserModule","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","timeout","args","Item","noop","t","r","o","l","u","f","k","p","q","g","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","source","ownerFn","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","client","useAppDispatch","useDispatch","useAppSelector","useSelector","useWindowSize","setSize","useState","useLayoutEffect","updateSize","meta","chat","intentions","configSlice","createSlice","initialState","state","getConfig","setConfig","resetConfig","setTheme","resetTheme","setDevToolsStatus","resetDevToolsStatus","togglePluginMode","setTranslations","getMeta","setMeta","resetMeta","setMarketing","setPd","twJoin","index","argument","resolvedValue","toValue","mix","CLASS_PART_SEPARATOR","createClassUtils","classMap","createClassMap","conflictingClassGroups","_config$conflictingCl","conflictingClassGroupModifiers","getClassGroupId","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","_a","_ref","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","theme","prefixedClassGroupEntries","getPrefixedClassGroupEntries","_ref2","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","_ref3","path","currentClassPartObject","pathPart","func","classGroupEntries","_ref4","prefixedClassGroup","_ref5","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createSplitModifiers","separator","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","modifiers","bracketDepth","modifierStart","postfixModifierPosition","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","isArbitraryVariant","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","splitModifiers","classGroupsInConflict","originalClassName","_splitModifiers","variantModifier","modifierId","classId","group","createTailwindMerge","_len","createConfig","_key","cacheGet","cacheSet","functionToCall","initTailwindMerge","firstCreateConfig","restCreateConfig","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","result","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","shadowRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitrarySize","isNever","isArbitraryPosition","isArbitraryUrl","isUrl","isArbitraryNumber","isPercent","isInteger","isIntegerOnly","isArbitraryValue","isAny","isTshirtSize","isArbitraryShadow","isShadow","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmpty","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumber","getNumberAndArbitrary","mergeConfigs","baseConfig","configExtension","mergePropertyRecursively","overrideTypes","baseObject","mergeKey","mergeValue","nextKey","extendTailwindMerge","twMerge","re","Z","R","O","w","Y","se","N","F","C","V","U","M","g$1","A","$","h$1","v","K","W","a$1","I","b$1","T","J","te","S","P","z","D","G","H","ee","_","layoutBase","tv","layoutHead","layoutFoot","LayoutBase","head","stream","foot","isPluginMode","base","wrapper","variant","height","profile","Profile","orientation","minimized","aiProfile","avatar","role","imgWrapper","bool","LayoutHead","ReflectApply","receiver","ReflectOwnKeys","ProcessEmitWarning","warning","NumberIsNaN","EventEmitter","eventsModule","once","defaultMaxListeners","checkListener","listener","_getMaxListeners","that","doError","events","er","handler","listeners","arrayClone","_addListener","prepend","existing","onceWrapper","_onceWrap","wrapped","position","originalListener","spliceOne","_listeners","unwrap","evlistener","unwrapListeners","emitter","listenerCount","resolve","reject","errorListener","resolver","eventTargetAgnosticAddListener","addErrorHandlerIfEventEmitter","flags","wrapListener","roles","intent","intentionsSlice","getEmailIntentions","getPaymentIntentions","getLinkIntentions","getResponseIntentions","setEmail","setEmailSuccess","setIsPaymentSuccessful","setPaymentFormVisibility","setEmailError","setIsEmailLoading","setIsEmailFormVisible","setIsPaymentButtonVisible","setLink","setResponse","setResponseFormVisibility","setResponseLoadingStatus","setPaymentIntentError","intentionsReducer","basic","Input","placeholder","onChange","onKeyUp","isLoading","e2e","loader","spin","icon","Btn","text","onClick","IconBtn","outlined","IDX","HEX","SIZE","BUFFER","uid","CHAT_SEEN_KEY","CID","extractOptionSet","constructLink","hasQueryParams","url","REGEX_URL","search","matches","link","isArr","isStr","isNonEmptyStr","isNonEmptyArr","getQueryParam","param","isExpired","date","maxHours","currentDate","givenDate","formatDateByLocale","dateString","options","checkForSpecialPhrases","specialMessages","keyword","regex","bubbleContent","getCurrentPointer","getStream","setOutgoing","setIncoming","resetIncoming","addIncomingChunk","resetOutgoing","setHistory","resetHistory","appendHistory","setTextToParse","resetTextToParse","setIsLoading","resetIsLoading","appendUnsent","resetUnsent","setShouldSendUnsent","setError","resetError","setConnected","setClosed","chatReducer","ResponseForm","dispatch","button","response","setCurrentResponse","timerId","setTimerId","handleInputChange","setTimerToSendMessage","handleFormSubmit","currentId","EmailForm","translations","email","setCurrentEmail","currentValue","payment","close","PaymentHead","left","leftTop","bottom","right","price","variants","PaymentButton","disabled","btn","CloseButton","PaymentFooter","PaymentLoader","texts","title","inner","dots","dotsIn","progressCheckmark","panelTitle","spinningTexts","filmContainer","film","txt","Link","href","forwardedRef","overlay","Overlay","PaymentScene","onClose","displayPlanPrice","billingFrequencyTmsg","track","eventType","systemType","utmParams","customerUuid","phone","event","baseEvents","customEvents","streamBase","streamHead","streamRow","flickerEffect","streamBubble","ellipsis","Ellipsis","dotFirst","dotSecond","dotThird","LayoutFoot","isResponseFormVisible","cid","marketing","isCtaVisible","ctaText","ctaHref","streamError","store","isEmailFormVisible","current","emailError","isPaymentButtonVisible","isPaymentFormVisible","paymentIntentError","ctaAfterPayButton","useRef","setDisabled","setIsPaymentContainerVisible","isVisible","onClosePaymentForm","onPaymentSuccess","onError","message","initializePaymentForm","onClickCtaPay","StreamHead","titleTxt","hasTitle","curlyBraces","replaceLinksWithAnchors","part","urlWithParams","textModifier","StreamBubble","currentPointer","incoming","displayOptionList","action","baseFlicker","displayActionButton","setOption","setMessage","OptionList","items","id","noStream","StreamRow","StreamBase","history","second","firstMessage","pin","Toggler","onToggle","on","outline","toggle","DevTools","enableDevTools","themeId","setUiTheme","AppBase","Fragment","_typeof","_classCallCheck","instance","Constructor","_defineProperties","descriptor","_createClass","protoProps","staticProps","_possibleConstructorReturn","call","_assertThisInitialized","_getPrototypeOf","_inherits","subClass","superClass","_setPrototypeOf","_defineProperty","PersistGate","_PureComponent","_getPrototypeOf2","_this","persistor","_persistor$getState","bootstrapped","PureComponent","socket","chatMiddleware","next","isFirstUserMessage","textToParse","currentText","hasNoUserMessages","lastMessage","buttonSequence","data","io","socketConfig","updateContent","content","isSpecial","chunk","messages","mustHideChat","time","hasExpired","intentionsMiddleware","setPaymentDataTranslationAccordingly","tm716","tm526","tm715","tm505","dataIntervalChecker","setValue","transformData","intervalId","storedItem","getStorage_1","getStorage","noopStorage","hasStorage","storageType","storage","testKey","createWebStorage_1","createWebStorage","_getStorage","_interopRequireDefault","default_1","_createWebStorage","_default","disableReactDevTools","prop","persistConfig","configureStore","persistReducer","combineReducers","metaReducer","configReducer","getDefaultMiddleware","persistStore","initialConfig","ReactBotClient","ReactDOM","Provider"],"mappings":";;;;;;;;AAEAA,GAAA,aAAqBC;AACrBD,GAAA,cAAsBE;AACtBF,GAAA,gBAAwBG;AAExB,IAAIC,KAAS,CAAE,GACXC,KAAY,CAAE,GACdC,KAAM,OAAO,aAAe,MAAc,aAAa,OAEvDC,KAAO;AACX,SAASC,KAAI,GAAGC,KAAMF,GAAK,QAAQC,KAAIC,IAAK,EAAED;AAC5C,EAAAJ,GAAOI,EAAC,IAAID,GAAKC,EAAC,GAClBH,GAAUE,GAAK,WAAWC,EAAC,CAAC,IAAIA;AAKlCH,GAAU,IAAI,WAAW,CAAC,CAAC,IAAI;AAC/BA,GAAU,IAAI,WAAW,CAAC,CAAC,IAAI;AAE/B,SAASK,GAASC,GAAK;AACrB,MAAIF,IAAME,EAAI;AAEd,MAAIF,IAAM,IAAI;AACZ,UAAM,IAAI,MAAM,gDAAgD;AAKlE,MAAIG,IAAWD,EAAI,QAAQ,GAAG;AAC9B,EAAIC,MAAa,OAAIA,IAAWH;AAEhC,MAAII,IAAkBD,MAAaH,IAC/B,IACA,IAAKG,IAAW;AAEpB,SAAO,CAACA,GAAUC,CAAe;AACnC;AAGA,SAASZ,GAAYU,GAAK;AACxB,MAAIG,IAAOJ,GAAQC,CAAG,GAClBC,IAAWE,EAAK,CAAC,GACjBD,IAAkBC,EAAK,CAAC;AAC5B,UAASF,IAAWC,KAAmB,IAAI,IAAKA;AAClD;AAEA,SAASE,GAAaJ,GAAKC,GAAUC,GAAiB;AACpD,UAASD,IAAWC,KAAmB,IAAI,IAAKA;AAClD;AAEA,SAASX,GAAaS,GAAK;AACzB,MAAIK,GACAF,IAAOJ,GAAQC,CAAG,GAClBC,IAAWE,EAAK,CAAC,GACjBD,IAAkBC,EAAK,CAAC,GAExBG,IAAM,IAAIX,GAAIS,GAAYJ,GAAKC,GAAU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MACT,MAAM;AAAA,MACN,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,iBAAiB;AAAA,MACjB,SAAS;AAAA;AAAA,MAET,gBAAgB;AAAA,IAClB;AAAA,IACA,SAAS;AAAA,IACT,SAAS;AAAA,IACT,cAAc;AAAA,MACZ,kBAAkB;AAAA,MAClB,OAAO;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,aAAa;AAAA,QACX;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,WAAW;AAAA,MACX,gBAAgB;AAAA,MAChB,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,OAAO;AAAA,IACT;AAAA,EACF;AACF,GAEaC,KAAiB,CAAC3qB,MAAW;AAErC4qB,EAAAA,GAAA,WAAW5qB,EAAO,IAAI,EACtB;AAAA,IACEsD,gBAAAA,EAAA,IAAAunB,IAAA,EAAS,OAAA5I,IACR,UAAA3e,gBAAAA,MAACqjB,IAAY,EAAA,WAAAI,IACX,UAACzjB,gBAAAA,EAAAA,IAAAiiB,IAAA,EAAQ,QAASvlB,EAAO,iBAAiB0qB,GAAgB,CAAA,EAC5D,CAAA,GACF;AAAA,EAAA;AAEN;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,33,44,79,82,83,84]} \ No newline at end of file diff --git a/dist/index.umd.js b/dist/index.umd.js index 1835b12..80bbc49 100644 --- a/dist/index.umd.js +++ b/dist/index.umd.js @@ -22,6 +22,6 @@ Check the render method of \``+c+"`."}return""}}function $s(c){{if(c!==void 0){v Check your code at `+x+":"+E+"."}return""}}var ii={};function qs(c){{var x=ni();if(!x){var E=typeof c=="string"?c:c.displayName||c.name;E&&(x=` -Check the top-level render call using <`+E+">.")}return x}}function oi(c,x){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var E=qs(x);if(ii[E])return;ii[E]=!0;var k="";c&&c._owner&&c._owner!==Pr.current&&(k=" It was passed a child from "+C(c._owner.type)+"."),pt(c),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,k),pt(null)}}function si(c,x){{if(typeof c!="object")return;if(we(c))for(var E=0;E",M=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof c,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,M)}var ae=$(c,x,E,V,X);if(ae==null)return ae;if(D){var Se=x.children;if(Se!==void 0)if(k)if(we(Se)){for(var ht=0;htXt.useDispatch(),U=Xt.useSelector,Si=()=>{const[e,n]=me.useState([0,0]);return me.useLayoutEffect(()=>{function i(){n([window.innerWidth,window.innerHeight])}return window.addEventListener("resize",i),i(),()=>window.removeEventListener("resize",i)},[]),e},nt={pd:null,cid:null,eid:null,systemType:null,marketing:{}},Ne={aiProfile:{name:null,role:null,imgSrc:null,initialMessage:"",displayInStream:!1},translations:{},themeId:null,chatUrl:null,enableDevTools:!1,isPluginMode:!1},ze={outgoing:null,incoming:null,textToParse:"",history:[],status:null,error:null,isLoading:!1,shouldSendUnsent:!1,unsent:[],connected:!1,closed:!1},Ii={email:{current:"",success:!1,error:!1,isFormVisible:!1,isLoading:!1},response:{value:"",isFormVisible:!1,isLoading:!1,error:!1},payment:{isButtonVisible:!1,isFormVisible:!1,isSuccessful:!1,error:!1},messaging:{isVisible:!1},link:{isVisible:!1,href:null,text:""}},Wr=Qe.createSlice({name:"config",initialState:Ne,reducers:{setConfig(e,{payload:n}){e.aiProfile={...Ne.aiProfile,...n.aiProfile},e.translations={...Ne.translations,...n.translations},e.themeId=n.themeId,e.chatUrl=n.chatUrl},resetConfig(e){e.aiProfile=Ne.aiProfile,e.themeId=Ne.themeId,e.translations=Ne.translations,e.chatUrl=Ne.chatUrl},setTheme(e,{payload:n}){e.themeId=n},resetTheme(e){e.themeId=Ne.themeId},setDevToolsStatus(e,{payload:n}){e.enableDevTools=n},resetDevToolsStatus(e){e.enableDevTools=Ne.enableDevTools},togglePluginMode(e){e.isPluginMode=!e.isPluginMode},setTranslations(e,{payload:n}){e.translations={...e.translations,...n}}}}),se=({config:e})=>e,{setConfig:Gr,resetConfig:ea,setTheme:Ti,resetTheme:ta,setDevToolsStatus:Ci,resetDevToolsStatus:ra,togglePluginMode:ki,setTranslations:na}=Wr.actions,Ri=Wr.reducer,$r=Qe.createSlice({name:"meta",initialState:nt,reducers:{setMeta(e,{payload:n}){e.cid=n.cid,e.eid=n.eid,e.systemType=n.systemType,e.pd={...n.pd,...e.pd},e.marketing={...n.marketing,...e.marketing}},resetMeta(e){e.pd=nt.pd,e.cid=nt.cid,e.eid=nt.eid,e.systemType=nt.systemType,e.marketing=nt.marketing},setMarketing(e,{payload:n}){e.marketing={...e.marketing,...n}},setPd(e,{payload:n}){e.pd={...e.pd,...n}}}}),Bi=e=>e.meta,{setMeta:Pi,resetMeta:ia,setMarketing:ji,setPd:Ai}=$r.actions,Fi=$r.reducer;var qr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,de=e=>!e||typeof e!="object"||Object.keys(e).length===0,Li=(e,n)=>JSON.stringify(e)===JSON.stringify(n);function Hr(e,n){e.forEach(function(i){Array.isArray(i)?Hr(i,n):n.push(i)})}function Yr(e){let n=[];return Hr(e,n),n}var Oi=(...e)=>Yr(e).filter(Boolean),Xr=(e,n)=>{let i={},s=Object.keys(e),u=Object.keys(n);for(let d of s)if(u.includes(d)){let f=e[d],l=n[d];typeof f=="object"&&typeof l=="object"?i[d]=Xr(f,l):i[d]=l+" "+f}else i[d]=e[d];for(let d of u)s.includes(d)||(i[d]=n[d]);return i},Jr=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function Ni(){for(var e=0,n,i,s="";ee&&(n=0,s=i,i=new Map)}return{get:function(f){var l=i.get(f);if(l!==void 0)return l;if((l=s.get(f))!==void 0)return u(f,l),l},set:function(f,l){i.has(f)?i.set(f,l):u(f,l)}}}var tn="!";function Gi(e){var n=e.separator||":",i=n.length===1,s=n[0],u=n.length;return function(f){for(var l=[],w=0,y=0,b,v=0;vy?b-y:void 0;return{modifiers:l,hasImportantModifier:F,baseClassName:W,maybePostfixModifierPosition:j}}}function $i(e){if(e.length<=1)return e;var n=[],i=[];return e.forEach(function(s){var u=s[0]==="[";u?(n.push.apply(n,i.sort().concat([s])),i=[]):i.push(s)}),n.push.apply(n,i.sort()),n}function qi(e){return{cache:Wi(e.cacheSize),splitModifiers:Gi(e),...Mi(e)}}var Hi=/\s+/;function Yi(e,n){var i=n.splitModifiers,s=n.getClassGroupId,u=n.getConflictingClassGroupIds,d=new Set;return e.trim().split(Hi).map(function(f){var l=i(f),w=l.modifiers,y=l.hasImportantModifier,b=l.baseClassName,v=l.maybePostfixModifierPosition,I=s(v?b.substring(0,v):b),_=!!v;if(!I){if(!v)return{isTailwindClass:!1,originalClassName:f};if(I=s(b),!I)return{isTailwindClass:!1,originalClassName:f};_=!1}var F=$i(w).join(":"),W=y?F+tn:F;return{isTailwindClass:!0,modifierId:W,classGroupId:I,originalClassName:f,hasPostfixModifier:_}}).reverse().filter(function(f){if(!f.isTailwindClass)return!0;var l=f.modifierId,w=f.classGroupId,y=f.hasPostfixModifier,b=l+w;return d.has(b)?!1:(d.add(b),u(w,y).forEach(function(v){return d.add(l+v)}),!0)}).reverse().map(function(f){return f.originalClassName}).join(" ")}function nr(){for(var e=arguments.length,n=new Array(e),i=0;i1?n-1:0),s=1;se||void 0,Pt=(...e)=>an(Yr(e).filter(Boolean).join(" ")),sr=null,jt={},ar=!1,vt=(...e)=>n=>n.twMerge?((!sr||ar)&&(ar=!1,sr=de(jt)?po:fo(jt)),an(sr(Pt(e)))):Pt(e),ln=(e,n)=>{for(let i in n)e.hasOwnProperty(i)?e[i]=Pt(e[i],n[i]):e[i]=n[i];return e},ee=(e,n)=>{let{extend:i=null,slots:s={},variants:u={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:l={}}=e,w={...ho,...n},y=i!=null&&i.base?Pt(i.base,e==null?void 0:e.base):e==null?void 0:e.base,b=i!=null&&i.variants&&!de(i.variants)?Xr(u,i.variants):u,v=i!=null&&i.defaultVariants&&!de(i.defaultVariants)?{...i.defaultVariants,...l}:l;!de(w.twMergeConfig)&&!Li(w.twMergeConfig,jt)&&(ar=!0,jt=w.twMergeConfig);let I=de(s)?{}:{base:e==null?void 0:e.base,...s},_=de(i==null?void 0:i.slots)?I:ln({...i==null?void 0:i.slots},de(I)?{base:e==null?void 0:e.base}:I),F=j=>{if(de(b)&&de(s)&&de(i==null?void 0:i.slots))return vt(y,j==null?void 0:j.class,j==null?void 0:j.className)(w);if(d&&!Array.isArray(d))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof d}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let H=(T,S,C=[],B)=>{let P=C;if(typeof S=="string")P=P.concat(Jr(S).split(" ").map(O=>`${T}:${O}`));else if(Array.isArray(S))P=P.concat(S.reduce((O,G)=>O.concat(`${T}:${G}`),[]));else if(typeof S=="object"&&typeof B=="string"){for(let O in S)if(S.hasOwnProperty(O)&&O===B){let G=S[O];if(G&&typeof G=="string"){let Y=Jr(G);P[B]?P[B]=P[B].concat(Y.split(" ").map(J=>`${T}:${J}`)):P[B]=Y.split(" ").map(J=>`${T}:${J}`)}else Array.isArray(G)&&G.length>0&&(P[B]=G.reduce((Y,J)=>Y.concat(`${T}:${J}`),[]))}}return P},z=(T,S=b,C=null,B=null)=>{var P;let O=S[T];if(!O||de(O))return null;let G=(P=B==null?void 0:B[T])!=null?P:j==null?void 0:j[T];if(G===null)return null;let Y=qr(G),J=Array.isArray(w.responsiveVariants)&&w.responsiveVariants.length>0||w.responsiveVariants===!0,ge=v==null?void 0:v[T],N=[];if(typeof Y=="object"&&J)for(let[ne,Xe]of Object.entries(Y)){let ot=O[Xe];if(ne==="initial"){ge=Xe;continue}Array.isArray(w.responsiveVariants)&&!w.responsiveVariants.includes(ne)||(N=H(ne,ot,N,C))}let K=O[Y]||O[qr(ge)];return typeof N=="object"&&typeof C=="string"&&N[C]?ln(N,K):N.length>0?(N.push(K),N):K},Te=()=>b?Object.keys(b).map(T=>z(T,b)):null,xe=(T,S)=>{if(!b||typeof b!="object")return null;let C=new Array;for(let B in b){let P=z(B,b,T,S),O=T==="base"&&typeof P=="string"?P:P&&P[T];O&&(C[C.length]=O)}return C},le={};for(let T in j)j[T]!==void 0&&(le[T]=j[T]);let ve=(T,S)=>{var C;let B=typeof(j==null?void 0:j[T])=="object"?{[T]:(C=j[T])==null?void 0:C.initial}:{};return{...v,...le,...B,...S}},Ee=(T=[],S)=>{let C=[];for(let{class:B,className:P,...O}of T){let G=!0;for(let[Y,J]of Object.entries(O)){let ge=ve(Y,S);if(Array.isArray(J)){if(!J.includes(ge[Y])){G=!1;break}}else if(ge[Y]!==J){G=!1;break}}G&&(B&&C.push(B),P&&C.push(P))}return C},Ce=T=>{let S=Ee(d,T),C=Ee(i==null?void 0:i.compoundVariants,T);return Oi(C,S)},_e=T=>{let S=Ce(T);if(!Array.isArray(S))return S;let C={};for(let B of S)if(typeof B=="string"&&(C.base=vt(C.base,B)(w)),typeof B=="object")for(let[P,O]of Object.entries(B))C[P]=vt(C[P],O)(w);return C},ke=T=>{if(f.length<1)return null;let S={};for(let{slots:C=[],class:B,className:P,...O}of f){if(!de(O)){let G=!0;for(let Y of Object.keys(O)){let J=ve(Y,T)[Y];if(J===void 0||(Array.isArray(O[Y])?!O[Y].includes(J):O[Y]!==J)){G=!1;break}}if(!G)continue}for(let G of C)S[G]=S[G]||[],S[G].push([B,P])}return S};if(!de(s)||!de(i==null?void 0:i.slots)){let T={};if(typeof _=="object"&&!de(_))for(let S of Object.keys(_))T[S]=C=>{var B,P;return vt(_[S],xe(S,C),((B=_e(C))!=null?B:[])[S],((P=ke(C))!=null?P:[])[S],C==null?void 0:C.class,C==null?void 0:C.className)(w)};return T}return vt(y,Te(),Ce(),j==null?void 0:j.class,j==null?void 0:j.className)(w)},W=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return F.variantKeys=W(),F.extend=i,F.base=y,F.slots=_,F.variants=b,F.defaultVariants=v,F.compoundSlots=f,F.compoundVariants=d,F};const mo=ee({slots:{base:"tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full",wrapper:"tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full"},variants:{theme:{light:{base:"tw--bg-light-lumina",wrapper:"tw--bg-light-whisper tw--text-light-zephyr-100"},dark:{base:"tw--bg-dark-lumina",wrapper:"tw--bg-dark-whisper tw--text-white"}},minimized:{true:"tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md"}}}),wo=ee({slots:{base:"tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0]"},variants:{theme:{light:"tw--shadow-light-zephyr-200",dark:"tw--shadow-dark-zephyr-200"}}}),cn=ee({slots:{base:"tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]",input:"tw--flex-1 tw--pr-2",button:"tw--flex tw--grow-0"}}),un=({head:e,stream:n,foot:i})=>{const{themeId:s,isPluginMode:u}=U(se),{base:d,wrapper:f}=mo({theme:s}),[l,w]=Si();return m.jsx("div",{style:{height:`${w}px`},className:d({minimized:u}),children:m.jsxs("div",{className:f(),children:[e,n,i]})})};un.propTypes={head:R.node.isRequired,stream:R.node.isRequired,foot:R.node.isRequired};const go=ee({slots:{base:"tw--flex tw--items-center tw--select-none",avatar:"tw--rounded-full",info:"",name:"",role:"",imgWrapper:""},variants:{theme:{light:{role:""},dark:{role:""}},orientation:{horizontal:{base:"tw--flex-row tw--text-left",avatar:"tw--shrink",name:"tw--text-xl/7 tw--font-bold tw--leading-[30px]",info:"tw--pl-[10px]"},vertical:{base:"tw--flex-col tw--text-center",name:"tw--text-[24px] tw--font-semibold"}}},compoundSlots:[{slots:["role"],orientation:"vertical",theme:"light",class:"tw--text-light-zephyr-600 tw--font-medium"},{slots:["role"],orientation:"horizontal",theme:"light",class:"tw--text-light-zephyr-800"},{slots:["role"],orientation:"vertical",theme:"dark",class:"tw--text-dark-zephyr-600"},{slots:["role"],orientation:"horizontal",theme:"dark",class:"tw--text-dark-zephyr-800"},{slots:["imgWrapper"],orientation:"horizontal",minimized:!1,class:"tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots"},{slots:["avatar"],orientation:"horizontal",minimized:!1,class:"tw--h-[50px]"},{slots:["avatar"],orientation:"vertical",minimized:!1,class:"tw--h-[60px]"}]}),lr=({orientation:e="horizontal",minimized:n=!1})=>{const{aiProfile:i,themeId:s}=U(se),{base:u,avatar:d,info:f,name:l,role:w,imgWrapper:y}=go({theme:s,orientation:e,minimized:n});return m.jsxs("div",{className:u(),children:[m.jsx("span",{className:y(),children:m.jsx("img",{className:d(),src:i.imgSrc,alt:"img"})}),m.jsxs("div",{className:f(),children:[m.jsx("div",{className:l(),children:i.name}),m.jsx("div",{className:w(),children:i.role})]})]})};lr.propTypes={orientation:R.string,minimized:R.bool};const yo=()=>{const{themeId:e}=U(se),{base:n}=wo({theme:e});return m.jsx("div",{className:n(),children:m.jsx(lr,{})})};var cr={exports:{}},it=typeof Reflect=="object"?Reflect:null,fn=it&&typeof it.apply=="function"?it.apply:function(n,i,s){return Function.prototype.apply.call(n,i,s)},At;it&&typeof it.ownKeys=="function"?At=it.ownKeys:Object.getOwnPropertySymbols?At=function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:At=function(n){return Object.getOwnPropertyNames(n)};function bo(e){console&&console.warn&&console.warn(e)}var dn=Number.isNaN||function(n){return n!==n};function q(){q.init.call(this)}cr.exports=q,cr.exports.once=_o,q.EventEmitter=q,q.prototype._events=void 0,q.prototype._eventsCount=0,q.prototype._maxListeners=void 0;var pn=10;function Ft(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(q,"defaultMaxListeners",{enumerable:!0,get:function(){return pn},set:function(e){if(typeof e!="number"||e<0||dn(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");pn=e}}),q.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},q.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||dn(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function hn(e){return e._maxListeners===void 0?q.defaultMaxListeners:e._maxListeners}q.prototype.getMaxListeners=function(){return hn(this)},q.prototype.emit=function(n){for(var i=[],s=1;s0&&(f=i[0]),f instanceof Error)throw f;var l=new Error("Unhandled error."+(f?" ("+f.message+")":""));throw l.context=f,l}var w=d[n];if(w===void 0)return!1;if(typeof w=="function")fn(w,this,i);else for(var y=w.length,b=bn(w,y),s=0;s0&&f.length>u&&!f.warned){f.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=n,l.count=f.length,bo(l)}return e}q.prototype.addListener=function(n,i){return mn(this,n,i,!1)},q.prototype.on=q.prototype.addListener,q.prototype.prependListener=function(n,i){return mn(this,n,i,!0)};function xo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wn(e,n,i){var s={fired:!1,wrapFn:void 0,target:e,type:n,listener:i},u=xo.bind(s);return u.listener=i,s.wrapFn=u,u}q.prototype.once=function(n,i){return Ft(i),this.on(n,wn(this,n,i)),this},q.prototype.prependOnceListener=function(n,i){return Ft(i),this.prependListener(n,wn(this,n,i)),this},q.prototype.removeListener=function(n,i){var s,u,d,f,l;if(Ft(i),u=this._events,u===void 0)return this;if(s=u[n],s===void 0)return this;if(s===i||s.listener===i)--this._eventsCount===0?this._events=Object.create(null):(delete u[n],u.removeListener&&this.emit("removeListener",n,s.listener||i));else if(typeof s!="function"){for(d=-1,f=s.length-1;f>=0;f--)if(s[f]===i||s[f].listener===i){l=s[f].listener,d=f;break}if(d<0)return this;d===0?s.shift():vo(s,d),s.length===1&&(u[n]=s[0]),u.removeListener!==void 0&&this.emit("removeListener",n,l||i)}return this},q.prototype.off=q.prototype.removeListener,q.prototype.removeAllListeners=function(n){var i,s,u;if(s=this._events,s===void 0)return this;if(s.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):s[n]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete s[n]),this;if(arguments.length===0){var d=Object.keys(s),f;for(u=0;u=0;u--)this.removeListener(n,i[u]);return this};function gn(e,n,i){var s=e._events;if(s===void 0)return[];var u=s[n];return u===void 0?[]:typeof u=="function"?i?[u.listener||u]:[u]:i?Eo(u):bn(u,u.length)}q.prototype.listeners=function(n){return gn(this,n,!0)},q.prototype.rawListeners=function(n){return gn(this,n,!1)},q.listenerCount=function(e,n){return typeof e.listenerCount=="function"?e.listenerCount(n):yn.call(e,n)},q.prototype.listenerCount=yn;function yn(e){var n=this._events;if(n!==void 0){var i=n[e];if(typeof i=="function")return 1;if(i!==void 0)return i.length}return 0}q.prototype.eventNames=function(){return this._eventsCount>0?At(this._events):[]};function bn(e,n){for(var i=new Array(n),s=0;se.intentions.email,Co=e=>e.intentions.payment,ko=e=>e.intentions.link,_n=e=>e.intentions.response,{setEmail:Ro,setEmailSuccess:Bo,setIsPaymentSuccessful:Po,setPaymentFormVisibility:jo,setEmailError:Sn,setIsEmailLoading:ur,setIsEmailFormVisible:Lt,setIsPaymentButtonVisible:Ot,setLink:Nt,setResponse:sa,setResponseFormVisibility:Mt,setResponseLoadingStatus:aa,setPaymentIntentError:Ao}=vn.actions,Fo=vn.reducer,Lo=ee({slots:{base:"tw--relative tw--flex tw--items-center",input:"tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none",loader:"tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]",spin:"tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto"},variants:{theme:{light:{base:"",input:"tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold",loader:"",spin:"tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600"},dark:{base:"",input:"tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold",loader:"",spin:"w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600"}}}}),fr=({type:e,ref:n=null,placeholder:i="",onChange:s=null,onKeyUp:u=null,isLoading:d=!1,value:f=null,e2e:l=null})=>{const{themeId:w}=U(se),{base:y,input:b,loader:v,spin:I}=Lo({theme:w});return m.jsxs("div",{className:y(),children:[m.jsx("input",{className:b(),type:e,disabled:d,ref:n,placeholder:i,onChange:s,onKeyUp:u,value:f,"data-e2e":l}),d&&m.jsx("span",{className:v(),children:m.jsx("span",{className:I()})})]})};fr.propTypes={type:R.string.isRequired,ref:R.string,value:R.string,placeholder:R.string,onChange:R.func,onKeyUp:R.func,isLoading:R.bool,e2e:R.string};const Oo=ee({slots:{base:"tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none"},variants:{theme:{light:{base:"tw--bg-light-glazeBg tw--text-light-glazeText tw--border-light-seraph tw--font-medium"},dark:{base:"tw--bg-dark-glazeBg tw--text-dark-glazeText tw--border-dark-glaze"}}}}),No=ee({slots:{base:"tw--flex-1 tw--text-[inherit]"},variants:{theme:{light:{base:"tw--text-light-status"},dark:{base:"tw--text-dark-seraph"}},outlined:{true:"tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow",false:"tw--bg-[transparent]"}}}),In=({text:e=null,onClick:n=null})=>{const{themeId:i}=U(se),{base:s}=Oo({theme:i});return m.jsx("button",{onClick:n,className:s(),type:"button",children:e})};In.propTypes={text:R.string.isRequired,onClick:R.func};const dr=({children:e,outlined:n=!1,onClick:i=null,e2e:s=null})=>{const{themeId:u}=U(se),{base:d}=No({theme:u,outlined:n});return m.jsx("button",{onClick:i,className:d(),"data-e2e":s,type:"button",children:e})};dr.propTypes={children:R.element.isRequired,outlined:R.bool,onClick:R.func};for(var Ye=256,Tn=[],Cn=256,Ut;Ye--;)Tn[Ye]=(Ye+256).toString(16).substring(1);function kn(e){var n=0,i=e||11;if(!Ut||Ye+i>Cn*2)for(Ut="",Ye=0;n{const n=/\[(.*?)\]/.exec(e);return!n||n.length<=1?{content:e,options:[]}:{content:e.replace(n[0],""),options:n[1].split("|").map((i,s)=>({id:`opt-${s}`,label:i,value:i}))}},_t=e=>{const n=f=>/[?&]([^=#]+)=([^&#]*)/g.test(f),i=/\b((?:https?:\/\/|www\.)[^\s/$.?#][^\s{}[\]()<>]*)\b/gi;let s="";window.location.search&&(s=new URLSearchParams(window.location.search),s.append(zt,"true"),s.append(Mo,localStorage.getItem("__cid")),s="/?"+s);const u=e.match(i),d=u?u[0]:"";return d?n(d)?d:d+s:!1},Uo=e=>Array.isArray(e),zo=e=>typeof e=="string",Do=e=>zo(e)&&e!=="",Vo=e=>Uo(e)&&e.length>0,St=(e,n)=>new URLSearchParams(e).get(n),Wo=(e,n=24)=>{const i=new Date,s=new Date(e);return(i-s)/(1e3*60*60)>=n};function Go(e){const n=new Date(e),i={day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric"};return`${n.toLocaleDateString(void 0,i)}`.toUpperCase()}const pr=(e,n)=>n.map(s=>new RegExp(`\\[?${s}\\]?`)).some(s=>e.match(s)),Rn=Qe.createSlice({name:"chat",initialState:ze,reducers:{setOutgoing(e,{payload:n}){e.outgoing={term:St(window.location.search,"utm_chat"),user_id:localStorage.getItem("__cid"),role:ue.user,message:n}},resetOutgoing(e){e.outgoing=ze.outgoing},setIncoming(e,{payload:n}){e.incoming={term:St(window.location.search,"utm_chat"),user_id:localStorage.getItem("__cid"),role:ue.assistant,content:n}},setError(e,{payload:n}){e.error=n},resetError(e){e.error=ze.error},resetIncoming(e){e.incoming=ze.incoming},addIncomingChunk(e,{payload:n}){e.incoming={...e.incoming,content:e.incoming.content+n.chunk}},setHistory(e,{payload:n}){e.history=n.map(i=>({...i,id:kn(),role:i.role,...Et(i.content)}))},appendHistory(e,{payload:n}){let i;n.role===ue.assistant&&(n.options&&n.options.length>0?i={content:n.content,options:n.options,isSpecial:n.isSpecial}:i={...Et(n.content),isSpecial:n.isSpecial}),n.role===ue.user&&(i={content:n.content}),e.history.push({id:kn(),...i,role:n.role})},resetHistory(e){e.history=ze.history},setTextToParse(e,{payload:n}){e.textToParse+=n},resetTextToParse(e){e.textToParse=ze.textToParse},setIsLoading(e){e.isLoading=!0},resetIsLoading(e){e.isLoading=ze.isLoading},appendUnsent(e,{payload:n}){e.unsent=[...e.unsent,n]},resetUnsent(e){e.unsent=ze.unsent},setShouldSendUnsent(e,{payload:n}){e.shouldSendUnsent=n},setConnected(e,{payload:n}){e.connected=n},setClosed(e){e.closed=!0}}}),$o=e=>e.chat.history[e.chat.history.length-1].id,hr=e=>e.chat,{setOutgoing:mr,setIncoming:Bn,resetIncoming:qo,addIncomingChunk:Ho,resetOutgoing:Yo,setHistory:wr,resetHistory:la,appendHistory:Ve,setTextToParse:gr,resetTextToParse:Xo,setIsLoading:yr,resetIsLoading:Dt,appendUnsent:Pn,resetUnsent:Jo,setShouldSendUnsent:jn,setError:br,resetError:An,setConnected:Fn,setClosed:xr}=Rn.actions,Ko=Rn.reducer,Zo=()=>{const e=rt(),{themeId:n}=U(se),{isLoading:i}=U(_n),{base:s,input:u,button:d}=cn({theme:n}),[f,l]=me.useState(""),[w,y]=me.useState(null),b=_=>{l(_.target.value),I()},v=_=>{_.preventDefault(),f.trim()&&e(Pn(f)),l(""),I()},I=()=>{clearTimeout(w);const _=setTimeout(()=>{e(jn(!0))},3e3);y(_)};return m.jsxs("form",{className:s(),onSubmit:v,children:[m.jsx("div",{className:u(),children:m.jsx(fr,{type:"response",name:"response",value:f,placeholder:"Write your message here...",onChange:b,isLoading:i})}),m.jsx("div",{className:d(),children:m.jsx(dr,{onClick:v,children:m.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:m.jsx("path",{d:"M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z"})})})})]})},Qo=()=>{const e=rt(),{themeId:n,translations:i}=U(se),{isLoading:s}=U(En),{base:u,input:d,button:f}=cn({theme:n}),[l,w]=me.useState(""),y=v=>{const I=v.target.value.trim();w(I)},b=v=>{v.preventDefault(),l!==""&&(e(ur(!0)),e(Ro(l)),ce.core.emit(ce.type.email,{email:l}),w(""))};return m.jsxs("form",{className:u(),onSubmit:b,children:[m.jsx("div",{className:d(),children:m.jsx(fr,{type:"email",name:"email",e2e:"email-input",value:l,placeholder:i.emailPlaceholder,onChange:y,isLoading:s})}),m.jsx("div",{className:f(),children:m.jsx(dr,{onClick:b,e2e:"email-validate-btn",children:m.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:m.jsx("path",{d:"M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z"})})})})]})},Ln=ee({slots:{btn:"tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]",link:"tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl"}}),es=ee({slots:{base:"tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50"},variants:{theme:{light:"tw--bg-light-lumina",dark:"tw--bg-dark-lumina"}}}),ts=ee({slots:{wrapper:"tw--flex tw--justify-between tw--w-full tw--mb-7",left:"tw--flex tw--flex-col",leftTop:"tw--flex tw--flex-row",icon:"tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]",text:"tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue",bottom:"tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue",right:"tw--flex tw--flex-col tw--items-end",price:"tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]",info:"tw--leading-[2] tw--text-[10px] tw--text-muted-blue"}}),rs=ee({slots:{base:"tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue"}}),ns=ee({slots:{base:"tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold",icon:"tw--mr-[5px]"}}),is=ee({slots:{wrapper:"loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5",inner:"tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center",dots:"tw--relative tw--flex tw--items-center tw--justify-center tw--p-3",dotsIn:"tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full",progressCheckmark:"tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center",panelTitle:"js-payment-message tw--text-lg tw--font-bold tw--leading-5",icon:"tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full",spinningTexts:"tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]",filmContainer:"js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center",film:"tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72"},variants:{theme:{light:{wrapper:"tw--shadow-light-card tw--bg-light-loader",dotsIn:"tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots",icon:"tw--bg-light-iota-dots",spinningTexts:"tw--text-light-zeta tw--opacity-60"},dark:{wrapper:"tw--shadow-dark-card tw--bg-dark-loader",dotsIn:"tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots",icon:"tw--bg-dark-iota-dots",spinningTexts:"tw--text-dark-zeta tw--opacity-60"}}}}),On=({config:e={price:"",period:""}})=>{const{translations:n}=U(v=>v.config),{wrapper:i,left:s,leftTop:u,icon:d,text:f,bottom:l,right:w,price:y,info:b}=ts();return m.jsx("header",{children:m.jsxs("div",{className:i(),children:[m.jsxs("span",{className:s(),children:[m.jsxs("div",{className:u(),children:[m.jsx("span",{className:d(),children:m.jsx("svg",{width:"26",height:"26",children:m.jsx("use",{xlinkHref:"/img/sprite.svg#secured-check"})})}),m.jsx("span",{className:f(),dangerouslySetInnerHTML:{__html:n.paymentHeaderTxt1}})]}),m.jsx("div",{className:l(),children:n.paymentHeaderTxt2})]}),m.jsxs("div",{className:w(),children:[m.jsx("div",{className:y(),children:e.price}),m.jsx("div",{className:b(),children:e.period})]})]})})};On.propTypes={config:R.object};const Nn=({text:e=null,onClick:n=null,e2e:i=null,disabled:s=!1})=>{const{themeId:u}=U(se),{btn:d}=Ln({theme:u});return m.jsxs("button",{onClick:n,className:d(),disabled:s,type:"button","data-e2e":i,children:[m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[m.jsx("path",{opacity:".3",d:"M4 12h16v6H4v-6zm0-6h16v2H4V6z",fill:"currentColor"}),m.jsx("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z",fill:"currentColor"})]}),m.jsx("span",{children:e})]})};Nn.propTypes={text:R.string.isRequired,onClick:R.func.isRequired,disabled:R.bool,e2e:R.string};const Mn=({onClick:e})=>{const{base:n}=rs();return m.jsx("button",{type:"button",className:n(),onClick:e,children:m.jsx("svg",{fill:"none",viewBox:"0 0 18 18",children:m.jsx("path",{d:"M13.725 4.282a.747.747 0 0 0-1.058 0L9 7.942 5.332 4.276a.748.748 0 1 0-1.057 1.057L7.942 9l-3.667 3.668a.748.748 0 1 0 1.057 1.057L9 10.057l3.667 3.668a.748.748 0 1 0 1.058-1.057L10.057 9l3.668-3.668a.752.752 0 0 0 0-1.05z",fill:"currentColor"})})})};Mn.propTypes={onClick:R.func.isRequired};const os=()=>{const{base:e,icon:n}=ns();return m.jsxs("footer",{className:e(),children:[m.jsx("svg",{className:n(),fill:"none",height:"12",width:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M9 4h-.5V3a2.5 2.5 0 0 0-5 0v1H3c-.55 0-1 .45-1 1v5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM6 8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zM7.55 4h-3.1V3c0-.855.695-1.55 1.55-1.55.855 0 1.55.695 1.55 1.55v1z",fill:"currentColor"})}),m.jsx("span",{children:"SSL Secure Connection"})]})},Un=({texts:e=[],title:n=""})=>{const{themeId:i}=U(se),{wrapper:s,inner:u,dots:d,dotsIn:f,icon:l,progressCheckmark:w,panelTitle:y,spinningTexts:b,filmContainer:v,film:I}=is({theme:i});return m.jsxs("div",{className:s(),children:[m.jsx("div",{className:u(),children:m.jsx("div",{className:d(),children:m.jsx("span",{className:f()})})}),m.jsxs("div",{className:w(),children:[m.jsx("span",{className:l(),children:m.jsxs("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("circle",{cx:"12",cy:"12",r:"12"}),m.jsx("path",{d:"m9.75 15.127-2.602-2.602a.748.748 0 0 0-1.058 1.057l3.135 3.136a.747.747 0 0 0 1.058 0l7.935-7.935a.748.748 0 0 0-1.058-1.058l-7.41 7.402z",fill:"white"})]})}),m.jsx("p",{className:y(),children:n})]}),m.jsx("div",{className:v(),children:m.jsx("div",{className:I(),children:e.map(_=>m.jsx("div",{className:b(),children:_},_))})})]})};Un.propTypes={texts:R.array.isRequired,title:R.string.isRequired};const zn=({href:e,text:n,onClick:i,forwardedRef:s,e2e:u=null})=>{const{link:d}=Ln();return m.jsx("a",{href:e,ref:s,onClick:i,className:d(),"data-e2e":u,children:n})};zn.propTypes={onClick:R.func.isRequired,text:R.string.isRequired,e2e:R.string,forwardedRef:R.object.isRequired,href:R.string.isRequired};const ss=ee({slots:{base:"loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5"},variants:{theme:{light:{base:"tw--bg-light-whisper"},dark:{base:"tw--bg-dark-whisper"}}}}),Dn=({children:e})=>{const{themeId:n}=U(se),{base:i}=ss({theme:n});return m.jsx("div",{className:i(),children:e})};Dn.propTypes={children:R.node.isRequired};const Vn=({onClose:e})=>{const{displayPlanPrice:n,billingFrequencyTmsg:i}=U(f=>f.meta.pd),{translations:s,themeId:u}=U(f=>f.config),{base:d}=es({theme:u});return m.jsx("div",{className:d(),children:m.jsxs("div",{id:"chat-payment-view",className:"light-pink-blue tw--max-w-[500px] tw--bg-white tw--w-full tw--min-h-[400px] tw--relative tw--rounded-lg tw--flex tw--flex-col tw--p-7",children:[m.jsx(Dn,{children:m.jsx(Un,{texts:s.loaderTexts,title:s.tm1224})}),m.jsx(Mn,{onClick:e}),m.jsx("div",{id:"primer-form-container",className:"tw--w-full h-full",children:m.jsx(On,{config:{price:n,period:i}})}),m.jsx(os,{})]})})};Vn.propTypes={onClose:R.func.isRequired};const Fe=({eventType:e,systemType:n,utmParams:i,customerUuid:s,email:u,phone:d})=>{if(window.trackEventInGTM&&window.tracking){const f=window.tracking.event({eventType:e,systemType:n,uri:window.location.pathname,domain:window.location.hostname,email:u||null,phone:d||null,customerUuid:s,additionalData:{},utmParams:i});window.tracking.trackClient(f),window.trackEventInGTM&&window.trackEventInGTM(f)}},as={addToCart:"AddToCart",contact:"Contact",initiateCheckout:"InitiateCheckout",pageView:"PageView",viewContent:"ViewContent",purchase:"Purchase",subscribe:"Subscribe",recurringSubscriptionPayment:"RecurringSubscriptionPayment",cancelSubscription:"CancelSubscription",purchaseFailed:"PurchaseFailed",subscribeFailed:"SubscribeFailed",recurringSubscriptionPaymentFailed:"RecurringSubscriptionPaymentFailed",customerCreated:"CustomerCreated",subscriptionChargeback:"SubscriptionChargeback",subscriptionRefund:"SubscriptionRefund",transactionChargeback:"TransactionChargeback",transactionRefund:"TransactionRefund"},Me={firstMessage:"FirstMessage",linkProvided:"LinkProvided",linkClicked:"LinkClicked",emailField:"EmailField",emailEntered:"EmailEntered",emailWrong:"EmailWrong",emailExist:"EmailExist",priceSeen:"PriceSeen",buttonClick:"ButtonClick"},ls=ee({slots:{base:"tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0",second:"tw--mt-0 tw--mb-auto",date:"tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40"},variants:{theme:{light:{base:"tw--text-light-zephyr-100 tw--font-medium"},dark:{base:"tw--text-dark-zephyr-100"}}}}),cs=ee({slots:{base:"tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10",title:"tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none"},variants:{theme:{light:{title:"tw--font-medium"}}}}),us=ee({slots:{base:"tw--grid"}}),fs=ee({slots:{base:"after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none"},variants:{isTyping:{true:"after:tw--animate-blink",false:"after:tw--hidden"},theme:{light:"after:tw--bg-light-zephyr-100",dark:"after:tw--bg-dark-zephyr-100"}}}),ds=ee({slots:{base:"tw--relative tw--max-w-[375px] tw--px-[15px] tw--py-[11px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5",action:"tw--absolute tw--bottom-[-16px] tw--right-[-10px]"},variants:{theme:{light:{action:"tw--text-light-seraph",base:"tw--font-medium"},dark:{action:"tw--text-dark-seraph"}},type:{assistant:{base:"tw--justify-self-start"},user:{base:"tw--justify-self-end"}}},compoundSlots:[{slots:["base"],theme:"light",type:"assistant",class:"tw--bg-light-lumina"},{slots:["base"],theme:"light",type:"user",class:"tw--bg-light-seraph tw--text-white"},{slots:["base"],theme:"dark",type:"assistant",class:"tw--bg-dark-lumina"},{slots:["base"],theme:"dark",type:"user",class:"tw--bg-dark-seraph"}]}),ps=ee({slots:{dotFirst:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave",dotSecond:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay",dotThird:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2"},compoundSlots:[{slots:["dotFirst","dotSecond","dotThird"],theme:"light",class:"tw--bg-light-zephyr-100"},{slots:["dotFirst","dotSecond","dotThird"],theme:"dark",class:"tw--bg-dark-zephyr-100"}]}),hs=()=>{const{themeId:e}=U(se),{dotFirst:n,dotSecond:i,dotThird:s}=ps({theme:e});return m.jsxs("div",{className:"tw--ml-7 tw--space-x-[6px]","data-e2e":"stream-response-loader",children:[m.jsx("span",{className:n()}),m.jsx("span",{className:i()}),m.jsx("span",{className:s()})]})},ms=()=>{const e=rt(),{isFormVisible:n}=U(_n),{cid:i,systemType:s,marketing:u}=U(Bi),{translations:d}=U(se),{isVisible:f,text:l,href:w}=U(ko),{isLoading:y}=U(hr),{error:b}=U(T=>T.chat),{isFormVisible:v,current:I,error:_}=U(En),{isButtonVisible:F,isFormVisible:W,error:j}=U(Co),H=b||_||j,z=me.useRef(null),[Te,xe]=me.useState(!1),le=T=>{e(jo(T))},ve=T=>{T.currentTarget.disabled=!0,ce.core.emit(ce.type.destroy),le(!1),xe(!1)},Ee=()=>{e(Ve({role:ue.assistant,content:d.tm1226})),e(Po(!0)),e(Ot(!1)),e(Nt({href:"/",isVisible:!0,text:d.ctaTextContent})),le(!1),setTimeout(()=>{z.current.click()},7e3)},Ce=T=>{e(Ao(T))},_e=()=>{ce.core.emit(ce.type.payment,{setIsPaymentContainerVisible:le,onPaymentSuccess:Ee,onError:Ce}),xe(!0)},ke=()=>{Fe({eventType:Me.linkClicked,systemType:s,utmParams:u.lastUtmParams,customerUuid:i,email:I}),e(xr()),localStorage.setItem(zt,!0)};return m.jsxs("div",{className:"tw--space-y-[11px] tw--pb-[11px]",children:[H&&m.jsx("div",{className:"tw--pl-[35px] tw--text-[#ff0043] tw--font-medium",children:H}),W&&m.jsx(Vn,{onClose:ve}),y&&m.jsx(hs,{}),f&&m.jsx(zn,{forwardedRef:z,text:l,onClick:ke,href:w,e2e:"quiz-trigger-btn"}),v&&m.jsx(Qo,{}),n&&m.jsx(Zo,{}),F&&m.jsx(Nn,{text:d.payButton,onClick:_e,disabled:Te,e2e:"payment-form-trigger-btn"})]})},Wn=({titleTxt:e=""})=>{const{themeId:n}=U(se),{base:i,title:s}=cs({theme:n}),u=Do(e);return m.jsxs("div",{className:i(),children:[u&&m.jsx("div",{className:s(),children:e}),m.jsx(lr,{orientation:"vertical"})]})};Wn.propTypes={titleTxt:R.string};const ws=ee({slots:{base:"tw--flex-1 tw--px-4 tw--py-3 tw--rounded-full"},variants:{theme:{light:{base:"tw--bg-light-glaze tw--text-white"},dark:{base:"tw--bg-dark-glazeBg tw--text-dark-glazeText"}}}});ee({slots:{base:"tw--flex-1 tw--px-4 tw--py-2"}});const Gn=({text:e=null,href:n=null,onClick:i=null})=>{const{themeId:s}=U(se),{base:u}=ws({theme:s});return m.jsx("a",{href:n,onClick:i,className:u(),children:e})};Gn.propTypes={href:R.string.isRequired,text:R.string.isRequired,onClick:R.func};const $n=/((?:https?:\/\/|www\.)[^\s/$.?#].[^\s{}[\]()<>]*)/gi,gs=/\{([^}]+)\}/g,qn=e=>e.split($n).map(i=>{if($n.test(i)){const s=_t(i);return m.jsx("a",{className:"tw--underline",href:s,children:i},`link-idx-${Math.random()}`)}return i}),ys=e=>e.split(gs).map((i,s)=>s%2===0?qn(i):m.jsx("strong",{children:qn(i)},`strong-${Math.random()}`)),Hn=({item:e={}})=>{const n=rt(),{themeId:i}=U(se),s=U($o),{incoming:u}=U(hr),d=Vo(e.options)&&e.id===s&&!e.isSpecial,{base:f,action:l}=ds({theme:i,type:e.role}),{base:w}=fs({isTyping:!!u&&!e.id,theme:i}),y=!1,b=_=>{n(mr(_))},v=_=>{n(Ve({role:"user",content:_}))},I=({items:_=[]})=>_.map(({id:F,label:W,value:j,link:H,noStream:z})=>m.jsx("span",{children:H?m.jsx(Gn,{text:W,href:H}):m.jsx(In,{text:W,onClick:z?()=>v(j):()=>b(j)})},F));return m.jsxs("div",{className:f(),children:[m.jsx("span",{className:w(),...e.role===ue.assistant?{"data-e2e":"stream-assistant-msg"}:"",children:ys(e.content)}),d&&m.jsx("div",{className:"tw--flex tw--flex-col tw--pt-[30px] tw--space-y-[10px]",children:m.jsx(I,{items:e.options})}),y]})};Hn.propTypes={item:R.object.isRequired};const vr=({item:e={}})=>{const{themeId:n}=U(se),{base:i}=us({theme:n});return m.jsx("div",{className:i(),children:m.jsx(Hn,{item:e})})};vr.propTypes={item:R.object.isRequired};const bs=()=>{const{themeId:e}=U(se),{aiProfile:n}=U(se),{history:i,incoming:s}=U(hr),{base:u,second:d,date:f}=ls({theme:e}),l=i&&i.length>0&&i[0];return m.jsx("div",{className:u(),children:m.jsxs("div",{className:d(),children:[m.jsx(Wn,{titleTxt:n.welcome}),l&&m.jsx("div",{className:f(),"data-e2e":"stream-assistant-msg-date",children:Go(l.time)}),i.map(w=>m.jsx(vr,{item:w},w.id)),s&&m.jsx(vr,{item:s})]})})},xs=ee({slots:{base:"tw--cursor-pointer tw--h-8 tw--relative tw--w-16 tw--rounded-3xl tw--border-0"},variants:{color:{enabled:"tw--bg-light-seraph",disabled:"tw--bg-light-zephyr-100"}}}),vs=ee({slots:{base:"tw--h-8 tw--w-8 tw--absolute tw---top-1/2 tw--translate-y-1/2 tw--bottom-1 tw--bg-white tw--rounded-full"},variants:{position:{enabled:"tw--left-0",disabled:"tw--right-0"}}}),Er=({onToggle:e,on:n=!1,title:i=""})=>{const{base:s}=xs({color:n?"enabled":"disabled"}),{base:u}=vs({position:n?"enabled":"disabled"});return m.jsxs("div",{className:"tw--flex tw--flex-col tw--text-white",children:[m.jsx("span",{className:"tw--pb-1",children:i}),m.jsx("button",{type:"button",className:s(),onClick:e,children:m.jsx("span",{className:u()})})]})};Er.propTypes={onToggle:R.func.isRequired,title:R.string.isRequired,on:R.bool};const Es=ee({slots:{base:"tw--fixed tw--flex tw--gap-2 tw--flex-col tw--p-3 tw--space-y-4 tw--bg-dark-sigma tw--rounded-lg"},variants:{hidden:{true:"tw--hidden"}}}),_s=()=>{const e=rt(),{enableDevTools:n,themeId:i,isPluginMode:s}=U(se),u=()=>e(Ti(i==="light"?"dark":"light")),{base:d}=Es({hidden:!n});return m.jsxs("div",{className:d(),children:[m.jsx(Er,{title:"Theme",on:i==="light",onToggle:u}),m.jsx(Er,{title:"Plugin mode",on:s,onToggle:()=>e(ki())})]})},Yn=({config:e={}})=>{const n=rt();return n(Pi(e.meta)),n(Gr(e.app)),n(Ci(!1)),m.jsxs(m.Fragment,{children:[m.jsx(_s,{}),m.jsx(un,{head:m.jsx(yo,{}),stream:m.jsx(bs,{}),foot:m.jsx(ms,{})})]})};Yn.propTypes={config:R.object.isRequired};function Vt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vt=function(i){return typeof i}:Vt=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Vt(e)}function Ss(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Xn(e,n){for(var i=0;in=>i=>{const{meta:s,chat:u,intentions:d}=e.getState();if(mr.match(i)&&(e.dispatch(Ve({role:ue.user,content:i.payload})),e.dispatch(yr()),pe.emit(be.chat,{role:ue.user,message:i.payload,term:St(window.location.search,"utm_chat"),user_id:s.cid}),Bs(u.history)&&Fe({eventType:Me.firstMessage,systemType:s.systemType,utmParams:s.marketing.lastUtmParams,customerUuid:s.cid})),gr.match(i)){const{textToParse:y,incoming:b}=u,v=y+i.payload;v.includes(ce.type.email)&&e.dispatch(Lt(!0)),v.includes(ce.type.payment)&&(e.dispatch(Ot(!0)),e.dispatch(Bn(b.content+s.pd.displayPlanPrice+" "+s.pd.billingFrequencyTmsg)))}xr.match(i)&&(document.querySelector("#chatbot-container").remove(),document.body.classList.remove("scroll-stop"),pe.close()),Pn.match(i)&&i.payload&&e.dispatch(Ve({role:ue.user,content:i.payload})),jn.match(i)&&i.payload&&u.unsent.length&&(pe.emit(be.chat,{role:ue.user,message:u.unsent.join(` +Check the top-level render call using <`+E+">.")}return x}}function oi(c,x){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var E=qs(x);if(ii[E])return;ii[E]=!0;var k="";c&&c._owner&&c._owner!==Pr.current&&(k=" It was passed a child from "+C(c._owner.type)+"."),pt(c),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,k),pt(null)}}function si(c,x){{if(typeof c!="object")return;if(we(c))for(var E=0;E",M=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof c,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,M)}var ae=$(c,x,E,V,X);if(ae==null)return ae;if(D){var Se=x.children;if(Se!==void 0)if(k)if(we(Se)){for(var ht=0;htXt.useDispatch(),U=Xt.useSelector,Si=()=>{const[e,n]=me.useState([0,0]);return me.useLayoutEffect(()=>{function i(){n([window.innerWidth,window.innerHeight])}return window.addEventListener("resize",i),i(),()=>window.removeEventListener("resize",i)},[]),e},nt={pd:null,cid:null,eid:null,systemType:null,marketing:{}},Ne={aiProfile:{name:null,role:null,imgSrc:null,initialMessage:"",displayInStream:!1},translations:{},themeId:null,chatUrl:null,enableDevTools:!1,isPluginMode:!1},ze={outgoing:null,incoming:null,textToParse:"",history:[],status:null,error:null,isLoading:!1,shouldSendUnsent:!1,unsent:[],connected:!1,closed:!1},Ii={email:{current:"",success:!1,error:!1,isFormVisible:!1,isLoading:!1},response:{value:"",isFormVisible:!1,isLoading:!1,error:!1},payment:{isButtonVisible:!1,isFormVisible:!1,isSuccessful:!1,error:!1},messaging:{isVisible:!1},link:{isVisible:!1,href:null,text:""}},Wr=Qe.createSlice({name:"config",initialState:Ne,reducers:{setConfig(e,{payload:n}){e.aiProfile={...Ne.aiProfile,...n.aiProfile},e.translations={...Ne.translations,...n.translations},e.themeId=n.themeId,e.chatUrl=n.chatUrl},resetConfig(e){e.aiProfile=Ne.aiProfile,e.themeId=Ne.themeId,e.translations=Ne.translations,e.chatUrl=Ne.chatUrl},setTheme(e,{payload:n}){e.themeId=n},resetTheme(e){e.themeId=Ne.themeId},setDevToolsStatus(e,{payload:n}){e.enableDevTools=n},resetDevToolsStatus(e){e.enableDevTools=Ne.enableDevTools},togglePluginMode(e){e.isPluginMode=!e.isPluginMode},setTranslations(e,{payload:n}){e.translations={...e.translations,...n}}}}),se=({config:e})=>e,{setConfig:Gr,resetConfig:ea,setTheme:Ti,resetTheme:ta,setDevToolsStatus:Ci,resetDevToolsStatus:ra,togglePluginMode:ki,setTranslations:na}=Wr.actions,Ri=Wr.reducer,$r=Qe.createSlice({name:"meta",initialState:nt,reducers:{setMeta(e,{payload:n}){e.cid=n.cid,e.eid=n.eid,e.systemType=n.systemType,e.pd={...n.pd,...e.pd},e.marketing={...n.marketing,...e.marketing}},resetMeta(e){e.pd=nt.pd,e.cid=nt.cid,e.eid=nt.eid,e.systemType=nt.systemType,e.marketing=nt.marketing},setMarketing(e,{payload:n}){e.marketing={...e.marketing,...n}},setPd(e,{payload:n}){e.pd={...e.pd,...n}}}}),Bi=e=>e.meta,{setMeta:Pi,resetMeta:ia,setMarketing:ji,setPd:Ai}=$r.actions,Fi=$r.reducer;var qr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,de=e=>!e||typeof e!="object"||Object.keys(e).length===0,Li=(e,n)=>JSON.stringify(e)===JSON.stringify(n);function Hr(e,n){e.forEach(function(i){Array.isArray(i)?Hr(i,n):n.push(i)})}function Yr(e){let n=[];return Hr(e,n),n}var Oi=(...e)=>Yr(e).filter(Boolean),Xr=(e,n)=>{let i={},s=Object.keys(e),u=Object.keys(n);for(let d of s)if(u.includes(d)){let f=e[d],l=n[d];typeof f=="object"&&typeof l=="object"?i[d]=Xr(f,l):i[d]=l+" "+f}else i[d]=e[d];for(let d of u)s.includes(d)||(i[d]=n[d]);return i},Jr=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function Ni(){for(var e=0,n,i,s="";ee&&(n=0,s=i,i=new Map)}return{get:function(f){var l=i.get(f);if(l!==void 0)return l;if((l=s.get(f))!==void 0)return u(f,l),l},set:function(f,l){i.has(f)?i.set(f,l):u(f,l)}}}var tn="!";function Gi(e){var n=e.separator||":",i=n.length===1,s=n[0],u=n.length;return function(f){for(var l=[],w=0,y=0,b,v=0;vy?b-y:void 0;return{modifiers:l,hasImportantModifier:F,baseClassName:W,maybePostfixModifierPosition:j}}}function $i(e){if(e.length<=1)return e;var n=[],i=[];return e.forEach(function(s){var u=s[0]==="[";u?(n.push.apply(n,i.sort().concat([s])),i=[]):i.push(s)}),n.push.apply(n,i.sort()),n}function qi(e){return{cache:Wi(e.cacheSize),splitModifiers:Gi(e),...Mi(e)}}var Hi=/\s+/;function Yi(e,n){var i=n.splitModifiers,s=n.getClassGroupId,u=n.getConflictingClassGroupIds,d=new Set;return e.trim().split(Hi).map(function(f){var l=i(f),w=l.modifiers,y=l.hasImportantModifier,b=l.baseClassName,v=l.maybePostfixModifierPosition,I=s(v?b.substring(0,v):b),_=!!v;if(!I){if(!v)return{isTailwindClass:!1,originalClassName:f};if(I=s(b),!I)return{isTailwindClass:!1,originalClassName:f};_=!1}var F=$i(w).join(":"),W=y?F+tn:F;return{isTailwindClass:!0,modifierId:W,classGroupId:I,originalClassName:f,hasPostfixModifier:_}}).reverse().filter(function(f){if(!f.isTailwindClass)return!0;var l=f.modifierId,w=f.classGroupId,y=f.hasPostfixModifier,b=l+w;return d.has(b)?!1:(d.add(b),u(w,y).forEach(function(v){return d.add(l+v)}),!0)}).reverse().map(function(f){return f.originalClassName}).join(" ")}function nr(){for(var e=arguments.length,n=new Array(e),i=0;i1?n-1:0),s=1;se||void 0,Pt=(...e)=>an(Yr(e).filter(Boolean).join(" ")),sr=null,jt={},ar=!1,vt=(...e)=>n=>n.twMerge?((!sr||ar)&&(ar=!1,sr=de(jt)?po:fo(jt)),an(sr(Pt(e)))):Pt(e),ln=(e,n)=>{for(let i in n)e.hasOwnProperty(i)?e[i]=Pt(e[i],n[i]):e[i]=n[i];return e},ee=(e,n)=>{let{extend:i=null,slots:s={},variants:u={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:l={}}=e,w={...ho,...n},y=i!=null&&i.base?Pt(i.base,e==null?void 0:e.base):e==null?void 0:e.base,b=i!=null&&i.variants&&!de(i.variants)?Xr(u,i.variants):u,v=i!=null&&i.defaultVariants&&!de(i.defaultVariants)?{...i.defaultVariants,...l}:l;!de(w.twMergeConfig)&&!Li(w.twMergeConfig,jt)&&(ar=!0,jt=w.twMergeConfig);let I=de(s)?{}:{base:e==null?void 0:e.base,...s},_=de(i==null?void 0:i.slots)?I:ln({...i==null?void 0:i.slots},de(I)?{base:e==null?void 0:e.base}:I),F=j=>{if(de(b)&&de(s)&&de(i==null?void 0:i.slots))return vt(y,j==null?void 0:j.class,j==null?void 0:j.className)(w);if(d&&!Array.isArray(d))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof d}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let H=(T,S,C=[],B)=>{let P=C;if(typeof S=="string")P=P.concat(Jr(S).split(" ").map(O=>`${T}:${O}`));else if(Array.isArray(S))P=P.concat(S.reduce((O,G)=>O.concat(`${T}:${G}`),[]));else if(typeof S=="object"&&typeof B=="string"){for(let O in S)if(S.hasOwnProperty(O)&&O===B){let G=S[O];if(G&&typeof G=="string"){let Y=Jr(G);P[B]?P[B]=P[B].concat(Y.split(" ").map(J=>`${T}:${J}`)):P[B]=Y.split(" ").map(J=>`${T}:${J}`)}else Array.isArray(G)&&G.length>0&&(P[B]=G.reduce((Y,J)=>Y.concat(`${T}:${J}`),[]))}}return P},z=(T,S=b,C=null,B=null)=>{var P;let O=S[T];if(!O||de(O))return null;let G=(P=B==null?void 0:B[T])!=null?P:j==null?void 0:j[T];if(G===null)return null;let Y=qr(G),J=Array.isArray(w.responsiveVariants)&&w.responsiveVariants.length>0||w.responsiveVariants===!0,ge=v==null?void 0:v[T],N=[];if(typeof Y=="object"&&J)for(let[ne,Xe]of Object.entries(Y)){let ot=O[Xe];if(ne==="initial"){ge=Xe;continue}Array.isArray(w.responsiveVariants)&&!w.responsiveVariants.includes(ne)||(N=H(ne,ot,N,C))}let K=O[Y]||O[qr(ge)];return typeof N=="object"&&typeof C=="string"&&N[C]?ln(N,K):N.length>0?(N.push(K),N):K},Te=()=>b?Object.keys(b).map(T=>z(T,b)):null,xe=(T,S)=>{if(!b||typeof b!="object")return null;let C=new Array;for(let B in b){let P=z(B,b,T,S),O=T==="base"&&typeof P=="string"?P:P&&P[T];O&&(C[C.length]=O)}return C},le={};for(let T in j)j[T]!==void 0&&(le[T]=j[T]);let ve=(T,S)=>{var C;let B=typeof(j==null?void 0:j[T])=="object"?{[T]:(C=j[T])==null?void 0:C.initial}:{};return{...v,...le,...B,...S}},Ee=(T=[],S)=>{let C=[];for(let{class:B,className:P,...O}of T){let G=!0;for(let[Y,J]of Object.entries(O)){let ge=ve(Y,S);if(Array.isArray(J)){if(!J.includes(ge[Y])){G=!1;break}}else if(ge[Y]!==J){G=!1;break}}G&&(B&&C.push(B),P&&C.push(P))}return C},Ce=T=>{let S=Ee(d,T),C=Ee(i==null?void 0:i.compoundVariants,T);return Oi(C,S)},_e=T=>{let S=Ce(T);if(!Array.isArray(S))return S;let C={};for(let B of S)if(typeof B=="string"&&(C.base=vt(C.base,B)(w)),typeof B=="object")for(let[P,O]of Object.entries(B))C[P]=vt(C[P],O)(w);return C},ke=T=>{if(f.length<1)return null;let S={};for(let{slots:C=[],class:B,className:P,...O}of f){if(!de(O)){let G=!0;for(let Y of Object.keys(O)){let J=ve(Y,T)[Y];if(J===void 0||(Array.isArray(O[Y])?!O[Y].includes(J):O[Y]!==J)){G=!1;break}}if(!G)continue}for(let G of C)S[G]=S[G]||[],S[G].push([B,P])}return S};if(!de(s)||!de(i==null?void 0:i.slots)){let T={};if(typeof _=="object"&&!de(_))for(let S of Object.keys(_))T[S]=C=>{var B,P;return vt(_[S],xe(S,C),((B=_e(C))!=null?B:[])[S],((P=ke(C))!=null?P:[])[S],C==null?void 0:C.class,C==null?void 0:C.className)(w)};return T}return vt(y,Te(),Ce(),j==null?void 0:j.class,j==null?void 0:j.className)(w)},W=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return F.variantKeys=W(),F.extend=i,F.base=y,F.slots=_,F.variants=b,F.defaultVariants=v,F.compoundSlots=f,F.compoundVariants=d,F};const mo=ee({slots:{base:"tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full",wrapper:"tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full"},variants:{theme:{light:{base:"tw--bg-light-lumina",wrapper:"tw--bg-light-whisper tw--text-light-zephyr-100"},dark:{base:"tw--bg-dark-lumina",wrapper:"tw--bg-dark-whisper tw--text-white"}},minimized:{true:"tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md"}}}),wo=ee({slots:{base:"tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0]"},variants:{theme:{light:"tw--shadow-light-zephyr-200",dark:"tw--shadow-dark-zephyr-200"}}}),cn=ee({slots:{base:"tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]",input:"tw--flex-1 tw--pr-2",button:"tw--flex tw--grow-0"}}),un=({head:e,stream:n,foot:i})=>{const{themeId:s,isPluginMode:u}=U(se),{base:d,wrapper:f}=mo({theme:s}),[l,w]=Si();return m.jsx("div",{style:{height:`${w}px`},className:d({minimized:u}),children:m.jsxs("div",{className:f(),children:[e,n,i]})})};un.propTypes={head:R.node.isRequired,stream:R.node.isRequired,foot:R.node.isRequired};const go=ee({slots:{base:"tw--flex tw--items-center tw--select-none",avatar:"tw--rounded-full",info:"",name:"",role:"",imgWrapper:""},variants:{theme:{light:{role:""},dark:{role:""}},orientation:{horizontal:{base:"tw--flex-row tw--text-left",avatar:"tw--shrink",name:"tw--text-xl/7 tw--font-bold tw--leading-[30px]",info:"tw--pl-[10px]"},vertical:{base:"tw--flex-col tw--text-center",name:"tw--text-[24px] tw--font-semibold"}}},compoundSlots:[{slots:["role"],orientation:"vertical",theme:"light",class:"tw--text-light-zephyr-600 tw--font-medium"},{slots:["role"],orientation:"horizontal",theme:"light",class:"tw--text-light-zephyr-800"},{slots:["role"],orientation:"vertical",theme:"dark",class:"tw--text-dark-zephyr-600"},{slots:["role"],orientation:"horizontal",theme:"dark",class:"tw--text-dark-zephyr-800"},{slots:["imgWrapper"],orientation:"horizontal",minimized:!1,class:"tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots"},{slots:["avatar"],orientation:"horizontal",minimized:!1,class:"tw--h-[50px]"},{slots:["avatar"],orientation:"vertical",minimized:!1,class:"tw--h-[60px]"}]}),lr=({orientation:e="horizontal",minimized:n=!1})=>{const{aiProfile:i,themeId:s}=U(se),{base:u,avatar:d,info:f,name:l,role:w,imgWrapper:y}=go({theme:s,orientation:e,minimized:n});return m.jsxs("div",{className:u(),children:[m.jsx("span",{className:y(),children:m.jsx("img",{className:d(),src:i.imgSrc,alt:"img"})}),m.jsxs("div",{className:f(),children:[m.jsx("div",{className:l(),children:i.name}),m.jsx("div",{className:w(),children:i.role})]})]})};lr.propTypes={orientation:R.string,minimized:R.bool};const yo=()=>{const{themeId:e}=U(se),{base:n}=wo({theme:e});return m.jsx("div",{className:n(),children:m.jsx(lr,{})})};var cr={exports:{}},it=typeof Reflect=="object"?Reflect:null,fn=it&&typeof it.apply=="function"?it.apply:function(n,i,s){return Function.prototype.apply.call(n,i,s)},At;it&&typeof it.ownKeys=="function"?At=it.ownKeys:Object.getOwnPropertySymbols?At=function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:At=function(n){return Object.getOwnPropertyNames(n)};function bo(e){console&&console.warn&&console.warn(e)}var dn=Number.isNaN||function(n){return n!==n};function q(){q.init.call(this)}cr.exports=q,cr.exports.once=_o,q.EventEmitter=q,q.prototype._events=void 0,q.prototype._eventsCount=0,q.prototype._maxListeners=void 0;var pn=10;function Ft(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(q,"defaultMaxListeners",{enumerable:!0,get:function(){return pn},set:function(e){if(typeof e!="number"||e<0||dn(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");pn=e}}),q.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},q.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||dn(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function hn(e){return e._maxListeners===void 0?q.defaultMaxListeners:e._maxListeners}q.prototype.getMaxListeners=function(){return hn(this)},q.prototype.emit=function(n){for(var i=[],s=1;s0&&(f=i[0]),f instanceof Error)throw f;var l=new Error("Unhandled error."+(f?" ("+f.message+")":""));throw l.context=f,l}var w=d[n];if(w===void 0)return!1;if(typeof w=="function")fn(w,this,i);else for(var y=w.length,b=bn(w,y),s=0;s0&&f.length>u&&!f.warned){f.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=n,l.count=f.length,bo(l)}return e}q.prototype.addListener=function(n,i){return mn(this,n,i,!1)},q.prototype.on=q.prototype.addListener,q.prototype.prependListener=function(n,i){return mn(this,n,i,!0)};function xo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wn(e,n,i){var s={fired:!1,wrapFn:void 0,target:e,type:n,listener:i},u=xo.bind(s);return u.listener=i,s.wrapFn=u,u}q.prototype.once=function(n,i){return Ft(i),this.on(n,wn(this,n,i)),this},q.prototype.prependOnceListener=function(n,i){return Ft(i),this.prependListener(n,wn(this,n,i)),this},q.prototype.removeListener=function(n,i){var s,u,d,f,l;if(Ft(i),u=this._events,u===void 0)return this;if(s=u[n],s===void 0)return this;if(s===i||s.listener===i)--this._eventsCount===0?this._events=Object.create(null):(delete u[n],u.removeListener&&this.emit("removeListener",n,s.listener||i));else if(typeof s!="function"){for(d=-1,f=s.length-1;f>=0;f--)if(s[f]===i||s[f].listener===i){l=s[f].listener,d=f;break}if(d<0)return this;d===0?s.shift():vo(s,d),s.length===1&&(u[n]=s[0]),u.removeListener!==void 0&&this.emit("removeListener",n,l||i)}return this},q.prototype.off=q.prototype.removeListener,q.prototype.removeAllListeners=function(n){var i,s,u;if(s=this._events,s===void 0)return this;if(s.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):s[n]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete s[n]),this;if(arguments.length===0){var d=Object.keys(s),f;for(u=0;u=0;u--)this.removeListener(n,i[u]);return this};function gn(e,n,i){var s=e._events;if(s===void 0)return[];var u=s[n];return u===void 0?[]:typeof u=="function"?i?[u.listener||u]:[u]:i?Eo(u):bn(u,u.length)}q.prototype.listeners=function(n){return gn(this,n,!0)},q.prototype.rawListeners=function(n){return gn(this,n,!1)},q.listenerCount=function(e,n){return typeof e.listenerCount=="function"?e.listenerCount(n):yn.call(e,n)},q.prototype.listenerCount=yn;function yn(e){var n=this._events;if(n!==void 0){var i=n[e];if(typeof i=="function")return 1;if(i!==void 0)return i.length}return 0}q.prototype.eventNames=function(){return this._eventsCount>0?At(this._events):[]};function bn(e,n){for(var i=new Array(n),s=0;se.intentions.email,Co=e=>e.intentions.payment,ko=e=>e.intentions.link,_n=e=>e.intentions.response,{setEmail:Ro,setEmailSuccess:Bo,setIsPaymentSuccessful:Po,setPaymentFormVisibility:jo,setEmailError:Sn,setIsEmailLoading:ur,setIsEmailFormVisible:Lt,setIsPaymentButtonVisible:Ot,setLink:Nt,setResponse:sa,setResponseFormVisibility:Mt,setResponseLoadingStatus:aa,setPaymentIntentError:Ao}=vn.actions,Fo=vn.reducer,Lo=ee({slots:{base:"tw--relative tw--flex tw--items-center",input:"tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none",loader:"tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]",spin:"tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto"},variants:{theme:{light:{base:"",input:"tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold",loader:"",spin:"tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600"},dark:{base:"",input:"tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold",loader:"",spin:"w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600"}}}}),fr=({type:e,ref:n=null,placeholder:i="",onChange:s=null,onKeyUp:u=null,isLoading:d=!1,value:f=null,e2e:l=null})=>{const{themeId:w}=U(se),{base:y,input:b,loader:v,spin:I}=Lo({theme:w});return m.jsxs("div",{className:y(),children:[m.jsx("input",{className:b(),type:e,disabled:d,ref:n,placeholder:i,onChange:s,onKeyUp:u,value:f,"data-e2e":l}),d&&m.jsx("span",{className:v(),children:m.jsx("span",{className:I()})})]})};fr.propTypes={type:R.string.isRequired,ref:R.string,value:R.string,placeholder:R.string,onChange:R.func,onKeyUp:R.func,isLoading:R.bool,e2e:R.string};const Oo=ee({slots:{base:"tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none"},variants:{theme:{light:{base:"tw--bg-light-glazeBg tw--text-light-glazeText tw--border-light-seraph tw--font-medium"},dark:{base:"tw--bg-dark-glazeBg tw--text-dark-glazeText tw--border-dark-glaze"}}}}),No=ee({slots:{base:"tw--flex-1 tw--text-[inherit]"},variants:{theme:{light:{base:"tw--text-light-status"},dark:{base:"tw--text-dark-seraph"}},outlined:{true:"tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow",false:"tw--bg-[transparent]"}}}),In=({text:e=null,onClick:n=null})=>{const{themeId:i}=U(se),{base:s}=Oo({theme:i});return m.jsx("button",{onClick:n,className:s(),type:"button",children:e})};In.propTypes={text:R.string.isRequired,onClick:R.func};const dr=({children:e,outlined:n=!1,onClick:i=null,e2e:s=null})=>{const{themeId:u}=U(se),{base:d}=No({theme:u,outlined:n});return m.jsx("button",{onClick:i,className:d(),"data-e2e":s,type:"button",children:e})};dr.propTypes={children:R.element.isRequired,outlined:R.bool,onClick:R.func};for(var Ye=256,Tn=[],Cn=256,Ut;Ye--;)Tn[Ye]=(Ye+256).toString(16).substring(1);function kn(e){var n=0,i=e||11;if(!Ut||Ye+i>Cn*2)for(Ut="",Ye=0;n{const n=/\[(.*?)\]/.exec(e);return!n||n.length<=1?{content:e,options:[]}:{content:e.replace(n[0],""),options:n[1].split("|").map((i,s)=>({id:`opt-${s}`,label:i,value:i}))}},_t=e=>{const n=f=>/[?&]([^=#]+)=([^&#]*)/g.test(f),i=/\b((?:https?:\/\/|www\.)[^\s/$.?#][^\s{}[\]()<>]*)\b/gi;let s="";window.location.search&&(s=new URLSearchParams(window.location.search),s.append(zt,"true"),s.append(Mo,localStorage.getItem("__cid")),s="/?"+s);const u=e.match(i),d=u?u[0]:"";return d?n(d)?d:d+s:!1},Uo=e=>Array.isArray(e),zo=e=>typeof e=="string",Do=e=>zo(e)&&e!=="",Vo=e=>Uo(e)&&e.length>0,St=(e,n)=>new URLSearchParams(e).get(n),Wo=(e,n=24)=>{const i=new Date,s=new Date(e);return(i-s)/(1e3*60*60)>=n};function Go(e){const n=new Date(e),i={day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric"};return`${n.toLocaleDateString(void 0,i)}`.toUpperCase()}const pr=(e,n)=>n.map(s=>new RegExp(`\\[?${s}\\]?`)).some(s=>e.match(s)),Rn=Qe.createSlice({name:"chat",initialState:ze,reducers:{setOutgoing(e,{payload:n}){e.outgoing={term:St(window.location.search,"utm_chat"),user_id:localStorage.getItem("__cid"),role:ue.user,message:n}},resetOutgoing(e){e.outgoing=ze.outgoing},setIncoming(e,{payload:n}){e.incoming={term:St(window.location.search,"utm_chat"),user_id:localStorage.getItem("__cid"),role:ue.assistant,content:n}},setError(e,{payload:n}){e.error=n},resetError(e){e.error=ze.error},resetIncoming(e){e.incoming=ze.incoming},addIncomingChunk(e,{payload:n}){e.incoming={...e.incoming,content:e.incoming.content+n.chunk}},setHistory(e,{payload:n}){e.history=n.map(i=>({...i,id:kn(),role:i.role,...Et(i.content)}))},appendHistory(e,{payload:n}){let i;n.role===ue.assistant&&(n.options&&n.options.length>0?i={content:n.content,options:n.options,isSpecial:n.isSpecial}:i={...Et(n.content),isSpecial:n.isSpecial}),n.role===ue.user&&(i={content:n.content}),e.history.push({id:kn(),...i,role:n.role})},resetHistory(e){e.history=ze.history},setTextToParse(e,{payload:n}){e.textToParse+=n},resetTextToParse(e){e.textToParse=ze.textToParse},setIsLoading(e){e.isLoading=!0},resetIsLoading(e){e.isLoading=ze.isLoading},appendUnsent(e,{payload:n}){e.unsent=[...e.unsent,n]},resetUnsent(e){e.unsent=ze.unsent},setShouldSendUnsent(e,{payload:n}){e.shouldSendUnsent=n},setConnected(e,{payload:n}){e.connected=n},setClosed(e){e.closed=!0}}}),$o=e=>{var n;return(n=e.chat.history[e.chat.history.length-1])==null?void 0:n.id},hr=e=>e.chat,{setOutgoing:mr,setIncoming:Bn,resetIncoming:qo,addIncomingChunk:Ho,resetOutgoing:Yo,setHistory:wr,resetHistory:la,appendHistory:Ve,setTextToParse:gr,resetTextToParse:Xo,setIsLoading:yr,resetIsLoading:Dt,appendUnsent:Pn,resetUnsent:Jo,setShouldSendUnsent:jn,setError:br,resetError:An,setConnected:Fn,setClosed:xr}=Rn.actions,Ko=Rn.reducer,Zo=()=>{const e=rt(),{themeId:n}=U(se),{isLoading:i}=U(_n),{base:s,input:u,button:d}=cn({theme:n}),[f,l]=me.useState(""),[w,y]=me.useState(null),b=_=>{l(_.target.value),I()},v=_=>{_.preventDefault(),f.trim()&&e(Pn(f)),l(""),I()},I=()=>{clearTimeout(w);const _=setTimeout(()=>{e(jn(!0))},3e3);y(_)};return m.jsxs("form",{className:s(),onSubmit:v,children:[m.jsx("div",{className:u(),children:m.jsx(fr,{type:"response",name:"response",value:f,placeholder:"Write your message here...",onChange:b,isLoading:i})}),m.jsx("div",{className:d(),children:m.jsx(dr,{onClick:v,children:m.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:m.jsx("path",{d:"M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z"})})})})]})},Qo=()=>{const e=rt(),{themeId:n,translations:i}=U(se),{isLoading:s}=U(En),{base:u,input:d,button:f}=cn({theme:n}),[l,w]=me.useState(""),y=v=>{const I=v.target.value.trim();w(I)},b=v=>{v.preventDefault(),l!==""&&(e(ur(!0)),e(Ro(l)),ce.core.emit(ce.type.email,{email:l}),w(""))};return m.jsxs("form",{className:u(),onSubmit:b,children:[m.jsx("div",{className:d(),children:m.jsx(fr,{type:"email",name:"email",e2e:"email-input",value:l,placeholder:i.emailPlaceholder,onChange:y,isLoading:s})}),m.jsx("div",{className:f(),children:m.jsx(dr,{onClick:b,e2e:"email-validate-btn",children:m.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:m.jsx("path",{d:"M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z"})})})})]})},Ln=ee({slots:{btn:"tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]",link:"tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl"}}),es=ee({slots:{base:"tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50"},variants:{theme:{light:"tw--bg-light-lumina",dark:"tw--bg-dark-lumina"}}}),ts=ee({slots:{wrapper:"tw--flex tw--justify-between tw--w-full tw--mb-7",left:"tw--flex tw--flex-col",leftTop:"tw--flex tw--flex-row",icon:"tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]",text:"tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue",bottom:"tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue",right:"tw--flex tw--flex-col tw--items-end",price:"tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]",info:"tw--leading-[2] tw--text-[10px] tw--text-muted-blue"}}),rs=ee({slots:{base:"tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue"}}),ns=ee({slots:{base:"tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold",icon:"tw--mr-[5px]"}}),is=ee({slots:{wrapper:"loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5",inner:"tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center",dots:"tw--relative tw--flex tw--items-center tw--justify-center tw--p-3",dotsIn:"tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full",progressCheckmark:"tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center",panelTitle:"js-payment-message tw--text-lg tw--font-bold tw--leading-5",icon:"tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full",spinningTexts:"tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]",filmContainer:"js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center",film:"tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72"},variants:{theme:{light:{wrapper:"tw--shadow-light-card tw--bg-light-loader",dotsIn:"tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots",icon:"tw--bg-light-iota-dots",spinningTexts:"tw--text-light-zeta tw--opacity-60"},dark:{wrapper:"tw--shadow-dark-card tw--bg-dark-loader",dotsIn:"tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots",icon:"tw--bg-dark-iota-dots",spinningTexts:"tw--text-dark-zeta tw--opacity-60"}}}}),On=({config:e={price:"",period:""}})=>{const{translations:n}=U(v=>v.config),{wrapper:i,left:s,leftTop:u,icon:d,text:f,bottom:l,right:w,price:y,info:b}=ts();return m.jsx("header",{children:m.jsxs("div",{className:i(),children:[m.jsxs("span",{className:s(),children:[m.jsxs("div",{className:u(),children:[m.jsx("span",{className:d(),children:m.jsx("svg",{width:"26",height:"26",children:m.jsx("use",{xlinkHref:"/img/sprite.svg#secured-check"})})}),m.jsx("span",{className:f(),dangerouslySetInnerHTML:{__html:n.paymentHeaderTxt1}})]}),m.jsx("div",{className:l(),children:n.paymentHeaderTxt2})]}),m.jsxs("div",{className:w(),children:[m.jsx("div",{className:y(),children:e.price}),m.jsx("div",{className:b(),children:e.period})]})]})})};On.propTypes={config:R.object};const Nn=({text:e=null,onClick:n=null,e2e:i=null,disabled:s=!1})=>{const{themeId:u}=U(se),{btn:d}=Ln({theme:u});return m.jsxs("button",{onClick:n,className:d(),disabled:s,type:"button","data-e2e":i,children:[m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[m.jsx("path",{opacity:".3",d:"M4 12h16v6H4v-6zm0-6h16v2H4V6z",fill:"currentColor"}),m.jsx("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z",fill:"currentColor"})]}),m.jsx("span",{children:e})]})};Nn.propTypes={text:R.string.isRequired,onClick:R.func.isRequired,disabled:R.bool,e2e:R.string};const Mn=({onClick:e})=>{const{base:n}=rs();return m.jsx("button",{type:"button",className:n(),onClick:e,children:m.jsx("svg",{fill:"none",viewBox:"0 0 18 18",children:m.jsx("path",{d:"M13.725 4.282a.747.747 0 0 0-1.058 0L9 7.942 5.332 4.276a.748.748 0 1 0-1.057 1.057L7.942 9l-3.667 3.668a.748.748 0 1 0 1.057 1.057L9 10.057l3.667 3.668a.748.748 0 1 0 1.058-1.057L10.057 9l3.668-3.668a.752.752 0 0 0 0-1.05z",fill:"currentColor"})})})};Mn.propTypes={onClick:R.func.isRequired};const os=()=>{const{base:e,icon:n}=ns();return m.jsxs("footer",{className:e(),children:[m.jsx("svg",{className:n(),fill:"none",height:"12",width:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M9 4h-.5V3a2.5 2.5 0 0 0-5 0v1H3c-.55 0-1 .45-1 1v5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM6 8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zM7.55 4h-3.1V3c0-.855.695-1.55 1.55-1.55.855 0 1.55.695 1.55 1.55v1z",fill:"currentColor"})}),m.jsx("span",{children:"SSL Secure Connection"})]})},Un=({texts:e=[],title:n=""})=>{const{themeId:i}=U(se),{wrapper:s,inner:u,dots:d,dotsIn:f,icon:l,progressCheckmark:w,panelTitle:y,spinningTexts:b,filmContainer:v,film:I}=is({theme:i});return m.jsxs("div",{className:s(),children:[m.jsx("div",{className:u(),children:m.jsx("div",{className:d(),children:m.jsx("span",{className:f()})})}),m.jsxs("div",{className:w(),children:[m.jsx("span",{className:l(),children:m.jsxs("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("circle",{cx:"12",cy:"12",r:"12"}),m.jsx("path",{d:"m9.75 15.127-2.602-2.602a.748.748 0 0 0-1.058 1.057l3.135 3.136a.747.747 0 0 0 1.058 0l7.935-7.935a.748.748 0 0 0-1.058-1.058l-7.41 7.402z",fill:"white"})]})}),m.jsx("p",{className:y(),children:n})]}),m.jsx("div",{className:v(),children:m.jsx("div",{className:I(),children:e.map(_=>m.jsx("div",{className:b(),children:_},_))})})]})};Un.propTypes={texts:R.array.isRequired,title:R.string.isRequired};const zn=({href:e,text:n,onClick:i,forwardedRef:s,e2e:u=null})=>{const{link:d}=Ln();return m.jsx("a",{href:e,ref:s,onClick:i,className:d(),"data-e2e":u,children:n})};zn.propTypes={onClick:R.func.isRequired,text:R.string.isRequired,e2e:R.string,forwardedRef:R.object.isRequired,href:R.string.isRequired};const ss=ee({slots:{base:"loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5"},variants:{theme:{light:{base:"tw--bg-light-whisper"},dark:{base:"tw--bg-dark-whisper"}}}}),Dn=({children:e})=>{const{themeId:n}=U(se),{base:i}=ss({theme:n});return m.jsx("div",{className:i(),children:e})};Dn.propTypes={children:R.node.isRequired};const Vn=({onClose:e})=>{const{displayPlanPrice:n,billingFrequencyTmsg:i}=U(f=>f.meta.pd),{translations:s,themeId:u}=U(f=>f.config),{base:d}=es({theme:u});return m.jsx("div",{className:d(),children:m.jsxs("div",{id:"chat-payment-view",className:"light-pink-blue tw--max-w-[500px] tw--bg-white tw--w-full tw--min-h-[400px] tw--relative tw--rounded-lg tw--flex tw--flex-col tw--p-7",children:[m.jsx(Dn,{children:m.jsx(Un,{texts:s.loaderTexts,title:s.tm1224})}),m.jsx(Mn,{onClick:e}),m.jsx("div",{id:"primer-form-container",className:"tw--w-full h-full",children:m.jsx(On,{config:{price:n,period:i}})}),m.jsx(os,{})]})})};Vn.propTypes={onClose:R.func.isRequired};const Fe=({eventType:e,systemType:n,utmParams:i,customerUuid:s,email:u,phone:d})=>{if(window.trackEventInGTM&&window.tracking){const f=window.tracking.event({eventType:e,systemType:n,uri:window.location.pathname,domain:window.location.hostname,email:u||null,phone:d||null,customerUuid:s,additionalData:{},utmParams:i});window.tracking.trackClient(f),window.trackEventInGTM&&window.trackEventInGTM(f)}},as={addToCart:"AddToCart",contact:"Contact",initiateCheckout:"InitiateCheckout",pageView:"PageView",viewContent:"ViewContent",purchase:"Purchase",subscribe:"Subscribe",recurringSubscriptionPayment:"RecurringSubscriptionPayment",cancelSubscription:"CancelSubscription",purchaseFailed:"PurchaseFailed",subscribeFailed:"SubscribeFailed",recurringSubscriptionPaymentFailed:"RecurringSubscriptionPaymentFailed",customerCreated:"CustomerCreated",subscriptionChargeback:"SubscriptionChargeback",subscriptionRefund:"SubscriptionRefund",transactionChargeback:"TransactionChargeback",transactionRefund:"TransactionRefund"},Me={firstMessage:"FirstMessage",linkProvided:"LinkProvided",linkClicked:"LinkClicked",emailField:"EmailField",emailEntered:"EmailEntered",emailWrong:"EmailWrong",emailExist:"EmailExist",priceSeen:"PriceSeen",buttonClick:"ButtonClick"},ls=ee({slots:{base:"tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0",second:"tw--mt-0 tw--mb-auto",date:"tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40"},variants:{theme:{light:{base:"tw--text-light-zephyr-100 tw--font-medium"},dark:{base:"tw--text-dark-zephyr-100"}}}}),cs=ee({slots:{base:"tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10",title:"tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none"},variants:{theme:{light:{title:"tw--font-medium"}}}}),us=ee({slots:{base:"tw--grid"}}),fs=ee({slots:{base:"after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none"},variants:{isTyping:{true:"after:tw--animate-blink",false:"after:tw--hidden"},theme:{light:"after:tw--bg-light-zephyr-100",dark:"after:tw--bg-dark-zephyr-100"}}}),ds=ee({slots:{base:"tw--relative tw--max-w-[375px] tw--px-[15px] tw--py-[11px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5",action:"tw--absolute tw--bottom-[-16px] tw--right-[-10px]"},variants:{theme:{light:{action:"tw--text-light-seraph",base:"tw--font-medium"},dark:{action:"tw--text-dark-seraph"}},type:{assistant:{base:"tw--justify-self-start"},user:{base:"tw--justify-self-end"}}},compoundSlots:[{slots:["base"],theme:"light",type:"assistant",class:"tw--bg-light-lumina"},{slots:["base"],theme:"light",type:"user",class:"tw--bg-light-seraph tw--text-white"},{slots:["base"],theme:"dark",type:"assistant",class:"tw--bg-dark-lumina"},{slots:["base"],theme:"dark",type:"user",class:"tw--bg-dark-seraph"}]}),ps=ee({slots:{dotFirst:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave",dotSecond:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay",dotThird:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2"},compoundSlots:[{slots:["dotFirst","dotSecond","dotThird"],theme:"light",class:"tw--bg-light-zephyr-100"},{slots:["dotFirst","dotSecond","dotThird"],theme:"dark",class:"tw--bg-dark-zephyr-100"}]}),hs=()=>{const{themeId:e}=U(se),{dotFirst:n,dotSecond:i,dotThird:s}=ps({theme:e});return m.jsxs("div",{className:"tw--ml-7 tw--space-x-[6px]","data-e2e":"stream-response-loader",children:[m.jsx("span",{className:n()}),m.jsx("span",{className:i()}),m.jsx("span",{className:s()})]})},ms=()=>{const e=rt(),{isFormVisible:n}=U(_n),{cid:i,systemType:s,marketing:u}=U(Bi),{translations:d}=U(se),{isVisible:f,text:l,href:w}=U(ko),{isLoading:y}=U(hr),{error:b}=U(T=>T.chat),{isFormVisible:v,current:I,error:_}=U(En),{isButtonVisible:F,isFormVisible:W,error:j}=U(Co),H=b||_||j,z=me.useRef(null),[Te,xe]=me.useState(!1),le=T=>{e(jo(T))},ve=T=>{T.currentTarget.disabled=!0,ce.core.emit(ce.type.destroy),le(!1),xe(!1)},Ee=()=>{e(Ve({role:ue.assistant,content:d.tm1226})),e(Po(!0)),e(Ot(!1)),e(Nt({href:"/",isVisible:!0,text:d.ctaTextContent})),le(!1),setTimeout(()=>{z.current.click()},7e3)},Ce=T=>{e(Ao(T))},_e=()=>{ce.core.emit(ce.type.payment,{setIsPaymentContainerVisible:le,onPaymentSuccess:Ee,onError:Ce}),xe(!0)},ke=()=>{Fe({eventType:Me.linkClicked,systemType:s,utmParams:u.lastUtmParams,customerUuid:i,email:I}),e(xr()),localStorage.setItem(zt,!0)};return m.jsxs("div",{className:"tw--space-y-[11px] tw--pb-[11px]",children:[H&&m.jsx("div",{className:"tw--pl-[35px] tw--text-[#ff0043] tw--font-medium",children:H}),W&&m.jsx(Vn,{onClose:ve}),y&&m.jsx(hs,{}),f&&m.jsx(zn,{forwardedRef:z,text:l,onClick:ke,href:w,e2e:"quiz-trigger-btn"}),v&&m.jsx(Qo,{}),n&&m.jsx(Zo,{}),F&&m.jsx(Nn,{text:d.payButton,onClick:_e,disabled:Te,e2e:"payment-form-trigger-btn"})]})},Wn=({titleTxt:e=""})=>{const{themeId:n}=U(se),{base:i,title:s}=cs({theme:n}),u=Do(e);return m.jsxs("div",{className:i(),children:[u&&m.jsx("div",{className:s(),children:e}),m.jsx(lr,{orientation:"vertical"})]})};Wn.propTypes={titleTxt:R.string};const ws=ee({slots:{base:"tw--flex-1 tw--px-4 tw--py-3 tw--rounded-full"},variants:{theme:{light:{base:"tw--bg-light-glaze tw--text-white"},dark:{base:"tw--bg-dark-glazeBg tw--text-dark-glazeText"}}}});ee({slots:{base:"tw--flex-1 tw--px-4 tw--py-2"}});const Gn=({text:e=null,href:n=null,onClick:i=null})=>{const{themeId:s}=U(se),{base:u}=ws({theme:s});return m.jsx("a",{href:n,onClick:i,className:u(),children:e})};Gn.propTypes={href:R.string.isRequired,text:R.string.isRequired,onClick:R.func};const $n=/((?:https?:\/\/|www\.)[^\s/$.?#].[^\s{}[\]()<>]*)/gi,gs=/\{([^}]+)\}/g,qn=e=>e.split($n).map(i=>{if($n.test(i)){const s=_t(i);return m.jsx("a",{className:"tw--underline",href:s,children:i},`link-idx-${Math.random()}`)}return i}),ys=e=>e.split(gs).map((i,s)=>s%2===0?qn(i):m.jsx("strong",{children:qn(i)},`strong-${Math.random()}`)),Hn=({item:e={}})=>{const n=rt(),{themeId:i}=U(se),s=U($o),{incoming:u}=U(hr),d=Vo(e.options)&&e.id===s&&!e.isSpecial,{base:f,action:l}=ds({theme:i,type:e.role}),{base:w}=fs({isTyping:!!u&&!e.id,theme:i}),y=!1,b=_=>{n(mr(_))},v=_=>{n(Ve({role:"user",content:_}))},I=({items:_=[]})=>_.map(({id:F,label:W,value:j,link:H,noStream:z})=>m.jsx("span",{children:H?m.jsx(Gn,{text:W,href:H}):m.jsx(In,{text:W,onClick:z?()=>v(j):()=>b(j)})},F));return m.jsxs("div",{className:f(),children:[m.jsx("span",{className:w(),...e.role===ue.assistant?{"data-e2e":"stream-assistant-msg"}:"",children:ys(e.content)}),d&&m.jsx("div",{className:"tw--flex tw--flex-col tw--pt-[30px] tw--space-y-[10px]",children:m.jsx(I,{items:e.options})}),y]})};Hn.propTypes={item:R.object.isRequired};const vr=({item:e={}})=>{const{themeId:n}=U(se),{base:i}=us({theme:n});return m.jsx("div",{className:i(),children:m.jsx(Hn,{item:e})})};vr.propTypes={item:R.object.isRequired};const bs=()=>{const{themeId:e}=U(se),{aiProfile:n}=U(se),{history:i,incoming:s}=U(hr),{base:u,second:d,date:f}=ls({theme:e}),l=i&&i.length>0&&i[0];return m.jsx("div",{className:u(),children:m.jsxs("div",{className:d(),children:[m.jsx(Wn,{titleTxt:n.welcome}),l&&m.jsx("div",{className:f(),"data-e2e":"stream-assistant-msg-date",children:Go(l.time)}),i.map(w=>m.jsx(vr,{item:w},w.id)),s&&m.jsx(vr,{item:s})]})})},xs=ee({slots:{base:"tw--cursor-pointer tw--h-8 tw--relative tw--w-16 tw--rounded-3xl tw--border-0"},variants:{color:{enabled:"tw--bg-light-seraph",disabled:"tw--bg-light-zephyr-100"}}}),vs=ee({slots:{base:"tw--h-8 tw--w-8 tw--absolute tw---top-1/2 tw--translate-y-1/2 tw--bottom-1 tw--bg-white tw--rounded-full"},variants:{position:{enabled:"tw--left-0",disabled:"tw--right-0"}}}),Er=({onToggle:e,on:n=!1,title:i=""})=>{const{base:s}=xs({color:n?"enabled":"disabled"}),{base:u}=vs({position:n?"enabled":"disabled"});return m.jsxs("div",{className:"tw--flex tw--flex-col tw--text-white",children:[m.jsx("span",{className:"tw--pb-1",children:i}),m.jsx("button",{type:"button",className:s(),onClick:e,children:m.jsx("span",{className:u()})})]})};Er.propTypes={onToggle:R.func.isRequired,title:R.string.isRequired,on:R.bool};const Es=ee({slots:{base:"tw--fixed tw--flex tw--gap-2 tw--flex-col tw--p-3 tw--space-y-4 tw--bg-dark-sigma tw--rounded-lg"},variants:{hidden:{true:"tw--hidden"}}}),_s=()=>{const e=rt(),{enableDevTools:n,themeId:i,isPluginMode:s}=U(se),u=()=>e(Ti(i==="light"?"dark":"light")),{base:d}=Es({hidden:!n});return m.jsxs("div",{className:d(),children:[m.jsx(Er,{title:"Theme",on:i==="light",onToggle:u}),m.jsx(Er,{title:"Plugin mode",on:s,onToggle:()=>e(ki())})]})},Yn=({config:e={}})=>{const n=rt();return n(Pi(e.meta)),n(Gr(e.app)),n(Ci(!1)),m.jsxs(m.Fragment,{children:[m.jsx(_s,{}),m.jsx(un,{head:m.jsx(yo,{}),stream:m.jsx(bs,{}),foot:m.jsx(ms,{})})]})};Yn.propTypes={config:R.object.isRequired};function Vt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vt=function(i){return typeof i}:Vt=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Vt(e)}function Ss(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Xn(e,n){for(var i=0;in=>i=>{const{meta:s,chat:u,intentions:d}=e.getState();if(mr.match(i)&&(e.dispatch(Ve({role:ue.user,content:i.payload})),e.dispatch(yr()),pe.emit(be.chat,{role:ue.user,message:i.payload,term:St(window.location.search,"utm_chat"),user_id:s.cid}),Bs(u.history)&&Fe({eventType:Me.firstMessage,systemType:s.systemType,utmParams:s.marketing.lastUtmParams,customerUuid:s.cid})),gr.match(i)){const{textToParse:y,incoming:b}=u,v=y+i.payload;v.includes(ce.type.email)&&e.dispatch(Lt(!0)),v.includes(ce.type.payment)&&(e.dispatch(Ot(!0)),e.dispatch(Bn(b.content+s.pd.displayPlanPrice+" "+s.pd.billingFrequencyTmsg)))}xr.match(i)&&(document.querySelector("#chatbot-container").remove(),document.body.classList.remove("scroll-stop"),pe.close()),Pn.match(i)&&i.payload&&e.dispatch(Ve({role:ue.user,content:i.payload})),jn.match(i)&&i.payload&&u.unsent.length&&(pe.emit(be.chat,{role:ue.user,message:u.unsent.join(` `),term:St(window.location.search,"utm_chat"),user_id:s.cid}),e.dispatch(Jo()),e.dispatch(yr()));const f=!u.history.some(y=>y.role===ue.user),l=u.history[u.history.length-1];if(f&&Ve.match(i)&&i.payload.role===ue.user&&l.options.length){const y=l.options.findIndex(b=>b.value===i.payload.content)+1;Fe({eventType:Me.buttonClick+y,systemType:s.systemType,utmParams:s.marketing.lastUtmParams,customerUuid:s.cid})}if(Ot.match(i)&&i.payload===!0){const y={eventType:null,systemType:s.systemType,utmParams:s.marketing.lastUtmParams,customerUuid:s.cid,email:d.email.current};y.eventType=as.addToCart,Fe(y),y.eventType=Me.priceSeen,Fe(y)}if(Lt.match(i)&&i.payload&&Fe({eventType:Me.emailField,systemType:s.systemType,utmParams:s.marketing.lastUtmParams,customerUuid:s.cid,email:d.email.current}),wr.match(i)){const{intentions:y}=e.getState();e.dispatch(Mt({intentions:y,options:Et(i.payload[i.payload.length-1].content).options}))}if(!Gr.match(i))return n(i);e.dispatch(yr()),pe=ui.io.connect(i.payload.chatUrl,To),pe.on("connect",()=>{const{meta:y}=e.getState();pe.emit(be.chatHistory,{user_id:y.cid}),e.dispatch(Fn(!0))}),pe.on(be.chatHistory,({history:y,errors:b})=>{e.dispatch(Dt());const{config:v,meta:I,chat:_}=e.getState();if(b.length&&!_.error&&e.dispatch(br(b[0])),y.length){const F=y[y.length-1];Kn({lastMessage:F,store:e}),e.dispatch(wr(y))}else pe.emit(be.chat,{role:ue.assistant,term:St(window.location.search,"utm_chat"),user_id:I.cid,message:v.aiProfile.initialMessage})}),pe.on(be.streamStart,()=>{e.dispatch(Dt()),e.dispatch(Yo()),e.dispatch(Bn("")),e.dispatch(An())}),pe.on(`${be.chat}-${s.cid}`,y=>{const{options:b,content:v}=Et(y.message),I=pr(y.message,Ir);Kn({lastMessage:{content:y.message},store:e});const{intentions:_}=e.getState();e.dispatch(Dt()),e.dispatch(An()),e.dispatch(Ve({content:v,options:b,role:ue.assistant,isSpecial:I})),e.dispatch(Mt({intentions:_,options:b}))}),pe.on(be.streamData,({chunk:y,messages:b,errors:v})=>{const{chat:I,config:_}=e.getState(),{textToParse:F,incoming:W}=I,j=_t(F)||_t(W.content)||_t(y);if(b.length>I.history.length&&e.dispatch(wr(b)),v.length&&!I.error&&e.dispatch(br(v[0])),j&&(e.dispatch(Nt({isVisible:!0,href:j,text:_.translations.mealButton})),e.dispatch(Mt({isFormVisible:!1}))),y.includes("[")){e.dispatch(gr(y));return}if(y.includes("]")||F){e.dispatch(gr(y));return}e.dispatch(Ho({chunk:y}))}),pe.on(be.streamEnd,()=>{const{chat:y,intentions:b}=e.getState(),{options:v}=Et(y.textToParse),I=v.some(_=>pr(_.value,Ir));e.dispatch(Ve({...y.incoming,options:v,isSpecial:I})),e.dispatch(qo()),e.dispatch(Xo()),e.dispatch(Mt({intentions:b,options:v}))});const w=()=>{const{config:y}=e.getState();e.dispatch(Dt()),e.dispatch(br(y.translations.error))};pe.on(be.streamError,w),pe.on(be.error,w),pe.on(be.disconnect,()=>{e.dispatch(Fn(!1))}),n(i)},Rs=({time:e,role:n})=>{let i;return n===ue.user&&e&&(i=Wo(e)),i&&localStorage.removeItem(zt),localStorage.getItem(zt)==="true"},Bs=e=>e.filter(n=>n.role===ue.user).length===1,Kn=({lastMessage:e,store:n})=>{const{meta:i,config:s}=n.getState(),u=_t(e.content);Rs(e)&&n.dispatch(xr(!0)),u&&n.dispatch(Nt({isVisible:!0,href:u,text:s.translations.mealButton})),e.isSpecial=pr(e.content,Ir),e.content.includes(ce.type.email)&&n.dispatch(Lt(!0)),e.content.includes(ce.type.payment)&&(n.dispatch(Ot(!0)),e.content+=i.pd.displayPlanPrice+" "+i.pd.billingFrequencyTmsg)},Ps=e=>n=>{const i=s=>{const{meta:u}=e.getState();if(u.pd)return s.billingFrequencyTmsg=s.billingOptionType==="one-time"?u.pd.oneTimer:u.pd.subscriberBillingFrequency.replace("{1}",s.frequencyInMonths),s};return ce.core.on(ce.type.emailSuccess,()=>{const{meta:s,intentions:u}=e.getState();e.dispatch(ur(!1)),e.dispatch(Sn("")),e.dispatch(mr(u.email.current)),e.dispatch(Bo(!0)),e.dispatch(Lt(!1)),Fe({eventType:Me.emailEntered,systemType:s.systemType,utmParams:s.marketing.lastUtmParams,customerUuid:s.cid,email:u.email.current})}),ce.core.on(ce.type.emailError,s=>{const{meta:u,intentions:d,config:f}=e.getState(),{tm716:l,tm526:w,tm715:y,tm505:b}=f.translations;if(e.dispatch(ur(!1)),s.status===409){e.dispatch(Ve({role:"assistant",content:l,options:[{id:"opt-1",label:w,value:"link",link:s.data.buttonLink},{id:"opt-2",label:y,value:"button",noStream:!0}]})),Fe({eventType:Me.emailExist,systemType:u.systemType,utmParams:u.marketing.lastUtmParams,customerUuid:u.cid,email:d.email.current});return}s.status===422&&(e.dispatch(Sn(s.errors.email[0]||b)),Fe({eventType:Me.emailWrong,systemType:u.systemType,utmParams:u.marketing.lastUtmParams,customerUuid:u.cid,email:d.email.current}))}),Zn("marketing",e,ji),Zn("__pd",e,Ai,i),s=>{if(Nt.match(s)&&s.payload.isVisible){const{meta:u,intentions:d}=e.getState();Fe({eventType:Me.linkProvided,systemType:u.systemType,utmParams:u.marketing.lastUtmParams,customerUuid:u.cid,email:d.email.current})}n(s)}},Zn=(e,n,i,s=null)=>{const u=setInterval(()=>{let d=localStorage.getItem(e);try{d=JSON.parse(d)}catch{d=localStorage.getItem(e)}s&&d&&(d=s(d)),d&&(n.dispatch(i(d)),clearInterval(u))},1e3)};var Tr={},Cr={};Cr.__esModule=!0,Cr.default=Fs;function $t(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$t=function(i){return typeof i}:$t=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$t(e)}function kr(){}var js={getItem:kr,setItem:kr,removeItem:kr};function As(e){if((typeof self>"u"?"undefined":$t(self))!=="object"||!(e in self))return!1;try{var n=self[e],i="redux-persist ".concat(e," test");n.setItem(i,"test"),n.getItem(i),n.removeItem(i)}catch{return Ge.process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function Fs(e){var n="".concat(e,"Storage");return As(n)?self[n]:(Ge.process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),js)}Tr.__esModule=!0,Tr.default=Ns;var Ls=Os(Cr);function Os(e){return e&&e.__esModule?e:{default:e}}function Ns(e){var n=(0,Ls.default)(e);return{getItem:function(s){return new Promise(function(u,d){u(n.getItem(s))})},setItem:function(s,u){return new Promise(function(d,f){d(n.setItem(s,u))})},removeItem:function(s){return new Promise(function(u,d){u(n.removeItem(s))})}}}var Qn=void 0,Ms=Us(Tr);function Us(e){return e&&e.__esModule?e:{default:e}}var zs=(0,Ms.default)("local");Qn=zs;function Ds(){if(typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__=="object")for(const e in window.__REACT_DEVTOOLS_GLOBAL_HOOK__)e==="renderers"?window.__REACT_DEVTOOLS_GLOBAL_HOOK__[e]=new Map:window.__REACT_DEVTOOLS_GLOBAL_HOOK__[e]=typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__[e]=="function"?()=>{}:null}Ds();const Vs={key:"root",storage:Qn,blacklist:["chat","intentions"]},ei=Qe.configureStore({reducer:Fr.persistReducer(Vs,Qe.combineReducers({meta:Fi,config:Ri,chat:Ko,intentions:Fo})),middleware:e=>e({serializableCheck:!1}).concat(ks,Ps)}),Ws=Fr.persistStore(ei),Gs={meta:{pd:{subscriberBillingFrequency:"Billed every {1} month(s)",oneTimer:"Total price to be charged",billingFrequencyTmsg:""},cid:"23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d",systemType:"test",marketing:{utmParams:{utm_chat:"db-sales-nopresetquestions"},lastUtmParams:{utm_chat:"db-sales-nopresetquestions"},screen:{width:2084,height:1608}},eid:"23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d_PageView_1694521420366"},app:{aiProfile:{name:"Meal Mentor",role:"AI-powered nutritionist",imgSrc:"https://storage.1forfit.com/4oZrkOwbOQcSIGJopBG5qsf0CmBbVDKDqflzEkXq.jpg",displayInStream:!0,welcome:"Welcome to our live support. We're here to understand your requirements and suggest the best Keto diet suited for you.",initialMessage:"Do you want to lose weight? [Yes|No]"},chatUrl:"https://yourketo.ngrok.io",themeId:"dark",translations:{emailPlaceholder:"Please enter your email",tm526:"Continue to my plan",tm715:"Enter new email",tm716:"Entered email already exists, choose below to proceed",tm530:"Take the quiz",tm1224:"Payment in progress...",paymentHeaderTxt1:'SECURITY verified',paymentHeaderTxt2:"secured payments",loaderTexts:["We securely lock up your payment details.","Details zoom to the payment center.","Payment center requests our bank to process.","Our bank contacts your card network.","Card network asks your bank for approval.","Your bank reviews funds or credit.","Decision travels back to us.","Waiting your payment to be verified and complete."],payButton:"Secure payment",ctaTextContent:"Create Your Menu!",mealButton:"Create your meal plan",error:"Oops something went wrong.",tm505:"Please enter valid email address"}}},ti=e=>{gt.createRoot(e.root).render(m.jsx(Xt.Provider,{store:ei,children:m.jsx(Jn,{persistor:Ws,children:m.jsx(Yn,{config:e.initialConfig||Gs})})}))};fe.ReactBotClient=ti,fe.default=ti,fe.intent=ce,Object.defineProperties(fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); //# sourceMappingURL=index.umd.js.map diff --git a/dist/index.umd.js.map b/dist/index.umd.js.map index eee8b87..2a216e6 100644 --- a/dist/index.umd.js.map +++ b/dist/index.umd.js.map @@ -1 +1 @@ -{"version":3,"file":"index.umd.js","sources":["../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer-polyfill/index.js","../node_modules/process/browser.js","../node_modules/vite-plugin-node-polyfills/shims/dist/index.cjs","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/react-dom/client.js","../src/hooks/index.js","../src/store/initialState.js","../src/store/slices/config.js","../src/store/slices/meta.js","../node_modules/tailwind-variants/dist/chunk-T24HS5CV.js","../node_modules/tailwind-merge/dist/lib/tw-join.mjs","../node_modules/tailwind-merge/dist/lib/class-utils.mjs","../node_modules/tailwind-merge/dist/lib/lru-cache.mjs","../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs","../node_modules/tailwind-merge/dist/lib/config-utils.mjs","../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs","../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/from-theme.mjs","../node_modules/tailwind-merge/dist/lib/validators.mjs","../node_modules/tailwind-merge/dist/lib/default-config.mjs","../node_modules/tailwind-merge/dist/lib/merge-configs.mjs","../node_modules/tailwind-merge/dist/lib/extend-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/tw-merge.mjs","../node_modules/tailwind-variants/dist/index.js","../src/components/Layout/variants.js","../src/components/Layout/base.jsx","../src/components/Profile/variants.js","../src/components/Profile/index.jsx","../src/components/Layout/head.jsx","../node_modules/events/events.js","../src/config/socket.js","../src/config/roles.js","../src/services/intentions.js","../src/config/intentions.js","../src/store/slices/intentions.js","../src/components/Input/variants.js","../src/components/Input/basic.jsx","../src/components/Button/variants.js","../src/components/Button/basic.jsx","../src/components/Button/icon.jsx","../node_modules/uid/dist/index.mjs","../src/config/env.js","../src/utils/formatting.js","../src/utils/index.js","../src/store/slices/chat.js","../src/components/Form/response.jsx","../src/components/Form/email.jsx","../src/components/Payment/variants.js","../src/components/Payment/head.jsx","../src/components/Payment/btn.jsx","../src/components/Payment/close.jsx","../src/components/Payment/foot.jsx","../src/components/Payment/loader.jsx","../src/components/Payment/link.jsx","../src/components/Overlay/variants.js","../src/components/Overlay/index.jsx","../src/components/Scenes/payment.jsx","../src/services/tracking.js","../src/config/analytics.js","../src/components/Stream/variants.js","../src/components/Stream/ellipsis.jsx","../src/components/Layout/foot.jsx","../src/components/Stream/head.jsx","../src/components/Link/variants.js","../src/components/Link/basic.jsx","../src/config/patterns.js","../src/components/Stream/modifiers.jsx","../src/components/Stream/bubble.jsx","../src/components/Stream/row.jsx","../src/components/Stream/base.jsx","../src/components/Toggle/variants.js","../src/components/Toggle/index.jsx","../src/components/DevTools/variants.js","../src/components/DevTools/index.jsx","../src/components/AppBase/index.jsx","../node_modules/redux-persist/es/integration/react.js","../src/middleware/socket.js","../src/middleware/intentions.js","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/index.js","../src/utils/reactDevTools.js","../src/store/index.js","../src/main.jsx"],"sourcesContent":["'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";Object.defineProperty(exports,Symbol.toStringTag,{value:\"Module\"});const t=require(\"buffer-polyfill\"),r=require(\"process\"),o=e=>e&&e.__esModule?e:{default:e},l=o(r),u=globalThis||void 0||self;Object.defineProperty(exports,\"Buffer\",{enumerable:!0,get:()=>t.Buffer});Object.defineProperty(exports,\"process\",{enumerable:!0,get:()=>l.default});exports.global=u;\n//# sourceMappingURL=index.cjs.map\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","import { useLayoutEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\n// DEV NOTE: We prep the react-redux hooks to be aliased with types when we switch to TS\nexport const useAppDispatch = () => useDispatch();\nexport const useAppSelector = useSelector;\n\nexport const useWindowSize = () => {\n const [size, setSize] = useState([0, 0]);\n useLayoutEffect(() => {\n function updateSize() {\n setSize([window.innerWidth, window.innerHeight]);\n }\n window.addEventListener('resize', updateSize);\n updateSize();\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n return size;\n};\n","export const meta = {\n pd: null,\n cid: null,\n eid: null,\n systemType: null,\n marketing: {},\n};\n\nexport const config = {\n aiProfile: {\n name: null,\n role: null,\n imgSrc: null,\n initialMessage: '',\n displayInStream: false,\n },\n translations: {},\n themeId: null,\n chatUrl: null,\n enableDevTools: false,\n isPluginMode: false,\n};\n\nexport const chat = {\n outgoing: null,\n incoming: null,\n textToParse: '',\n history: [],\n status: null,\n error: null,\n isLoading: false,\n shouldSendUnsent: false,\n unsent: [],\n connected: false,\n closed: false,\n};\n\nexport const intentions = {\n email: {\n current: '',\n success: false,\n error: false,\n isFormVisible: false,\n isLoading: false,\n },\n response: {\n value: '',\n isFormVisible: false,\n isLoading: false,\n error: false,\n },\n payment: {\n isButtonVisible: false,\n isFormVisible: false,\n isSuccessful: false,\n error: false\n },\n messaging: {\n isVisible: false\n },\n link: {\n isVisible: false,\n href: null,\n text: ''\n }\n};\n\nexport default { meta, config, intentions, chat };\n","import { createSlice } from '@reduxjs/toolkit';\nimport { config as initialState } from '@/store/initialState';\n\nconst configSlice = createSlice({\n name: 'config',\n initialState,\n reducers: {\n setConfig(state, { payload }) {\n state.aiProfile = { ...initialState.aiProfile, ...payload.aiProfile };\n state.translations = { ...initialState.translations, ...payload.translations };\n state.themeId = payload.themeId;\n state.chatUrl = payload.chatUrl;\n },\n resetConfig(state) {\n state.aiProfile = initialState.aiProfile;\n state.themeId = initialState.themeId;\n state.translations = initialState.translations;\n state.chatUrl = initialState.chatUrl;\n },\n setTheme(state, { payload }) {\n state.themeId = payload;\n },\n resetTheme(state) {\n state.themeId = initialState.themeId;\n },\n setDevToolsStatus(state, { payload }) {\n state.enableDevTools = payload;\n },\n resetDevToolsStatus(state) {\n state.enableDevTools = initialState.enableDevTools;\n },\n togglePluginMode(state) {\n state.isPluginMode = !state.isPluginMode;\n },\n setTranslations(state, { payload }) {\n state.translations = { ...state.translations, ...payload };\n },\n }\n});\n\nexport const getConfig = ({ config }) => config;\nexport const getDevToolsStatus = ({ config }) => config.devToolsEnabled;\n\n// DEV NOTE: the createSlice function automatically create both action creator functions\nexport const {\n setConfig, resetConfig,\n setTheme, resetTheme,\n setDevToolsStatus, resetDevToolsStatus,\n togglePluginMode, setTranslations,\n} = configSlice.actions;\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\nimport { meta as initialState } from '@/store/initialState';\n\nconst configSlice = createSlice({\n name: 'meta',\n initialState,\n reducers: {\n setMeta(state, { payload }) {\n state.cid = payload.cid;\n state.eid = payload.eid;\n state.systemType = payload.systemType;\n state.pd = { ...payload.pd, ...state.pd };\n state.marketing = { ...payload.marketing, ...state.marketing };\n },\n resetMeta(state) {\n state.pd = initialState.pd;\n state.cid = initialState.cid;\n state.eid = initialState.eid;\n state.systemType = initialState.systemType;\n state.marketing = initialState.marketing;\n },\n setMarketing(state, { payload }) {\n state.marketing = { ...state.marketing, ...payload };\n },\n setPd(state, { payload }) {\n state.pd = { ...state.pd, ...payload };\n }\n }\n});\n\nexport const getMeta = state => state.meta;\nexport const { setMeta, resetMeta, setMarketing, setPd } = configSlice.actions;\nexport default configSlice.reducer;\n","var a=t=>typeof t==\"boolean\"?`${t}`:t===0?\"0\":t,l=t=>!t||typeof t!=\"object\"||Object.keys(t).length===0,u=(t,e)=>JSON.stringify(t)===JSON.stringify(e),x=t=>typeof t==\"boolean\";function i(t,e){t.forEach(function(n){Array.isArray(n)?i(n,e):e.push(n);});}function y(t){let e=[];return i(t,e),e}var g=(...t)=>y(t).filter(Boolean),p=(t,e)=>{let n={},c=Object.keys(t),f=Object.keys(e);for(let o of c)if(f.includes(o)){let s=t[o],r=e[o];typeof s==\"object\"&&typeof r==\"object\"?n[o]=p(s,r):n[o]=r+\" \"+s;}else n[o]=t[o];for(let o of f)c.includes(o)||(n[o]=e[o]);return n},k=t=>!t||typeof t!=\"string\"?t:t.replace(/\\s+/g,\" \").trim();\n\nexport { a, l as b, u as c, x as d, y as e, g as f, p as g, k as h };\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n var index = 0;\n var argument;\n var resolvedValue;\n var string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction toValue(mix) {\n if (typeof mix === 'string') {\n return mix;\n }\n var resolvedValue;\n var string = '';\n for (var k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\n\nexport { twJoin };\n//# sourceMappingURL=tw-join.mjs.map\n","var CLASS_PART_SEPARATOR = '-';\nfunction createClassUtils(config) {\n var classMap = createClassMap(config);\n var conflictingClassGroups = config.conflictingClassGroups,\n _config$conflictingCl = config.conflictingClassGroupModifiers,\n conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;\n function getClassGroupId(className) {\n var classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n }\n function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {\n var conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);\n }\n return conflicts;\n }\n return {\n getClassGroupId: getClassGroupId,\n getConflictingClassGroupIds: getConflictingClassGroupIds\n };\n}\nfunction getGroupRecursive(classParts, classPartObject) {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n var currentClassPart = classParts[0];\n var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n var classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(function (_ref) {\n var validator = _ref.validator;\n return validator(classRest);\n })?.classGroupId;\n}\nvar arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nfunction getGroupIdForArbitraryProperty(className) {\n if (arbitraryPropertyRegex.test(className)) {\n var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n}\n/**\n * Exported for testing only\n */\nfunction createClassMap(config) {\n var theme = config.theme,\n prefix = config.prefix;\n var classMap = {\n nextPart: new Map(),\n validators: []\n };\n var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(function (_ref2) {\n var classGroupId = _ref2[0],\n classGroup = _ref2[1];\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n}\nfunction processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {\n classGroup.forEach(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId: classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(function (_ref3) {\n var key = _ref3[0],\n classGroup = _ref3[1];\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n}\nfunction getPart(classPartObject, path) {\n var currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n}\nfunction isThemeGetter(func) {\n return func.isThemeGetter;\n}\nfunction getPrefixedClassGroupEntries(classGroupEntries, prefix) {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(function (_ref4) {\n var classGroupId = _ref4[0],\n classGroup = _ref4[1];\n var prefixedClassGroup = classGroup.map(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {\n var key = _ref5[0],\n value = _ref5[1];\n return [prefix + key, value];\n }));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n}\n\nexport { createClassMap, createClassUtils };\n//# sourceMappingURL=class-utils.mjs.map\n","// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nfunction createLruCache(maxCacheSize) {\n if (maxCacheSize < 1) {\n return {\n get: function get() {\n return undefined;\n },\n set: function set() {}\n };\n }\n var cacheSize = 0;\n var cache = new Map();\n var previousCache = new Map();\n function update(key, value) {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n }\n return {\n get: function get(key) {\n var value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set: function set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n}\n\nexport { createLruCache };\n//# sourceMappingURL=lru-cache.mjs.map\n","var IMPORTANT_MODIFIER = '!';\nfunction createSplitModifiers(config) {\n var separator = config.separator || ':';\n var isSeparatorSingleCharacter = separator.length === 1;\n var firstSeparatorCharacter = separator[0];\n var separatorLength = separator.length;\n // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n return function splitModifiers(className) {\n var modifiers = [];\n var bracketDepth = 0;\n var modifierStart = 0;\n var postfixModifierPosition;\n for (var index = 0; index < className.length; index++) {\n var currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers: modifiers,\n hasImportantModifier: hasImportantModifier,\n baseClassName: baseClassName,\n maybePostfixModifierPosition: maybePostfixModifierPosition\n };\n };\n}\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nfunction sortModifiers(modifiers) {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n var sortedModifiers = [];\n var unsortedModifiers = [];\n modifiers.forEach(function (modifier) {\n var isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());\n return sortedModifiers;\n}\n\nexport { IMPORTANT_MODIFIER, createSplitModifiers, sortModifiers };\n//# sourceMappingURL=modifier-utils.mjs.map\n","import { createClassUtils } from './class-utils.mjs';\nimport { createLruCache } from './lru-cache.mjs';\nimport { createSplitModifiers } from './modifier-utils.mjs';\n\nfunction createConfigUtils(config) {\n return {\n cache: createLruCache(config.cacheSize),\n splitModifiers: createSplitModifiers(config),\n ...createClassUtils(config)\n };\n}\n\nexport { createConfigUtils };\n//# sourceMappingURL=config-utils.mjs.map\n","import { sortModifiers, IMPORTANT_MODIFIER } from './modifier-utils.mjs';\n\nvar SPLIT_CLASSES_REGEX = /\\s+/;\nfunction mergeClassList(classList, configUtils) {\n var splitModifiers = configUtils.splitModifiers,\n getClassGroupId = configUtils.getClassGroupId,\n getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n var classGroupsInConflict = new Set();\n return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {\n var _splitModifiers = splitModifiers(originalClassName),\n modifiers = _splitModifiers.modifiers,\n hasImportantModifier = _splitModifiers.hasImportantModifier,\n baseClassName = _splitModifiers.baseClassName,\n maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;\n var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n var hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n hasPostfixModifier = false;\n }\n var variantModifier = sortModifiers(modifiers).join(':');\n var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n return {\n isTailwindClass: true,\n modifierId: modifierId,\n classGroupId: classGroupId,\n originalClassName: originalClassName,\n hasPostfixModifier: hasPostfixModifier\n };\n }).reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter(function (parsed) {\n if (!parsed.isTailwindClass) {\n return true;\n }\n var modifierId = parsed.modifierId,\n classGroupId = parsed.classGroupId,\n hasPostfixModifier = parsed.hasPostfixModifier;\n var classId = modifierId + classGroupId;\n if (classGroupsInConflict.has(classId)) {\n return false;\n }\n classGroupsInConflict.add(classId);\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {\n return classGroupsInConflict.add(modifierId + group);\n });\n return true;\n }).reverse().map(function (parsed) {\n return parsed.originalClassName;\n }).join(' ');\n}\n\nexport { mergeClassList };\n//# sourceMappingURL=merge-classlist.mjs.map\n","import { createConfigUtils } from './config-utils.mjs';\nimport { mergeClassList } from './merge-classlist.mjs';\nimport { twJoin } from './tw-join.mjs';\n\nfunction createTailwindMerge() {\n for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {\n createConfig[_key] = arguments[_key];\n }\n var configUtils;\n var cacheGet;\n var cacheSet;\n var functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n var firstCreateConfig = createConfig[0],\n restCreateConfig = createConfig.slice(1);\n var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {\n return createConfigCurrent(previousConfig);\n }, firstCreateConfig());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n var cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n var result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\n\nexport { createTailwindMerge };\n//# sourceMappingURL=create-tailwind-merge.mjs.map\n","function fromTheme(key) {\n var themeGetter = function themeGetter(theme) {\n return theme[key] || [];\n };\n themeGetter.isThemeGetter = true;\n return themeGetter;\n}\n\nexport { fromTheme };\n//# sourceMappingURL=from-theme.mjs.map\n","var arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nvar fractionRegex = /^\\d+\\/\\d+$/;\nvar stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nvar tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nvar lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\n// Shadow always begins with x and y offset separated by underscore\nvar shadowRegex = /^-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nfunction isLength(value) {\n return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);\n}\nfunction isArbitraryLength(value) {\n return getIsArbitraryValue(value, 'length', isLengthOnly);\n}\nfunction isArbitrarySize(value) {\n return getIsArbitraryValue(value, 'size', isNever);\n}\nfunction isArbitraryPosition(value) {\n return getIsArbitraryValue(value, 'position', isNever);\n}\nfunction isArbitraryUrl(value) {\n return getIsArbitraryValue(value, 'url', isUrl);\n}\nfunction isArbitraryNumber(value) {\n return getIsArbitraryValue(value, 'number', isNumber);\n}\n/**\n * @deprecated Will be removed in next major version. Use `isArbitraryNumber` instead.\n */\nvar isArbitraryWeight = isArbitraryNumber;\nfunction isNumber(value) {\n return !Number.isNaN(Number(value));\n}\nfunction isPercent(value) {\n return value.endsWith('%') && isNumber(value.slice(0, -1));\n}\nfunction isInteger(value) {\n return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);\n}\nfunction isArbitraryValue(value) {\n return arbitraryValueRegex.test(value);\n}\nfunction isAny() {\n return true;\n}\nfunction isTshirtSize(value) {\n return tshirtUnitRegex.test(value);\n}\nfunction isArbitraryShadow(value) {\n return getIsArbitraryValue(value, '', isShadow);\n}\nfunction getIsArbitraryValue(value, label, testValue) {\n var result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return result[1] === label;\n }\n return testValue(result[2]);\n }\n return false;\n}\nfunction isLengthOnly(value) {\n return lengthUnitRegex.test(value);\n}\nfunction isNever() {\n return false;\n}\nfunction isUrl(value) {\n return value.startsWith('url(');\n}\nfunction isIntegerOnly(value) {\n return Number.isInteger(Number(value));\n}\nfunction isShadow(value) {\n return shadowRegex.test(value);\n}\n\nexport { isAny, isArbitraryLength, isArbitraryNumber, isArbitraryPosition, isArbitraryShadow, isArbitrarySize, isArbitraryUrl, isArbitraryValue, isArbitraryWeight, isInteger, isLength, isNumber, isPercent, isTshirtSize };\n//# sourceMappingURL=validators.mjs.map\n","import { fromTheme } from './from-theme.mjs';\nimport { isAny, isLength, isTshirtSize, isArbitraryValue, isPercent, isArbitraryLength, isInteger, isArbitraryNumber, isNumber, isArbitraryPosition, isArbitrarySize, isArbitraryUrl, isArbitraryShadow } from './validators.mjs';\n\nfunction getDefaultConfig() {\n var colors = fromTheme('colors');\n var spacing = fromTheme('spacing');\n var blur = fromTheme('blur');\n var brightness = fromTheme('brightness');\n var borderColor = fromTheme('borderColor');\n var borderRadius = fromTheme('borderRadius');\n var borderSpacing = fromTheme('borderSpacing');\n var borderWidth = fromTheme('borderWidth');\n var contrast = fromTheme('contrast');\n var grayscale = fromTheme('grayscale');\n var hueRotate = fromTheme('hueRotate');\n var invert = fromTheme('invert');\n var gap = fromTheme('gap');\n var gradientColorStops = fromTheme('gradientColorStops');\n var gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n var inset = fromTheme('inset');\n var margin = fromTheme('margin');\n var opacity = fromTheme('opacity');\n var padding = fromTheme('padding');\n var saturate = fromTheme('saturate');\n var scale = fromTheme('scale');\n var sepia = fromTheme('sepia');\n var skew = fromTheme('skew');\n var space = fromTheme('space');\n var translate = fromTheme('translate');\n var getOverscroll = function getOverscroll() {\n return ['auto', 'contain', 'none'];\n };\n var getOverflow = function getOverflow() {\n return ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n };\n var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {\n return ['auto', isArbitraryValue, spacing];\n };\n var getSpacingWithArbitrary = function getSpacingWithArbitrary() {\n return [isArbitraryValue, spacing];\n };\n var getLengthWithEmpty = function getLengthWithEmpty() {\n return ['', isLength];\n };\n var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {\n return ['auto', isNumber, isArbitraryValue];\n };\n var getPositions = function getPositions() {\n return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n };\n var getLineStyles = function getLineStyles() {\n return ['solid', 'dashed', 'dotted', 'double', 'none'];\n };\n var getBlendModes = function getBlendModes() {\n return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];\n };\n var getAlign = function getAlign() {\n return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n };\n var getZeroAndEmpty = function getZeroAndEmpty() {\n return ['', '0', isArbitraryValue];\n };\n var getBreaks = function getBreaks() {\n return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n };\n var getNumber = function getNumber() {\n return [isNumber, isArbitraryNumber];\n };\n var getNumberAndArbitrary = function getNumberAndArbitrary() {\n return [isNumber, isArbitraryValue];\n };\n return {\n cacheSize: 500,\n theme: {\n colors: [isAny],\n spacing: [isLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumber(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmpty(),\n contrast: getNumber(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumber(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumber(),\n scale: getNumber(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n \"float\": [{\n \"float\": ['right', 'left', 'none']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [].concat(getPositions(), [isArbitraryValue])\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal'].concat(getAlign())\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal'].concat(getAlign(), ['baseline'])\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [].concat(getAlign(), ['baseline'])\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize, isArbitraryValue]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [].concat(getLineStyles(), ['wavy'])\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isArbitraryValue, isLength]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n \"break\": [{\n \"break\": ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [].concat(getPositions(), [isArbitraryPosition])\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryUrl]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [].concat(getLineStyles(), ['hidden'])\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: [''].concat(getLineStyles())\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isArbitraryValue, isLength]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmpty()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': getBlendModes()\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: ['appearance-none'],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {\n pan: ['x', 'left', 'right', 'y', 'up', 'down']\n }]\n }],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only']\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n}\n\nexport { getDefaultConfig };\n//# sourceMappingURL=default-config.mjs.map\n","/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nfunction mergeConfigs(baseConfig, configExtension) {\n for (var key in configExtension) {\n mergePropertyRecursively(baseConfig, key, configExtension[key]);\n }\n return baseConfig;\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);\nfunction mergePropertyRecursively(baseObject, mergeKey, mergeValue) {\n if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {\n baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);\n return;\n }\n if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {\n if (baseObject[mergeKey] === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n for (var nextKey in mergeValue) {\n mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);\n }\n }\n}\n\nexport { mergeConfigs };\n//# sourceMappingURL=merge-configs.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\nimport { mergeConfigs } from './merge-configs.mjs';\n\nfunction extendTailwindMerge(configExtension) {\n for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n createConfig[_key - 1] = arguments[_key];\n }\n return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {\n return mergeConfigs(getDefaultConfig(), configExtension);\n }].concat(createConfig));\n}\n\nexport { extendTailwindMerge };\n//# sourceMappingURL=extend-tailwind-merge.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\n\nvar twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\n\nexport { twMerge };\n//# sourceMappingURL=tw-merge.mjs.map\n","import { e, b, g, c, f, a, h } from './chunk-T24HS5CV.js';\nimport { twMerge, extendTailwindMerge } from 'tailwind-merge';\n\nvar re={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Z=s=>s||void 0,j=(...s)=>Z(e(s).filter(Boolean).join(\" \")),R=null,O={},q=!1,w=(...s)=>d=>d.twMerge?((!R||q)&&(q=!1,R=b(O)?twMerge:extendTailwindMerge(O)),Z(R(j(s)))):j(s),Y=(s,d)=>{for(let e in d)s.hasOwnProperty(e)?s[e]=j(s[e],d[e]):s[e]=d[e];return s},se=(s,d)=>{let{extend:e=null,slots:N={},variants:F={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:U={}}=s,m={...re,...d},M=e!=null&&e.base?j(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!b(e.variants)?g(F,e.variants):F,A=e!=null&&e.defaultVariants&&!b(e.defaultVariants)?{...e.defaultVariants,...U}:U;!b(m.twMergeConfig)&&!c(m.twMergeConfig,O)&&(q=!0,O=m.twMergeConfig);let $=b(N)?{}:{base:s==null?void 0:s.base,...N},h$1=b(e==null?void 0:e.slots)?$:Y({...e==null?void 0:e.slots},b($)?{base:s==null?void 0:s.base}:$),v=l=>{if(b(g$1)&&b(N)&&b(e==null?void 0:e.slots))return w(M,l==null?void 0:l.class,l==null?void 0:l.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The \"compoundVariants\" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The \"compoundSlots\" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n==\"string\")r=r.concat(h(n).split(\" \").map(c=>`${t}:${c}`));else if(Array.isArray(n))r=r.concat(n.reduce((c,f)=>c.concat(`${t}:${f}`),[]));else if(typeof n==\"object\"&&typeof i==\"string\"){for(let c in n)if(n.hasOwnProperty(c)&&c===i){let f=n[c];if(f&&typeof f==\"string\"){let o=h(f);r[i]?r[i]=r[i].concat(o.split(\" \").map(u=>`${t}:${u}`)):r[i]=o.split(\" \").map(u=>`${t}:${u}`);}else Array.isArray(f)&&f.length>0&&(r[i]=f.reduce((o,u)=>o.concat(`${t}:${u}`),[]));}}return r},W=(t,n=g$1,a$1=null,i=null)=>{var I;let r=n[t];if(!r||b(r))return null;let c=(I=i==null?void 0:i[t])!=null?I:l==null?void 0:l[t];if(c===null)return null;let f=a(c),o=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=A==null?void 0:A[t],b$1=[];if(typeof f==\"object\"&&o)for(let[T,J]of Object.entries(f)){let te=r[J];if(T===\"initial\"){u=J;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(T)||(b$1=K(T,te,b$1,a$1));}let S=r[f]||r[a(u)];return typeof b$1==\"object\"&&typeof a$1==\"string\"&&b$1[a$1]?Y(b$1,S):b$1.length>0?(b$1.push(S),b$1):S},x=()=>g$1?Object.keys(g$1).map(t=>W(t,g$1)):null,P=(t,n)=>{if(!g$1||typeof g$1!=\"object\")return null;let a=new Array;for(let i in g$1){let r=W(i,g$1,t,n),c=t===\"base\"&&typeof r==\"string\"?r:r&&r[t];c&&(a[a.length]=c);}return a},z={};for(let t in l)l[t]!==void 0&&(z[t]=l[t]);let D=(t,n)=>{var i;let a=typeof(l==null?void 0:l[t])==\"object\"?{[t]:(i=l[t])==null?void 0:i.initial}:{};return {...A,...z,...a,...n}},G=(t=[],n)=>{let a=[];for(let{class:i,className:r,...c}of t){let f=!0;for(let[o,u]of Object.entries(c)){let b=D(o,n);if(Array.isArray(u)){if(!u.includes(b[o])){f=!1;break}}else if(b[o]!==u){f=!1;break}}f&&(i&&a.push(i),r&&a.push(r));}return a},H=t=>{let n=G(C,t),a=G(e==null?void 0:e.compoundVariants,t);return f(a,n)},p=t=>{let n=H(t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i==\"string\"&&(a.base=w(a.base,i)(m)),typeof i==\"object\")for(let[r,c]of Object.entries(i))a[r]=w(a[r],c)(m);return a},ee=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...c}of V){if(!b(c)){let f=!0;for(let o of Object.keys(c)){let u=D(o,t)[o];if(u===void 0||(Array.isArray(c[o])?!c[o].includes(u):c[o]!==u)){f=!1;break}}if(!f)continue}for(let f of a)n[f]=n[f]||[],n[f].push([i,r]);}return n};if(!b(N)||!b(e==null?void 0:e.slots)){let t={};if(typeof h$1==\"object\"&&!b(h$1))for(let n of Object.keys(h$1))t[n]=a=>{var i,r;return w(h$1[n],P(n,a),((i=p(a))!=null?i:[])[n],((r=ee(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return w(M,x(),H(),l==null?void 0:l.class,l==null?void 0:l.className)(m)},_=()=>{if(!(!g$1||typeof g$1!=\"object\"))return Object.keys(g$1)};return v.variantKeys=_(),v.extend=e,v.base=M,v.slots=h$1,v.variants=g$1,v.defaultVariants=A,v.compoundSlots=V,v.compoundVariants=C,v},fe=s=>(d,e)=>se(d,e?g(s,e):s);\n\nexport { w as cn, j as cnBase, fe as createTV, re as defaultConfig, se as tv, Z as voidEmpty };\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const layoutBase = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full',\n wrapper: 'tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-lumina',\n wrapper: 'tw--bg-light-whisper tw--text-light-zephyr-100',\n },\n dark: {\n base: 'tw--bg-dark-lumina',\n wrapper: 'tw--bg-dark-whisper tw--text-white',\n }\n },\n minimized: {\n true: 'tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md'\n }\n },\n});\n\nexport const layoutHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0]',\n },\n variants: {\n theme: {\n light: 'tw--shadow-light-zephyr-200',\n dark: 'tw--shadow-dark-zephyr-200',\n },\n },\n});\n\nexport const layoutFoot = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]',\n input: 'tw--flex-1 tw--pr-2',\n button: 'tw--flex tw--grow-0',\n },\n});\n\nexport default { layoutBase, layoutHead, layoutFoot };\n","import { node } from 'prop-types';\nimport { useAppSelector, useWindowSize } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { layoutBase as variant } from './variants';\n\nexport const LayoutBase = ({ head, stream, foot }) => {\n const { themeId: theme, isPluginMode } = useAppSelector(getConfig);\n const { base, wrapper } = variant({ theme });\n const [_, height] = useWindowSize();\n\n return (\n \n
\n { head }\n { stream }\n { foot }\n
\n
\n );\n};\n\nLayoutBase.propTypes = {\n head: node.isRequired,\n stream: node.isRequired,\n foot: node.isRequired,\n};\n\nexport default LayoutBase;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const profile = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--select-none',\n avatar: 'tw--rounded-full',\n info: '',\n name: '',\n role: '',\n imgWrapper: ''\n },\n variants: {\n theme: {\n light: {\n role: '',\n },\n dark: {\n role: '',\n },\n },\n orientation: {\n horizontal: {\n base: 'tw--flex-row tw--text-left',\n avatar: 'tw--shrink',\n name: 'tw--text-xl/7 tw--font-bold tw--leading-[30px]',\n info: 'tw--pl-[10px]'\n },\n vertical: {\n base: 'tw--flex-col tw--text-center',\n name: 'tw--text-[24px] tw--font-semibold',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'light',\n class: 'tw--text-light-zephyr-600 tw--font-medium'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'light',\n class: 'tw--text-light-zephyr-800'\n },\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-600'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-800'\n },\n {\n slots: ['imgWrapper'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots' },\n {\n slots: ['avatar'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--h-[50px]',\n },\n {\n slots: ['avatar'],\n orientation: 'vertical',\n minimized: false,\n class: 'tw--h-[60px]',\n },\n ],\n});\n\nexport default profile;\n","import { string, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { profile as variant } from './variants';\n\nexport const Profile = ({ orientation = 'horizontal', minimized = false }) => {\n const { aiProfile, themeId: theme } = useAppSelector(getConfig);\n const { base, avatar, info, name, role, imgWrapper } = variant({ theme, orientation, minimized });\n\n return (\n
\n \n \n \n
\n
{ aiProfile.name }
\n
{ aiProfile.role }
\n
\n
\n );\n};\n\nProfile.propTypes = {\n orientation: string,\n minimized: bool,\n};\n\nexport default Profile;\n","import { useAppSelector } from '@/hooks';\n\nimport { Profile } from '@/components/Profile';\nimport { getConfig } from '@/store/slices/config';\nimport { layoutHead as variant } from './variants';\n\nexport const LayoutHead = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n
\n \n
\n );\n};\n\nexport default LayoutHead;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","export const config = {\n transports: ['websocket'],\n upgrade: false,\n pingInterval: 1000 * 60 * 5,\n pingTimeout: 1000 * 60 * 3,\n secure: true,\n reconnect: true,\n};\n\n// DEV Note: TS Enum\nexport const events = {\n chat: 'chat',\n chatHistory: 'chat-history',\n connect: 'connect',\n error: 'error',\n disconnect: 'disconnect',\n streamStart: 'stream-start',\n streamData: 'stream-data',\n streamEnd: 'stream-end',\n streamError: 'stream-error',\n};\n\nexport default { config, events };\n","export const roles = {\n user: 'user',\n assistant: 'assistant',\n};\n\nexport default roles;\n","import { EventEmitter } from 'node:events';\n\nimport { intentions } from '@/config';\n\nexport const intent = {\n type: intentions,\n core: new EventEmitter()\n};\n\nexport default intent;\n","// DEV Note: TS Enum\nexport const intentions = {\n email: 'email_intent',\n payment: 'payment_intent',\n emailError: 'email_validation_error',\n emailSuccess: 'email_validation_success',\n destroy: 'payment_intent_destroy'\n};\n\nexport default { intentions };\n","import { createSlice } from '@reduxjs/toolkit';\nimport { intentions as initialState } from '../initialState';\n\nconst intentionsSlice = createSlice({\n name: 'intentions',\n initialState,\n reducers: {\n setEmail(state, { payload }) {\n state.email.current = payload;\n },\n setEmailSuccess(state, { payload }) {\n state.email.success = payload;\n },\n setEmailError(state, { payload }) {\n state.email.error = payload;\n },\n setIsEmailLoading(state, { payload }) {\n state.email.isLoading = payload;\n },\n setIsEmailFormVisible(state, { payload }) {\n state.email.isFormVisible = payload;\n },\n setIsPaymentButtonVisible(state, { payload }) {\n state.payment.isButtonVisible = payload;\n },\n setPaymentFormVisibility(state, { payload }) {\n state.payment.isFormVisible = payload;\n },\n setIsPaymentSuccessful(state, { payload }) {\n state.payment.isSuccessful = payload;\n },\n setPaymentIntentError(state, { payload }) {\n state.payment.error = payload;\n },\n setLink(state, { payload }) {\n state.link = { ...state.link, ...payload };\n },\n // Response Form reducers\n setResponse(state, { payload }) {\n state.response.value = payload;\n },\n setResponseFormVisibility(state, { payload }) {\n if (payload.isFormVisible !== undefined) {\n state.response.isFormVisible = payload.isFormVisible;\n return;\n }\n state.response.isFormVisible = !payload.intentions.link.isVisible && !payload.intentions.email.isFormVisible && !payload.intentions.payment.isFormVisible && !payload.intentions.payment.isButtonVisible && payload.options.length === 0;\n },\n setResponseLoadingStatus(state, { payload }) {\n state.response.isLoading = payload;\n },\n }\n});\n\nexport const getEmailIntentions = state => state.intentions.email;\nexport const getPaymentIntentions = state => state.intentions.payment;\nexport const getLinkIntentions = state => state.intentions.link;\nexport const getResponseIntentions = state => state.intentions.response;\n\nexport const { setEmail, setEmailSuccess,\n setIsPaymentSuccessful, setPaymentFormVisibility,\n setEmailError, setIsEmailLoading,\n setIsEmailFormVisible, setIsPaymentButtonVisible,\n setLink, setResponse, setResponseFormVisibility,\n setResponseLoadingStatus, setPaymentIntentError\n} = intentionsSlice.actions;\n\nexport default intentionsSlice.reducer;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--relative tw--flex tw--items-center',\n input: 'tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none',\n loader: 'tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]',\n spin: 'tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto'\n },\n variants: {\n theme: {\n light: {\n base: '',\n input: 'tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold',\n loader: '',\n spin: 'tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600',\n },\n dark: {\n base: '',\n input: 'tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold',\n loader: '',\n spin: 'w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600',\n },\n },\n },\n});\n\nexport default basic;\n","import { string, func, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Input = ({ type, ref = null, placeholder = '', onChange = null, onKeyUp = null, isLoading = false, value = null, e2e = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, input, loader, spin } = variant({ theme });\n\n return (\n
\n \n\n { isLoading && (\n \n \n \n ) }\n
\n );\n};\n\nInput.propTypes = {\n type: string.isRequired,\n ref: string,\n value: string,\n placeholder: string,\n onChange: func,\n onKeyUp: func,\n isLoading: bool,\n e2e: string,\n};\n\nexport default Input;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glazeBg tw--text-light-glazeText tw--border-light-seraph tw--font-medium',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText tw--border-dark-glaze',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--text-[inherit]',\n },\n variants: {\n theme: {\n light: { base: 'tw--text-light-status' },\n dark: { base: 'tw--text-dark-seraph' },\n },\n outlined: {\n true: 'tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow',\n false: 'tw--bg-[transparent]',\n },\n },\n});\n","import { string, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Btn = ({ text = null, onClick = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n { text }\n \n );\n};\n\nBtn.propTypes = {\n text: string.isRequired,\n onClick: func,\n};\n\nexport default Btn;\n","import { element, bool, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { icon as variant } from './variants';\n\n// eslint-disable-next-line react/prop-types\nexport const IconBtn = ({ children, outlined = false, onClick = null, e2e = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme, outlined });\n\n return (\n \n { children }\n \n );\n};\n\nIconBtn.propTypes = {\n children: element.isRequired, // DEV NOTE: this explicitly validates for a single child to be passed\n outlined: bool,\n onClick: func,\n};\n\nexport default IconBtn;\n","var IDX=256, HEX=[], SIZE=256, BUFFER;\nwhile (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);\n\nexport function uid(len) {\n\tvar i=0, tmp=(len || 11);\n\tif (!BUFFER || ((IDX + tmp) > SIZE*2)) {\n\t\tfor (BUFFER='',IDX=0; i < SIZE; i++) {\n\t\t\tBUFFER += HEX[Math.random() * 256 | 0];\n\t\t}\n\t}\n\n\treturn BUFFER.substring(IDX, IDX++ + tmp);\n}\n","// DEV Note: will be depricated, replace with env vars\nexport const STORAGE_KEY = 'history';\nexport const CHAT_SEEN_KEY = 'chatSeen';\nexport const ALREADY_REGISTERED_KEY = 'showAlreadyRegisteredUser';\nexport const SHOW_PAYMENT_BUTTON_KEY = 'showPaymentButton';\nexport const SOCKET_IO_URL = 'http://localhost:5000';\nexport const UNSENT_MESSAGES_KEY = 'unsent';\nexport const GO_THROUGH_QUIZ_KEY = 'hasToGoThroughQuiz';\nexport const EXISTING_PRODUCT_LINK_KEY = 'existingProductLink';\nexport const CID = 'cid';\n","import { dateFormattingOptions } from '../config';\nimport { CHAT_SEEN_KEY, CID } from '../config/env';\n// eslint-disable-next-line import/prefer-default-export\n\n/**\n * Extracts options from a string enclosed in square brackets.\n *\n * @param {string} val - The input string possibly containing options enclosed in square brackets.\n * @returns {Object} An object containing the content with options removed and an array of extracted options.\n * @property {string} message - The content with options removed.\n * @property {Array<{id: string, label: string, value: string}>} options - An array of extracted options as objects.\n */\nexport const extractOptionSet = (val) => {\n const match = /\\[(.*?)\\]/.exec(val);\n\n if (!match || match.length <= 1) {\n return { content: val, options: [] };\n }\n\n return {\n content: val.replace(match[0], ''),\n options: match[1].split('|').map((item, index) => ({ id: `opt-${index}`, label: item, value: item })),\n };\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {string} val - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport const formatDateByLocale = (val, locale = undefined, options = dateFormattingOptions) => {\n const date = new Date(val);\n const formattedDate = date.toLocaleDateString(locale, options);\n\n return formattedDate;\n};\n\n/**\n * Extracts a link from a given string and appends query parameters if specified.\n *\n * @param {string} val - The input string from which the link will be extracted.\n * @param {string} userId - The user ID used for query parameter construction.\n * @example constructLink('here is a link to a diet website https://usa.example.com', '12311231a2', hasQueryParams('https://usa.example.com'));\n * //output: https://usa.example.com/?utm_chat=salesmen-keto-redirect&chatSeen=true&cid=12311231a2\n * @returns {string|boolean} The extracted link with optional query parameters or `false` if no link is found.\n */\nexport const constructLink = (val) => {\n const hasQueryParams = (url) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n };\n\n // matching example: 'Secure site: https://www.example.com' will give [ https://www.example.com ]\n const REGEX_URL = /\\b((?:https?:\\/\\/|www\\.)[^\\s/$.?#][^\\s{}[\\]()<>]*)\\b/gi;\n let search = '';\n\n if (window.location.search) {\n search = new URLSearchParams(window.location.search);\n\n search.append(CHAT_SEEN_KEY, 'true');\n search.append(CID, localStorage.getItem('__cid'));\n search = '/?' + search;\n }\n\n // Extract the link from the string\n const matches = val.match(REGEX_URL);\n const link = matches ? matches[0] : '';\n\n if (!link) {\n return false;\n }\n\n if (hasQueryParams(link)) {\n return link;\n }\n\n return link + search;\n};\n","/**\n * @description Check if value is of type 'null'\n * @param val\n * @returns {boolean}\n */\nexport const isNull = val => val === null;\n\n/**\n * @description Check if value is of type 'array'\n * @param val\n * @returns {boolean}\n */\nexport const isArr = val => Array.isArray(val);\n\n/**\n * @description Check if value is of type 'object'\n * @param val\n * @returns {boolean}\n */\nexport const isObj = val => typeof val === 'object' && !isArr(val) && !isNull(val);\n\n/**\n * @description Check if value is of type 'number'\n * @param val\n * @returns {boolean}\n */\n// eslint-disable-next-line no-restricted-globals\nexport const isNum = val => typeof val === 'number' && !isNaN(val);\n\n/**\n * @description Check if value is of type 'function'\n * @param val\n * @returns {boolean}\n */\nexport const isFunc = val => typeof val === 'function';\n\n/**\n * @description Check if value is of type 'string'\n * @param val\n * @returns {boolean}\n */\nexport const isStr = val => typeof val === 'string';\n\n/**\n * @description Check if value is of type 'undefined'\n * @param val\n * @returns {boolean}\n */\nexport const isUndef = val => typeof val === 'undefined';\n\n/**\n * @description Check if value is of type 'boolean'\n * @param val\n * @returns {boolean}\n */\nexport const isBool = val => typeof val === 'boolean';\n\n/**\n * @description Is non empty string\n * @param val\n * @returns {boolean|boolean}\n */\nexport const isNonEmptyStr = val => isStr(val) && val !== '';\n\n/**\n * @description Is non empty array\n * @param val\n * @returns {boolean|boolean}\n */\nexport const isNonEmptyArr = val => isArr(val) && val.length > 0;\n\n/**\n * @description To int\n * @param val\n * @returns {number}\n */\nexport const toInt = val => parseInt(val, 10);\n\n/**\n * @description Check if object has property\n * @param obj\n * @param prop\n * @returns {boolean}\n */\nexport const hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\n\n/**\n * @description Check if object has method\n * @param obj\n * @param method\n * @returns {boolean}\n */\nexport const hasMethod = (obj, method) => hasProp(obj, method) && isFunc(obj[method]);\n\n/**\n * @description Get object keys\n * @param obj\n * @returns {Array}\n */\nexport const getKeys = obj => Object.keys(obj);\n\n/**\n * @description Check if object has key\n * @param obj\n * @param key\n * @returns {boolean}\n */\nexport const hasKey = (obj, key) => getKeys(obj).indexOf(key) > -1;\n\n/**\n * @description Has keys\n * @param obj\n * @returns {boolean}\n */\nexport const hasKeys = obj => getKeys(obj).length > 0;\n\n/**\n * @description Iterate over each key of an object\n * @param obj\n * @param callback\n */\nexport const eachKey = (obj, callback) => {\n Object.keys(obj).forEach((key, index) => callback(key, obj[key], index));\n};\n\n/**\n * @description Linear iterator for object properties\n * @param obj\n * @param callback\n */\nexport const eachProp = (obj, callback) => {\n eachKey(obj, (key, prop, index) => callback(prop, key, index));\n};\n\n/**\n * @description Extract nested prop\n * @param obj\n * @param keysText\n * @returns {*}\n */\nexport const extractNestedProp = (obj, keysText) => {\n const keys = keysText.split('.');\n const keysLength = keys.length - 1;\n let keysIndex = 0;\n let isValidKey = true;\n let targetObj = { ...obj };\n let targetProp;\n let nextTarget;\n\n if (keys.length > 0) {\n while (isValidKey) {\n nextTarget = targetObj[keys[keysIndex]];\n\n if (keysIndex === keysLength) {\n targetProp = !isUndef(nextTarget) && !isNull(nextTarget)\n ? nextTarget\n : undefined;\n break;\n }\n\n if (!isObj(nextTarget)) {\n isValidKey = false;\n break;\n }\n\n targetObj = nextTarget;\n keysIndex += 1;\n }\n }\n\n return targetProp;\n};\n\n/**\n * @description Debounce\n * @returns {function}\n */\nexport const debounce = ({ timeout, id }) => {\n const timers = {};\n\n return callback => {\n if (timers[id]) {\n clearTimeout(timers[id]);\n }\n timers[id] = setTimeout(callback, timeout);\n };\n};\n\n/**\n * @description Hide page scroll\n */\nexport const hidePageScroll = () => {\n document.documentElement.classList.add('hide-scroll');\n};\n\n/**\n * @description Show page scroll\n */\nexport const showPageScroll = () => {\n document.documentElement.classList.remove('hide-scroll');\n};\n\n/**\n * Checks if a URL contains query parameters.\n *\n * @param {string} url - The URL to check for query parameters.\n * @returns {boolean} `true` if the URL contains query parameters, `false` otherwise.\n */\nexport const hasQueryParams = (url) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n};\n\n/**\n * Retrieves certain query parameter from a URL.\n *\n * @example getQueryParam(window.location.search, 'utm_chat')\n * @param {string} url\n * @param {string} param\n */\nexport const getQueryParam = (url, param) => {\n const urlParams = new URLSearchParams(url);\n\n return urlParams.get(param);\n};\n\n/**\n * Checks if 24 hours have passed since the given date.\n *\n * @function isExpired\n * @param {string} date - The date to compare in ISO 8601 format (e.g., \"2023-07-04T14:11:00.097Z\").\n * @returns {boolean} Returns true if 24 hours have passed since the given date, or false otherwise.\n */\nexport const isExpired = (date, maxHours = 24) => {\n const currentDate = new Date();\n const givenDate = new Date(date);\n const elapsedMilliseconds = currentDate - givenDate;\n const elapsedHours = elapsedMilliseconds / (1000 * 60 * 60); // Convert milliseconds to hours\n\n return elapsedHours >= maxHours;\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {string} dateString - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport function formatDateByLocale(dateString) {\n const date = new Date(dateString);\n\n const options = {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n };\n\n const formattedDate = date.toLocaleDateString(undefined, options);\n\n return `${formattedDate}`.toUpperCase();\n}\n\nexport const checkForSpecialPhrases = (string, specialMessages) => {\n const specialRegex = specialMessages.map(keyword => new RegExp(`\\\\[?${keyword}\\\\]?`));\n return specialRegex.some(regex => string.match(regex));\n};\n","import { createSlice } from '@reduxjs/toolkit';\nimport { uid } from 'uid';\nimport { chat as initialState } from '@/store/initialState';\nimport { extractOptionSet } from '@/utils/formatting';\nimport { getQueryParam } from '@/utils';\nimport { roles } from '@/config';\n\nconst configSlice = createSlice({\n name: 'chat',\n initialState,\n reducers: {\n setOutgoing(state, { payload }) {\n state.outgoing = {\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: localStorage.getItem('__cid'),\n role: roles.user,\n message: payload,\n };\n },\n resetOutgoing(state) {\n state.outgoing = initialState.outgoing;\n },\n setIncoming(state, { payload }) {\n state.incoming = {\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: localStorage.getItem('__cid'),\n role: roles.assistant,\n content: payload,\n };\n },\n setError(state, { payload }) {\n state.error = payload;\n },\n resetError(state) {\n state.error = initialState.error;\n },\n resetIncoming(state) {\n state.incoming = initialState.incoming;\n },\n addIncomingChunk(state, { payload }) {\n state.incoming = {\n ...state.incoming,\n content: state.incoming.content + payload.chunk,\n };\n },\n setHistory(state, { payload }) {\n state.history = payload.map((item) => ({ ...item, id: uid(), role: item.role, ...extractOptionSet(item.content) }));\n },\n appendHistory(state, { payload }) {\n let bubbleContent;\n\n if (payload.role === roles.assistant) {\n if (payload.options && payload.options.length > 0) {\n bubbleContent = { content: payload.content, options: payload.options, isSpecial: payload.isSpecial };\n } else {\n bubbleContent = { ...extractOptionSet(payload.content), isSpecial: payload.isSpecial };\n }\n }\n\n if (payload.role === roles.user) {\n bubbleContent = { content: payload.content };\n }\n\n state.history.push({ id: uid(), ...bubbleContent, role: payload.role });\n },\n resetHistory(state) {\n state.history = initialState.history;\n },\n setTextToParse(state, { payload }) {\n state.textToParse += payload;\n },\n resetTextToParse(state) {\n state.textToParse = initialState.textToParse;\n },\n setIsLoading(state) {\n state.isLoading = true;\n },\n resetIsLoading(state) {\n state.isLoading = initialState.isLoading;\n },\n appendUnsent(state, { payload }) {\n state.unsent = [...state.unsent, payload];\n },\n resetUnsent(state) {\n state.unsent = initialState.unsent;\n },\n setShouldSendUnsent(state, { payload }) {\n state.shouldSendUnsent = payload;\n },\n setConnected(state, { payload }) {\n state.connected = payload;\n },\n setClosed(state) {\n state.closed = true;\n },\n },\n});\n\nexport const getCurrentPointer = (state) => state.chat.history[state.chat.history.length - 1].id;\nexport const getStream = state => state.chat;\n\nexport const { setOutgoing, setIncoming,\n resetIncoming, addIncomingChunk,\n resetOutgoing, setHistory, resetHistory,\n appendHistory, setTextToParse, resetTextToParse,\n setIsLoading, resetIsLoading, appendUnsent, resetUnsent,\n setShouldSendUnsent, setError, resetError,\n setConnected, setClosed\n} = configSlice.actions;\n\nexport default configSlice.reducer;\n","import { useState } from 'react';\nimport { getResponseIntentions } from '@/store/slices/intentions';\nimport { getConfig } from '@/store/slices/config';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { Input } from '@/components/Input';\nimport { IconBtn } from '@/components/Button';\n\nimport { appendUnsent, setShouldSendUnsent } from '@/store/slices/chat';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const ResponseForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getResponseIntentions);\n const { base, input, button } = variant({ theme });\n const [response, setCurrentResponse] = useState('');\n const [timerId, setTimerId] = useState(null);\n\n const handleInputChange = (e) => {\n setCurrentResponse(e.target.value);\n setTimerToSendMessage();\n };\n\n const handleFormSubmit = (e) => {\n e.preventDefault();\n\n if (response.trim()) {\n dispatch(appendUnsent(response));\n }\n\n setCurrentResponse('');\n setTimerToSendMessage();\n };\n\n const setTimerToSendMessage = () => {\n clearTimeout(timerId);\n const currentId = setTimeout(() => {\n dispatch(setShouldSendUnsent(true));\n }, 3000);\n setTimerId(currentId);\n };\n\n return (\n
\n
\n \n
\n
\n \n \n \n \n \n
\n
\n );\n};\n\nexport default ResponseForm;\n","import { useState } from 'react';\nimport { intent } from '@/services/intentions';\nimport { getEmailIntentions, setEmail, setIsEmailLoading } from '@/store/slices/intentions';\nimport { getConfig } from '@/store/slices/config';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { Input } from '@/components/Input';\nimport { IconBtn } from '@/components/Button';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const EmailForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme, translations } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getEmailIntentions);\n const { base, input, button } = variant({ theme });\n const [email, setCurrentEmail] = useState('');\n\n const handleInputChange = (e) => {\n const currentValue = e.target.value.trim();\n setCurrentEmail(currentValue);\n };\n\n const handleFormSubmit = (e) => {\n e.preventDefault();\n\n if (email === '') {\n return;\n }\n\n dispatch(setIsEmailLoading(true));\n dispatch(setEmail(email));\n intent.core.emit(intent.type.email, { email });\n setCurrentEmail('');\n };\n\n return (\n
\n
\n \n
\n
\n \n \n \n \n \n
\n
\n );\n};\n\nexport default EmailForm;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const payment = /*tw*/ tv({\n slots: {\n btn: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]',\n\n link: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl',\n }\n});\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50',\n },\n variants: {\n theme: {\n light: 'tw--bg-light-lumina',\n dark: 'tw--bg-dark-lumina'\n }\n }\n});\n\nexport const head = /*tw*/ tv({\n slots: {\n wrapper: 'tw--flex tw--justify-between tw--w-full tw--mb-7',\n left: 'tw--flex tw--flex-col',\n leftTop: 'tw--flex tw--flex-row',\n icon: 'tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]',\n text: 'tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue',\n bottom: 'tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue',\n right: 'tw--flex tw--flex-col tw--items-end',\n price: 'tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]',\n info: 'tw--leading-[2] tw--text-[10px] tw--text-muted-blue',\n },\n});\n\nexport const close = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue',\n },\n});\n\nexport const foot = tv({\n slots: {\n base: 'tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold',\n icon: 'tw--mr-[5px]'\n },\n});\n\nexport const loader = tv({\n slots: {\n wrapper: 'loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5',\n inner: 'tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center',\n dots: 'tw--relative tw--flex tw--items-center tw--justify-center tw--p-3',\n dotsIn: 'tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full',\n progressCheckmark: 'tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center',\n panelTitle: 'js-payment-message tw--text-lg tw--font-bold tw--leading-5',\n icon: 'tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full',\n spinningTexts: 'tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]',\n filmContainer: 'js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center',\n film: 'tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72'\n },\n variants: {\n theme: {\n light: {\n wrapper: 'tw--shadow-light-card tw--bg-light-loader',\n dotsIn: 'tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots',\n icon: 'tw--bg-light-iota-dots',\n spinningTexts: 'tw--text-light-zeta tw--opacity-60'\n },\n dark: {\n wrapper: 'tw--shadow-dark-card tw--bg-dark-loader',\n dotsIn: 'tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots',\n icon: 'tw--bg-dark-iota-dots',\n spinningTexts: 'tw--text-dark-zeta tw--opacity-60'\n }\n }\n }\n});\n\nexport default payment;\n","import { object } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { head as variants } from './variants';\n\nexport const PaymentHead = ({ config = { price: '', period: '' } }) => {\n const { translations } = useAppSelector(state => state.config);\n const { wrapper, left, leftTop, icon, text, bottom, right, price, info } = variants();\n\n return (\n
\n
\n \n
\n \n \n \n \n \n { /* DEV NOTE: be aware that the text is not coming from an input so in the future it is not a good practice to use this attribute */ }\n \n
\n
\n { translations.paymentHeaderTxt2 }\n
\n
\n
\n
{ config.price }
\n
\n { config.period }\n
\n
\n
\n
\n );\n};\n\nPaymentHead.propTypes = {\n config: object\n};\n\nexport default PaymentHead;\n","import { string, func, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { payment as variant } from './variants';\n\nexport const PaymentButton = ({ text = null, onClick = null, e2e = null, disabled = false }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { btn } = variant({ theme });\n\n return (\n \n \n \n \n \n { text }\n \n );\n};\n\nPaymentButton.propTypes = {\n text: string.isRequired,\n onClick: func.isRequired,\n disabled: bool,\n e2e: string\n};\n\nexport default PaymentButton;\n","import { func } from 'prop-types';\nimport { close as variants } from './variants';\n\nexport const CloseButton = ({ onClick }) => {\n const { base } = variants();\n return (\n \n \n \n \n \n );\n};\n\nCloseButton.propTypes = {\n onClick: func.isRequired\n};\n\nexport default CloseButton;\n","import { foot as variants } from './variants';\n\nexport const PaymentFooter = () => {\n const { base, icon } = variants();\n return (\n
\n \n \n \n SSL Secure Connection\n
\n );\n};\n\nexport default PaymentFooter;\n","import { array, string } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { loader as variants } from './variants';\n\nexport const PaymentLoader = ({ texts = [], title = '' }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { wrapper, inner, dots, dotsIn, icon, progressCheckmark, panelTitle, spinningTexts, filmContainer, film } = variants({ theme });\n return (\n \n
\n
\n \n
\n
\n\n
\n \n \n \n \n \n \n

{ title }

\n
\n\n
\n
\n { texts.map((txt) => (\n
\n { txt }\n
\n )) }\n
\n
\n
\n );\n};\n\nPaymentLoader.propTypes = {\n texts: array.isRequired,\n title: string.isRequired,\n};\n\nexport default PaymentLoader;\n","import { func, object, string } from 'prop-types';\nimport payment from './variants';\n\nexport const Link = ({ href, text, onClick, forwardedRef, e2e = null }) => {\n const { link } = payment();\n return (\n { text }\n \n );\n};\n\nLink.propTypes = {\n onClick: func.isRequired,\n text: string.isRequired,\n e2e: string,\n forwardedRef: object.isRequired,\n href: string.isRequired,\n};\n\nexport default Link;\n","import { tv } from 'tailwind-variants';\n\n// eslint-disable-next-line spaced-comment\nexport const overlay = /*tw*/ tv({\n slots: {\n base: 'loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-whisper'\n },\n dark: {\n base: 'tw--bg-dark-whisper'\n }\n }\n }\n});\n\nexport default overlay;\n","import { node } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport overlay from './variants';\n\nexport const Overlay = ({ children }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = overlay({ theme });\n return (\n
\n { children }\n
\n );\n};\n\nOverlay.propTypes = { children: node.isRequired };\n\nexport default Overlay;\n","import { func } from 'prop-types';\nimport { Overlay } from '@/components/Overlay';\nimport { PaymentHead, CloseButton, PaymentFooter, PaymentLoader } from '@/components/Payment';\nimport { useAppSelector } from '@/hooks';\nimport { wrapper } from '../Payment/variants';\n\nexport const PaymentScene = ({ onClose }) => {\n const { displayPlanPrice, billingFrequencyTmsg } = useAppSelector(state => state.meta.pd);\n const { translations, themeId: theme } = useAppSelector(state => state.config);\n const { base } = wrapper({ theme });\n\n return (\n (\n
\n \n \n \n \n \n
\n \n
\n \n
\n
\n )\n );\n};\n\nPaymentScene.propTypes = {\n onClose: func.isRequired,\n};\n\nexport default PaymentScene;\n","/* eslint-disable no-undef */\n// eslint-disable-next-line import/prefer-default-export\nexport const track = ({ eventType, systemType, utmParams, customerUuid, email, phone }) => {\n if (window.trackEventInGTM && window.tracking) {\n const event = window.tracking.event({\n eventType,\n systemType,\n uri: window.location.pathname,\n domain: window.location.hostname,\n email: email || null,\n phone: phone || null,\n customerUuid,\n additionalData: {},\n utmParams,\n });\n\n window.tracking.trackClient(event);\n if (window.trackEventInGTM) {\n window.trackEventInGTM(event);\n }\n }\n};\n","import { getKeys } from '@/utils';\n\n// DEV Note: TS Enum\nexport const baseEvents = {\n addToCart: 'AddToCart',\n contact: 'Contact',\n initiateCheckout: 'InitiateCheckout',\n pageView: 'PageView',\n viewContent: 'ViewContent',\n purchase: 'Purchase',\n subscribe: 'Subscribe',\n recurringSubscriptionPayment: 'RecurringSubscriptionPayment',\n cancelSubscription: 'CancelSubscription',\n purchaseFailed: 'PurchaseFailed',\n subscribeFailed: 'SubscribeFailed',\n recurringSubscriptionPaymentFailed: 'RecurringSubscriptionPaymentFailed',\n customerCreated: 'CustomerCreated',\n subscriptionChargeback: 'SubscriptionChargeback',\n subscriptionRefund: 'SubscriptionRefund',\n transactionChargeback: 'TransactionChargeback',\n transactionRefund: 'TransactionRefund',\n};\n\n// DEV Note: TS Enum\nexport const customEvents = {\n firstMessage: 'FirstMessage',\n linkProvided: 'LinkProvided',\n linkClicked: 'LinkClicked',\n emailField: 'EmailField',\n emailEntered: 'EmailEntered',\n emailWrong: 'EmailWrong',\n emailExist: 'EmailExist',\n priceSeen: 'PriceSeen',\n buttonClick: 'ButtonClick',\n};\n\nexport const baseEventsArr = getKeys(baseEvents);\nexport const customEventsArr = getKeys(customEvents);\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const streamBase = /*tw*/ tv({\n slots: {\n base: 'tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0',\n second: 'tw--mt-0 tw--mb-auto',\n date: 'tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--text-light-zephyr-100 tw--font-medium',\n },\n dark: {\n base: 'tw--text-dark-zephyr-100'\n }\n }\n }\n});\n\nexport const streamHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10',\n title: 'tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none',\n },\n variants: {\n theme: {\n light: { title: 'tw--font-medium' },\n }\n }\n});\n\nexport const streamRow = /*tw*/ tv({\n slots: {\n base: 'tw--grid',\n },\n});\n\nexport const flickerEffect = /* tw */ tv({\n slots: {\n base: 'after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none',\n },\n variants: {\n isTyping: {\n true: 'after:tw--animate-blink',\n false: 'after:tw--hidden'\n },\n theme: {\n light: 'after:tw--bg-light-zephyr-100',\n dark: 'after:tw--bg-dark-zephyr-100'\n }\n }\n});\n\nexport const streamBubble = /*tw*/ tv({\n slots: {\n base: 'tw--relative tw--max-w-[375px] tw--px-[15px] tw--py-[11px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5',\n action: 'tw--absolute tw--bottom-[-16px] tw--right-[-10px]'\n },\n variants: {\n theme: {\n light: {\n action: 'tw--text-light-seraph',\n base: 'tw--font-medium',\n },\n dark: {\n action: 'tw--text-dark-seraph',\n },\n },\n type: {\n assistant: {\n base: 'tw--justify-self-start',\n },\n user: {\n base: 'tw--justify-self-end',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['base'],\n theme: 'light',\n type: 'assistant',\n class: 'tw--bg-light-lumina',\n },\n {\n slots: ['base'],\n theme: 'light',\n type: 'user',\n class: 'tw--bg-light-seraph tw--text-white',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'assistant',\n class: 'tw--bg-dark-lumina',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'user',\n class: 'tw--bg-dark-seraph',\n },\n ],\n});\n\nexport const ellipsis = tv({\n slots: {\n dotFirst: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave',\n dotSecond: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay',\n dotThird: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2',\n },\n compoundSlots: [{\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'light',\n class: 'tw--bg-light-zephyr-100',\n },\n {\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'dark',\n class: 'tw--bg-dark-zephyr-100',\n }]\n});\n\nexport default { streamBase, streamHead, streamRow, streamBubble, ellipsis };\n","import { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { ellipsis as variant } from './variants';\n\nexport const Ellipsis = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { dotFirst, dotSecond, dotThird } = variant({ theme });\n return (\n
\n \n \n \n
\n );\n};\n\nexport default Ellipsis;\n","import { useRef, useState } from 'react';\nimport intent from '@/services/intentions';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { ResponseForm, EmailForm } from '@/components/Form/';\nimport { getEmailIntentions, getLinkIntentions, getPaymentIntentions, getResponseIntentions, setIsPaymentButtonVisible, setIsPaymentSuccessful, setLink, setPaymentFormVisibility, setPaymentIntentError } from '@/store/slices/intentions';\nimport { PaymentButton, Link } from '@/components/Payment';\nimport { appendHistory, getStream, setClosed } from '@/store/slices/chat';\nimport { roles } from '@/config/roles';\nimport { PaymentScene } from '@/components/Scenes/payment';\nimport { getConfig } from '@/store/slices/config';\nimport { track } from '@/services/tracking';\nimport { customEvents } from '@/config/analytics';\nimport { getMeta } from '@/store/slices/meta';\nimport { Ellipsis } from '@/components/Stream/ellipsis';\nimport { CHAT_SEEN_KEY } from '@/config/env';\n\nexport const LayoutFoot = () => {\n const dispatch = useAppDispatch();\n const { isFormVisible: isResponseFormVisible } = useAppSelector(getResponseIntentions);\n const { cid, systemType, marketing } = useAppSelector(getMeta);\n const { translations } = useAppSelector(getConfig);\n const { isVisible: isCtaVisible, text: ctaText, href: ctaHref } = useAppSelector(getLinkIntentions);\n const { isLoading } = useAppSelector(getStream);\n const { error: streamError } = useAppSelector(store => store.chat);\n const { isFormVisible: isEmailFormVisible, current, error: emailError } = useAppSelector(getEmailIntentions);\n const { isButtonVisible: isPaymentButtonVisible, isFormVisible: isPaymentFormVisible, error: paymentIntentError } = useAppSelector(getPaymentIntentions);\n const error = streamError || emailError || paymentIntentError;\n\n const ctaAfterPayButton = useRef(null);\n const [disabled, setDisabled] = useState(false);\n\n const setIsPaymentContainerVisible = (isVisible) => {\n dispatch(setPaymentFormVisibility(isVisible));\n };\n\n const onClosePaymentForm = (e) => {\n e.currentTarget.disabled = true;\n intent.core.emit(intent.type.destroy);\n setIsPaymentContainerVisible(false);\n setDisabled(false);\n };\n\n const onPaymentSuccess = () => {\n // TODO: set in store to be persisted the GO THROUGH QUIZ button\n dispatch(appendHistory({ role: roles.assistant, content: translations.tm1226 }));\n dispatch(setIsPaymentSuccessful(true));\n dispatch(setIsPaymentButtonVisible(false));\n dispatch(setLink({ href: '/', isVisible: true, text: translations.ctaTextContent }));\n setIsPaymentContainerVisible(false);\n\n setTimeout(() => {\n ctaAfterPayButton.current.click();\n }, 7000);\n };\n\n const onError = (message) => {\n dispatch(setPaymentIntentError(message));\n };\n\n const initializePaymentForm = () => {\n intent.core.emit(intent.type.payment, { setIsPaymentContainerVisible, onPaymentSuccess, onError });\n setDisabled(true);\n };\n\n const onClickCtaPay = () => {\n track({\n eventType: customEvents.linkClicked,\n systemType,\n utmParams: marketing.lastUtmParams,\n customerUuid: cid,\n email: current\n });\n\n dispatch(setClosed());\n localStorage.setItem(CHAT_SEEN_KEY, true);\n };\n\n return (\n
\n { error &&
{ error }
}\n { isPaymentFormVisible && }\n { isLoading && }\n { isCtaVisible\n && (\n \n ) }\n\n { isEmailFormVisible && }\n { isResponseFormVisible && }\n\n { isPaymentButtonVisible && (\n \n ) }\n
\n );\n};\n\nexport default LayoutFoot;\n","import { string } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { isNonEmptyStr } from '@/utils';\n\nimport { Profile } from '@/components/Profile';\nimport { getConfig } from '@/store/slices/config';\nimport { streamHead as variant } from './variants';\n\nexport const StreamHead = ({ titleTxt = '' }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, title } = variant({ theme });\n\n const hasTitle = isNonEmptyStr(titleTxt);\n\n return (\n
\n { hasTitle &&
{ titleTxt }
}\n \n
\n );\n};\n\nStreamHead.propTypes = {\n titleTxt: string,\n};\n\nexport default StreamHead;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-3 tw--rounded-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glaze tw--text-white',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-2',\n },\n});\n","import { string, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Link = ({ text = null, href = null, onClick = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n { text }\n \n );\n};\n\nLink.propTypes = {\n href: string.isRequired,\n text: string.isRequired,\n onClick: func,\n};\n\nexport default Link;\n","// This pattern will exclude {https://test.test.test} or any of those symbols {}[]()<> at the end of the link\nexport const link = /((?:https?:\\/\\/|www\\.)[^\\s/$.?#].[^\\s{}[\\]()<>]*)/gi;\n\n// { replaceStringInCurlyBracketsWithStrong('this is a strong {tagged} text {g') } => ...\nexport const curlyBraces = /\\{([^}]+)\\}/g;\n","import { curlyBraces, link } from '@/config/patterns';\nimport { constructLink } from '@/utils/formatting';\n/**\n* Replaces all string links with anchor tags.\n* @example { replaceLinksWithAnchors('hello nice to see you here is a link to diet http://www.yourketo.diet') }\n*/\nexport const replaceLinksWithAnchors = (val) => {\n const parts = val.split(link);\n\n return parts.map((part) => {\n if (link.test(part)) {\n const urlWithParams = constructLink(part);\n return (\n \n { part }\n \n );\n }\n return part;\n });\n};\n\n/**\n * Replaces the string in curly brackets with a string wrapped in tags or anchor if link exists.\n *\n * @param {string} input - The input string to process.\n * @example { replaceStringInCurlyBracketsWithStrong('this is a strong {tagged} text {g') }\n * @returns {React.ReactNode} A React element with replaced content.\n */\nexport const textModifier = (input) => {\n const parts = input.split(curlyBraces);\n return parts.map((part, index) => {\n if (index % 2 === 0) {\n return replaceLinksWithAnchors(part);\n }\n return { replaceLinksWithAnchors(part) };\n });\n};\n","/* eslint-disable react/jsx-props-no-spreading */\nimport { object } from 'prop-types';\nimport { useAppSelector, useAppDispatch } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { appendHistory, getCurrentPointer, getStream, setOutgoing } from '@/store/slices/chat';\nimport { isNonEmptyArr } from '@/utils';\n\nimport { Btn, IconBtn } from '@/components/Button';\nimport { Link } from '@/components/Link';\nimport { roles } from '@/config';\nimport { flickerEffect, streamBubble as variant } from './variants';\nimport { textModifier } from './modifiers';\n\nexport const StreamBubble = ({ item = {} }) => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const currentPointer = useAppSelector(getCurrentPointer);\n const { incoming } = useAppSelector(getStream);\n const displayOptionList = isNonEmptyArr(item.options) && item.id === currentPointer && !item.isSpecial;\n const { base, action } = variant({ theme, type: item.role });\n const { base: baseFlicker } = flickerEffect({ isTyping: !!incoming && !item.id, theme });\n const displayActionButton = false; // DEV NOTE: get from store state\n\n const setOption = (val) => {\n dispatch(setOutgoing(val));\n };\n\n const setMessage = (val) => {\n dispatch(appendHistory({ role: 'user', content: val }));\n };\n\n const OptionList = ({ items = [] }) => (\n items.map(({ id, label, value, link, noStream }) => (\n \n { link\n ? ()\n : ( setMessage(value) : () => setOption(value) } />) }\n \n ))\n );\n\n return (\n
\n \n { textModifier(item.content) }\n \n { displayOptionList &&
}\n { displayActionButton && (\n
\n \n \n \n \n \n \n
\n ) }\n
\n );\n};\n\nStreamBubble.propTypes = {\n item: object.isRequired,\n};\n\nexport default StreamBubble;\n","import { object } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { StreamBubble } from './bubble';\nimport { streamRow as variant } from './variants';\n\nexport const StreamRow = ({ item = {} }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n
\n \n
\n );\n};\n\nStreamRow.propTypes = {\n item: object.isRequired,\n};\n\nexport default StreamRow;\n","import { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { getStream } from '@/store/slices/chat';\nimport { formatDateByLocale } from '@/utils';\nimport { StreamHead } from './head';\nimport { StreamRow } from './row';\nimport { streamBase as variant } from './variants';\n\nexport const StreamBase = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { aiProfile } = useAppSelector(getConfig);\n const { history, incoming } = useAppSelector(getStream);\n const { base, second, date } = variant({ theme });\n const firstMessage = history && history.length > 0 && history[0];\n\n return (\n
\n
\n \n { firstMessage &&
{ formatDateByLocale(firstMessage.time) }
}\n { history.map((message) => (\n )\n ) }\n { incoming && }\n
\n
\n );\n};\n\nexport default StreamBase;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--cursor-pointer tw--h-8 tw--relative tw--w-16 tw--rounded-3xl tw--border-0',\n },\n variants: {\n color: {\n enabled: 'tw--bg-light-seraph',\n disabled: 'tw--bg-light-zephyr-100'\n }\n }\n});\n\nexport const pin = /*tw*/ tv({\n slots: {\n base: 'tw--h-8 tw--w-8 tw--absolute tw---top-1/2 tw--translate-y-1/2 tw--bottom-1 tw--bg-white tw--rounded-full',\n },\n variants: {\n position: {\n enabled: 'tw--left-0',\n disabled: 'tw--right-0'\n }\n }\n});\n\nexport default { wrapper, pin };\n","/* eslint-disable import/prefer-default-export */\nimport { bool, func, string } from 'prop-types';\nimport { wrapper, pin } from './variants';\n\nexport const Toggler = ({ onToggle, on = false, title = '' }) => {\n const { base: outline } = wrapper({ color: on ? 'enabled' : 'disabled' });\n const { base: toggle } = pin({ position: on ? 'enabled' : 'disabled' });\n return (\n
\n { title }\n \n \n \n
\n );\n};\n\nToggler.propTypes = {\n onToggle: func.isRequired,\n title: string.isRequired,\n on: bool,\n};\n","/* eslint-disable import/prefer-default-export */\nimport { tv } from 'tailwind-variants';\n\nexport const wrapper = /* tw */ tv({\n slots: {\n base: 'tw--fixed tw--flex tw--gap-2 tw--flex-col tw--p-3 tw--space-y-4 tw--bg-dark-sigma tw--rounded-lg',\n },\n variants: {\n hidden: {\n true: 'tw--hidden',\n }\n }\n});\n","import { useAppDispatch, useAppSelector } from '@/hooks';\nimport { getConfig, setTheme, togglePluginMode } from '@/store/slices/config';\nimport { Toggler } from '@/components/Toggle';\nimport { wrapper } from './variants';\n\nexport const DevTools = () => {\n const dispatch = useAppDispatch();\n const { enableDevTools, themeId, isPluginMode } = useAppSelector(getConfig);\n // DEV NOTE: when more than 2 themes are available the toggler must be replaced by another component\n const setUiTheme = () => dispatch(setTheme(themeId === 'light' ? 'dark' : 'light'));\n const { base } = wrapper({ hidden: !enableDevTools });\n\n return (\n
\n \n dispatch(togglePluginMode()) }\n />\n
\n );\n};\n\nexport default DevTools;\n","/* eslint-disable no-unused-vars */\nimport { object } from 'prop-types';\nimport { useAppDispatch } from '@/hooks';\n\nimport { setConfig, setDevToolsStatus } from '@/store/slices/config';\nimport { setMeta } from '@/store/slices/meta';\n\nimport { LayoutBase, LayoutHead, LayoutFoot } from '@/components/Layout';\nimport { StreamBase } from '@/components/Stream';\nimport { DevTools } from '@/components/DevTools';\n\nexport const AppBase = ({ config = {} }) => {\n const dispatch = useAppDispatch();\n\n // Set defaults\n dispatch(setMeta(config.meta));\n dispatch(setConfig(config.app));\n dispatch(setDevToolsStatus(false)); // DEV Note: set this in a global plugin process.env.NODE_ENV === 'development'\n\n return (\n <>\n \n\n }\n stream={ }\n foot={ }\n />\n \n );\n};\n\nAppBase.propTypes = {\n config: object.isRequired,\n};\n\nexport default AppBase;\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\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, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { PureComponent } from 'react'; // eslint-disable-line import/no-unresolved\n\nexport var PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(PersistGate, _PureComponent);\n\n function PersistGate() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, PersistGate);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n bootstrapped: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n var persistor = _this.props.persistor;\n\n var _persistor$getState = persistor.getState(),\n bootstrapped = _persistor$getState.bootstrapped;\n\n if (bootstrapped) {\n if (_this.props.onBeforeLift) {\n Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n return _this.setState({\n bootstrapped: true\n });\n });\n } else {\n _this.setState({\n bootstrapped: true\n });\n }\n\n _this._unsubscribe && _this._unsubscribe();\n }\n });\n\n return _this;\n }\n\n _createClass(PersistGate, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n this.handlePersistorState();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._unsubscribe && this._unsubscribe();\n }\n }, {\n key: \"render\",\n value: function render() {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n }\n\n if (typeof this.props.children === 'function') {\n return this.props.children(this.state.bootstrapped);\n }\n\n return this.state.bootstrapped ? this.props.children : this.props.loading;\n }\n }]);\n\n return PersistGate;\n}(PureComponent);\n\n_defineProperty(PersistGate, \"defaultProps\", {\n children: null,\n loading: null\n});","import { io } from 'socket.io-client';\nimport { config as socketConfig, events, roles } from '@/config';\nimport {\n appendHistory, appendUnsent,\n resetIncoming, resetIsLoading,\n resetError, resetTextToParse, resetUnsent,\n resetOutgoing, setIncoming, addIncomingChunk,\n setHistory, setIsLoading,\n setShouldSendUnsent, setError, setTextToParse,\n setOutgoing, setConnected, setClosed\n} from '@/store/slices/chat';\nimport { checkForSpecialPhrases, getQueryParam, isExpired } from '@/utils';\nimport { constructLink, extractOptionSet } from '@/utils/formatting';\nimport intent from '@/services/intentions';\nimport { setIsEmailFormVisible, setIsPaymentButtonVisible, setLink, setResponseFormVisibility } from '@/store/slices/intentions';\nimport { setConfig } from '@/store/slices/config';\nimport { track } from '@/services/tracking';\nimport { baseEvents, customEvents } from '@/config/analytics';\nimport { CHAT_SEEN_KEY } from '@/config/env';\n\nconst specialMessages = [intent.type.email, intent.type.payment];\nlet socket;\n\nconst chatMiddleware = store => next => action => {\n const { meta, chat, intentions } = store.getState();\n if (setOutgoing.match(action)) {\n store.dispatch(appendHistory({\n role: roles.user,\n content: action.payload,\n }));\n\n store.dispatch(setIsLoading());\n\n socket.emit(events.chat, {\n role: roles.user,\n message: action.payload,\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n });\n\n if (isFirstUserMessage(chat.history)) {\n track({\n eventType: customEvents.firstMessage,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid\n });\n }\n }\n\n if (setTextToParse.match(action)) {\n const { textToParse, incoming } = chat;\n const currentText = textToParse + action.payload;\n if (currentText.includes(intent.type.email)) {\n store.dispatch(setIsEmailFormVisible(true));\n }\n\n if (currentText.includes(intent.type.payment)) {\n store.dispatch(setIsPaymentButtonVisible(true));\n store.dispatch(setIncoming(incoming.content + meta.pd.displayPlanPrice + ' ' + meta.pd.billingFrequencyTmsg));\n }\n }\n\n if (setClosed.match(action)) {\n document.querySelector('#chatbot-container').remove();\n document.body.classList.remove('scroll-stop');\n socket.close();\n }\n\n if (appendUnsent.match(action) && action.payload) {\n store.dispatch(appendHistory({ role: roles.user, content: action.payload }));\n }\n\n if (setShouldSendUnsent.match(action) && action.payload && chat.unsent.length) {\n socket.emit(events.chat, {\n role: roles.user,\n message: chat.unsent.join('\\n'),\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n });\n store.dispatch(resetUnsent());\n store.dispatch(setIsLoading());\n }\n\n const hasNoUserMessages = !chat.history.some(item => item.role === roles.user);\n const lastMessage = chat.history[chat.history.length - 1];\n if (hasNoUserMessages && appendHistory.match(action) && action.payload.role === roles.user && lastMessage.options.length) {\n const buttonSequence = lastMessage.options.findIndex((item) => item.value === action.payload.content) + 1;\n track({\n eventType: customEvents.buttonClick + buttonSequence,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n }\n\n if (setIsPaymentButtonVisible.match(action)) {\n if (action.payload === true) {\n const data = {\n eventType: null,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n };\n\n data.eventType = baseEvents.addToCart;\n track(data);\n\n data.eventType = customEvents.priceSeen;\n track(data);\n }\n }\n\n if (setIsEmailFormVisible.match(action) && action.payload) {\n track({\n eventType: customEvents.emailField,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n\n if (setHistory.match(action)) {\n const { intentions } = store.getState();\n store.dispatch(setResponseFormVisibility({ intentions, options: extractOptionSet(action.payload[action.payload.length - 1].content).options }));\n }\n\n if (!setConfig.match(action)) {\n return next(action);\n }\n\n store.dispatch(setIsLoading());\n socket = io.connect(action.payload.chatUrl, socketConfig);\n\n socket.on('connect', () => {\n const { meta } = store.getState();\n socket.emit(events.chatHistory, { user_id: meta.cid });\n store.dispatch(setConnected(true));\n });\n\n socket.on(events.chatHistory, ({ history, errors }) => {\n store.dispatch(resetIsLoading());\n const { config, meta, chat } = store.getState();\n\n if (errors.length && !chat.error) {\n store.dispatch(setError(errors[0]));\n }\n\n if (history.length) {\n const lastMessage = history[history.length - 1];\n updateContent({ lastMessage, store });\n store.dispatch(setHistory(history));\n } else {\n socket.emit(events.chat, {\n role: roles.assistant,\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n message: config.aiProfile.initialMessage\n });\n }\n });\n\n socket.on(events.streamStart, () => {\n store.dispatch(resetIsLoading());\n store.dispatch(resetOutgoing());\n store.dispatch(setIncoming(''));\n store.dispatch(resetError());\n });\n\n socket.on(`${events.chat}-${meta.cid}`, (data) => {\n const { options, content } = extractOptionSet(data.message);\n const isSpecial = checkForSpecialPhrases(data.message, specialMessages);\n updateContent({ lastMessage: { content: data.message }, store });\n const { intentions } = store.getState();\n\n store.dispatch(resetIsLoading());\n store.dispatch(resetError());\n store.dispatch(appendHistory({ content, options, role: roles.assistant, isSpecial }));\n store.dispatch(setResponseFormVisibility({ intentions, options }));\n });\n\n socket.on(events.streamData, ({ chunk, messages, errors }) => {\n const { chat, config } = store.getState();\n const { textToParse, incoming } = chat;\n const link = constructLink(textToParse) || constructLink(incoming.content) || constructLink(chunk);\n\n if (messages.length > chat.history.length) {\n store.dispatch(setHistory(messages));\n }\n\n if (errors.length && !chat.error) {\n store.dispatch(setError(errors[0]));\n }\n\n if (link) {\n store.dispatch(setLink({\n isVisible: true,\n href: link,\n text: config.translations.mealButton\n }));\n store.dispatch(setResponseFormVisibility({ isFormVisible: false }));\n }\n\n if (chunk.includes('[')) {\n store.dispatch(setTextToParse(chunk));\n return;\n }\n\n if (chunk.includes(']') || textToParse) {\n store.dispatch(setTextToParse(chunk));\n return;\n }\n\n store.dispatch(addIncomingChunk({ chunk }));\n });\n\n socket.on(events.streamEnd, () => {\n const { chat, intentions } = store.getState();\n const { options } = extractOptionSet(chat.textToParse);\n const isSpecial = options.some(item => checkForSpecialPhrases(item.value, specialMessages));\n store.dispatch(appendHistory({\n ...chat.incoming,\n options,\n isSpecial\n }));\n store.dispatch(resetIncoming());\n store.dispatch(resetTextToParse());\n store.dispatch(setResponseFormVisibility({ intentions, options }));\n });\n\n const onError = () => {\n const { config } = store.getState();\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n socket.on(events.streamError, onError);\n socket.on(events.error, onError);\n\n socket.on(events.disconnect, () => {\n store.dispatch(setConnected(false));\n });\n\n next(action);\n};\n\nconst mustHideChat = ({ time, role }) => {\n let hasExpired;\n\n if (role === roles.user && time) {\n hasExpired = isExpired(time);\n }\n\n if (hasExpired) {\n localStorage.removeItem(CHAT_SEEN_KEY);\n }\n\n const chatSeen = localStorage.getItem(CHAT_SEEN_KEY);\n\n return chatSeen === 'true';\n};\n\nconst isFirstUserMessage = (messages) => messages.filter(obj => obj.role === roles.user).length === 1;\n\nconst updateContent = ({ lastMessage, store }) => {\n const { meta, config } = store.getState();\n const link = constructLink(lastMessage.content);\n\n if (mustHideChat(lastMessage)) {\n store.dispatch(setClosed(true));\n }\n\n if (link) {\n store.dispatch(setLink({\n isVisible: true,\n href: link,\n text: config.translations.mealButton\n }));\n }\n\n lastMessage.isSpecial = checkForSpecialPhrases(lastMessage.content, specialMessages);\n\n if (lastMessage.content.includes(intent.type.email)) store.dispatch(setIsEmailFormVisible(true));\n\n if (lastMessage.content.includes(intent.type.payment)) {\n store.dispatch(setIsPaymentButtonVisible(true));\n lastMessage.content += meta.pd.displayPlanPrice + ' ' + meta.pd.billingFrequencyTmsg;\n }\n};\n\nexport default chatMiddleware;\n","import { customEvents } from '@/config/analytics';\nimport { track } from '@/services/tracking';\nimport intent from '@/services/intentions';\nimport { setIsEmailLoading, setEmailSuccess, setIsEmailFormVisible, setEmailError, setLink } from '@/store/slices/intentions';\nimport { setPd, setMarketing } from '@/store/slices/meta';\nimport { appendHistory, setOutgoing } from '@/store/slices/chat';\n\nexport const intentionsMiddleware = store => next => {\n const setPaymentDataTranslationAccordingly = (data) => {\n const { meta } = store.getState();\n if (!meta.pd) return;\n data.billingFrequencyTmsg = data.billingOptionType === 'one-time'\n ? meta.pd.oneTimer\n : meta.pd.subscriberBillingFrequency.replace('{1}', data.frequencyInMonths);\n\n return data;\n };\n\n intent.core.on(intent.type.emailSuccess, () => {\n const { meta, intentions } = store.getState();\n\n store.dispatch(setIsEmailLoading(false));\n store.dispatch(setEmailError(''));\n store.dispatch(setOutgoing(intentions.email.current));\n\n // DEV: setEmailSuccess this status is for us to know if mail is validated in the endpoint\n store.dispatch(setEmailSuccess(true));\n store.dispatch(setIsEmailFormVisible(false));\n track({\n eventType: customEvents.emailEntered,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n });\n\n intent.core.on(intent.type.emailError, (response) => {\n const { meta, intentions, config } = store.getState();\n const { tm716, tm526, tm715, tm505 } = config.translations;\n\n store.dispatch(setIsEmailLoading(false));\n\n if (response.status === 409) {\n store.dispatch(appendHistory({\n role: 'assistant',\n content: tm716,\n options: [\n { id: 'opt-1', label: tm526, value: 'link', link: response.data.buttonLink },\n { id: 'opt-2', label: tm715, value: 'button', noStream: true }\n ]\n }));\n\n track({\n eventType: customEvents.emailExist,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n\n // DEV NOTE: this must be persisted so on refresh the message with options is still part of the history;\n // localStorage.setItem(ALREADY_REGISTERED_KEY, 'true');\n return;\n }\n\n if (response.status === 422) {\n store.dispatch(setEmailError(response.errors.email[0] || tm505));\n\n track({\n eventType: customEvents.emailWrong,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n });\n\n dataIntervalChecker('marketing', store, setMarketing);\n dataIntervalChecker('__pd', store, setPd, setPaymentDataTranslationAccordingly);\n\n return action => {\n if (setLink.match(action) && action.payload.isVisible) {\n const { meta, intentions } = store.getState();\n\n track({\n eventType: customEvents.linkProvided,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n next(action);\n };\n};\n\nconst dataIntervalChecker = (key, store, setValue, transformData = null) => {\n const intervalId = setInterval(() => {\n let storedItem = localStorage.getItem(key);\n\n try {\n storedItem = JSON.parse(storedItem);\n } catch (e) {\n storedItem = localStorage.getItem(key);\n }\n\n if (transformData && storedItem) {\n storedItem = transformData(storedItem);\n }\n\n if (storedItem) {\n store.dispatch(setValue(storedItem));\n clearInterval(intervalId);\n }\n }, 1000);\n};\n\nexport default intentionsMiddleware;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","/* eslint-disable no-unused-expressions */\n/* eslint-disable no-restricted-syntax */\n/* eslint-disable no-underscore-dangle */\n\nexport default function disableReactDevTools() {\n if (typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__ === 'object') {\n for (const prop in window.__REACT_DEVTOOLS_GLOBAL_HOOK__) {\n if (prop === 'renderers') {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] = new Map();\n } else {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] = typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] === 'function'\n ? () => {}\n : null;\n }\n }\n }\n}\n","import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport metaReducer from '@/store/slices/meta';\nimport configReducer from '@/store/slices/config';\nimport chatReducer from '@/store/slices/chat';\nimport intentionsReducer from '@/store/slices/intentions';\nimport chatMiddleware from '@/middleware/socket';\nimport intentionsMiddleware from '@/middleware/intentions';\nimport { persistStore, persistReducer } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage';\nimport disableReactDevTools from '@/utils/reactDevTools';\n\ndisableReactDevTools();\n\nconst persistConfig = {\n key: 'root',\n storage,\n blacklist: ['chat', 'intentions'],\n};\n\nexport const store = configureStore({\n reducer: persistReducer(persistConfig, combineReducers({\n meta: metaReducer,\n config: configReducer,\n chat: chatReducer,\n intentions: intentionsReducer,\n })),\n middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false }).concat(chatMiddleware, intentionsMiddleware),\n});\n\nexport const persistor = persistStore(store);\n","import ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\n\nimport '@/assets/css/index.css';\nimport { AppBase } from '@/components/AppBase';\nimport { PersistGate } from 'redux-persist/integration/react';\nimport { persistor, store } from './store';\n\nexport { intent } from '@/services/intentions';\n\n// DEV Note: will be received by Razvigor\nconst initialConfig = {\n meta: {\n pd: {\n subscriberBillingFrequency: 'Billed every {1} month(s)',\n oneTimer: 'Total price to be charged',\n billingFrequencyTmsg: '',\n },\n cid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d',\n systemType: 'test',\n marketing: {\n utmParams: { utm_chat: 'db-sales-nopresetquestions' },\n lastUtmParams: { utm_chat: 'db-sales-nopresetquestions' },\n screen: {\n width: 2084,\n height: 1608,\n }\n },\n eid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d_PageView_1694521420366',\n },\n app: {\n aiProfile: {\n name: 'Meal Mentor',\n role: 'AI-powered nutritionist',\n imgSrc: 'https://storage.1forfit.com/4oZrkOwbOQcSIGJopBG5qsf0CmBbVDKDqflzEkXq.jpg',\n displayInStream: true,\n welcome: 'Welcome to our live support. We\\'re here to understand your requirements and suggest the best Keto diet suited for you.',\n // initialMessage: 'Hi, {I am Meal Mentor}. I will help you to find the right meal plan for you. [yes|no|continue]',\n initialMessage: 'Do you want to lose weight? [Yes|No]',\n },\n chatUrl: 'https://yourketo.ngrok.io',\n themeId: 'dark',\n translations: {\n emailPlaceholder: 'Please enter your email',\n tm526: 'Continue to my plan',\n tm715: 'Enter new email',\n tm716: 'Entered email already exists, choose below to proceed',\n tm530: 'Take the quiz',\n tm1224: 'Payment in progress...',\n paymentHeaderTxt1: 'SECURITY verified',\n paymentHeaderTxt2: 'secured payments',\n loaderTexts: [\n 'We securely lock up your payment details.',\n 'Details zoom to the payment center.',\n 'Payment center requests our bank to process.',\n 'Our bank contacts your card network.',\n 'Card network asks your bank for approval.',\n 'Your bank reviews funds or credit.',\n 'Decision travels back to us.',\n 'Waiting your payment to be verified and complete.'\n ],\n payButton: 'Secure payment',\n ctaTextContent: 'Create Your Menu!',\n mealButton: 'Create your meal plan',\n error: 'Oops something went wrong.',\n tm505: 'Please enter valid email address',\n }\n },\n};\n\nexport const ReactBotClient = (config) => {\n ReactDOM\n .createRoot(config.root)\n .render(\n \n \n \n \n \n );\n};\n\nexport default ReactBotClient;\n"],"names":["base64Js","byteLength","toByteArray","fromByteArray","lookup","revLookup","Arr","code","i","len","getLens","b64","validLen","placeHoldersLen","lens","_byteLength","tmp","arr","curByte","tripletToBase64","num","encodeChunk","uint8","start","end","output","extraBytes","parts","maxChunkLength","len2","ieee754","buffer","offset","isLE","mLen","nBytes","e","m","eLen","eMax","eBias","nBits","d","s","value","c","rt","base64","require$$0","require$$1","customInspectSymbol","exports","Buffer","SlowBuffer","K_MAX_LENGTH","typedArraySupport","proto","createBuffer","length","buf","arg","encodingOrOffset","allocUnsafe","from","fromString","fromArrayView","isInstance","fromArrayBuffer","valueOf","b","fromObject","assertSize","size","alloc","fill","encoding","checked","string","actual","fromArrayLike","array","arrayView","copy","byteOffset","obj","numberIsNaN","a","x","y","list","pos","mustMatch","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","str","max","target","thisStart","thisEnd","thisCopy","targetCopy","bidirectionalIndexOf","val","dir","arrayIndexOf","indexSize","arrLength","valLength","read","foundIndex","found","j","hexWrite","remaining","strLen","parsed","utf8Write","blitBuffer","asciiWrite","asciiToBytes","base64Write","ucs2Write","utf16leToBytes","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","MAX_ARGUMENTS_LENGTH","codePoints","ret","out","hexSliceLookupTable","bytes","newBuf","checkOffset","ext","noAssert","mul","defineBigIntMethod","validateNumber","first","last","boundsError","lo","hi","checkInt","min","maxBytes","wrtBigUInt64LE","checkIntBI","wrtBigUInt64BE","limit","sub","checkIEEE754","writeFloat","littleEndian","writeDouble","targetStart","errors","E","sym","getMessage","Base","name","range","input","msg","received","addNumericalSeparator","checkBounds","type","INVALID_BASE64_RE","base64clean","units","leadSurrogate","byteArray","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","process","browserModule","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","timeout","args","Item","noop","t","r","o","l","u","f","k","p","q","g","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","source","ownerFn","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","client","useAppDispatch","useDispatch","useAppSelector","useSelector","useWindowSize","setSize","useState","useLayoutEffect","updateSize","meta","chat","intentions","configSlice","createSlice","initialState","state","getConfig","setConfig","resetConfig","setTheme","resetTheme","setDevToolsStatus","resetDevToolsStatus","togglePluginMode","setTranslations","getMeta","setMeta","resetMeta","setMarketing","setPd","twJoin","index","argument","resolvedValue","toValue","mix","CLASS_PART_SEPARATOR","createClassUtils","classMap","createClassMap","conflictingClassGroups","_config$conflictingCl","conflictingClassGroupModifiers","getClassGroupId","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","_a","_ref","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","theme","prefixedClassGroupEntries","getPrefixedClassGroupEntries","_ref2","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","_ref3","path","currentClassPartObject","pathPart","func","classGroupEntries","_ref4","prefixedClassGroup","_ref5","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createSplitModifiers","separator","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","modifiers","bracketDepth","modifierStart","postfixModifierPosition","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","isArbitraryVariant","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","splitModifiers","classGroupsInConflict","originalClassName","_splitModifiers","variantModifier","modifierId","classId","group","createTailwindMerge","_len","createConfig","_key","cacheGet","cacheSet","functionToCall","initTailwindMerge","firstCreateConfig","restCreateConfig","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","result","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","shadowRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitrarySize","isNever","isArbitraryPosition","isArbitraryUrl","isUrl","isArbitraryNumber","isPercent","isInteger","isIntegerOnly","isArbitraryValue","isAny","isTshirtSize","isArbitraryShadow","isShadow","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmpty","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumber","getNumberAndArbitrary","mergeConfigs","baseConfig","configExtension","mergePropertyRecursively","overrideTypes","baseObject","mergeKey","mergeValue","nextKey","extendTailwindMerge","twMerge","re","Z","R","O","w","Y","se","N","F","C","V","U","M","g$1","A","$","h$1","v","K","W","a$1","I","b$1","T","J","te","S","P","z","D","G","H","ee","_","layoutBase","tv","layoutHead","layoutFoot","LayoutBase","head","stream","foot","isPluginMode","base","wrapper","variant","height","profile","Profile","orientation","minimized","aiProfile","avatar","role","imgWrapper","bool","LayoutHead","ReflectApply","receiver","ReflectOwnKeys","ProcessEmitWarning","warning","NumberIsNaN","EventEmitter","eventsModule","once","defaultMaxListeners","checkListener","listener","_getMaxListeners","that","doError","events","er","handler","listeners","arrayClone","_addListener","prepend","existing","onceWrapper","_onceWrap","wrapped","position","originalListener","spliceOne","_listeners","unwrap","evlistener","unwrapListeners","emitter","listenerCount","resolve","reject","errorListener","resolver","eventTargetAgnosticAddListener","addErrorHandlerIfEventEmitter","flags","wrapListener","roles","intent","intentionsSlice","getEmailIntentions","getPaymentIntentions","getLinkIntentions","getResponseIntentions","setEmail","setEmailSuccess","setIsPaymentSuccessful","setPaymentFormVisibility","setEmailError","setIsEmailLoading","setIsEmailFormVisible","setIsPaymentButtonVisible","setLink","setResponse","setResponseFormVisibility","setResponseLoadingStatus","setPaymentIntentError","intentionsReducer","basic","Input","placeholder","onChange","onKeyUp","isLoading","e2e","loader","spin","icon","Btn","text","onClick","IconBtn","outlined","IDX","HEX","SIZE","BUFFER","uid","CHAT_SEEN_KEY","CID","extractOptionSet","constructLink","hasQueryParams","url","REGEX_URL","search","matches","link","isArr","isStr","isNonEmptyStr","isNonEmptyArr","getQueryParam","param","isExpired","date","maxHours","currentDate","givenDate","formatDateByLocale","dateString","options","checkForSpecialPhrases","specialMessages","keyword","regex","bubbleContent","getCurrentPointer","getStream","setOutgoing","setIncoming","resetIncoming","addIncomingChunk","resetOutgoing","setHistory","resetHistory","appendHistory","setTextToParse","resetTextToParse","setIsLoading","resetIsLoading","appendUnsent","resetUnsent","setShouldSendUnsent","setError","resetError","setConnected","setClosed","chatReducer","ResponseForm","dispatch","button","response","setCurrentResponse","timerId","setTimerId","handleInputChange","setTimerToSendMessage","handleFormSubmit","currentId","EmailForm","translations","email","setCurrentEmail","currentValue","payment","close","PaymentHead","left","leftTop","bottom","right","price","variants","PaymentButton","disabled","btn","CloseButton","PaymentFooter","PaymentLoader","texts","title","inner","dots","dotsIn","progressCheckmark","panelTitle","spinningTexts","filmContainer","film","txt","Link","href","forwardedRef","Link$1","overlay","Overlay","PaymentScene","onClose","displayPlanPrice","billingFrequencyTmsg","track","eventType","systemType","utmParams","customerUuid","phone","event","baseEvents","customEvents","streamBase","streamHead","streamRow","flickerEffect","streamBubble","ellipsis","Ellipsis","dotFirst","dotSecond","dotThird","LayoutFoot","isResponseFormVisible","cid","marketing","isCtaVisible","ctaText","ctaHref","streamError","store","isEmailFormVisible","current","emailError","isPaymentButtonVisible","isPaymentFormVisible","paymentIntentError","ctaAfterPayButton","useRef","setDisabled","setIsPaymentContainerVisible","isVisible","onClosePaymentForm","onPaymentSuccess","onError","message","initializePaymentForm","onClickCtaPay","StreamHead","titleTxt","hasTitle","curlyBraces","replaceLinksWithAnchors","part","urlWithParams","textModifier","StreamBubble","currentPointer","incoming","displayOptionList","action","baseFlicker","displayActionButton","setOption","setMessage","OptionList","items","id","noStream","StreamRow","StreamBase","history","second","firstMessage","pin","Toggler","onToggle","on","outline","toggle","DevTools","enableDevTools","themeId","setUiTheme","AppBase","Fragment","_typeof","_classCallCheck","instance","Constructor","_defineProperties","descriptor","_createClass","protoProps","staticProps","_possibleConstructorReturn","call","_assertThisInitialized","_getPrototypeOf","_inherits","subClass","superClass","_setPrototypeOf","_defineProperty","PersistGate","_PureComponent","_getPrototypeOf2","_this","persistor","_persistor$getState","bootstrapped","PureComponent","socket","chatMiddleware","next","isFirstUserMessage","textToParse","currentText","hasNoUserMessages","lastMessage","buttonSequence","data","io","socketConfig","updateContent","content","isSpecial","chunk","messages","mustHideChat","time","hasExpired","intentionsMiddleware","setPaymentDataTranslationAccordingly","tm716","tm526","tm715","tm505","dataIntervalChecker","setValue","transformData","intervalId","storedItem","getStorage_1","getStorage$1","getStorage","noopStorage","hasStorage","storageType","storage","testKey","createWebStorage_1","createWebStorage$1","createWebStorage","_getStorage","_interopRequireDefault","default_1","_createWebStorage","_default","disableReactDevTools","prop","persistConfig","configureStore","persistReducer","combineReducers","metaReducer","configReducer","getDefaultMiddleware","persistStore","initialConfig","ReactBotClient","ReactDOM","Provider"],"mappings":"yoBAEAA,GAAA,WAAqBC,GACrBD,GAAA,YAAsBE,GACtBF,GAAA,cAAwBG,GAOxB,QALIC,GAAS,CAAE,EACXC,GAAY,CAAE,EACdC,GAAM,OAAO,WAAe,IAAc,WAAa,MAEvDC,GAAO,mEACFC,GAAI,EAAGC,GAAMF,GAAK,OAAQC,GAAIC,GAAK,EAAED,GAC5CJ,GAAOI,EAAC,EAAID,GAAKC,EAAC,EAClBH,GAAUE,GAAK,WAAWC,EAAC,CAAC,EAAIA,GAKlCH,GAAU,IAAI,WAAW,CAAC,CAAC,EAAI,GAC/BA,GAAU,IAAI,WAAW,CAAC,CAAC,EAAI,GAE/B,SAASK,GAASC,EAAK,CACrB,IAAIF,EAAME,EAAI,OAEd,GAAIF,EAAM,EAAI,EACZ,MAAM,IAAI,MAAM,gDAAgD,EAKlE,IAAIG,EAAWD,EAAI,QAAQ,GAAG,EAC1BC,IAAa,KAAIA,EAAWH,GAEhC,IAAII,EAAkBD,IAAaH,EAC/B,EACA,EAAKG,EAAW,EAEpB,MAAO,CAACA,EAAUC,CAAe,CACnC,CAGA,SAASZ,GAAYU,EAAK,CACxB,IAAIG,EAAOJ,GAAQC,CAAG,EAClBC,EAAWE,EAAK,CAAC,EACjBD,EAAkBC,EAAK,CAAC,EAC5B,OAASF,EAAWC,GAAmB,EAAI,EAAKA,CAClD,CAEA,SAASE,GAAaJ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MAAO,kCACT,CACF,CACF,EAEaC,GAAkB9qB,GAAW,CAErC+qB,GAAA,WAAW/qB,EAAO,IAAI,EACtB,OACEsD,EAAA,IAAA0nB,GAAA,SAAA,CAAS,MAAA9I,GACR,SAAA5e,MAACsjB,GAAY,CAAA,UAAAI,GACX,SAAC1jB,EAAAA,IAAAkiB,GAAA,CAAQ,OAASxlB,EAAO,eAAiB6qB,EAAgB,CAAA,CAC5D,CAAA,EACF,CAAA,CAEN","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,33,44,79,82,83,84]} \ No newline at end of file +{"version":3,"file":"index.umd.js","sources":["../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer-polyfill/index.js","../node_modules/process/browser.js","../node_modules/vite-plugin-node-polyfills/shims/dist/index.cjs","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/react-dom/client.js","../src/hooks/index.js","../src/store/initialState.js","../src/store/slices/config.js","../src/store/slices/meta.js","../node_modules/tailwind-variants/dist/chunk-T24HS5CV.js","../node_modules/tailwind-merge/dist/lib/tw-join.mjs","../node_modules/tailwind-merge/dist/lib/class-utils.mjs","../node_modules/tailwind-merge/dist/lib/lru-cache.mjs","../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs","../node_modules/tailwind-merge/dist/lib/config-utils.mjs","../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs","../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/from-theme.mjs","../node_modules/tailwind-merge/dist/lib/validators.mjs","../node_modules/tailwind-merge/dist/lib/default-config.mjs","../node_modules/tailwind-merge/dist/lib/merge-configs.mjs","../node_modules/tailwind-merge/dist/lib/extend-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/tw-merge.mjs","../node_modules/tailwind-variants/dist/index.js","../src/components/Layout/variants.js","../src/components/Layout/base.jsx","../src/components/Profile/variants.js","../src/components/Profile/index.jsx","../src/components/Layout/head.jsx","../node_modules/events/events.js","../src/config/socket.js","../src/config/roles.js","../src/services/intentions.js","../src/config/intentions.js","../src/store/slices/intentions.js","../src/components/Input/variants.js","../src/components/Input/basic.jsx","../src/components/Button/variants.js","../src/components/Button/basic.jsx","../src/components/Button/icon.jsx","../node_modules/uid/dist/index.mjs","../src/config/env.js","../src/utils/formatting.js","../src/utils/index.js","../src/store/slices/chat.js","../src/components/Form/response.jsx","../src/components/Form/email.jsx","../src/components/Payment/variants.js","../src/components/Payment/head.jsx","../src/components/Payment/btn.jsx","../src/components/Payment/close.jsx","../src/components/Payment/foot.jsx","../src/components/Payment/loader.jsx","../src/components/Payment/link.jsx","../src/components/Overlay/variants.js","../src/components/Overlay/index.jsx","../src/components/Scenes/payment.jsx","../src/services/tracking.js","../src/config/analytics.js","../src/components/Stream/variants.js","../src/components/Stream/ellipsis.jsx","../src/components/Layout/foot.jsx","../src/components/Stream/head.jsx","../src/components/Link/variants.js","../src/components/Link/basic.jsx","../src/config/patterns.js","../src/components/Stream/modifiers.jsx","../src/components/Stream/bubble.jsx","../src/components/Stream/row.jsx","../src/components/Stream/base.jsx","../src/components/Toggle/variants.js","../src/components/Toggle/index.jsx","../src/components/DevTools/variants.js","../src/components/DevTools/index.jsx","../src/components/AppBase/index.jsx","../node_modules/redux-persist/es/integration/react.js","../src/middleware/socket.js","../src/middleware/intentions.js","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/index.js","../src/utils/reactDevTools.js","../src/store/index.js","../src/main.jsx"],"sourcesContent":["'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";Object.defineProperty(exports,Symbol.toStringTag,{value:\"Module\"});const t=require(\"buffer-polyfill\"),r=require(\"process\"),o=e=>e&&e.__esModule?e:{default:e},l=o(r),u=globalThis||void 0||self;Object.defineProperty(exports,\"Buffer\",{enumerable:!0,get:()=>t.Buffer});Object.defineProperty(exports,\"process\",{enumerable:!0,get:()=>l.default});exports.global=u;\n//# sourceMappingURL=index.cjs.map\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","import { useLayoutEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\n// DEV NOTE: We prep the react-redux hooks to be aliased with types when we switch to TS\nexport const useAppDispatch = () => useDispatch();\nexport const useAppSelector = useSelector;\n\nexport const useWindowSize = () => {\n const [size, setSize] = useState([0, 0]);\n useLayoutEffect(() => {\n function updateSize() {\n setSize([window.innerWidth, window.innerHeight]);\n }\n window.addEventListener('resize', updateSize);\n updateSize();\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n return size;\n};\n","export const meta = {\n pd: null,\n cid: null,\n eid: null,\n systemType: null,\n marketing: {},\n};\n\nexport const config = {\n aiProfile: {\n name: null,\n role: null,\n imgSrc: null,\n initialMessage: '',\n displayInStream: false,\n },\n translations: {},\n themeId: null,\n chatUrl: null,\n enableDevTools: false,\n isPluginMode: false,\n};\n\nexport const chat = {\n outgoing: null,\n incoming: null,\n textToParse: '',\n history: [],\n status: null,\n error: null,\n isLoading: false,\n shouldSendUnsent: false,\n unsent: [],\n connected: false,\n closed: false,\n};\n\nexport const intentions = {\n email: {\n current: '',\n success: false,\n error: false,\n isFormVisible: false,\n isLoading: false,\n },\n response: {\n value: '',\n isFormVisible: false,\n isLoading: false,\n error: false,\n },\n payment: {\n isButtonVisible: false,\n isFormVisible: false,\n isSuccessful: false,\n error: false\n },\n messaging: {\n isVisible: false\n },\n link: {\n isVisible: false,\n href: null,\n text: ''\n }\n};\n\nexport default { meta, config, intentions, chat };\n","import { createSlice } from '@reduxjs/toolkit';\nimport { config as initialState } from '@/store/initialState';\n\nconst configSlice = createSlice({\n name: 'config',\n initialState,\n reducers: {\n setConfig(state, { payload }) {\n state.aiProfile = { ...initialState.aiProfile, ...payload.aiProfile };\n state.translations = { ...initialState.translations, ...payload.translations };\n state.themeId = payload.themeId;\n state.chatUrl = payload.chatUrl;\n },\n resetConfig(state) {\n state.aiProfile = initialState.aiProfile;\n state.themeId = initialState.themeId;\n state.translations = initialState.translations;\n state.chatUrl = initialState.chatUrl;\n },\n setTheme(state, { payload }) {\n state.themeId = payload;\n },\n resetTheme(state) {\n state.themeId = initialState.themeId;\n },\n setDevToolsStatus(state, { payload }) {\n state.enableDevTools = payload;\n },\n resetDevToolsStatus(state) {\n state.enableDevTools = initialState.enableDevTools;\n },\n togglePluginMode(state) {\n state.isPluginMode = !state.isPluginMode;\n },\n setTranslations(state, { payload }) {\n state.translations = { ...state.translations, ...payload };\n },\n }\n});\n\nexport const getConfig = ({ config }) => config;\nexport const getDevToolsStatus = ({ config }) => config.devToolsEnabled;\n\n// DEV NOTE: the createSlice function automatically create both action creator functions\nexport const {\n setConfig, resetConfig,\n setTheme, resetTheme,\n setDevToolsStatus, resetDevToolsStatus,\n togglePluginMode, setTranslations,\n} = configSlice.actions;\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\nimport { meta as initialState } from '@/store/initialState';\n\nconst configSlice = createSlice({\n name: 'meta',\n initialState,\n reducers: {\n setMeta(state, { payload }) {\n state.cid = payload.cid;\n state.eid = payload.eid;\n state.systemType = payload.systemType;\n state.pd = { ...payload.pd, ...state.pd };\n state.marketing = { ...payload.marketing, ...state.marketing };\n },\n resetMeta(state) {\n state.pd = initialState.pd;\n state.cid = initialState.cid;\n state.eid = initialState.eid;\n state.systemType = initialState.systemType;\n state.marketing = initialState.marketing;\n },\n setMarketing(state, { payload }) {\n state.marketing = { ...state.marketing, ...payload };\n },\n setPd(state, { payload }) {\n state.pd = { ...state.pd, ...payload };\n }\n }\n});\n\nexport const getMeta = state => state.meta;\nexport const { setMeta, resetMeta, setMarketing, setPd } = configSlice.actions;\nexport default configSlice.reducer;\n","var a=t=>typeof t==\"boolean\"?`${t}`:t===0?\"0\":t,l=t=>!t||typeof t!=\"object\"||Object.keys(t).length===0,u=(t,e)=>JSON.stringify(t)===JSON.stringify(e),x=t=>typeof t==\"boolean\";function i(t,e){t.forEach(function(n){Array.isArray(n)?i(n,e):e.push(n);});}function y(t){let e=[];return i(t,e),e}var g=(...t)=>y(t).filter(Boolean),p=(t,e)=>{let n={},c=Object.keys(t),f=Object.keys(e);for(let o of c)if(f.includes(o)){let s=t[o],r=e[o];typeof s==\"object\"&&typeof r==\"object\"?n[o]=p(s,r):n[o]=r+\" \"+s;}else n[o]=t[o];for(let o of f)c.includes(o)||(n[o]=e[o]);return n},k=t=>!t||typeof t!=\"string\"?t:t.replace(/\\s+/g,\" \").trim();\n\nexport { a, l as b, u as c, x as d, y as e, g as f, p as g, k as h };\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n var index = 0;\n var argument;\n var resolvedValue;\n var string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction toValue(mix) {\n if (typeof mix === 'string') {\n return mix;\n }\n var resolvedValue;\n var string = '';\n for (var k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\n\nexport { twJoin };\n//# sourceMappingURL=tw-join.mjs.map\n","var CLASS_PART_SEPARATOR = '-';\nfunction createClassUtils(config) {\n var classMap = createClassMap(config);\n var conflictingClassGroups = config.conflictingClassGroups,\n _config$conflictingCl = config.conflictingClassGroupModifiers,\n conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;\n function getClassGroupId(className) {\n var classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n }\n function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {\n var conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);\n }\n return conflicts;\n }\n return {\n getClassGroupId: getClassGroupId,\n getConflictingClassGroupIds: getConflictingClassGroupIds\n };\n}\nfunction getGroupRecursive(classParts, classPartObject) {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n var currentClassPart = classParts[0];\n var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n var classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(function (_ref) {\n var validator = _ref.validator;\n return validator(classRest);\n })?.classGroupId;\n}\nvar arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nfunction getGroupIdForArbitraryProperty(className) {\n if (arbitraryPropertyRegex.test(className)) {\n var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n}\n/**\n * Exported for testing only\n */\nfunction createClassMap(config) {\n var theme = config.theme,\n prefix = config.prefix;\n var classMap = {\n nextPart: new Map(),\n validators: []\n };\n var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(function (_ref2) {\n var classGroupId = _ref2[0],\n classGroup = _ref2[1];\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n}\nfunction processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {\n classGroup.forEach(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId: classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(function (_ref3) {\n var key = _ref3[0],\n classGroup = _ref3[1];\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n}\nfunction getPart(classPartObject, path) {\n var currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n}\nfunction isThemeGetter(func) {\n return func.isThemeGetter;\n}\nfunction getPrefixedClassGroupEntries(classGroupEntries, prefix) {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(function (_ref4) {\n var classGroupId = _ref4[0],\n classGroup = _ref4[1];\n var prefixedClassGroup = classGroup.map(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {\n var key = _ref5[0],\n value = _ref5[1];\n return [prefix + key, value];\n }));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n}\n\nexport { createClassMap, createClassUtils };\n//# sourceMappingURL=class-utils.mjs.map\n","// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nfunction createLruCache(maxCacheSize) {\n if (maxCacheSize < 1) {\n return {\n get: function get() {\n return undefined;\n },\n set: function set() {}\n };\n }\n var cacheSize = 0;\n var cache = new Map();\n var previousCache = new Map();\n function update(key, value) {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n }\n return {\n get: function get(key) {\n var value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set: function set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n}\n\nexport { createLruCache };\n//# sourceMappingURL=lru-cache.mjs.map\n","var IMPORTANT_MODIFIER = '!';\nfunction createSplitModifiers(config) {\n var separator = config.separator || ':';\n var isSeparatorSingleCharacter = separator.length === 1;\n var firstSeparatorCharacter = separator[0];\n var separatorLength = separator.length;\n // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n return function splitModifiers(className) {\n var modifiers = [];\n var bracketDepth = 0;\n var modifierStart = 0;\n var postfixModifierPosition;\n for (var index = 0; index < className.length; index++) {\n var currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers: modifiers,\n hasImportantModifier: hasImportantModifier,\n baseClassName: baseClassName,\n maybePostfixModifierPosition: maybePostfixModifierPosition\n };\n };\n}\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nfunction sortModifiers(modifiers) {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n var sortedModifiers = [];\n var unsortedModifiers = [];\n modifiers.forEach(function (modifier) {\n var isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());\n return sortedModifiers;\n}\n\nexport { IMPORTANT_MODIFIER, createSplitModifiers, sortModifiers };\n//# sourceMappingURL=modifier-utils.mjs.map\n","import { createClassUtils } from './class-utils.mjs';\nimport { createLruCache } from './lru-cache.mjs';\nimport { createSplitModifiers } from './modifier-utils.mjs';\n\nfunction createConfigUtils(config) {\n return {\n cache: createLruCache(config.cacheSize),\n splitModifiers: createSplitModifiers(config),\n ...createClassUtils(config)\n };\n}\n\nexport { createConfigUtils };\n//# sourceMappingURL=config-utils.mjs.map\n","import { sortModifiers, IMPORTANT_MODIFIER } from './modifier-utils.mjs';\n\nvar SPLIT_CLASSES_REGEX = /\\s+/;\nfunction mergeClassList(classList, configUtils) {\n var splitModifiers = configUtils.splitModifiers,\n getClassGroupId = configUtils.getClassGroupId,\n getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n var classGroupsInConflict = new Set();\n return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {\n var _splitModifiers = splitModifiers(originalClassName),\n modifiers = _splitModifiers.modifiers,\n hasImportantModifier = _splitModifiers.hasImportantModifier,\n baseClassName = _splitModifiers.baseClassName,\n maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;\n var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n var hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n hasPostfixModifier = false;\n }\n var variantModifier = sortModifiers(modifiers).join(':');\n var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n return {\n isTailwindClass: true,\n modifierId: modifierId,\n classGroupId: classGroupId,\n originalClassName: originalClassName,\n hasPostfixModifier: hasPostfixModifier\n };\n }).reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter(function (parsed) {\n if (!parsed.isTailwindClass) {\n return true;\n }\n var modifierId = parsed.modifierId,\n classGroupId = parsed.classGroupId,\n hasPostfixModifier = parsed.hasPostfixModifier;\n var classId = modifierId + classGroupId;\n if (classGroupsInConflict.has(classId)) {\n return false;\n }\n classGroupsInConflict.add(classId);\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {\n return classGroupsInConflict.add(modifierId + group);\n });\n return true;\n }).reverse().map(function (parsed) {\n return parsed.originalClassName;\n }).join(' ');\n}\n\nexport { mergeClassList };\n//# sourceMappingURL=merge-classlist.mjs.map\n","import { createConfigUtils } from './config-utils.mjs';\nimport { mergeClassList } from './merge-classlist.mjs';\nimport { twJoin } from './tw-join.mjs';\n\nfunction createTailwindMerge() {\n for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {\n createConfig[_key] = arguments[_key];\n }\n var configUtils;\n var cacheGet;\n var cacheSet;\n var functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n var firstCreateConfig = createConfig[0],\n restCreateConfig = createConfig.slice(1);\n var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {\n return createConfigCurrent(previousConfig);\n }, firstCreateConfig());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n var cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n var result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\n\nexport { createTailwindMerge };\n//# sourceMappingURL=create-tailwind-merge.mjs.map\n","function fromTheme(key) {\n var themeGetter = function themeGetter(theme) {\n return theme[key] || [];\n };\n themeGetter.isThemeGetter = true;\n return themeGetter;\n}\n\nexport { fromTheme };\n//# sourceMappingURL=from-theme.mjs.map\n","var arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nvar fractionRegex = /^\\d+\\/\\d+$/;\nvar stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nvar tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nvar lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\n// Shadow always begins with x and y offset separated by underscore\nvar shadowRegex = /^-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nfunction isLength(value) {\n return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);\n}\nfunction isArbitraryLength(value) {\n return getIsArbitraryValue(value, 'length', isLengthOnly);\n}\nfunction isArbitrarySize(value) {\n return getIsArbitraryValue(value, 'size', isNever);\n}\nfunction isArbitraryPosition(value) {\n return getIsArbitraryValue(value, 'position', isNever);\n}\nfunction isArbitraryUrl(value) {\n return getIsArbitraryValue(value, 'url', isUrl);\n}\nfunction isArbitraryNumber(value) {\n return getIsArbitraryValue(value, 'number', isNumber);\n}\n/**\n * @deprecated Will be removed in next major version. Use `isArbitraryNumber` instead.\n */\nvar isArbitraryWeight = isArbitraryNumber;\nfunction isNumber(value) {\n return !Number.isNaN(Number(value));\n}\nfunction isPercent(value) {\n return value.endsWith('%') && isNumber(value.slice(0, -1));\n}\nfunction isInteger(value) {\n return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);\n}\nfunction isArbitraryValue(value) {\n return arbitraryValueRegex.test(value);\n}\nfunction isAny() {\n return true;\n}\nfunction isTshirtSize(value) {\n return tshirtUnitRegex.test(value);\n}\nfunction isArbitraryShadow(value) {\n return getIsArbitraryValue(value, '', isShadow);\n}\nfunction getIsArbitraryValue(value, label, testValue) {\n var result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return result[1] === label;\n }\n return testValue(result[2]);\n }\n return false;\n}\nfunction isLengthOnly(value) {\n return lengthUnitRegex.test(value);\n}\nfunction isNever() {\n return false;\n}\nfunction isUrl(value) {\n return value.startsWith('url(');\n}\nfunction isIntegerOnly(value) {\n return Number.isInteger(Number(value));\n}\nfunction isShadow(value) {\n return shadowRegex.test(value);\n}\n\nexport { isAny, isArbitraryLength, isArbitraryNumber, isArbitraryPosition, isArbitraryShadow, isArbitrarySize, isArbitraryUrl, isArbitraryValue, isArbitraryWeight, isInteger, isLength, isNumber, isPercent, isTshirtSize };\n//# sourceMappingURL=validators.mjs.map\n","import { fromTheme } from './from-theme.mjs';\nimport { isAny, isLength, isTshirtSize, isArbitraryValue, isPercent, isArbitraryLength, isInteger, isArbitraryNumber, isNumber, isArbitraryPosition, isArbitrarySize, isArbitraryUrl, isArbitraryShadow } from './validators.mjs';\n\nfunction getDefaultConfig() {\n var colors = fromTheme('colors');\n var spacing = fromTheme('spacing');\n var blur = fromTheme('blur');\n var brightness = fromTheme('brightness');\n var borderColor = fromTheme('borderColor');\n var borderRadius = fromTheme('borderRadius');\n var borderSpacing = fromTheme('borderSpacing');\n var borderWidth = fromTheme('borderWidth');\n var contrast = fromTheme('contrast');\n var grayscale = fromTheme('grayscale');\n var hueRotate = fromTheme('hueRotate');\n var invert = fromTheme('invert');\n var gap = fromTheme('gap');\n var gradientColorStops = fromTheme('gradientColorStops');\n var gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n var inset = fromTheme('inset');\n var margin = fromTheme('margin');\n var opacity = fromTheme('opacity');\n var padding = fromTheme('padding');\n var saturate = fromTheme('saturate');\n var scale = fromTheme('scale');\n var sepia = fromTheme('sepia');\n var skew = fromTheme('skew');\n var space = fromTheme('space');\n var translate = fromTheme('translate');\n var getOverscroll = function getOverscroll() {\n return ['auto', 'contain', 'none'];\n };\n var getOverflow = function getOverflow() {\n return ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n };\n var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {\n return ['auto', isArbitraryValue, spacing];\n };\n var getSpacingWithArbitrary = function getSpacingWithArbitrary() {\n return [isArbitraryValue, spacing];\n };\n var getLengthWithEmpty = function getLengthWithEmpty() {\n return ['', isLength];\n };\n var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {\n return ['auto', isNumber, isArbitraryValue];\n };\n var getPositions = function getPositions() {\n return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n };\n var getLineStyles = function getLineStyles() {\n return ['solid', 'dashed', 'dotted', 'double', 'none'];\n };\n var getBlendModes = function getBlendModes() {\n return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];\n };\n var getAlign = function getAlign() {\n return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n };\n var getZeroAndEmpty = function getZeroAndEmpty() {\n return ['', '0', isArbitraryValue];\n };\n var getBreaks = function getBreaks() {\n return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n };\n var getNumber = function getNumber() {\n return [isNumber, isArbitraryNumber];\n };\n var getNumberAndArbitrary = function getNumberAndArbitrary() {\n return [isNumber, isArbitraryValue];\n };\n return {\n cacheSize: 500,\n theme: {\n colors: [isAny],\n spacing: [isLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumber(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmpty(),\n contrast: getNumber(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumber(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumber(),\n scale: getNumber(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n \"float\": [{\n \"float\": ['right', 'left', 'none']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [].concat(getPositions(), [isArbitraryValue])\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal'].concat(getAlign())\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal'].concat(getAlign(), ['baseline'])\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [].concat(getAlign(), ['baseline'])\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize, isArbitraryValue]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [].concat(getLineStyles(), ['wavy'])\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isArbitraryValue, isLength]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n \"break\": [{\n \"break\": ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [].concat(getPositions(), [isArbitraryPosition])\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryUrl]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [].concat(getLineStyles(), ['hidden'])\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: [''].concat(getLineStyles())\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isArbitraryValue, isLength]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmpty()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': getBlendModes()\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: ['appearance-none'],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {\n pan: ['x', 'left', 'right', 'y', 'up', 'down']\n }]\n }],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only']\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n}\n\nexport { getDefaultConfig };\n//# sourceMappingURL=default-config.mjs.map\n","/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nfunction mergeConfigs(baseConfig, configExtension) {\n for (var key in configExtension) {\n mergePropertyRecursively(baseConfig, key, configExtension[key]);\n }\n return baseConfig;\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);\nfunction mergePropertyRecursively(baseObject, mergeKey, mergeValue) {\n if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {\n baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);\n return;\n }\n if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {\n if (baseObject[mergeKey] === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n for (var nextKey in mergeValue) {\n mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);\n }\n }\n}\n\nexport { mergeConfigs };\n//# sourceMappingURL=merge-configs.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\nimport { mergeConfigs } from './merge-configs.mjs';\n\nfunction extendTailwindMerge(configExtension) {\n for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n createConfig[_key - 1] = arguments[_key];\n }\n return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {\n return mergeConfigs(getDefaultConfig(), configExtension);\n }].concat(createConfig));\n}\n\nexport { extendTailwindMerge };\n//# sourceMappingURL=extend-tailwind-merge.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\n\nvar twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\n\nexport { twMerge };\n//# sourceMappingURL=tw-merge.mjs.map\n","import { e, b, g, c, f, a, h } from './chunk-T24HS5CV.js';\nimport { twMerge, extendTailwindMerge } from 'tailwind-merge';\n\nvar re={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Z=s=>s||void 0,j=(...s)=>Z(e(s).filter(Boolean).join(\" \")),R=null,O={},q=!1,w=(...s)=>d=>d.twMerge?((!R||q)&&(q=!1,R=b(O)?twMerge:extendTailwindMerge(O)),Z(R(j(s)))):j(s),Y=(s,d)=>{for(let e in d)s.hasOwnProperty(e)?s[e]=j(s[e],d[e]):s[e]=d[e];return s},se=(s,d)=>{let{extend:e=null,slots:N={},variants:F={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:U={}}=s,m={...re,...d},M=e!=null&&e.base?j(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!b(e.variants)?g(F,e.variants):F,A=e!=null&&e.defaultVariants&&!b(e.defaultVariants)?{...e.defaultVariants,...U}:U;!b(m.twMergeConfig)&&!c(m.twMergeConfig,O)&&(q=!0,O=m.twMergeConfig);let $=b(N)?{}:{base:s==null?void 0:s.base,...N},h$1=b(e==null?void 0:e.slots)?$:Y({...e==null?void 0:e.slots},b($)?{base:s==null?void 0:s.base}:$),v=l=>{if(b(g$1)&&b(N)&&b(e==null?void 0:e.slots))return w(M,l==null?void 0:l.class,l==null?void 0:l.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The \"compoundVariants\" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The \"compoundSlots\" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n==\"string\")r=r.concat(h(n).split(\" \").map(c=>`${t}:${c}`));else if(Array.isArray(n))r=r.concat(n.reduce((c,f)=>c.concat(`${t}:${f}`),[]));else if(typeof n==\"object\"&&typeof i==\"string\"){for(let c in n)if(n.hasOwnProperty(c)&&c===i){let f=n[c];if(f&&typeof f==\"string\"){let o=h(f);r[i]?r[i]=r[i].concat(o.split(\" \").map(u=>`${t}:${u}`)):r[i]=o.split(\" \").map(u=>`${t}:${u}`);}else Array.isArray(f)&&f.length>0&&(r[i]=f.reduce((o,u)=>o.concat(`${t}:${u}`),[]));}}return r},W=(t,n=g$1,a$1=null,i=null)=>{var I;let r=n[t];if(!r||b(r))return null;let c=(I=i==null?void 0:i[t])!=null?I:l==null?void 0:l[t];if(c===null)return null;let f=a(c),o=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=A==null?void 0:A[t],b$1=[];if(typeof f==\"object\"&&o)for(let[T,J]of Object.entries(f)){let te=r[J];if(T===\"initial\"){u=J;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(T)||(b$1=K(T,te,b$1,a$1));}let S=r[f]||r[a(u)];return typeof b$1==\"object\"&&typeof a$1==\"string\"&&b$1[a$1]?Y(b$1,S):b$1.length>0?(b$1.push(S),b$1):S},x=()=>g$1?Object.keys(g$1).map(t=>W(t,g$1)):null,P=(t,n)=>{if(!g$1||typeof g$1!=\"object\")return null;let a=new Array;for(let i in g$1){let r=W(i,g$1,t,n),c=t===\"base\"&&typeof r==\"string\"?r:r&&r[t];c&&(a[a.length]=c);}return a},z={};for(let t in l)l[t]!==void 0&&(z[t]=l[t]);let D=(t,n)=>{var i;let a=typeof(l==null?void 0:l[t])==\"object\"?{[t]:(i=l[t])==null?void 0:i.initial}:{};return {...A,...z,...a,...n}},G=(t=[],n)=>{let a=[];for(let{class:i,className:r,...c}of t){let f=!0;for(let[o,u]of Object.entries(c)){let b=D(o,n);if(Array.isArray(u)){if(!u.includes(b[o])){f=!1;break}}else if(b[o]!==u){f=!1;break}}f&&(i&&a.push(i),r&&a.push(r));}return a},H=t=>{let n=G(C,t),a=G(e==null?void 0:e.compoundVariants,t);return f(a,n)},p=t=>{let n=H(t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i==\"string\"&&(a.base=w(a.base,i)(m)),typeof i==\"object\")for(let[r,c]of Object.entries(i))a[r]=w(a[r],c)(m);return a},ee=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...c}of V){if(!b(c)){let f=!0;for(let o of Object.keys(c)){let u=D(o,t)[o];if(u===void 0||(Array.isArray(c[o])?!c[o].includes(u):c[o]!==u)){f=!1;break}}if(!f)continue}for(let f of a)n[f]=n[f]||[],n[f].push([i,r]);}return n};if(!b(N)||!b(e==null?void 0:e.slots)){let t={};if(typeof h$1==\"object\"&&!b(h$1))for(let n of Object.keys(h$1))t[n]=a=>{var i,r;return w(h$1[n],P(n,a),((i=p(a))!=null?i:[])[n],((r=ee(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return w(M,x(),H(),l==null?void 0:l.class,l==null?void 0:l.className)(m)},_=()=>{if(!(!g$1||typeof g$1!=\"object\"))return Object.keys(g$1)};return v.variantKeys=_(),v.extend=e,v.base=M,v.slots=h$1,v.variants=g$1,v.defaultVariants=A,v.compoundSlots=V,v.compoundVariants=C,v},fe=s=>(d,e)=>se(d,e?g(s,e):s);\n\nexport { w as cn, j as cnBase, fe as createTV, re as defaultConfig, se as tv, Z as voidEmpty };\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const layoutBase = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full',\n wrapper: 'tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-lumina',\n wrapper: 'tw--bg-light-whisper tw--text-light-zephyr-100',\n },\n dark: {\n base: 'tw--bg-dark-lumina',\n wrapper: 'tw--bg-dark-whisper tw--text-white',\n }\n },\n minimized: {\n true: 'tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md'\n }\n },\n});\n\nexport const layoutHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0]',\n },\n variants: {\n theme: {\n light: 'tw--shadow-light-zephyr-200',\n dark: 'tw--shadow-dark-zephyr-200',\n },\n },\n});\n\nexport const layoutFoot = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]',\n input: 'tw--flex-1 tw--pr-2',\n button: 'tw--flex tw--grow-0',\n },\n});\n\nexport default { layoutBase, layoutHead, layoutFoot };\n","import { node } from 'prop-types';\nimport { useAppSelector, useWindowSize } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { layoutBase as variant } from './variants';\n\nexport const LayoutBase = ({ head, stream, foot }) => {\n const { themeId: theme, isPluginMode } = useAppSelector(getConfig);\n const { base, wrapper } = variant({ theme });\n const [_, height] = useWindowSize();\n\n return (\n \n
\n { head }\n { stream }\n { foot }\n
\n
\n );\n};\n\nLayoutBase.propTypes = {\n head: node.isRequired,\n stream: node.isRequired,\n foot: node.isRequired,\n};\n\nexport default LayoutBase;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const profile = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--select-none',\n avatar: 'tw--rounded-full',\n info: '',\n name: '',\n role: '',\n imgWrapper: ''\n },\n variants: {\n theme: {\n light: {\n role: '',\n },\n dark: {\n role: '',\n },\n },\n orientation: {\n horizontal: {\n base: 'tw--flex-row tw--text-left',\n avatar: 'tw--shrink',\n name: 'tw--text-xl/7 tw--font-bold tw--leading-[30px]',\n info: 'tw--pl-[10px]'\n },\n vertical: {\n base: 'tw--flex-col tw--text-center',\n name: 'tw--text-[24px] tw--font-semibold',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'light',\n class: 'tw--text-light-zephyr-600 tw--font-medium'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'light',\n class: 'tw--text-light-zephyr-800'\n },\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-600'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-800'\n },\n {\n slots: ['imgWrapper'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots' },\n {\n slots: ['avatar'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--h-[50px]',\n },\n {\n slots: ['avatar'],\n orientation: 'vertical',\n minimized: false,\n class: 'tw--h-[60px]',\n },\n ],\n});\n\nexport default profile;\n","import { string, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { profile as variant } from './variants';\n\nexport const Profile = ({ orientation = 'horizontal', minimized = false }) => {\n const { aiProfile, themeId: theme } = useAppSelector(getConfig);\n const { base, avatar, info, name, role, imgWrapper } = variant({ theme, orientation, minimized });\n\n return (\n
\n \n \n \n
\n
{ aiProfile.name }
\n
{ aiProfile.role }
\n
\n
\n );\n};\n\nProfile.propTypes = {\n orientation: string,\n minimized: bool,\n};\n\nexport default Profile;\n","import { useAppSelector } from '@/hooks';\n\nimport { Profile } from '@/components/Profile';\nimport { getConfig } from '@/store/slices/config';\nimport { layoutHead as variant } from './variants';\n\nexport const LayoutHead = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n
\n \n
\n );\n};\n\nexport default LayoutHead;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","export const config = {\n transports: ['websocket'],\n upgrade: false,\n pingInterval: 1000 * 60 * 5,\n pingTimeout: 1000 * 60 * 3,\n secure: true,\n reconnect: true,\n};\n\n// DEV Note: TS Enum\nexport const events = {\n chat: 'chat',\n chatHistory: 'chat-history',\n connect: 'connect',\n error: 'error',\n disconnect: 'disconnect',\n streamStart: 'stream-start',\n streamData: 'stream-data',\n streamEnd: 'stream-end',\n streamError: 'stream-error',\n};\n\nexport default { config, events };\n","export const roles = {\n user: 'user',\n assistant: 'assistant',\n};\n\nexport default roles;\n","import { EventEmitter } from 'node:events';\n\nimport { intentions } from '@/config';\n\nexport const intent = {\n type: intentions,\n core: new EventEmitter()\n};\n\nexport default intent;\n","// DEV Note: TS Enum\nexport const intentions = {\n email: 'email_intent',\n payment: 'payment_intent',\n emailError: 'email_validation_error',\n emailSuccess: 'email_validation_success',\n destroy: 'payment_intent_destroy'\n};\n\nexport default { intentions };\n","import { createSlice } from '@reduxjs/toolkit';\nimport { intentions as initialState } from '../initialState';\n\nconst intentionsSlice = createSlice({\n name: 'intentions',\n initialState,\n reducers: {\n setEmail(state, { payload }) {\n state.email.current = payload;\n },\n setEmailSuccess(state, { payload }) {\n state.email.success = payload;\n },\n setEmailError(state, { payload }) {\n state.email.error = payload;\n },\n setIsEmailLoading(state, { payload }) {\n state.email.isLoading = payload;\n },\n setIsEmailFormVisible(state, { payload }) {\n state.email.isFormVisible = payload;\n },\n setIsPaymentButtonVisible(state, { payload }) {\n state.payment.isButtonVisible = payload;\n },\n setPaymentFormVisibility(state, { payload }) {\n state.payment.isFormVisible = payload;\n },\n setIsPaymentSuccessful(state, { payload }) {\n state.payment.isSuccessful = payload;\n },\n setPaymentIntentError(state, { payload }) {\n state.payment.error = payload;\n },\n setLink(state, { payload }) {\n state.link = { ...state.link, ...payload };\n },\n // Response Form reducers\n setResponse(state, { payload }) {\n state.response.value = payload;\n },\n setResponseFormVisibility(state, { payload }) {\n if (payload.isFormVisible !== undefined) {\n state.response.isFormVisible = payload.isFormVisible;\n return;\n }\n state.response.isFormVisible = !payload.intentions.link.isVisible && !payload.intentions.email.isFormVisible && !payload.intentions.payment.isFormVisible && !payload.intentions.payment.isButtonVisible && payload.options.length === 0;\n },\n setResponseLoadingStatus(state, { payload }) {\n state.response.isLoading = payload;\n },\n }\n});\n\nexport const getEmailIntentions = state => state.intentions.email;\nexport const getPaymentIntentions = state => state.intentions.payment;\nexport const getLinkIntentions = state => state.intentions.link;\nexport const getResponseIntentions = state => state.intentions.response;\n\nexport const { setEmail, setEmailSuccess,\n setIsPaymentSuccessful, setPaymentFormVisibility,\n setEmailError, setIsEmailLoading,\n setIsEmailFormVisible, setIsPaymentButtonVisible,\n setLink, setResponse, setResponseFormVisibility,\n setResponseLoadingStatus, setPaymentIntentError\n} = intentionsSlice.actions;\n\nexport default intentionsSlice.reducer;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--relative tw--flex tw--items-center',\n input: 'tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none',\n loader: 'tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]',\n spin: 'tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto'\n },\n variants: {\n theme: {\n light: {\n base: '',\n input: 'tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold',\n loader: '',\n spin: 'tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600',\n },\n dark: {\n base: '',\n input: 'tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold',\n loader: '',\n spin: 'w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600',\n },\n },\n },\n});\n\nexport default basic;\n","import { string, func, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Input = ({ type, ref = null, placeholder = '', onChange = null, onKeyUp = null, isLoading = false, value = null, e2e = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, input, loader, spin } = variant({ theme });\n\n return (\n
\n \n\n { isLoading && (\n \n \n \n ) }\n
\n );\n};\n\nInput.propTypes = {\n type: string.isRequired,\n ref: string,\n value: string,\n placeholder: string,\n onChange: func,\n onKeyUp: func,\n isLoading: bool,\n e2e: string,\n};\n\nexport default Input;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glazeBg tw--text-light-glazeText tw--border-light-seraph tw--font-medium',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText tw--border-dark-glaze',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--text-[inherit]',\n },\n variants: {\n theme: {\n light: { base: 'tw--text-light-status' },\n dark: { base: 'tw--text-dark-seraph' },\n },\n outlined: {\n true: 'tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow',\n false: 'tw--bg-[transparent]',\n },\n },\n});\n","import { string, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Btn = ({ text = null, onClick = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n { text }\n \n );\n};\n\nBtn.propTypes = {\n text: string.isRequired,\n onClick: func,\n};\n\nexport default Btn;\n","import { element, bool, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { icon as variant } from './variants';\n\n// eslint-disable-next-line react/prop-types\nexport const IconBtn = ({ children, outlined = false, onClick = null, e2e = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme, outlined });\n\n return (\n \n { children }\n \n );\n};\n\nIconBtn.propTypes = {\n children: element.isRequired, // DEV NOTE: this explicitly validates for a single child to be passed\n outlined: bool,\n onClick: func,\n};\n\nexport default IconBtn;\n","var IDX=256, HEX=[], SIZE=256, BUFFER;\nwhile (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);\n\nexport function uid(len) {\n\tvar i=0, tmp=(len || 11);\n\tif (!BUFFER || ((IDX + tmp) > SIZE*2)) {\n\t\tfor (BUFFER='',IDX=0; i < SIZE; i++) {\n\t\t\tBUFFER += HEX[Math.random() * 256 | 0];\n\t\t}\n\t}\n\n\treturn BUFFER.substring(IDX, IDX++ + tmp);\n}\n","// DEV Note: will be depricated, replace with env vars\nexport const STORAGE_KEY = 'history';\nexport const CHAT_SEEN_KEY = 'chatSeen';\nexport const ALREADY_REGISTERED_KEY = 'showAlreadyRegisteredUser';\nexport const SHOW_PAYMENT_BUTTON_KEY = 'showPaymentButton';\nexport const SOCKET_IO_URL = 'http://localhost:5000';\nexport const UNSENT_MESSAGES_KEY = 'unsent';\nexport const GO_THROUGH_QUIZ_KEY = 'hasToGoThroughQuiz';\nexport const EXISTING_PRODUCT_LINK_KEY = 'existingProductLink';\nexport const CID = 'cid';\n","import { dateFormattingOptions } from '../config';\nimport { CHAT_SEEN_KEY, CID } from '../config/env';\n// eslint-disable-next-line import/prefer-default-export\n\n/**\n * Extracts options from a string enclosed in square brackets.\n *\n * @param {string} val - The input string possibly containing options enclosed in square brackets.\n * @returns {Object} An object containing the content with options removed and an array of extracted options.\n * @property {string} message - The content with options removed.\n * @property {Array<{id: string, label: string, value: string}>} options - An array of extracted options as objects.\n */\nexport const extractOptionSet = (val) => {\n const match = /\\[(.*?)\\]/.exec(val);\n\n if (!match || match.length <= 1) {\n return { content: val, options: [] };\n }\n\n return {\n content: val.replace(match[0], ''),\n options: match[1].split('|').map((item, index) => ({ id: `opt-${index}`, label: item, value: item })),\n };\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {string} val - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport const formatDateByLocale = (val, locale = undefined, options = dateFormattingOptions) => {\n const date = new Date(val);\n const formattedDate = date.toLocaleDateString(locale, options);\n\n return formattedDate;\n};\n\n/**\n * Extracts a link from a given string and appends query parameters if specified.\n *\n * @param {string} val - The input string from which the link will be extracted.\n * @param {string} userId - The user ID used for query parameter construction.\n * @example constructLink('here is a link to a diet website https://usa.example.com', '12311231a2', hasQueryParams('https://usa.example.com'));\n * //output: https://usa.example.com/?utm_chat=salesmen-keto-redirect&chatSeen=true&cid=12311231a2\n * @returns {string|boolean} The extracted link with optional query parameters or `false` if no link is found.\n */\nexport const constructLink = (val) => {\n const hasQueryParams = (url) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n };\n\n // matching example: 'Secure site: https://www.example.com' will give [ https://www.example.com ]\n const REGEX_URL = /\\b((?:https?:\\/\\/|www\\.)[^\\s/$.?#][^\\s{}[\\]()<>]*)\\b/gi;\n let search = '';\n\n if (window.location.search) {\n search = new URLSearchParams(window.location.search);\n\n search.append(CHAT_SEEN_KEY, 'true');\n search.append(CID, localStorage.getItem('__cid'));\n search = '/?' + search;\n }\n\n // Extract the link from the string\n const matches = val.match(REGEX_URL);\n const link = matches ? matches[0] : '';\n\n if (!link) {\n return false;\n }\n\n if (hasQueryParams(link)) {\n return link;\n }\n\n return link + search;\n};\n","/**\n * @description Check if value is of type 'null'\n * @param val\n * @returns {boolean}\n */\nexport const isNull = val => val === null;\n\n/**\n * @description Check if value is of type 'array'\n * @param val\n * @returns {boolean}\n */\nexport const isArr = val => Array.isArray(val);\n\n/**\n * @description Check if value is of type 'object'\n * @param val\n * @returns {boolean}\n */\nexport const isObj = val => typeof val === 'object' && !isArr(val) && !isNull(val);\n\n/**\n * @description Check if value is of type 'number'\n * @param val\n * @returns {boolean}\n */\n// eslint-disable-next-line no-restricted-globals\nexport const isNum = val => typeof val === 'number' && !isNaN(val);\n\n/**\n * @description Check if value is of type 'function'\n * @param val\n * @returns {boolean}\n */\nexport const isFunc = val => typeof val === 'function';\n\n/**\n * @description Check if value is of type 'string'\n * @param val\n * @returns {boolean}\n */\nexport const isStr = val => typeof val === 'string';\n\n/**\n * @description Check if value is of type 'undefined'\n * @param val\n * @returns {boolean}\n */\nexport const isUndef = val => typeof val === 'undefined';\n\n/**\n * @description Check if value is of type 'boolean'\n * @param val\n * @returns {boolean}\n */\nexport const isBool = val => typeof val === 'boolean';\n\n/**\n * @description Is non empty string\n * @param val\n * @returns {boolean|boolean}\n */\nexport const isNonEmptyStr = val => isStr(val) && val !== '';\n\n/**\n * @description Is non empty array\n * @param val\n * @returns {boolean|boolean}\n */\nexport const isNonEmptyArr = val => isArr(val) && val.length > 0;\n\n/**\n * @description To int\n * @param val\n * @returns {number}\n */\nexport const toInt = val => parseInt(val, 10);\n\n/**\n * @description Check if object has property\n * @param obj\n * @param prop\n * @returns {boolean}\n */\nexport const hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\n\n/**\n * @description Check if object has method\n * @param obj\n * @param method\n * @returns {boolean}\n */\nexport const hasMethod = (obj, method) => hasProp(obj, method) && isFunc(obj[method]);\n\n/**\n * @description Get object keys\n * @param obj\n * @returns {Array}\n */\nexport const getKeys = obj => Object.keys(obj);\n\n/**\n * @description Check if object has key\n * @param obj\n * @param key\n * @returns {boolean}\n */\nexport const hasKey = (obj, key) => getKeys(obj).indexOf(key) > -1;\n\n/**\n * @description Has keys\n * @param obj\n * @returns {boolean}\n */\nexport const hasKeys = obj => getKeys(obj).length > 0;\n\n/**\n * @description Iterate over each key of an object\n * @param obj\n * @param callback\n */\nexport const eachKey = (obj, callback) => {\n Object.keys(obj).forEach((key, index) => callback(key, obj[key], index));\n};\n\n/**\n * @description Linear iterator for object properties\n * @param obj\n * @param callback\n */\nexport const eachProp = (obj, callback) => {\n eachKey(obj, (key, prop, index) => callback(prop, key, index));\n};\n\n/**\n * @description Extract nested prop\n * @param obj\n * @param keysText\n * @returns {*}\n */\nexport const extractNestedProp = (obj, keysText) => {\n const keys = keysText.split('.');\n const keysLength = keys.length - 1;\n let keysIndex = 0;\n let isValidKey = true;\n let targetObj = { ...obj };\n let targetProp;\n let nextTarget;\n\n if (keys.length > 0) {\n while (isValidKey) {\n nextTarget = targetObj[keys[keysIndex]];\n\n if (keysIndex === keysLength) {\n targetProp = !isUndef(nextTarget) && !isNull(nextTarget)\n ? nextTarget\n : undefined;\n break;\n }\n\n if (!isObj(nextTarget)) {\n isValidKey = false;\n break;\n }\n\n targetObj = nextTarget;\n keysIndex += 1;\n }\n }\n\n return targetProp;\n};\n\n/**\n * @description Debounce\n * @returns {function}\n */\nexport const debounce = ({ timeout, id }) => {\n const timers = {};\n\n return callback => {\n if (timers[id]) {\n clearTimeout(timers[id]);\n }\n timers[id] = setTimeout(callback, timeout);\n };\n};\n\n/**\n * @description Hide page scroll\n */\nexport const hidePageScroll = () => {\n document.documentElement.classList.add('hide-scroll');\n};\n\n/**\n * @description Show page scroll\n */\nexport const showPageScroll = () => {\n document.documentElement.classList.remove('hide-scroll');\n};\n\n/**\n * Checks if a URL contains query parameters.\n *\n * @param {string} url - The URL to check for query parameters.\n * @returns {boolean} `true` if the URL contains query parameters, `false` otherwise.\n */\nexport const hasQueryParams = (url) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n};\n\n/**\n * Retrieves certain query parameter from a URL.\n *\n * @example getQueryParam(window.location.search, 'utm_chat')\n * @param {string} url\n * @param {string} param\n */\nexport const getQueryParam = (url, param) => {\n const urlParams = new URLSearchParams(url);\n\n return urlParams.get(param);\n};\n\n/**\n * Checks if 24 hours have passed since the given date.\n *\n * @function isExpired\n * @param {string} date - The date to compare in ISO 8601 format (e.g., \"2023-07-04T14:11:00.097Z\").\n * @returns {boolean} Returns true if 24 hours have passed since the given date, or false otherwise.\n */\nexport const isExpired = (date, maxHours = 24) => {\n const currentDate = new Date();\n const givenDate = new Date(date);\n const elapsedMilliseconds = currentDate - givenDate;\n const elapsedHours = elapsedMilliseconds / (1000 * 60 * 60); // Convert milliseconds to hours\n\n return elapsedHours >= maxHours;\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {string} dateString - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport function formatDateByLocale(dateString) {\n const date = new Date(dateString);\n\n const options = {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n };\n\n const formattedDate = date.toLocaleDateString(undefined, options);\n\n return `${formattedDate}`.toUpperCase();\n}\n\nexport const checkForSpecialPhrases = (string, specialMessages) => {\n const specialRegex = specialMessages.map(keyword => new RegExp(`\\\\[?${keyword}\\\\]?`));\n return specialRegex.some(regex => string.match(regex));\n};\n","import { createSlice } from '@reduxjs/toolkit';\nimport { uid } from 'uid';\nimport { chat as initialState } from '@/store/initialState';\nimport { extractOptionSet } from '@/utils/formatting';\nimport { getQueryParam } from '@/utils';\nimport { roles } from '@/config';\n\nconst configSlice = createSlice({\n name: 'chat',\n initialState,\n reducers: {\n setOutgoing(state, { payload }) {\n state.outgoing = {\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: localStorage.getItem('__cid'),\n role: roles.user,\n message: payload,\n };\n },\n resetOutgoing(state) {\n state.outgoing = initialState.outgoing;\n },\n setIncoming(state, { payload }) {\n state.incoming = {\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: localStorage.getItem('__cid'),\n role: roles.assistant,\n content: payload,\n };\n },\n setError(state, { payload }) {\n state.error = payload;\n },\n resetError(state) {\n state.error = initialState.error;\n },\n resetIncoming(state) {\n state.incoming = initialState.incoming;\n },\n addIncomingChunk(state, { payload }) {\n state.incoming = {\n ...state.incoming,\n content: state.incoming.content + payload.chunk,\n };\n },\n setHistory(state, { payload }) {\n state.history = payload.map((item) => ({ ...item, id: uid(), role: item.role, ...extractOptionSet(item.content) }));\n },\n appendHistory(state, { payload }) {\n let bubbleContent;\n\n if (payload.role === roles.assistant) {\n if (payload.options && payload.options.length > 0) {\n bubbleContent = { content: payload.content, options: payload.options, isSpecial: payload.isSpecial };\n } else {\n bubbleContent = { ...extractOptionSet(payload.content), isSpecial: payload.isSpecial };\n }\n }\n\n if (payload.role === roles.user) {\n bubbleContent = { content: payload.content };\n }\n\n state.history.push({ id: uid(), ...bubbleContent, role: payload.role });\n },\n resetHistory(state) {\n state.history = initialState.history;\n },\n setTextToParse(state, { payload }) {\n state.textToParse += payload;\n },\n resetTextToParse(state) {\n state.textToParse = initialState.textToParse;\n },\n setIsLoading(state) {\n state.isLoading = true;\n },\n resetIsLoading(state) {\n state.isLoading = initialState.isLoading;\n },\n appendUnsent(state, { payload }) {\n state.unsent = [...state.unsent, payload];\n },\n resetUnsent(state) {\n state.unsent = initialState.unsent;\n },\n setShouldSendUnsent(state, { payload }) {\n state.shouldSendUnsent = payload;\n },\n setConnected(state, { payload }) {\n state.connected = payload;\n },\n setClosed(state) {\n state.closed = true;\n },\n },\n});\n\nexport const getCurrentPointer = (state) => state.chat.history[state.chat.history.length - 1]?.id;\nexport const getStream = state => state.chat;\n\nexport const { setOutgoing, setIncoming,\n resetIncoming, addIncomingChunk,\n resetOutgoing, setHistory, resetHistory,\n appendHistory, setTextToParse, resetTextToParse,\n setIsLoading, resetIsLoading, appendUnsent, resetUnsent,\n setShouldSendUnsent, setError, resetError,\n setConnected, setClosed\n} = configSlice.actions;\n\nexport default configSlice.reducer;\n","import { useState } from 'react';\nimport { getResponseIntentions } from '@/store/slices/intentions';\nimport { getConfig } from '@/store/slices/config';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { Input } from '@/components/Input';\nimport { IconBtn } from '@/components/Button';\n\nimport { appendUnsent, setShouldSendUnsent } from '@/store/slices/chat';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const ResponseForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getResponseIntentions);\n const { base, input, button } = variant({ theme });\n const [response, setCurrentResponse] = useState('');\n const [timerId, setTimerId] = useState(null);\n\n const handleInputChange = (e) => {\n setCurrentResponse(e.target.value);\n setTimerToSendMessage();\n };\n\n const handleFormSubmit = (e) => {\n e.preventDefault();\n\n if (response.trim()) {\n dispatch(appendUnsent(response));\n }\n\n setCurrentResponse('');\n setTimerToSendMessage();\n };\n\n const setTimerToSendMessage = () => {\n clearTimeout(timerId);\n const currentId = setTimeout(() => {\n dispatch(setShouldSendUnsent(true));\n }, 3000);\n setTimerId(currentId);\n };\n\n return (\n
\n
\n \n
\n
\n \n \n \n \n \n
\n
\n );\n};\n\nexport default ResponseForm;\n","import { useState } from 'react';\nimport { intent } from '@/services/intentions';\nimport { getEmailIntentions, setEmail, setIsEmailLoading } from '@/store/slices/intentions';\nimport { getConfig } from '@/store/slices/config';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { Input } from '@/components/Input';\nimport { IconBtn } from '@/components/Button';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const EmailForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme, translations } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getEmailIntentions);\n const { base, input, button } = variant({ theme });\n const [email, setCurrentEmail] = useState('');\n\n const handleInputChange = (e) => {\n const currentValue = e.target.value.trim();\n setCurrentEmail(currentValue);\n };\n\n const handleFormSubmit = (e) => {\n e.preventDefault();\n\n if (email === '') {\n return;\n }\n\n dispatch(setIsEmailLoading(true));\n dispatch(setEmail(email));\n intent.core.emit(intent.type.email, { email });\n setCurrentEmail('');\n };\n\n return (\n
\n
\n \n
\n
\n \n \n \n \n \n
\n
\n );\n};\n\nexport default EmailForm;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const payment = /*tw*/ tv({\n slots: {\n btn: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]',\n\n link: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl',\n }\n});\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50',\n },\n variants: {\n theme: {\n light: 'tw--bg-light-lumina',\n dark: 'tw--bg-dark-lumina'\n }\n }\n});\n\nexport const head = /*tw*/ tv({\n slots: {\n wrapper: 'tw--flex tw--justify-between tw--w-full tw--mb-7',\n left: 'tw--flex tw--flex-col',\n leftTop: 'tw--flex tw--flex-row',\n icon: 'tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]',\n text: 'tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue',\n bottom: 'tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue',\n right: 'tw--flex tw--flex-col tw--items-end',\n price: 'tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]',\n info: 'tw--leading-[2] tw--text-[10px] tw--text-muted-blue',\n },\n});\n\nexport const close = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue',\n },\n});\n\nexport const foot = tv({\n slots: {\n base: 'tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold',\n icon: 'tw--mr-[5px]'\n },\n});\n\nexport const loader = tv({\n slots: {\n wrapper: 'loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5',\n inner: 'tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center',\n dots: 'tw--relative tw--flex tw--items-center tw--justify-center tw--p-3',\n dotsIn: 'tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full',\n progressCheckmark: 'tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center',\n panelTitle: 'js-payment-message tw--text-lg tw--font-bold tw--leading-5',\n icon: 'tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full',\n spinningTexts: 'tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]',\n filmContainer: 'js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center',\n film: 'tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72'\n },\n variants: {\n theme: {\n light: {\n wrapper: 'tw--shadow-light-card tw--bg-light-loader',\n dotsIn: 'tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots',\n icon: 'tw--bg-light-iota-dots',\n spinningTexts: 'tw--text-light-zeta tw--opacity-60'\n },\n dark: {\n wrapper: 'tw--shadow-dark-card tw--bg-dark-loader',\n dotsIn: 'tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots',\n icon: 'tw--bg-dark-iota-dots',\n spinningTexts: 'tw--text-dark-zeta tw--opacity-60'\n }\n }\n }\n});\n\nexport default payment;\n","import { object } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { head as variants } from './variants';\n\nexport const PaymentHead = ({ config = { price: '', period: '' } }) => {\n const { translations } = useAppSelector(state => state.config);\n const { wrapper, left, leftTop, icon, text, bottom, right, price, info } = variants();\n\n return (\n
\n
\n \n
\n \n \n \n \n \n { /* DEV NOTE: be aware that the text is not coming from an input so in the future it is not a good practice to use this attribute */ }\n \n
\n
\n { translations.paymentHeaderTxt2 }\n
\n
\n
\n
{ config.price }
\n
\n { config.period }\n
\n
\n
\n
\n );\n};\n\nPaymentHead.propTypes = {\n config: object\n};\n\nexport default PaymentHead;\n","import { string, func, bool } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { payment as variant } from './variants';\n\nexport const PaymentButton = ({ text = null, onClick = null, e2e = null, disabled = false }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { btn } = variant({ theme });\n\n return (\n \n \n \n \n \n { text }\n \n );\n};\n\nPaymentButton.propTypes = {\n text: string.isRequired,\n onClick: func.isRequired,\n disabled: bool,\n e2e: string\n};\n\nexport default PaymentButton;\n","import { func } from 'prop-types';\nimport { close as variants } from './variants';\n\nexport const CloseButton = ({ onClick }) => {\n const { base } = variants();\n return (\n \n \n \n \n \n );\n};\n\nCloseButton.propTypes = {\n onClick: func.isRequired\n};\n\nexport default CloseButton;\n","import { foot as variants } from './variants';\n\nexport const PaymentFooter = () => {\n const { base, icon } = variants();\n return (\n
\n \n \n \n SSL Secure Connection\n
\n );\n};\n\nexport default PaymentFooter;\n","import { array, string } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { loader as variants } from './variants';\n\nexport const PaymentLoader = ({ texts = [], title = '' }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { wrapper, inner, dots, dotsIn, icon, progressCheckmark, panelTitle, spinningTexts, filmContainer, film } = variants({ theme });\n return (\n \n
\n
\n \n
\n
\n\n
\n \n \n \n \n \n \n

{ title }

\n
\n\n
\n
\n { texts.map((txt) => (\n
\n { txt }\n
\n )) }\n
\n
\n
\n );\n};\n\nPaymentLoader.propTypes = {\n texts: array.isRequired,\n title: string.isRequired,\n};\n\nexport default PaymentLoader;\n","import { func, object, string } from 'prop-types';\nimport payment from './variants';\n\nexport const Link = ({ href, text, onClick, forwardedRef, e2e = null }) => {\n const { link } = payment();\n return (\n { text }\n \n );\n};\n\nLink.propTypes = {\n onClick: func.isRequired,\n text: string.isRequired,\n e2e: string,\n forwardedRef: object.isRequired,\n href: string.isRequired,\n};\n\nexport default Link;\n","import { tv } from 'tailwind-variants';\n\n// eslint-disable-next-line spaced-comment\nexport const overlay = /*tw*/ tv({\n slots: {\n base: 'loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-whisper'\n },\n dark: {\n base: 'tw--bg-dark-whisper'\n }\n }\n }\n});\n\nexport default overlay;\n","import { node } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport overlay from './variants';\n\nexport const Overlay = ({ children }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = overlay({ theme });\n return (\n
\n { children }\n
\n );\n};\n\nOverlay.propTypes = { children: node.isRequired };\n\nexport default Overlay;\n","import { func } from 'prop-types';\nimport { Overlay } from '@/components/Overlay';\nimport { PaymentHead, CloseButton, PaymentFooter, PaymentLoader } from '@/components/Payment';\nimport { useAppSelector } from '@/hooks';\nimport { wrapper } from '../Payment/variants';\n\nexport const PaymentScene = ({ onClose }) => {\n const { displayPlanPrice, billingFrequencyTmsg } = useAppSelector(state => state.meta.pd);\n const { translations, themeId: theme } = useAppSelector(state => state.config);\n const { base } = wrapper({ theme });\n\n return (\n (\n
\n \n \n \n \n \n
\n \n
\n \n
\n
\n )\n );\n};\n\nPaymentScene.propTypes = {\n onClose: func.isRequired,\n};\n\nexport default PaymentScene;\n","/* eslint-disable no-undef */\n// eslint-disable-next-line import/prefer-default-export\nexport const track = ({ eventType, systemType, utmParams, customerUuid, email, phone }) => {\n if (window.trackEventInGTM && window.tracking) {\n const event = window.tracking.event({\n eventType,\n systemType,\n uri: window.location.pathname,\n domain: window.location.hostname,\n email: email || null,\n phone: phone || null,\n customerUuid,\n additionalData: {},\n utmParams,\n });\n\n window.tracking.trackClient(event);\n if (window.trackEventInGTM) {\n window.trackEventInGTM(event);\n }\n }\n};\n","import { getKeys } from '@/utils';\n\n// DEV Note: TS Enum\nexport const baseEvents = {\n addToCart: 'AddToCart',\n contact: 'Contact',\n initiateCheckout: 'InitiateCheckout',\n pageView: 'PageView',\n viewContent: 'ViewContent',\n purchase: 'Purchase',\n subscribe: 'Subscribe',\n recurringSubscriptionPayment: 'RecurringSubscriptionPayment',\n cancelSubscription: 'CancelSubscription',\n purchaseFailed: 'PurchaseFailed',\n subscribeFailed: 'SubscribeFailed',\n recurringSubscriptionPaymentFailed: 'RecurringSubscriptionPaymentFailed',\n customerCreated: 'CustomerCreated',\n subscriptionChargeback: 'SubscriptionChargeback',\n subscriptionRefund: 'SubscriptionRefund',\n transactionChargeback: 'TransactionChargeback',\n transactionRefund: 'TransactionRefund',\n};\n\n// DEV Note: TS Enum\nexport const customEvents = {\n firstMessage: 'FirstMessage',\n linkProvided: 'LinkProvided',\n linkClicked: 'LinkClicked',\n emailField: 'EmailField',\n emailEntered: 'EmailEntered',\n emailWrong: 'EmailWrong',\n emailExist: 'EmailExist',\n priceSeen: 'PriceSeen',\n buttonClick: 'ButtonClick',\n};\n\nexport const baseEventsArr = getKeys(baseEvents);\nexport const customEventsArr = getKeys(customEvents);\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const streamBase = /*tw*/ tv({\n slots: {\n base: 'tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0',\n second: 'tw--mt-0 tw--mb-auto',\n date: 'tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--text-light-zephyr-100 tw--font-medium',\n },\n dark: {\n base: 'tw--text-dark-zephyr-100'\n }\n }\n }\n});\n\nexport const streamHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10',\n title: 'tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none',\n },\n variants: {\n theme: {\n light: { title: 'tw--font-medium' },\n }\n }\n});\n\nexport const streamRow = /*tw*/ tv({\n slots: {\n base: 'tw--grid',\n },\n});\n\nexport const flickerEffect = /* tw */ tv({\n slots: {\n base: 'after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none',\n },\n variants: {\n isTyping: {\n true: 'after:tw--animate-blink',\n false: 'after:tw--hidden'\n },\n theme: {\n light: 'after:tw--bg-light-zephyr-100',\n dark: 'after:tw--bg-dark-zephyr-100'\n }\n }\n});\n\nexport const streamBubble = /*tw*/ tv({\n slots: {\n base: 'tw--relative tw--max-w-[375px] tw--px-[15px] tw--py-[11px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5',\n action: 'tw--absolute tw--bottom-[-16px] tw--right-[-10px]'\n },\n variants: {\n theme: {\n light: {\n action: 'tw--text-light-seraph',\n base: 'tw--font-medium',\n },\n dark: {\n action: 'tw--text-dark-seraph',\n },\n },\n type: {\n assistant: {\n base: 'tw--justify-self-start',\n },\n user: {\n base: 'tw--justify-self-end',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['base'],\n theme: 'light',\n type: 'assistant',\n class: 'tw--bg-light-lumina',\n },\n {\n slots: ['base'],\n theme: 'light',\n type: 'user',\n class: 'tw--bg-light-seraph tw--text-white',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'assistant',\n class: 'tw--bg-dark-lumina',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'user',\n class: 'tw--bg-dark-seraph',\n },\n ],\n});\n\nexport const ellipsis = tv({\n slots: {\n dotFirst: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave',\n dotSecond: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay',\n dotThird: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2',\n },\n compoundSlots: [{\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'light',\n class: 'tw--bg-light-zephyr-100',\n },\n {\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'dark',\n class: 'tw--bg-dark-zephyr-100',\n }]\n});\n\nexport default { streamBase, streamHead, streamRow, streamBubble, ellipsis };\n","import { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { ellipsis as variant } from './variants';\n\nexport const Ellipsis = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { dotFirst, dotSecond, dotThird } = variant({ theme });\n return (\n
\n \n \n \n
\n );\n};\n\nexport default Ellipsis;\n","import { useRef, useState } from 'react';\nimport intent from '@/services/intentions';\nimport { useAppDispatch, useAppSelector } from '@/hooks';\nimport { ResponseForm, EmailForm } from '@/components/Form/';\nimport { getEmailIntentions, getLinkIntentions, getPaymentIntentions, getResponseIntentions, setIsPaymentButtonVisible, setIsPaymentSuccessful, setLink, setPaymentFormVisibility, setPaymentIntentError } from '@/store/slices/intentions';\nimport { PaymentButton, Link } from '@/components/Payment';\nimport { appendHistory, getStream, setClosed } from '@/store/slices/chat';\nimport { roles } from '@/config/roles';\nimport { PaymentScene } from '@/components/Scenes/payment';\nimport { getConfig } from '@/store/slices/config';\nimport { track } from '@/services/tracking';\nimport { customEvents } from '@/config/analytics';\nimport { getMeta } from '@/store/slices/meta';\nimport { Ellipsis } from '@/components/Stream/ellipsis';\nimport { CHAT_SEEN_KEY } from '@/config/env';\n\nexport const LayoutFoot = () => {\n const dispatch = useAppDispatch();\n const { isFormVisible: isResponseFormVisible } = useAppSelector(getResponseIntentions);\n const { cid, systemType, marketing } = useAppSelector(getMeta);\n const { translations } = useAppSelector(getConfig);\n const { isVisible: isCtaVisible, text: ctaText, href: ctaHref } = useAppSelector(getLinkIntentions);\n const { isLoading } = useAppSelector(getStream);\n const { error: streamError } = useAppSelector(store => store.chat);\n const { isFormVisible: isEmailFormVisible, current, error: emailError } = useAppSelector(getEmailIntentions);\n const { isButtonVisible: isPaymentButtonVisible, isFormVisible: isPaymentFormVisible, error: paymentIntentError } = useAppSelector(getPaymentIntentions);\n const error = streamError || emailError || paymentIntentError;\n\n const ctaAfterPayButton = useRef(null);\n const [disabled, setDisabled] = useState(false);\n\n const setIsPaymentContainerVisible = (isVisible) => {\n dispatch(setPaymentFormVisibility(isVisible));\n };\n\n const onClosePaymentForm = (e) => {\n e.currentTarget.disabled = true;\n intent.core.emit(intent.type.destroy);\n setIsPaymentContainerVisible(false);\n setDisabled(false);\n };\n\n const onPaymentSuccess = () => {\n // TODO: set in store to be persisted the GO THROUGH QUIZ button\n dispatch(appendHistory({ role: roles.assistant, content: translations.tm1226 }));\n dispatch(setIsPaymentSuccessful(true));\n dispatch(setIsPaymentButtonVisible(false));\n dispatch(setLink({ href: '/', isVisible: true, text: translations.ctaTextContent }));\n setIsPaymentContainerVisible(false);\n\n setTimeout(() => {\n ctaAfterPayButton.current.click();\n }, 7000);\n };\n\n const onError = (message) => {\n dispatch(setPaymentIntentError(message));\n };\n\n const initializePaymentForm = () => {\n intent.core.emit(intent.type.payment, { setIsPaymentContainerVisible, onPaymentSuccess, onError });\n setDisabled(true);\n };\n\n const onClickCtaPay = () => {\n track({\n eventType: customEvents.linkClicked,\n systemType,\n utmParams: marketing.lastUtmParams,\n customerUuid: cid,\n email: current\n });\n\n dispatch(setClosed());\n localStorage.setItem(CHAT_SEEN_KEY, true);\n };\n\n return (\n
\n { error &&
{ error }
}\n { isPaymentFormVisible && }\n { isLoading && }\n { isCtaVisible\n && (\n \n ) }\n\n { isEmailFormVisible && }\n { isResponseFormVisible && }\n\n { isPaymentButtonVisible && (\n \n ) }\n
\n );\n};\n\nexport default LayoutFoot;\n","import { string } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { isNonEmptyStr } from '@/utils';\n\nimport { Profile } from '@/components/Profile';\nimport { getConfig } from '@/store/slices/config';\nimport { streamHead as variant } from './variants';\n\nexport const StreamHead = ({ titleTxt = '' }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, title } = variant({ theme });\n\n const hasTitle = isNonEmptyStr(titleTxt);\n\n return (\n
\n { hasTitle &&
{ titleTxt }
}\n \n
\n );\n};\n\nStreamHead.propTypes = {\n titleTxt: string,\n};\n\nexport default StreamHead;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-3 tw--rounded-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glaze tw--text-white',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-2',\n },\n});\n","import { string, func } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { basic as variant } from './variants';\n\nexport const Link = ({ text = null, href = null, onClick = null }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n { text }\n \n );\n};\n\nLink.propTypes = {\n href: string.isRequired,\n text: string.isRequired,\n onClick: func,\n};\n\nexport default Link;\n","// This pattern will exclude {https://test.test.test} or any of those symbols {}[]()<> at the end of the link\nexport const link = /((?:https?:\\/\\/|www\\.)[^\\s/$.?#].[^\\s{}[\\]()<>]*)/gi;\n\n// { replaceStringInCurlyBracketsWithStrong('this is a strong {tagged} text {g') } => ...\nexport const curlyBraces = /\\{([^}]+)\\}/g;\n","import { curlyBraces, link } from '@/config/patterns';\nimport { constructLink } from '@/utils/formatting';\n/**\n* Replaces all string links with anchor tags.\n* @example { replaceLinksWithAnchors('hello nice to see you here is a link to diet http://www.yourketo.diet') }\n*/\nexport const replaceLinksWithAnchors = (val) => {\n const parts = val.split(link);\n\n return parts.map((part) => {\n if (link.test(part)) {\n const urlWithParams = constructLink(part);\n return (\n \n { part }\n \n );\n }\n return part;\n });\n};\n\n/**\n * Replaces the string in curly brackets with a string wrapped in tags or anchor if link exists.\n *\n * @param {string} input - The input string to process.\n * @example { replaceStringInCurlyBracketsWithStrong('this is a strong {tagged} text {g') }\n * @returns {React.ReactNode} A React element with replaced content.\n */\nexport const textModifier = (input) => {\n const parts = input.split(curlyBraces);\n return parts.map((part, index) => {\n if (index % 2 === 0) {\n return replaceLinksWithAnchors(part);\n }\n return { replaceLinksWithAnchors(part) };\n });\n};\n","/* eslint-disable react/jsx-props-no-spreading */\nimport { object } from 'prop-types';\nimport { useAppSelector, useAppDispatch } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\nimport { appendHistory, getCurrentPointer, getStream, setOutgoing } from '@/store/slices/chat';\nimport { isNonEmptyArr } from '@/utils';\n\nimport { Btn, IconBtn } from '@/components/Button';\nimport { Link } from '@/components/Link';\nimport { roles } from '@/config';\nimport { flickerEffect, streamBubble as variant } from './variants';\nimport { textModifier } from './modifiers';\n\nexport const StreamBubble = ({ item = {} }) => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const currentPointer = useAppSelector(getCurrentPointer);\n const { incoming } = useAppSelector(getStream);\n const displayOptionList = isNonEmptyArr(item.options) && item.id === currentPointer && !item.isSpecial;\n const { base, action } = variant({ theme, type: item.role });\n const { base: baseFlicker } = flickerEffect({ isTyping: !!incoming && !item.id, theme });\n const displayActionButton = false; // DEV NOTE: get from store state\n\n const setOption = (val) => {\n dispatch(setOutgoing(val));\n };\n\n const setMessage = (val) => {\n dispatch(appendHistory({ role: 'user', content: val }));\n };\n\n const OptionList = ({ items = [] }) => (\n items.map(({ id, label, value, link, noStream }) => (\n \n { link\n ? ()\n : ( setMessage(value) : () => setOption(value) } />) }\n \n ))\n );\n\n return (\n
\n \n { textModifier(item.content) }\n \n { displayOptionList &&
}\n { displayActionButton && (\n
\n \n \n \n \n \n \n
\n ) }\n
\n );\n};\n\nStreamBubble.propTypes = {\n item: object.isRequired,\n};\n\nexport default StreamBubble;\n","import { object } from 'prop-types';\nimport { useAppSelector } from '@/hooks';\n\nimport { getConfig } from '@/store/slices/config';\nimport { StreamBubble } from './bubble';\nimport { streamRow as variant } from './variants';\n\nexport const StreamRow = ({ item = {} }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n
\n \n
\n );\n};\n\nStreamRow.propTypes = {\n item: object.isRequired,\n};\n\nexport default StreamRow;\n","import { useAppSelector } from '@/hooks';\nimport { getConfig } from '@/store/slices/config';\n\nimport { getStream } from '@/store/slices/chat';\nimport { formatDateByLocale } from '@/utils';\nimport { StreamHead } from './head';\nimport { StreamRow } from './row';\nimport { streamBase as variant } from './variants';\n\nexport const StreamBase = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { aiProfile } = useAppSelector(getConfig);\n const { history, incoming } = useAppSelector(getStream);\n const { base, second, date } = variant({ theme });\n const firstMessage = history && history.length > 0 && history[0];\n\n return (\n
\n
\n \n { firstMessage &&
{ formatDateByLocale(firstMessage.time) }
}\n { history.map((message) => (\n )\n ) }\n { incoming && }\n
\n
\n );\n};\n\nexport default StreamBase;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--cursor-pointer tw--h-8 tw--relative tw--w-16 tw--rounded-3xl tw--border-0',\n },\n variants: {\n color: {\n enabled: 'tw--bg-light-seraph',\n disabled: 'tw--bg-light-zephyr-100'\n }\n }\n});\n\nexport const pin = /*tw*/ tv({\n slots: {\n base: 'tw--h-8 tw--w-8 tw--absolute tw---top-1/2 tw--translate-y-1/2 tw--bottom-1 tw--bg-white tw--rounded-full',\n },\n variants: {\n position: {\n enabled: 'tw--left-0',\n disabled: 'tw--right-0'\n }\n }\n});\n\nexport default { wrapper, pin };\n","/* eslint-disable import/prefer-default-export */\nimport { bool, func, string } from 'prop-types';\nimport { wrapper, pin } from './variants';\n\nexport const Toggler = ({ onToggle, on = false, title = '' }) => {\n const { base: outline } = wrapper({ color: on ? 'enabled' : 'disabled' });\n const { base: toggle } = pin({ position: on ? 'enabled' : 'disabled' });\n return (\n
\n { title }\n \n \n \n
\n );\n};\n\nToggler.propTypes = {\n onToggle: func.isRequired,\n title: string.isRequired,\n on: bool,\n};\n","/* eslint-disable import/prefer-default-export */\nimport { tv } from 'tailwind-variants';\n\nexport const wrapper = /* tw */ tv({\n slots: {\n base: 'tw--fixed tw--flex tw--gap-2 tw--flex-col tw--p-3 tw--space-y-4 tw--bg-dark-sigma tw--rounded-lg',\n },\n variants: {\n hidden: {\n true: 'tw--hidden',\n }\n }\n});\n","import { useAppDispatch, useAppSelector } from '@/hooks';\nimport { getConfig, setTheme, togglePluginMode } from '@/store/slices/config';\nimport { Toggler } from '@/components/Toggle';\nimport { wrapper } from './variants';\n\nexport const DevTools = () => {\n const dispatch = useAppDispatch();\n const { enableDevTools, themeId, isPluginMode } = useAppSelector(getConfig);\n // DEV NOTE: when more than 2 themes are available the toggler must be replaced by another component\n const setUiTheme = () => dispatch(setTheme(themeId === 'light' ? 'dark' : 'light'));\n const { base } = wrapper({ hidden: !enableDevTools });\n\n return (\n
\n \n dispatch(togglePluginMode()) }\n />\n
\n );\n};\n\nexport default DevTools;\n","/* eslint-disable no-unused-vars */\nimport { object } from 'prop-types';\nimport { useAppDispatch } from '@/hooks';\n\nimport { setConfig, setDevToolsStatus } from '@/store/slices/config';\nimport { setMeta } from '@/store/slices/meta';\n\nimport { LayoutBase, LayoutHead, LayoutFoot } from '@/components/Layout';\nimport { StreamBase } from '@/components/Stream';\nimport { DevTools } from '@/components/DevTools';\n\nexport const AppBase = ({ config = {} }) => {\n const dispatch = useAppDispatch();\n\n // Set defaults\n dispatch(setMeta(config.meta));\n dispatch(setConfig(config.app));\n dispatch(setDevToolsStatus(false)); // DEV Note: set this in a global plugin process.env.NODE_ENV === 'development'\n\n return (\n <>\n \n\n }\n stream={ }\n foot={ }\n />\n \n );\n};\n\nAppBase.propTypes = {\n config: object.isRequired,\n};\n\nexport default AppBase;\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\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, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { PureComponent } from 'react'; // eslint-disable-line import/no-unresolved\n\nexport var PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(PersistGate, _PureComponent);\n\n function PersistGate() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, PersistGate);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n bootstrapped: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n var persistor = _this.props.persistor;\n\n var _persistor$getState = persistor.getState(),\n bootstrapped = _persistor$getState.bootstrapped;\n\n if (bootstrapped) {\n if (_this.props.onBeforeLift) {\n Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n return _this.setState({\n bootstrapped: true\n });\n });\n } else {\n _this.setState({\n bootstrapped: true\n });\n }\n\n _this._unsubscribe && _this._unsubscribe();\n }\n });\n\n return _this;\n }\n\n _createClass(PersistGate, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n this.handlePersistorState();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._unsubscribe && this._unsubscribe();\n }\n }, {\n key: \"render\",\n value: function render() {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n }\n\n if (typeof this.props.children === 'function') {\n return this.props.children(this.state.bootstrapped);\n }\n\n return this.state.bootstrapped ? this.props.children : this.props.loading;\n }\n }]);\n\n return PersistGate;\n}(PureComponent);\n\n_defineProperty(PersistGate, \"defaultProps\", {\n children: null,\n loading: null\n});","import { io } from 'socket.io-client';\nimport { config as socketConfig, events, roles } from '@/config';\nimport {\n appendHistory, appendUnsent,\n resetIncoming, resetIsLoading,\n resetError, resetTextToParse, resetUnsent,\n resetOutgoing, setIncoming, addIncomingChunk,\n setHistory, setIsLoading,\n setShouldSendUnsent, setError, setTextToParse,\n setOutgoing, setConnected, setClosed\n} from '@/store/slices/chat';\nimport { checkForSpecialPhrases, getQueryParam, isExpired } from '@/utils';\nimport { constructLink, extractOptionSet } from '@/utils/formatting';\nimport intent from '@/services/intentions';\nimport { setIsEmailFormVisible, setIsPaymentButtonVisible, setLink, setResponseFormVisibility } from '@/store/slices/intentions';\nimport { setConfig } from '@/store/slices/config';\nimport { track } from '@/services/tracking';\nimport { baseEvents, customEvents } from '@/config/analytics';\nimport { CHAT_SEEN_KEY } from '@/config/env';\n\nconst specialMessages = [intent.type.email, intent.type.payment];\nlet socket;\n\nconst chatMiddleware = store => next => action => {\n const { meta, chat, intentions } = store.getState();\n if (setOutgoing.match(action)) {\n store.dispatch(appendHistory({\n role: roles.user,\n content: action.payload,\n }));\n\n store.dispatch(setIsLoading());\n\n socket.emit(events.chat, {\n role: roles.user,\n message: action.payload,\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n });\n\n if (isFirstUserMessage(chat.history)) {\n track({\n eventType: customEvents.firstMessage,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid\n });\n }\n }\n\n if (setTextToParse.match(action)) {\n const { textToParse, incoming } = chat;\n const currentText = textToParse + action.payload;\n if (currentText.includes(intent.type.email)) {\n store.dispatch(setIsEmailFormVisible(true));\n }\n\n if (currentText.includes(intent.type.payment)) {\n store.dispatch(setIsPaymentButtonVisible(true));\n store.dispatch(setIncoming(incoming.content + meta.pd.displayPlanPrice + ' ' + meta.pd.billingFrequencyTmsg));\n }\n }\n\n if (setClosed.match(action)) {\n document.querySelector('#chatbot-container').remove();\n document.body.classList.remove('scroll-stop');\n socket.close();\n }\n\n if (appendUnsent.match(action) && action.payload) {\n store.dispatch(appendHistory({ role: roles.user, content: action.payload }));\n }\n\n if (setShouldSendUnsent.match(action) && action.payload && chat.unsent.length) {\n socket.emit(events.chat, {\n role: roles.user,\n message: chat.unsent.join('\\n'),\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n });\n store.dispatch(resetUnsent());\n store.dispatch(setIsLoading());\n }\n\n const hasNoUserMessages = !chat.history.some(item => item.role === roles.user);\n const lastMessage = chat.history[chat.history.length - 1];\n if (hasNoUserMessages && appendHistory.match(action) && action.payload.role === roles.user && lastMessage.options.length) {\n const buttonSequence = lastMessage.options.findIndex((item) => item.value === action.payload.content) + 1;\n track({\n eventType: customEvents.buttonClick + buttonSequence,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n }\n\n if (setIsPaymentButtonVisible.match(action)) {\n if (action.payload === true) {\n const data = {\n eventType: null,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n };\n\n data.eventType = baseEvents.addToCart;\n track(data);\n\n data.eventType = customEvents.priceSeen;\n track(data);\n }\n }\n\n if (setIsEmailFormVisible.match(action) && action.payload) {\n track({\n eventType: customEvents.emailField,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n\n if (setHistory.match(action)) {\n const { intentions } = store.getState();\n store.dispatch(setResponseFormVisibility({ intentions, options: extractOptionSet(action.payload[action.payload.length - 1].content).options }));\n }\n\n if (!setConfig.match(action)) {\n return next(action);\n }\n\n store.dispatch(setIsLoading());\n socket = io.connect(action.payload.chatUrl, socketConfig);\n\n socket.on('connect', () => {\n const { meta } = store.getState();\n socket.emit(events.chatHistory, { user_id: meta.cid });\n store.dispatch(setConnected(true));\n });\n\n socket.on(events.chatHistory, ({ history, errors }) => {\n store.dispatch(resetIsLoading());\n const { config, meta, chat } = store.getState();\n\n if (errors.length && !chat.error) {\n store.dispatch(setError(errors[0]));\n }\n\n if (history.length) {\n const lastMessage = history[history.length - 1];\n updateContent({ lastMessage, store });\n store.dispatch(setHistory(history));\n } else {\n socket.emit(events.chat, {\n role: roles.assistant,\n term: getQueryParam(window.location.search, 'utm_chat'),\n user_id: meta.cid,\n message: config.aiProfile.initialMessage\n });\n }\n });\n\n socket.on(events.streamStart, () => {\n store.dispatch(resetIsLoading());\n store.dispatch(resetOutgoing());\n store.dispatch(setIncoming(''));\n store.dispatch(resetError());\n });\n\n socket.on(`${events.chat}-${meta.cid}`, (data) => {\n const { options, content } = extractOptionSet(data.message);\n const isSpecial = checkForSpecialPhrases(data.message, specialMessages);\n updateContent({ lastMessage: { content: data.message }, store });\n const { intentions } = store.getState();\n\n store.dispatch(resetIsLoading());\n store.dispatch(resetError());\n store.dispatch(appendHistory({ content, options, role: roles.assistant, isSpecial }));\n store.dispatch(setResponseFormVisibility({ intentions, options }));\n });\n\n socket.on(events.streamData, ({ chunk, messages, errors }) => {\n const { chat, config } = store.getState();\n const { textToParse, incoming } = chat;\n const link = constructLink(textToParse) || constructLink(incoming.content) || constructLink(chunk);\n\n if (messages.length > chat.history.length) {\n store.dispatch(setHistory(messages));\n }\n\n if (errors.length && !chat.error) {\n store.dispatch(setError(errors[0]));\n }\n\n if (link) {\n store.dispatch(setLink({\n isVisible: true,\n href: link,\n text: config.translations.mealButton\n }));\n store.dispatch(setResponseFormVisibility({ isFormVisible: false }));\n }\n\n if (chunk.includes('[')) {\n store.dispatch(setTextToParse(chunk));\n return;\n }\n\n if (chunk.includes(']') || textToParse) {\n store.dispatch(setTextToParse(chunk));\n return;\n }\n\n store.dispatch(addIncomingChunk({ chunk }));\n });\n\n socket.on(events.streamEnd, () => {\n const { chat, intentions } = store.getState();\n const { options } = extractOptionSet(chat.textToParse);\n const isSpecial = options.some(item => checkForSpecialPhrases(item.value, specialMessages));\n store.dispatch(appendHistory({\n ...chat.incoming,\n options,\n isSpecial\n }));\n store.dispatch(resetIncoming());\n store.dispatch(resetTextToParse());\n store.dispatch(setResponseFormVisibility({ intentions, options }));\n });\n\n const onError = () => {\n const { config } = store.getState();\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n socket.on(events.streamError, onError);\n socket.on(events.error, onError);\n\n socket.on(events.disconnect, () => {\n store.dispatch(setConnected(false));\n });\n\n next(action);\n};\n\nconst mustHideChat = ({ time, role }) => {\n let hasExpired;\n\n if (role === roles.user && time) {\n hasExpired = isExpired(time);\n }\n\n if (hasExpired) {\n localStorage.removeItem(CHAT_SEEN_KEY);\n }\n\n const chatSeen = localStorage.getItem(CHAT_SEEN_KEY);\n\n return chatSeen === 'true';\n};\n\nconst isFirstUserMessage = (messages) => messages.filter(obj => obj.role === roles.user).length === 1;\n\nconst updateContent = ({ lastMessage, store }) => {\n const { meta, config } = store.getState();\n const link = constructLink(lastMessage.content);\n\n if (mustHideChat(lastMessage)) {\n store.dispatch(setClosed(true));\n }\n\n if (link) {\n store.dispatch(setLink({\n isVisible: true,\n href: link,\n text: config.translations.mealButton\n }));\n }\n\n lastMessage.isSpecial = checkForSpecialPhrases(lastMessage.content, specialMessages);\n\n if (lastMessage.content.includes(intent.type.email)) store.dispatch(setIsEmailFormVisible(true));\n\n if (lastMessage.content.includes(intent.type.payment)) {\n store.dispatch(setIsPaymentButtonVisible(true));\n lastMessage.content += meta.pd.displayPlanPrice + ' ' + meta.pd.billingFrequencyTmsg;\n }\n};\n\nexport default chatMiddleware;\n","import { customEvents } from '@/config/analytics';\nimport { track } from '@/services/tracking';\nimport intent from '@/services/intentions';\nimport { setIsEmailLoading, setEmailSuccess, setIsEmailFormVisible, setEmailError, setLink } from '@/store/slices/intentions';\nimport { setPd, setMarketing } from '@/store/slices/meta';\nimport { appendHistory, setOutgoing } from '@/store/slices/chat';\n\nexport const intentionsMiddleware = store => next => {\n const setPaymentDataTranslationAccordingly = (data) => {\n const { meta } = store.getState();\n if (!meta.pd) return;\n data.billingFrequencyTmsg = data.billingOptionType === 'one-time'\n ? meta.pd.oneTimer\n : meta.pd.subscriberBillingFrequency.replace('{1}', data.frequencyInMonths);\n\n return data;\n };\n\n intent.core.on(intent.type.emailSuccess, () => {\n const { meta, intentions } = store.getState();\n\n store.dispatch(setIsEmailLoading(false));\n store.dispatch(setEmailError(''));\n store.dispatch(setOutgoing(intentions.email.current));\n\n // DEV: setEmailSuccess this status is for us to know if mail is validated in the endpoint\n store.dispatch(setEmailSuccess(true));\n store.dispatch(setIsEmailFormVisible(false));\n track({\n eventType: customEvents.emailEntered,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n });\n\n intent.core.on(intent.type.emailError, (response) => {\n const { meta, intentions, config } = store.getState();\n const { tm716, tm526, tm715, tm505 } = config.translations;\n\n store.dispatch(setIsEmailLoading(false));\n\n if (response.status === 409) {\n store.dispatch(appendHistory({\n role: 'assistant',\n content: tm716,\n options: [\n { id: 'opt-1', label: tm526, value: 'link', link: response.data.buttonLink },\n { id: 'opt-2', label: tm715, value: 'button', noStream: true }\n ]\n }));\n\n track({\n eventType: customEvents.emailExist,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n\n // DEV NOTE: this must be persisted so on refresh the message with options is still part of the history;\n // localStorage.setItem(ALREADY_REGISTERED_KEY, 'true');\n return;\n }\n\n if (response.status === 422) {\n store.dispatch(setEmailError(response.errors.email[0] || tm505));\n\n track({\n eventType: customEvents.emailWrong,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n });\n\n dataIntervalChecker('marketing', store, setMarketing);\n dataIntervalChecker('__pd', store, setPd, setPaymentDataTranslationAccordingly);\n\n return action => {\n if (setLink.match(action) && action.payload.isVisible) {\n const { meta, intentions } = store.getState();\n\n track({\n eventType: customEvents.linkProvided,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n next(action);\n };\n};\n\nconst dataIntervalChecker = (key, store, setValue, transformData = null) => {\n const intervalId = setInterval(() => {\n let storedItem = localStorage.getItem(key);\n\n try {\n storedItem = JSON.parse(storedItem);\n } catch (e) {\n storedItem = localStorage.getItem(key);\n }\n\n if (transformData && storedItem) {\n storedItem = transformData(storedItem);\n }\n\n if (storedItem) {\n store.dispatch(setValue(storedItem));\n clearInterval(intervalId);\n }\n }, 1000);\n};\n\nexport default intentionsMiddleware;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","/* eslint-disable no-unused-expressions */\n/* eslint-disable no-restricted-syntax */\n/* eslint-disable no-underscore-dangle */\n\nexport default function disableReactDevTools() {\n if (typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__ === 'object') {\n for (const prop in window.__REACT_DEVTOOLS_GLOBAL_HOOK__) {\n if (prop === 'renderers') {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] = new Map();\n } else {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] = typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] === 'function'\n ? () => {}\n : null;\n }\n }\n }\n}\n","import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport metaReducer from '@/store/slices/meta';\nimport configReducer from '@/store/slices/config';\nimport chatReducer from '@/store/slices/chat';\nimport intentionsReducer from '@/store/slices/intentions';\nimport chatMiddleware from '@/middleware/socket';\nimport intentionsMiddleware from '@/middleware/intentions';\nimport { persistStore, persistReducer } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage';\nimport disableReactDevTools from '@/utils/reactDevTools';\n\ndisableReactDevTools();\n\nconst persistConfig = {\n key: 'root',\n storage,\n blacklist: ['chat', 'intentions'],\n};\n\nexport const store = configureStore({\n reducer: persistReducer(persistConfig, combineReducers({\n meta: metaReducer,\n config: configReducer,\n chat: chatReducer,\n intentions: intentionsReducer,\n })),\n middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false }).concat(chatMiddleware, intentionsMiddleware),\n});\n\nexport const persistor = persistStore(store);\n","import ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\n\nimport '@/assets/css/index.css';\nimport { AppBase } from '@/components/AppBase';\nimport { PersistGate } from 'redux-persist/integration/react';\nimport { persistor, store } from './store';\n\nexport { intent } from '@/services/intentions';\n\n// DEV Note: will be received by Razvigor\nconst initialConfig = {\n meta: {\n pd: {\n subscriberBillingFrequency: 'Billed every {1} month(s)',\n oneTimer: 'Total price to be charged',\n billingFrequencyTmsg: '',\n },\n cid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d',\n systemType: 'test',\n marketing: {\n utmParams: { utm_chat: 'db-sales-nopresetquestions' },\n lastUtmParams: { utm_chat: 'db-sales-nopresetquestions' },\n screen: {\n width: 2084,\n height: 1608,\n }\n },\n eid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d_PageView_1694521420366',\n },\n app: {\n aiProfile: {\n name: 'Meal Mentor',\n role: 'AI-powered nutritionist',\n imgSrc: 'https://storage.1forfit.com/4oZrkOwbOQcSIGJopBG5qsf0CmBbVDKDqflzEkXq.jpg',\n displayInStream: true,\n welcome: 'Welcome to our live support. We\\'re here to understand your requirements and suggest the best Keto diet suited for you.',\n // initialMessage: 'Hi, {I am Meal Mentor}. I will help you to find the right meal plan for you. [yes|no|continue]',\n initialMessage: 'Do you want to lose weight? [Yes|No]',\n },\n chatUrl: 'https://yourketo.ngrok.io',\n themeId: 'dark',\n translations: {\n emailPlaceholder: 'Please enter your email',\n tm526: 'Continue to my plan',\n tm715: 'Enter new email',\n tm716: 'Entered email already exists, choose below to proceed',\n tm530: 'Take the quiz',\n tm1224: 'Payment in progress...',\n paymentHeaderTxt1: 'SECURITY verified',\n paymentHeaderTxt2: 'secured payments',\n loaderTexts: [\n 'We securely lock up your payment details.',\n 'Details zoom to the payment center.',\n 'Payment center requests our bank to process.',\n 'Our bank contacts your card network.',\n 'Card network asks your bank for approval.',\n 'Your bank reviews funds or credit.',\n 'Decision travels back to us.',\n 'Waiting your payment to be verified and complete.'\n ],\n payButton: 'Secure payment',\n ctaTextContent: 'Create Your Menu!',\n mealButton: 'Create your meal plan',\n error: 'Oops something went wrong.',\n tm505: 'Please enter valid email address',\n }\n },\n};\n\nexport const ReactBotClient = (config) => {\n ReactDOM\n .createRoot(config.root)\n .render(\n \n \n \n \n \n );\n};\n\nexport default ReactBotClient;\n"],"names":["base64Js","byteLength","toByteArray","fromByteArray","lookup","revLookup","Arr","code","i","len","getLens","b64","validLen","placeHoldersLen","lens","_byteLength","tmp","arr","curByte","tripletToBase64","num","encodeChunk","uint8","start","end","output","extraBytes","parts","maxChunkLength","len2","ieee754","buffer","offset","isLE","mLen","nBytes","e","m","eLen","eMax","eBias","nBits","d","s","value","c","rt","base64","require$$0","require$$1","customInspectSymbol","exports","Buffer","SlowBuffer","K_MAX_LENGTH","typedArraySupport","proto","createBuffer","length","buf","arg","encodingOrOffset","allocUnsafe","from","fromString","fromArrayView","isInstance","fromArrayBuffer","valueOf","b","fromObject","assertSize","size","alloc","fill","encoding","checked","string","actual","fromArrayLike","array","arrayView","copy","byteOffset","obj","numberIsNaN","a","x","y","list","pos","mustMatch","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","str","max","target","thisStart","thisEnd","thisCopy","targetCopy","bidirectionalIndexOf","val","dir","arrayIndexOf","indexSize","arrLength","valLength","read","foundIndex","found","j","hexWrite","remaining","strLen","parsed","utf8Write","blitBuffer","asciiWrite","asciiToBytes","base64Write","ucs2Write","utf16leToBytes","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","MAX_ARGUMENTS_LENGTH","codePoints","ret","out","hexSliceLookupTable","bytes","newBuf","checkOffset","ext","noAssert","mul","defineBigIntMethod","validateNumber","first","last","boundsError","lo","hi","checkInt","min","maxBytes","wrtBigUInt64LE","checkIntBI","wrtBigUInt64BE","limit","sub","checkIEEE754","writeFloat","littleEndian","writeDouble","targetStart","errors","E","sym","getMessage","Base","name","range","input","msg","received","addNumericalSeparator","checkBounds","type","INVALID_BASE64_RE","base64clean","units","leadSurrogate","byteArray","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","process","browserModule","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","timeout","args","Item","noop","t","r","o","l","u","f","k","p","q","g","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","source","ownerFn","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","client","useAppDispatch","useDispatch","useAppSelector","useSelector","useWindowSize","setSize","useState","useLayoutEffect","updateSize","meta","chat","intentions","configSlice","createSlice","initialState","state","getConfig","setConfig","resetConfig","setTheme","resetTheme","setDevToolsStatus","resetDevToolsStatus","togglePluginMode","setTranslations","getMeta","setMeta","resetMeta","setMarketing","setPd","twJoin","index","argument","resolvedValue","toValue","mix","CLASS_PART_SEPARATOR","createClassUtils","classMap","createClassMap","conflictingClassGroups","_config$conflictingCl","conflictingClassGroupModifiers","getClassGroupId","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","_a","_ref","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","theme","prefixedClassGroupEntries","getPrefixedClassGroupEntries","_ref2","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","_ref3","path","currentClassPartObject","pathPart","func","classGroupEntries","_ref4","prefixedClassGroup","_ref5","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createSplitModifiers","separator","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","modifiers","bracketDepth","modifierStart","postfixModifierPosition","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","isArbitraryVariant","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","splitModifiers","classGroupsInConflict","originalClassName","_splitModifiers","variantModifier","modifierId","classId","group","createTailwindMerge","_len","createConfig","_key","cacheGet","cacheSet","functionToCall","initTailwindMerge","firstCreateConfig","restCreateConfig","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","result","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","shadowRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitrarySize","isNever","isArbitraryPosition","isArbitraryUrl","isUrl","isArbitraryNumber","isPercent","isInteger","isIntegerOnly","isArbitraryValue","isAny","isTshirtSize","isArbitraryShadow","isShadow","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmpty","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumber","getNumberAndArbitrary","mergeConfigs","baseConfig","configExtension","mergePropertyRecursively","overrideTypes","baseObject","mergeKey","mergeValue","nextKey","extendTailwindMerge","twMerge","re","Z","R","O","w","Y","se","N","F","C","V","U","M","g$1","A","$","h$1","v","K","W","a$1","I","b$1","T","J","te","S","P","z","D","G","H","ee","_","layoutBase","tv","layoutHead","layoutFoot","LayoutBase","head","stream","foot","isPluginMode","base","wrapper","variant","height","profile","Profile","orientation","minimized","aiProfile","avatar","role","imgWrapper","bool","LayoutHead","ReflectApply","receiver","ReflectOwnKeys","ProcessEmitWarning","warning","NumberIsNaN","EventEmitter","eventsModule","once","defaultMaxListeners","checkListener","listener","_getMaxListeners","that","doError","events","er","handler","listeners","arrayClone","_addListener","prepend","existing","onceWrapper","_onceWrap","wrapped","position","originalListener","spliceOne","_listeners","unwrap","evlistener","unwrapListeners","emitter","listenerCount","resolve","reject","errorListener","resolver","eventTargetAgnosticAddListener","addErrorHandlerIfEventEmitter","flags","wrapListener","roles","intent","intentionsSlice","getEmailIntentions","getPaymentIntentions","getLinkIntentions","getResponseIntentions","setEmail","setEmailSuccess","setIsPaymentSuccessful","setPaymentFormVisibility","setEmailError","setIsEmailLoading","setIsEmailFormVisible","setIsPaymentButtonVisible","setLink","setResponse","setResponseFormVisibility","setResponseLoadingStatus","setPaymentIntentError","intentionsReducer","basic","Input","placeholder","onChange","onKeyUp","isLoading","e2e","loader","spin","icon","Btn","text","onClick","IconBtn","outlined","IDX","HEX","SIZE","BUFFER","uid","CHAT_SEEN_KEY","CID","extractOptionSet","constructLink","hasQueryParams","url","REGEX_URL","search","matches","link","isArr","isStr","isNonEmptyStr","isNonEmptyArr","getQueryParam","param","isExpired","date","maxHours","currentDate","givenDate","formatDateByLocale","dateString","options","checkForSpecialPhrases","specialMessages","keyword","regex","bubbleContent","getCurrentPointer","getStream","setOutgoing","setIncoming","resetIncoming","addIncomingChunk","resetOutgoing","setHistory","resetHistory","appendHistory","setTextToParse","resetTextToParse","setIsLoading","resetIsLoading","appendUnsent","resetUnsent","setShouldSendUnsent","setError","resetError","setConnected","setClosed","chatReducer","ResponseForm","dispatch","button","response","setCurrentResponse","timerId","setTimerId","handleInputChange","setTimerToSendMessage","handleFormSubmit","currentId","EmailForm","translations","email","setCurrentEmail","currentValue","payment","close","PaymentHead","left","leftTop","bottom","right","price","variants","PaymentButton","disabled","btn","CloseButton","PaymentFooter","PaymentLoader","texts","title","inner","dots","dotsIn","progressCheckmark","panelTitle","spinningTexts","filmContainer","film","txt","Link","href","forwardedRef","Link$1","overlay","Overlay","PaymentScene","onClose","displayPlanPrice","billingFrequencyTmsg","track","eventType","systemType","utmParams","customerUuid","phone","event","baseEvents","customEvents","streamBase","streamHead","streamRow","flickerEffect","streamBubble","ellipsis","Ellipsis","dotFirst","dotSecond","dotThird","LayoutFoot","isResponseFormVisible","cid","marketing","isCtaVisible","ctaText","ctaHref","streamError","store","isEmailFormVisible","current","emailError","isPaymentButtonVisible","isPaymentFormVisible","paymentIntentError","ctaAfterPayButton","useRef","setDisabled","setIsPaymentContainerVisible","isVisible","onClosePaymentForm","onPaymentSuccess","onError","message","initializePaymentForm","onClickCtaPay","StreamHead","titleTxt","hasTitle","curlyBraces","replaceLinksWithAnchors","part","urlWithParams","textModifier","StreamBubble","currentPointer","incoming","displayOptionList","action","baseFlicker","displayActionButton","setOption","setMessage","OptionList","items","id","noStream","StreamRow","StreamBase","history","second","firstMessage","pin","Toggler","onToggle","on","outline","toggle","DevTools","enableDevTools","themeId","setUiTheme","AppBase","Fragment","_typeof","_classCallCheck","instance","Constructor","_defineProperties","descriptor","_createClass","protoProps","staticProps","_possibleConstructorReturn","call","_assertThisInitialized","_getPrototypeOf","_inherits","subClass","superClass","_setPrototypeOf","_defineProperty","PersistGate","_PureComponent","_getPrototypeOf2","_this","persistor","_persistor$getState","bootstrapped","PureComponent","socket","chatMiddleware","next","isFirstUserMessage","textToParse","currentText","hasNoUserMessages","lastMessage","buttonSequence","data","io","socketConfig","updateContent","content","isSpecial","chunk","messages","mustHideChat","time","hasExpired","intentionsMiddleware","setPaymentDataTranslationAccordingly","tm716","tm526","tm715","tm505","dataIntervalChecker","setValue","transformData","intervalId","storedItem","getStorage_1","getStorage$1","getStorage","noopStorage","hasStorage","storageType","storage","testKey","createWebStorage_1","createWebStorage$1","createWebStorage","_getStorage","_interopRequireDefault","default_1","_createWebStorage","_default","disableReactDevTools","prop","persistConfig","configureStore","persistReducer","combineReducers","metaReducer","configReducer","getDefaultMiddleware","persistStore","initialConfig","ReactBotClient","ReactDOM","Provider"],"mappings":"yoBAEAA,GAAA,WAAqBC,GACrBD,GAAA,YAAsBE,GACtBF,GAAA,cAAwBG,GAOxB,QALIC,GAAS,CAAE,EACXC,GAAY,CAAE,EACdC,GAAM,OAAO,WAAe,IAAc,WAAa,MAEvDC,GAAO,mEACFC,GAAI,EAAGC,GAAMF,GAAK,OAAQC,GAAIC,GAAK,EAAED,GAC5CJ,GAAOI,EAAC,EAAID,GAAKC,EAAC,EAClBH,GAAUE,GAAK,WAAWC,EAAC,CAAC,EAAIA,GAKlCH,GAAU,IAAI,WAAW,CAAC,CAAC,EAAI,GAC/BA,GAAU,IAAI,WAAW,CAAC,CAAC,EAAI,GAE/B,SAASK,GAASC,EAAK,CACrB,IAAIF,EAAME,EAAI,OAEd,GAAIF,EAAM,EAAI,EACZ,MAAM,IAAI,MAAM,gDAAgD,EAKlE,IAAIG,EAAWD,EAAI,QAAQ,GAAG,EAC1BC,IAAa,KAAIA,EAAWH,GAEhC,IAAII,EAAkBD,IAAaH,EAC/B,EACA,EAAKG,EAAW,EAEpB,MAAO,CAACA,EAAUC,CAAe,CACnC,CAGA,SAASZ,GAAYU,EAAK,CACxB,IAAIG,EAAOJ,GAAQC,CAAG,EAClBC,EAAWE,EAAK,CAAC,E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,mBACnB,YAAa,CACX,4CACA,sCACA,+CACA,uCACA,4CACA,qCACA,+BACA,mDACF,EACA,UAAW,iBACX,eAAgB,oBAChB,WAAY,wBACZ,MAAO,6BACP,MAAO,kCACT,CACF,CACF,EAEaC,GAAkB9qB,GAAW,CAErC+qB,GAAA,WAAW/qB,EAAO,IAAI,EACtB,OACEsD,EAAA,IAAA0nB,GAAA,SAAA,CAAS,MAAA9I,GACR,SAAA5e,MAACsjB,GAAY,CAAA,UAAAI,GACX,SAAC1jB,EAAAA,IAAAkiB,GAAA,CAAQ,OAASxlB,EAAO,eAAiB6qB,EAAgB,CAAA,CAC5D,CAAA,EACF,CAAA,CAEN","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,33,44,79,82,83,84]} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 2e779b3..b30ecb2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "1ff-react-chat-ui", - "version": "0.0.5", + "version": "0.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "1ff-react-chat-ui", - "version": "0.0.5", + "version": "0.0.6", "dependencies": { "uid": "^2.0.2" }, diff --git a/package.json b/package.json index 9e1214e..a65c7e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "1ff-react-chat-ui", - "version": "0.0.5", + "version": "0.0.6", "type": "module", "description": "UI to chat", "module": "dist/index.es.js",