mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
3dc4f56fb4
Signed-off-by: snipe <[email protected]>
1 line
409 KiB
Plaintext
1 line
409 KiB
Plaintext
{"version":3,"file":"livewire.js","sources":["../js/util/debounce.js","../js/util/wire-directives.js","../js/util/walk.js","../js/util/dispatch.js","../js/util/getCsrfToken.js","../js/util/index.js","../node_modules/isobject/index.js","../node_modules/get-value/index.js","../js/action/index.js","../js/action/event.js","../js/MessageBus.js","../js/HookManager.js","../js/DirectiveManager.js","../js/Store.js","../js/dom/dom.js","../node_modules/core-js/internals/to-integer.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/to-primitive.js","../node_modules/core-js/internals/object-define-property.js","../node_modules/core-js/internals/create-property-descriptor.js","../node_modules/core-js/internals/create-non-enumerable-property.js","../node_modules/core-js/internals/set-global.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/native-weak-map.js","../node_modules/core-js/internals/to-object.js","../node_modules/core-js/internals/has.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/uid.js","../node_modules/core-js/internals/shared-key.js","../node_modules/core-js/internals/hidden-keys.js","../node_modules/core-js/internals/internal-state.js","../node_modules/core-js/internals/object-property-is-enumerable.js","../node_modules/core-js/internals/classof-raw.js","../node_modules/core-js/internals/indexed-object.js","../node_modules/core-js/internals/to-indexed-object.js","../node_modules/core-js/internals/object-get-own-property-descriptor.js","../node_modules/core-js/internals/redefine.js","../node_modules/core-js/internals/path.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/to-absolute-index.js","../node_modules/core-js/internals/array-includes.js","../node_modules/core-js/internals/object-keys-internal.js","../node_modules/core-js/internals/enum-bug-keys.js","../node_modules/core-js/internals/object-get-own-property-names.js","../node_modules/core-js/internals/object-get-own-property-symbols.js","../node_modules/core-js/internals/own-keys.js","../node_modules/core-js/internals/copy-constructor-properties.js","../node_modules/core-js/internals/is-forced.js","../node_modules/core-js/internals/export.js","../node_modules/core-js/internals/correct-prototype-getter.js","../node_modules/core-js/internals/object-get-prototype-of.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/internals/native-symbol.js","../node_modules/core-js/internals/use-symbol-as-uid.js","../node_modules/core-js/internals/well-known-symbol.js","../node_modules/core-js/internals/iterators-core.js","../node_modules/core-js/internals/object-keys.js","../node_modules/core-js/internals/object-define-properties.js","../node_modules/core-js/internals/html.js","../node_modules/core-js/internals/object-create.js","../node_modules/core-js/internals/set-to-string-tag.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/create-iterator-constructor.js","../node_modules/core-js/internals/a-possible-prototype.js","../node_modules/core-js/internals/object-set-prototype-of.js","../node_modules/core-js/internals/define-iterator.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/internals/a-function.js","../node_modules/core-js/internals/function-bind-context.js","../node_modules/core-js/internals/iterator-close.js","../node_modules/core-js/internals/call-with-safe-iteration-closing.js","../node_modules/core-js/internals/is-array-iterator-method.js","../node_modules/core-js/internals/create-property.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/get-iterator-method.js","../node_modules/core-js/internals/array-from.js","../node_modules/core-js/internals/check-correctness-of-iteration.js","../node_modules/core-js/modules/es.array.from.js","../node_modules/core-js/es/array/from.js","../node_modules/core-js/internals/add-to-unscopables.js","../node_modules/core-js/modules/es.array.includes.js","../node_modules/core-js/internals/entry-unbind.js","../node_modules/core-js/es/array/includes.js","../node_modules/core-js/internals/is-array.js","../node_modules/core-js/internals/flatten-into-array.js","../node_modules/core-js/internals/array-species-create.js","../node_modules/core-js/modules/es.array.flat.js","../node_modules/core-js/modules/es.array.unscopables.flat.js","../node_modules/core-js/es/array/flat.js","../node_modules/core-js/internals/array-iteration.js","../node_modules/core-js/modules/es.array.find.js","../node_modules/core-js/es/array/find.js","../node_modules/core-js/internals/object-assign.js","../node_modules/core-js/modules/es.object.assign.js","../node_modules/core-js/es/object/assign.js","../node_modules/core-js/internals/object-to-array.js","../node_modules/core-js/modules/es.object.entries.js","../node_modules/core-js/es/object/entries.js","../node_modules/core-js/modules/es.object.values.js","../node_modules/core-js/es/object/values.js","../node_modules/core-js/internals/iterate.js","../node_modules/core-js/modules/es.aggregate-error.js","../node_modules/core-js/internals/object-to-string.js","../node_modules/core-js/modules/es.object.to-string.js","../node_modules/core-js/internals/native-promise-constructor.js","../node_modules/core-js/internals/redefine-all.js","../node_modules/core-js/internals/set-species.js","../node_modules/core-js/internals/an-instance.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/engine-is-ios.js","../node_modules/core-js/internals/engine-is-node.js","../node_modules/core-js/internals/task.js","../node_modules/core-js/internals/engine-is-webos-webkit.js","../node_modules/core-js/internals/microtask.js","../node_modules/core-js/internals/new-promise-capability.js","../node_modules/core-js/internals/promise-resolve.js","../node_modules/core-js/internals/host-report-errors.js","../node_modules/core-js/internals/perform.js","../node_modules/core-js/internals/engine-is-browser.js","../node_modules/core-js/modules/es.promise.js","../node_modules/core-js/modules/es.promise.all-settled.js","../node_modules/core-js/modules/es.promise.any.js","../node_modules/core-js/modules/es.promise.finally.js","../node_modules/core-js/internals/dom-iterables.js","../node_modules/core-js/modules/es.array.iterator.js","../node_modules/core-js/modules/web.dom-collections.iterator.js","../node_modules/core-js/es/promise/index.js","../node_modules/core-js/modules/esnext.promise.try.js","../node_modules/core-js/internals/is-regexp.js","../node_modules/core-js/internals/not-a-regexp.js","../node_modules/core-js/internals/correct-is-regexp-logic.js","../node_modules/core-js/modules/es.string.starts-with.js","../node_modules/core-js/es/string/starts-with.js","../node_modules/whatwg-fetch/fetch.js","../js/dom/polyfills/modules/es.element.get-attribute-names.js","../js/dom/polyfills/modules/es.element.matches.js","../js/dom/polyfills/modules/es.element.closest.js","../js/connection/index.js","../js/action/method.js","../js/component/Polling.js","../js/Message.js","../js/PrefetchMessage.js","../js/dom/morphdom/morphAttrs.js","../js/dom/morphdom/specialElHandlers.js","../js/dom/morphdom/util.js","../js/dom/morphdom/morphdom.js","../js/dom/morphdom/index.js","../js/action/model.js","../js/action/deferred-model.js","../js/node_initializer.js","../js/component/PrefetchManager.js","../js/component/LoadingStates.js","../js/MessageBag.js","../js/component/UploadManager.js","../js/component/SupportAlpine.js","../js/component/index.js","../js/component/FileUploads.js","../js/component/LaravelEcho.js","../js/component/DirtyStates.js","../js/component/DisableForms.js","../js/component/FileDownloads.js","../js/component/OfflineStates.js","../js/component/SyncBrowserHistory.js","../js/component/SupportStacks.js","../js/index.js"],"sourcesContent":["export function debounce(func, wait, immediate) {\n var timeout\n return function () {\n var context = this,\n args = arguments\n var later = function () {\n timeout = null\n if (!immediate) func.apply(context, args)\n }\n var callNow = immediate && !timeout\n clearTimeout(timeout)\n timeout = setTimeout(later, wait)\n if (callNow) func.apply(context, args)\n }\n}\n","export function wireDirectives(el) {\n return new DirectiveManager(el)\n}\n\nclass DirectiveManager {\n constructor(el) {\n this.el = el\n this.directives = this.extractTypeModifiersAndValue()\n }\n\n all() {\n return this.directives\n }\n\n has(type) {\n return this.directives.map(directive => directive.type).includes(type)\n }\n\n missing(type) {\n return !this.has(type)\n }\n\n get(type) {\n return this.directives.find(directive => directive.type === type)\n }\n\n extractTypeModifiersAndValue() {\n return Array.from(this.el.getAttributeNames()\n // Filter only the livewire directives.\n .filter(name => name.match(new RegExp('wire:')))\n // Parse out the type, modifiers, and value from it.\n .map(name => {\n const [type, ...modifiers] = name.replace(new RegExp('wire:'), '').split('.')\n\n return new Directive(type, modifiers, name, this.el)\n }))\n }\n}\n\nclass Directive {\n constructor(type, modifiers, rawName, el) {\n this.type = type\n this.modifiers = modifiers\n this.rawName = rawName\n this.el = el\n this.eventContext\n }\n\n setEventContext(context) {\n this.eventContext = context\n }\n\n get value() {\n return this.el.getAttribute(this.rawName)\n }\n\n get method() {\n const { method } = this.parseOutMethodAndParams(this.value)\n\n return method\n }\n\n get params() {\n const { params } = this.parseOutMethodAndParams(this.value)\n\n return params\n }\n\n durationOr(defaultDuration) {\n let durationInMilliSeconds\n const durationInMilliSecondsString = this.modifiers.find(mod => mod.match(/([0-9]+)ms/))\n const durationInSecondsString = this.modifiers.find(mod => mod.match(/([0-9]+)s/))\n\n if (durationInMilliSecondsString) {\n durationInMilliSeconds = Number(durationInMilliSecondsString.replace('ms', ''))\n } else if (durationInSecondsString) {\n durationInMilliSeconds = Number(durationInSecondsString.replace('s', '')) * 1000\n }\n\n return durationInMilliSeconds || defaultDuration\n }\n\n parseOutMethodAndParams(rawMethod) {\n let method = rawMethod\n let params = []\n const methodAndParamString = method.match(/(.*?)\\((.*)\\)/s)\n\n if (methodAndParamString) {\n method = methodAndParamString[1]\n\n // Use a function that returns it's arguments to parse and eval all params\n // This \"$event\" is for use inside the livewire event handler.\n let func = new Function('$event', `return (function () {\n for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {\n p[k] = arguments[k];\n }\n return [].concat(p);\n })(${methodAndParamString[2]})`)\n\n params = func(this.eventContext)\n }\n\n return { method, params }\n }\n\n cardinalDirectionOr(fallback = 'right') {\n if (this.modifiers.includes('up')) return 'up'\n if (this.modifiers.includes('down')) return 'down'\n if (this.modifiers.includes('left')) return 'left'\n if (this.modifiers.includes('right')) return 'right'\n return fallback\n }\n}\n","\n// A little DOM-tree walker.\n// (TreeWalker won't do because I need to conditionaly ignore sub-trees using the callback)\nexport function walk(root, callback) {\n if (callback(root) === false) return\n\n let node = root.firstElementChild\n\n while (node) {\n walk(node, callback)\n node = node.nextElementSibling\n }\n}\n","export function dispatch(eventName) {\n const event = document.createEvent('Events')\n\n event.initEvent(eventName, true, true)\n\n document.dispatchEvent(event)\n\n return event\n}\n","export function getCsrfToken() {\n const tokenTag = document.head.querySelector('meta[name=\"csrf-token\"]')\n\n if (tokenTag) {\n return tokenTag.content\n }\n\n return window.livewire_token ?? undefined\n}\n","\nexport * from './debounce'\nexport * from './wire-directives'\nexport * from './walk'\nexport * from './dispatch'\nexport * from './getCsrfToken'\n\nexport function kebabCase(subject) {\n return subject.replace(/([a-z])([A-Z])/g, '$1-$2').replace(/[_\\s]/, '-').toLowerCase()\n}\n\nexport function tap(output, callback) {\n callback(output)\n\n return output\n}\n","/*!\n * isobject <https://github.com/jonschlinkert/isobject>\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isObject(val) {\n return val != null && typeof val === 'object' && Array.isArray(val) === false;\n};\n","/*!\n * get-value <https://github.com/jonschlinkert/get-value>\n *\n * Copyright (c) 2014-2018, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nconst isObject = require('isobject');\n\nmodule.exports = function(target, path, options) {\n if (!isObject(options)) {\n options = { default: options };\n }\n\n if (!isValidObject(target)) {\n return typeof options.default !== 'undefined' ? options.default : target;\n }\n\n if (typeof path === 'number') {\n path = String(path);\n }\n\n const isArray = Array.isArray(path);\n const isString = typeof path === 'string';\n const splitChar = options.separator || '.';\n const joinChar = options.joinChar || (typeof splitChar === 'string' ? splitChar : '.');\n\n if (!isString && !isArray) {\n return target;\n }\n\n if (isString && path in target) {\n return isValid(path, target, options) ? target[path] : options.default;\n }\n\n let segs = isArray ? path : split(path, splitChar, options);\n let len = segs.length;\n let idx = 0;\n\n do {\n let prop = segs[idx];\n if (typeof prop === 'number') {\n prop = String(prop);\n }\n\n while (prop && prop.slice(-1) === '\\\\') {\n prop = join([prop.slice(0, -1), segs[++idx] || ''], joinChar, options);\n }\n\n if (prop in target) {\n if (!isValid(prop, target, options)) {\n return options.default;\n }\n\n target = target[prop];\n } else {\n let hasProp = false;\n let n = idx + 1;\n\n while (n < len) {\n prop = join([prop, segs[n++]], joinChar, options);\n\n if ((hasProp = prop in target)) {\n if (!isValid(prop, target, options)) {\n return options.default;\n }\n\n target = target[prop];\n idx = n - 1;\n break;\n }\n }\n\n if (!hasProp) {\n return options.default;\n }\n }\n } while (++idx < len && isValidObject(target));\n\n if (idx === len) {\n return target;\n }\n\n return options.default;\n};\n\nfunction join(segs, joinChar, options) {\n if (typeof options.join === 'function') {\n return options.join(segs);\n }\n return segs[0] + joinChar + segs[1];\n}\n\nfunction split(path, splitChar, options) {\n if (typeof options.split === 'function') {\n return options.split(path);\n }\n return path.split(splitChar);\n}\n\nfunction isValid(key, target, options) {\n if (typeof options.isValid === 'function') {\n return options.isValid(key, target);\n }\n return true;\n}\n\nfunction isValidObject(val) {\n return isObject(val) || Array.isArray(val) || typeof val === 'function';\n}\n","export default class {\n constructor(el, skipWatcher = false) {\n this.el = el\n this.skipWatcher = skipWatcher\n this.resolveCallback = () => { }\n this.rejectCallback = () => { }\n this.signature = (Math.random() + 1).toString(36).substring(8)\n }\n\n toId() {\n return btoa(encodeURIComponent(this.el.outerHTML))\n }\n\n onResolve(callback) {\n this.resolveCallback = callback\n }\n\n onReject(callback) {\n this.rejectCallback = callback\n }\n\n resolve(thing) {\n this.resolveCallback(thing)\n }\n\n reject(thing) {\n this.rejectCallback(thing)\n }\n}\n","import Action from '.'\n\nexport default class extends Action {\n constructor(event, params, el) {\n super(el)\n\n this.type = 'fireEvent'\n this.payload = {\n id: this.signature,\n event,\n params,\n }\n }\n\n // Overriding toId() becuase some EventActions don't have an \"el\"\n toId() {\n return btoa(encodeURIComponent(this.type, this.payload.event, JSON.stringify(this.payload.params)))\n }\n}\n","\nexport default class MessageBus {\n constructor() {\n this.listeners = {}\n }\n\n register(name, callback) {\n if (! this.listeners[name]) {\n this.listeners[name] = []\n }\n\n this.listeners[name].push(callback)\n }\n\n call(name, ...params) {\n (this.listeners[name] || []).forEach(callback => {\n callback(...params)\n })\n }\n\n has(name) {\n return Object.keys(this.listeners).includes(name)\n }\n}\n","import MessageBus from './MessageBus'\n\nexport default {\n availableHooks: [\n /**\n * Public Hooks\n */\n 'component.initialized',\n 'element.initialized',\n 'element.updating',\n 'element.updated',\n 'element.removed',\n 'message.sent',\n 'message.failed',\n 'message.received',\n 'message.processed',\n\n /**\n * Private Hooks\n */\n 'interceptWireModelSetValue',\n 'interceptWireModelAttachListener',\n 'beforeReplaceState',\n 'beforePushState',\n ],\n\n bus: new MessageBus(),\n\n register(name, callback) {\n if (! this.availableHooks.includes(name)) {\n throw `Livewire: Referencing unknown hook: [${name}]`\n }\n\n this.bus.register(name, callback)\n },\n\n call(name, ...params) {\n this.bus.call(name, ...params)\n },\n}\n","import MessageBus from \"./MessageBus\"\n\nexport default {\n directives: new MessageBus,\n\n register(name, callback) {\n if (this.has(name)) {\n throw `Livewire: Directive already registered: [${name}]`\n }\n\n this.directives.register(name, callback)\n },\n\n call(name, el, directive, component) {\n this.directives.call(name, el, directive, component)\n },\n\n has(name) {\n return this.directives.has(name)\n },\n}\n","import EventAction from '@/action/event'\nimport HookManager from '@/HookManager'\nimport MessageBus from './MessageBus'\nimport DirectiveManager from './DirectiveManager'\n\nconst store = {\n componentsById: {},\n listeners: new MessageBus(),\n initialRenderIsFinished: false,\n livewireIsInBackground: false,\n livewireIsOffline: false,\n sessionHasExpired: false,\n sessionHasExpiredCallback: undefined,\n directives: DirectiveManager,\n hooks: HookManager,\n onErrorCallback: () => { },\n\n components() {\n return Object.keys(this.componentsById).map(key => {\n return this.componentsById[key]\n })\n },\n\n addComponent(component) {\n return (this.componentsById[component.id] = component)\n },\n\n findComponent(id) {\n return this.componentsById[id]\n },\n\n getComponentsByName(name) {\n return this.components().filter(component => {\n return component.name === name\n })\n },\n\n hasComponent(id) {\n return !!this.componentsById[id]\n },\n\n tearDownComponents() {\n this.components().forEach(component => {\n this.removeComponent(component)\n })\n },\n\n on(event, callback) {\n this.listeners.register(event, callback)\n },\n\n emit(event, ...params) {\n this.listeners.call(event, ...params)\n\n this.componentsListeningForEvent(event).forEach(component =>\n component.addAction(new EventAction(event, params))\n )\n },\n\n emitUp(el, event, ...params) {\n this.componentsListeningForEventThatAreTreeAncestors(\n el,\n event\n ).forEach(component =>\n component.addAction(new EventAction(event, params))\n )\n },\n\n emitSelf(componentId, event, ...params) {\n let component = this.findComponent(componentId)\n\n if (component.listeners.includes(event)) {\n component.addAction(new EventAction(event, params))\n }\n },\n\n emitTo(componentName, event, ...params) {\n let components = this.getComponentsByName(componentName)\n\n components.forEach(component => {\n if (component.listeners.includes(event)) {\n component.addAction(new EventAction(event, params))\n }\n })\n },\n\n componentsListeningForEventThatAreTreeAncestors(el, event) {\n var parentIds = []\n\n var parent = el.parentElement.closest('[wire\\\\:id]')\n\n while (parent) {\n parentIds.push(parent.getAttribute('wire:id'))\n\n parent = parent.parentElement.closest('[wire\\\\:id]')\n }\n\n return this.components().filter(component => {\n return (\n component.listeners.includes(event) &&\n parentIds.includes(component.id)\n )\n })\n },\n\n componentsListeningForEvent(event) {\n return this.components().filter(component => {\n return component.listeners.includes(event)\n })\n },\n\n registerDirective(name, callback) {\n this.directives.register(name, callback)\n },\n\n registerHook(name, callback) {\n this.hooks.register(name, callback)\n },\n\n callHook(name, ...params) {\n this.hooks.call(name, ...params)\n },\n\n changeComponentId(component, newId) {\n let oldId = component.id\n\n component.id = newId\n component.fingerprint.id = newId\n\n this.componentsById[newId] = component\n\n delete this.componentsById[oldId]\n\n // Now go through any parents of this component and change\n // the component's child id references.\n this.components().forEach(component => {\n let children = component.serverMemo.children || {}\n\n Object.entries(children).forEach(([key, { id, tagName }]) => {\n if (id === oldId) {\n children[key].id = newId\n }\n })\n })\n },\n\n removeComponent(component) {\n // Remove event listeners attached to the DOM.\n component.tearDown()\n // Remove the component from the store.\n delete this.componentsById[component.id]\n },\n\n onError(callback) {\n this.onErrorCallback = callback\n },\n\n getClosestParentId(childId, subsetOfParentIds) {\n let distancesByParentId = {}\n\n subsetOfParentIds.forEach(parentId => {\n let distance = this.getDistanceToChild(parentId, childId)\n\n if (distance) distancesByParentId[parentId] = distance\n })\n\n let smallestDistance = Math.min(...Object.values(distancesByParentId))\n\n let closestParentId\n\n Object.entries(distancesByParentId).forEach(([parentId, distance]) => {\n if (distance === smallestDistance) closestParentId = parentId\n })\n\n return closestParentId\n },\n\n getDistanceToChild(parentId, childId, distanceMemo = 1) {\n let parentComponent = this.findComponent(parentId)\n\n if (! parentComponent) return\n\n let childIds = parentComponent.childIds\n\n if (childIds.includes(childId)) return distanceMemo\n\n for (let i = 0; i < childIds.length; i++) {\n let distance = this.getDistanceToChild(childIds[i], childId, distanceMemo + 1)\n\n if (distance) return distance\n }\n }\n}\n\nexport default store\n","import { wireDirectives } from '@/util'\nimport get from 'get-value'\nimport store from '@/Store'\n\n/**\n * This is intended to isolate all native DOM operations. The operations that happen\n * one specific element will be instance methods, the operations you would normally\n * perform on the \"document\" (like \"document.querySelector\") will be static methods.\n */\nexport default {\n rootComponentElements() {\n return Array.from(document.querySelectorAll(`[wire\\\\:id]`))\n },\n\n rootComponentElementsWithNoParents(node = null) {\n if (node === null) {\n node = document\n }\n\n // In CSS, it's simple to select all elements that DO have a certain ancestor.\n // However, it's not simple (kinda impossible) to select elements that DONT have\n // a certain ancestor. Therefore, we will flip the logic: select all roots that DO have\n // have a root ancestor, then select all roots that DONT, then diff the two.\n\n // Convert NodeLists to Arrays so we can use \".includes()\". Ew.\n const allEls = Array.from(node.querySelectorAll(`[wire\\\\:initial-data]`))\n const onlyChildEls = Array.from(node.querySelectorAll(`[wire\\\\:initial-data] [wire\\\\:initial-data]`))\n\n return allEls.filter(el => !onlyChildEls.includes(el))\n },\n\n allModelElementsInside(root) {\n return Array.from(root.querySelectorAll(`[wire\\\\:model]`))\n },\n\n getByAttributeAndValue(attribute, value) {\n return document.querySelector(`[wire\\\\:${attribute}=\"${value}\"]`)\n },\n\n nextFrame(fn) {\n requestAnimationFrame(() => {\n requestAnimationFrame(fn.bind(this))\n })\n },\n\n closestRoot(el) {\n return this.closestByAttribute(el, 'id')\n },\n\n closestByAttribute(el, attribute) {\n const closestEl = el.closest(`[wire\\\\:${attribute}]`)\n\n if (! closestEl) {\n throw `\nLivewire Error:\\n\nCannot find parent element in DOM tree containing attribute: [wire:${attribute}].\\n\nUsually this is caused by Livewire's DOM-differ not being able to properly track changes.\\n\nReference the following guide for common causes: https://laravel-livewire.com/docs/troubleshooting \\n\nReferenced element:\\n\n${el.outerHTML}\n`\n }\n\n return closestEl\n },\n\n isComponentRootEl(el) {\n return this.hasAttribute(el, 'id')\n },\n\n hasAttribute(el, attribute) {\n return el.hasAttribute(`wire:${attribute}`)\n },\n\n getAttribute(el, attribute) {\n return el.getAttribute(`wire:${attribute}`)\n },\n\n removeAttribute(el, attribute) {\n return el.removeAttribute(`wire:${attribute}`)\n },\n\n setAttribute(el, attribute, value) {\n return el.setAttribute(`wire:${attribute}`, value)\n },\n\n hasFocus(el) {\n return el === document.activeElement\n },\n\n isInput(el) {\n return ['INPUT', 'TEXTAREA', 'SELECT'].includes(\n el.tagName.toUpperCase()\n )\n },\n\n isTextInput(el) {\n return (\n ['INPUT', 'TEXTAREA'].includes(el.tagName.toUpperCase()) &&\n !['checkbox', 'radio'].includes(el.type)\n )\n },\n\n valueFromInput(el, component) {\n if (el.type === 'checkbox') {\n let modelName = wireDirectives(el).get('model').value\n // If there is an update from wire:model.defer in the chamber,\n // we need to pretend that is the actual data from the server.\n let modelValue = component.deferredActions[modelName]\n ? component.deferredActions[modelName].payload.value\n : get(component.data, modelName)\n\n if (Array.isArray(modelValue)) {\n return this.mergeCheckboxValueIntoArray(el, modelValue)\n }\n\n if (el.checked) {\n return el.getAttribute('value') || true\n } else {\n return false\n }\n } else if (el.tagName === 'SELECT' && el.multiple) {\n return this.getSelectValues(el)\n }\n\n return el.value\n },\n\n mergeCheckboxValueIntoArray(el, arrayValue) {\n if (el.checked) {\n return arrayValue.includes(el.value)\n ? arrayValue\n : arrayValue.concat(el.value)\n }\n\n return arrayValue.filter(item => item != el.value)\n },\n\n setInputValueFromModel(el, component) {\n const modelString = wireDirectives(el).get('model').value\n const modelValue = get(component.data, modelString)\n\n // Don't manually set file input's values.\n if (\n el.tagName.toLowerCase() === 'input' &&\n el.type === 'file'\n )\n return\n\n this.setInputValue(el, modelValue)\n },\n\n setInputValue(el, value) {\n store.callHook('interceptWireModelSetValue', value, el)\n\n if (el.type === 'radio') {\n el.checked = el.value == value\n } else if (el.type === 'checkbox') {\n if (Array.isArray(value)) {\n // I'm purposely not using Array.includes here because it's\n // strict, and because of Numeric/String mis-casting, I\n // want the \"includes\" to be \"fuzzy\".\n let valueFound = false\n value.forEach(val => {\n if (val == el.value) {\n valueFound = true\n }\n })\n\n el.checked = valueFound\n } else {\n el.checked = !!value\n }\n } else if (el.tagName === 'SELECT') {\n this.updateSelect(el, value)\n } else {\n value = value === undefined ? '' : value\n\n el.value = value\n }\n },\n\n getSelectValues(el) {\n return Array.from(el.options)\n .filter(option => option.selected)\n .map(option => {\n return option.value || option.text\n })\n },\n\n updateSelect(el, value) {\n const arrayWrappedValue = [].concat(value).map(value => {\n return value + ''\n })\n\n Array.from(el.options).forEach(option => {\n option.selected = arrayWrappedValue.includes(option.value)\n })\n }\n}\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.es/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n","// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var toInteger = require('../internals/to-integer');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `String.prototype.{ codePointAt, at }` methods implementation\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = String(requireObjectCoercible($this));\n var position = toInteger(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = S.charCodeAt(position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING ? S.charAt(position) : first\n : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- requied for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","var isObject = require('../internals/is-object');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var store = require('../internals/shared-store');\n\nvar functionToString = Function.toString;\n\n// this helper broken in `[email protected]`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var global = require('../internals/global');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var toObject = require('../internals/to-object');\n\nvar hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty.call(toObject(it), key);\n};\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.15.2',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2021 Denis Pushkarev (zloirock.ru)'\n});\n","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","module.exports = {};\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar objectHas = require('../internals/has');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (objectHas(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n var state;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) {\n createNonEnumerableProperty(value, 'name', key);\n }\n state = enforceInternalState(value);\n if (!state.source) {\n state.source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","var path = require('../internals/path');\nvar global = require('../internals/global');\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var toInteger = require('../internals/to-integer');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var has = require('../internals/has');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n","var has = require('../internals/has');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n","var fails = require('../internals/fails');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var has = require('../internals/has');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar ObjectPrototype = Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectPrototype : null;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] < 4 ? 1 : match[0] + match[1];\n} else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n}\n\nmodule.exports = version && +version;\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar has = require('../internals/has');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n if (NATIVE_SYMBOL && has(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n }\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\nvar returnThis = function () { return this; };\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {\n createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nmodule.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var anObject = require('../internals/an-object');\nvar defineProperties = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n /* global ActiveXObject -- old IE */\n activeXDocument = document.domain && new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : defineProperties(result, Properties);\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC) {\n if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {\n defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","module.exports = {};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it) && it !== null) {\n throw TypeError(\"Can't set \" + String(it) + ' as a prototype');\n } return it;\n};\n","/* eslint-disable no-proto -- safe */\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n setter.call(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter.call(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {\n createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return nativeIterator.call(this); };\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);\n }\n Iterators[NAME] = defaultIterator;\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n redefine(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n return methods;\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: String(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return { value: undefined, done: true };\n point = charAt(string, index);\n state.index += point.length;\n return { value: point, done: false };\n});\n","module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var anObject = require('../internals/an-object');\n\nmodule.exports = function (iterator) {\n var returnMethod = iterator['return'];\n if (returnMethod !== undefined) {\n return anObject(returnMethod.call(iterator)).value;\n }\n};\n","var anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose(iterator);\n throw error;\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPrimitive(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;\n};\n","var classof = require('../internals/classof');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\n// `Array.from` method implementation\n// https://tc39.es/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n result = new C();\n for (;!(step = next.call(iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = toLength(O.length);\n result = new C(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var $ = require('../internals/export');\nvar from = require('../internals/array-from');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n","require('../../modules/es.string.iterator');\nrequire('../../modules/es.array.from');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Array.from;\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar definePropertyModule = require('../internals/object-define-property');\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\n\nvar call = Function.call;\n\nmodule.exports = function (CONSTRUCTOR, METHOD, length) {\n return bind(call, global[CONSTRUCTOR].prototype[METHOD], length);\n};\n","require('../../modules/es.array.includes');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('Array', 'includes');\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n","'use strict';\nvar isArray = require('../internals/is-array');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind(mapper, thisArg, 3) : false;\n var element;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray(element)) {\n targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;\n } else {\n if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n","var isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar toInteger = require('../internals/to-integer');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flat` method\n// https://tc39.es/ecma262/#sec-array.prototype.flat\n$({ target: 'Array', proto: true }, {\n flat: function flat(/* depthArg = 1 */) {\n var depthArg = arguments.length ? arguments[0] : undefined;\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));\n return A;\n }\n});\n","// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flat');\n","require('../../modules/es.array.flat');\nrequire('../../modules/es.array.unscopables.flat');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('Array', 'flat');\n","var bind = require('../internals/function-bind-context');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = [].push;\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_OUT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push.call(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push.call(target, value); // filterOut\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterOut` method\n // https://github.com/tc39/proposal-array-filtering\n filterOut: createMethod(7)\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","require('../../modules/es.array.find');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('Array', 'find');\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {\n assign: assign\n});\n","require('../../modules/es.object.assign');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.assign;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {\n result.push(TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.es/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n","require('../../modules/es.object.entries');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.entries;\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","require('../../modules/es.object.values');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.values;\n","var anObject = require('../internals/an-object');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (typeof iterFn != 'function') throw TypeError('Target is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = toLength(iterable.length); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && result instanceof Result) return result;\n } return new Result(false);\n }\n iterator = iterFn.call(iterable);\n }\n\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator);\n throw error;\n }\n if (typeof result == 'object' && result && result instanceof Result) return result;\n } return new Result(false);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar iterate = require('../internals/iterate');\n\nvar $AggregateError = function AggregateError(errors, message) {\n var that = this;\n if (!(that instanceof $AggregateError)) return new $AggregateError(errors, message);\n if (setPrototypeOf) {\n // eslint-disable-next-line unicorn/error-message -- expected\n that = setPrototypeOf(new Error(undefined), getPrototypeOf(that));\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', String(message));\n var errorsArray = [];\n iterate(errors, errorsArray.push, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\n return that;\n};\n\n$AggregateError.prototype = create(Error.prototype, {\n constructor: createPropertyDescriptor(5, $AggregateError),\n message: createPropertyDescriptor(5, ''),\n name: createPropertyDescriptor(5, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$({ global: true }, {\n AggregateError: $AggregateError\n});\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar redefine = require('../internals/redefine');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n redefine(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","var redefine = require('../internals/redefine');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) redefine(target, key, src[key], options);\n return target;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar definePropertyModule = require('../internals/object-define-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n var defineProperty = definePropertyModule.f;\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineProperty(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","module.exports = function (it, Constructor, name) {\n if (!(it instanceof Constructor)) {\n throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');\n } return it;\n};\n","var anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);\n};\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent);\n","var classof = require('../internals/classof-raw');\nvar global = require('../internals/global');\n\nmodule.exports = classof(global.process) == 'process';\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar bind = require('../internals/function-bind-context');\nvar html = require('../internals/html');\nvar createElement = require('../internals/document-create-element');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar location = global.location;\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\n\nvar run = function (id) {\n // eslint-disable-next-line no-prototype-builtins -- safe\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar listener = function (event) {\n run(event.data);\n};\n\nvar post = function (id) {\n // old engines have not location.origin\n global.postMessage(id + '', location.protocol + '//' + location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func -- spec requirement\n (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = bind(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n typeof postMessage == 'function' &&\n !global.importScripts &&\n location && location.protocol !== 'file:' &&\n !fails(post)\n ) {\n defer = post;\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\n\nvar flush, head, last, notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!queueMicrotask) {\n flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (error) {\n if (head) notify();\n else last = undefined;\n throw error;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = promise.then;\n notify = function () {\n then.call(promise, flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n}\n\nmodule.exports = queueMicrotask || function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n};\n","'use strict';\nvar aFunction = require('../internals/a-function');\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","var global = require('../internals/global');\n\nmodule.exports = function (a, b) {\n var console = global.console;\n if (console && console.error) {\n arguments.length === 1 ? console.error(a) : console.error(a, b);\n }\n};\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","module.exports = typeof window == 'object';\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar redefine = require('../internals/redefine');\nvar redefineAll = require('../internals/redefine-all');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar isObject = require('../internals/is-object');\nvar aFunction = require('../internals/a-function');\nvar anInstance = require('../internals/an-instance');\nvar inspectSource = require('../internals/inspect-source');\nvar iterate = require('../internals/iterate');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar promiseResolve = require('../internals/promise-resolve');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar InternalStateModule = require('../internals/internal-state');\nvar isForced = require('../internals/is-forced');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_NODE = require('../internals/engine-is-node');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\nvar PROMISE = 'Promise';\nvar getInternalState = InternalStateModule.get;\nvar setInternalState = InternalStateModule.set;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar NativePromisePrototype = NativePromise && NativePromise.prototype;\nvar PromiseConstructor = NativePromise;\nvar PromiseConstructorPrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\nvar SUBCLASSING = false;\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\nvar FORCED = isForced(PROMISE, function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#finally in the pure version for preventing prototype pollution\n if (IS_PURE && !PromiseConstructorPrototype['finally']) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;\n // Detect correctness of subclassing with @@species support\n var promise = new PromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;\n});\n\nvar INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {\n PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });\n});\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n var chain = state.reactions;\n microtask(function () {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var index = 0;\n // variable length - can't use forEach\n while (chain.length > index) {\n var reaction = chain[index++];\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n }\n state.reactions = [];\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n task.call(global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n task.call(global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n then.call(value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromiseConstructor, PROMISE);\n aFunction(executor);\n Internal.call(this);\n var state = getInternalState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n PromiseConstructorPrototype = PromiseConstructor.prototype;\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: [],\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n Internal.prototype = redefineAll(PromiseConstructorPrototype, {\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n then: function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n state.parent = true;\n state.reactions.push(reaction);\n if (state.state != PENDING) notify(state, false);\n return reaction.promise;\n },\n // `Promise.prototype.catch` method\n // https://tc39.es/ecma262/#sec-promise.prototype.catch\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && typeof NativePromise == 'function' && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n nativeThen.call(that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n\n // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\n redefine(NativePromisePrototype, 'catch', PromiseConstructorPrototype['catch'], { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromiseConstructorPrototype);\n }\n }\n}\n\n$({ global: true, wrap: true, forced: FORCED }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n\nPromiseWrapper = getBuiltIn(PROMISE);\n\n// statics\n$({ target: PROMISE, stat: true, forced: FORCED }, {\n // `Promise.reject` method\n // https://tc39.es/ecma262/#sec-promise.reject\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n capability.reject.call(undefined, r);\n return capability.promise;\n }\n});\n\n$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {\n // `Promise.resolve` method\n // https://tc39.es/ecma262/#sec-promise.resolve\n resolve: function resolve(x) {\n return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);\n }\n});\n\n$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {\n // `Promise.all` method\n // https://tc39.es/ecma262/#sec-promise.all\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n $promiseResolve.call(C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n },\n // `Promise.race` method\n // https://tc39.es/ecma262/#sec-promise.race\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n iterate(iterable, function (promise) {\n $promiseResolve.call(C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\n\n// `Promise.allSettled` method\n// https://tc39.es/ecma262/#sec-promise.allsettled\n$({ target: 'Promise', stat: true }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aFunction(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n promiseResolve.call(C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar getBuiltIn = require('../internals/get-built-in');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://tc39.es/ecma262/#sec-promise.any\n$({ target: 'Promise', stat: true }, {\n any: function any(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aFunction(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n errors.push(undefined);\n remaining++;\n promiseResolve.call(C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar redefine = require('../internals/redefine');\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromise && fails(function () {\n NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = typeof onFinally == 'function';\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\n// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && typeof NativePromise == 'function') {\n var method = getBuiltIn('Promise').prototype['finally'];\n if (NativePromise.prototype['finally'] !== method) {\n redefine(NativePromise.prototype, 'finally', method, { unsafe: true });\n }\n}\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return { value: undefined, done: true };\n }\n if (kind == 'keys') return { value: index, done: false };\n if (kind == 'values') return { value: target[index], done: false };\n return { value: [index, target[index]], done: false };\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nIterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n}\n","require('../../modules/es.aggregate-error');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.promise');\nrequire('../../modules/es.promise.all-settled');\nrequire('../../modules/es.promise.any');\nrequire('../../modules/es.promise.finally');\nrequire('../../modules/es.string.iterator');\nrequire('../../modules/web.dom-collections.iterator');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Promise;\n","'use strict';\nvar $ = require('../internals/export');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\n\n// `Promise.try` method\n// https://github.com/tc39/proposal-promise-try\n$({ target: 'Promise', stat: true }, {\n 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n var result = perform(callbackfn);\n (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);\n return promiseCapability.promise;\n }\n});\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es/no-string-prototype-startswith -- safe\nvar $startsWith = ''.startsWith;\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.startsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.startswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = String(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = String(searchString);\n return $startsWith\n ? $startsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n","require('../../modules/es.string.starts-with');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('String', 'startsWith');\n","var global =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n (typeof global !== 'undefined' && global)\n\nvar support = {\n searchParams: 'URLSearchParams' in global,\n iterable: 'Symbol' in global && 'iterator' in Symbol,\n blob:\n 'FileReader' in global &&\n 'Blob' in global &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in global,\n arrayBuffer: 'ArrayBuffer' in global\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","// https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNames#Polyfill\nif (Element.prototype.getAttributeNames == undefined) {\n Element.prototype.getAttributeNames = function () {\n var attributes = this.attributes;\n var length = attributes.length;\n var result = new Array(length);\n for (var i = 0; i < length; i++) {\n result[i] = attributes[i].name;\n }\n return result;\n };\n}\n","// https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill\nif (!Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.matchesSelector ||\n Element.prototype.mozMatchesSelector ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.oMatchesSelector ||\n Element.prototype.webkitMatchesSelector ||\n function(s) {\n var matches = (this.document || this.ownerDocument).querySelectorAll(s),\n i = matches.length;\n while (--i >= 0 && matches.item(i) !== this) {}\n return i > -1;\n };\n}\n","// https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill\nif (!Element.prototype.matches) {\n Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\n}\n\nif (!Element.prototype.closest) {\n Element.prototype.closest = function(s) {\n var el = this;\n\n do {\n if (el.matches(s)) return el;\n el = el.parentElement || el.parentNode;\n } while (el !== null && el.nodeType === 1);\n\n return null;\n };\n}\n","import store from '@/Store'\nimport componentStore from '../Store'\nimport { getCsrfToken } from '@/util'\n\nexport default class Connection {\n constructor() {\n this.headers = {}\n }\n\n onMessage(message, payload) {\n message.component.receiveMessage(message, payload)\n }\n\n onError(message, status, response) {\n message.component.messageSendFailed()\n\n return componentStore.onErrorCallback(status, response)\n }\n\n showExpiredMessage(response, message) {\n if (store.sessionHasExpiredCallback) {\n store.sessionHasExpiredCallback(response, message)\n } else {\n confirm(\n 'This page has expired.\\nWould you like to refresh the page?'\n ) && window.location.reload()\n }\n }\n\n sendMessage(message) {\n let payload = message.payload()\n let csrfToken = getCsrfToken()\n let socketId = this.getSocketId()\n\n if (window.__testing_request_interceptor) {\n return window.__testing_request_interceptor(payload, this)\n }\n\n // Forward the query string for the ajax requests.\n fetch(\n `${window.livewire_app_url}/livewire/message/${payload.fingerprint.name}`,\n {\n method: 'POST',\n body: JSON.stringify(payload),\n // This enables \"cookies\".\n credentials: 'same-origin',\n headers: {\n 'Content-Type': 'application/json',\n 'Accept': 'text/html, application/xhtml+xml',\n 'X-Livewire': true,\n\n // set Custom Headers\n ...(this.headers),\n\n // We'll set this explicitly to mitigate potential interference from ad-blockers/etc.\n 'Referer': window.location.href,\n ...(csrfToken && { 'X-CSRF-TOKEN': csrfToken }),\n ...(socketId && { 'X-Socket-ID': socketId })\n },\n }\n )\n .then(response => {\n if (response.ok) {\n response.text().then(response => {\n if (this.isOutputFromDump(response)) {\n this.onError(message)\n this.showHtmlModal(response)\n } else {\n this.onMessage(message, JSON.parse(response))\n }\n })\n } else {\n if (this.onError(message, response.status, response) === false) return\n\n if (response.status === 419) {\n if (store.sessionHasExpired) return\n\n store.sessionHasExpired = true\n\n this.showExpiredMessage(response, message)\n } else {\n response.text().then(response => {\n this.showHtmlModal(response)\n })\n }\n }\n })\n .catch(() => {\n this.onError(message)\n })\n }\n\n isOutputFromDump(output) {\n return !!output.match(/<script>Sfdump\\(\".+\"\\)<\\/script>/)\n }\n\n getSocketId() {\n if (typeof Echo !== 'undefined') {\n return Echo.socketId()\n }\n }\n\n // This code and concept is all Jonathan Reinink - thanks main!\n showHtmlModal(html) {\n let page = document.createElement('html')\n page.innerHTML = html\n page.querySelectorAll('a').forEach(a =>\n a.setAttribute('target', '_top')\n )\n\n let modal = document.getElementById('livewire-error')\n\n if (typeof modal != 'undefined' && modal != null) {\n // Modal already exists.\n modal.innerHTML = ''\n } else {\n modal = document.createElement('div')\n modal.id = 'livewire-error'\n modal.style.position = 'fixed'\n modal.style.width = '100vw'\n modal.style.height = '100vh'\n modal.style.padding = '50px'\n modal.style.backgroundColor = 'rgba(0, 0, 0, .6)'\n modal.style.zIndex = 200000\n }\n\n let iframe = document.createElement('iframe')\n iframe.style.backgroundColor = '#17161A'\n iframe.style.borderRadius = '5px'\n iframe.style.width = '100%'\n iframe.style.height = '100%'\n modal.appendChild(iframe)\n\n document.body.prepend(modal)\n document.body.style.overflow = 'hidden'\n iframe.contentWindow.document.open()\n iframe.contentWindow.document.write(page.outerHTML)\n iframe.contentWindow.document.close()\n\n // Close on click.\n modal.addEventListener('click', () => this.hideHtmlModal(modal))\n\n // Close on escape key press.\n modal.setAttribute('tabindex', 0)\n modal.addEventListener('keydown', e => {\n if (e.key === 'Escape') this.hideHtmlModal(modal)\n })\n modal.focus()\n }\n\n hideHtmlModal(modal) {\n modal.outerHTML = ''\n document.body.style.overflow = 'visible'\n }\n}\n","import Action from '.'\n\nexport default class extends Action {\n constructor(method, params, el, skipWatcher = false) {\n super(el, skipWatcher)\n\n this.type = 'callMethod'\n this.method = method\n this.payload = {\n id: this.signature,\n method,\n params,\n }\n }\n}\n","import MethodAction from '@/action/method'\nimport { wireDirectives } from '@/util'\nimport store from '@/Store'\n\nexport default function () {\n store.registerHook('element.initialized', (el, component) => {\n let directives = wireDirectives(el)\n\n if (directives.missing('poll')) return\n\n let intervalId = fireActionOnInterval(el, component)\n\n component.addListenerForTeardown(() => {\n clearInterval(intervalId)\n })\n\n el.__livewire_polling_interval = intervalId\n })\n\n store.registerHook('element.updating', (from, to, component) => {\n if (from.__livewire_polling_interval !== undefined) return\n\n if (wireDirectives(from).missing('poll') && wireDirectives(to).has('poll')) {\n setTimeout(() => {\n let intervalId = fireActionOnInterval(from, component)\n\n component.addListenerForTeardown(() => {\n clearInterval(intervalId)\n })\n\n from.__livewire_polling_interval = intervalId\n }, 0)\n }\n })\n}\n\nfunction fireActionOnInterval(node, component) {\n let interval = wireDirectives(node).get('poll').durationOr(2000);\n\n return setInterval(() => {\n if (node.isConnected === false) return\n\n let directives = wireDirectives(node)\n\n // Don't poll when directive is removed from element.\n if (directives.missing('poll')) return\n\n const directive = directives.get('poll')\n const method = directive.method || '$refresh'\n\n // Don't poll when the tab is in the background.\n // (unless the \"wire:poll.keep-alive\" modifier is attached)\n if (store.livewireIsInBackground && ! directive.modifiers.includes('keep-alive')) {\n // This \"Math.random\" business effectivlly prevents 95% of requests\n // from executing. We still want \"some\" requests to get through.\n if (Math.random() < .95) return\n }\n\n // Only poll visible elements. Visible elements are elements that\n // are visible in the current viewport.\n if (directive.modifiers.includes('visible') && ! inViewport(directive.el)) {\n return\n }\n\n // Don't poll if livewire is offline as well.\n if (store.livewireIsOffline) return\n\n component.addAction(new MethodAction(method, directive.params, node))\n }, interval);\n}\n\nfunction inViewport(el) {\n var bounding = el.getBoundingClientRect();\n\n return (\n bounding.top < (window.innerHeight || document.documentElement.clientHeight) &&\n bounding.left < (window.innerWidth || document.documentElement.clientWidth) &&\n bounding.bottom > 0 &&\n bounding.right > 0\n );\n}\n","export default class {\n constructor(component, updateQueue) {\n this.component = component\n this.updateQueue = updateQueue\n }\n\n payload() {\n return {\n fingerprint: this.component.fingerprint,\n serverMemo: this.component.serverMemo,\n // This ensures only the type & payload properties only get sent over.\n updates: this.updateQueue.map(update => ({\n type: update.type,\n payload: update.payload,\n })),\n }\n }\n\n shouldSkipWatcherForDataKey(dataKey) {\n // If the data is dirty, run the watcher.\n if (this.response.effects.dirty.includes(dataKey)) return false\n\n let compareBeforeFirstDot = (subject, value) => {\n if (typeof subject !== 'string' || typeof value !== 'string') return false\n\n return subject.split('.')[0] === value.split('.')[0]\n }\n\n // Otherwise see if there was a defered update for a data key.\n // In that case, we want to skip running the Livewire watcher.\n return this.updateQueue\n .filter(update => compareBeforeFirstDot(update.name, dataKey))\n .some(update => update.skipWatcher)\n }\n\n storeResponse(payload) {\n return (this.response = payload)\n }\n\n resolve() {\n let returns = this.response.effects.returns || []\n\n this.updateQueue.forEach(update => {\n if (update.type !== 'callMethod') return\n\n update.resolve(\n returns[update.signature] !== undefined\n ? returns[update.signature]\n : (returns[update.method] !== undefined\n ? returns[update.method]\n : null)\n )\n })\n }\n\n reject() {\n this.updateQueue.forEach(update => {\n update.reject()\n })\n }\n}\n","import Message from '@/Message'\n\nexport default class extends Message {\n constructor(component, action) {\n super(component, [action])\n }\n\n get prefetchId() {\n return this.updateQueue[0].toId()\n }\n}\n","/**\n * I don't want to look at \"value\" attributes when diffing.\n * I commented out all the lines that compare \"value\"\n *\n */\n\nexport default function morphAttrs(fromNode, toNode) {\n // @alpinejs\n if (fromNode._x_isShown !== undefined && toNode._x_isShown !== undefined) return\n if (fromNode._x_isShown && ! toNode._x_isShown) return\n if (! fromNode._x_isShown && toNode._x_isShown) return\n\n var attrs = toNode.attributes;\n var i;\n var attr;\n var attrName;\n var attrNamespaceURI;\n var attrValue;\n var fromValue;\n\n // update attributes on original DOM element\n for (i = attrs.length - 1; i >= 0; --i) {\n attr = attrs[i];\n attrName = attr.name;\n attrNamespaceURI = attr.namespaceURI;\n attrValue = attr.value;\n\n if (attrNamespaceURI) {\n attrName = attr.localName || attrName;\n fromValue = fromNode.getAttributeNS(attrNamespaceURI, attrName);\n\n if (fromValue !== attrValue) {\n if (attr.prefix === 'xmlns'){\n attrName = attr.name; // It's not allowed to set an attribute with the XMLNS namespace without specifying the `xmlns` prefix\n }\n fromNode.setAttributeNS(attrNamespaceURI, attrName, attrValue);\n }\n } else {\n fromValue = fromNode.getAttribute(attrName);\n\n if (fromValue !== attrValue) {\n fromNode.setAttribute(attrName, attrValue);\n }\n }\n }\n\n // Remove any extra attributes found on the original DOM element that\n // weren't found on the target element.\n attrs = fromNode.attributes;\n\n for (i = attrs.length - 1; i >= 0; --i) {\n attr = attrs[i];\n if (attr.specified !== false) {\n attrName = attr.name;\n attrNamespaceURI = attr.namespaceURI;\n\n if (attrNamespaceURI) {\n attrName = attr.localName || attrName;\n\n if (!toNode.hasAttributeNS(attrNamespaceURI, attrName)) {\n fromNode.removeAttributeNS(attrNamespaceURI, attrName);\n }\n } else {\n if (!toNode.hasAttribute(attrName)) {\n fromNode.removeAttribute(attrName);\n }\n }\n }\n }\n}\n","function syncBooleanAttrProp(fromEl, toEl, name) {\n if (fromEl[name] !== toEl[name]) {\n fromEl[name] = toEl[name];\n if (fromEl[name]) {\n fromEl.setAttribute(name, '');\n } else {\n fromEl.removeAttribute(name);\n }\n }\n}\n\nexport default {\n OPTION: function(fromEl, toEl) {\n var parentNode = fromEl.parentNode;\n if (parentNode) {\n var parentName = parentNode.nodeName.toUpperCase();\n if (parentName === 'OPTGROUP') {\n parentNode = parentNode.parentNode;\n parentName = parentNode && parentNode.nodeName.toUpperCase();\n }\n if (parentName === 'SELECT' && !parentNode.hasAttribute('multiple')) {\n if (fromEl.hasAttribute('selected') && !toEl.selected) {\n // Workaround for MS Edge bug where the 'selected' attribute can only be\n // removed if set to a non-empty value:\n // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12087679/\n fromEl.setAttribute('selected', 'selected');\n fromEl.removeAttribute('selected');\n }\n // We have to reset select element's selectedIndex to -1, otherwise setting\n // fromEl.selected using the syncBooleanAttrProp below has no effect.\n // The correct selectedIndex will be set in the SELECT special handler below.\n parentNode.selectedIndex = -1;\n }\n }\n syncBooleanAttrProp(fromEl, toEl, 'selected');\n },\n /**\n * The \"value\" attribute is special for the <input> element since it sets\n * the initial value. Changing the \"value\" attribute without changing the\n * \"value\" property will have no effect since it is only used to the set the\n * initial value. Similar for the \"checked\" attribute, and \"disabled\".\n */\n INPUT: function(fromEl, toEl) {\n syncBooleanAttrProp(fromEl, toEl, 'checked');\n syncBooleanAttrProp(fromEl, toEl, 'disabled');\n\n if (fromEl.value !== toEl.value) {\n fromEl.value = toEl.value;\n }\n\n if (!toEl.hasAttribute('value')) {\n fromEl.removeAttribute('value');\n }\n },\n\n TEXTAREA: function(fromEl, toEl) {\n var newValue = toEl.value;\n if (fromEl.value !== newValue) {\n fromEl.value = newValue;\n }\n\n var firstChild = fromEl.firstChild;\n if (firstChild) {\n // Needed for IE. Apparently IE sets the placeholder as the\n // node value and vise versa. This ignores an empty update.\n var oldValue = firstChild.nodeValue;\n\n if (oldValue == newValue || (!newValue && oldValue == fromEl.placeholder)) {\n return;\n }\n\n firstChild.nodeValue = newValue;\n }\n },\n SELECT: function(fromEl, toEl) {\n if (!toEl.hasAttribute('multiple')) {\n var selectedIndex = -1;\n var i = 0;\n // We have to loop through children of fromEl, not toEl since nodes can be moved\n // from toEl to fromEl directly when morphing.\n // At the time this special handler is invoked, all children have already been morphed\n // and appended to / removed from fromEl, so using fromEl here is safe and correct.\n var curChild = fromEl.firstChild;\n var optgroup;\n var nodeName;\n while(curChild) {\n nodeName = curChild.nodeName && curChild.nodeName.toUpperCase();\n if (nodeName === 'OPTGROUP') {\n optgroup = curChild;\n curChild = optgroup.firstChild;\n } else {\n if (nodeName === 'OPTION') {\n if (curChild.hasAttribute('selected')) {\n selectedIndex = i;\n break;\n }\n i++;\n }\n curChild = curChild.nextSibling;\n if (!curChild && optgroup) {\n curChild = optgroup.nextSibling;\n optgroup = null;\n }\n }\n }\n\n fromEl.selectedIndex = selectedIndex;\n }\n }\n};\n","var range; // Create a range object for efficently rendering strings to elements.\nvar NS_XHTML = 'http://www.w3.org/1999/xhtml';\n\nexport var doc = typeof document === 'undefined' ? undefined : document;\nvar HAS_TEMPLATE_SUPPORT = !!doc && 'content' in doc.createElement('template');\nvar HAS_RANGE_SUPPORT = !!doc && doc.createRange && 'createContextualFragment' in doc.createRange();\n\nfunction createFragmentFromTemplate(str) {\n var template = doc.createElement('template');\n template.innerHTML = str;\n return template.content.childNodes[0];\n}\n\nfunction createFragmentFromRange(str) {\n if (!range) {\n range = doc.createRange();\n range.selectNode(doc.body);\n }\n\n var fragment = range.createContextualFragment(str);\n return fragment.childNodes[0];\n}\n\nfunction createFragmentFromWrap(str) {\n var fragment = doc.createElement('body');\n fragment.innerHTML = str;\n return fragment.childNodes[0];\n}\n\n/**\n * This is about the same\n * var html = new DOMParser().parseFromString(str, 'text/html');\n * return html.body.firstChild;\n *\n * @method toElement\n * @param {String} str\n */\nexport function toElement(str) {\n str = str.trim();\n if (HAS_TEMPLATE_SUPPORT) {\n // avoid restrictions on content for things like `<tr><th>Hi</th></tr>` which\n // createContextualFragment doesn't support\n // <template> support not available in IE\n return createFragmentFromTemplate(str);\n } else if (HAS_RANGE_SUPPORT) {\n return createFragmentFromRange(str);\n }\n\n return createFragmentFromWrap(str);\n}\n\n/**\n * Returns true if two node's names are the same.\n *\n * NOTE: We don't bother checking `namespaceURI` because you will never find two HTML elements with the same\n * nodeName and different namespace URIs.\n *\n * @param {Element} a\n * @param {Element} b The target element\n * @return {boolean}\n */\nexport function compareNodeNames(fromEl, toEl) {\n var fromNodeName = fromEl.nodeName;\n var toNodeName = toEl.nodeName;\n\n if (fromNodeName === toNodeName) {\n return true;\n }\n\n if (toEl.actualize &&\n fromNodeName.charCodeAt(0) < 91 && /* from tag name is upper case */\n toNodeName.charCodeAt(0) > 90 /* target tag name is lower case */) {\n // If the target element is a virtual DOM node then we may need to normalize the tag name\n // before comparing. Normal HTML elements that are in the \"http://www.w3.org/1999/xhtml\"\n // are converted to upper case\n return fromNodeName === toNodeName.toUpperCase();\n } else {\n return false;\n }\n}\n\n/**\n * Create an element, optionally with a known namespace URI.\n *\n * @param {string} name the element name, e.g. 'div' or 'svg'\n * @param {string} [namespaceURI] the element's namespace URI, i.e. the value of\n * its `xmlns` attribute or its inferred namespace.\n *\n * @return {Element}\n */\nexport function createElementNS(name, namespaceURI) {\n return !namespaceURI || namespaceURI === NS_XHTML ?\n doc.createElement(name) :\n doc.createElementNS(namespaceURI, name);\n}\n\n/**\n * Copies the children of one DOM element to another DOM element\n */\nexport function moveChildren(fromEl, toEl) {\n var curChild = fromEl.firstChild;\n while (curChild) {\n var nextChild = curChild.nextSibling;\n toEl.appendChild(curChild);\n curChild = nextChild;\n }\n return toEl;\n}\n","// From Caleb: I had to change all the \"isSameNode\"s to \"isEqualNode\"s and now everything is working great!\n/**\n * I pulled in my own version of morphdom, so I could tweak it as needed.\n * Here are the tweaks I've made so far:\n *\n * 1) Changed all the \"isSameNode\"s to \"isEqualNode\"s so that morhing doesn't check by reference, only by equality.\n * 2) Automatically filter out any non-\"ElementNode\"s from the lifecycle hooks.\n * 3) Tagged other changes with \"@livewireModification\".\n */\n\n'use strict';\n\nimport specialElHandlers from './specialElHandlers';\nimport { compareNodeNames, createElementNS, doc, moveChildren, toElement } from './util';\n\nvar ELEMENT_NODE = 1;\nvar DOCUMENT_FRAGMENT_NODE = 11;\nvar TEXT_NODE = 3;\nvar COMMENT_NODE = 8;\n\nfunction noop() {}\n\nfunction defaultGetNodeKey(node) {\n return node.id;\n}\n\nfunction callHook(hook, ...params) {\n if (hook.name !== 'getNodeKey' && hook.name !== 'onBeforeElUpdated') {\n // console.log(hook.name, ...params)\n }\n\n // Don't call hook on non-\"DOMElement\" elements.\n if (typeof params[0].hasAttribute !== 'function') return\n\n return hook(...params)\n}\n\nexport default function morphdomFactory(morphAttrs) {\n\n return function morphdom(fromNode, toNode, options) {\n if (!options) {\n options = {};\n }\n\n if (typeof toNode === 'string') {\n if (fromNode.nodeName === '#document' || fromNode.nodeName === 'HTML') {\n var toNodeHtml = toNode;\n toNode = doc.createElement('html');\n toNode.innerHTML = toNodeHtml;\n } else {\n toNode = toElement(toNode);\n }\n }\n\n var getNodeKey = options.getNodeKey || defaultGetNodeKey;\n var onBeforeNodeAdded = options.onBeforeNodeAdded || noop;\n var onNodeAdded = options.onNodeAdded || noop;\n var onBeforeElUpdated = options.onBeforeElUpdated || noop;\n var onElUpdated = options.onElUpdated || noop;\n var onBeforeNodeDiscarded = options.onBeforeNodeDiscarded || noop;\n var onNodeDiscarded = options.onNodeDiscarded || noop;\n var onBeforeElChildrenUpdated = options.onBeforeElChildrenUpdated || noop;\n var childrenOnly = options.childrenOnly === true;\n\n // This object is used as a lookup to quickly find all keyed elements in the original DOM tree.\n var fromNodesLookup = Object.create(null);\n var keyedRemovalList = [];\n\n function addKeyedRemoval(key) {\n keyedRemovalList.push(key);\n }\n\n function walkDiscardedChildNodes(node, skipKeyedNodes) {\n if (node.nodeType === ELEMENT_NODE) {\n var curChild = node.firstChild;\n while (curChild) {\n\n var key = undefined;\n\n if (skipKeyedNodes && (key = callHook(getNodeKey, curChild))) {\n // If we are skipping keyed nodes then we add the key\n // to a list so that it can be handled at the very end.\n addKeyedRemoval(key);\n } else {\n // Only report the node as discarded if it is not keyed. We do this because\n // at the end we loop through all keyed elements that were unmatched\n // and then discard them in one final pass.\n callHook(onNodeDiscarded, curChild);\n if (curChild.firstChild) {\n walkDiscardedChildNodes(curChild, skipKeyedNodes);\n }\n }\n\n curChild = curChild.nextSibling;\n }\n }\n }\n\n /**\n * Removes a DOM node out of the original DOM\n *\n * @param {Node} node The node to remove\n * @param {Node} parentNode The nodes parent\n * @param {Boolean} skipKeyedNodes If true then elements with keys will be skipped and not discarded.\n * @return {undefined}\n */\n function removeNode(node, parentNode, skipKeyedNodes) {\n if (callHook(onBeforeNodeDiscarded, node) === false) {\n return;\n }\n\n if (parentNode) {\n parentNode.removeChild(node);\n }\n\n callHook(onNodeDiscarded, node);\n walkDiscardedChildNodes(node, skipKeyedNodes);\n }\n\n function indexTree(node) {\n if (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE) {\n var curChild = node.firstChild;\n while (curChild) {\n var key = callHook(getNodeKey, curChild);\n if (key) {\n fromNodesLookup[key] = curChild;\n }\n\n // Walk recursively\n indexTree(curChild);\n\n curChild = curChild.nextSibling;\n }\n }\n }\n\n indexTree(fromNode);\n\n function handleNodeAdded(el) {\n callHook(onNodeAdded, el);\n\n if (el.skipAddingChildren) {\n return\n }\n\n var curChild = el.firstChild;\n while (curChild) {\n var nextSibling = curChild.nextSibling;\n\n var key = callHook(getNodeKey, curChild);\n if (key) {\n var unmatchedFromEl = fromNodesLookup[key];\n if (unmatchedFromEl && compareNodeNames(curChild, unmatchedFromEl)) {\n curChild.parentNode.replaceChild(unmatchedFromEl, curChild);\n morphEl(unmatchedFromEl, curChild);\n }\n else {\n handleNodeAdded(curChild);\n }\n }\n else {\n handleNodeAdded(curChild);\n }\n\n curChild = nextSibling;\n }\n }\n\n function cleanupFromEl(fromEl, curFromNodeChild, curFromNodeKey) {\n // We have processed all of the \"to nodes\". If curFromNodeChild is\n // non-null then we still have some from nodes left over that need\n // to be removed\n while (curFromNodeChild) {\n var fromNextSibling = curFromNodeChild.nextSibling;\n if ((curFromNodeKey = callHook(getNodeKey, curFromNodeChild))) {\n // Since the node is keyed it might be matched up later so we defer\n // the actual removal to later\n addKeyedRemoval(curFromNodeKey);\n } else {\n // NOTE: we skip nested keyed nodes from being removed since there is\n // still a chance they will be matched up later\n removeNode(curFromNodeChild, fromEl, true /* skip keyed nodes */);\n }\n curFromNodeChild = fromNextSibling;\n }\n }\n\n\n function morphEl(fromEl, toEl, childrenOnly) {\n var toElKey = callHook(getNodeKey, toEl);\n\n if (toElKey) {\n // If an element with an ID is being morphed then it will be in the final\n // DOM so clear it out of the saved elements collection\n delete fromNodesLookup[toElKey];\n }\n\n if (!childrenOnly) {\n if (callHook(onBeforeElUpdated, fromEl, toEl) === false) {\n return;\n }\n\n // @livewireModification.\n // I added this check to enable wire:ignore.self to not fire\n // morphAttrs, but not skip updating children as well.\n // A task that's currently impossible with the provided hooks.\n if (! fromEl.skipElUpdatingButStillUpdateChildren) {\n morphAttrs(fromEl, toEl);\n }\n\n callHook(onElUpdated, fromEl);\n\n if (callHook(onBeforeElChildrenUpdated, fromEl, toEl) === false) {\n return;\n }\n }\n\n if (fromEl.nodeName !== 'TEXTAREA') {\n morphChildren(fromEl, toEl);\n } else {\n if (fromEl.innerHTML != toEl.innerHTML) {\n // @livewireModification\n // Only mess with the \"value\" of textarea if the new dom has something\n // inside the <textarea></textarea> tag.\n specialElHandlers.TEXTAREA(fromEl, toEl);\n }\n }\n }\n\n function morphChildren(fromEl, toEl) {\n var curToNodeChild = toEl.firstChild;\n var curFromNodeChild = fromEl.firstChild;\n var curToNodeKey;\n var curFromNodeKey;\n\n var fromNextSibling;\n var toNextSibling;\n var matchingFromEl;\n\n // walk the children\n outer: while (curToNodeChild) {\n toNextSibling = curToNodeChild.nextSibling;\n curToNodeKey = callHook(getNodeKey, curToNodeChild);\n\n // walk the fromNode children all the way through\n while (curFromNodeChild) {\n fromNextSibling = curFromNodeChild.nextSibling;\n\n if (curToNodeChild.isSameNode && curToNodeChild.isSameNode(curFromNodeChild)) {\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n continue outer;\n }\n\n curFromNodeKey = callHook(getNodeKey, curFromNodeChild);\n\n var curFromNodeType = curFromNodeChild.nodeType;\n\n // this means if the curFromNodeChild doesnt have a match with the curToNodeChild\n var isCompatible = undefined;\n\n if (curFromNodeType === curToNodeChild.nodeType) {\n if (curFromNodeType === ELEMENT_NODE) {\n // Both nodes being compared are Element nodes\n\n if (curToNodeKey) {\n // The target node has a key so we want to match it up with the correct element\n // in the original DOM tree\n if (curToNodeKey !== curFromNodeKey) {\n // The current element in the original DOM tree does not have a matching key so\n // let's check our lookup to see if there is a matching element in the original\n // DOM tree\n if ((matchingFromEl = fromNodesLookup[curToNodeKey])) {\n if (fromNextSibling === matchingFromEl) {\n // Special case for single element removals. To avoid removing the original\n // DOM node out of the tree (since that can break CSS transitions, etc.),\n // we will instead discard the current node and wait until the next\n // iteration to properly match up the keyed target element with its matching\n // element in the original tree\n isCompatible = false;\n } else {\n // We found a matching keyed element somewhere in the original DOM tree.\n // Let's move the original DOM node into the current position and morph\n // it.\n\n // NOTE: We use insertBefore instead of replaceChild because we want to go through\n // the `removeNode()` function for the node that is being discarded so that\n // all lifecycle hooks are correctly invoked\n fromEl.insertBefore(matchingFromEl, curFromNodeChild);\n\n // fromNextSibling = curFromNodeChild.nextSibling;\n if (curFromNodeKey) {\n // Since the node is keyed it might be matched up later so we defer\n // the actual removal to later\n addKeyedRemoval(curFromNodeKey);\n } else {\n // NOTE: we skip nested keyed nodes from being removed since there is\n // still a chance they will be matched up later\n removeNode(curFromNodeChild, fromEl, true /* skip keyed nodes */);\n }\n\n curFromNodeChild = matchingFromEl;\n }\n } else {\n // The nodes are not compatible since the \"to\" node has a key and there\n // is no matching keyed node in the source tree\n isCompatible = false;\n }\n }\n } else if (curFromNodeKey) {\n // The original has a key\n isCompatible = false;\n }\n\n isCompatible = isCompatible !== false && compareNodeNames(curFromNodeChild, curToNodeChild);\n if (isCompatible) {\n // @livewireModification\n // If the two nodes are different, but the next element is an exact match,\n // we can assume that the new node is meant to be inserted, instead of\n // used as a morph target.\n if (\n ! curToNodeChild.isEqualNode(curFromNodeChild)\n && curToNodeChild.nextElementSibling\n && curToNodeChild.nextElementSibling.isEqualNode(curFromNodeChild)\n ) {\n isCompatible = false\n } else {\n // We found compatible DOM elements so transform\n // the current \"from\" node to match the current\n // target DOM node.\n // MORPH\n morphEl(curFromNodeChild, curToNodeChild);\n }\n }\n\n } else if (curFromNodeType === TEXT_NODE || curFromNodeType == COMMENT_NODE) {\n // Both nodes being compared are Text or Comment nodes\n isCompatible = true;\n // Simply update nodeValue on the original node to\n // change the text value\n if (curFromNodeChild.nodeValue !== curToNodeChild.nodeValue) {\n curFromNodeChild.nodeValue = curToNodeChild.nodeValue;\n }\n }\n }\n\n if (isCompatible) {\n // Advance both the \"to\" child and the \"from\" child since we found a match\n // Nothing else to do as we already recursively called morphChildren above\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n continue outer;\n }\n\n // @livewireModification\n // Before we just remove the original element, let's see if it's the very next\n // element in the \"to\" list. If it is, we can assume we can insert the new\n // element before the original one instead of removing it. This is kind of\n // a \"look-ahead\".\n if (curToNodeChild.nextElementSibling && curToNodeChild.nextElementSibling.isEqualNode(curFromNodeChild)) {\n const nodeToBeAdded = curToNodeChild.cloneNode(true)\n fromEl.insertBefore(nodeToBeAdded, curFromNodeChild)\n handleNodeAdded(nodeToBeAdded)\n curToNodeChild = curToNodeChild.nextElementSibling.nextSibling;\n curFromNodeChild = fromNextSibling;\n continue outer;\n } else {\n // No compatible match so remove the old node from the DOM and continue trying to find a\n // match in the original DOM. However, we only do this if the from node is not keyed\n // since it is possible that a keyed node might match up with a node somewhere else in the\n // target tree and we don't want to discard it just yet since it still might find a\n // home in the final DOM tree. After everything is done we will remove any keyed nodes\n // that didn't find a home\n if (curFromNodeKey) {\n // Since the node is keyed it might be matched up later so we defer\n // the actual removal to later\n addKeyedRemoval(curFromNodeKey);\n } else {\n // NOTE: we skip nested keyed nodes from being removed since there is\n // still a chance they will be matched up later\n removeNode(curFromNodeChild, fromEl, true /* skip keyed nodes */);\n }\n }\n\n curFromNodeChild = fromNextSibling;\n } // END: while(curFromNodeChild) {}\n\n // If we got this far then we did not find a candidate match for\n // our \"to node\" and we exhausted all of the children \"from\"\n // nodes. Therefore, we will just append the current \"to\" node\n // to the end\n if (curToNodeKey && (matchingFromEl = fromNodesLookup[curToNodeKey]) && compareNodeNames(matchingFromEl, curToNodeChild)) {\n fromEl.appendChild(matchingFromEl);\n // MORPH\n morphEl(matchingFromEl, curToNodeChild);\n } else {\n var onBeforeNodeAddedResult = callHook(onBeforeNodeAdded, curToNodeChild);\n if (onBeforeNodeAddedResult !== false) {\n if (onBeforeNodeAddedResult) {\n curToNodeChild = onBeforeNodeAddedResult;\n }\n\n if (curToNodeChild.actualize) {\n curToNodeChild = curToNodeChild.actualize(fromEl.ownerDocument || doc);\n }\n fromEl.appendChild(curToNodeChild);\n handleNodeAdded(curToNodeChild);\n }\n }\n\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n }\n\n cleanupFromEl(fromEl, curFromNodeChild, curFromNodeKey);\n\n var specialElHandler = specialElHandlers[fromEl.nodeName];\n if (specialElHandler && ! fromEl.isLivewireModel) {\n specialElHandler(fromEl, toEl);\n }\n } // END: morphChildren(...)\n\n var morphedNode = fromNode;\n var morphedNodeType = morphedNode.nodeType;\n var toNodeType = toNode.nodeType;\n\n if (!childrenOnly) {\n // Handle the case where we are given two DOM nodes that are not\n // compatible (e.g. <div> --> <span> or <div> --> TEXT)\n if (morphedNodeType === ELEMENT_NODE) {\n if (toNodeType === ELEMENT_NODE) {\n if (!compareNodeNames(fromNode, toNode)) {\n callHook(onNodeDiscarded, fromNode);\n morphedNode = moveChildren(fromNode, createElementNS(toNode.nodeName, toNode.namespaceURI));\n }\n } else {\n // Going from an element node to a text node\n morphedNode = toNode;\n }\n } else if (morphedNodeType === TEXT_NODE || morphedNodeType === COMMENT_NODE) { // Text or comment node\n if (toNodeType === morphedNodeType) {\n if (morphedNode.nodeValue !== toNode.nodeValue) {\n morphedNode.nodeValue = toNode.nodeValue;\n }\n\n return morphedNode;\n } else {\n // Text node to something else\n morphedNode = toNode;\n }\n }\n }\n\n if (morphedNode === toNode) {\n // The \"to node\" was not compatible with the \"from node\" so we had to\n // toss out the \"from node\" and use the \"to node\"\n callHook(onNodeDiscarded, fromNode);\n } else {\n if (toNode.isSameNode && toNode.isSameNode(morphedNode)) {\n return;\n }\n\n morphEl(morphedNode, toNode, childrenOnly);\n\n // We now need to loop over any keyed nodes that might need to be\n // removed. We only do the removal if we know that the keyed node\n // never found a match. When a keyed node is matched up we remove\n // it out of fromNodesLookup and we use fromNodesLookup to determine\n // if a keyed node has been matched up or not\n if (keyedRemovalList) {\n for (var i=0, len=keyedRemovalList.length; i<len; i++) {\n var elToRemove = fromNodesLookup[keyedRemovalList[i]];\n if (elToRemove) {\n removeNode(elToRemove, elToRemove.parentNode, false);\n }\n }\n }\n }\n\n if (!childrenOnly && morphedNode !== fromNode && fromNode.parentNode) {\n if (morphedNode.actualize) {\n morphedNode = morphedNode.actualize(fromNode.ownerDocument || doc);\n }\n // If we had to swap out the from node with a new node because the old\n // node was not compatible with the target node then we need to\n // replace the old DOM node in the original DOM tree. This is only\n // possible if the original DOM node was part of a DOM tree which\n // we know is the case if it has a parent node.\n fromNode.parentNode.replaceChild(morphedNode, fromNode);\n }\n\n return morphedNode;\n };\n}\n","import morphAttrs from './morphAttrs';\nimport morphdomFactory from './morphdom';\n\nvar morphdom = morphdomFactory(morphAttrs);\n\nexport default morphdom;","import Action from '.'\n\nexport default class extends Action {\n constructor(name, value, el) {\n super(el)\n\n this.type = 'syncInput'\n this.name = name\n this.payload = {\n id: this.signature,\n name,\n value,\n }\n }\n}\n","import Action from '.'\n\nexport default class extends Action {\n constructor(name, value, el, skipWatcher = false) {\n super(el, skipWatcher)\n\n this.type = 'syncInput'\n this.name = name\n this.payload = {\n id: this.signature,\n name,\n value,\n }\n }\n}\n","import { kebabCase, debounce, wireDirectives } from '@/util'\nimport ModelAction from '@/action/model'\nimport DeferredModelAction from '@/action/deferred-model'\nimport MethodAction from '@/action/method'\nimport store from '@/Store'\nimport DOM from './dom/dom'\n\nexport default {\n initialize(el, component) {\n if (store.initialRenderIsFinished && el.tagName.toLowerCase() === 'script') {\n eval(el.innerHTML)\n return false\n }\n\n wireDirectives(el).all().forEach(directive => {\n switch (directive.type) {\n case 'init':\n this.fireActionRightAway(el, directive, component)\n break\n\n case 'model':\n if (! directive.value) {\n console.warn('Livewire: [wire:model] is missing a value.', el)\n break\n }\n\n DOM.setInputValueFromModel(el, component)\n\n this.attachModelListener(el, directive, component)\n break\n\n default:\n if (store.directives.has(directive.type)) {\n store.directives.call(\n directive.type,\n el,\n directive,\n component\n )\n }\n\n this.attachDomListener(el, directive, component)\n break\n }\n })\n\n store.callHook('element.initialized', el, component)\n },\n\n fireActionRightAway(el, directive, component) {\n const method = directive.value ? directive.method : '$refresh'\n\n component.addAction(new MethodAction(method, directive.params, el))\n },\n\n attachModelListener(el, directive, component) {\n // This is used by morphdom: morphdom.js:391\n el.isLivewireModel = true\n\n const isLazy = directive.modifiers.includes('lazy')\n const debounceIf = (condition, callback, time) => {\n return condition\n ? component.modelSyncDebounce(callback, time)\n : callback\n }\n const hasDebounceModifier = directive.modifiers.includes('debounce')\n\n store.callHook('interceptWireModelAttachListener', directive, el, component)\n\n // File uploads are handled by UploadFiles.js.\n if (el.tagName.toLowerCase() === 'input' && el.type === 'file') return\n\n const event = el.tagName.toLowerCase() === 'select'\n || ['checkbox', 'radio'].includes(el.type)\n || directive.modifiers.includes('lazy') ? 'change' : 'input'\n\n // If it's a text input and not .lazy, debounce, otherwise fire immediately.\n let handler = debounceIf(hasDebounceModifier || (DOM.isTextInput(el) && !isLazy), e => {\n let model = directive.value\n let el = e.target\n\n let value = e instanceof CustomEvent\n // We have to check for typeof e.detail here for IE 11.\n && typeof e.detail != 'undefined'\n && typeof window.document.documentMode == 'undefined'\n // With autofill in Safari, Safari triggers a custom event and assigns\n // the value to e.target.value, so we need to check for that value as well.\n ? e.detail ?? e.target.value\n : DOM.valueFromInput(el, component)\n\n if (directive.modifiers.includes('defer')) {\n component.addAction(new DeferredModelAction(model, value, el))\n } else {\n component.addAction(new ModelAction(model, value, el))\n }\n }, directive.durationOr(150))\n\n el.addEventListener(event, handler)\n\n component.addListenerForTeardown(() => {\n el.removeEventListener(event, handler)\n })\n\n // Taken from: https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser\n let isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)\n\n // Safari is weird and doesn't properly fire input events when\n // a user \"autofills\" a wire:model(.lazy) field. So we are\n // firing them manually for assurance.\n isSafari && el.addEventListener('animationstart', e => {\n if (e.animationName !== 'livewireautofill') return\n\n e.target.dispatchEvent(new Event('change', { bubbles: true }))\n e.target.dispatchEvent(new Event('input', { bubbles: true }))\n })\n },\n\n attachDomListener(el, directive, component) {\n switch (directive.type) {\n case 'keydown':\n case 'keyup':\n this.attachListener(el, directive, component, e => {\n // Detect system modifier key combinations if specified.\n const systemKeyModifiers = [\n 'ctrl',\n 'shift',\n 'alt',\n 'meta',\n 'cmd',\n 'super',\n ]\n const selectedSystemKeyModifiers = systemKeyModifiers.filter(\n key => directive.modifiers.includes(key)\n )\n\n if (selectedSystemKeyModifiers.length > 0) {\n const selectedButNotPressedKeyModifiers = selectedSystemKeyModifiers.filter(\n key => {\n // Alias \"cmd\" and \"super\" to \"meta\"\n if (key === 'cmd' || key === 'super')\n key = 'meta'\n\n return !e[`${key}Key`]\n }\n )\n\n if (selectedButNotPressedKeyModifiers.length > 0)\n return false\n }\n\n\t\t // Handle spacebar\n if (e.keyCode === 32 || (e.key === ' ' || e.key === 'Spacebar')) {\n return directive.modifiers.includes('space')\n }\n\n // Strip 'debounce' modifier and time modifiers from modifiers list\n let modifiers = directive.modifiers.filter(modifier => {\n return (\n !modifier.match(/^debounce$/) &&\n !modifier.match(/^[0-9]+m?s$/)\n )\n })\n\n // Only handle listener if no, or matching key modifiers are passed.\n // It's important to check that e.key exists - OnePassword's extension does weird things.\n return Boolean(modifiers.length === 0 || (e.key && modifiers.includes(kebabCase(e.key))))\n })\n break\n case 'click':\n this.attachListener(el, directive, component, e => {\n // We only care about elements that have the .self modifier on them.\n if (!directive.modifiers.includes('self')) return\n\n // This ensures a listener is only run if the event originated\n // on the elemenet that registered it (not children).\n // This is useful for things like modal back-drop listeners.\n return el.isSameNode(e.target)\n })\n break\n default:\n this.attachListener(el, directive, component)\n break\n }\n },\n\n attachListener(el, directive, component, callback) {\n if (directive.modifiers.includes('prefetch')) {\n el.addEventListener('mouseenter', () => {\n component.addPrefetchAction(\n new MethodAction(directive.method, directive.params, el)\n )\n })\n }\n\n const event = directive.type\n const handler = e => {\n if (callback && callback(e) === false) {\n return\n }\n\n component.callAfterModelDebounce(() => {\n const el = e.target\n\n directive.setEventContext(e)\n\n // This is outside the conditional below so \"wire:click.prevent\" without\n // a value still prevents default.\n this.preventAndStop(e, directive.modifiers)\n const method = directive.method\n let params = directive.params\n\n if (\n params.length === 0 &&\n e instanceof CustomEvent &&\n e.detail\n ) {\n params.push(e.detail)\n }\n\n // Check for global event emission.\n if (method === '$emit') {\n component.scopedListeners.call(...params)\n store.emit(...params)\n return\n }\n\n if (method === '$emitUp') {\n store.emitUp(el, ...params)\n return\n }\n\n if (method === '$emitSelf') {\n store.emitSelf(component.id, ...params)\n return\n }\n\n if (method === '$emitTo') {\n store.emitTo(...params)\n return\n }\n\n if (directive.value) {\n component.addAction(new MethodAction(method, params, el))\n }\n })\n }\n\n const debounceIf = (condition, callback, time) => {\n return condition ? debounce(callback, time) : callback\n }\n\n const hasDebounceModifier = directive.modifiers.includes('debounce')\n const debouncedHandler = debounceIf(\n hasDebounceModifier,\n handler,\n directive.durationOr(150)\n )\n\n el.addEventListener(event, debouncedHandler)\n\n component.addListenerForTeardown(() => {\n el.removeEventListener(event, debouncedHandler)\n })\n },\n\n preventAndStop(event, modifiers) {\n modifiers.includes('prevent') && event.preventDefault()\n\n modifiers.includes('stop') && event.stopPropagation()\n },\n}\n","class PrefetchManager {\n constructor(component) {\n this.component = component\n this.prefetchMessagesByActionId = {}\n }\n\n addMessage(message) {\n this.prefetchMessagesByActionId[message.prefetchId] = message\n }\n\n actionHasPrefetch(action) {\n return Object.keys(this.prefetchMessagesByActionId).includes(\n action.toId()\n )\n }\n\n actionPrefetchResponseHasBeenReceived(action) {\n return !! this.getPrefetchMessageByAction(action).response\n }\n\n getPrefetchMessageByAction(action) {\n return this.prefetchMessagesByActionId[action.toId()]\n }\n\n clearPrefetches() {\n this.prefetchMessagesByActionId = {}\n }\n}\n\nexport default PrefetchManager\n","import store from '@/Store'\nimport { wireDirectives } from '@/util'\n\nexport default function () {\n store.registerHook('component.initialized', component => {\n component.targetedLoadingElsByAction = {}\n component.genericLoadingEls = []\n component.currentlyActiveLoadingEls = []\n component.currentlyActiveUploadLoadingEls = []\n })\n\n store.registerHook('element.initialized', (el, component) => {\n let directives = wireDirectives(el)\n\n if (directives.missing('loading')) return\n\n const loadingDirectives = directives.directives.filter(\n i => i.type === 'loading'\n )\n\n loadingDirectives.forEach(directive => {\n processLoadingDirective(component, el, directive)\n })\n })\n\n store.registerHook('message.sent', (message, component) => {\n const actions = message.updateQueue\n .filter(action => {\n return action.type === 'callMethod'\n })\n .map(action => action.payload.method)\n\n const actionsWithParams = message.updateQueue\n .filter(action => {\n return action.type === 'callMethod'\n })\n .map(action =>\n generateSignatureFromMethodAndParams(\n action.payload.method,\n action.payload.params\n )\n )\n\n const models = message.updateQueue\n .filter(action => {\n return action.type === 'syncInput'\n })\n .map(action => {\n let name = action.payload.name\n if (! name.includes('.')) {\n return name\n }\n\n let modelActions = []\n\n modelActions.push(\n name.split('.').reduce((fullAction, part) => {\n modelActions.push(fullAction)\n\n return fullAction + '.' + part\n })\n )\n\n return modelActions\n })\n .flat()\n\n setLoading(component, actions.concat(actionsWithParams).concat(models))\n })\n\n store.registerHook('message.failed', (message, component) => {\n unsetLoading(component)\n })\n\n store.registerHook('message.received', (message, component) => {\n unsetLoading(component)\n })\n\n store.registerHook('element.removed', (el, component) => {\n removeLoadingEl(component, el)\n })\n}\n\nfunction processLoadingDirective(component, el, directive) {\n // If this element is going to be dealing with loading states.\n // We will initialize an \"undo\" stack upfront, so we don't\n // have to deal with isset() type conditionals later.\n el.__livewire_on_finish_loading = []\n\n var actionNames = false\n\n let directives = wireDirectives(el)\n\n if (directives.get('target')) {\n let target = directives.get('target')\n if (target.params.length > 0) {\n actionNames = [\n generateSignatureFromMethodAndParams(\n target.method,\n target.params\n ),\n ]\n } else {\n // wire:target overrides any automatic loading scoping we do.\n actionNames = target.value.split(',').map(s => s.trim())\n }\n } else {\n // If there is no wire:target, let's check for the existance of a wire:click=\"foo\" or something,\n // and automatically scope this loading directive to that action.\n const nonActionOrModelLivewireDirectives = [\n 'init',\n 'dirty',\n 'offline',\n 'target',\n 'loading',\n 'poll',\n 'ignore',\n 'key',\n 'id',\n ]\n\n actionNames = directives\n .all()\n .filter(i => !nonActionOrModelLivewireDirectives.includes(i.type))\n .map(i => i.method)\n\n // If we found nothing, just set the loading directive to the global component. (run on every request)\n if (actionNames.length < 1) actionNames = false\n }\n\n addLoadingEl(component, el, directive, actionNames)\n}\n\nfunction addLoadingEl(component, el, directive, actionsNames) {\n if (actionsNames) {\n actionsNames.forEach(actionsName => {\n if (component.targetedLoadingElsByAction[actionsName]) {\n component.targetedLoadingElsByAction[actionsName].push({\n el,\n directive,\n })\n } else {\n component.targetedLoadingElsByAction[actionsName] = [\n { el, directive },\n ]\n }\n })\n } else {\n component.genericLoadingEls.push({ el, directive })\n }\n}\n\nfunction removeLoadingEl(component, el) {\n // Look through the global/generic elements for the element to remove.\n component.genericLoadingEls.forEach((element, index) => {\n if (element.el.isSameNode(el)) {\n component.genericLoadingEls.splice(index, 1)\n }\n })\n\n // Look through the targeted elements to remove.\n Object.keys(component.targetedLoadingElsByAction).forEach(key => {\n component.targetedLoadingElsByAction[\n key\n ] = component.targetedLoadingElsByAction[key].filter(element => {\n return ! element.el.isSameNode(el)\n })\n })\n}\n\nfunction setLoading(component, actions) {\n const actionTargetedEls = actions\n .map(action => component.targetedLoadingElsByAction[action])\n .filter(el => el)\n .flat()\n\n const allEls = removeDuplicates(component.genericLoadingEls.concat(actionTargetedEls))\n\n startLoading(allEls)\n\n component.currentlyActiveLoadingEls = allEls\n}\n\nexport function setUploadLoading(component, modelName) {\n const actionTargetedEls =\n component.targetedLoadingElsByAction[modelName] || []\n\n const allEls = removeDuplicates(component.genericLoadingEls.concat(actionTargetedEls))\n\n startLoading(allEls)\n\n component.currentlyActiveUploadLoadingEls = allEls\n}\n\nexport function unsetUploadLoading(component) {\n endLoading(component.currentlyActiveUploadLoadingEls)\n\n component.currentlyActiveUploadLoadingEls = []\n}\n\nfunction unsetLoading(component) {\n endLoading(component.currentlyActiveLoadingEls)\n\n component.currentlyActiveLoadingEls = []\n}\n\nfunction startLoading(els) {\n els.forEach(({ el, directive }) => {\n if (directive.modifiers.includes('class')) {\n let classes = directive.value.split(' ').filter(Boolean)\n\n doAndSetCallbackOnElToUndo(\n el,\n directive,\n () => el.classList.add(...classes),\n () => el.classList.remove(...classes)\n )\n } else if (directive.modifiers.includes('attr')) {\n doAndSetCallbackOnElToUndo(\n el,\n directive,\n () => el.setAttribute(directive.value, true),\n () => el.removeAttribute(directive.value)\n )\n } else {\n let cache = window\n .getComputedStyle(el, null)\n .getPropertyValue('display')\n\n doAndSetCallbackOnElToUndo(\n el,\n directive,\n () => {\n el.style.display = directive.modifiers.includes('remove')\n ? cache\n : getDisplayProperty(directive)\n },\n () => {\n el.style.display = 'none'\n }\n )\n }\n })\n}\n\nfunction getDisplayProperty(directive) {\n return (['inline', 'block', 'table', 'flex', 'grid', 'inline-flex']\n .filter(i => directive.modifiers.includes(i))[0] || 'inline-block')\n}\n\nfunction doAndSetCallbackOnElToUndo(el, directive, doCallback, undoCallback) {\n if (directive.modifiers.includes('remove'))\n [doCallback, undoCallback] = [undoCallback, doCallback]\n\n if (directive.modifiers.includes('delay')) {\n let duration = 200\n\n let delayModifiers = {\n 'shortest': 50,\n 'shorter': 100,\n 'short': 150,\n 'long': 300,\n 'longer': 500,\n 'longest': 1000,\n }\n\n Object.keys(delayModifiers).some(key => {\n if(directive.modifiers.includes(key)) {\n duration = delayModifiers[key]\n return true\n }\n })\n\n let timeout = setTimeout(() => {\n doCallback()\n el.__livewire_on_finish_loading.push(() => undoCallback())\n }, duration)\n\n el.__livewire_on_finish_loading.push(() => clearTimeout(timeout))\n } else {\n doCallback()\n el.__livewire_on_finish_loading.push(() => undoCallback())\n }\n}\n\nfunction endLoading(els) {\n els.forEach(({ el }) => {\n while (el.__livewire_on_finish_loading.length > 0) {\n el.__livewire_on_finish_loading.shift()()\n }\n })\n}\n\nfunction generateSignatureFromMethodAndParams(method, params) {\n return method + btoa(encodeURIComponent(params.toString()))\n}\n\nfunction removeDuplicates(arr) {\n return Array.from(new Set(arr))\n}","\nexport default class MessageBag {\n constructor() {\n this.bag = {}\n }\n\n add(name, thing) {\n if (! this.bag[name]) {\n this.bag[name] = []\n }\n\n this.bag[name].push(thing)\n }\n\n push(name, thing) {\n this.add(name, thing)\n }\n\n first(name) {\n if (! this.bag[name]) return null\n\n return this.bag[name][0]\n }\n\n last(name) {\n return this.bag[name].slice(-1)[0]\n }\n\n get(name) {\n return this.bag[name]\n }\n\n shift(name) {\n return this.bag[name].shift()\n }\n\n call(name, ...params) {\n (this.listeners[name] || []).forEach(callback => {\n callback(...params)\n })\n }\n\n has(name) {\n return Object.keys(this.listeners).includes(name)\n }\n}\n","import { setUploadLoading, unsetUploadLoading } from './LoadingStates'\nimport { getCsrfToken } from '@/util'\nimport MessageBag from '../MessageBag'\n\nclass UploadManager {\n constructor(component) {\n this.component = component\n this.uploadBag = new MessageBag\n this.removeBag = new MessageBag\n }\n\n registerListeners() {\n this.component.on('upload:generatedSignedUrl', (name, url) => {\n // We have to add reduntant \"setLoading\" calls because the dom-patch\n // from the first response will clear the setUploadLoading call\n // from the first upload call.\n setUploadLoading(this.component, name)\n\n this.handleSignedUrl(name, url)\n })\n\n this.component.on('upload:generatedSignedUrlForS3', (name, payload) => {\n setUploadLoading(this.component, name)\n\n this.handleS3PreSignedUrl(name, payload)\n })\n\n this.component.on('upload:finished', (name, tmpFilenames) => this.markUploadFinished(name, tmpFilenames))\n this.component.on('upload:errored', (name) => this.markUploadErrored(name))\n this.component.on('upload:removed', (name, tmpFilename) => this.removeBag.shift(name).finishCallback(tmpFilename))\n }\n\n upload(name, file, finishCallback, errorCallback, progressCallback) {\n this.setUpload(name, {\n files: [file],\n multiple: false,\n finishCallback,\n errorCallback,\n progressCallback,\n })\n }\n\n uploadMultiple(name, files, finishCallback, errorCallback, progressCallback) {\n this.setUpload(name, {\n files: Array.from(files),\n multiple: true,\n finishCallback,\n errorCallback,\n progressCallback,\n })\n }\n\n removeUpload(name, tmpFilename, finishCallback) {\n this.removeBag.push(name, {\n tmpFilename, finishCallback\n })\n\n this.component.call('removeUpload', name, tmpFilename);\n }\n\n setUpload(name, uploadObject) {\n this.uploadBag.add(name, uploadObject)\n\n if (this.uploadBag.get(name).length === 1) {\n this.startUpload(name, uploadObject)\n }\n }\n\n handleSignedUrl(name, url) {\n let formData = new FormData()\n Array.from(this.uploadBag.first(name).files).forEach(file => formData.append('files[]', file, file.name))\n\n let headers = {\n 'Accept': 'application/json',\n }\n\n let csrfToken = getCsrfToken()\n\n if (csrfToken) headers['X-CSRF-TOKEN'] = csrfToken\n\n this.makeRequest(name, formData, 'post', url, headers, response => {\n return response.paths\n })\n }\n\n handleS3PreSignedUrl(name, payload) {\n let formData = this.uploadBag.first(name).files[0]\n\n let headers = payload.headers\n if ('Host' in headers) delete headers.Host\n let url = payload.url\n\n this.makeRequest(name, formData, 'put', url, headers, response => {\n return [payload.path]\n })\n }\n\n makeRequest(name, formData, method, url, headers, retrievePaths) {\n let request = new XMLHttpRequest()\n request.open(method, url)\n\n Object.entries(headers).forEach(([key, value]) => {\n request.setRequestHeader(key, value)\n })\n\n request.upload.addEventListener('progress', e => {\n e.detail = {}\n e.detail.progress = Math.round((e.loaded * 100) / e.total)\n\n this.uploadBag.first(name).progressCallback(e)\n })\n\n request.addEventListener('load', () => {\n if ((request.status+'')[0] === '2') {\n let paths = retrievePaths(request.response && JSON.parse(request.response))\n\n this.component.call('finishUpload', name, paths, this.uploadBag.first(name).multiple)\n\n return\n }\n\n let errors = null\n\n if (request.status === 422) {\n errors = request.response\n }\n\n this.component.call('uploadErrored', name, errors, this.uploadBag.first(name).multiple)\n })\n\n request.send(formData)\n }\n\n startUpload(name, uploadObject) {\n let fileInfos = uploadObject.files.map(file => {\n return { name: file.name, size: file.size, type: file.type }\n })\n\n this.component.call('startUpload', name, fileInfos, uploadObject.multiple);\n\n setUploadLoading(this.component, name)\n }\n\n markUploadFinished(name, tmpFilenames) {\n unsetUploadLoading(this.component)\n\n let uploadObject = this.uploadBag.shift(name)\n uploadObject.finishCallback(uploadObject.multiple ? tmpFilenames : tmpFilenames[0])\n\n if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\n }\n\n markUploadErrored(name) {\n unsetUploadLoading(this.component)\n\n this.uploadBag.shift(name).errorCallback()\n\n if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\n }\n}\n\nexport default UploadManager\n","import { walk } from './../util/walk'\nimport store from '@/Store'\n\nexport default function () {\n window.addEventListener('livewire:load', () => {\n if (! window.Alpine) return\n\n refreshAlpineAfterEveryLivewireRequest()\n\n addDollarSignWire()\n\n supportEntangle()\n })\n}\n\nfunction refreshAlpineAfterEveryLivewireRequest() {\n if (isV3()) {\n store.registerHook('message.processed', (message, livewireComponent) => {\n walk(livewireComponent.el, el => {\n if (el._x_hidePromise) return\n if (el._x_runEffects) el._x_runEffects()\n })\n })\n\n return\n }\n\n if (! window.Alpine.onComponentInitialized) return\n\n window.Alpine.onComponentInitialized(component => {\n let livewireEl = component.$el.closest('[wire\\\\:id]')\n\n if (livewireEl && livewireEl.__livewire) {\n store.registerHook('message.processed', (message, livewireComponent) => {\n if (livewireComponent === livewireEl.__livewire) {\n component.updateElements(component.$el)\n }\n })\n }\n })\n}\n\nfunction addDollarSignWire() {\n if (isV3()) {\n window.Alpine.magic('wire', function (el) {\n let wireEl = el.closest('[wire\\\\:id]')\n\n if (! wireEl)\n console.warn(\n 'Alpine: Cannot reference \"$wire\" outside a Livewire component.'\n )\n\n let component = wireEl.__livewire\n\n return component.$wire\n })\n return\n }\n\n if (! window.Alpine.addMagicProperty) return\n\n window.Alpine.addMagicProperty('wire', function (componentEl) {\n let wireEl = componentEl.closest('[wire\\\\:id]')\n\n if (!wireEl)\n console.warn(\n 'Alpine: Cannot reference \"$wire\" outside a Livewire component.'\n )\n\n let component = wireEl.__livewire\n\n return component.$wire\n })\n}\n\nfunction supportEntangle() {\n if (isV3()) return\n\n if (! window.Alpine.onBeforeComponentInitialized) return\n\n window.Alpine.onBeforeComponentInitialized(component => {\n let livewireEl = component.$el.closest('[wire\\\\:id]')\n\n if (livewireEl && livewireEl.__livewire) {\n Object.entries(component.unobservedData).forEach(\n ([key, value]) => {\n if (\n !!value &&\n typeof value === 'object' &&\n value.livewireEntangle\n ) {\n // Ok, it looks like someone set an Alpine property to $wire.entangle or @entangle.\n let livewireProperty = value.livewireEntangle\n let isDeferred = value.isDeferred\n let livewireComponent = livewireEl.__livewire\n\n let livewirePropertyValue = livewireEl.__livewire.get(livewireProperty)\n\n // Check to see if the Livewire property exists and if not log a console error\n // and return so everything else keeps running.\n if (typeof livewirePropertyValue === 'undefined') {\n console.error(`Livewire Entangle Error: Livewire property '${livewireProperty}' cannot be found`)\n return\n }\n\n // Let's set the initial value of the Alpine prop to the Livewire prop's value.\n component.unobservedData[key]\n // We need to stringify and parse it though to get a deep clone.\n = JSON.parse(JSON.stringify(livewirePropertyValue))\n\n let blockAlpineWatcher = false\n\n // Now, we'll watch for changes to the Alpine prop, and fire the update to Livewire.\n component.unobservedData.$watch(key, value => {\n // Let's also make sure that this watcher isn't a result of a Livewire response.\n // If it is, we don't need to \"re-update\" Livewire. (sending an extra useless) request.\n if (blockAlpineWatcher === true) {\n blockAlpineWatcher = false\n return\n }\n\n // If the Alpine value is the same as the Livewire value, we'll skip the update for 2 reasons:\n // - It's just more efficient, why send needless requests.\n // - This prevents a circular dependancy with the other watcher below.\n // - Due to the deep clone using stringify, we need to do the same here to compare.\n if (\n JSON.stringify(value) ==\n JSON.stringify(\n livewireEl.__livewire.getPropertyValueIncludingDefers(\n livewireProperty\n )\n )\n ) return\n\n // We'll tell Livewire to update the property, but we'll also tell Livewire\n // to not call the normal property watchers on the way back to prevent another\n // circular dependancy.\n livewireComponent.set(\n livewireProperty,\n value,\n isDeferred,\n // Block firing of Livewire watchers for this data key when the request comes back.\n // Unless it is deferred, in which cause we don't know if the state will be the same, so let it run.\n isDeferred ? false : true\n )\n })\n\n // We'll also listen for changes to the Livewire prop, and set them in Alpine.\n livewireComponent.watch(\n livewireProperty,\n value => {\n // Ensure data is deep cloned otherwise Alpine mutates Livewire data\n component.$data[key] = typeof value !== 'undefined' ? JSON.parse(JSON.stringify(value)) : value\n }\n )\n }\n }\n )\n }\n })\n}\n\nexport function getEntangleFunction(component) {\n if (isV3()) {\n return (name, defer = false) => {\n let isDeferred = defer\n let livewireProperty = name\n let livewireComponent = component\n let livewirePropertyValue = component.get(livewireProperty)\n\n let interceptor = Alpine.interceptor((initialValue, getter, setter, path, key) => {\n // Check to see if the Livewire property exists and if not log a console error\n // and return so everything else keeps running.\n if (typeof livewirePropertyValue === 'undefined') {\n console.error(`Livewire Entangle Error: Livewire property '${livewireProperty}' cannot be found`)\n return\n }\n\n // Let's set the initial value of the Alpine prop to the Livewire prop's value.\n let value\n // We need to stringify and parse it though to get a deep clone.\n = JSON.parse(JSON.stringify(livewirePropertyValue))\n\n setter(value)\n\n // Now, we'll watch for changes to the Alpine prop, and fire the update to Livewire.\n window.Alpine.effect(() => {\n let value = getter()\n\n if (\n JSON.stringify(value) ==\n JSON.stringify(\n livewireComponent.getPropertyValueIncludingDefers(\n livewireProperty\n )\n )\n ) return\n\n // We'll tell Livewire to update the property, but we'll also tell Livewire\n // to not call the normal property watchers on the way back to prevent another\n // circular dependancy.\n livewireComponent.set(\n livewireProperty,\n value,\n isDeferred,\n // Block firing of Livewire watchers for this data key when the request comes back.\n // Unless it is deferred, in which cause we don't know if the state will be the same, so let it run.\n isDeferred ? false : true\n )\n })\n\n // We'll also listen for changes to the Livewire prop, and set them in Alpine.\n livewireComponent.watch(\n livewireProperty,\n value => {\n // Ensure data is deep cloned otherwise Alpine mutates Livewire data\n window.Alpine.disableEffectScheduling(() => {\n setter(typeof value !== 'undefined' ? JSON.parse(JSON.stringify(value)) : value)\n })\n }\n )\n\n return value\n }, obj => {\n Object.defineProperty(obj, 'defer', {\n get() {\n isDeferred = true\n\n return obj\n }\n })\n })\n\n return interceptor(livewirePropertyValue)\n }\n }\n\n return (name, defer = false) => ({\n isDeferred: defer,\n livewireEntangle: name,\n get defer() {\n this.isDeferred = true\n return this\n },\n })\n}\n\nexport function alpinifyElementsForMorphdom(from, to) {\n if (isV3()) {\n return alpinifyElementsForMorphdomV3(from, to)\n }\n\n // If the element we are updating is an Alpine component...\n if (from.__x) {\n // Then temporarily clone it (with it's data) to the \"to\" element.\n // This should simulate backend Livewire being aware of Alpine changes.\n window.Alpine.clone(from.__x, to)\n }\n\n // x-show elements require care because of transitions.\n if (\n Array.from(from.attributes)\n .map(attr => attr.name)\n .some(name => /x-show/.test(name))\n ) {\n if (from.__x_transition) {\n // This covers @entangle('something')\n from.skipElUpdatingButStillUpdateChildren = true\n } else {\n // This covers x-show=\"$wire.something\"\n //\n // If the element has x-show, we need to \"reverse\" the damage done by \"clone\",\n // so that if/when the element has a transition on it, it will occur naturally.\n if (isHiding(from, to)) {\n let style = to.getAttribute('style')\n\n if (style) {\n to.setAttribute('style', style.replace('display: none;', ''))\n }\n } else if (isShowing(from, to)) {\n to.style.display = from.style.display\n }\n }\n }\n}\n\nfunction alpinifyElementsForMorphdomV3(from, to) {\n if (from.nodeType !== 1) return\n\n // If the element we are updating is an Alpine component...\n if (from._x_dataStack) {\n // Then temporarily clone it (with it's data) to the \"to\" element.\n // This should simulate backend Livewire being aware of Alpine changes.\n window.Alpine.clone(from, to)\n }\n}\n\nfunction isHiding(from, to) {\n if (beforeAlpineTwoPointSevenPointThree()) {\n return from.style.display === '' && to.style.display === 'none'\n }\n\n return from.__x_is_shown && ! to.__x_is_shown\n}\n\nfunction isShowing(from, to) {\n if (beforeAlpineTwoPointSevenPointThree()) {\n return from.style.display === 'none' && to.style.display === ''\n }\n\n return ! from.__x_is_shown && to.__x_is_shown\n}\n\nfunction beforeAlpineTwoPointSevenPointThree() {\n let [major, minor, patch] = window.Alpine.version.split('.').map(i => Number(i))\n\n return major <= 2 && minor <= 7 && patch <= 2\n}\n\nfunction isV3() {\n return window.Alpine && window.Alpine.version && /^3\\..+\\..+$/.test(window.Alpine.version)\n}\n","import Message from '@/Message'\nimport dataGet from 'get-value'\nimport PrefetchMessage from '@/PrefetchMessage'\nimport { dispatch, debounce, wireDirectives, walk } from '@/util'\nimport morphdom from '@/dom/morphdom'\nimport DOM from '@/dom/dom'\nimport nodeInitializer from '@/node_initializer'\nimport store from '@/Store'\nimport PrefetchManager from './PrefetchManager'\nimport UploadManager from './UploadManager'\nimport MethodAction from '@/action/method'\nimport ModelAction from '@/action/model'\nimport DeferredModelAction from '@/action/deferred-model'\nimport MessageBus from '../MessageBus'\nimport { alpinifyElementsForMorphdom, getEntangleFunction } from './SupportAlpine'\n\nexport default class Component {\n constructor(el, connection) {\n el.__livewire = this\n\n this.el = el\n\n this.lastFreshHtml = this.el.outerHTML\n\n this.id = this.el.getAttribute('wire:id')\n\n this.checkForMultipleRootElements()\n\n this.connection = connection\n\n const initialData = JSON.parse(this.el.getAttribute('wire:initial-data'))\n this.el.removeAttribute('wire:initial-data')\n\n this.fingerprint = initialData.fingerprint\n this.serverMemo = initialData.serverMemo\n this.effects = initialData.effects\n\n this.listeners = this.effects.listeners\n this.updateQueue = []\n this.deferredActions = {}\n this.tearDownCallbacks = []\n this.messageInTransit = undefined\n\n this.scopedListeners = new MessageBus()\n this.prefetchManager = new PrefetchManager(this)\n this.uploadManager = new UploadManager(this)\n this.watchers = {}\n\n store.callHook('component.initialized', this)\n\n this.initialize()\n\n this.uploadManager.registerListeners()\n\n if (this.effects.redirect) return this.redirect(this.effects.redirect)\n }\n\n get name() {\n return this.fingerprint.name\n }\n\n get data() {\n return this.serverMemo.data\n }\n\n get childIds() {\n return Object.values(this.serverMemo.children).map(child => child.id)\n }\n\n checkForMultipleRootElements() {\n // Count the number of elements between the first element in the component and the\n // injected \"component-end\" marker. This is an HTML comment with notation.\n let countElementsBeforeMarker = (el, carryCount = 0) => {\n if (! el) return carryCount\n\n // If we see the \"end\" marker, we can return the number of elements in between we've seen.\n if (el.nodeType === Node.COMMENT_NODE && el.textContent.includes(`wire-end:${this.id}`)) return carryCount\n\n let newlyDiscoveredEls = el.nodeType === Node.ELEMENT_NODE ? 1 : 0\n\n return countElementsBeforeMarker(el.nextSibling, carryCount + newlyDiscoveredEls)\n }\n\n if (countElementsBeforeMarker(this.el.nextSibling) > 0) {\n console.warn(`Livewire: Multiple root elements detected. This is not supported. See docs for more information https://laravel-livewire.com/docs/2.x/troubleshooting#root-element-issues`, this.el)\n }\n }\n\n initialize() {\n this.walk(\n // Will run for every node in the component tree (not child component nodes).\n el => nodeInitializer.initialize(el, this),\n // When new component is encountered in the tree, add it.\n el => store.addComponent(new Component(el, this.connection))\n )\n }\n\n get(name) {\n // The .split() stuff is to support dot-notation.\n return name\n .split('.')\n .reduce((carry, segment) => typeof carry === 'undefined' ? carry : carry[segment], this.data)\n }\n\n getPropertyValueIncludingDefers(name) {\n let action = this.deferredActions[name]\n\n if (! action) return this.get(name)\n\n return action.payload.value\n }\n\n updateServerMemoFromResponseAndMergeBackIntoResponse(message) {\n // We have to do a fair amount of object merging here, but we can't use expressive syntax like {...}\n // because browsers mess with the object key order which will break Livewire request checksum checks.\n\n Object.entries(message.response.serverMemo).forEach(([key, value]) => {\n // Because \"data\" is \"partial\" from the server, we have to deep merge it.\n if (key === 'data') {\n Object.entries(value || {}).forEach(([dataKey, dataValue]) => {\n this.serverMemo.data[dataKey] = dataValue\n\n if (message.shouldSkipWatcherForDataKey(dataKey)) return\n\n // Because Livewire (for payload reduction purposes) only returns the data that has changed,\n // we can use all the data keys from the response as watcher triggers.\n Object.entries(this.watchers).forEach(([key, watchers]) => {\n let originalSplitKey = key.split('.')\n let basePropertyName = originalSplitKey.shift()\n let restOfPropertyName = originalSplitKey.join('.')\n\n if (basePropertyName == dataKey) {\n // If the key deals with nested data, use the \"get\" function to get\n // the most nested data. Otherwise, return the entire data chunk.\n let potentiallyNestedValue = !! restOfPropertyName\n ? dataGet(dataValue, restOfPropertyName)\n : dataValue\n\n watchers.forEach(watcher => watcher(potentiallyNestedValue))\n }\n })\n })\n } else {\n // Every other key, we can just overwrite.\n this.serverMemo[key] = value\n }\n })\n\n // Merge back serverMemo changes so the response data is no longer incomplete.\n message.response.serverMemo = Object.assign({}, this.serverMemo)\n }\n\n watch(name, callback) {\n if (!this.watchers[name]) this.watchers[name] = []\n\n this.watchers[name].push(callback)\n }\n\n set(name, value, defer = false, skipWatcher = false) {\n if (defer) {\n this.addAction(\n new DeferredModelAction(name, value, this.el, skipWatcher)\n )\n } else {\n this.addAction(\n new MethodAction('$set', [name, value], this.el, skipWatcher)\n )\n }\n }\n\n sync(name, value, defer = false) {\n if (defer) {\n this.addAction(new DeferredModelAction(name, value, this.el))\n } else {\n this.addAction(new ModelAction(name, value, this.el))\n }\n }\n\n call(method, ...params) {\n return new Promise((resolve, reject) => {\n let action = new MethodAction(method, params, this.el)\n\n this.addAction(action)\n\n action.onResolve(thing => resolve(thing))\n action.onReject(thing => reject(thing))\n })\n }\n\n on(event, callback) {\n this.scopedListeners.register(event, callback)\n }\n\n addAction(action) {\n if (action instanceof DeferredModelAction) {\n this.deferredActions[action.name] = action\n\n return\n }\n\n if (\n this.prefetchManager.actionHasPrefetch(action) &&\n this.prefetchManager.actionPrefetchResponseHasBeenReceived(action)\n ) {\n const message = this.prefetchManager.getPrefetchMessageByAction(\n action\n )\n\n this.handleResponse(message)\n\n this.prefetchManager.clearPrefetches()\n\n return\n }\n\n this.updateQueue.push(action)\n\n // This debounce is here in-case two events fire at the \"same\" time:\n // For example: if you are listening for a click on element A,\n // and a \"blur\" on element B. If element B has focus, and then,\n // you click on element A, the blur event will fire before the \"click\"\n // event. This debounce captures them both in the actionsQueue and sends\n // them off at the same time.\n // Note: currently, it's set to 5ms, that might not be the right amount, we'll see.\n debounce(this.fireMessage, 5).apply(this)\n\n // Clear prefetches.\n this.prefetchManager.clearPrefetches()\n }\n\n fireMessage() {\n if (this.messageInTransit) return\n\n Object.entries(this.deferredActions).forEach(([modelName, action]) => {\n this.updateQueue.unshift(action)\n })\n this.deferredActions = {}\n\n this.messageInTransit = new Message(this, this.updateQueue)\n\n let sendMessage = () => {\n this.connection.sendMessage(this.messageInTransit)\n\n store.callHook('message.sent', this.messageInTransit, this)\n\n this.updateQueue = []\n }\n\n if (window.capturedRequestsForDusk) {\n window.capturedRequestsForDusk.push(sendMessage)\n } else {\n sendMessage()\n }\n }\n\n messageSendFailed() {\n store.callHook('message.failed', this.messageInTransit, this)\n\n this.messageInTransit.reject()\n\n this.messageInTransit = null\n }\n\n receiveMessage(message, payload) {\n message.storeResponse(payload)\n\n if (message instanceof PrefetchMessage) return\n\n this.handleResponse(message)\n\n // This bit of logic ensures that if actions were queued while a request was\n // out to the server, they are sent when the request comes back.\n if (this.updateQueue.length > 0) {\n this.fireMessage()\n }\n\n dispatch('livewire:update')\n }\n\n handleResponse(message) {\n let response = message.response\n \n this.updateServerMemoFromResponseAndMergeBackIntoResponse(message)\n\n store.callHook('message.received', message, this)\n\n if (response.effects.html) {\n // If we get HTML from the server, store it for the next time we might not.\n this.lastFreshHtml = response.effects.html\n\n this.handleMorph(response.effects.html.trim())\n } else {\n // It's important to still \"morphdom\" even when the server HTML hasn't changed,\n // because Alpine needs to be given the chance to update.\n this.handleMorph(this.lastFreshHtml)\n }\n\n if (response.effects.dirty) {\n this.forceRefreshDataBoundElementsMarkedAsDirty(\n response.effects.dirty\n )\n }\n\n if (! message.replaying) {\n this.messageInTransit && this.messageInTransit.resolve()\n\n this.messageInTransit = null\n\n if (response.effects.emits && response.effects.emits.length > 0) {\n response.effects.emits.forEach(event => {\n this.scopedListeners.call(event.event, ...event.params)\n\n if (event.selfOnly) {\n store.emitSelf(this.id, event.event, ...event.params)\n } else if (event.to) {\n store.emitTo(event.to, event.event, ...event.params)\n } else if (event.ancestorsOnly) {\n store.emitUp(this.el, event.event, ...event.params)\n } else {\n store.emit(event.event, ...event.params)\n }\n })\n }\n\n if (\n response.effects.dispatches &&\n response.effects.dispatches.length > 0\n ) {\n response.effects.dispatches.forEach(event => {\n const data = event.data ? event.data : {}\n const e = new CustomEvent(event.event, {\n bubbles: true,\n detail: data,\n })\n this.el.dispatchEvent(e)\n })\n }\n }\n\n store.callHook('message.processed', message, this)\n\n // This means \"$this->redirect()\" was called in the component. let's just bail and redirect.\n if (response.effects.redirect) {\n setTimeout(() => this.redirect(response.effects.redirect))\n\n return\n }\n }\n\n redirect(url) {\n if (window.Turbolinks && window.Turbolinks.supported) {\n window.Turbolinks.visit(url)\n } else {\n window.location.href = url\n }\n }\n\n forceRefreshDataBoundElementsMarkedAsDirty(dirtyInputs) {\n this.walk(el => {\n let directives = wireDirectives(el)\n if (directives.missing('model')) return\n\n const modelValue = directives.get('model').value\n\n if (DOM.hasFocus(el) && ! dirtyInputs.includes(modelValue)) return\n\n DOM.setInputValueFromModel(el, this)\n })\n }\n\n addPrefetchAction(action) {\n if (this.prefetchManager.actionHasPrefetch(action)) {\n return\n }\n\n const message = new PrefetchMessage(this, action)\n\n this.prefetchManager.addMessage(message)\n\n this.connection.sendMessage(message)\n }\n\n handleMorph(dom) {\n this.morphChanges = { changed: [], added: [], removed: [] }\n\n morphdom(this.el, dom, {\n childrenOnly: false,\n\n getNodeKey: node => {\n // This allows the tracking of elements by the \"key\" attribute, like in VueJs.\n return node.hasAttribute(`wire:key`)\n ? node.getAttribute(`wire:key`)\n : // If no \"key\", then first check for \"wire:id\", then \"id\"\n node.hasAttribute(`wire:id`)\n ? node.getAttribute(`wire:id`)\n : node.id\n },\n\n onBeforeNodeAdded: node => {\n //\n },\n\n onBeforeNodeDiscarded: node => {\n // If the node is from x-if with a transition.\n if (\n node.__x_inserted_me &&\n Array.from(node.attributes).some(attr =>\n /x-transition/.test(attr.name)\n )\n ) {\n return false\n }\n },\n\n onNodeDiscarded: node => {\n store.callHook('element.removed', node, this)\n\n if (node.__livewire) {\n store.removeComponent(node.__livewire)\n }\n\n this.morphChanges.removed.push(node)\n },\n\n onBeforeElChildrenUpdated: node => {\n //\n },\n\n onBeforeElUpdated: (from, to) => {\n // Because morphdom also supports vDom nodes, it uses isSameNode to detect\n // sameness. When dealing with DOM nodes, we want isEqualNode, otherwise\n // isSameNode will ALWAYS return false.\n if (from.isEqualNode(to)) {\n return false\n }\n\n store.callHook('element.updating', from, to, this)\n\n // Reset the index of wire:modeled select elements in the\n // \"to\" node before doing the diff, so that the options\n // have the proper in-memory .selected value set.\n if (\n from.hasAttribute('wire:model') &&\n from.tagName.toUpperCase() === 'SELECT'\n ) {\n to.selectedIndex = -1\n }\n\n let fromDirectives = wireDirectives(from)\n\n // Honor the \"wire:ignore\" attribute or the .__livewire_ignore element property.\n if (\n fromDirectives.has('ignore') ||\n from.__livewire_ignore === true ||\n from.__livewire_ignore_self === true\n ) {\n if (\n (fromDirectives.has('ignore') &&\n fromDirectives\n .get('ignore')\n .modifiers.includes('self')) ||\n from.__livewire_ignore_self === true\n ) {\n // Don't update children of \"wire:ingore.self\" attribute.\n from.skipElUpdatingButStillUpdateChildren = true\n } else {\n return false\n }\n }\n\n // Children will update themselves.\n if (DOM.isComponentRootEl(from) && from.getAttribute('wire:id') !== this.id) return false\n\n // Give the root Livewire \"to\" element, the same object reference as the \"from\"\n // element. This ensures new Alpine magics like $wire and @entangle can\n // initialize in the context of a real Livewire component object.\n if (DOM.isComponentRootEl(from)) to.__livewire = this\n\n alpinifyElementsForMorphdom(from, to)\n },\n\n onElUpdated: node => {\n this.morphChanges.changed.push(node)\n\n store.callHook('element.updated', node, this)\n },\n\n onNodeAdded: node => {\n const closestComponentId = DOM.closestRoot(node).getAttribute('wire:id')\n\n if (closestComponentId === this.id) {\n if (nodeInitializer.initialize(node, this) === false) {\n return false\n }\n } else if (DOM.isComponentRootEl(node)) {\n store.addComponent(new Component(node, this.connection))\n\n // We don't need to initialize children, the\n // new Component constructor will do that for us.\n node.skipAddingChildren = true\n }\n\n this.morphChanges.added.push(node)\n },\n })\n\n window.skipShow = false\n }\n\n walk(callback, callbackWhenNewComponentIsEncountered = el => { }) {\n walk(this.el, el => {\n // Skip the root component element.\n if (el.isSameNode(this.el)) {\n callback(el)\n return\n }\n\n // If we encounter a nested component, skip walking that tree.\n if (el.hasAttribute('wire:id')) {\n callbackWhenNewComponentIsEncountered(el)\n\n return false\n }\n\n if (callback(el) === false) {\n return false\n }\n })\n }\n\n modelSyncDebounce(callback, time) {\n // Prepare yourself for what's happening here.\n // Any text input with wire:model on it should be \"debounced\" by ~150ms by default.\n // We can't use a simple debounce function because we need a way to clear all the pending\n // debounces if a user submits a form or performs some other action.\n // This is a modified debounce function that acts just like a debounce, except it stores\n // the pending callbacks in a global property so we can \"clear them\" on command instead\n // of waiting for their setTimeouts to expire. I know.\n if (!this.modelDebounceCallbacks) this.modelDebounceCallbacks = []\n\n // This is a \"null\" callback. Each wire:model will resister one of these upon initialization.\n let callbackRegister = { callback: () => { } }\n this.modelDebounceCallbacks.push(callbackRegister)\n\n // This is a normal \"timeout\" for a debounce function.\n var timeout\n\n return e => {\n clearTimeout(timeout)\n\n timeout = setTimeout(() => {\n callback(e)\n timeout = undefined\n\n // Because we just called the callback, let's return the\n // callback register to it's normal \"null\" state.\n callbackRegister.callback = () => { }\n }, time)\n\n // Register the current callback in the register as a kind-of \"escape-hatch\".\n callbackRegister.callback = () => {\n clearTimeout(timeout)\n callback(e)\n }\n }\n }\n\n callAfterModelDebounce(callback) {\n // This is to protect against the following scenario:\n // A user is typing into a debounced input, and hits the enter key.\n // If the enter key submits a form or something, the submission\n // will happen BEFORE the model input finishes syncing because\n // of the debounce. This makes sure to clear anything in the debounce queue.\n\n if (this.modelDebounceCallbacks) {\n this.modelDebounceCallbacks.forEach(callbackRegister => {\n callbackRegister.callback()\n callbackRegister.callback = () => { }\n })\n }\n\n callback()\n }\n\n addListenerForTeardown(teardownCallback) {\n this.tearDownCallbacks.push(teardownCallback)\n }\n\n tearDown() {\n this.tearDownCallbacks.forEach(callback => callback())\n }\n\n upload(\n name,\n file,\n finishCallback = () => { },\n errorCallback = () => { },\n progressCallback = () => { }\n ) {\n this.uploadManager.upload(\n name,\n file,\n finishCallback,\n errorCallback,\n progressCallback\n )\n }\n\n uploadMultiple(\n name,\n files,\n finishCallback = () => { },\n errorCallback = () => { },\n progressCallback = () => { }\n ) {\n this.uploadManager.uploadMultiple(\n name,\n files,\n finishCallback,\n errorCallback,\n progressCallback\n )\n }\n\n removeUpload(\n name,\n tmpFilename,\n finishCallback = () => { },\n errorCallback = () => { }\n ) {\n this.uploadManager.removeUpload(\n name,\n tmpFilename,\n finishCallback,\n errorCallback\n )\n }\n\n get $wire() {\n if (this.dollarWireProxy) return this.dollarWireProxy\n\n let refObj = {}\n\n let component = this\n\n return (this.dollarWireProxy = new Proxy(refObj, {\n get(object, property) {\n if (['_x_interceptor'].includes(property)) return\n\n if (property === 'entangle') {\n return getEntangleFunction(component)\n }\n\n if (property === '__instance') return component\n\n // Forward \"emits\" to base Livewire object.\n if (typeof property === 'string' && property.match(/^emit.*/)) return function (...args) {\n if (property === 'emitSelf') return store.emitSelf(component.id, ...args)\n if (property === 'emitUp') return store.emitUp(component.el, ...args)\n\n return store[property](...args)\n }\n\n if (\n [\n 'get',\n 'set',\n 'sync',\n 'call',\n 'on',\n 'upload',\n 'uploadMultiple',\n 'removeUpload',\n ].includes(property)\n ) {\n // Forward public API methods right away.\n return function (...args) {\n return component[property].apply(component, args)\n }\n }\n\n // If the property exists on the data, return it.\n let getResult = component.get(property)\n\n // If the property does not exist, try calling the method on the class.\n if (getResult === undefined) {\n return function (...args) {\n return component.call.apply(component, [\n property,\n ...args,\n ])\n }\n }\n\n return getResult\n },\n\n set: function (obj, prop, value) {\n component.set(prop, value)\n\n return true\n },\n }))\n }\n}\n","import store from '@/Store'\n\nexport default function () {\n store.registerHook('interceptWireModelAttachListener', (directive, el, component) => {\n if (! (el.tagName.toLowerCase() === 'input' && el.type === 'file')) return\n\n let start = () => el.dispatchEvent(new CustomEvent('livewire-upload-start', { bubbles: true }))\n let finish = () => el.dispatchEvent(new CustomEvent('livewire-upload-finish', { bubbles: true }))\n let error = () => el.dispatchEvent(new CustomEvent('livewire-upload-error', { bubbles: true }))\n let progress = (progressEvent) => {\n var percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total )\n\n el.dispatchEvent(\n new CustomEvent('livewire-upload-progress', {\n bubbles: true, detail: { progress: percentCompleted }\n })\n )\n }\n\n let eventHandler = e => {\n if (e.target.files.length === 0) return\n\n start()\n\n if (e.target.multiple) {\n component.uploadMultiple(directive.value, e.target.files, finish, error, progress)\n } else {\n component.upload(directive.value, e.target.files[0], finish, error, progress)\n }\n }\n\n el.addEventListener('change', eventHandler)\n\n // There's a bug in browsers where selecting a file, removing it,\n // then re-adding it doesn't fire the change event. This fixes it.\n // Reference: https://stackoverflow.com/questions/12030686/html-input-file-selection-event-not-firing-upon-selecting-the-same-file\n let clearFileInputValue = () => { el.value = null }\n el.addEventListener('click', clearFileInputValue)\n\n component.addListenerForTeardown(() => {\n el.removeEventListener('change', eventHandler)\n el.removeEventListener('click', clearFileInputValue)\n })\n })\n}\n","import store from '@/Store'\n\nexport default function () {\n store.registerHook('component.initialized', component => {\n if (Array.isArray(component.listeners)) {\n component.listeners.forEach(event => {\n if (event.startsWith('echo')) {\n if (typeof Echo === 'undefined') {\n console.warn('Laravel Echo cannot be found')\n return\n }\n\n let event_parts = event.split(/(echo:|echo-)|:|,/)\n\n if (event_parts[1] == 'echo:') {\n event_parts.splice(2, 0, 'channel', undefined)\n }\n\n if (event_parts[2] == 'notification') {\n event_parts.push(undefined, undefined)\n }\n\n let [\n s1,\n signature,\n channel_type,\n s2,\n channel,\n s3,\n event_name,\n ] = event_parts\n\n if (['channel', 'private', 'encryptedPrivate'].includes(channel_type)) {\n Echo[channel_type](channel).listen(event_name, e => {\n store.emit(event, e)\n })\n } else if (channel_type == 'presence') {\n if (['here', 'joining', 'leaving'].includes(event_name)) {\n Echo.join(channel)[event_name](e => {\n store.emit(event, e)\n })\n }else{\n Echo.join(channel).listen(event_name, e => {\n store.emit(event, e)\n })\n }\n } else if (channel_type == 'notification') {\n Echo.private(channel).notification(notification => {\n store.emit(event, notification)\n })\n } else {\n console.warn('Echo channel type not yet supported')\n }\n }\n })\n }\n })\n}\n","import store from '@/Store'\nimport DOM from '../dom/dom'\nimport { wireDirectives } from '../util'\n\nexport default function () {\n store.registerHook('component.initialized', component => {\n component.dirtyEls = []\n })\n\n store.registerHook('element.initialized', (el, component) => {\n if (wireDirectives(el).missing('dirty')) return\n\n component.dirtyEls.push(el)\n })\n\n store.registerHook(\n 'interceptWireModelAttachListener',\n (directive, el, component) => {\n let property = directive.value\n\n el.addEventListener('input', () => {\n component.dirtyEls.forEach(dirtyEl => {\n let directives = wireDirectives(dirtyEl)\n if (\n (directives.has('model') &&\n directives.get('model').value ===\n property) ||\n (directives.has('target') &&\n directives\n .get('target')\n .value.split(',')\n .map(s => s.trim())\n .includes(property))\n ) {\n let isDirty = DOM.valueFromInput(el, component) != component.get(property)\n\n setDirtyState(dirtyEl, isDirty)\n }\n })\n })\n }\n )\n\n store.registerHook('message.received', (message, component) => {\n component.dirtyEls.forEach(element => {\n if (element.__livewire_dirty_cleanup) {\n element.__livewire_dirty_cleanup()\n delete element.__livewire_dirty_cleanup\n }\n })\n })\n\n store.registerHook('element.removed', (el, component) => {\n component.dirtyEls.forEach((element, index) => {\n if (element.isSameNode(el)) {\n component.dirtyEls.splice(index, 1)\n }\n })\n })\n}\n\nfunction setDirtyState(el, isDirty) {\n const directive = wireDirectives(el).get('dirty')\n\n if (directive.modifiers.includes('class')) {\n const classes = directive.value.split(' ')\n if (directive.modifiers.includes('remove') !== isDirty) {\n el.classList.add(...classes)\n el.__livewire_dirty_cleanup = () => el.classList.remove(...classes)\n } else {\n el.classList.remove(...classes)\n el.__livewire_dirty_cleanup = () => el.classList.add(...classes)\n }\n } else if (directive.modifiers.includes('attr')) {\n if (directive.modifiers.includes('remove') !== isDirty) {\n el.setAttribute(directive.value, true)\n el.__livewire_dirty_cleanup = () =>\n el.removeAttribute(directive.value)\n } else {\n el.removeAttribute(directive.value)\n el.__livewire_dirty_cleanup = () =>\n el.setAttribute(directive.value, true)\n }\n } else if (! wireDirectives(el).get('model')) {\n el.style.display = isDirty ? 'inline-block' : 'none'\n el.__livewire_dirty_cleanup = () =>\n (el.style.display = isDirty ? 'none' : 'inline-block')\n }\n}\n","import store from '@/Store'\nimport { wireDirectives } from '../util'\n\nlet cleanupStackByComponentId = {}\n\nexport default function () {\n store.registerHook('element.initialized', (el, component) => {\n let directives = wireDirectives(el)\n\n if (directives.missing('submit')) return\n\n // Set a forms \"disabled\" state on inputs and buttons.\n // Livewire will clean it all up automatically when the form\n // submission returns and the new DOM lacks these additions.\n el.addEventListener('submit', () => {\n cleanupStackByComponentId[component.id] = []\n\n component.walk(node => {\n if (! el.contains(node)) return\n\n if (node.hasAttribute('wire:ignore')) return false\n\n if (\n // <button type=\"submit\">\n (node.tagName.toLowerCase() === 'button' &&\n node.type === 'submit') ||\n // <select>\n node.tagName.toLowerCase() === 'select' ||\n // <input type=\"checkbox|radio\">\n (node.tagName.toLowerCase() === 'input' &&\n (node.type === 'checkbox' || node.type === 'radio'))\n ) {\n if (!node.disabled)\n cleanupStackByComponentId[component.id].push(\n () => (node.disabled = false)\n )\n\n node.disabled = true\n } else if (\n // <input type=\"text\">\n node.tagName.toLowerCase() === 'input' ||\n // <textarea>\n node.tagName.toLowerCase() === 'textarea'\n ) {\n if (!node.readOnly)\n cleanupStackByComponentId[component.id].push(\n () => (node.readOnly = false)\n )\n\n node.readOnly = true\n }\n })\n })\n })\n\n store.registerHook('message.failed', (message, component) => cleanup(component))\n store.registerHook('message.received', (message, component) => cleanup(component))\n}\n\nfunction cleanup(component) {\n if (!cleanupStackByComponentId[component.id]) return\n\n while (cleanupStackByComponentId[component.id].length > 0) {\n cleanupStackByComponentId[component.id].shift()()\n }\n}\n","import store from '@/Store'\n\nexport default function () {\n store.registerHook('message.received', (message, component) => {\n let response = message.response\n\n if (! response.effects.download) return\n\n // We need to use window.webkitURL so downloads work on iOS Safari.\n let urlObject = window.webkitURL || window.URL\n\n let url = urlObject.createObjectURL(\n base64toBlob(response.effects.download.content, response.effects.download.contentType)\n )\n\n let invisibleLink = document.createElement('a')\n\n invisibleLink.style.display = 'none'\n invisibleLink.href = url\n invisibleLink.download = response.effects.download.name\n\n document.body.appendChild(invisibleLink)\n\n invisibleLink.click()\n\n setTimeout(function() {\n urlObject.revokeObjectURL(url)\n }, 0);\n })\n}\n\nfunction base64toBlob(b64Data, contentType = '', sliceSize = 512) {\n const byteCharacters = atob(b64Data)\n const byteArrays = []\n\n if (contentType === null) contentType = ''\n\n for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\n let slice = byteCharacters.slice(offset, offset + sliceSize)\n\n let byteNumbers = new Array(slice.length)\n\n for (let i = 0; i < slice.length; i++) {\n byteNumbers[i] = slice.charCodeAt(i)\n }\n\n let byteArray = new Uint8Array(byteNumbers)\n\n byteArrays.push(byteArray)\n }\n\n return new Blob(byteArrays, { type: contentType });\n}\n","import store from '@/Store'\nimport { wireDirectives} from '@/util'\n\nvar offlineEls = [];\n\nexport default function () {\n store.registerHook('element.initialized', el => {\n if (wireDirectives(el).missing('offline')) return\n\n offlineEls.push(el)\n })\n\n window.addEventListener('offline', () => {\n store.livewireIsOffline = true\n\n offlineEls.forEach(el => {\n toggleOffline(el, true)\n })\n })\n\n window.addEventListener('online', () => {\n store.livewireIsOffline = false\n\n offlineEls.forEach(el => {\n toggleOffline(el, false)\n })\n })\n\n store.registerHook('element.removed', el => {\n offlineEls = offlineEls.filter(el => ! el.isSameNode(el))\n })\n}\n\nfunction toggleOffline(el, isOffline) {\n let directives = wireDirectives(el)\n let directive = directives.get('offline')\n\n if (directive.modifiers.includes('class')) {\n const classes = directive.value.split(' ')\n if (directive.modifiers.includes('remove') !== isOffline) {\n el.classList.add(...classes)\n } else {\n el.classList.remove(...classes)\n }\n } else if (directive.modifiers.includes('attr')) {\n if (directive.modifiers.includes('remove') !== isOffline) {\n el.setAttribute(directive.value, true)\n } else {\n el.removeAttribute(directive.value)\n }\n } else if (! directives.get('model')) {\n el.style.display = isOffline ? 'inline-block' : 'none'\n }\n}\n","import store from '@/Store'\nimport Message from '@/Message';\n\nexport default function () {\n\n let initializedPath = false\n\n let componentIdsThatAreWritingToHistoryState = new Set\n\n LivewireStateManager.clearState()\n\n store.registerHook('component.initialized', component => {\n if (! component.effects.path) return\n\n // We are using setTimeout() to make sure all the components on the page have\n // loaded before we store anything in the history state (because the position\n // of a component on a page matters for generating its state signature).\n setTimeout(() => {\n let url = onlyChangeThePathAndQueryString(initializedPath ? undefined : component.effects.path)\n\n // Generate faux response.\n let response = {\n serverMemo: component.serverMemo,\n effects: component.effects,\n }\n\n normalizeResponse(response, component)\n\n LivewireStateManager.replaceState(url, response, component)\n\n componentIdsThatAreWritingToHistoryState.add(component.id)\n\n initializedPath = true\n })\n })\n\n store.registerHook('message.processed', (message, component) => {\n // Preventing a circular dependancy.\n if (message.replaying) return\n\n let { response } = message\n\n let effects = response.effects || {}\n\n normalizeResponse(response, component)\n\n if ('path' in effects && effects.path !== window.location.href) {\n let url = onlyChangeThePathAndQueryString(effects.path)\n\n LivewireStateManager.pushState(url, response, component)\n\n componentIdsThatAreWritingToHistoryState.add(component.id)\n } else {\n // If the current component has changed it's state, but hasn't written\n // anything new to the URL, we still need to update it's data in the\n // history state so that when a back button is hit, it is caught\n // up to the most recent known data state.\n if (componentIdsThatAreWritingToHistoryState.has(component.id)) {\n LivewireStateManager.replaceState(window.location.href, response, component)\n }\n }\n })\n\n window.addEventListener('popstate', event => {\n if (LivewireStateManager.missingState(event)) return\n\n LivewireStateManager.replayResponses(event, (response, component) => {\n let message = new Message(component, [])\n\n message.storeResponse(response)\n\n message.replaying = true\n\n component.handleResponse(message)\n })\n })\n\n function normalizeResponse(response, component) {\n // Add ALL properties as \"dirty\" so that when the back button is pressed,\n // they ALL are forced to refresh on the page (even if the HTML didn't change).\n response.effects.dirty = Object.keys(response.serverMemo.data)\n\n // Sometimes Livewire doesn't return html from the server to save on bandwidth.\n // So we need to set the HTML no matter what.\n response.effects.html = component.lastFreshHtml\n }\n\n function onlyChangeThePathAndQueryString(url) {\n if (! url) return\n\n let destination = new URL(url)\n\n let afterOrigin = destination.href.replace(destination.origin, '').replace(/\\?$/, '')\n\n return window.location.origin + afterOrigin + window.location.hash\n }\n\n store.registerHook('element.updating', (from, to, component) => {\n // It looks like the element we are about to update is the root\n // element of the component. Let's store this knowledge to\n // reference after update in the \"element.updated\" hook.\n if (from.getAttribute('wire:id') === component.id) {\n component.lastKnownDomId = component.id\n }\n })\n\n store.registerHook('element.updated', (node, component) => {\n // If the element that was just updated was the root DOM element.\n if (component.lastKnownDomId) {\n // Let's check and see if the wire:id was the thing that changed.\n if (node.getAttribute('wire:id') !== component.lastKnownDomId) {\n // If so, we need to change this ID globally everwhere it's referenced.\n store.changeComponentId(component, node.getAttribute('wire:id'))\n }\n\n // Either way, we'll unset this for the next update.\n delete component.lastKnownDomId\n }\n\n // We have to update the component ID because we are replaying responses\n // from similar components but with completely different IDs. If didn't\n // update the component ID, the checksums would fail.\n })\n}\n\nlet LivewireStateManager = {\n replaceState(url, response, component) {\n this.updateState('replaceState', url, response, component)\n },\n\n pushState(url, response, component) {\n this.updateState('pushState', url, response, component)\n },\n\n updateState(method, url, response, component) {\n let state = this.currentState()\n\n state.storeResponse(response, component)\n\n let stateArray = state.toStateArray()\n\n // Copy over existing history state if it's an object, so we don't overwrite it.\n let fullstateObject = Object.assign(history.state || {}, { livewire: stateArray })\n\n let capitalize = subject => subject.charAt(0).toUpperCase() + subject.slice(1)\n\n store.callHook('before'+capitalize(method), fullstateObject, url, component)\n\n try {\n if (decodeURI(url) != 'undefined') {\n url = decodeURI(url).replaceAll(' ', '+').replaceAll('\\\\', '%5C')\n }\n\n history[method](fullstateObject, '', url)\n } catch (error) {\n // Firefox has a 160kb limit to history state entries.\n // If that limit is reached, we'll instead put it in\n // sessionStorage and store a reference to it.\n if (error.name === 'NS_ERROR_ILLEGAL_VALUE') {\n let key = this.storeInSession(stateArray)\n\n fullstateObject.livewire = key\n\n history[method](fullstateObject, '', url)\n }\n }\n },\n\n replayResponses(event, callback) {\n if (! event.state.livewire) return\n\n let state = typeof event.state.livewire === 'string'\n ? new LivewireState(this.getFromSession(event.state.livewire))\n : new LivewireState(event.state.livewire)\n\n state.replayResponses(callback)\n },\n\n currentState() {\n if (! history.state) return new LivewireState\n if (! history.state.livewire) return new LivewireState\n\n let state = typeof history.state.livewire === 'string'\n ? new LivewireState(this.getFromSession(history.state.livewire))\n : new LivewireState(history.state.livewire)\n\n return state\n },\n\n missingState(event) {\n return ! (event.state && event.state.livewire)\n },\n\n clearState() {\n // This is to prevent exponentially increasing the size of our state on page refresh.\n if (window.history.state) window.history.state.livewire = (new LivewireState).toStateArray();\n },\n\n storeInSession(value) {\n let key = 'livewire:'+(new Date).getTime()\n\n let stringifiedValue = JSON.stringify(value)\n\n this.tryToStoreInSession(key, stringifiedValue)\n\n return key\n },\n\n tryToStoreInSession(key, value) {\n // sessionStorage has a max storage limit (usally 5MB).\n // If we meet that limit, we'll start removing entries\n // (oldest first), until there's enough space to store\n // the new one.\n try {\n sessionStorage.setItem(key, value)\n } catch (error) {\n // 22 is Chrome, 1-14 is other browsers.\n if (! [22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14].includes(error.code)) return\n\n let oldestTimestamp = Object.keys(sessionStorage)\n .map(key => Number(key.replace('livewire:', '')))\n .sort()\n .shift()\n\n if (! oldestTimestamp) return\n\n sessionStorage.removeItem('livewire:'+oldestTimestamp)\n\n this.tryToStoreInSession(key, value)\n }\n },\n\n getFromSession(key) {\n let item = sessionStorage.getItem(key)\n\n if (! item) return\n\n return JSON.parse(item)\n },\n}\n\nclass LivewireState\n{\n constructor(stateArray = []) { this.items = stateArray }\n\n toStateArray() { return this.items }\n\n pushItemInProperOrder(signature, response, component) {\n let targetItem = { signature, response }\n\n // First, we'll check if this signature already has an entry, if so, replace it.\n let existingIndex = this.items.findIndex(item => item.signature === signature)\n\n if (existingIndex !== -1) return this.items[existingIndex] = targetItem\n\n // If it doesn't already exist, we'll add it, but we MUST first see if any of its\n // parents components have entries, and insert it immediately before them.\n // This way, when we replay responses, we will always start with the most\n // inward components and go outwards.\n\n let closestParentId = store.getClosestParentId(component.id, this.componentIdsWithStoredResponses())\n\n if (! closestParentId) return this.items.unshift(targetItem)\n\n let closestParentIndex = this.items.findIndex(item => {\n let { originalComponentId } = this.parseSignature(item.signature)\n\n if (originalComponentId === closestParentId) return true\n })\n\n this.items.splice(closestParentIndex, 0, targetItem);\n }\n\n storeResponse(response, component) {\n let signature = this.getComponentNameBasedSignature(component)\n\n this.pushItemInProperOrder(signature, response, component)\n }\n\n replayResponses(callback) {\n this.items.forEach(({ signature, response }) => {\n let component = this.findComponentBySignature(signature)\n\n if (! component) return\n\n callback(response, component)\n })\n }\n\n // We can't just store component reponses by their id because\n // ids change on every refresh, so history state won't have\n // a component to apply it's changes to. Instead we must\n // generate a unique id based on the components name\n // and it's relative position amongst others with\n // the same name that are loaded on the page.\n getComponentNameBasedSignature(component) {\n let componentName = component.fingerprint.name\n let sameNamedComponents = store.getComponentsByName(componentName)\n let componentIndex = sameNamedComponents.indexOf(component)\n\n return `${component.id}:${componentName}:${componentIndex}`\n }\n\n findComponentBySignature(signature) {\n let { componentName, componentIndex } = this.parseSignature(signature)\n\n let sameNamedComponents = store.getComponentsByName(componentName)\n\n // If we found the component in the proper place, return it,\n // otherwise return the first one.\n return sameNamedComponents[componentIndex] || sameNamedComponents[0] || console.warn(`Livewire: couldn't find component on page: ${componentName}`)\n }\n\n parseSignature(signature) {\n let [originalComponentId, componentName, componentIndex] = signature.split(':')\n\n return { originalComponentId, componentName, componentIndex }\n }\n\n componentIdsWithStoredResponses() {\n return this.items.map(({ signature }) => {\n let { originalComponentId } = this.parseSignature(signature)\n\n return originalComponentId\n })\n }\n}\n","import store from '@/Store'\n\nexport default function () {\n store.registerHook('message.received', (message, component) => {\n let response = message.response\n\n if (! response.effects.forStack) return\n\n // Let's store the updates in an array for execution after the loop,\n // this way we can avoid keyHasAlreadyBeenAddedToTheStack races.\n let updates = []\n \n response.effects.forStack.forEach(({ key, stack, type, contents }) => {\n let startEl = document.querySelector(`[livewire-stack=\"${stack}\"]`)\n let endEl = document.querySelector(`[livewire-end-stack=\"${stack}\"]`)\n if (! startEl || ! endEl) return\n\n if (keyHasAlreadyBeenAddedToTheStack(startEl, endEl, key)) return\n\n let prepend = el => startEl.parentElement.insertBefore(el, startEl.nextElementSibling)\n let push = el => endEl.parentElement.insertBefore(el, endEl)\n\n let frag = createFragment(contents)\n\n updates.push(() => type === 'push' ? push(frag) : prepend(frag))\n })\n\n while (updates.length > 0) updates.shift()() \n })\n}\n\nfunction keyHasAlreadyBeenAddedToTheStack(startEl, endEl, key) {\n let findKeyMarker = el => {\n if (el.isSameNode(endEl)) return\n\n return el.matches(`[livewire-stack-key=\"${key}\"]`) ? el : findKeyMarker(el.nextElementSibling)\n }\n\n return findKeyMarker(startEl)\n}\n\nfunction createFragment(html) {\n return document.createRange().createContextualFragment(html)\n}\n","import DOM from '@/dom/dom'\nimport '@/dom/polyfills/index'\nimport store from '@/Store'\nimport Connection from '@/connection'\nimport Polling from '@/component/Polling'\nimport Component from '@/component/index'\nimport { dispatch, wireDirectives } from '@/util'\nimport FileUploads from '@/component/FileUploads'\nimport LaravelEcho from '@/component/LaravelEcho'\nimport DirtyStates from '@/component/DirtyStates'\nimport DisableForms from '@/component/DisableForms'\nimport FileDownloads from '@/component/FileDownloads'\nimport LoadingStates from '@/component/LoadingStates'\nimport OfflineStates from '@/component/OfflineStates'\nimport SyncBrowserHistory from '@/component/SyncBrowserHistory'\nimport SupportAlpine from '@/component/SupportAlpine'\nimport SupportStacks from '@/component/SupportStacks'\n\nclass Livewire {\n constructor() {\n this.connection = new Connection()\n this.components = store\n this.devToolsEnabled = false\n this.onLoadCallback = () => { }\n }\n\n first() {\n return Object.values(this.components.componentsById)[0].$wire\n }\n\n find(componentId) {\n return this.components.componentsById[componentId].$wire\n }\n\n all() {\n return Object.values(this.components.componentsById).map(\n component => component.$wire\n )\n }\n\n directive(name, callback) {\n this.components.registerDirective(name, callback)\n }\n\n hook(name, callback) {\n this.components.registerHook(name, callback)\n }\n\n onLoad(callback) {\n this.onLoadCallback = callback\n }\n\n onError(callback) {\n this.components.onErrorCallback = callback\n }\n\n emit(event, ...params) {\n this.components.emit(event, ...params)\n }\n\n emitTo(name, event, ...params) {\n this.components.emitTo(name, event, ...params)\n }\n\n on(event, callback) {\n this.components.on(event, callback)\n }\n\n addHeaders(headers) {\n this.connection.headers = { ...this.connection.headers, ...headers}\n }\n\n devTools(enableDevtools) {\n this.devToolsEnabled = enableDevtools\n }\n\n restart() {\n this.stop()\n this.start()\n }\n\n stop() {\n this.components.tearDownComponents()\n }\n\n start() {\n DOM.rootComponentElementsWithNoParents().forEach(el => {\n this.components.addComponent(new Component(el, this.connection))\n })\n\n this.onLoadCallback()\n dispatch('livewire:load')\n\n document.addEventListener(\n 'visibilitychange',\n () => {\n this.components.livewireIsInBackground = document.hidden\n },\n false\n )\n\n this.components.initialRenderIsFinished = true\n }\n\n rescan(node = null) {\n DOM.rootComponentElementsWithNoParents(node).forEach(el => {\n const componentId = wireDirectives(el).get('id').value\n\n if (this.components.hasComponent(componentId)) return\n\n this.components.addComponent(new Component(el, this.connection))\n })\n }\n\n onPageExpired(callback) {\n this.components.sessionHasExpiredCallback = callback\n }\n}\n\nif (!window.Livewire) {\n window.Livewire = Livewire\n}\n\nmonkeyPatchDomSetAttributeToAllowAtSymbols()\n\nSyncBrowserHistory()\nSupportAlpine()\nSupportStacks()\nFileDownloads()\nOfflineStates()\nLoadingStates()\nDisableForms()\nFileUploads()\nLaravelEcho()\nDirtyStates()\nPolling()\n\ndispatch('livewire:available')\n\nexport default Livewire\n\nfunction monkeyPatchDomSetAttributeToAllowAtSymbols() {\n // Because morphdom may add attributes to elements containing \"@\" symbols\n // like in the case of an Alpine `@click` directive, we have to patch\n // the standard Element.setAttribute method to allow this to work.\n let original = Element.prototype.setAttribute\n\n let hostDiv = document.createElement('div')\n\n Element.prototype.setAttribute = function newSetAttribute(name, value) {\n if (! name.includes('@')) {\n return original.call(this, name, value)\n }\n\n hostDiv.innerHTML = `<span ${name}=\"${value}\"></span>`\n\n let attr = hostDiv.firstElementChild.getAttributeNode(name)\n\n hostDiv.firstElementChild.removeAttributeNode(attr)\n\n this.setAttributeNode(attr)\n }\n}\n"],"names":["debounce","func","wait","immediate","timeout","context","this","args","arguments","later","apply","callNow","clearTimeout","setTimeout","wireDirectives","el","DirectiveManager","directives","extractTypeModifiersAndValue","type","map","directive","includes","has","find","Array","from","getAttributeNames","filter","name","match","RegExp","replace","split","modifiers","Directive","_this","rawName","eventContext","getAttribute","parseOutMethodAndParams","value","method","params","defaultDuration","durationInMilliSeconds","durationInMilliSecondsString","mod","durationInSecondsString","Number","rawMethod","methodAndParamString","Function","fallback","walk","root","callback","node","firstElementChild","nextElementSibling","dispatch","eventName","event","document","createEvent","initEvent","dispatchEvent","getCsrfToken","tokenTag","head","querySelector","content","window","livewire_token","undefined","kebabCase","subject","toLowerCase","val","isArray","target","path","options","isObject","default","isValidObject","String","isString","splitChar","separator","joinChar","isValid","segs","len","length","idx","prop","slice","join","hasProp","n","key","skipWatcher","resolveCallback","rejectCallback","signature","Math","random","toString","substring","btoa","encodeURIComponent","outerHTML","thing","payload","id","JSON","stringify","Action","MessageBus","listeners","push","forEach","Object","keys","availableHooks","bus","register","call","component","store","componentsById","initialRenderIsFinished","livewireIsInBackground","livewireIsOffline","sessionHasExpired","sessionHasExpiredCallback","hooks","HookManager","onErrorCallback","components","addComponent","findComponent","getComponentsByName","hasComponent","tearDownComponents","_this2","removeComponent","on","emit","componentsListeningForEvent","addAction","EventAction","emitUp","componentsListeningForEventThatAreTreeAncestors","emitSelf","componentId","emitTo","componentName","parentIds","parent","parentElement","closest","registerDirective","registerHook","callHook","changeComponentId","newId","oldId","fingerprint","children","serverMemo","entries","tagName","tearDown","onError","getClosestParentId","childId","subsetOfParentIds","distancesByParentId","parentId","distance","_this3","getDistanceToChild","closestParentId","smallestDistance","min","values","distanceMemo","parentComponent","childIds","i","rootComponentElements","querySelectorAll","rootComponentElementsWithNoParents","allEls","onlyChildEls","allModelElementsInside","getByAttributeAndValue","attribute","nextFrame","fn","requestAnimationFrame","bind","closestRoot","closestByAttribute","closestEl","isComponentRootEl","hasAttribute","removeAttribute","setAttribute","hasFocus","activeElement","isInput","toUpperCase","isTextInput","valueFromInput","modelName","get","modelValue","deferredActions","data","mergeCheckboxValueIntoArray","checked","multiple","getSelectValues","arrayValue","concat","item","setInputValueFromModel","modelString","setInputValue","valueFound","updateSelect","option","selected","text","arrayWrappedValue","ceil","floor","argument","isNaN","it","TypeError","createMethod","CONVERT_TO_STRING","$this","pos","first","second","S","requireObjectCoercible","position","toInteger","size","charCodeAt","charAt","codeAt","check","globalThis","self","global","exec","error","fails","defineProperty","EXISTS","createElement","DESCRIPTORS","a","input","PREFERRED_STRING","valueOf","$defineProperty","O","P","Attributes","anObject","toPrimitive","IE8_DOM_DEFINE","bitmap","enumerable","configurable","writable","object","definePropertyModule","f","createPropertyDescriptor","createNonEnumerableProperty","SHARED","setGlobal","functionToString","inspectSource","WeakMap","test","hasOwnProperty","hasOwn","toObject","module","version","mode","copyright","postfix","shared","uid","OBJECT_ALREADY_INITIALIZED","set","enforce","getterFor","TYPE","state","NATIVE_WEAK_MAP","wmget","wmhas","wmset","metadata","facade","STATE","sharedKey","hiddenKeys","objectHas","$propertyIsEnumerable","propertyIsEnumerable","getOwnPropertyDescriptor","NASHORN_BUG","V","descriptor","classof","IndexedObject","$getOwnPropertyDescriptor","toIndexedObject","propertyIsEnumerableModule","getInternalState","InternalStateModule","enforceInternalState","TEMPLATE","unsafe","simple","noTargetGet","source","prototype","aFunction","variable","namespace","max","index","integer","IS_INCLUDES","fromIndex","toLength","toAbsoluteIndex","indexOf","require$$0","names","result","enumBugKeys","getOwnPropertyNames","internalObjectKeys","getOwnPropertySymbols","getBuiltIn","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","ownKeys","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","normalize","POLYFILL","NATIVE","string","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","forced","copyConstructorProperties","sham","redefine","F","constructor","getPrototypeOf","IE_PROTO","ObjectPrototype","CORRECT_PROTOTYPE_GETTER","process","versions","v8","userAgent","symbol","Symbol","V8_VERSION","NATIVE_SYMBOL","iterator","WellKnownSymbolsStore","createWellKnownSymbol","USE_SYMBOL_AS_UID","withoutSetter","ITERATOR","wellKnownSymbol","BUGGY_SAFARI_ITERATORS","returnThis","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","NEW_ITERATOR_PROTOTYPE","defineProperties","Properties","objectKeys","GT","LT","PROTOTYPE","SCRIPT","EmptyConstructor","scriptTag","NullProtoObjectViaActiveX","activeXDocument","write","close","temp","parentWindow","NullProtoObjectViaIFrame","iframeDocument","iframe","documentCreateElement","JS","style","display","html","appendChild","src","contentWindow","open","NullProtoObject","domain","ActiveXObject","create","TO_STRING_TAG","TAG","IteratorConstructor","NAME","next","setToStringTag","Iterators","setPrototypeOf","setter","CORRECT_SETTER","proto","aPossiblePrototype","__proto__","IteratorsCore","KEYS","VALUES","ENTRIES","Iterable","DEFAULT","IS_SET","FORCED","createIteratorConstructor","CurrentIteratorPrototype","methods","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","$","STRING_ITERATOR","setInternalState","defineIterator","iterated","point","done","that","b","c","returnMethod","iteratorClose","ArrayPrototype","propertyKey","CORRECT_ARGUMENTS","classofRaw","tryGet","TO_STRING_TAG_SUPPORT","tag","callee","arrayLike","step","C","argumentsLength","mapfn","mapping","iteratorMethod","getIteratorMethod","isArrayIteratorMethod","createProperty","callWithSafeIterationClosing","SAFE_CLOSING","called","iteratorWithReturn","return","SKIP_CLOSING","ITERATION_SUPPORT","INCORRECT_ITERATION","checkCorrectnessOfIteration","iterable","UNSCOPABLES","$includes","addToUnscopables","CONSTRUCTOR","METHOD","entryUnbind","arg","flattenIntoArray","original","sourceLen","start","depth","mapper","thisArg","element","targetIndex","sourceIndex","mapFn","SPECIES","originalArray","flat","depthArg","A","arraySpeciesCreate","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_OUT","NO_HOLES","callbackfn","specificCreate","boundFunction","some","every","findIndex","filterOut","$find","FIND","SKIPS_HOLES","$assign","assign","B","chr","T","j","TO_ENTRIES","$entries","$values","Result","stopped","unboundFunction","iterFn","AS_ENTRIES","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","$AggregateError","errors","message","Error","errorsArray","iterate","AggregateError","Promise","CONSTRUCTOR_NAME","Constructor","defaultConstructor","location","setImmediate","clear","clearImmediate","MessageChannel","Dispatch","counter","queue","ONREADYSTATECHANGE","defer","channel","port","run","runner","listener","post","postMessage","protocol","host","IS_NODE","nextTick","now","IS_IOS","port2","port1","onmessage","addEventListener","importScripts","removeChild","macrotask","require$$1","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","queueMicrotask","flush","last","notify","toggle","promise","then","exit","enter","IS_WEBOS_WEBKIT","resolve","createTextNode","observe","characterData","task","PromiseCapability","reject","$$resolve","$$reject","x","promiseCapability","newPromiseCapability","console","PROMISE","getInternalPromiseState","NativePromisePrototype","NativePromise","PromiseConstructor","PromiseConstructorPrototype","newPromiseCapabilityModule","newGenericPromiseCapability","DISPATCH_EVENT","NATIVE_REJECTION_EVENT","PromiseRejectionEvent","UNHANDLED_REJECTION","REJECTION_HANDLED","PENDING","FULFILLED","REJECTED","HANDLED","UNHANDLED","SUBCLASSING","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","IS_BROWSER","all","isThenable","isReject","notified","chain","reactions","microtask","ok","exited","reaction","handler","fail","rejection","onHandleUnhandled","onUnhandled","reason","hostReportErrors","isUnhandled","perform","unwrap","internalReject","internalResolve","wrapper","executor","anInstance","redefineAll","onFulfilled","onRejected","speciesConstructor","catch","wrap","setSpecies","r","capability","promiseResolve","$promiseResolve","remaining","alreadyCalled","race","allSettled","status","PROMISE_ANY_ERROR","any","alreadyResolved","alreadyRejected","NON_GENERIC","real","finally","onFinally","isFunction","e","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","ARRAY_ITERATOR","kind","Arguments","ArrayValues","ArrayIteratorMethods","COLLECTION_NAME","DOMIterables","Collection","CollectionPrototype","METHOD_NAME","try","MATCH","isRegExp","regexp","error1","error2","$startsWith","startsWith","CORRECT_IS_REGEXP_LOGIC","correctIsRegExpLogic","MDN_POLYFILL_BUG","searchString","notARegExp","search","support","searchParams","blob","Blob","formData","arrayBuffer","isDataView","obj","DataView","isPrototypeOf","viewClasses","isArrayBufferView","ArrayBuffer","isView","normalizeName","normalizeValue","iteratorFor","items","shift","Headers","headers","append","header","consumed","body","bodyUsed","fileReaderReady","reader","onload","onerror","readBlobAsArrayBuffer","FileReader","readAsArrayBuffer","readBlobAsText","readAsText","readArrayBufferAsText","buf","view","Uint8Array","chars","fromCharCode","bufferClone","byteLength","buffer","Body","_initBody","_bodyInit","_bodyText","_bodyBlob","FormData","_bodyFormData","URLSearchParams","_bodyArrayBuffer","rejected","isConsumed","byteOffset","decode","json","parse","oldValue","normalizeMethod","upcased","Request","url","credentials","signal","referrer","cache","reParamSearch","Date","getTime","form","trim","bytes","decodeURIComponent","parseHeaders","rawHeaders","substr","line","parts","Response","bodyInit","statusText","clone","response","redirectStatuses","redirect","RangeError","DOMException","err","stack","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","getAllResponseHeaders","responseURL","responseText","ontimeout","onabort","href","fixUrl","withCredentials","responseType","setRequestHeader","onreadystatechange","readyState","removeEventListener","send","polyfill","Element","attributes","matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","s","ownerDocument","parentNode","nodeType","Connection","receiveMessage","messageSendFailed","componentStore","confirm","reload","csrfToken","socketId","getSocketId","__testing_request_interceptor","livewire_app_url","isOutputFromDump","showHtmlModal","onMessage","showExpiredMessage","output","Echo","page","innerHTML","modal","getElementById","width","height","padding","backgroundColor","zIndex","borderRadius","prepend","overflow","hideHtmlModal","focus","missing","intervalId","fireActionOnInterval","addListenerForTeardown","clearInterval","__livewire_polling_interval","to","interval","durationOr","setInterval","isConnected","inViewport","MethodAction","bounding","getBoundingClientRect","top","innerHeight","documentElement","clientHeight","left","innerWidth","clientWidth","bottom","right","updateQueue","updates","update","dataKey","effects","dirty","returns","action","toId","Message","morphAttrs","fromNode","toNode","_x_isShown","attr","attrName","attrNamespaceURI","attrValue","attrs","namespaceURI","localName","getAttributeNS","prefix","setAttributeNS","specified","hasAttributeNS","removeAttributeNS","syncBooleanAttrProp","fromEl","toEl","OPTION","parentName","nodeName","selectedIndex","INPUT","TEXTAREA","newValue","firstChild","nodeValue","placeholder","SELECT","optgroup","curChild","nextSibling","range","NS_XHTML","doc","HAS_TEMPLATE_SUPPORT","HAS_RANGE_SUPPORT","createRange","createFragmentFromTemplate","str","template","childNodes","createFragmentFromRange","selectNode","createContextualFragment","createFragmentFromWrap","fragment","toElement","compareNodeNames","fromNodeName","toNodeName","actualize","createElementNS","moveChildren","nextChild","ELEMENT_NODE","DOCUMENT_FRAGMENT_NODE","TEXT_NODE","COMMENT_NODE","noop","defaultGetNodeKey","hook","morphdomFactory","toNodeHtml","getNodeKey","onBeforeNodeAdded","onNodeAdded","onBeforeElUpdated","onElUpdated","onBeforeNodeDiscarded","onNodeDiscarded","onBeforeElChildrenUpdated","childrenOnly","fromNodesLookup","keyedRemovalList","addKeyedRemoval","walkDiscardedChildNodes","skipKeyedNodes","removeNode","handleNodeAdded","skipAddingChildren","unmatchedFromEl","replaceChild","morphEl","toElKey","skipElUpdatingButStillUpdateChildren","curToNodeKey","curFromNodeKey","fromNextSibling","toNextSibling","matchingFromEl","curToNodeChild","curFromNodeChild","outer","isSameNode","curFromNodeType","isCompatible","insertBefore","isEqualNode","nodeToBeAdded","cloneNode","onBeforeNodeAddedResult","cleanupFromEl","specialElHandler","specialElHandlers","isLivewireModel","morphChildren","indexTree","morphedNode","morphedNodeType","toNodeType","elToRemove","morphdom","initialize","eval","fireActionRightAway","warn","DOM","attachModelListener","attachDomListener","isLazy","hasDebounceModifier","time","model","CustomEvent","detail","documentMode","DeferredModelAction","ModelAction","modelSyncDebounce","navigator","animationName","Event","bubbles","attachListener","selectedSystemKeyModifiers","keyCode","modifier","Boolean","addPrefetchAction","debouncedHandler","debounceIf","callAfterModelDebounce","setEventContext","preventAndStop","scopedListeners","preventDefault","stopPropagation","PrefetchManager","prefetchMessagesByActionId","prefetchId","getPrefetchMessageByAction","targetedLoadingElsByAction","genericLoadingEls","currentlyActiveLoadingEls","currentlyActiveUploadLoadingEls","processLoadingDirective","actions","actionsWithParams","generateSignatureFromMethodAndParams","models","modelActions","reduce","fullAction","part","setLoading","unsetLoading","removeLoadingEl","__livewire_on_finish_loading","actionNames","nonActionOrModelLivewireDirectives","addLoadingEl","actionsNames","actionsName","splice","actionTargetedEls","removeDuplicates","startLoading","setUploadLoading","unsetUploadLoading","endLoading","els","classes","doAndSetCallbackOnElToUndo","classList","add","remove","getComputedStyle","getPropertyValue","getDisplayProperty","doCallback","undoCallback","duration","delayModifiers","arr","Set","MessageBag","bag","UploadManager","uploadBag","removeBag","handleSignedUrl","handleS3PreSignedUrl","tmpFilenames","markUploadFinished","markUploadErrored","tmpFilename","finishCallback","file","errorCallback","progressCallback","setUpload","files","uploadObject","startUpload","makeRequest","paths","Host","retrievePaths","upload","progress","round","loaded","total","fileInfos","Alpine","refreshAlpineAfterEveryLivewireRequest","addDollarSignWire","supportEntangle","isV3","livewireComponent","_x_hidePromise","_x_runEffects","onComponentInitialized","livewireEl","$el","__livewire","updateElements","magic","wireEl","$wire","addMagicProperty","componentEl","onBeforeComponentInitialized","unobservedData","_typeof","livewireEntangle","livewireProperty","isDeferred","livewirePropertyValue","blockAlpineWatcher","$watch","getPropertyValueIncludingDefers","watch","$data","getEntangleFunction","interceptor","initialValue","getter","effect","disableEffectScheduling","alpinifyElementsForMorphdom","alpinifyElementsForMorphdomV3","__x","__x_transition","isHiding","isShowing","_x_dataStack","beforeAlpineTwoPointSevenPointThree","__x_is_shown","major","minor","patch","Component","connection","lastFreshHtml","checkForMultipleRootElements","initialData","tearDownCallbacks","messageInTransit","prefetchManager","uploadManager","watchers","registerListeners","child","countElementsBeforeMarker","carryCount","Node","textContent","newlyDiscoveredEls","nodeInitializer","carry","segment","dataValue","shouldSkipWatcherForDataKey","originalSplitKey","basePropertyName","restOfPropertyName","potentiallyNestedValue","dataGet","watcher","_this4","onResolve","onReject","actionHasPrefetch","actionPrefetchResponseHasBeenReceived","handleResponse","clearPrefetches","fireMessage","_this5","unshift","sendMessage","capturedRequestsForDusk","storeResponse","PrefetchMessage","updateServerMemoFromResponseAndMergeBackIntoResponse","handleMorph","forceRefreshDataBoundElementsMarkedAsDirty","replaying","emits","_this6","selfOnly","ancestorsOnly","dispatches","Turbolinks","supported","visit","dirtyInputs","_this7","addMessage","dom","morphChanges","changed","added","removed","__x_inserted_me","_this8","fromDirectives","__livewire_ignore","__livewire_ignore_self","skipShow","callbackWhenNewComponentIsEncountered","_this9","modelDebounceCallbacks","callbackRegister","teardownCallback","uploadMultiple","removeUpload","dollarWireProxy","Proxy","property","getResult","finish","progressEvent","percentCompleted","eventHandler","clearFileInputValue","event_parts","channel_type","event_name","listen","private","notification","dirtyEls","dirtyEl","setDirtyState","__livewire_dirty_cleanup","isDirty","cleanupStackByComponentId","contains","disabled","readOnly","cleanup","download","urlObject","webkitURL","URL","createObjectURL","base64toBlob","contentType","invisibleLink","click","revokeObjectURL","b64Data","sliceSize","byteCharacters","atob","byteArrays","offset","byteNumbers","byteArray","offlineEls","toggleOffline","isOffline","initializedPath","componentIdsThatAreWritingToHistoryState","normalizeResponse","onlyChangeThePathAndQueryString","destination","afterOrigin","origin","hash","LivewireStateManager","clearState","replaceState","pushState","missingState","replayResponses","lastKnownDomId","updateState","currentState","stateArray","toStateArray","fullstateObject","history","livewire","decodeURI","replaceAll","storeInSession","LivewireState","getFromSession","stringifiedValue","tryToStoreInSession","sessionStorage","setItem","code","oldestTimestamp","sort","removeItem","getItem","targetItem","existingIndex","componentIdsWithStoredResponses","closestParentIndex","parseSignature","originalComponentId","getComponentNameBasedSignature","pushItemInProperOrder","findComponentBySignature","componentIndex","sameNamedComponents","forStack","contents","startEl","endEl","keyHasAlreadyBeenAddedToTheStack","frag","createFragment","findKeyMarker","Livewire","devToolsEnabled","onLoadCallback","enableDevtools","hidden","monkeyPatchDomSetAttributeToAllowAtSymbols","hostDiv","getAttributeNode","removeAttributeNode","setAttributeNode","SyncBrowserHistory","SupportAlpine","SupportStacks","FileDownloads","OfflineStates","LoadingStates","DisableForms","FileUploads","LaravelEcho","DirtyStates","Polling"],"mappings":"++KAAO,SAASA,SAASC,KAAMC,KAAMC,eAC7BC,eACG,eACCC,QAAUC,KACVC,KAAOC,UACPC,MAAQ,WACRL,QAAU,KACLD,WAAWF,KAAKS,MAAML,QAASE,OAEpCI,QAAUR,YAAcC,QAC5BQ,aAAaR,SACbA,QAAUS,WAAWJ,MAAOP,MACxBS,SAASV,KAAKS,MAAML,QAASE,OCZlC,SAASO,eAAeC,WACpB,IAAIC,mBAAiBD,QAG1BC,wDACUD,gDACHA,GAAKA,QACLE,WAAaX,KAAKY,sFAG3B,kBACWZ,KAAKW,8BAGhB,SAAIE,aACOb,KAAKW,WAAWG,KAAI,SAAAC,kBAAaA,UAAUF,QAAMG,SAASH,6BAGrE,SAAQA,aACIb,KAAKiB,IAAIJ,yBAGrB,SAAIA,aACOb,KAAKW,WAAWO,MAAK,SAA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