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IAAM,EAAiB,SAAS,aAAa,CAAC,OAC9C,EAAM,UAAU,CAAC,YAAY,CAAC,EAAgB,GAC9C,EAAe,SAAS,CAAC,GAAG,CAAC,mBAC7B,IAAM,EAAe,SAAS,aAAa,CAAC,OAC5C,EAAa,SAAS,CAAC,GAAG,CAAC,aAAc,eAAgB,gBACzD,IAAM,EAAa,SAAS,aAAa,CAAC,OAC1C,EAAW,SAAS,CAAC,GAAG,CAAC,mBACzB,EAAe,WAAW,CAAC,GAC3B,EAAa,WAAW,CAAC,GACzB,EAAW,WAAW,CAAC,EACzB,GAEA,SAAS,gBAAgB,CAAC,0BAA0B,OAAO,CAAC,SAAU,CAAM,CAAE,CAAC,EAC7E,EAAO,gBAAgB,CAAC,aAAc,SAAU,CAAC,EAC/C,AAAA,GAAK,EAAE,CAAC,wBAAwB,EAAO,OAAO,CAAC,EAAE,CAAE,CACjD,QAAS,EACT,SAAU,EACZ,EACF,GACA,EAAO,gBAAgB,CAAC,aAAc,SAAU,CAAC,EAC/C,AAAA,GAAK,EAAE,CAAC,wBAAwB,EAAO,OAAO,CAAC,EAAE,CAAE,CACjD,QAAS,EACT,SAAU,EACZ,EACF,EACF,E,iC","sources":["","node_modules/preline/src/plugins/datatable/index.ts","node_modules/preline/src/utils/index.ts","node_modules/preline/src/plugins/base-plugin/index.ts","node_modules/preline/src/plugins/file-upload/index.ts","node_modules/preline/src/plugins/range-slider/index.ts","src/js/index.js","node_modules/preline/src/index.ts","node_modules/preline/src/plugins/copy-markup/index.ts","node_modules/preline/src/plugins/accordion/index.ts","node_modules/preline/src/plugins/carousel/index.ts","node_modules/preline/src/constants.ts","node_modules/preline/src/plugins/collapse/index.ts","node_modules/preline/src/plugins/combobox/index.ts","node_modules/preline/src/plugins/dropdown/index.ts","node_modules/@popperjs/core/lib/popper.js","node_modules/@popperjs/core/lib/createPopper.js","node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","node_modules/@popperjs/core/lib/dom-utils/getWindow.js","node_modules/@popperjs/core/lib/utils/math.js","node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","node_modules/@popperjs/core/lib/utils/userAgent.js","node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","node_modules/@popperjs/core/lib/utils/orderModifiers.js","node_modules/@popperjs/core/lib/enums.js","node_modules/@popperjs/core/lib/utils/debounce.js","node_modules/@popperjs/core/lib/utils/mergeByName.js","node_modules/@popperjs/core/lib/modifiers/eventListeners.js","node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","node_modules/@popperjs/core/lib/utils/computeOffsets.js","node_modules/@popperjs/core/lib/utils/getBasePlacement.js","node_modules/@popperjs/core/lib/utils/getVariation.js","node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","node_modules/@popperjs/core/lib/modifiers/computeStyles.js","node_modules/@popperjs/core/lib/modifiers/applyStyles.js","node_modules/@popperjs/core/lib/modifiers/offset.js","node_modules/@popperjs/core/lib/modifiers/flip.js","node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","node_modules/@popperjs/core/lib/utils/detectOverflow.js","node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","node_modules/@popperjs/core/lib/dom-utils/contains.js","node_modules/@popperjs/core/lib/utils/rectToClientRect.js","node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","node_modules/@popperjs/core/lib/utils/expandToHashMap.js","node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","node_modules/@popperjs/core/lib/utils/getAltAxis.js","node_modules/@popperjs/core/lib/utils/within.js","node_modules/@popperjs/core/lib/modifiers/arrow.js","node_modules/@popperjs/core/lib/modifiers/hide.js","node_modules/preline/src/plugins/input-number/index.ts","node_modules/preline/src/plugins/overlay/index.ts","node_modules/preline/src/plugins/pin-input/index.ts","node_modules/preline/src/plugins/remove-element/index.ts","node_modules/preline/src/plugins/scrollspy/index.ts","node_modules/preline/src/plugins/select/index.ts","node_modules/preline/src/plugins/stepper/index.ts","node_modules/preline/src/plugins/strong-password/index.ts","node_modules/preline/src/plugins/tabs/index.ts","node_modules/preline/src/plugins/textarea-auto-height/index.ts","node_modules/preline/src/plugins/theme-switch/index.ts","node_modules/preline/src/plugins/toggle-count/index.ts","node_modules/preline/src/plugins/toggle-password/index.ts","node_modules/preline/src/plugins/tooltip/index.ts","node_modules/preline/src/plugins/tree-view/index.ts","node_modules/preline/src/static/index.ts","node_modules/preline/src/spa/index.ts","node_modules/swiper/swiper.mjs","node_modules/swiper/shared/swiper-core.mjs","node_modules/swiper/shared/ssr-window.esm.mjs","node_modules/swiper/shared/utils.mjs","node_modules/swiper/modules/index.mjs","node_modules/swiper/modules/virtual.mjs","node_modules/swiper/modules/keyboard.mjs","node_modules/swiper/modules/mousewheel.mjs","node_modules/swiper/modules/navigation.mjs","node_modules/swiper/shared/create-element-if-not-defined.mjs","node_modules/swiper/modules/pagination.mjs","node_modules/swiper/shared/classes-to-selector.mjs","node_modules/swiper/modules/scrollbar.mjs","node_modules/swiper/modules/parallax.mjs","node_modules/swiper/modules/zoom.mjs","node_modules/swiper/modules/controller.mjs","node_modules/swiper/modules/a11y.mjs","node_modules/swiper/modules/history.mjs","node_modules/swiper/modules/hash-navigation.mjs","node_modules/swiper/modules/autoplay.mjs","node_modules/swiper/modules/thumbs.mjs","node_modules/swiper/modules/free-mode.mjs","node_modules/swiper/modules/grid.mjs","node_modules/swiper/modules/manipulation.mjs","node_modules/swiper/modules/effect-fade.mjs","node_modules/swiper/shared/effect-init.mjs","node_modules/swiper/shared/effect-target.mjs","node_modules/swiper/shared/effect-virtual-transition-end.mjs","node_modules/swiper/modules/effect-cube.mjs","node_modules/swiper/modules/effect-flip.mjs","node_modules/swiper/shared/create-shadow.mjs","node_modules/swiper/modules/effect-coverflow.mjs","node_modules/swiper/modules/effect-creative.mjs","node_modules/swiper/modules/effect-cards.mjs","node_modules/gsap/index.js","node_modules/gsap/gsap-core.js","node_modules/gsap/CSSPlugin.js","node_modules/gsap/ScrollTrigger.js","node_modules/gsap/Observer.js"],"sourcesContent":["\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequiref230\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequiref230\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"1C6E2\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $58bccef0763c0847$export$2e2bcd8739ae039);\n/*\n * HSDataTable\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $58bccef0763c0847$var$HSDataTable extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n this.el = typeof el === \"string\" ? document.querySelector(el) : el;\n // Exclude columns from ordering\n const columnDefs = [];\n Array.from(this.el.querySelectorAll(\"thead th, thead td\")).forEach((th, ind)=>{\n if (th.classList.contains(\"--exclude-from-ordering\")) columnDefs.push({\n targets: ind,\n orderable: false\n });\n });\n const data = this.el.getAttribute(\"data-hs-datatable\");\n const dataOptions = data ? JSON.parse(data) : {};\n this.concatOptions = {\n searching: true,\n lengthChange: false,\n order: [],\n columnDefs: [\n ...columnDefs\n ],\n ...dataOptions,\n ...options\n };\n this.table = this.el.querySelector(\"table\");\n this.search = this.el.querySelector(\"[data-hs-datatable-search]\") ?? null;\n this.pageEntities = this.el.querySelector(\"[data-hs-datatable-page-entities]\") ?? null;\n this.paging = this.el.querySelector(\"[data-hs-datatable-paging]\") ?? null;\n this.pagingPrev = this.el.querySelector(\"[data-hs-datatable-paging-prev]\") ?? null;\n this.pagingNext = this.el.querySelector(\"[data-hs-datatable-paging-next]\") ?? null;\n this.pagingPages = this.el.querySelector(\"[data-hs-datatable-paging-pages]\") ?? null;\n this.info = this.el.querySelector(\"[data-hs-datatable-info]\") ?? null;\n this.infoFrom = this.el.querySelector(\"[data-hs-datatable-info-from]\") ?? null;\n this.infoTo = this.el.querySelector(\"[data-hs-datatable-info-to]\") ?? null;\n this.infoLength = this.el.querySelector(\"[data-hs-datatable-info-length]\") ?? null;\n if (this.concatOptions?.rowSelectingOptions) this.rowSelectingAll = (this.concatOptions?.rowSelectingOptions?.selectAllSelector ? document.querySelector(this.concatOptions?.rowSelectingOptions?.selectAllSelector) : document.querySelector(\"[data-hs-datatable-row-selecting-all]\")) ?? null;\n if (this.concatOptions?.rowSelectingOptions) this.rowSelectingIndividual = this.concatOptions?.rowSelectingOptions?.individualSelector ?? \"[data-hs-datatable-row-selecting-individual]\" ?? null;\n if (this.pageEntities) this.concatOptions.pageLength = parseInt(this.pageEntities.value);\n this.maxPagesToShow = 3;\n this.isRowSelecting = !!this.concatOptions?.rowSelectingOptions;\n this.pageBtnClasses = this.concatOptions?.pagingOptions?.pageBtnClasses ?? null;\n this.init();\n }\n init() {\n this.createCollection(window.$hsDataTableCollection, this);\n this.initTable();\n if (this.search) this.initSearch();\n if (this.pageEntities) this.initPageEntities();\n if (this.paging) this.initPaging();\n if (this.pagingPrev) this.initPagingPrev();\n if (this.pagingNext) this.initPagingNext();\n if (this.pagingPages) this.buildPagingPages();\n if (this.info) this.initInfo();\n if (this.isRowSelecting) this.initRowSelecting();\n }\n initTable() {\n this.dataTable = new DataTable(this.table, this.concatOptions);\n if (this.isRowSelecting) this.triggerChangeEventToRow();\n this.dataTable.on(\"draw\", ()=>{\n if (this.isRowSelecting) this.updateSelectAllCheckbox();\n if (this.isRowSelecting) this.triggerChangeEventToRow();\n this.updateInfo();\n this.updatePaging();\n });\n }\n // Search\n initSearch() {\n this.search.addEventListener(\"input\", (0, $cZqAW.debounce)((evt)=>this.onSearchInput(evt.target.value)));\n }\n onSearchInput(val) {\n this.dataTable.search(val).draw();\n }\n // Page entities\n initPageEntities() {\n this.pageEntities.addEventListener(\"change\", (evt)=>this.onEntitiesChange(parseInt(evt.target.value)));\n }\n onEntitiesChange(entities) {\n this.dataTable.page.len(entities).draw();\n }\n // Info\n initInfo() {\n if (this.infoFrom) this.initInfoFrom();\n if (this.infoTo) this.initInfoTo();\n if (this.infoLength) this.initInfoLength();\n }\n initInfoFrom() {\n const { start: start } = this.dataTable.page.info();\n this.infoFrom.innerText = `${start + 1}`;\n }\n initInfoTo() {\n const { end: end } = this.dataTable.page.info();\n this.infoTo.innerText = `${end}`;\n }\n initInfoLength() {\n const { recordsTotal: recordsTotal } = this.dataTable.page.info();\n this.infoLength.innerText = `${recordsTotal}`;\n }\n updateInfo() {\n this.initInfo();\n }\n // Paging\n initPaging() {\n this.hidePagingIfSinglePage();\n }\n hidePagingIfSinglePage() {\n const { pages: pages } = this.dataTable.page.info();\n if (pages < 2) {\n this.paging.classList.add(\"hidden\");\n this.paging.style.display = \"none\";\n } else {\n this.paging.classList.remove(\"hidden\");\n this.paging.style.display = \"\";\n }\n }\n initPagingPrev() {\n this.pagingPrev.addEventListener(\"click\", ()=>{\n this.onPrevClick();\n });\n }\n onPrevClick() {\n this.dataTable.page(\"previous\").draw(\"page\");\n }\n disablePagingArrow(el, statement) {\n if (statement) {\n el.classList.add(\"disabled\");\n el.setAttribute(\"disabled\", \"disabled\");\n } else {\n el.classList.remove(\"disabled\");\n el.removeAttribute(\"disabled\");\n }\n }\n initPagingNext() {\n this.pagingNext.addEventListener(\"click\", ()=>{\n this.onNextClick();\n });\n }\n onNextClick() {\n this.dataTable.page(\"next\").draw(\"page\");\n }\n buildPagingPages() {\n this.updatePaging();\n }\n updatePaging() {\n const { page: page, pages: pages, length: length } = this.dataTable.page.info();\n const totalRecords = this.dataTable.rows({\n search: \"applied\"\n }).count();\n const totalPages = Math.ceil(totalRecords / length);\n const currentPage = page + 1;\n let startPage = Math.max(1, currentPage - Math.floor(this.maxPagesToShow / 2));\n let endPage = Math.min(totalPages, startPage + (this.maxPagesToShow - 1));\n if (endPage - startPage + 1 < this.maxPagesToShow) startPage = Math.max(1, endPage - this.maxPagesToShow + 1);\n this.pagingPages.innerHTML = \"\";\n if (startPage > 1) {\n this.buildPagingPage(1);\n if (startPage > 2) this.pagingPages.appendChild((0, $cZqAW.htmlToElement)(`...`));\n }\n for(let i = startPage; i <= endPage; i++)this.buildPagingPage(i);\n if (endPage < totalPages) {\n if (endPage < totalPages - 1) this.pagingPages.appendChild((0, $cZqAW.htmlToElement)(`...`));\n this.buildPagingPage(totalPages);\n }\n this.disablePagingArrow(this.pagingPrev, page === 0);\n this.disablePagingArrow(this.pagingNext, page === pages - 1);\n this.hidePagingIfSinglePage();\n }\n buildPagingPage(counter) {\n const { page: page } = this.dataTable.page.info();\n const pageEl = (0, $cZqAW.htmlToElement)(``);\n pageEl.innerText = `${counter}`;\n pageEl.setAttribute(\"data-page\", `${counter}`);\n if (this.pageBtnClasses) (0, $cZqAW.classToClassList)(this.pageBtnClasses, pageEl);\n if (page === counter - 1) pageEl.classList.add(\"active\");\n pageEl.addEventListener(\"click\", ()=>this.onPageClick(counter));\n this.pagingPages.append(pageEl);\n }\n onPageClick(counter) {\n this.dataTable.page(counter - 1).draw(\"page\");\n }\n // Select row\n initRowSelecting() {\n this.rowSelectingAll.addEventListener(\"change\", ()=>this.onSelectAllChange());\n }\n triggerChangeEventToRow() {\n this.table.querySelectorAll(`tbody ${this.rowSelectingIndividual}`).forEach((el)=>{\n el.addEventListener(\"change\", ()=>{\n this.updateSelectAllCheckbox();\n });\n });\n }\n onSelectAllChange() {\n let isChecked = this.rowSelectingAll.checked;\n const visibleRows = Array.from(this.dataTable.rows({\n page: \"current\",\n search: \"applied\"\n }).nodes());\n visibleRows.forEach((el)=>{\n const checkbox = el.querySelector(this.rowSelectingIndividual);\n if (checkbox) checkbox.checked = isChecked;\n });\n this.updateSelectAllCheckbox();\n }\n updateSelectAllCheckbox() {\n const searchRelatedItems = this.dataTable.rows({\n search: \"applied\"\n }).count();\n if (!searchRelatedItems) {\n this.rowSelectingAll.checked = false;\n return false;\n }\n let isChecked = true;\n const visibleRows = Array.from(this.dataTable.rows({\n page: \"current\",\n search: \"applied\"\n }).nodes());\n visibleRows.forEach((el)=>{\n const checkbox = el.querySelector(this.rowSelectingIndividual);\n if (checkbox && !checkbox.checked) {\n isChecked = false;\n return false;\n }\n });\n this.rowSelectingAll.checked = isChecked;\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsDataTableCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static autoInit() {\n if (!window.$hsDataTableCollection) window.$hsDataTableCollection = [];\n document.querySelectorAll(\"[data-hs-datatable]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsDataTableCollection.find((elC)=>elC?.element?.el === el)) new $58bccef0763c0847$var$HSDataTable(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n if (document.querySelectorAll(\"[data-hs-datatable]:not(.--prevent-on-load-init)\").length) {\n if (typeof jQuery === \"undefined\") console.error(\"HSDataTable: jQuery is not available, please add it to the page.\");\n if (typeof DataTable === \"undefined\") console.error(\"HSDataTable: DataTable is not available, please add it to the page.\");\n }\n if (typeof DataTable !== \"undefined\" && typeof jQuery !== \"undefined\") $58bccef0763c0847$var$HSDataTable.autoInit();\n// Uncomment for debug\n// console.log('Datatable collection:', window.$hsDataTableCollection);\n});\nif (typeof window !== \"undefined\") window.HSDataTable = $58bccef0763c0847$var$HSDataTable;\nvar $58bccef0763c0847$export$2e2bcd8739ae039 = $58bccef0763c0847$var$HSDataTable;\n\n});\nparcelRegister(\"cZqAW\", function(module, exports) {\n\n$parcel$export(module.exports, \"stringToBoolean\", () => $e494cc9890f5ca06$export$70f24959ef00553b);\n$parcel$export(module.exports, \"getClassProperty\", () => $e494cc9890f5ca06$export$11a826c585352eb8);\n$parcel$export(module.exports, \"getClassPropertyAlt\", () => $e494cc9890f5ca06$export$315f1f5a8da35a59);\n$parcel$export(module.exports, \"isIOS\", () => $e494cc9890f5ca06$export$fedb369cb70207f1);\n$parcel$export(module.exports, \"isIpadOS\", () => $e494cc9890f5ca06$export$363474031fa64020);\n$parcel$export(module.exports, \"isDirectChild\", () => $e494cc9890f5ca06$export$d27a746b95b8b6f0);\n$parcel$export(module.exports, \"isEnoughSpace\", () => $e494cc9890f5ca06$export$e3db11022a3681e4);\n$parcel$export(module.exports, \"isFormElement\", () => $e494cc9890f5ca06$export$5da71380ac3cd382);\n$parcel$export(module.exports, \"isParentOrElementHidden\", () => $e494cc9890f5ca06$export$82366544b9d4ab15);\n$parcel$export(module.exports, \"debounce\", () => $e494cc9890f5ca06$export$61fc7d43ac8f84b0);\n$parcel$export(module.exports, \"dispatch\", () => $e494cc9890f5ca06$export$635e15bbd66f01ea);\n$parcel$export(module.exports, \"afterTransition\", () => $e494cc9890f5ca06$export$24d4b3961cffb4db);\n$parcel$export(module.exports, \"htmlToElement\", () => $e494cc9890f5ca06$export$c5c738da9ba7f9f);\n$parcel$export(module.exports, \"classToClassList\", () => $e494cc9890f5ca06$export$a73398b198c9e798);\n$parcel$export(module.exports, \"menuSearchHistory\", () => $e494cc9890f5ca06$export$23c7272ae11663ba);\n/*\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ const $e494cc9890f5ca06$export$70f24959ef00553b = (string)=>{\n return string === \"true\" ? true : false;\n};\nconst $e494cc9890f5ca06$export$11a826c585352eb8 = (el, prop, val = \"\")=>{\n return (window.getComputedStyle(el).getPropertyValue(prop) || val).replace(\" \", \"\");\n};\nconst $e494cc9890f5ca06$export$315f1f5a8da35a59 = (el, prop, val = \"\")=>{\n let targetClass = \"\";\n el.classList.forEach((c)=>{\n if (c.includes(prop)) targetClass = c;\n });\n return targetClass.match(/:(.*)]/) ? targetClass.match(/:(.*)]/)[1] : val;\n};\nconst $e494cc9890f5ca06$export$9b544f58430fc883 = (el)=>{\n const computedStyle = window.getComputedStyle(el);\n const zIndex = computedStyle.getPropertyValue(\"z-index\");\n return zIndex;\n};\nfunction $e494cc9890f5ca06$export$d0dcfbb7d83a7f11(arr) {\n let highestZIndex = Number.NEGATIVE_INFINITY;\n arr.forEach((el)=>{\n let zIndex = $e494cc9890f5ca06$export$9b544f58430fc883(el);\n if (zIndex !== \"auto\") {\n zIndex = parseInt(zIndex, 10);\n if (zIndex > highestZIndex) highestZIndex = zIndex;\n }\n });\n return highestZIndex;\n}\nconst $e494cc9890f5ca06$export$fedb369cb70207f1 = ()=>{\n if (/iPad|iPhone|iPod/.test(navigator.platform)) return true;\n else return navigator.maxTouchPoints && navigator.maxTouchPoints > 2 && /MacIntel/.test(navigator.platform);\n};\nconst $e494cc9890f5ca06$export$363474031fa64020 = ()=>{\n return navigator.maxTouchPoints && navigator.maxTouchPoints > 2 && /MacIntel/.test(navigator.platform);\n};\nconst $e494cc9890f5ca06$export$d27a746b95b8b6f0 = (parent, child)=>{\n const children = parent.children;\n for(let i = 0; i < children.length; i++){\n if (children[i] === child) return true;\n }\n return false;\n};\nconst $e494cc9890f5ca06$export$e3db11022a3681e4 = (el, toggle, preferredPosition = \"auto\", space = 10, wrapper = null)=>{\n const referenceRect = toggle.getBoundingClientRect();\n const wrapperRect = wrapper ? wrapper.getBoundingClientRect() : null;\n const viewportHeight = window.innerHeight;\n const spaceAbove = wrapperRect ? referenceRect.top - wrapperRect.top : referenceRect.top;\n const spaceBelow = (wrapper ? wrapperRect.bottom : viewportHeight) - referenceRect.bottom;\n const minimumSpaceRequired = el.clientHeight + space;\n if (preferredPosition === \"bottom\") return spaceBelow >= minimumSpaceRequired;\n else if (preferredPosition === \"top\") return spaceAbove >= minimumSpaceRequired;\n else return spaceAbove >= minimumSpaceRequired || spaceBelow >= minimumSpaceRequired;\n};\nconst $e494cc9890f5ca06$export$5da71380ac3cd382 = (target)=>{\n return target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLSelectElement;\n};\nconst $e494cc9890f5ca06$export$82366544b9d4ab15 = (element)=>{\n if (!element) return false;\n const computedStyle = window.getComputedStyle(element);\n if (computedStyle.display === \"none\") return true;\n return $e494cc9890f5ca06$export$82366544b9d4ab15(element.parentElement);\n};\nconst $e494cc9890f5ca06$export$61fc7d43ac8f84b0 = (func, timeout = 200)=>{\n let timer;\n return (...args)=>{\n clearTimeout(timer);\n timer = setTimeout(()=>{\n func.apply(undefined, args);\n }, timeout);\n };\n};\nconst $e494cc9890f5ca06$export$635e15bbd66f01ea = (evt, element, payload = null)=>{\n const event = new CustomEvent(evt, {\n detail: {\n payload: payload\n },\n bubbles: true,\n cancelable: true,\n composed: false\n });\n element.dispatchEvent(event);\n};\nconst $e494cc9890f5ca06$export$24d4b3961cffb4db = (el, callback)=>{\n const handleEvent = ()=>{\n callback();\n el.removeEventListener(\"transitionend\", handleEvent, true);\n };\n const computedStyle = window.getComputedStyle(el);\n const transitionDuration = computedStyle.getPropertyValue(\"transition-duration\");\n const transitionProperty = computedStyle.getPropertyValue(\"transition-property\");\n const hasTransition = transitionProperty !== \"none\" && parseFloat(transitionDuration) > 0;\n if (hasTransition) el.addEventListener(\"transitionend\", handleEvent, true);\n else callback();\n};\nconst $e494cc9890f5ca06$export$c5c738da9ba7f9f = (html)=>{\n const template = document.createElement(\"template\");\n html = html.trim();\n template.innerHTML = html;\n return template.content.firstChild;\n};\nconst $e494cc9890f5ca06$export$a73398b198c9e798 = (classes, target, splitter = \" \", action = \"add\")=>{\n const classesToArray = classes.split(splitter);\n classesToArray.forEach((cl)=>action === \"add\" ? target.classList.add(cl) : target.classList.remove(cl));\n};\nconst $e494cc9890f5ca06$export$23c7272ae11663ba = {\n historyIndex: -1,\n addHistory (index) {\n this.historyIndex = index;\n },\n existsInHistory (index) {\n return index > this.historyIndex;\n },\n clearHistory () {\n this.historyIndex = -1;\n }\n};\n\n});\n\nparcelRegister(\"luwGm\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $f34571785c0cdb5a$export$2e2bcd8739ae039);\n/// \n/*\n * HSBasePlugin\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ class $f34571785c0cdb5a$export$2e2bcd8739ae039 {\n constructor(el, options, events){\n this.el = el;\n this.options = options;\n this.events = events;\n this.el = el;\n this.options = options;\n this.events = {};\n }\n createCollection(collection, element) {\n collection.push({\n id: element?.el?.id || collection.length + 1,\n element: element\n });\n }\n fireEvent(evt, payload = null) {\n if (this.events.hasOwnProperty(evt)) return this.events[evt](payload);\n }\n on(evt, cb) {\n this.events[evt] = cb;\n }\n}\n\n});\n\n\nparcelRegister(\"iIPEy\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $6d576ebd5d6900ba$export$2e2bcd8739ae039);\n/*\n * HSFileUpload\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nif (typeof Dropzone !== \"undefined\") Dropzone.autoDiscover = false;\nclass $6d576ebd5d6900ba$var$HSFileUpload extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n this.extensions = {};\n this.el = typeof el === \"string\" ? document.querySelector(el) : el;\n const data = this.el.getAttribute(\"data-hs-file-upload\");\n const dataOptions = data ? JSON.parse(data) : {};\n this.previewTemplate = this.el.querySelector(\"[data-hs-file-upload-preview]\")?.innerHTML || `
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\t.\n\t\t\t\t\t\t

\n\t\t\t\t\t\t

\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t0%\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
`;\n this.extensions = _.merge({\n default: {\n icon: '',\n class: \"size-5\"\n },\n xls: {\n icon: '',\n class: \"size-5\"\n },\n doc: {\n icon: '',\n class: \"size-5\"\n },\n zip: {\n icon: '',\n class: \"size-5\"\n }\n }, dataOptions.extensions);\n this.singleton = dataOptions.singleton;\n this.concatOptions = {\n clickable: this.el.querySelector(\"[data-hs-file-upload-trigger]\"),\n previewsContainer: this.el.querySelector(\"[data-hs-file-upload-previews]\"),\n addRemoveLinks: false,\n previewTemplate: this.previewTemplate,\n autoHideTrigger: false,\n ...dataOptions,\n ...options\n };\n this.init();\n }\n init() {\n this.createCollection(window.$hsFileUploadCollection, this);\n this.initDropzone();\n }\n initDropzone() {\n const clear = this.el.querySelector(\"[data-hs-file-upload-clear]\");\n const pseudoTriggers = Array.from(this.el.querySelectorAll(\"[data-hs-file-upload-pseudo-trigger]\"));\n this.dropzone = new Dropzone(this.el, this.concatOptions);\n this.dropzone.on(\"addedfile\", (file)=>this.onAddFile(file));\n this.dropzone.on(\"removedfile\", ()=>this.onRemoveFile());\n this.dropzone.on(\"uploadprogress\", (file, progress)=>this.onUploadProgress(file, progress));\n this.dropzone.on(\"complete\", (file)=>this.onComplete(file));\n if (clear) clear.onclick = ()=>{\n if (this.dropzone.files.length) this.dropzone.removeAllFiles(true);\n };\n if (pseudoTriggers.length) pseudoTriggers.forEach((el)=>{\n el.onclick = ()=>{\n if (this.concatOptions?.clickable) this.concatOptions?.clickable.click();\n };\n });\n }\n onAddFile(file) {\n const { previewElement: previewElement } = file;\n const reloadButton = file.previewElement.querySelector(\"[data-hs-file-upload-reload]\");\n if (!previewElement) return false;\n if (this.singleton && this.dropzone.files.length > 1) this.dropzone.removeFile(this.dropzone.files[0]);\n if (reloadButton) reloadButton.addEventListener(\"click\", (evt)=>{\n evt.preventDefault();\n evt.stopPropagation();\n const tempFileInput = document.createElement(\"input\");\n tempFileInput.type = \"file\";\n tempFileInput.click();\n tempFileInput.addEventListener(\"change\", (event)=>{\n const input = event.target;\n const newFile = input.files?.[0];\n if (newFile) {\n const dzNewFile = newFile;\n dzNewFile.status = Dropzone.ADDED;\n dzNewFile.accepted = true;\n dzNewFile.previewElement = file.previewElement;\n dzNewFile.previewTemplate = file.previewTemplate;\n dzNewFile.previewsContainer = file.previewsContainer;\n this.dropzone.removeFile(file);\n this.dropzone.addFile(dzNewFile);\n }\n });\n });\n this.previewAccepted(file);\n }\n previewAccepted(file) {\n const { previewElement: previewElement } = file;\n const fileInfo = this.splitFileName(file.name);\n const fileName = previewElement.querySelector(\"[data-hs-file-upload-file-name]\");\n const fileExt = previewElement.querySelector(\"[data-hs-file-upload-file-ext]\");\n const fileSize = previewElement.querySelector(\"[data-hs-file-upload-file-size]\");\n const fileIcon = previewElement.querySelector(\"[data-hs-file-upload-file-icon]\");\n const trigger = this.el.querySelector(\"[data-hs-file-upload-trigger]\");\n const preview = previewElement.querySelector(\"[data-dz-thumbnail]\");\n const remove = previewElement.querySelector(\"[data-hs-file-upload-remove]\");\n if (fileName) fileName.textContent = fileInfo.name;\n if (fileExt) fileExt.textContent = fileInfo.extension;\n if (fileSize) fileSize.textContent = this.formatFileSize(file.size);\n if (preview) {\n if (file.type.includes(\"image/\")) preview.classList.remove(\"hidden\");\n else this.setIcon(fileInfo.extension, fileIcon);\n }\n if (this.dropzone.files.length > 0 && this.concatOptions.autoHideTrigger) trigger.style.display = \"none\";\n if (remove) remove.onclick = ()=>this.dropzone.removeFile(file);\n }\n onRemoveFile() {\n const trigger = this.el.querySelector(\"[data-hs-file-upload-trigger]\");\n if (this.dropzone.files.length === 0 && this.concatOptions.autoHideTrigger) trigger.style.display = \"\";\n }\n onUploadProgress(file, progress) {\n const { previewElement: previewElement } = file;\n if (!previewElement) return false;\n const progressBar = previewElement.querySelector(\"[data-hs-file-upload-progress-bar]\");\n const progressBarPane = previewElement.querySelector(\"[data-hs-file-upload-progress-bar-pane]\");\n const progressBarValue = previewElement.querySelector(\"[data-hs-file-upload-progress-bar-value]\");\n const currentProgress = Math.floor(progress);\n if (progressBar) progressBar.setAttribute(\"aria-valuenow\", `${currentProgress}`);\n if (progressBarPane) progressBarPane.style.width = `${currentProgress}%`;\n if (progressBarValue) progressBarValue.innerText = `${currentProgress}`;\n }\n onComplete(file) {\n const { previewElement: previewElement } = file;\n if (!previewElement) return false;\n previewElement.classList.add(\"complete\");\n }\n setIcon(ext, file) {\n const icon = this.createIcon(ext);\n file.append(icon);\n }\n createIcon(ext) {\n const icon = this.extensions[ext]?.icon ? (0, $cZqAW.htmlToElement)(this.extensions[ext].icon) : (0, $cZqAW.htmlToElement)(this.extensions.default.icon);\n (0, $cZqAW.classToClassList)(this.extensions[ext]?.class ? this.extensions[ext].class : this.extensions.default.class, icon);\n return icon;\n }\n formatFileSize(size) {\n if (size < 1024) return size.toFixed(2) + \" B\";\n else if (size < 1048576) return (size / 1024).toFixed(2) + \" KB\";\n else if (size < 1073741824) return (size / 1048576).toFixed(2) + \" MB\";\n else if (size < 1099511627776) return (size / 1073741824).toFixed(2) + \" GB\";\n else return (size / 1099511627776).toFixed(2) + \" TB\";\n }\n splitFileName(file) {\n let dotIndex = file.lastIndexOf(\".\");\n if (dotIndex == -1) return {\n name: file,\n extension: \"\"\n };\n return {\n name: file.substring(0, dotIndex),\n extension: file.substring(dotIndex + 1)\n };\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsFileUploadCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static autoInit() {\n if (!window.$hsFileUploadCollection) window.$hsFileUploadCollection = [];\n document.querySelectorAll(\"[data-hs-file-upload]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsFileUploadCollection.find((elC)=>elC?.element?.el === el)) new $6d576ebd5d6900ba$var$HSFileUpload(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n if (document.querySelectorAll(\"[data-hs-file-upload]:not(.--prevent-on-load-init)\").length) {\n if (typeof _ === \"undefined\") console.error(\"HSFileUpload: Lodash is not available, please add it to the page.\");\n if (typeof Dropzone === \"undefined\") console.error(\"HSFileUpload: Dropzone is not available, please add it to the page.\");\n }\n if (typeof _ !== \"undefined\" && typeof Dropzone !== \"undefined\") $6d576ebd5d6900ba$var$HSFileUpload.autoInit();\n// Uncomment for debug\n// console.log('File upload collection:', window.$hsFileUploadCollection);\n});\nif (typeof window !== \"undefined\") window.HSFileUpload = $6d576ebd5d6900ba$var$HSFileUpload;\nvar $6d576ebd5d6900ba$export$2e2bcd8739ae039 = $6d576ebd5d6900ba$var$HSFileUpload;\n\n});\n\nparcelRegister(\"dQG8S\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $5f48515a1ac16095$export$2e2bcd8739ae039);\n/*\n * HSRangeSlider\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $luwGm = parcelRequire(\"luwGm\");\nclass $5f48515a1ac16095$var$HSRangeSlider extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n const data = el.getAttribute(\"data-hs-range-slider\");\n const dataOptions = data ? JSON.parse(data) : {};\n this.concatOptions = {\n ...dataOptions,\n ...options,\n cssClasses: {\n ...noUiSlider.cssClasses,\n ...this.processClasses(dataOptions.cssClasses)\n }\n };\n this.init();\n }\n get formattedValue() {\n const values = this.el.noUiSlider.get();\n if (Array.isArray(values) && this.format) {\n const updateValues = [];\n values.forEach((val)=>{\n updateValues.push(this.format.to(val));\n });\n return updateValues;\n } else if (this.format) return this.format.to(values);\n else return values;\n }\n processClasses(cl) {\n const mergedClasses = {};\n Object.keys(cl).forEach((key)=>{\n if (key) mergedClasses[key] = `${noUiSlider.cssClasses[key]} ${cl[key]}`;\n });\n return mergedClasses;\n }\n init() {\n this.createCollection(window.$hsRangeSliderCollection, this);\n if (typeof this.concatOptions?.formatter === \"object\" ? this.concatOptions?.formatter?.type === \"thousandsSeparatorAndDecimalPoints\" : this.concatOptions?.formatter === \"thousandsSeparatorAndDecimalPoints\") this.thousandsSeparatorAndDecimalPointsFormatter();\n else if (typeof this.concatOptions?.formatter === \"object\" ? this.concatOptions?.formatter?.type === \"integer\" : this.concatOptions?.formatter === \"integer\") this.integerFormatter();\n else if (typeof this.concatOptions?.formatter === \"object\" && (this.concatOptions?.formatter?.prefix || this.concatOptions?.formatter?.postfix)) this.prefixOrPostfixFormatter();\n noUiSlider.create(this.el, this.concatOptions);\n if (this.concatOptions.disabled) this.setDisabled();\n }\n formatValue(val) {\n let result = \"\";\n if (typeof this.concatOptions?.formatter === \"object\") {\n if (this.concatOptions?.formatter?.prefix) result += this.concatOptions?.formatter?.prefix;\n result += val;\n if (this.concatOptions?.formatter?.postfix) result += this.concatOptions?.formatter?.postfix;\n } else result += val;\n return result;\n }\n integerFormatter() {\n this.format = {\n to: (val)=>this.formatValue(Math.round(val)),\n from: (val)=>Math.round(+val)\n };\n if (this.concatOptions?.tooltips) this.concatOptions.tooltips = this.format;\n }\n prefixOrPostfixFormatter() {\n this.format = {\n to: (val)=>this.formatValue(val),\n from: (val)=>+val\n };\n if (this.concatOptions?.tooltips) this.concatOptions.tooltips = this.format;\n }\n thousandsSeparatorAndDecimalPointsFormatter() {\n this.format = {\n to: (val)=>this.formatValue(new Intl.NumberFormat(\"en-US\", {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2\n }).format(val)),\n from: (val)=>parseFloat(val.replace(/,/g, \"\"))\n };\n if (this.concatOptions?.tooltips) this.concatOptions.tooltips = this.format;\n }\n setDisabled() {\n this.el.setAttribute(\"disabled\", \"disabled\");\n this.el.classList.add(\"disabled\");\n }\n // Static methods\n static getInstance(target, isInstance = false) {\n const elInCollection = window.$hsRangeSliderCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static autoInit() {\n if (!window.$hsRangeSliderCollection) window.$hsRangeSliderCollection = [];\n document.querySelectorAll(\"[data-hs-range-slider]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsRangeSliderCollection.find((elC)=>elC?.element?.el === el)) new $5f48515a1ac16095$var$HSRangeSlider(el);\n });\n }\n // Backward compatibility\n static on(evt, target, cb) {\n const elInCollection = window.$hsRangeSliderCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) elInCollection.element.events[evt] = cb;\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $5f48515a1ac16095$var$HSRangeSlider.autoInit();\n// Uncomment for debug\n// console.log('Range slider collection:', window.$hsRangeSliderCollection);\n});\nif (typeof window !== \"undefined\") window.HSRangeSlider = $5f48515a1ac16095$var$HSRangeSlider;\nvar $5f48515a1ac16095$export$2e2bcd8739ae039 = $5f48515a1ac16095$var$HSRangeSlider;\n\n});\n\n/*\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ /*\n * HSCopyMarkup\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $f48d59abfdbd8930$var$HSCopyMarkup extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n const data = el.getAttribute(\"data-hs-copy-markup\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.targetSelector = concatOptions?.targetSelector || null;\n this.wrapperSelector = concatOptions?.wrapperSelector || null;\n this.limit = concatOptions?.limit || null;\n this.items = [];\n if (this.targetSelector) this.init();\n }\n init() {\n this.createCollection(window.$hsCopyMarkupCollection, this);\n this.setTarget();\n this.setWrapper();\n this.addPredefinedItems();\n this.el.addEventListener(\"click\", ()=>this.copy());\n }\n copy() {\n if (this.limit && this.items.length >= this.limit) return false;\n if (this.el.hasAttribute(\"disabled\")) this.el.setAttribute(\"disabled\", \"\");\n const copiedElement = this.target.cloneNode(true);\n this.addToItems(copiedElement);\n if (this.limit && this.items.length >= this.limit) this.el.setAttribute(\"disabled\", \"disabled\");\n this.fireEvent(\"copy\", copiedElement);\n (0, $cZqAW.dispatch)(\"copy.hs.copyMarkup\", copiedElement, copiedElement);\n }\n addPredefinedItems() {\n Array.from(this.wrapper.children).filter((el)=>!el.classList.contains(\"[--ignore-for-count]\")).forEach((el)=>{\n this.addToItems(el);\n });\n }\n setTarget() {\n const target = typeof this.targetSelector === \"string\" ? document.querySelector(this.targetSelector).cloneNode(true) : this.targetSelector.cloneNode(true);\n target.removeAttribute(\"id\");\n this.target = target;\n }\n setWrapper() {\n this.wrapper = typeof this.wrapperSelector === \"string\" ? document.querySelector(this.wrapperSelector) : this.wrapperSelector;\n }\n addToItems(item) {\n const deleteItemButton = item.querySelector(\"[data-hs-copy-markup-delete-item]\");\n if (this.wrapper) this.wrapper.append(item);\n else this.el.before(item);\n if (deleteItemButton) deleteItemButton.addEventListener(\"click\", ()=>this.delete(item));\n this.items.push(item);\n }\n // Public methods\n delete(target) {\n const index = this.items.indexOf(target);\n if (index !== -1) this.items.splice(index, 1);\n target.remove();\n this.fireEvent(\"delete\", target);\n (0, $cZqAW.dispatch)(\"delete.hs.copyMarkup\", target, target);\n }\n // Static method\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsCopyMarkupCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsCopyMarkupCollection) window.$hsCopyMarkupCollection = [];\n document.querySelectorAll(\"[data-hs-copy-markup]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsCopyMarkupCollection.find((elC)=>elC?.element?.el === el)) {\n const data = el.getAttribute(\"data-hs-copy-markup\");\n const options = data ? JSON.parse(data) : {};\n new $f48d59abfdbd8930$var$HSCopyMarkup(el, options);\n }\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $f48d59abfdbd8930$var$HSCopyMarkup.autoInit();\n// Uncomment for debug\n// console.log('Copy markup collection:', window.$hsCopyMarkupCollection);\n});\nif (typeof window !== \"undefined\") window.HSCopyMarkup = $f48d59abfdbd8930$var$HSCopyMarkup;\nvar $f48d59abfdbd8930$export$2e2bcd8739ae039 = $f48d59abfdbd8930$var$HSCopyMarkup;\n\n\n/*\n * HSAccordion\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $a86d1961e40cbdd1$var$HSAccordion extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n this.toggle = this.el.querySelector(\".hs-accordion-toggle\") || null;\n this.content = this.el.querySelector(\".hs-accordion-content\") || null;\n this.update();\n if (this.toggle && this.content) this.init();\n }\n init() {\n this.createCollection(window.$hsAccordionCollection, this);\n this.toggle.addEventListener(\"click\", (evt)=>{\n evt.stopPropagation();\n if (this.el.classList.contains(\"active\")) this.hide();\n else this.show();\n });\n }\n // Public methods\n show() {\n if (this.group && !this.isAlwaysOpened && this.group.querySelector(\":scope > .hs-accordion.active\") && this.group.querySelector(\":scope > .hs-accordion.active\") !== this.el) {\n const currentlyOpened = window.$hsAccordionCollection.find((el)=>el.element.el === this.group.querySelector(\":scope > .hs-accordion.active\"));\n currentlyOpened.element.hide();\n }\n if (this.el.classList.contains(\"active\")) return false;\n this.el.classList.add(\"active\");\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"true\";\n this.content.style.display = \"block\";\n this.content.style.height = \"0\";\n setTimeout(()=>{\n this.content.style.height = `${this.content.scrollHeight}px`;\n });\n (0, $cZqAW.afterTransition)(this.content, ()=>{\n this.content.style.display = \"block\";\n this.content.style.height = \"\";\n this.fireEvent(\"open\", this.el);\n (0, $cZqAW.dispatch)(\"open.hs.accordion\", this.el, this.el);\n });\n }\n hide() {\n if (!this.el.classList.contains(\"active\")) return false;\n this.el.classList.remove(\"active\");\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"false\";\n this.content.style.height = `${this.content.scrollHeight}px`;\n setTimeout(()=>{\n this.content.style.height = \"0\";\n });\n (0, $cZqAW.afterTransition)(this.content, ()=>{\n this.content.style.display = \"\";\n this.content.style.height = \"0\";\n this.fireEvent(\"close\", this.el);\n (0, $cZqAW.dispatch)(\"close.hs.accordion\", this.el, this.el);\n });\n }\n update() {\n this.group = this.el.closest(\".hs-accordion-group\") || null;\n if (!this.group) return false;\n this.isAlwaysOpened = this.group.hasAttribute(\"data-hs-accordion-always-open\") || false;\n window.$hsAccordionCollection.map((el)=>{\n if (el.id === this.el.id) {\n el.element.group = this.group;\n el.element.isAlwaysOpened = this.isAlwaysOpened;\n }\n return el;\n });\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsAccordionCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static show(target) {\n const elInCollection = window.$hsAccordionCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && elInCollection.element.content.style.display !== \"block\") elInCollection.element.show();\n }\n static hide(target) {\n const elInCollection = window.$hsAccordionCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && elInCollection.element.content.style.display === \"block\") elInCollection.element.hide();\n }\n static autoInit() {\n if (!window.$hsAccordionCollection) window.$hsAccordionCollection = [];\n document.querySelectorAll(\".hs-accordion:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsAccordionCollection.find((elC)=>elC?.element?.el === el)) new $a86d1961e40cbdd1$var$HSAccordion(el);\n });\n }\n static treeView() {\n if (!document.querySelectorAll(\".hs-accordion-treeview-root\").length) return false;\n this.selectable = [];\n document.querySelectorAll(\".hs-accordion-treeview-root\").forEach((el)=>{\n const data = el?.getAttribute(\"data-hs-accordion-options\");\n const options = data ? JSON.parse(data) : {};\n this.selectable.push({\n el: el,\n options: {\n ...options\n }\n });\n });\n if (this.selectable.length) this.selectable.forEach((item)=>{\n const { el: el } = item;\n el.querySelectorAll(\".hs-accordion-selectable\").forEach((_el)=>{\n _el.addEventListener(\"click\", (evt)=>{\n evt.stopPropagation();\n this.toggleSelected(item, _el);\n });\n });\n });\n }\n static toggleSelected(root, item) {\n if (item.classList.contains(\"selected\")) item.classList.remove(\"selected\");\n else {\n root.el.querySelectorAll(\".hs-accordion-selectable\").forEach((el)=>el.classList.remove(\"selected\"));\n item.classList.add(\"selected\");\n }\n }\n // Backward compatibility\n static on(evt, target, cb) {\n const elInCollection = window.$hsAccordionCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) elInCollection.element.events[evt] = cb;\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $a86d1961e40cbdd1$var$HSAccordion.autoInit();\n if (document.querySelectorAll(\".hs-accordion-treeview-root\").length) $a86d1961e40cbdd1$var$HSAccordion.treeView();\n// Uncomment for debug\n// console.log('Accordion collection:', window.$hsAccordionCollection);\n});\nif (typeof window !== \"undefined\") window.HSAccordion = $a86d1961e40cbdd1$var$HSAccordion;\nvar $a86d1961e40cbdd1$export$2e2bcd8739ae039 = $a86d1961e40cbdd1$var$HSAccordion;\n\n\n/*\n * HSCarousel\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nconst $ef84b720836c77d7$export$1a1f61c9c4dd9df0 = {\n auto: \"auto\",\n \"auto-start\": \"auto-start\",\n \"auto-end\": \"auto-end\",\n top: \"top\",\n \"top-left\": \"top-start\",\n \"top-right\": \"top-end\",\n bottom: \"bottom\",\n \"bottom-left\": \"bottom-start\",\n \"bottom-right\": \"bottom-end\",\n right: \"right\",\n \"right-start\": \"right-start\",\n \"right-end\": \"right-end\",\n left: \"left\",\n \"left-start\": \"left-start\",\n \"left-end\": \"left-end\"\n};\nconst $ef84b720836c77d7$export$ab14482922808af8 = [\n \"Escape\",\n \"ArrowUp\",\n \"ArrowDown\",\n \"Home\",\n \"End\",\n \"Enter\"\n];\nconst $ef84b720836c77d7$export$d563486924a41abc = [\n \"Escape\",\n \"Tab\"\n];\nconst $ef84b720836c77d7$export$8c1058a58d2daf41 = [\n \"ArrowUp\",\n \"ArrowLeft\",\n \"ArrowDown\",\n \"ArrowRight\",\n \"Home\",\n \"End\"\n];\nconst $ef84b720836c77d7$export$717c92bf60493a1c = [\n \"ArrowUp\",\n \"ArrowLeft\",\n \"ArrowDown\",\n \"ArrowRight\",\n \"Home\",\n \"End\",\n \"Escape\",\n \"Enter\",\n \"Tab\"\n];\nconst $ef84b720836c77d7$export$3ea3ef3aa4c9fb07 = [\n \"ArrowUp\",\n \"ArrowLeft\",\n \"ArrowDown\",\n \"ArrowRight\",\n \"Home\",\n \"End\",\n \"Escape\",\n \"Enter\"\n];\nconst $ef84b720836c77d7$export$426e07cd0772984d = {\n xs: 0,\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n \"2xl\": 1536\n};\n\n\nclass $7d82f08a580c5533$var$HSCarousel extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n const data = el.getAttribute(\"data-hs-carousel\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.currentIndex = concatOptions.currentIndex || 0;\n this.loadingClasses = concatOptions.loadingClasses ? `${concatOptions.loadingClasses}`.split(\",\") : null;\n this.dotsItemClasses = concatOptions.dotsItemClasses ? concatOptions.dotsItemClasses : null;\n this.isAutoHeight = typeof concatOptions.isAutoHeight !== \"undefined\" ? concatOptions.isAutoHeight : false;\n this.isAutoPlay = typeof concatOptions.isAutoPlay !== \"undefined\" ? concatOptions.isAutoPlay : false;\n this.isCentered = typeof concatOptions.isCentered !== \"undefined\" ? concatOptions.isCentered : false;\n this.isDraggable = typeof concatOptions.isDraggable !== \"undefined\" ? concatOptions.isDraggable : false;\n this.isInfiniteLoop = typeof concatOptions.isInfiniteLoop !== \"undefined\" ? concatOptions.isInfiniteLoop : false;\n this.isRTL = typeof concatOptions.isRTL !== \"undefined\" ? concatOptions.isRTL : false;\n this.isSnap = typeof concatOptions.isSnap !== \"undefined\" ? concatOptions.isSnap : false;\n this.hasSnapSpacers = typeof concatOptions.hasSnapSpacers !== \"undefined\" ? concatOptions.hasSnapSpacers : true;\n this.speed = concatOptions.speed || 4000;\n this.updateDelay = concatOptions.updateDelay || 0;\n this.slidesQty = concatOptions.slidesQty || 1;\n this.loadingClassesRemove = this.loadingClasses?.[0] ? this.loadingClasses[0].split(\" \") : \"opacity-0\";\n this.loadingClassesAdd = this.loadingClasses?.[1] ? this.loadingClasses[1].split(\" \") : \"\";\n this.afterLoadingClassesAdd = this.loadingClasses?.[2] ? this.loadingClasses[2].split(\" \") : \"\";\n this.container = this.el.querySelector(\".hs-carousel\") || null;\n this.inner = this.el.querySelector(\".hs-carousel-body\") || null;\n this.slides = this.el.querySelectorAll(\".hs-carousel-slide\") || [];\n this.prev = this.el.querySelector(\".hs-carousel-prev\") || null;\n this.next = this.el.querySelector(\".hs-carousel-next\") || null;\n this.dots = this.el.querySelector(\".hs-carousel-pagination\") || null;\n this.info = this.el.querySelector(\".hs-carousel-info\") || null;\n this.infoTotal = this?.info?.querySelector(\".hs-carousel-info-total\") || null;\n this.infoCurrent = this?.info?.querySelector(\".hs-carousel-info-current\") || null;\n this.sliderWidth = this.el.getBoundingClientRect().width;\n // Drag events' help variables\n this.isDragging = false;\n this.dragStartX = null;\n this.initialTranslateX = null;\n // Touch events' help variables\n this.touchX = {\n start: 0,\n end: 0\n };\n // Resize events' help variables\n this.resizeContainer = document.querySelector(\"body\");\n this.resizeContainerWidth = 0;\n this.init();\n }\n setIsSnap() {\n const containerRect = this.container.getBoundingClientRect();\n const containerCenter = containerRect.left + containerRect.width / 2;\n let closestElement = null;\n let closestElementIndex = null;\n let closestDistance = Infinity;\n Array.from(this.inner.children).forEach((child)=>{\n const childRect = child.getBoundingClientRect();\n const innerContainerRect = this.inner.getBoundingClientRect();\n const childCenter = childRect.left + childRect.width / 2 - innerContainerRect.left;\n const distance = Math.abs(containerCenter - (innerContainerRect.left + childCenter));\n if (distance < closestDistance) {\n closestDistance = distance;\n closestElement = child;\n }\n });\n if (closestElement) closestElementIndex = Array.from(this.slides).findIndex((el)=>el === closestElement);\n this.setIndex(closestElementIndex);\n if (this.dots) this.setCurrentDot();\n }\n init() {\n this.createCollection(window.$hsCarouselCollection, this);\n if (this.inner) {\n this.calculateWidth();\n if (this.isDraggable && !this.isSnap) this.initDragHandling();\n }\n if (this.prev) this.prev.addEventListener(\"click\", ()=>{\n this.goToPrev();\n if (this.isAutoPlay) {\n this.resetTimer();\n this.setTimer();\n }\n });\n if (this.next) this.next.addEventListener(\"click\", ()=>{\n this.goToNext();\n if (this.isAutoPlay) {\n this.resetTimer();\n this.setTimer();\n }\n });\n if (this.dots) this.initDots();\n if (this.info) this.buildInfo();\n if (this.slides.length) {\n this.addCurrentClass();\n if (!this.isInfiniteLoop) this.addDisabledClass();\n if (this.isAutoPlay) this.autoPlay();\n }\n setTimeout(()=>{\n if (this.isSnap) this.setIsSnap();\n if (this.loadingClassesRemove) {\n if (typeof this.loadingClassesRemove === \"string\") this.inner.classList.remove(this.loadingClassesRemove);\n else this.inner.classList.remove(...this.loadingClassesRemove);\n }\n if (this.loadingClassesAdd) {\n if (typeof this.loadingClassesAdd === \"string\") this.inner.classList.add(this.loadingClassesAdd);\n else this.inner.classList.add(...this.loadingClassesAdd);\n }\n if (this.inner && this.afterLoadingClassesAdd) setTimeout(()=>{\n if (typeof this.afterLoadingClassesAdd === \"string\") this.inner.classList.add(this.afterLoadingClassesAdd);\n else this.inner.classList.add(...this.afterLoadingClassesAdd);\n });\n }, 400);\n if (this.isSnap) this.container.addEventListener(\"scroll\", ()=>{\n clearTimeout(this.isScrolling);\n this.isScrolling = setTimeout(()=>{\n this.setIsSnap();\n }, 100);\n });\n this.el.classList.add(\"init\");\n if (!this.isSnap) {\n this.el.addEventListener(\"touchstart\", (evt)=>{\n this.touchX.start = evt.changedTouches[0].screenX;\n });\n this.el.addEventListener(\"touchend\", (evt)=>{\n this.touchX.end = evt.changedTouches[0].screenX;\n this.detectDirection();\n });\n }\n this.observeResize();\n }\n initDragHandling() {\n const scrollableElement = this.inner;\n if (scrollableElement) {\n scrollableElement.addEventListener(\"mousedown\", this.handleDragStart.bind(this));\n scrollableElement.addEventListener(\"touchstart\", this.handleDragStart.bind(this), {\n passive: true\n });\n document.addEventListener(\"mousemove\", this.handleDragMove.bind(this));\n document.addEventListener(\"touchmove\", this.handleDragMove.bind(this), {\n passive: false\n });\n document.addEventListener(\"mouseup\", this.handleDragEnd.bind(this));\n document.addEventListener(\"touchend\", this.handleDragEnd.bind(this));\n }\n }\n getTranslateXValue() {\n const transformMatrix = window.getComputedStyle(this.inner).transform;\n if (transformMatrix !== \"none\") {\n const matrixValues = transformMatrix.match(/matrix.*\\((.+)\\)/)?.[1].split(\", \");\n if (matrixValues) {\n let translateX = parseFloat(matrixValues.length === 6 ? matrixValues[4] : matrixValues[12]);\n if (this.isRTL) translateX = -translateX;\n return isNaN(translateX) || translateX === 0 ? 0 : -translateX;\n }\n }\n return 0;\n }\n removeClickEventWhileDragging(evt) {\n evt.preventDefault();\n }\n handleDragStart(evt) {\n evt.preventDefault();\n this.isDragging = true;\n this.dragStartX = this.getEventX(evt);\n this.initialTranslateX = this.isRTL ? this.getTranslateXValue() : -this.getTranslateXValue();\n this.inner.classList.add(\"dragging\");\n }\n handleDragMove(evt) {\n if (!this.isDragging) return;\n this.inner.querySelectorAll(\"a:not(.prevented-click)\").forEach((el)=>{\n el.classList.add(\"prevented-click\");\n el.addEventListener(\"click\", this.removeClickEventWhileDragging);\n });\n const currentX = this.getEventX(evt);\n let deltaX = currentX - this.dragStartX;\n if (this.isRTL) deltaX = -deltaX;\n const newTranslateX = this.initialTranslateX + deltaX;\n const newTranslateXFunc = ()=>{\n let calcWidth = this.sliderWidth * this.slides.length / this.getCurrentSlidesQty() - this.sliderWidth;\n const containerWidth = this.sliderWidth;\n const itemWidth = containerWidth / this.getCurrentSlidesQty();\n const centeredOffset = (containerWidth - itemWidth) / 2;\n const limitStart = this.isCentered ? centeredOffset : 0;\n if (this.isCentered) calcWidth = calcWidth + centeredOffset;\n const limitEnd = -calcWidth;\n if (this.isRTL) {\n if (newTranslateX < limitStart) return limitStart;\n if (newTranslateX > calcWidth) return limitEnd;\n else return -newTranslateX;\n } else {\n if (newTranslateX > limitStart) return limitStart;\n else if (newTranslateX < -calcWidth) return limitEnd;\n else return newTranslateX;\n }\n };\n this.setTranslate(newTranslateXFunc());\n }\n handleDragEnd() {\n if (!this.isDragging) return;\n this.isDragging = false;\n const containerWidth = this.sliderWidth;\n const itemWidth = containerWidth / this.getCurrentSlidesQty();\n const currentTranslateX = this.getTranslateXValue();\n let closestIndex = Math.round(currentTranslateX / itemWidth);\n if (this.isRTL) closestIndex = Math.round(currentTranslateX / itemWidth);\n this.inner.classList.remove(\"dragging\");\n setTimeout(()=>{\n this.calculateTransform(closestIndex);\n if (this.dots) this.setCurrentDot();\n this.dragStartX = null;\n this.initialTranslateX = null;\n this.inner.querySelectorAll(\"a.prevented-click\").forEach((el)=>{\n el.classList.remove(\"prevented-click\");\n el.removeEventListener(\"click\", this.removeClickEventWhileDragging);\n });\n });\n }\n getEventX(event) {\n return event instanceof MouseEvent ? event.clientX : event.touches[0].clientX;\n }\n getCurrentSlidesQty() {\n if (typeof this.slidesQty === \"object\") {\n const windowWidth = document.body.clientWidth;\n let currentRes = 0;\n Object.keys(this.slidesQty).forEach((key)=>{\n if (windowWidth >= (typeof key + 1 === \"number\" ? this.slidesQty[key] : (0, $ef84b720836c77d7$export$426e07cd0772984d)[key])) currentRes = this.slidesQty[key];\n });\n return currentRes;\n } else return this.slidesQty;\n }\n buildSnapSpacers() {\n const existingBefore = this.inner.querySelector(\".hs-snap-before\");\n const existingAfter = this.inner.querySelector(\".hs-snap-after\");\n if (existingBefore) existingBefore.remove();\n if (existingAfter) existingAfter.remove();\n const containerWidth = this.sliderWidth;\n const itemWidth = containerWidth / this.getCurrentSlidesQty();\n const spacerWidth = containerWidth / 2 - itemWidth / 2;\n const before = (0, $cZqAW.htmlToElement)(`
`);\n const after = (0, $cZqAW.htmlToElement)(`
`);\n this.inner.prepend(before);\n this.inner.appendChild(after);\n }\n initDots() {\n if (this.el.querySelectorAll(\".hs-carousel-pagination-item\").length) this.setDots();\n else this.buildDots();\n if (this.dots) this.setCurrentDot();\n }\n buildDots() {\n this.dots.innerHTML = \"\";\n const slidesQty = !this.isCentered && this.slidesQty ? this.slides.length - (this.getCurrentSlidesQty() - 1) : this.slides.length;\n for(let i = 0; i < slidesQty; i++){\n const singleDot = this.buildSingleDot(i);\n this.dots.append(singleDot);\n }\n }\n setDots() {\n this.dotsItems = this.dots.querySelectorAll(\".hs-carousel-pagination-item\");\n this.dotsItems.forEach((dot, ind)=>{\n const targetIndex = dot.getAttribute(\"data-carousel-pagination-item-target\");\n this.singleDotEvents(dot, targetIndex ? +targetIndex : ind);\n });\n }\n goToCurrentDot() {\n const container = this.dots;\n const containerRect = container.getBoundingClientRect();\n const containerScrollLeft = container.scrollLeft;\n const containerScrollTop = container.scrollTop;\n const containerWidth = container.clientWidth;\n const containerHeight = container.clientHeight;\n const item = this.dotsItems[this.currentIndex];\n const itemRect = item.getBoundingClientRect();\n const itemLeft = itemRect.left - containerRect.left + containerScrollLeft;\n const itemRight = itemLeft + item.clientWidth;\n const itemTop = itemRect.top - containerRect.top + containerScrollTop;\n const itemBottom = itemTop + item.clientHeight;\n let scrollLeft = containerScrollLeft;\n let scrollTop = containerScrollTop;\n if (itemLeft < containerScrollLeft || itemRight > containerScrollLeft + containerWidth) scrollLeft = itemRight - containerWidth;\n if (itemTop < containerScrollTop || itemBottom > containerScrollTop + containerHeight) scrollTop = itemBottom - containerHeight;\n container.scrollTo({\n left: scrollLeft,\n top: scrollTop,\n behavior: \"smooth\"\n });\n }\n buildInfo() {\n if (this.infoTotal) this.setInfoTotal();\n if (this.infoCurrent) this.setInfoCurrent();\n }\n setInfoTotal() {\n this.infoTotal.innerText = `${this.slides.length}`;\n }\n setInfoCurrent() {\n this.infoCurrent.innerText = `${this.currentIndex + 1}`;\n }\n buildSingleDot(ind) {\n const singleDot = (0, $cZqAW.htmlToElement)(\"\");\n if (this.dotsItemClasses) (0, $cZqAW.classToClassList)(this.dotsItemClasses, singleDot);\n this.singleDotEvents(singleDot, ind);\n return singleDot;\n }\n singleDotEvents(dot, ind) {\n dot.addEventListener(\"click\", ()=>{\n this.goTo(ind);\n if (this.isAutoPlay) {\n this.resetTimer();\n this.setTimer();\n }\n });\n }\n observeResize() {\n const resizeObserver = new ResizeObserver((0, $cZqAW.debounce)((entries)=>{\n for (let entry of entries){\n const newWidth = entry.contentRect.width;\n if (newWidth !== this.resizeContainerWidth) {\n this.recalculateWidth();\n if (this.dots) this.initDots();\n this.addCurrentClass();\n this.resizeContainerWidth = newWidth;\n }\n }\n }, this.updateDelay));\n resizeObserver.observe(this.resizeContainer);\n }\n calculateWidth() {\n if (!this.isSnap) this.inner.style.width = `${this.sliderWidth * this.slides.length / this.getCurrentSlidesQty()}px`;\n this.slides.forEach((el)=>{\n el.style.width = `${this.sliderWidth / this.getCurrentSlidesQty()}px`;\n });\n this.calculateTransform();\n }\n addCurrentClass() {\n if (this.isSnap) {\n const itemsQty = Math.floor(this.getCurrentSlidesQty() / 2);\n for(let i = 0; i < this.slides.length; i++){\n const slide = this.slides[i];\n if (i <= this.currentIndex + itemsQty && i >= this.currentIndex - itemsQty) slide.classList.add(\"active\");\n else slide.classList.remove(\"active\");\n }\n } else {\n const maxIndex = this.isCentered ? this.currentIndex + this.getCurrentSlidesQty() + (this.getCurrentSlidesQty() - 1) : this.currentIndex + this.getCurrentSlidesQty();\n this.slides.forEach((el, i)=>{\n if (i >= this.currentIndex && i < maxIndex) el.classList.add(\"active\");\n else el.classList.remove(\"active\");\n });\n }\n }\n setCurrentDot() {\n const toggleDotActive = (el, i)=>{\n let statement = false;\n const itemsQty = Math.floor(this.getCurrentSlidesQty() / 2);\n if (this.isSnap && !this.hasSnapSpacers) statement = i === (this.getCurrentSlidesQty() % 2 === 0 ? this.currentIndex - itemsQty + 1 : this.currentIndex - itemsQty);\n else statement = i === this.currentIndex;\n if (statement) el.classList.add(\"active\");\n else el.classList.remove(\"active\");\n };\n if (this.dotsItems) this.dotsItems.forEach((el, i)=>toggleDotActive(el, i));\n else this.dots.querySelectorAll(\":scope > *\").forEach((el, i)=>toggleDotActive(el, i));\n }\n setElementToDisabled(el) {\n el.classList.add(\"disabled\");\n if (el.tagName === \"BUTTON\" || el.tagName === \"INPUT\") el.setAttribute(\"disabled\", \"disabled\");\n }\n unsetElementToDisabled(el) {\n el.classList.remove(\"disabled\");\n if (el.tagName === \"BUTTON\" || el.tagName === \"INPUT\") el.removeAttribute(\"disabled\");\n }\n addDisabledClass() {\n if (!this.prev || !this.next) return false;\n const gapValue = getComputedStyle(this.inner).getPropertyValue(\"gap\");\n const itemsQty = Math.floor(this.getCurrentSlidesQty() / 2);\n let currentIndex = 0;\n let maxIndex = 0;\n let statementPrev = false;\n let statementNext = false;\n if (this.isSnap) {\n currentIndex = this.currentIndex;\n maxIndex = this.hasSnapSpacers ? this.slides.length - 1 : this.slides.length - itemsQty - 1;\n statementPrev = this.hasSnapSpacers ? currentIndex === 0 : this.getCurrentSlidesQty() % 2 === 0 ? currentIndex - itemsQty < 0 : currentIndex - itemsQty === 0;\n statementNext = currentIndex >= maxIndex && this.container.scrollLeft + this.container.clientWidth + (parseFloat(gapValue) || 0) >= this.container.scrollWidth;\n } else {\n currentIndex = this.currentIndex;\n maxIndex = this.isCentered ? this.slides.length - this.getCurrentSlidesQty() + (this.getCurrentSlidesQty() - 1) : this.slides.length - this.getCurrentSlidesQty();\n statementPrev = currentIndex === 0;\n statementNext = currentIndex >= maxIndex;\n }\n if (statementPrev) {\n this.unsetElementToDisabled(this.next);\n this.setElementToDisabled(this.prev);\n } else if (statementNext) {\n this.unsetElementToDisabled(this.prev);\n this.setElementToDisabled(this.next);\n } else {\n this.unsetElementToDisabled(this.prev);\n this.unsetElementToDisabled(this.next);\n }\n }\n autoPlay() {\n this.setTimer();\n }\n setTimer() {\n this.timer = setInterval(()=>{\n if (this.currentIndex === this.slides.length - 1) this.goTo(0);\n else this.goToNext();\n }, this.speed);\n }\n resetTimer() {\n clearInterval(this.timer);\n }\n detectDirection() {\n const { start: start, end: end } = this.touchX;\n if (end < start) this.goToNext();\n if (end > start) this.goToPrev();\n }\n // Public methods\n recalculateWidth() {\n this.sliderWidth = this.inner.parentElement.getBoundingClientRect().width;\n this.calculateWidth();\n if (this.sliderWidth !== this.inner.parentElement.getBoundingClientRect().width) this.recalculateWidth();\n }\n calculateTransform(currentIdx) {\n if (currentIdx !== undefined) this.currentIndex = currentIdx;\n if (this.currentIndex > this.slides.length - this.getCurrentSlidesQty() && !this.isCentered) this.currentIndex = this.slides.length - this.getCurrentSlidesQty();\n const containerWidth = this.sliderWidth;\n const itemWidth = containerWidth / this.getCurrentSlidesQty();\n let translateX = this.currentIndex * itemWidth;\n // TODO:: need to test auto scrolling to the end if last on resize\n if (this.isSnap && !this.isCentered) {\n if (this.container.scrollLeft < containerWidth && this.container.scrollLeft + itemWidth / 2 > containerWidth) this.container.scrollLeft = this.container.scrollWidth;\n }\n if (this.isCentered && !this.isSnap) {\n const centeredOffset = (containerWidth - itemWidth) / 2;\n if (this.currentIndex === 0) translateX = -centeredOffset;\n else if (this.currentIndex >= this.slides.length - this.getCurrentSlidesQty() + (this.getCurrentSlidesQty() - 1)) {\n const totalSlideWidth = this.slides.length * itemWidth;\n translateX = totalSlideWidth - containerWidth + centeredOffset;\n } else translateX = this.currentIndex * itemWidth - centeredOffset;\n }\n if (!this.isSnap) this.inner.style.transform = this.isRTL ? `translate(${translateX}px, 0px)` : `translate(${-translateX}px, 0px)`;\n if (this.isAutoHeight) this.inner.style.height = `${this.slides[this.currentIndex].clientHeight}px`;\n if (this.dotsItems) this.goToCurrentDot();\n this.addCurrentClass();\n if (!this.isInfiniteLoop) this.addDisabledClass();\n if (this.isSnap && this.hasSnapSpacers) this.buildSnapSpacers();\n if (this.infoCurrent) this.setInfoCurrent();\n }\n setTranslate(val) {\n this.inner.style.transform = this.isRTL ? `translate(${-val}px, 0px)` : `translate(${val}px, 0px)`;\n }\n goToPrev() {\n if (this.currentIndex > 0) this.currentIndex--;\n else this.currentIndex = this.slides.length - this.getCurrentSlidesQty();\n if (this.isSnap) {\n const itemWidth = this.sliderWidth / this.getCurrentSlidesQty();\n this.container.scrollBy({\n left: Math.max(-this.container.scrollLeft, -itemWidth),\n behavior: \"smooth\"\n });\n this.addCurrentClass();\n if (!this.isInfiniteLoop) this.addDisabledClass();\n } else this.calculateTransform();\n if (this.dots) this.setCurrentDot();\n }\n goToNext() {\n const statement = this.isCentered ? this.slides.length - this.getCurrentSlidesQty() + (this.getCurrentSlidesQty() - 1) : this.slides.length - this.getCurrentSlidesQty();\n if (this.currentIndex < statement) this.currentIndex++;\n else this.currentIndex = 0;\n if (this.isSnap) {\n const itemWidth = this.sliderWidth / this.getCurrentSlidesQty();\n const maxScrollLeft = this.container.scrollWidth - this.container.clientWidth;\n this.container.scrollBy({\n left: Math.min(itemWidth, maxScrollLeft - this.container.scrollLeft),\n behavior: \"smooth\"\n });\n this.addCurrentClass();\n if (!this.isInfiniteLoop) this.addDisabledClass();\n } else this.calculateTransform();\n if (this.dots) this.setCurrentDot();\n }\n goTo(i) {\n const currentIndex = this.currentIndex;\n this.currentIndex = i;\n if (this.isSnap) {\n const itemWidth = this.sliderWidth / this.getCurrentSlidesQty();\n const index = currentIndex > this.currentIndex ? currentIndex - this.currentIndex : this.currentIndex - currentIndex;\n const width = currentIndex > this.currentIndex ? -(itemWidth * index) : itemWidth * index;\n this.container.scrollBy({\n left: width,\n behavior: \"smooth\"\n });\n this.addCurrentClass();\n if (!this.isInfiniteLoop) this.addDisabledClass();\n } else this.calculateTransform();\n if (this.dots) this.setCurrentDot();\n }\n setIndex(i) {\n this.currentIndex = i;\n this.addCurrentClass();\n if (!this.isInfiniteLoop) this.addDisabledClass();\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsCarouselCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsCarouselCollection) window.$hsCarouselCollection = [];\n document.querySelectorAll(\"[data-hs-carousel]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsCarouselCollection.find((elC)=>elC?.element?.el === el)) new $7d82f08a580c5533$var$HSCarousel(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $7d82f08a580c5533$var$HSCarousel.autoInit();\n// Uncomment for debug\n// console.log('Carousel collection:', window.$hsCarouselCollection);\n});\nif (typeof window !== \"undefined\") window.HSCarousel = $7d82f08a580c5533$var$HSCarousel;\nvar $7d82f08a580c5533$export$2e2bcd8739ae039 = $7d82f08a580c5533$var$HSCarousel;\n\n\n/*\n * HSCollapse\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $e0d3a37d788d765e$var$HSCollapse extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n this.contentId = this.el.dataset.hsCollapse;\n this.content = document.querySelector(this.contentId);\n this.animationInProcess = false;\n if (this.content) this.init();\n }\n init() {\n this.createCollection(window.$hsCollapseCollection, this);\n if (this?.el?.ariaExpanded) {\n if (this.el.classList.contains(\"open\")) this.el.ariaExpanded = \"true\";\n else this.el.ariaExpanded = \"false\";\n }\n this.el.addEventListener(\"click\", ()=>{\n if (this.content.classList.contains(\"open\")) this.hide();\n else this.show();\n });\n }\n hideAllMegaMenuItems() {\n this.content.querySelectorAll(\".hs-mega-menu-content.block\").forEach((el)=>{\n el.classList.remove(\"block\");\n el.classList.add(\"hidden\");\n });\n }\n // Public methods\n show() {\n if (this.animationInProcess || this.el.classList.contains(\"open\")) return false;\n this.animationInProcess = true;\n this.el.classList.add(\"open\");\n if (this?.el?.ariaExpanded) this.el.ariaExpanded = \"true\";\n this.content.classList.add(\"open\");\n this.content.classList.remove(\"hidden\");\n this.content.style.height = \"0\";\n setTimeout(()=>{\n this.content.style.height = `${this.content.scrollHeight}px`;\n this.fireEvent(\"beforeOpen\", this.el);\n (0, $cZqAW.dispatch)(\"beforeOpen.hs.collapse\", this.el, this.el);\n });\n (0, $cZqAW.afterTransition)(this.content, ()=>{\n this.content.style.height = \"\";\n this.fireEvent(\"open\", this.el);\n (0, $cZqAW.dispatch)(\"open.hs.collapse\", this.el, this.el);\n this.animationInProcess = false;\n });\n }\n hide() {\n if (this.animationInProcess || !this.el.classList.contains(\"open\")) return false;\n this.animationInProcess = true;\n this.el.classList.remove(\"open\");\n if (this?.el?.ariaExpanded) this.el.ariaExpanded = \"false\";\n this.content.style.height = `${this.content.scrollHeight}px`;\n setTimeout(()=>{\n this.content.style.height = \"0\";\n });\n this.content.classList.remove(\"open\");\n (0, $cZqAW.afterTransition)(this.content, ()=>{\n this.content.classList.add(\"hidden\");\n this.content.style.height = \"\";\n this.fireEvent(\"hide\", this.el);\n (0, $cZqAW.dispatch)(\"hide.hs.collapse\", this.el, this.el);\n this.animationInProcess = false;\n });\n if (this.content.querySelectorAll(\".hs-mega-menu-content.block\").length) this.hideAllMegaMenuItems();\n }\n // Static methods\n static getInstance(target, isInstance = false) {\n const elInCollection = window.$hsCollapseCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static autoInit() {\n if (!window.$hsCollapseCollection) window.$hsCollapseCollection = [];\n document.querySelectorAll(\".hs-collapse-toggle:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsCollapseCollection.find((elC)=>elC?.element?.el === el)) new $e0d3a37d788d765e$var$HSCollapse(el);\n });\n }\n static show(target) {\n const elInCollection = window.$hsCollapseCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && elInCollection.element.content.classList.contains(\"hidden\")) elInCollection.element.show();\n }\n static hide(target) {\n const elInCollection = window.$hsCollapseCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && !elInCollection.element.content.classList.contains(\"hidden\")) elInCollection.element.hide();\n }\n // Backward compatibility\n static on(evt, target, cb) {\n const elInCollection = window.$hsCollapseCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) elInCollection.element.events[evt] = cb;\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $e0d3a37d788d765e$var$HSCollapse.autoInit();\n// Uncomment for debug\n// console.log('Collapse collection:', window.$hsCollapseCollection);\n});\nif (typeof window !== \"undefined\") window.HSCollapse = $e0d3a37d788d765e$var$HSCollapse;\nvar $e0d3a37d788d765e$export$2e2bcd8739ae039 = $e0d3a37d788d765e$var$HSCollapse;\n\n\n/*\n * HSComboBox\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\n\nclass $679ae2f22a56cb31$var$HSComboBox extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n // Data parameters\n const data = el.getAttribute(\"data-hs-combo-box\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.gap = 5;\n this.viewport = (typeof concatOptions?.viewport === \"string\" ? document.querySelector(concatOptions?.viewport) : concatOptions?.viewport) ?? null;\n this.preventVisibility = concatOptions?.preventVisibility ?? false;\n this.apiUrl = concatOptions?.apiUrl ?? null;\n this.apiDataPart = concatOptions?.apiDataPart ?? null;\n this.apiQuery = concatOptions?.apiQuery ?? null;\n this.apiSearchQuery = concatOptions?.apiSearchQuery ?? null;\n this.apiHeaders = concatOptions?.apiHeaders ?? {};\n this.apiGroupField = concatOptions?.apiGroupField ?? null;\n this.outputItemTemplate = concatOptions?.outputItemTemplate ?? `
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
`;\n this.outputEmptyTemplate = concatOptions?.outputEmptyTemplate ?? `
Nothing found...
`;\n this.outputLoaderTemplate = concatOptions?.outputLoaderTemplate ?? `
\n\t\t\t\t
\n\t\t\t\t\tLoading...\n\t\t\t\t
\n\t\t\t
`;\n this.groupingType = concatOptions?.groupingType ?? null;\n this.groupingTitleTemplate = concatOptions?.groupingTitleTemplate ?? (this.groupingType === \"default\" ? `
` : ``);\n this.tabsWrapperTemplate = concatOptions?.tabsWrapperTemplate ?? `
`;\n this.preventSelection = concatOptions?.preventSelection ?? false;\n this.preventAutoPosition = concatOptions?.preventAutoPosition ?? false;\n this.isOpenOnFocus = concatOptions?.isOpenOnFocus ?? false;\n // Internal parameters\n this.input = this.el.querySelector(\"[data-hs-combo-box-input]\") ?? null;\n this.output = this.el.querySelector(\"[data-hs-combo-box-output]\") ?? null;\n this.itemsWrapper = this.el.querySelector(\"[data-hs-combo-box-output-items-wrapper]\") ?? null;\n this.items = Array.from(this.el.querySelectorAll(\"[data-hs-combo-box-output-item]\")) ?? [];\n this.tabs = [];\n this.toggle = this.el.querySelector(\"[data-hs-combo-box-toggle]\") ?? null;\n this.toggleClose = this.el.querySelector(\"[data-hs-combo-box-close]\") ?? null;\n this.toggleOpen = this.el.querySelector(\"[data-hs-combo-box-open]\") ?? null;\n this.outputPlaceholder = null;\n this.selected = this.value = this.el.querySelector(\"[data-hs-combo-box-input]\").value ?? \"\";\n this.isOpened = false;\n this.isCurrent = false;\n this.animationInProcess = false;\n this.selectedGroup = \"all\";\n this.init();\n }\n init() {\n this.createCollection(window.$hsComboBoxCollection, this);\n this.build();\n }\n build() {\n this.buildInput();\n if (this.groupingType) this.setGroups();\n this.buildItems();\n if (this.preventVisibility) // TODO:: test the plugin while the line below is commented.\n // this.isOpened = true;\n {\n if (!this.preventAutoPosition) this.recalculateDirection();\n }\n if (this.toggle) this.buildToggle();\n if (this.toggleClose) this.buildToggleClose();\n if (this.toggleOpen) this.buildToggleOpen();\n }\n setResultAndRender(value = \"\") {\n // TODO:: test the plugin with below code added.\n let _value = this.preventVisibility ? this.input.value : value;\n this.setResults(_value);\n if (this.apiSearchQuery) this.itemsFromJson();\n }\n buildInput() {\n if (this.isOpenOnFocus) this.input.addEventListener(\"focus\", ()=>{\n if (!this.isOpened) {\n this.setResultAndRender();\n this.open();\n }\n });\n this.input.addEventListener(\"input\", (0, $cZqAW.debounce)((evt)=>{\n this.setResultAndRender(evt.target.value);\n if (this.input.value !== \"\") this.el.classList.add(\"has-value\");\n else this.el.classList.remove(\"has-value\");\n if (!this.isOpened) this.open();\n }));\n }\n buildItems() {\n this.output.role = \"listbox\";\n this.output.tabIndex = -1;\n this.output.ariaOrientation = \"vertical\";\n if (this.apiUrl) this.itemsFromJson();\n else {\n if (this.itemsWrapper) this.itemsWrapper.innerHTML = \"\";\n else this.output.innerHTML = \"\";\n this.itemsFromHtml();\n }\n }\n setResults(val) {\n this.value = val;\n this.resultItems();\n if (this.hasVisibleItems()) this.destroyOutputPlaceholder();\n else this.buildOutputPlaceholder();\n }\n isItemExists(obj) {\n return this.items.some((el)=>{\n const groupField = el.getAttribute(\"data-hs-combo-box-output-item-group-field\") ?? null;\n const params = JSON.parse(el.getAttribute(\"data-hs-combo-box-output-item\")) ?? null;\n let group = null;\n if (groupField && params?.group?.name) group = obj[groupField];\n return Array.from(el.querySelectorAll(\"[data-hs-combo-box-search-text]\")).some((elI)=>{\n const equality = params?.group?.name && group ? group === params.group.name && elI.getAttribute(\"data-hs-combo-box-search-text\") === obj[elI.getAttribute(\"data-hs-combo-box-output-item-field\")] : elI.getAttribute(\"data-hs-combo-box-search-text\") === obj[elI.getAttribute(\"data-hs-combo-box-output-item-field\")];\n return equality;\n });\n });\n }\n isTextExists(el, val) {\n const lowerCased = val.map((v)=>v.toLowerCase());\n return Array.from(el.querySelectorAll(\"[data-hs-combo-box-search-text]\")).some((elI)=>lowerCased.includes(elI.getAttribute(\"data-hs-combo-box-search-text\").toLowerCase()));\n }\n isTextExistsAny(el, val) {\n return Array.from(el.querySelectorAll(\"[data-hs-combo-box-search-text]\")).some((elI)=>elI.getAttribute(\"data-hs-combo-box-search-text\").toLowerCase().includes(val.toLowerCase()));\n }\n valuesBySelector(el) {\n return Array.from(el.querySelectorAll(\"[data-hs-combo-box-search-text]\")).reduce((acc, cur)=>[\n ...acc,\n cur.getAttribute(\"data-hs-combo-box-search-text\")\n ], []);\n }\n buildOutputLoader() {\n if (this.outputLoader) return false;\n this.outputLoader = (0, $cZqAW.htmlToElement)(this.outputLoaderTemplate);\n if (this.items.length || this.outputPlaceholder) {\n this.outputLoader.style.position = \"absolute\";\n this.outputLoader.style.top = \"0\";\n this.outputLoader.style.bottom = \"0\";\n this.outputLoader.style.left = \"0\";\n this.outputLoader.style.right = \"0\";\n this.outputLoader.style.zIndex = \"2\";\n } else {\n this.outputLoader.style.position = \"\";\n this.outputLoader.style.top = \"\";\n this.outputLoader.style.bottom = \"\";\n this.outputLoader.style.left = \"\";\n this.outputLoader.style.right = \"\";\n this.outputLoader.style.zIndex = \"\";\n this.outputLoader.style.height = \"30px\";\n }\n this.output.append(this.outputLoader);\n }\n destroyOutputLoader() {\n if (this.outputLoader) this.outputLoader.remove();\n this.outputLoader = null;\n }\n async itemsFromJson() {\n this.buildOutputLoader();\n try {\n const query = `${this.apiQuery}`;\n const searchQuery = `${this.apiSearchQuery}=${this.value.toLowerCase()}`;\n let url = this.apiUrl;\n if (this.apiQuery && this.apiSearchQuery) url += `?${searchQuery}&${query}`;\n else if (this.apiQuery) url += `?${query}`;\n else if (this.apiSearchQuery) url += `?${searchQuery}`;\n const res = await fetch(url, this.apiHeaders);\n let items = await res.json();\n if (this.apiDataPart) items = items[this.apiDataPart];\n if (this.apiSearchQuery) this.items = [];\n if (this.itemsWrapper) this.itemsWrapper.innerHTML = \"\";\n else this.output.innerHTML = \"\";\n if (this.groupingType === \"tabs\") {\n this.setApiGroups(items);\n this.groupTabsRender();\n this.jsonItemsRender(items);\n } else if (this.groupingType === \"default\") {\n this.setApiGroups(items);\n this.groups.forEach((el)=>{\n const title = (0, $cZqAW.htmlToElement)(this.groupingTitleTemplate);\n title.setAttribute(\"data-hs-combo-box-group-title\", el.name);\n title.classList.add(\"--exclude-accessibility\");\n title.innerText = el.title;\n const newItems = items.filter((i)=>i[this.apiGroupField] === el.name);\n if (this.itemsWrapper) this.itemsWrapper.append(title);\n else this.output.append(title);\n this.jsonItemsRender(newItems);\n });\n } else this.jsonItemsRender(items);\n this.setResults(this.input.value);\n } catch (err) {\n console.error(err);\n }\n this.destroyOutputLoader();\n }\n jsonItemsRender(items) {\n items.forEach((item, index)=>{\n // TODO:: test without checking below\n // if (this.isItemExists(item)) return false;\n const newItem = (0, $cZqAW.htmlToElement)(this.outputItemTemplate);\n newItem.querySelectorAll(\"[data-hs-combo-box-output-item-field]\").forEach((el)=>{\n const value = item[el.getAttribute(\"data-hs-combo-box-output-item-field\")];\n const hideIfEmpty = el.hasAttribute(\"data-hs-combo-box-output-item-hide-if-empty\");\n el.textContent = value ?? \"\";\n if (!value && hideIfEmpty) el.style.display = \"none\";\n });\n newItem.querySelectorAll(\"[data-hs-combo-box-search-text]\").forEach((el)=>{\n el.setAttribute(\"data-hs-combo-box-search-text\", item[el.getAttribute(\"data-hs-combo-box-output-item-field\")] ?? \"\");\n });\n newItem.querySelectorAll(\"[data-hs-combo-box-output-item-attr]\").forEach((el)=>{\n const attributes = JSON.parse(el.getAttribute(\"data-hs-combo-box-output-item-attr\"));\n attributes.forEach((attr)=>{\n el.setAttribute(attr.attr, item[attr.valueFrom]);\n });\n });\n newItem.setAttribute(\"tabIndex\", `${index}`);\n if (this.groupingType === \"tabs\" || this.groupingType === \"default\") newItem.setAttribute(\"data-hs-combo-box-output-item\", `{\"group\": {\"name\": \"${item[this.apiGroupField]}\", \"title\": \"${item[this.apiGroupField]}\"}}`);\n this.items = [\n ...this.items,\n newItem\n ];\n if (!this.preventSelection) newItem.addEventListener(\"click\", ()=>{\n this.close(newItem.querySelector(\"[data-hs-combo-box-value]\").getAttribute(\"data-hs-combo-box-search-text\"));\n this.setSelectedByValue(this.valuesBySelector(newItem));\n });\n this.appendItemsToWrapper(newItem);\n });\n }\n setGroups() {\n const groups = [];\n this.items.forEach((item)=>{\n const { group: group } = JSON.parse(item.getAttribute(\"data-hs-combo-box-output-item\"));\n if (!groups.some((el)=>el?.name === group.name)) groups.push(group);\n });\n this.groups = groups;\n }\n setCurrent() {\n if (window.$hsComboBoxCollection.length) {\n window.$hsComboBoxCollection.map((el)=>el.element.isCurrent = false);\n this.isCurrent = true;\n }\n }\n setApiGroups(items) {\n const groups = [];\n items.forEach((item)=>{\n const group = item[this.apiGroupField];\n if (!groups.some((el)=>el.name === group)) groups.push({\n name: group,\n title: group\n });\n });\n this.groups = groups;\n }\n sortItems() {\n const compareFn = (i1, i2)=>{\n const a = i1.querySelector(\"[data-hs-combo-box-value]\").getAttribute(\"data-hs-combo-box-search-text\");\n const b = i2.querySelector(\"[data-hs-combo-box-value]\").getAttribute(\"data-hs-combo-box-search-text\");\n if (a < b) return -1;\n else if (a > b) return 1;\n return 0;\n };\n return this.items.sort(compareFn);\n }\n itemRender(item) {\n const val = item.querySelector(\"[data-hs-combo-box-value]\").getAttribute(\"data-hs-combo-box-search-text\");\n if (this.itemsWrapper) this.itemsWrapper.append(item);\n else this.output.append(item);\n if (!this.preventSelection) item.addEventListener(\"click\", ()=>{\n this.close(val);\n this.setSelectedByValue(this.valuesBySelector(item));\n });\n }\n plainRender(items) {\n items.forEach((item)=>{\n this.itemRender(item);\n });\n }\n groupTabsRender() {\n const tabsScroll = (0, $cZqAW.htmlToElement)(this.tabsWrapperTemplate);\n const tabsWrapper = (0, $cZqAW.htmlToElement)(`
`);\n tabsScroll.append(tabsWrapper);\n this.output.insertBefore(tabsScroll, this.output.firstChild);\n const tabDef = (0, $cZqAW.htmlToElement)(this.groupingTitleTemplate);\n tabDef.setAttribute(\"data-hs-combo-box-group-title\", \"all\");\n tabDef.classList.add(\"--exclude-accessibility\", \"active\");\n tabDef.innerText = \"All\";\n this.tabs = [\n ...this.tabs,\n tabDef\n ];\n tabsWrapper.append(tabDef);\n tabDef.addEventListener(\"click\", ()=>{\n this.selectedGroup = \"all\";\n const selectedTab = this.tabs.find((elI)=>elI.getAttribute(\"data-hs-combo-box-group-title\") === this.selectedGroup);\n this.tabs.forEach((el)=>el.classList.remove(\"active\"));\n selectedTab.classList.add(\"active\");\n this.setItemsVisibility();\n });\n this.groups.forEach((el)=>{\n const tab = (0, $cZqAW.htmlToElement)(this.groupingTitleTemplate);\n tab.setAttribute(\"data-hs-combo-box-group-title\", el.name);\n tab.classList.add(\"--exclude-accessibility\");\n tab.innerText = el.title;\n this.tabs = [\n ...this.tabs,\n tab\n ];\n tabsWrapper.append(tab);\n tab.addEventListener(\"click\", ()=>{\n this.selectedGroup = el.name;\n const selectedTab = this.tabs.find((elI)=>elI.getAttribute(\"data-hs-combo-box-group-title\") === this.selectedGroup);\n this.tabs.forEach((el)=>el.classList.remove(\"active\"));\n selectedTab.classList.add(\"active\");\n this.setItemsVisibility();\n });\n });\n }\n groupDefaultRender() {\n this.groups.forEach((el)=>{\n const title = (0, $cZqAW.htmlToElement)(this.groupingTitleTemplate);\n title.setAttribute(\"data-hs-combo-box-group-title\", el.name);\n title.classList.add(\"--exclude-accessibility\");\n title.innerText = el.title;\n if (this.itemsWrapper) this.itemsWrapper.append(title);\n else this.output.append(title);\n const items = this.sortItems().filter((f)=>{\n const { group: group } = JSON.parse(f.getAttribute(\"data-hs-combo-box-output-item\"));\n return group.name === el.name;\n });\n this.plainRender(items);\n });\n }\n itemsFromHtml() {\n if (this.groupingType === \"default\") this.groupDefaultRender();\n else if (this.groupingType === \"tabs\") {\n const items = this.sortItems();\n this.groupTabsRender();\n this.plainRender(items);\n } else {\n const items = this.sortItems();\n this.plainRender(items);\n }\n this.setResults(this.input.value);\n }\n buildToggle() {\n if (this.isOpened) {\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"true\";\n if (this?.input?.ariaExpanded) this.input.ariaExpanded = \"true\";\n } else {\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"false\";\n if (this?.input?.ariaExpanded) this.input.ariaExpanded = \"false\";\n }\n this.toggle.addEventListener(\"click\", ()=>{\n if (this.isOpened) this.close();\n else this.open(this.toggle.getAttribute(\"data-hs-combo-box-toggle\"));\n });\n }\n buildToggleClose() {\n this.toggleClose.addEventListener(\"click\", ()=>this.close());\n }\n buildToggleOpen() {\n this.toggleOpen.addEventListener(\"click\", ()=>this.open());\n }\n setSelectedByValue(val) {\n this.items.forEach((el)=>{\n if (this.isTextExists(el, val)) el.classList.add(\"selected\");\n else el.classList.remove(\"selected\");\n });\n }\n setValue(val) {\n this.selected = val;\n this.value = val;\n this.input.value = val;\n this.fireEvent(\"select\", this.el);\n (0, $cZqAW.dispatch)(\"select.hs.combobox\", this.el, this.value);\n }\n setItemsVisibility() {\n if (this.groupingType === \"tabs\" && this.selectedGroup !== \"all\") this.items.forEach((item)=>{\n item.style.display = \"none\";\n });\n const items = this.groupingType === \"tabs\" ? this.selectedGroup === \"all\" ? this.items : this.items.filter((f)=>{\n const { group: group } = JSON.parse(f.getAttribute(\"data-hs-combo-box-output-item\"));\n return group.name === this.selectedGroup;\n }) : this.items;\n if (this.groupingType === \"tabs\" && this.selectedGroup !== \"all\") items.forEach((item)=>{\n item.style.display = \"block\";\n });\n items.forEach((item)=>{\n if (!this.isTextExistsAny(item, this.value)) item.style.display = \"none\";\n else item.style.display = \"block\";\n });\n if (this.groupingType === \"default\") this.output.querySelectorAll(\"[data-hs-combo-box-group-title]\").forEach((el)=>{\n const g = el.getAttribute(\"data-hs-combo-box-group-title\");\n const items = this.items.filter((f)=>{\n const { group: group } = JSON.parse(f.getAttribute(\"data-hs-combo-box-output-item\"));\n return group.name === g && f.style.display === \"block\";\n });\n if (items.length) el.style.display = \"block\";\n else el.style.display = \"none\";\n });\n }\n hasVisibleItems() {\n return this.items.length ? this.items.some((el)=>el.style.display === \"block\") : false;\n }\n appendItemsToWrapper(item) {\n if (this.itemsWrapper) this.itemsWrapper.append(item);\n else this.output.append(item);\n }\n buildOutputPlaceholder() {\n if (!this.outputPlaceholder) this.outputPlaceholder = (0, $cZqAW.htmlToElement)(this.outputEmptyTemplate);\n this.appendItemsToWrapper(this.outputPlaceholder);\n }\n destroyOutputPlaceholder() {\n if (this.outputPlaceholder) this.outputPlaceholder.remove();\n this.outputPlaceholder = null;\n }\n resultItems() {\n if (!this.items.length) return false;\n this.setItemsVisibility();\n this.setSelectedByValue([\n this.selected\n ]);\n }\n // Public methods\n setValueAndOpen(val) {\n this.value = val;\n if (this.items.length) this.setItemsVisibility();\n }\n open(val) {\n if (this.animationInProcess) return false;\n if (typeof val !== \"undefined\") this.setValueAndOpen(val);\n if (this.preventVisibility) return false;\n this.animationInProcess = true;\n this.output.style.display = \"block\";\n if (!this.preventAutoPosition) this.recalculateDirection();\n setTimeout(()=>{\n if (this?.input?.ariaExpanded) this.input.ariaExpanded = \"true\";\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"true\";\n this.el.classList.add(\"active\");\n this.animationInProcess = false;\n });\n this.isOpened = true;\n }\n setValueAndClear(val) {\n if (val) this.setValue(val);\n else this.setValue(this.selected);\n if (this.outputPlaceholder) this.destroyOutputPlaceholder();\n }\n close(val) {\n if (this.animationInProcess) return false;\n if (this.preventVisibility) {\n this.setValueAndClear(val);\n if (this.input.value !== \"\") this.el.classList.add(\"has-value\");\n else this.el.classList.remove(\"has-value\");\n return false;\n }\n this.animationInProcess = true;\n if (this?.input?.ariaExpanded) this.input.ariaExpanded = \"false\";\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"false\";\n this.el.classList.remove(\"active\");\n if (!this.preventAutoPosition) {\n this.output.classList.remove(\"bottom-full\", \"top-full\");\n this.output.style.marginTop = \"\";\n this.output.style.marginBottom = \"\";\n }\n (0, $cZqAW.afterTransition)(this.output, ()=>{\n this.output.style.display = \"none\";\n this.setValueAndClear(val);\n this.animationInProcess = false;\n });\n if (this.input.value !== \"\") this.el.classList.add(\"has-value\");\n else this.el.classList.remove(\"has-value\");\n this.isOpened = false;\n }\n recalculateDirection() {\n if ((0, $cZqAW.isEnoughSpace)(this.output, this.input, \"bottom\", this.gap, this.viewport)) {\n this.output.classList.remove(\"bottom-full\");\n this.output.style.marginBottom = \"\";\n this.output.classList.add(\"top-full\");\n this.output.style.marginTop = `${this.gap}px`;\n } else {\n this.output.classList.remove(\"top-full\");\n this.output.style.marginTop = \"\";\n this.output.classList.add(\"bottom-full\");\n this.output.style.marginBottom = `${this.gap}px`;\n }\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsComboBoxCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsComboBoxCollection) window.$hsComboBoxCollection = [];\n document.querySelectorAll(\"[data-hs-combo-box]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsComboBoxCollection.find((elC)=>elC?.element?.el === el)) {\n const data = el.getAttribute(\"data-hs-combo-box\");\n const options = data ? JSON.parse(data) : {};\n new $679ae2f22a56cb31$var$HSComboBox(el, options);\n }\n });\n if (window.$hsComboBoxCollection) {\n window.addEventListener(\"click\", (evt)=>{\n const evtTarget = evt.target;\n $679ae2f22a56cb31$var$HSComboBox.closeCurrentlyOpened(evtTarget);\n });\n document.addEventListener(\"keydown\", (evt)=>$679ae2f22a56cb31$var$HSComboBox.accessibility(evt));\n }\n }\n static close(target) {\n const elInCollection = window.$hsComboBoxCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && elInCollection.element.isOpened) elInCollection.element.close();\n }\n static closeCurrentlyOpened(evtTarget = null) {\n if (!evtTarget.closest(\"[data-hs-combo-box].active\")) {\n const currentlyOpened = window.$hsComboBoxCollection.filter((el)=>el.element.isOpened) || null;\n if (currentlyOpened) currentlyOpened.forEach((el)=>{\n el.element.close();\n });\n }\n }\n // Accessibility methods\n static getPreparedItems(isReversed = false, output) {\n if (!output) return null;\n const preparedItems = isReversed ? Array.from(output.querySelectorAll(\":scope > *:not(.--exclude-accessibility)\")).filter((el)=>el.style.display !== \"none\").reverse() : Array.from(output.querySelectorAll(\":scope > *:not(.--exclude-accessibility)\")).filter((el)=>el.style.display !== \"none\");\n const items = preparedItems.filter((el)=>!el.classList.contains(\"disabled\"));\n return items;\n }\n static setHighlighted(prev, current, input) {\n current.focus();\n input.value = current.querySelector(\"[data-hs-combo-box-value]\").getAttribute(\"data-hs-combo-box-search-text\");\n if (prev) prev.classList.remove(\"hs-combo-box-output-item-highlighted\");\n current.classList.add(\"hs-combo-box-output-item-highlighted\");\n }\n static accessibility(evt) {\n const target = window.$hsComboBoxCollection.find((el)=>el.element.preventVisibility ? el.element.isCurrent : el.element.isOpened);\n if (target && (0, $ef84b720836c77d7$export$3ea3ef3aa4c9fb07).includes(evt.code) && !evt.metaKey) switch(evt.code){\n case \"Escape\":\n evt.preventDefault();\n this.onEscape();\n break;\n case \"ArrowUp\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onArrow();\n break;\n case \"ArrowDown\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onArrow(false);\n break;\n case \"Home\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onStartEnd();\n break;\n case \"End\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onStartEnd(false);\n break;\n case \"Enter\":\n evt.preventDefault();\n this.onEnter(evt);\n break;\n default:\n break;\n }\n }\n static onEscape() {\n const target = window.$hsComboBoxCollection.find((el)=>!el.element.preventVisibility && el.element.isOpened);\n if (target) {\n target.element.close();\n target.element.input.blur();\n }\n }\n static onArrow(isArrowUp = true) {\n const target = window.$hsComboBoxCollection.find((el)=>el.element.preventVisibility ? el.element.isCurrent : el.element.isOpened);\n if (target) {\n const output = target.element.itemsWrapper ?? target.element.output;\n if (!output) return false;\n const items = $679ae2f22a56cb31$var$HSComboBox.getPreparedItems(isArrowUp, output);\n const current = output.querySelector(\".hs-combo-box-output-item-highlighted\");\n let currentItem = null;\n if (!current) items[0].classList.add(\"hs-combo-box-output-item-highlighted\");\n let currentInd = items.findIndex((el)=>el === current);\n if (currentInd + 1 < items.length) currentInd++;\n currentItem = items[currentInd];\n $679ae2f22a56cb31$var$HSComboBox.setHighlighted(current, currentItem, target.element.input);\n }\n }\n static onStartEnd(isStart = true) {\n const target = window.$hsComboBoxCollection.find((el)=>el.element.preventVisibility ? el.element.isCurrent : el.element.isOpened);\n if (target) {\n const output = target.element.itemsWrapper ?? target.element.output;\n if (!output) return false;\n const items = $679ae2f22a56cb31$var$HSComboBox.getPreparedItems(isStart, output);\n const current = output.querySelector(\".hs-combo-box-output-item-highlighted\");\n if (items.length) $679ae2f22a56cb31$var$HSComboBox.setHighlighted(current, items[0], target.element.input);\n }\n }\n static onEnter(evt) {\n const target = evt.target;\n const opened = window.$hsComboBoxCollection.find((el)=>!(0, $cZqAW.isParentOrElementHidden)(el.element.el) && evt.target.closest(\"[data-hs-combo-box]\") === el.element.el);\n const link = opened.element.el.querySelector(\".hs-combo-box-output-item-highlighted a\");\n if (target.hasAttribute(\"data-hs-combo-box-input\")) {\n opened.element.close();\n target.blur();\n } else {\n if (!opened.element.preventSelection) opened.element.setSelectedByValue(opened.element.valuesBySelector(evt.target));\n if (opened.element.preventSelection && link) window.location.assign(link.getAttribute(\"href\"));\n opened.element.close(!opened.element.preventSelection ? evt.target.querySelector(\"[data-hs-combo-box-value]\").getAttribute(\"data-hs-combo-box-search-text\") : null);\n }\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $679ae2f22a56cb31$var$HSComboBox.autoInit();\n// Uncomment for debug\n// console.log('ComboBox collection:', window.$hsComboBoxCollection);\n});\ndocument.addEventListener(\"scroll\", ()=>{\n if (!window.$hsComboBoxCollection) return false;\n const target = window.$hsComboBoxCollection.find((el)=>el.element.isOpened);\n if (target && !target.element.preventAutoPosition) target.element.recalculateDirection();\n});\nif (typeof window !== \"undefined\") window.HSComboBox = $679ae2f22a56cb31$var$HSComboBox;\nvar $679ae2f22a56cb31$export$2e2bcd8739ae039 = $679ae2f22a56cb31$var$HSComboBox;\n\n\n/*\n * HSDropdown\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\nfunction $6985093033570817$export$2e2bcd8739ae039(node) {\n if (node == null) return window;\n if (node.toString() !== \"[object Window]\") {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n return node;\n}\n\n\nfunction $69730206aa270d41$export$45a5e7f76e0caa8d(node) {\n var OwnElement = (0, $6985093033570817$export$2e2bcd8739ae039)(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\nfunction $69730206aa270d41$export$1b3bfaa9684536aa(node) {\n var OwnElement = (0, $6985093033570817$export$2e2bcd8739ae039)(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\nfunction $69730206aa270d41$export$af51f0f06c0f328a(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === \"undefined\") return false;\n var OwnElement = (0, $6985093033570817$export$2e2bcd8739ae039)(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\n\nvar $3711db8b00de96df$export$8960430cfd85939f = Math.max;\nvar $3711db8b00de96df$export$96ec731ed4dcb222 = Math.min;\nvar $3711db8b00de96df$export$2077e0241d6afd3c = Math.round;\n\n\n\nfunction $6de7caa8ee90d63c$export$2e2bcd8739ae039() {\n var uaData = navigator.userAgentData;\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) return uaData.brands.map(function(item) {\n return item.brand + \"/\" + item.version;\n }).join(\" \");\n return navigator.userAgent;\n}\n\n\nfunction $bef5ff765617d084$export$2e2bcd8739ae039() {\n return !/^((?!chrome|android).)*safari/i.test((0, $6de7caa8ee90d63c$export$2e2bcd8739ae039)());\n}\n\n\nfunction $2ef6a598263dba8e$export$2e2bcd8739ae039(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) includeScale = false;\n if (isFixedStrategy === void 0) isFixedStrategy = false;\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n if (includeScale && (0, $69730206aa270d41$export$1b3bfaa9684536aa)(element)) {\n scaleX = element.offsetWidth > 0 ? (0, $3711db8b00de96df$export$2077e0241d6afd3c)(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? (0, $3711db8b00de96df$export$2077e0241d6afd3c)(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n var _ref = (0, $69730206aa270d41$export$45a5e7f76e0caa8d)(element) ? (0, $6985093033570817$export$2e2bcd8739ae039)(element) : window, visualViewport = _ref.visualViewport;\n var addVisualOffsets = !(0, $bef5ff765617d084$export$2e2bcd8739ae039)() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}\n\n\n\nfunction $39a9a96b6f99add9$export$2e2bcd8739ae039(node) {\n var win = (0, $6985093033570817$export$2e2bcd8739ae039)(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}\n\n\n\n\nfunction $d47756cb7a847081$export$2e2bcd8739ae039(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}\n\n\nfunction $ac7dd8aeabb81fe8$export$2e2bcd8739ae039(node) {\n if (node === (0, $6985093033570817$export$2e2bcd8739ae039)(node) || !(0, $69730206aa270d41$export$1b3bfaa9684536aa)(node)) return (0, $39a9a96b6f99add9$export$2e2bcd8739ae039)(node);\n else return (0, $d47756cb7a847081$export$2e2bcd8739ae039)(node);\n}\n\n\nfunction $04a691b7a330df44$export$2e2bcd8739ae039(element) {\n return element ? (element.nodeName || \"\").toLowerCase() : null;\n}\n\n\n\n\n\nfunction $0d1d9daad62fa952$export$2e2bcd8739ae039(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return (((0, $69730206aa270d41$export$45a5e7f76e0caa8d)(element) ? element.ownerDocument : element.document) || window.document).documentElement;\n}\n\n\n\nfunction $60124eceeef28a28$export$2e2bcd8739ae039(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return (0, $2ef6a598263dba8e$export$2e2bcd8739ae039)((0, $0d1d9daad62fa952$export$2e2bcd8739ae039)(element)).left + (0, $39a9a96b6f99add9$export$2e2bcd8739ae039)(element).scrollLeft;\n}\n\n\n\n\nfunction $cbd21d1454570861$export$2e2bcd8739ae039(element) {\n return (0, $6985093033570817$export$2e2bcd8739ae039)(element).getComputedStyle(element);\n}\n\n\nfunction $12881c0013479a14$export$2e2bcd8739ae039(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = (0, $cbd21d1454570861$export$2e2bcd8739ae039)(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}\n\n\n\nfunction $bcb265ed9201975a$var$isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = (0, $3711db8b00de96df$export$2077e0241d6afd3c)(rect.width) / element.offsetWidth || 1;\n var scaleY = (0, $3711db8b00de96df$export$2077e0241d6afd3c)(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\nfunction $bcb265ed9201975a$export$2e2bcd8739ae039(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) isFixed = false;\n var isOffsetParentAnElement = (0, $69730206aa270d41$export$1b3bfaa9684536aa)(offsetParent);\n var offsetParentIsScaled = (0, $69730206aa270d41$export$1b3bfaa9684536aa)(offsetParent) && $bcb265ed9201975a$var$isElementScaled(offsetParent);\n var documentElement = (0, $0d1d9daad62fa952$export$2e2bcd8739ae039)(offsetParent);\n var rect = (0, $2ef6a598263dba8e$export$2e2bcd8739ae039)(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if ((0, $04a691b7a330df44$export$2e2bcd8739ae039)(offsetParent) !== \"body\" || // https://github.com/popperjs/popper-core/issues/1078\n (0, $12881c0013479a14$export$2e2bcd8739ae039)(documentElement)) scroll = (0, $ac7dd8aeabb81fe8$export$2e2bcd8739ae039)(offsetParent);\n if ((0, $69730206aa270d41$export$1b3bfaa9684536aa)(offsetParent)) {\n offsets = (0, $2ef6a598263dba8e$export$2e2bcd8739ae039)(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) offsets.x = (0, $60124eceeef28a28$export$2e2bcd8739ae039)(documentElement);\n }\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}\n\n\n\nfunction $9effe2b32f662e4a$export$2e2bcd8739ae039(element) {\n var clientRect = (0, $2ef6a598263dba8e$export$2e2bcd8739ae039)(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n if (Math.abs(clientRect.width - width) <= 1) width = clientRect.width;\n if (Math.abs(clientRect.height - height) <= 1) height = clientRect.height;\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}\n\n\n\n\n\nfunction $773048fc1d2aa7ee$export$2e2bcd8739ae039(element) {\n if ((0, $04a691b7a330df44$export$2e2bcd8739ae039)(element) === \"html\") return element;\n return(// $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ((0, $69730206aa270d41$export$af51f0f06c0f328a)(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n (0, $0d1d9daad62fa952$export$2e2bcd8739ae039)(element) // fallback\n );\n}\n\n\n\n\n\nfunction $2cddda83e3357241$export$2e2bcd8739ae039(node) {\n if ([\n \"html\",\n \"body\",\n \"#document\"\n ].indexOf((0, $04a691b7a330df44$export$2e2bcd8739ae039)(node)) >= 0) // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n if ((0, $69730206aa270d41$export$1b3bfaa9684536aa)(node) && (0, $12881c0013479a14$export$2e2bcd8739ae039)(node)) return node;\n return $2cddda83e3357241$export$2e2bcd8739ae039((0, $773048fc1d2aa7ee$export$2e2bcd8739ae039)(node));\n}\n\n\n\n\n\nfunction $90b72ed15edfd54a$export$2e2bcd8739ae039(element, list) {\n var _element$ownerDocumen;\n if (list === void 0) list = [];\n var scrollParent = (0, $2cddda83e3357241$export$2e2bcd8739ae039)(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = (0, $6985093033570817$export$2e2bcd8739ae039)(scrollParent);\n var target = isBody ? [\n win\n ].concat(win.visualViewport || [], (0, $12881c0013479a14$export$2e2bcd8739ae039)(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : updatedList.concat($90b72ed15edfd54a$export$2e2bcd8739ae039((0, $773048fc1d2aa7ee$export$2e2bcd8739ae039)(target)));\n}\n\n\n\n\n\n\n\nfunction $fd46d779ec622be4$export$2e2bcd8739ae039(element) {\n return [\n \"table\",\n \"td\",\n \"th\"\n ].indexOf((0, $04a691b7a330df44$export$2e2bcd8739ae039)(element)) >= 0;\n}\n\n\n\n\nfunction $42fc94c94931c781$var$getTrueOffsetParent(element) {\n if (!(0, $69730206aa270d41$export$1b3bfaa9684536aa)(element) || // https://github.com/popperjs/popper-core/issues/837\n (0, $cbd21d1454570861$export$2e2bcd8739ae039)(element).position === \"fixed\") return null;\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\nfunction $42fc94c94931c781$var$getContainingBlock(element) {\n var isFirefox = /firefox/i.test((0, $6de7caa8ee90d63c$export$2e2bcd8739ae039)());\n var isIE = /Trident/i.test((0, $6de7caa8ee90d63c$export$2e2bcd8739ae039)());\n if (isIE && (0, $69730206aa270d41$export$1b3bfaa9684536aa)(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = (0, $cbd21d1454570861$export$2e2bcd8739ae039)(element);\n if (elementCss.position === \"fixed\") return null;\n }\n var currentNode = (0, $773048fc1d2aa7ee$export$2e2bcd8739ae039)(element);\n if ((0, $69730206aa270d41$export$af51f0f06c0f328a)(currentNode)) currentNode = currentNode.host;\n while((0, $69730206aa270d41$export$1b3bfaa9684536aa)(currentNode) && [\n \"html\",\n \"body\"\n ].indexOf((0, $04a691b7a330df44$export$2e2bcd8739ae039)(currentNode)) < 0){\n var css = (0, $cbd21d1454570861$export$2e2bcd8739ae039)(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n if (css.transform !== \"none\" || css.perspective !== \"none\" || css.contain === \"paint\" || [\n \"transform\",\n \"perspective\"\n ].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === \"filter\" || isFirefox && css.filter && css.filter !== \"none\") return currentNode;\n else currentNode = currentNode.parentNode;\n }\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\nfunction $42fc94c94931c781$export$2e2bcd8739ae039(element) {\n var window = (0, $6985093033570817$export$2e2bcd8739ae039)(element);\n var offsetParent = $42fc94c94931c781$var$getTrueOffsetParent(element);\n while(offsetParent && (0, $fd46d779ec622be4$export$2e2bcd8739ae039)(offsetParent) && (0, $cbd21d1454570861$export$2e2bcd8739ae039)(offsetParent).position === \"static\")offsetParent = $42fc94c94931c781$var$getTrueOffsetParent(offsetParent);\n if (offsetParent && ((0, $04a691b7a330df44$export$2e2bcd8739ae039)(offsetParent) === \"html\" || (0, $04a691b7a330df44$export$2e2bcd8739ae039)(offsetParent) === \"body\" && (0, $cbd21d1454570861$export$2e2bcd8739ae039)(offsetParent).position === \"static\")) return window;\n return offsetParent || $42fc94c94931c781$var$getContainingBlock(element) || window;\n}\n\n\n\nvar $1472b89a65155de2$export$1e95b668f3b82d = \"top\";\nvar $1472b89a65155de2$export$40e543e69a8b3fbb = \"bottom\";\nvar $1472b89a65155de2$export$79ffe56a765070d2 = \"right\";\nvar $1472b89a65155de2$export$eabcd2c8791e7bf4 = \"left\";\nvar $1472b89a65155de2$export$dfb5619354ba860 = \"auto\";\nvar $1472b89a65155de2$export$aec2ce47c367b8c3 = [\n $1472b89a65155de2$export$1e95b668f3b82d,\n $1472b89a65155de2$export$40e543e69a8b3fbb,\n $1472b89a65155de2$export$79ffe56a765070d2,\n $1472b89a65155de2$export$eabcd2c8791e7bf4\n];\nvar $1472b89a65155de2$export$b3571188c770cc5a = \"start\";\nvar $1472b89a65155de2$export$bd5df0f255a350f8 = \"end\";\nvar $1472b89a65155de2$export$390fd549c5303b4d = \"clippingParents\";\nvar $1472b89a65155de2$export$d7b7311ec04a3e8f = \"viewport\";\nvar $1472b89a65155de2$export$ae5ab1c730825774 = \"popper\";\nvar $1472b89a65155de2$export$ca50aac9f3ba507f = \"reference\";\nvar $1472b89a65155de2$export$368f9a87e87fa4e1 = /*#__PURE__*/ $1472b89a65155de2$export$aec2ce47c367b8c3.reduce(function(acc, placement) {\n return acc.concat([\n placement + \"-\" + $1472b89a65155de2$export$b3571188c770cc5a,\n placement + \"-\" + $1472b89a65155de2$export$bd5df0f255a350f8\n ]);\n}, []);\nvar $1472b89a65155de2$export$803cd8101b6c182b = /*#__PURE__*/ [].concat($1472b89a65155de2$export$aec2ce47c367b8c3, [\n $1472b89a65155de2$export$dfb5619354ba860\n]).reduce(function(acc, placement) {\n return acc.concat([\n placement,\n placement + \"-\" + $1472b89a65155de2$export$b3571188c770cc5a,\n placement + \"-\" + $1472b89a65155de2$export$bd5df0f255a350f8\n ]);\n}, []); // modifiers that need to read the DOM\nvar $1472b89a65155de2$export$421679a7c3d56e = \"beforeRead\";\nvar $1472b89a65155de2$export$aafa59e2e03f2942 = \"read\";\nvar $1472b89a65155de2$export$6964f6c886723980 = \"afterRead\"; // pure-logic modifiers\nvar $1472b89a65155de2$export$c65e99957a05207c = \"beforeMain\";\nvar $1472b89a65155de2$export$f22da7240b7add18 = \"main\";\nvar $1472b89a65155de2$export$bab79516f2d662fe = \"afterMain\"; // modifier with the purpose to write to the DOM (or write into a framework state)\nvar $1472b89a65155de2$export$8d4d2d70e7d46032 = \"beforeWrite\";\nvar $1472b89a65155de2$export$68d8715fc104d294 = \"write\";\nvar $1472b89a65155de2$export$70a6e5159acce2e6 = \"afterWrite\";\nvar $1472b89a65155de2$export$d087d3878fdf71d5 = [\n $1472b89a65155de2$export$421679a7c3d56e,\n $1472b89a65155de2$export$aafa59e2e03f2942,\n $1472b89a65155de2$export$6964f6c886723980,\n $1472b89a65155de2$export$c65e99957a05207c,\n $1472b89a65155de2$export$f22da7240b7add18,\n $1472b89a65155de2$export$bab79516f2d662fe,\n $1472b89a65155de2$export$8d4d2d70e7d46032,\n $1472b89a65155de2$export$68d8715fc104d294,\n $1472b89a65155de2$export$70a6e5159acce2e6\n];\n\n\nfunction $77bc085de34276f2$var$order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function(modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function(dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n if (depModifier) sort(depModifier);\n }\n });\n result.push(modifier);\n }\n modifiers.forEach(function(modifier) {\n if (!visited.has(modifier.name)) // check for visited object\n sort(modifier);\n });\n return result;\n}\nfunction $77bc085de34276f2$export$2e2bcd8739ae039(modifiers) {\n // order based on dependencies\n var orderedModifiers = $77bc085de34276f2$var$order(modifiers); // order based on phase\n return (0, $1472b89a65155de2$export$d087d3878fdf71d5).reduce(function(acc, phase) {\n return acc.concat(orderedModifiers.filter(function(modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}\n\n\nfunction $9b685cb08303911c$export$2e2bcd8739ae039(fn) {\n var pending;\n return function() {\n if (!pending) pending = new Promise(function(resolve) {\n Promise.resolve().then(function() {\n pending = undefined;\n resolve(fn());\n });\n });\n return pending;\n };\n}\n\n\n\n\n\nfunction $f58f9fd4551b4b0f$export$2e2bcd8739ae039(modifiers) {\n var merged = modifiers.reduce(function(merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n return Object.keys(merged).map(function(key) {\n return merged[key];\n });\n}\n\n\n\n\n\nvar $60bdf67e43f5dfcb$var$INVALID_ELEMENT_ERROR = \"Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.\";\nvar $60bdf67e43f5dfcb$var$INFINITE_LOOP_ERROR = \"Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.\";\nvar $60bdf67e43f5dfcb$var$DEFAULT_OPTIONS = {\n placement: \"bottom\",\n modifiers: [],\n strategy: \"absolute\"\n};\nfunction $60bdf67e43f5dfcb$var$areValidElements() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];\n return !args.some(function(element) {\n return !(element && typeof element.getBoundingClientRect === \"function\");\n });\n}\nfunction $60bdf67e43f5dfcb$export$ed5e13716264f202(generatorOptions) {\n if (generatorOptions === void 0) generatorOptions = {};\n var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions = _generatorOptions$def2 === void 0 ? $60bdf67e43f5dfcb$var$DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) options = defaultOptions;\n var state = {\n placement: \"bottom\",\n orderedModifiers: [],\n options: Object.assign({}, $60bdf67e43f5dfcb$var$DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === \"function\" ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: (0, $69730206aa270d41$export$45a5e7f76e0caa8d)(reference) ? (0, $90b72ed15edfd54a$export$2e2bcd8739ae039)(reference) : reference.contextElement ? (0, $90b72ed15edfd54a$export$2e2bcd8739ae039)(reference.contextElement) : [],\n popper: (0, $90b72ed15edfd54a$export$2e2bcd8739ae039)(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n var orderedModifiers = (0, $77bc085de34276f2$export$2e2bcd8739ae039)((0, $f58f9fd4551b4b0f$export$2e2bcd8739ae039)([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n state.orderedModifiers = orderedModifiers.filter(function(m) {\n return m.enabled;\n }); // Validate the provided modifiers so that the consumer will get warned\n var modifiers, flipModifier, _getComputedStyle, marginTop, marginRight, marginBottom, marginLeft;\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) return;\n var _state$elements = state.elements, reference = _state$elements.reference, popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n if (!$60bdf67e43f5dfcb$var$areValidElements(reference, popper)) return;\n // Store the reference and popper rects to be read by modifiers\n state.rects = {\n reference: (0, $bcb265ed9201975a$export$2e2bcd8739ae039)(reference, (0, $42fc94c94931c781$export$2e2bcd8739ae039)(popper), state.options.strategy === \"fixed\"),\n popper: (0, $9effe2b32f662e4a$export$2e2bcd8739ae039)(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n state.orderedModifiers.forEach(function(modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n var __debug_loops__ = 0;\n for(var index = 0; index < state.orderedModifiers.length; index++){\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n var _state$orderedModifie = state.orderedModifiers[index], fn = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;\n if (typeof fn === \"function\") state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: (0, $9b685cb08303911c$export$2e2bcd8739ae039)(function() {\n return new Promise(function(resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n if (!$60bdf67e43f5dfcb$var$areValidElements(reference, popper)) return instance;\n instance.setOptions(options).then(function(state) {\n if (!isDestroyed && options.onFirstUpdate) options.onFirstUpdate(state);\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n function runModifierEffects() {\n state.orderedModifiers.forEach(function(_ref3) {\n var name = _ref3.name, _ref3$options = _ref3.options, options = _ref3$options === void 0 ? {} : _ref3$options, effect = _ref3.effect;\n if (typeof effect === \"function\") {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n var noopFn = function noopFn() {};\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function(fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n return instance;\n };\n}\nvar $60bdf67e43f5dfcb$export$8f7491d57c8f97a9 = /*#__PURE__*/ $60bdf67e43f5dfcb$export$ed5e13716264f202(); // eslint-disable-next-line import/no-unused-modules\n\n\n\nvar $e7d7845625089588$var$passive = {\n passive: true\n};\nfunction $e7d7845625089588$var$effect(_ref) {\n var state = _ref.state, instance = _ref.instance, options = _ref.options;\n var _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? true : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? true : _options$resize;\n var window = (0, $6985093033570817$export$2e2bcd8739ae039)(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n if (scroll) scrollParents.forEach(function(scrollParent) {\n scrollParent.addEventListener(\"scroll\", instance.update, $e7d7845625089588$var$passive);\n });\n if (resize) window.addEventListener(\"resize\", instance.update, $e7d7845625089588$var$passive);\n return function() {\n if (scroll) scrollParents.forEach(function(scrollParent) {\n scrollParent.removeEventListener(\"scroll\", instance.update, $e7d7845625089588$var$passive);\n });\n if (resize) window.removeEventListener(\"resize\", instance.update, $e7d7845625089588$var$passive);\n };\n} // eslint-disable-next-line import/no-unused-modules\nvar $e7d7845625089588$export$2e2bcd8739ae039 = {\n name: \"eventListeners\",\n enabled: true,\n phase: \"write\",\n fn: function fn() {},\n effect: $e7d7845625089588$var$effect,\n data: {}\n};\n\n\n\nfunction $c6075629d0814627$export$2e2bcd8739ae039(placement) {\n return placement.split(\"-\")[0];\n}\n\n\nfunction $5553ed9c2ee225e3$export$2e2bcd8739ae039(placement) {\n return placement.split(\"-\")[1];\n}\n\n\nfunction $ba9a98a4204389e3$export$2e2bcd8739ae039(placement) {\n return [\n \"top\",\n \"bottom\"\n ].indexOf(placement) >= 0 ? \"x\" : \"y\";\n}\n\n\n\nfunction $9a8b7e877fbba4f3$export$2e2bcd8739ae039(_ref) {\n var reference = _ref.reference, element = _ref.element, placement = _ref.placement;\n var basePlacement = placement ? (0, $c6075629d0814627$export$2e2bcd8739ae039)(placement) : null;\n var variation = placement ? (0, $5553ed9c2ee225e3$export$2e2bcd8739ae039)(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n switch(basePlacement){\n case 0, $1472b89a65155de2$export$1e95b668f3b82d:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n case 0, $1472b89a65155de2$export$40e543e69a8b3fbb:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 0, $1472b89a65155de2$export$79ffe56a765070d2:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 0, $1472b89a65155de2$export$eabcd2c8791e7bf4:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n var mainAxis = basePlacement ? (0, $ba9a98a4204389e3$export$2e2bcd8739ae039)(basePlacement) : null;\n if (mainAxis != null) {\n var len = mainAxis === \"y\" ? \"height\" : \"width\";\n switch(variation){\n case 0, $1472b89a65155de2$export$b3571188c770cc5a:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n case 0, $1472b89a65155de2$export$bd5df0f255a350f8:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n default:\n }\n }\n return offsets;\n}\n\n\nfunction $8e8ecd9a827a16d7$var$popperOffsets(_ref) {\n var state = _ref.state, name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = (0, $9a8b7e877fbba4f3$export$2e2bcd8739ae039)({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: \"absolute\",\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\nvar $8e8ecd9a827a16d7$export$2e2bcd8739ae039 = {\n name: \"popperOffsets\",\n enabled: true,\n phase: \"read\",\n fn: $8e8ecd9a827a16d7$var$popperOffsets,\n data: {}\n};\n\n\n\n\n\n\n\n\n\n\nvar $45d468ca92a1d24b$var$unsetSides = {\n top: \"auto\",\n right: \"auto\",\n bottom: \"auto\",\n left: \"auto\"\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\nfunction $45d468ca92a1d24b$var$roundOffsetsByDPR(_ref, win) {\n var x = _ref.x, y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: (0, $3711db8b00de96df$export$2077e0241d6afd3c)(x * dpr) / dpr || 0,\n y: (0, $3711db8b00de96df$export$2077e0241d6afd3c)(y * dpr) / dpr || 0\n };\n}\nfunction $45d468ca92a1d24b$export$378fa78a8fea596f(_ref2) {\n var _Object$assign2;\n var popper = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y;\n var _ref3 = typeof roundOffsets === \"function\" ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty(\"x\");\n var hasY = offsets.hasOwnProperty(\"y\");\n var sideX = (0, $1472b89a65155de2$export$eabcd2c8791e7bf4);\n var sideY = (0, $1472b89a65155de2$export$1e95b668f3b82d);\n var win = window;\n if (adaptive) {\n var offsetParent = (0, $42fc94c94931c781$export$2e2bcd8739ae039)(popper);\n var heightProp = \"clientHeight\";\n var widthProp = \"clientWidth\";\n if (offsetParent === (0, $6985093033570817$export$2e2bcd8739ae039)(popper)) {\n offsetParent = (0, $0d1d9daad62fa952$export$2e2bcd8739ae039)(popper);\n if ((0, $cbd21d1454570861$export$2e2bcd8739ae039)(offsetParent).position !== \"static\" && position === \"absolute\") {\n heightProp = \"scrollHeight\";\n widthProp = \"scrollWidth\";\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n offsetParent;\n if (placement === (0, $1472b89a65155de2$export$1e95b668f3b82d) || (placement === (0, $1472b89a65155de2$export$eabcd2c8791e7bf4) || placement === (0, $1472b89a65155de2$export$79ffe56a765070d2)) && variation === (0, $1472b89a65155de2$export$bd5df0f255a350f8)) {\n sideY = (0, $1472b89a65155de2$export$40e543e69a8b3fbb);\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n if (placement === (0, $1472b89a65155de2$export$eabcd2c8791e7bf4) || (placement === (0, $1472b89a65155de2$export$1e95b668f3b82d) || placement === (0, $1472b89a65155de2$export$40e543e69a8b3fbb)) && variation === (0, $1472b89a65155de2$export$bd5df0f255a350f8)) {\n sideX = (0, $1472b89a65155de2$export$79ffe56a765070d2);\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n var commonStyles = Object.assign({\n position: position\n }, adaptive && $45d468ca92a1d24b$var$unsetSides);\n var _ref4 = roundOffsets === true ? $45d468ca92a1d24b$var$roundOffsetsByDPR({\n x: x,\n y: y\n }, (0, $6985093033570817$export$2e2bcd8739ae039)(popper)) : {\n x: x,\n y: y\n };\n x = _ref4.x;\n y = _ref4.y;\n if (gpuAcceleration) {\n var _Object$assign;\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? \"0\" : \"\", _Object$assign[sideX] = hasX ? \"0\" : \"\", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : \"\", _Object$assign2[sideX] = hasX ? x + \"px\" : \"\", _Object$assign2.transform = \"\", _Object$assign2));\n}\nfunction $45d468ca92a1d24b$var$computeStyles(_ref5) {\n var state = _ref5.state, options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var transitionProperty;\n var commonStyles = {\n placement: (0, $c6075629d0814627$export$2e2bcd8739ae039)(state.placement),\n variation: (0, $5553ed9c2ee225e3$export$2e2bcd8739ae039)(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === \"fixed\"\n };\n if (state.modifiersData.popperOffsets != null) state.styles.popper = Object.assign({}, state.styles.popper, $45d468ca92a1d24b$export$378fa78a8fea596f(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n if (state.modifiersData.arrow != null) state.styles.arrow = Object.assign({}, state.styles.arrow, $45d468ca92a1d24b$export$378fa78a8fea596f(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: \"absolute\",\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n \"data-popper-placement\": state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\nvar $45d468ca92a1d24b$export$2e2bcd8739ae039 = {\n name: \"computeStyles\",\n enabled: true,\n phase: \"beforeWrite\",\n fn: $45d468ca92a1d24b$var$computeStyles,\n data: {}\n};\n\n\n\n\n// and applies them to the HTMLElements such as popper and arrow\nfunction $7deefb3680d4558f$var$applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function(name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n if (!(0, $69730206aa270d41$export$1b3bfaa9684536aa)(element) || !(0, $04a691b7a330df44$export$2e2bcd8739ae039)(element)) return;\n // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function(name) {\n var value = attributes[name];\n if (value === false) element.removeAttribute(name);\n else element.setAttribute(name, value === true ? \"\" : value);\n });\n });\n}\nfunction $7deefb3680d4558f$var$effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: \"0\",\n top: \"0\",\n margin: \"0\"\n },\n arrow: {\n position: \"absolute\"\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n if (state.elements.arrow) Object.assign(state.elements.arrow.style, initialStyles.arrow);\n return function() {\n Object.keys(state.elements).forEach(function(name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n var style = styleProperties.reduce(function(style, property) {\n style[property] = \"\";\n return style;\n }, {}); // arrow is optional + virtual elements\n if (!(0, $69730206aa270d41$export$1b3bfaa9684536aa)(element) || !(0, $04a691b7a330df44$export$2e2bcd8739ae039)(element)) return;\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function(attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\nvar $7deefb3680d4558f$export$2e2bcd8739ae039 = {\n name: \"applyStyles\",\n enabled: true,\n phase: \"write\",\n fn: $7deefb3680d4558f$var$applyStyles,\n effect: $7deefb3680d4558f$var$effect,\n requires: [\n \"computeStyles\"\n ]\n};\n\n\n\n\nfunction $ff9a9783c10adebd$export$7fa02d8595b015ed(placement, rects, offset) {\n var basePlacement = (0, $c6075629d0814627$export$2e2bcd8739ae039)(placement);\n var invertDistance = [\n (0, $1472b89a65155de2$export$eabcd2c8791e7bf4),\n (0, $1472b89a65155de2$export$1e95b668f3b82d)\n ].indexOf(basePlacement) >= 0 ? -1 : 1;\n var _ref = typeof offset === \"function\" ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset, skidding = _ref[0], distance = _ref[1];\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [\n (0, $1472b89a65155de2$export$eabcd2c8791e7bf4),\n (0, $1472b89a65155de2$export$79ffe56a765070d2)\n ].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\nfunction $ff9a9783c10adebd$var$offset(_ref2) {\n var state = _ref2.state, options = _ref2.options, name = _ref2.name;\n var _options$offset = options.offset, offset = _options$offset === void 0 ? [\n 0,\n 0\n ] : _options$offset;\n var data = (0, $1472b89a65155de2$export$803cd8101b6c182b).reduce(function(acc, placement) {\n acc[placement] = $ff9a9783c10adebd$export$7fa02d8595b015ed(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\nvar $ff9a9783c10adebd$export$2e2bcd8739ae039 = {\n name: \"offset\",\n enabled: true,\n phase: \"main\",\n requires: [\n \"popperOffsets\"\n ],\n fn: $ff9a9783c10adebd$var$offset\n};\n\n\nvar $aaefa8315f14c8e2$var$hash = {\n left: \"right\",\n right: \"left\",\n bottom: \"top\",\n top: \"bottom\"\n};\nfunction $aaefa8315f14c8e2$export$2e2bcd8739ae039(placement) {\n return placement.replace(/left|right|bottom|top/g, function(matched) {\n return $aaefa8315f14c8e2$var$hash[matched];\n });\n}\n\n\n\nvar $37f85a49ff946cb6$var$hash = {\n start: \"end\",\n end: \"start\"\n};\nfunction $37f85a49ff946cb6$export$2e2bcd8739ae039(placement) {\n return placement.replace(/start|end/g, function(matched) {\n return $37f85a49ff946cb6$var$hash[matched];\n });\n}\n\n\n\n\n\n\n\nfunction $a35bf29d5fc5ab40$export$2e2bcd8739ae039(element, strategy) {\n var win = (0, $6985093033570817$export$2e2bcd8739ae039)(element);\n var html = (0, $0d1d9daad62fa952$export$2e2bcd8739ae039)(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = (0, $bef5ff765617d084$export$2e2bcd8739ae039)();\n if (layoutViewport || !layoutViewport && strategy === \"fixed\") {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width: width,\n height: height,\n x: x + (0, $60124eceeef28a28$export$2e2bcd8739ae039)(element),\n y: y\n };\n}\n\n\n\n\n\n\n\nfunction $a5e625ef2dd801ec$export$2e2bcd8739ae039(element) {\n var _element$ownerDocumen;\n var html = (0, $0d1d9daad62fa952$export$2e2bcd8739ae039)(element);\n var winScroll = (0, $39a9a96b6f99add9$export$2e2bcd8739ae039)(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = (0, $3711db8b00de96df$export$8960430cfd85939f)(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = (0, $3711db8b00de96df$export$8960430cfd85939f)(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + (0, $60124eceeef28a28$export$2e2bcd8739ae039)(element);\n var y = -winScroll.scrollTop;\n if ((0, $cbd21d1454570861$export$2e2bcd8739ae039)(body || html).direction === \"rtl\") x += (0, $3711db8b00de96df$export$8960430cfd85939f)(html.clientWidth, body ? body.clientWidth : 0) - width;\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}\n\n\n\n\n\n\n\n\n\n\nfunction $8f3b5a3db2e59cbc$export$2e2bcd8739ae039(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n if (parent.contains(child)) return true;\n else if (rootNode && (0, $69730206aa270d41$export$af51f0f06c0f328a)(rootNode)) {\n var next = child;\n do {\n if (next && parent.isSameNode(next)) return true;\n // $FlowFixMe[prop-missing]: need a better way to handle this...\n next = next.parentNode || next.host;\n }while (next);\n } // Give up, the result is false\n return false;\n}\n\n\n\nfunction $d5700acdd3ba9a3c$export$2e2bcd8739ae039(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}\n\n\n\nfunction $449799046a13d100$var$getInnerBoundingClientRect(element, strategy) {\n var rect = (0, $2ef6a598263dba8e$export$2e2bcd8739ae039)(element, false, strategy === \"fixed\");\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\nfunction $449799046a13d100$var$getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === (0, $1472b89a65155de2$export$d7b7311ec04a3e8f) ? (0, $d5700acdd3ba9a3c$export$2e2bcd8739ae039)((0, $a35bf29d5fc5ab40$export$2e2bcd8739ae039)(element, strategy)) : (0, $69730206aa270d41$export$45a5e7f76e0caa8d)(clippingParent) ? $449799046a13d100$var$getInnerBoundingClientRect(clippingParent, strategy) : (0, $d5700acdd3ba9a3c$export$2e2bcd8739ae039)((0, $a5e625ef2dd801ec$export$2e2bcd8739ae039)((0, $0d1d9daad62fa952$export$2e2bcd8739ae039)(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\nfunction $449799046a13d100$var$getClippingParents(element) {\n var clippingParents = (0, $90b72ed15edfd54a$export$2e2bcd8739ae039)((0, $773048fc1d2aa7ee$export$2e2bcd8739ae039)(element));\n var canEscapeClipping = [\n \"absolute\",\n \"fixed\"\n ].indexOf((0, $cbd21d1454570861$export$2e2bcd8739ae039)(element).position) >= 0;\n var clipperElement = canEscapeClipping && (0, $69730206aa270d41$export$1b3bfaa9684536aa)(element) ? (0, $42fc94c94931c781$export$2e2bcd8739ae039)(element) : element;\n if (!(0, $69730206aa270d41$export$45a5e7f76e0caa8d)(clipperElement)) return [];\n // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n return clippingParents.filter(function(clippingParent) {\n return (0, $69730206aa270d41$export$45a5e7f76e0caa8d)(clippingParent) && (0, $8f3b5a3db2e59cbc$export$2e2bcd8739ae039)(clippingParent, clipperElement) && (0, $04a691b7a330df44$export$2e2bcd8739ae039)(clippingParent) !== \"body\";\n });\n} // Gets the maximum area that the element is visible in due to any number of\nfunction $449799046a13d100$export$2e2bcd8739ae039(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === \"clippingParents\" ? $449799046a13d100$var$getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [\n rootBoundary\n ]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function(accRect, clippingParent) {\n var rect = $449799046a13d100$var$getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = (0, $3711db8b00de96df$export$8960430cfd85939f)(rect.top, accRect.top);\n accRect.right = (0, $3711db8b00de96df$export$96ec731ed4dcb222)(rect.right, accRect.right);\n accRect.bottom = (0, $3711db8b00de96df$export$96ec731ed4dcb222)(rect.bottom, accRect.bottom);\n accRect.left = (0, $3711db8b00de96df$export$8960430cfd85939f)(rect.left, accRect.left);\n return accRect;\n }, $449799046a13d100$var$getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}\n\n\n\n\n\n\n\n\nfunction $bcb51404109b5184$export$2e2bcd8739ae039() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}\n\n\nfunction $2c6bd604be4c867e$export$2e2bcd8739ae039(paddingObject) {\n return Object.assign({}, (0, $bcb51404109b5184$export$2e2bcd8739ae039)(), paddingObject);\n}\n\n\nfunction $c88039fe47959ef5$export$2e2bcd8739ae039(value, keys) {\n return keys.reduce(function(hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}\n\n\nfunction $c24a1421ba2f823c$export$2e2bcd8739ae039(state, options) {\n if (options === void 0) options = {};\n var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state.placement : _options$placement, _options$strategy = _options.strategy, strategy = _options$strategy === void 0 ? state.strategy : _options$strategy, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? (0, $1472b89a65155de2$export$390fd549c5303b4d) : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? (0, $1472b89a65155de2$export$d7b7311ec04a3e8f) : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? (0, $1472b89a65155de2$export$ae5ab1c730825774) : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = (0, $2c6bd604be4c867e$export$2e2bcd8739ae039)(typeof padding !== \"number\" ? padding : (0, $c88039fe47959ef5$export$2e2bcd8739ae039)(padding, (0, $1472b89a65155de2$export$aec2ce47c367b8c3)));\n var altContext = elementContext === (0, $1472b89a65155de2$export$ae5ab1c730825774) ? (0, $1472b89a65155de2$export$ca50aac9f3ba507f) : (0, $1472b89a65155de2$export$ae5ab1c730825774);\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = (0, $449799046a13d100$export$2e2bcd8739ae039)((0, $69730206aa270d41$export$45a5e7f76e0caa8d)(element) ? element : element.contextElement || (0, $0d1d9daad62fa952$export$2e2bcd8739ae039)(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = (0, $2ef6a598263dba8e$export$2e2bcd8739ae039)(state.elements.reference);\n var popperOffsets = (0, $9a8b7e877fbba4f3$export$2e2bcd8739ae039)({\n reference: referenceClientRect,\n element: popperRect,\n strategy: \"absolute\",\n placement: placement\n });\n var popperClientRect = (0, $d5700acdd3ba9a3c$export$2e2bcd8739ae039)(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === (0, $1472b89a65155de2$export$ae5ab1c730825774) ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n if (elementContext === (0, $1472b89a65155de2$export$ae5ab1c730825774) && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function(key) {\n var multiply = [\n (0, $1472b89a65155de2$export$79ffe56a765070d2),\n (0, $1472b89a65155de2$export$40e543e69a8b3fbb)\n ].indexOf(key) >= 0 ? 1 : -1;\n var axis = [\n (0, $1472b89a65155de2$export$1e95b668f3b82d),\n (0, $1472b89a65155de2$export$40e543e69a8b3fbb)\n ].indexOf(key) >= 0 ? \"y\" : \"x\";\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n return overflowOffsets;\n}\n\n\n\n\n\n\nfunction $dae0983d65fbfc0b$export$2e2bcd8739ae039(state, options) {\n if (options === void 0) options = {};\n var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? (0, $1472b89a65155de2$export$803cd8101b6c182b) : _options$allowedAutoP;\n var variation = (0, $5553ed9c2ee225e3$export$2e2bcd8739ae039)(placement);\n var placements = variation ? flipVariations ? (0, $1472b89a65155de2$export$368f9a87e87fa4e1) : (0, $1472b89a65155de2$export$368f9a87e87fa4e1).filter(function(placement) {\n return (0, $5553ed9c2ee225e3$export$2e2bcd8739ae039)(placement) === variation;\n }) : (0, $1472b89a65155de2$export$aec2ce47c367b8c3);\n var allowedPlacements = placements.filter(function(placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n if (allowedPlacements.length === 0) allowedPlacements = placements;\n // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n var overflows = allowedPlacements.reduce(function(acc, placement) {\n acc[placement] = (0, $c24a1421ba2f823c$export$2e2bcd8739ae039)(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[(0, $c6075629d0814627$export$2e2bcd8739ae039)(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function(a, b) {\n return overflows[a] - overflows[b];\n });\n}\n\n\n\n\nfunction $cf1ba1dd94205465$var$getExpandedFallbackPlacements(placement) {\n if ((0, $c6075629d0814627$export$2e2bcd8739ae039)(placement) === (0, $1472b89a65155de2$export$dfb5619354ba860)) return [];\n var oppositePlacement = (0, $aaefa8315f14c8e2$export$2e2bcd8739ae039)(placement);\n return [\n (0, $37f85a49ff946cb6$export$2e2bcd8739ae039)(placement),\n oppositePlacement,\n (0, $37f85a49ff946cb6$export$2e2bcd8739ae039)(oppositePlacement)\n ];\n}\nfunction $cf1ba1dd94205465$var$flip(_ref) {\n var state = _ref.state, options = _ref.options, name = _ref.name;\n if (state.modifiersData[name]._skip) return;\n var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis, specifiedFallbackPlacements = options.fallbackPlacements, padding = options.padding, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, _options$flipVariatio = options.flipVariations, flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio, allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = (0, $c6075629d0814627$export$2e2bcd8739ae039)(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [\n (0, $aaefa8315f14c8e2$export$2e2bcd8739ae039)(preferredPlacement)\n ] : $cf1ba1dd94205465$var$getExpandedFallbackPlacements(preferredPlacement));\n var placements = [\n preferredPlacement\n ].concat(fallbackPlacements).reduce(function(acc, placement) {\n return acc.concat((0, $c6075629d0814627$export$2e2bcd8739ae039)(placement) === (0, $1472b89a65155de2$export$dfb5619354ba860) ? (0, $dae0983d65fbfc0b$export$2e2bcd8739ae039)(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n for(var i = 0; i < placements.length; i++){\n var placement = placements[i];\n var _basePlacement = (0, $c6075629d0814627$export$2e2bcd8739ae039)(placement);\n var isStartVariation = (0, $5553ed9c2ee225e3$export$2e2bcd8739ae039)(placement) === (0, $1472b89a65155de2$export$b3571188c770cc5a);\n var isVertical = [\n (0, $1472b89a65155de2$export$1e95b668f3b82d),\n (0, $1472b89a65155de2$export$40e543e69a8b3fbb)\n ].indexOf(_basePlacement) >= 0;\n var len = isVertical ? \"width\" : \"height\";\n var overflow = (0, $c24a1421ba2f823c$export$2e2bcd8739ae039)(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? (0, $1472b89a65155de2$export$79ffe56a765070d2) : (0, $1472b89a65155de2$export$eabcd2c8791e7bf4) : isStartVariation ? (0, $1472b89a65155de2$export$40e543e69a8b3fbb) : (0, $1472b89a65155de2$export$1e95b668f3b82d);\n if (referenceRect[len] > popperRect[len]) mainVariationSide = (0, $aaefa8315f14c8e2$export$2e2bcd8739ae039)(mainVariationSide);\n var altVariationSide = (0, $aaefa8315f14c8e2$export$2e2bcd8739ae039)(mainVariationSide);\n var checks = [];\n if (checkMainAxis) checks.push(overflow[_basePlacement] <= 0);\n if (checkAltAxis) checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n if (checks.every(function(check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n checksMap.set(placement, checks);\n }\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function(placement) {\n var checks = checksMap.get(placement);\n if (checks) return checks.slice(0, _i).every(function(check) {\n return check;\n });\n });\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n for(var _i = numberOfChecks; _i > 0; _i--){\n var _ret = _loop(_i);\n if (_ret === \"break\") break;\n }\n }\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\nvar $cf1ba1dd94205465$export$2e2bcd8739ae039 = {\n name: \"flip\",\n enabled: true,\n phase: \"main\",\n fn: $cf1ba1dd94205465$var$flip,\n requiresIfExists: [\n \"offset\"\n ],\n data: {\n _skip: false\n }\n};\n\n\n\n\n\nfunction $61f76a8076c296c7$export$2e2bcd8739ae039(axis) {\n return axis === \"x\" ? \"y\" : \"x\";\n}\n\n\n\nfunction $95428a5e75015184$export$f28d906d67a997f3(min, value, max) {\n return (0, $3711db8b00de96df$export$8960430cfd85939f)(min, (0, $3711db8b00de96df$export$96ec731ed4dcb222)(value, max));\n}\nfunction $95428a5e75015184$export$86c8af6d3ef0b4a(min, value, max) {\n var v = $95428a5e75015184$export$f28d906d67a997f3(min, value, max);\n return v > max ? max : v;\n}\n\n\n\n\n\n\n\n\nfunction $865d356b2ca960a5$var$preventOverflow(_ref) {\n var state = _ref.state, options = _ref.options, name = _ref.name;\n var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, padding = options.padding, _options$tether = options.tether, tether = _options$tether === void 0 ? true : _options$tether, _options$tetherOffset = options.tetherOffset, tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = (0, $c24a1421ba2f823c$export$2e2bcd8739ae039)(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = (0, $c6075629d0814627$export$2e2bcd8739ae039)(state.placement);\n var variation = (0, $5553ed9c2ee225e3$export$2e2bcd8739ae039)(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = (0, $ba9a98a4204389e3$export$2e2bcd8739ae039)(basePlacement);\n var altAxis = (0, $61f76a8076c296c7$export$2e2bcd8739ae039)(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === \"function\" ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === \"number\" ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n if (!popperOffsets) return;\n if (checkMainAxis) {\n var _offsetModifierState$;\n var mainSide = mainAxis === \"y\" ? (0, $1472b89a65155de2$export$1e95b668f3b82d) : (0, $1472b89a65155de2$export$eabcd2c8791e7bf4);\n var altSide = mainAxis === \"y\" ? (0, $1472b89a65155de2$export$40e543e69a8b3fbb) : (0, $1472b89a65155de2$export$79ffe56a765070d2);\n var len = mainAxis === \"y\" ? \"height\" : \"width\";\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === (0, $1472b89a65155de2$export$b3571188c770cc5a) ? referenceRect[len] : popperRect[len];\n var maxLen = variation === (0, $1472b89a65155de2$export$b3571188c770cc5a) ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? (0, $9effe2b32f662e4a$export$2e2bcd8739ae039)(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData[\"arrow#persistent\"] ? state.modifiersData[\"arrow#persistent\"].padding : (0, $bcb51404109b5184$export$2e2bcd8739ae039)();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n var arrowLen = (0, $95428a5e75015184$export$f28d906d67a997f3)(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && (0, $42fc94c94931c781$export$2e2bcd8739ae039)(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === \"y\" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = (0, $95428a5e75015184$export$f28d906d67a997f3)(tether ? (0, $3711db8b00de96df$export$96ec731ed4dcb222)(min, tetherMin) : min, offset, tether ? (0, $3711db8b00de96df$export$8960430cfd85939f)(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n if (checkAltAxis) {\n var _offsetModifierState$2;\n var _mainSide = mainAxis === \"x\" ? (0, $1472b89a65155de2$export$1e95b668f3b82d) : (0, $1472b89a65155de2$export$eabcd2c8791e7bf4);\n var _altSide = mainAxis === \"x\" ? (0, $1472b89a65155de2$export$40e543e69a8b3fbb) : (0, $1472b89a65155de2$export$79ffe56a765070d2);\n var _offset = popperOffsets[altAxis];\n var _len = altAxis === \"y\" ? \"height\" : \"width\";\n var _min = _offset + overflow[_mainSide];\n var _max = _offset - overflow[_altSide];\n var isOriginSide = [\n (0, $1472b89a65155de2$export$1e95b668f3b82d),\n (0, $1472b89a65155de2$export$eabcd2c8791e7bf4)\n ].indexOf(basePlacement) !== -1;\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n var _preventedOffset = tether && isOriginSide ? (0, $95428a5e75015184$export$86c8af6d3ef0b4a)(_tetherMin, _offset, _tetherMax) : (0, $95428a5e75015184$export$f28d906d67a997f3)(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\nvar $865d356b2ca960a5$export$2e2bcd8739ae039 = {\n name: \"preventOverflow\",\n enabled: true,\n phase: \"main\",\n fn: $865d356b2ca960a5$var$preventOverflow,\n requiresIfExists: [\n \"offset\"\n ]\n};\n\n\n\n\n\n\n\n\n\n\n\n\nvar $f37d2f7eaf2ad10e$var$toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === \"function\" ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return (0, $2c6bd604be4c867e$export$2e2bcd8739ae039)(typeof padding !== \"number\" ? padding : (0, $c88039fe47959ef5$export$2e2bcd8739ae039)(padding, (0, $1472b89a65155de2$export$aec2ce47c367b8c3)));\n};\nfunction $f37d2f7eaf2ad10e$var$arrow(_ref) {\n var _state$modifiersData$;\n var state = _ref.state, name = _ref.name, options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = (0, $c6075629d0814627$export$2e2bcd8739ae039)(state.placement);\n var axis = (0, $ba9a98a4204389e3$export$2e2bcd8739ae039)(basePlacement);\n var isVertical = [\n (0, $1472b89a65155de2$export$eabcd2c8791e7bf4),\n (0, $1472b89a65155de2$export$79ffe56a765070d2)\n ].indexOf(basePlacement) >= 0;\n var len = isVertical ? \"height\" : \"width\";\n if (!arrowElement || !popperOffsets) return;\n var paddingObject = $f37d2f7eaf2ad10e$var$toPaddingObject(options.padding, state);\n var arrowRect = (0, $9effe2b32f662e4a$export$2e2bcd8739ae039)(arrowElement);\n var minProp = axis === \"y\" ? (0, $1472b89a65155de2$export$1e95b668f3b82d) : (0, $1472b89a65155de2$export$eabcd2c8791e7bf4);\n var maxProp = axis === \"y\" ? (0, $1472b89a65155de2$export$40e543e69a8b3fbb) : (0, $1472b89a65155de2$export$79ffe56a765070d2);\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = (0, $42fc94c94931c781$export$2e2bcd8739ae039)(arrowElement);\n var clientSize = arrowOffsetParent ? axis === \"y\" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = (0, $95428a5e75015184$export$f28d906d67a997f3)(min, center, max); // Prevents breaking syntax highlighting...\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\nfunction $f37d2f7eaf2ad10e$var$effect(_ref2) {\n var state = _ref2.state, options = _ref2.options;\n var _options$element = options.element, arrowElement = _options$element === void 0 ? \"[data-popper-arrow]\" : _options$element;\n if (arrowElement == null) return;\n // CSS selector\n if (typeof arrowElement === \"string\") {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n if (!arrowElement) return;\n }\n if (!(0, $8f3b5a3db2e59cbc$export$2e2bcd8739ae039)(state.elements.popper, arrowElement)) return;\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\nvar $f37d2f7eaf2ad10e$export$2e2bcd8739ae039 = {\n name: \"arrow\",\n enabled: true,\n phase: \"main\",\n fn: $f37d2f7eaf2ad10e$var$arrow,\n effect: $f37d2f7eaf2ad10e$var$effect,\n requires: [\n \"popperOffsets\"\n ],\n requiresIfExists: [\n \"preventOverflow\"\n ]\n};\n\n\n\n\nfunction $69d8d7bda7717b01$var$getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) preventedOffsets = {\n x: 0,\n y: 0\n };\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\nfunction $69d8d7bda7717b01$var$isAnySideFullyClipped(overflow) {\n return [\n (0, $1472b89a65155de2$export$1e95b668f3b82d),\n (0, $1472b89a65155de2$export$79ffe56a765070d2),\n (0, $1472b89a65155de2$export$40e543e69a8b3fbb),\n (0, $1472b89a65155de2$export$eabcd2c8791e7bf4)\n ].some(function(side) {\n return overflow[side] >= 0;\n });\n}\nfunction $69d8d7bda7717b01$var$hide(_ref) {\n var state = _ref.state, name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = (0, $c24a1421ba2f823c$export$2e2bcd8739ae039)(state, {\n elementContext: \"reference\"\n });\n var popperAltOverflow = (0, $c24a1421ba2f823c$export$2e2bcd8739ae039)(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = $69d8d7bda7717b01$var$getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = $69d8d7bda7717b01$var$getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = $69d8d7bda7717b01$var$isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = $69d8d7bda7717b01$var$isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n \"data-popper-reference-hidden\": isReferenceHidden,\n \"data-popper-escaped\": hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\nvar $69d8d7bda7717b01$export$2e2bcd8739ae039 = {\n name: \"hide\",\n enabled: true,\n phase: \"main\",\n requiresIfExists: [\n \"preventOverflow\"\n ],\n fn: $69d8d7bda7717b01$var$hide\n};\n\n\n\n\nvar $288fbeb449f53487$export$d34966752335dd47 = [\n (0, $e7d7845625089588$export$2e2bcd8739ae039),\n (0, $8e8ecd9a827a16d7$export$2e2bcd8739ae039),\n (0, $45d468ca92a1d24b$export$2e2bcd8739ae039),\n (0, $7deefb3680d4558f$export$2e2bcd8739ae039),\n (0, $ff9a9783c10adebd$export$2e2bcd8739ae039),\n (0, $cf1ba1dd94205465$export$2e2bcd8739ae039),\n (0, $865d356b2ca960a5$export$2e2bcd8739ae039),\n (0, $f37d2f7eaf2ad10e$export$2e2bcd8739ae039),\n (0, $69d8d7bda7717b01$export$2e2bcd8739ae039)\n];\nvar $288fbeb449f53487$export$8f7491d57c8f97a9 = /*#__PURE__*/ (0, $60bdf67e43f5dfcb$export$ed5e13716264f202)({\n defaultModifiers: $288fbeb449f53487$export$d34966752335dd47\n}); // eslint-disable-next-line import/no-unused-modules\n\n\n\nvar $luwGm = parcelRequire(\"luwGm\");\n\nclass $30ff3bc5863c48e0$var$HSDropdown extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n this.toggle = this.el.querySelector(\":scope > .hs-dropdown-toggle\") || this.el.querySelector(\":scope > .hs-dropdown-toggle-wrapper > .hs-dropdown-toggle\") || this.el.children[0];\n this.closers = Array.from(this.el.querySelectorAll(\":scope .hs-dropdown-close\")) || null;\n this.menu = this.el.querySelector(\":scope > .hs-dropdown-menu\");\n this.eventMode = (0, $cZqAW.getClassProperty)(this.el, \"--trigger\", \"click\");\n this.closeMode = (0, $cZqAW.getClassProperty)(this.el, \"--auto-close\", \"true\");\n this.animationInProcess = false;\n if (this.toggle && this.menu) this.init();\n }\n init() {\n this.createCollection(window.$hsDropdownCollection, this);\n if (this.toggle.disabled) return false;\n if (this.toggle) this.buildToggle();\n if (this.menu) this.buildMenu();\n if (this.closers) this.buildClosers();\n if (!(0, $cZqAW.isIOS)() && !(0, $cZqAW.isIpadOS)()) {\n this.el.addEventListener(\"mouseenter\", ()=>this.onMouseEnterHandler());\n this.el.addEventListener(\"mouseleave\", ()=>this.onMouseLeaveHandler());\n }\n }\n resizeHandler() {\n this.eventMode = (0, $cZqAW.getClassProperty)(this.el, \"--trigger\", \"click\");\n this.closeMode = (0, $cZqAW.getClassProperty)(this.el, \"--auto-close\", \"true\");\n }\n buildToggle() {\n if (this?.toggle?.ariaExpanded) {\n if (this.el.classList.contains(\"open\")) this.toggle.ariaExpanded = \"true\";\n else this.toggle.ariaExpanded = \"false\";\n }\n this.toggle.addEventListener(\"click\", (evt)=>this.onClickHandler(evt));\n }\n buildMenu() {\n this.menu.role = \"menu\";\n }\n buildClosers() {\n this.closers.forEach((el)=>{\n el.addEventListener(\"click\", ()=>this.close());\n });\n }\n onClickHandler(evt) {\n if (this.el.classList.contains(\"open\") && !this.menu.classList.contains(\"hidden\")) this.close();\n else this.open();\n }\n onMouseEnterHandler() {\n if (this.eventMode !== \"hover\") return false;\n if (this.el._popper) this.forceClearState();\n if (!this.el.classList.contains(\"open\") && this.menu.classList.contains(\"hidden\")) this.open();\n }\n onMouseLeaveHandler() {\n if (this.eventMode !== \"hover\") return false;\n if (this.el.classList.contains(\"open\") && !this.menu.classList.contains(\"hidden\")) this.close();\n }\n destroyPopper() {\n this.menu.classList.remove(\"block\");\n this.menu.classList.add(\"hidden\");\n this.menu.style.inset = null;\n this.menu.style.position = null;\n if (this.el && this.el._popper) this.el._popper.destroy();\n this.animationInProcess = false;\n }\n absoluteStrategyModifiers() {\n return [\n {\n name: \"applyStyles\",\n fn: (data)=>{\n const strategy = (window.getComputedStyle(this.el).getPropertyValue(\"--strategy\") || \"absolute\").replace(\" \", \"\");\n const adaptive = (window.getComputedStyle(this.el).getPropertyValue(\"--adaptive\") || \"adaptive\").replace(\" \", \"\");\n data.state.elements.popper.style.position = strategy;\n data.state.elements.popper.style.transform = adaptive === \"adaptive\" ? data.state.styles.popper.transform : null;\n data.state.elements.popper.style.top = null;\n data.state.elements.popper.style.bottom = null;\n data.state.elements.popper.style.left = null;\n data.state.elements.popper.style.right = null;\n data.state.elements.popper.style.margin = 0;\n }\n }\n ];\n }\n // Public methods\n open() {\n if (this.el.classList.contains(\"open\")) return false;\n if (this.animationInProcess) return false;\n this.animationInProcess = true;\n const placement = (window.getComputedStyle(this.el).getPropertyValue(\"--placement\") || \"\").replace(\" \", \"\");\n const flip = (window.getComputedStyle(this.el).getPropertyValue(\"--flip\") || \"true\").replace(\" \", \"\");\n const strategy = (window.getComputedStyle(this.el).getPropertyValue(\"--strategy\") || \"fixed\").replace(\" \", \"\");\n const offset = parseInt((window.getComputedStyle(this.el).getPropertyValue(\"--offset\") || \"10\").replace(\" \", \"\"));\n const gpuAcceleration = (window.getComputedStyle(this.el).getPropertyValue(\"--gpu-acceleration\") || \"true\").replace(\" \", \"\");\n if (strategy !== \"static\") this.el._popper = (0, $288fbeb449f53487$export$8f7491d57c8f97a9)(this.el, this.menu, {\n placement: (0, $ef84b720836c77d7$export$1a1f61c9c4dd9df0)[placement] || \"bottom-start\",\n strategy: strategy,\n modifiers: [\n ...strategy !== \"fixed\" ? this.absoluteStrategyModifiers() : [],\n {\n name: \"flip\",\n enabled: flip === \"true\"\n },\n {\n name: \"offset\",\n options: {\n offset: [\n 0,\n offset\n ]\n }\n },\n {\n name: \"computeStyles\",\n options: {\n adaptive: strategy !== \"fixed\" ? false : true,\n gpuAcceleration: gpuAcceleration === \"true\" ? true : false\n }\n }\n ]\n });\n this.menu.style.margin = null;\n this.menu.classList.remove(\"hidden\");\n this.menu.classList.add(\"block\");\n setTimeout(()=>{\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"true\";\n this.el.classList.add(\"open\");\n this.animationInProcess = false;\n });\n this.fireEvent(\"open\", this.el);\n (0, $cZqAW.dispatch)(\"open.hs.dropdown\", this.el, this.el);\n }\n close(isAnimated = true) {\n if (this.animationInProcess || !this.el.classList.contains(\"open\")) return false;\n const clearAfterClose = ()=>{\n this.menu.style.margin = null;\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"false\";\n this.el.classList.remove(\"open\");\n this.fireEvent(\"close\", this.el);\n (0, $cZqAW.dispatch)(\"close.hs.dropdown\", this.el, this.el);\n };\n this.animationInProcess = true;\n if (isAnimated) {\n const el = this.el.querySelector(\"[data-hs-dropdown-transition]\") || this.menu;\n (0, $cZqAW.afterTransition)(el, ()=>this.destroyPopper());\n } else this.destroyPopper();\n clearAfterClose();\n }\n forceClearState() {\n this.destroyPopper();\n this.menu.style.margin = null;\n this.el.classList.remove(\"open\");\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsDropdownCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static autoInit() {\n if (!window.$hsDropdownCollection) window.$hsDropdownCollection = [];\n document.querySelectorAll(\".hs-dropdown:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsDropdownCollection.find((elC)=>elC?.element?.el === el)) new $30ff3bc5863c48e0$var$HSDropdown(el);\n });\n if (window.$hsDropdownCollection) {\n document.addEventListener(\"keydown\", (evt)=>$30ff3bc5863c48e0$var$HSDropdown.accessibility(evt));\n window.addEventListener(\"click\", (evt)=>{\n const evtTarget = evt.target;\n $30ff3bc5863c48e0$var$HSDropdown.closeCurrentlyOpened(evtTarget);\n });\n let prevWidth = window.innerWidth;\n window.addEventListener(\"resize\", ()=>{\n if (window.innerWidth !== prevWidth) {\n prevWidth = innerWidth;\n $30ff3bc5863c48e0$var$HSDropdown.closeCurrentlyOpened(null, false);\n }\n });\n }\n }\n static open(target) {\n const elInCollection = window.$hsDropdownCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && elInCollection.element.menu.classList.contains(\"hidden\")) elInCollection.element.open();\n }\n static close(target) {\n const elInCollection = window.$hsDropdownCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && !elInCollection.element.menu.classList.contains(\"hidden\")) elInCollection.element.close();\n }\n // Accessibility methods\n static accessibility(evt) {\n this.history = (0, $cZqAW.menuSearchHistory);\n const target = window.$hsDropdownCollection.find((el)=>el.element.el.classList.contains(\"open\"));\n if (target && ((0, $ef84b720836c77d7$export$ab14482922808af8).includes(evt.code) || evt.code.length === 4 && evt.code[evt.code.length - 1].match(/^[A-Z]*$/)) && !evt.metaKey && !target.element.menu.querySelector(\"input:focus\") && !target.element.menu.querySelector(\"textarea:focus\")) switch(evt.code){\n case \"Escape\":\n if (!target.element.menu.querySelector(\".hs-select.active\")) {\n evt.preventDefault();\n this.onEscape(evt);\n }\n break;\n case \"Enter\":\n if (!target.element.menu.querySelector(\".hs-select button:focus\") && !target.element.menu.querySelector(\".hs-collapse-toggle:focus\")) this.onEnter(evt);\n break;\n case \"ArrowUp\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onArrow();\n break;\n case \"ArrowDown\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onArrow(false);\n break;\n case \"Home\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onStartEnd();\n break;\n case \"End\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onStartEnd(false);\n break;\n default:\n evt.preventDefault();\n this.onFirstLetter(evt.key);\n break;\n }\n }\n static onEscape(evt) {\n const dropdown = evt.target.closest(\".hs-dropdown.open\");\n if (window.$hsDropdownCollection.find((el)=>el.element.el === dropdown)) {\n const target = window.$hsDropdownCollection.find((el)=>el.element.el === dropdown);\n if (target) {\n target.element.close();\n target.element.toggle.focus();\n }\n } else this.closeCurrentlyOpened();\n }\n static onEnter(evt) {\n const dropdown = evt.target.parentElement;\n if (window.$hsDropdownCollection.find((el)=>el.element.el === dropdown)) {\n evt.preventDefault();\n const target = window.$hsDropdownCollection.find((el)=>el.element.el === dropdown);\n if (target) target.element.open();\n }\n }\n static onArrow(isArrowUp = true) {\n const target = window.$hsDropdownCollection.find((el)=>el.element.el.classList.contains(\"open\"));\n if (target) {\n const menu = target.element.menu;\n if (!menu) return false;\n const preparedLinks = isArrowUp ? Array.from(menu.querySelectorAll(\"a:not([hidden]), .hs-dropdown > button:not([hidden])\")).reverse() : Array.from(menu.querySelectorAll(\"a:not([hidden]), .hs-dropdown > button:not([hidden])\"));\n const links = preparedLinks.filter((el)=>!el.classList.contains(\"disabled\"));\n const current = menu.querySelector(\"a:focus, button:focus\");\n let currentInd = links.findIndex((el)=>el === current);\n if (currentInd + 1 < links.length) currentInd++;\n links[currentInd].focus();\n }\n }\n static onStartEnd(isStart = true) {\n const target = window.$hsDropdownCollection.find((el)=>el.element.el.classList.contains(\"open\"));\n if (target) {\n const menu = target.element.menu;\n if (!menu) return false;\n const preparedLinks = isStart ? Array.from(menu.querySelectorAll(\"a\")) : Array.from(menu.querySelectorAll(\"a\")).reverse();\n const links = preparedLinks.filter((el)=>!el.classList.contains(\"disabled\"));\n if (links.length) links[0].focus();\n }\n }\n static onFirstLetter(code) {\n const target = window.$hsDropdownCollection.find((el)=>el.element.el.classList.contains(\"open\"));\n if (target) {\n const menu = target.element.menu;\n if (!menu) return false;\n const links = Array.from(menu.querySelectorAll(\"a\"));\n const getCurrentInd = ()=>links.findIndex((el, i)=>el.innerText.toLowerCase().charAt(0) === code.toLowerCase() && this.history.existsInHistory(i));\n let currentInd = getCurrentInd();\n if (currentInd === -1) {\n this.history.clearHistory();\n currentInd = getCurrentInd();\n }\n if (currentInd !== -1) {\n links[currentInd].focus();\n this.history.addHistory(currentInd);\n }\n }\n }\n static closeCurrentlyOpened(evtTarget = null, isAnimated = true) {\n const parent = evtTarget && evtTarget.closest(\".hs-dropdown\") && evtTarget.closest(\".hs-dropdown\").parentElement.closest(\".hs-dropdown\") ? evtTarget.closest(\".hs-dropdown\").parentElement.closest(\".hs-dropdown\") : null;\n let currentlyOpened = parent ? window.$hsDropdownCollection.filter((el)=>el.element.el.classList.contains(\"open\") && el.element.menu.closest(\".hs-dropdown\").parentElement.closest(\".hs-dropdown\") === parent) : window.$hsDropdownCollection.filter((el)=>el.element.el.classList.contains(\"open\"));\n if (evtTarget && evtTarget.closest(\".hs-dropdown\") && (0, $cZqAW.getClassPropertyAlt)(evtTarget.closest(\".hs-dropdown\"), \"--auto-close\") === \"inside\") currentlyOpened = currentlyOpened.filter((el)=>el.element.el !== evtTarget.closest(\".hs-dropdown\"));\n if (currentlyOpened) currentlyOpened.forEach((el)=>{\n if (el.element.closeMode === \"false\" || el.element.closeMode === \"outside\") return false;\n el.element.close(isAnimated);\n });\n }\n // Backward compatibility\n static on(evt, target, cb) {\n const elInCollection = window.$hsDropdownCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) elInCollection.element.events[evt] = cb;\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $30ff3bc5863c48e0$var$HSDropdown.autoInit();\n// Uncomment for debug\n// console.log('Dropdown collection:', window.$hsDropdownCollection);\n});\nwindow.addEventListener(\"resize\", ()=>{\n if (!window.$hsDropdownCollection) window.$hsDropdownCollection = [];\n window.$hsDropdownCollection.forEach((el)=>el.element.resizeHandler());\n});\nif (typeof window !== \"undefined\") window.HSDropdown = $30ff3bc5863c48e0$var$HSDropdown;\nvar $30ff3bc5863c48e0$export$2e2bcd8739ae039 = $30ff3bc5863c48e0$var$HSDropdown;\n\n\n/*\n * HSInputNumber\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $92991b515617ed92$var$HSInputNumber extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n this.input = this.el.querySelector(\"[data-hs-input-number-input]\") || null;\n this.increment = this.el.querySelector(\"[data-hs-input-number-increment]\") || null;\n this.decrement = this.el.querySelector(\"[data-hs-input-number-decrement]\") || null;\n if (this.input) this.checkIsNumberAndConvert();\n const data = this.el.dataset.hsInputNumber;\n const dataOptions = data ? JSON.parse(data) : {\n step: 1\n };\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.minInputValue = \"min\" in concatOptions ? concatOptions.min : 0;\n this.maxInputValue = \"max\" in concatOptions ? concatOptions.max : null;\n this.step = \"step\" in concatOptions && concatOptions.step > 0 ? concatOptions.step : 1;\n this.init();\n }\n init() {\n this.createCollection(window.$hsInputNumberCollection, this);\n if (this.input && this.increment) this.build();\n }\n checkIsNumberAndConvert() {\n const value = this.input.value.trim();\n const cleanedValue = this.cleanAndExtractNumber(value);\n if (cleanedValue !== null) {\n this.inputValue = cleanedValue;\n this.input.value = cleanedValue.toString();\n } else {\n this.inputValue = 0;\n this.input.value = \"0\";\n }\n }\n cleanAndExtractNumber(value) {\n const cleanedArray = [];\n let decimalFound = false;\n value.split(\"\").forEach((char)=>{\n if (char >= \"0\" && char <= \"9\") cleanedArray.push(char);\n else if (char === \".\" && !decimalFound) {\n cleanedArray.push(char);\n decimalFound = true;\n }\n });\n const cleanedValue = cleanedArray.join(\"\");\n const number = parseFloat(cleanedValue);\n return isNaN(number) ? null : number;\n }\n build() {\n if (this.input) this.buildInput();\n if (this.increment) this.buildIncrement();\n if (this.decrement) this.buildDecrement();\n if (this.inputValue <= 0 && this.minInputValue === 0) {\n this.inputValue = 0;\n this.input.value = \"0\";\n }\n if (this.inputValue <= 0 || this.minInputValue < 0) this.changeValue();\n if (this.input.hasAttribute(\"disabled\")) this.disableButtons();\n }\n buildInput() {\n this.input.addEventListener(\"input\", ()=>this.changeValue());\n }\n buildIncrement() {\n this.increment.addEventListener(\"click\", ()=>{\n this.changeValue(\"increment\");\n });\n }\n buildDecrement() {\n this.decrement.addEventListener(\"click\", ()=>{\n this.changeValue(\"decrement\");\n });\n }\n changeValue(event = \"none\") {\n const payload = {\n inputValue: this.inputValue\n };\n const minInputValue = this.minInputValue ?? Number.MIN_SAFE_INTEGER;\n const maxInputValue = this.maxInputValue ?? Number.MAX_SAFE_INTEGER;\n this.inputValue = isNaN(this.inputValue) ? 0 : this.inputValue;\n switch(event){\n case \"increment\":\n const incrementedResult = this.inputValue + this.step;\n this.inputValue = incrementedResult >= minInputValue && incrementedResult <= maxInputValue ? incrementedResult : maxInputValue;\n this.input.value = this.inputValue.toString();\n break;\n case \"decrement\":\n const decrementedResult = this.inputValue - this.step;\n this.inputValue = decrementedResult >= minInputValue && decrementedResult <= maxInputValue ? decrementedResult : minInputValue;\n this.input.value = this.inputValue.toString();\n break;\n default:\n const defaultResult = isNaN(parseInt(this.input.value)) ? 0 : parseInt(this.input.value);\n this.inputValue = defaultResult >= maxInputValue ? maxInputValue : defaultResult <= minInputValue ? minInputValue : defaultResult;\n if (this.inputValue <= minInputValue) this.input.value = this.inputValue.toString();\n break;\n }\n payload.inputValue = this.inputValue;\n if (this.inputValue === minInputValue) {\n this.el.classList.add(\"disabled\");\n if (this.decrement) this.disableButtons(\"decrement\");\n } else {\n this.el.classList.remove(\"disabled\");\n if (this.decrement) this.enableButtons(\"decrement\");\n }\n if (this.inputValue === maxInputValue) {\n this.el.classList.add(\"disabled\");\n if (this.increment) this.disableButtons(\"increment\");\n } else {\n this.el.classList.remove(\"disabled\");\n if (this.increment) this.enableButtons(\"increment\");\n }\n this.fireEvent(\"change\", payload);\n (0, $cZqAW.dispatch)(\"change.hs.inputNumber\", this.el, payload);\n }\n disableButtons(mode = \"all\") {\n if (mode === \"all\") {\n if (this.increment.tagName === \"BUTTON\" || this.increment.tagName === \"INPUT\") this.increment.setAttribute(\"disabled\", \"disabled\");\n if (this.decrement.tagName === \"BUTTON\" || this.decrement.tagName === \"INPUT\") this.decrement.setAttribute(\"disabled\", \"disabled\");\n } else if (mode === \"increment\") {\n if (this.increment.tagName === \"BUTTON\" || this.increment.tagName === \"INPUT\") this.increment.setAttribute(\"disabled\", \"disabled\");\n } else if (mode === \"decrement\") {\n if (this.decrement.tagName === \"BUTTON\" || this.decrement.tagName === \"INPUT\") this.decrement.setAttribute(\"disabled\", \"disabled\");\n }\n }\n enableButtons(mode = \"all\") {\n if (mode === \"all\") {\n if (this.increment.tagName === \"BUTTON\" || this.increment.tagName === \"INPUT\") this.increment.removeAttribute(\"disabled\");\n if (this.decrement.tagName === \"BUTTON\" || this.decrement.tagName === \"INPUT\") this.decrement.removeAttribute(\"disabled\");\n } else if (mode === \"increment\") {\n if (this.increment.tagName === \"BUTTON\" || this.increment.tagName === \"INPUT\") this.increment.removeAttribute(\"disabled\");\n } else if (mode === \"decrement\") {\n if (this.decrement.tagName === \"BUTTON\" || this.decrement.tagName === \"INPUT\") this.decrement.removeAttribute(\"disabled\");\n }\n }\n // Global method\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsInputNumberCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsInputNumberCollection) window.$hsInputNumberCollection = [];\n document.querySelectorAll(\"[data-hs-input-number]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsInputNumberCollection.find((elC)=>elC?.element?.el === el)) new $92991b515617ed92$var$HSInputNumber(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $92991b515617ed92$var$HSInputNumber.autoInit();\n// Uncomment for debug\n// console.log('Input number collection:', window.$hsInputNumberCollection);\n});\nif (typeof window !== \"undefined\") window.HSInputNumber = $92991b515617ed92$var$HSInputNumber;\nvar $92991b515617ed92$export$2e2bcd8739ae039 = $92991b515617ed92$var$HSInputNumber;\n\n\n/*\n * HSOverlay\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $c4799b0513ab5e85$var$HSOverlay extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n const data = el.getAttribute(\"data-hs-overlay-options\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.hiddenClass = concatOptions?.hiddenClass || \"hidden\";\n this.emulateScrollbarSpace = concatOptions?.emulateScrollbarSpace || false;\n this.isClosePrev = concatOptions?.isClosePrev ?? true;\n this.backdropClasses = concatOptions?.backdropClasses ?? \"hs-overlay-backdrop transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 dark:bg-neutral-900\";\n this.backdropExtraClasses = concatOptions?.backdropExtraClasses ?? \"\";\n this.moveOverlayToBody = concatOptions?.moveOverlayToBody || null;\n this.openNextOverlay = false;\n this.autoHide = null;\n this.overlayId = this.el.getAttribute(\"data-hs-overlay\");\n this.overlay = document.querySelector(this.overlayId);\n this.initContainer = this.overlay?.parentElement || null;\n if (this.overlay) {\n this.isCloseWhenClickInside = (0, $cZqAW.stringToBoolean)((0, $cZqAW.getClassProperty)(this.overlay, \"--close-when-click-inside\", \"false\") || \"false\");\n this.isTabAccessibilityLimited = (0, $cZqAW.stringToBoolean)((0, $cZqAW.getClassProperty)(this.overlay, \"--tab-accessibility-limited\", \"true\") || \"true\");\n this.isLayoutAffect = (0, $cZqAW.stringToBoolean)((0, $cZqAW.getClassProperty)(this.overlay, \"--is-layout-affect\", \"false\") || \"false\");\n this.hasAutofocus = (0, $cZqAW.stringToBoolean)((0, $cZqAW.getClassProperty)(this.overlay, \"--has-autofocus\", \"true\") || \"true\");\n this.hasAbilityToCloseOnBackdropClick = (0, $cZqAW.stringToBoolean)(this.overlay.getAttribute(\"data-hs-overlay-keyboard\") || \"true\");\n const autoCloseBreakpoint = (0, $cZqAW.getClassProperty)(this.overlay, \"--auto-close\");\n this.autoClose = !isNaN(+autoCloseBreakpoint) && isFinite(+autoCloseBreakpoint) ? +autoCloseBreakpoint : (0, $ef84b720836c77d7$export$426e07cd0772984d)[autoCloseBreakpoint] || null;\n const openedBreakpoint = (0, $cZqAW.getClassProperty)(this.overlay, \"--opened\");\n this.openedBreakpoint = (!isNaN(+openedBreakpoint) && isFinite(+openedBreakpoint) ? +openedBreakpoint : (0, $ef84b720836c77d7$export$426e07cd0772984d)[openedBreakpoint]) || null;\n }\n this.animationTarget = this?.overlay?.querySelector(\".hs-overlay-animation-target\") || this.overlay;\n if (this.overlay) this.init();\n }\n init() {\n this.createCollection(window.$hsOverlayCollection, this);\n if (this.isLayoutAffect && this.openedBreakpoint) {\n const instance = $c4799b0513ab5e85$var$HSOverlay.getInstance(this.el, true);\n $c4799b0513ab5e85$var$HSOverlay.setOpened(this.openedBreakpoint, instance);\n }\n if (this?.el?.ariaExpanded) {\n if (this.overlay.classList.contains(\"opened\")) this.el.ariaExpanded = \"true\";\n else this.el.ariaExpanded = \"false\";\n }\n this.el.addEventListener(\"click\", ()=>{\n if (this.overlay.classList.contains(\"opened\")) this.close();\n else this.open();\n });\n this.overlay.addEventListener(\"click\", (evt)=>{\n if (evt.target.id && `#${evt.target.id}` === this.overlayId && this.isCloseWhenClickInside && this.hasAbilityToCloseOnBackdropClick) this.close();\n });\n }\n hideAuto() {\n const time = parseInt((0, $cZqAW.getClassProperty)(this.overlay, \"--auto-hide\", \"0\"));\n if (time) this.autoHide = setTimeout(()=>{\n this.close();\n }, time);\n }\n checkTimer() {\n if (this.autoHide) {\n clearTimeout(this.autoHide);\n this.autoHide = null;\n }\n }\n buildBackdrop() {\n const overlayClasses = this.overlay.classList.value.split(\" \");\n const overlayZIndex = parseInt(window.getComputedStyle(this.overlay).getPropertyValue(\"z-index\"));\n const backdropId = this.overlay.getAttribute(\"data-hs-overlay-backdrop-container\") || false;\n let backdrop = document.createElement(\"div\");\n let backdropClasses = `${this.backdropClasses} ${this.backdropExtraClasses}`;\n const closeOnBackdrop = (0, $cZqAW.getClassProperty)(this.overlay, \"--overlay-backdrop\", \"true\") !== \"static\";\n const disableBackdrop = (0, $cZqAW.getClassProperty)(this.overlay, \"--overlay-backdrop\", \"true\") === \"false\";\n backdrop.id = `${this.overlay.id}-backdrop`;\n if (\"style\" in backdrop) backdrop.style.zIndex = `${overlayZIndex - 1}`;\n for (const value of overlayClasses)if (value.startsWith(\"hs-overlay-backdrop-open:\") || value.includes(\":hs-overlay-backdrop-open:\")) backdropClasses += ` ${value}`;\n if (disableBackdrop) return;\n if (backdropId) {\n backdrop = document.querySelector(backdropId).cloneNode(true);\n backdrop.classList.remove(\"hidden\");\n backdropClasses = `${backdrop.classList.toString()}`;\n backdrop.classList.value = \"\";\n }\n if (closeOnBackdrop) backdrop.addEventListener(\"click\", ()=>this.close(), true);\n backdrop.setAttribute(\"data-hs-overlay-backdrop-template\", \"\");\n document.body.appendChild(backdrop);\n setTimeout(()=>{\n backdrop.classList.value = backdropClasses;\n });\n }\n destroyBackdrop() {\n const backdrop = document.querySelector(`#${this.overlay.id}-backdrop`);\n if (!backdrop) return;\n if (this.openNextOverlay) backdrop.style.transitionDuration = `${parseFloat(window.getComputedStyle(backdrop).transitionDuration.replace(/[^\\d.-]/g, \"\")) * 1.8}s`;\n backdrop.classList.add(\"opacity-0\");\n (0, $cZqAW.afterTransition)(backdrop, ()=>{\n backdrop.remove();\n });\n }\n focusElement() {\n const input = this.overlay.querySelector(\"[autofocus]\");\n if (!input) return false;\n else input.focus();\n }\n getScrollbarSize() {\n let div = document.createElement(\"div\");\n div.style.overflow = \"scroll\";\n div.style.width = \"100px\";\n div.style.height = \"100px\";\n document.body.appendChild(div);\n let scrollbarSize = div.offsetWidth - div.clientWidth;\n document.body.removeChild(div);\n return scrollbarSize;\n }\n // Public methods\n open() {\n if (!this.overlay) return false;\n const openedOverlays = document.querySelectorAll(\".hs-overlay.open\");\n const currentlyOpened = window.$hsOverlayCollection.find((el)=>Array.from(openedOverlays).includes(el.element.overlay) && !el.element.isLayoutAffect);\n const toggles = document.querySelectorAll(`[data-hs-overlay=\"#${this.overlay.id}\"]`);\n const disabledScroll = (0, $cZqAW.getClassProperty)(this.overlay, \"--body-scroll\", \"false\") !== \"true\";\n if (this.isClosePrev && currentlyOpened) {\n this.openNextOverlay = true;\n return currentlyOpened.element.close().then(()=>{\n this.open();\n this.openNextOverlay = false;\n });\n }\n if (disabledScroll) {\n document.body.style.overflow = \"hidden\";\n if (this.emulateScrollbarSpace) document.body.style.paddingRight = `${this.getScrollbarSize()}px`;\n }\n this.buildBackdrop();\n this.checkTimer();\n this.hideAuto();\n toggles.forEach((toggle)=>{\n if (toggle.ariaExpanded) toggle.ariaExpanded = \"true\";\n });\n this.overlay.classList.remove(this.hiddenClass);\n this.overlay.setAttribute(\"aria-overlay\", \"true\");\n this.overlay.setAttribute(\"tabindex\", \"-1\");\n setTimeout(()=>{\n if (this.overlay.classList.contains(\"opened\")) return false;\n this.overlay.classList.add(\"open\", \"opened\");\n if (this.isLayoutAffect) document.body.classList.add(\"hs-overlay-body-open\");\n this.fireEvent(\"open\", this.el);\n (0, $cZqAW.dispatch)(\"open.hs.overlay\", this.el, this.el);\n if (this.hasAutofocus) this.focusElement();\n }, 50);\n }\n close(forceClose = false) {\n if (this.isLayoutAffect) document.body.classList.remove(\"hs-overlay-body-open\");\n const closeFn = (cb)=>{\n if (this.overlay.classList.contains(\"open\")) return false;\n const toggles = document.querySelectorAll(`[data-hs-overlay=\"#${this.overlay.id}\"]`);\n toggles.forEach((toggle)=>{\n if (toggle.ariaExpanded) toggle.ariaExpanded = \"false\";\n });\n this.overlay.classList.add(this.hiddenClass);\n this.destroyBackdrop();\n this.fireEvent(\"close\", this.el);\n (0, $cZqAW.dispatch)(\"close.hs.overlay\", this.el, this.el);\n if (!document.querySelector(\".hs-overlay.opened\")) {\n document.body.style.overflow = \"\";\n if (this.emulateScrollbarSpace) document.body.style.paddingRight = \"\";\n }\n cb(this.overlay);\n };\n return new Promise((resolve)=>{\n if (!this.overlay) return false;\n this.overlay.classList.remove(\"open\", \"opened\");\n this.overlay.removeAttribute(\"aria-overlay\");\n this.overlay.removeAttribute(\"tabindex\");\n if (forceClose) closeFn(resolve);\n else (0, $cZqAW.afterTransition)(this.animationTarget, ()=>closeFn(resolve));\n });\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsOverlayCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target) || el.element.overlay === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static autoInit() {\n if (!window.$hsOverlayCollection) window.$hsOverlayCollection = [];\n document.querySelectorAll(\"[data-hs-overlay]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsOverlayCollection.find((elC)=>elC?.element?.el === el)) new $c4799b0513ab5e85$var$HSOverlay(el);\n });\n if (window.$hsOverlayCollection) document.addEventListener(\"keydown\", (evt)=>$c4799b0513ab5e85$var$HSOverlay.accessibility(evt));\n }\n static open(target) {\n const elInCollection = window.$hsOverlayCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target) || el.element.overlay === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && elInCollection.element.overlay.classList.contains(elInCollection.element.hiddenClass)) elInCollection.element.open();\n }\n static close(target) {\n const elInCollection = window.$hsOverlayCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target) || el.element.overlay === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && !elInCollection.element.overlay.classList.contains(elInCollection.element.hiddenClass)) elInCollection.element.close();\n }\n static setOpened(breakpoint, el) {\n if (document.body.clientWidth >= breakpoint) {\n document.body.classList.add(\"hs-overlay-body-open\");\n el.element.overlay.classList.add(\"opened\");\n } else el.element.close(true);\n }\n // Accessibility methods\n static accessibility(evt) {\n const targets = window.$hsOverlayCollection.filter((el)=>el.element.overlay.classList.contains(\"open\"));\n const target = targets[targets.length - 1];\n const focusableElements = target?.element?.overlay?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])');\n const notHiddenFocusableElements = [];\n if (focusableElements?.length) focusableElements.forEach((el)=>{\n if (!(0, $cZqAW.isParentOrElementHidden)(el)) notHiddenFocusableElements.push(el);\n });\n const basicCheck = target && !evt.metaKey;\n if (basicCheck && !target.element.isTabAccessibilityLimited && evt.code === \"Tab\") return false;\n if (basicCheck && notHiddenFocusableElements.length && evt.code === \"Tab\") {\n evt.preventDefault();\n this.onTab(target, notHiddenFocusableElements);\n }\n if (basicCheck && evt.code === \"Escape\") {\n evt.preventDefault();\n this.onEscape(target);\n }\n }\n static onEscape(target) {\n if (target && target.element.hasAbilityToCloseOnBackdropClick) target.element.close();\n }\n static onTab(target, focusableElements) {\n if (!focusableElements.length) return false;\n const focused = target.element.overlay.querySelector(\":focus\");\n const focusedIndex = Array.from(focusableElements).indexOf(focused);\n if (focusedIndex > -1) {\n const nextIndex = (focusedIndex + 1) % focusableElements.length;\n focusableElements[nextIndex].focus();\n } else focusableElements[0].focus();\n }\n // Backward compatibility\n static on(evt, target, cb) {\n const elInCollection = window.$hsOverlayCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target) || el.element.overlay === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) elInCollection.element.events[evt] = cb;\n }\n}\nconst $c4799b0513ab5e85$var$autoCloseResizeFn = ()=>{\n if (!window.$hsOverlayCollection.length || !window.$hsOverlayCollection.find((el)=>el.element.autoClose)) return false;\n const overlays = window.$hsOverlayCollection.filter((el)=>el.element.autoClose);\n overlays.forEach((overlay)=>{\n if (document.body.clientWidth >= overlay.element.autoClose) overlay.element.close(true);\n });\n};\nconst $c4799b0513ab5e85$var$moveOverlayToBodyResizeFn = ()=>{\n if (!window.$hsOverlayCollection.length || !window.$hsOverlayCollection.find((el)=>el.element.moveOverlayToBody)) return false;\n const overlays = window.$hsOverlayCollection.filter((el)=>el.element.moveOverlayToBody);\n overlays.forEach((overlay)=>{\n const resolution = overlay.element.moveOverlayToBody;\n const initPlace = overlay.element.initContainer;\n const newPlace = document.querySelector(\"body\");\n const target = overlay.element.overlay;\n if (!initPlace && target) return false;\n if (document.body.clientWidth <= resolution && !(0, $cZqAW.isDirectChild)(newPlace, target)) newPlace.appendChild(target);\n else if (document.body.clientWidth > resolution && !initPlace.contains(target)) initPlace.appendChild(target);\n });\n};\nconst $c4799b0513ab5e85$var$setOpenedResizeFn = ()=>{\n if (!window.$hsOverlayCollection.length || !window.$hsOverlayCollection.find((el)=>el.element.autoClose)) return false;\n const overlays = window.$hsOverlayCollection.filter((el)=>el.element.autoClose);\n overlays.forEach((overlay)=>{\n if (document.body.clientWidth >= overlay.element.autoClose) overlay.element.close(true);\n });\n};\nconst $c4799b0513ab5e85$var$setBackdropZIndexResizeFn = ()=>{\n if (!window.$hsOverlayCollection.length || !window.$hsOverlayCollection.find((el)=>el.element.overlay.classList.contains(\"opened\"))) return false;\n const overlays = window.$hsOverlayCollection.filter((el)=>el.element.overlay.classList.contains(\"opened\"));\n overlays.forEach((overlay)=>{\n const overlayZIndex = parseInt(window.getComputedStyle(overlay.element.overlay).getPropertyValue(\"z-index\"));\n const backdrop = document.querySelector(`#${overlay.element.overlay.id}-backdrop`);\n const backdropZIndex = parseInt(window.getComputedStyle(backdrop).getPropertyValue(\"z-index\"));\n if (overlayZIndex === backdropZIndex + 1) return false;\n if (\"style\" in backdrop) backdrop.style.zIndex = `${overlayZIndex - 1}`;\n document.body.classList.add(\"hs-overlay-body-open\");\n });\n};\nwindow.addEventListener(\"load\", ()=>{\n $c4799b0513ab5e85$var$HSOverlay.autoInit();\n $c4799b0513ab5e85$var$moveOverlayToBodyResizeFn();\n// Uncomment for debug\n// console.log('Overlay collection:', window.$hsOverlayCollection);\n});\nwindow.addEventListener(\"resize\", ()=>{\n $c4799b0513ab5e85$var$autoCloseResizeFn();\n $c4799b0513ab5e85$var$moveOverlayToBodyResizeFn();\n $c4799b0513ab5e85$var$setOpenedResizeFn();\n $c4799b0513ab5e85$var$setBackdropZIndexResizeFn();\n});\nif (typeof window !== \"undefined\") window.HSOverlay = $c4799b0513ab5e85$var$HSOverlay;\nvar $c4799b0513ab5e85$export$2e2bcd8739ae039 = $c4799b0513ab5e85$var$HSOverlay;\n\n\n/*\n * HSPinInput\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $b63c0d64c21290f7$var$HSPinInput extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n const data = el.getAttribute(\"data-hs-pin-input\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.items = this.el.querySelectorAll(\"[data-hs-pin-input-item]\");\n this.currentItem = null;\n this.currentValue = new Array(this.items.length).fill(\"\");\n this.placeholders = [];\n this.availableCharsRE = new RegExp(concatOptions?.availableCharsRE || \"^[a-zA-Z0-9]+$\"); // '^[0-9]+$'\n this.init();\n }\n init() {\n this.createCollection(window.$hsPinInputCollection, this);\n if (this.items.length) this.build();\n }\n build() {\n this.buildInputItems();\n }\n buildInputItems() {\n this.items.forEach((el, index)=>{\n this.placeholders.push(el.getAttribute(\"placeholder\") || \"\");\n if (el.hasAttribute(\"autofocus\")) this.onFocusIn(index);\n el.addEventListener(\"input\", (evt)=>this.onInput(evt, index));\n el.addEventListener(\"paste\", (evt)=>this.onPaste(evt));\n el.addEventListener(\"keydown\", (evt)=>this.onKeydown(evt, index));\n el.addEventListener(\"focusin\", ()=>this.onFocusIn(index));\n el.addEventListener(\"focusout\", ()=>this.onFocusOut(index));\n });\n }\n checkIfNumber(value) {\n return value.match(this.availableCharsRE);\n }\n autoFillAll(text) {\n Array.from(text).forEach((n, i)=>{\n if (!this?.items[i]) return false;\n this.items[i].value = n;\n this.items[i].dispatchEvent(new Event(\"input\", {\n bubbles: true\n }));\n });\n }\n setCurrentValue() {\n this.currentValue = Array.from(this.items).map((el)=>el.value);\n }\n toggleCompleted() {\n if (!this.currentValue.includes(\"\")) this.el.classList.add(\"active\");\n else this.el.classList.remove(\"active\");\n }\n onInput(evt, index) {\n const originalValue = evt.target.value;\n this.currentItem = evt.target;\n this.currentItem.value = \"\";\n this.currentItem.value = originalValue[originalValue.length - 1];\n if (!this.checkIfNumber(this.currentItem.value)) {\n this.currentItem.value = this.currentValue[index] || \"\";\n return false;\n }\n this.setCurrentValue();\n if (this.currentItem.value) {\n if (index < this.items.length - 1) this.items[index + 1].focus();\n if (!this.currentValue.includes(\"\")) {\n const payload = {\n currentValue: this.currentValue\n };\n this.fireEvent(\"completed\", payload);\n (0, $cZqAW.dispatch)(\"completed.hs.pinInput\", this.el, payload);\n }\n this.toggleCompleted();\n } else if (index > 0) this.items[index - 1].focus();\n }\n onKeydown(evt, index) {\n if (evt.key === \"Backspace\" && index > 0) {\n if (this.items[index].value === \"\") {\n this.items[index - 1].value = \"\";\n this.items[index - 1].focus();\n } else this.items[index].value = \"\";\n }\n this.setCurrentValue();\n this.toggleCompleted();\n }\n onFocusIn(index) {\n this.items[index].setAttribute(\"placeholder\", \"\");\n }\n onFocusOut(index) {\n this.items[index].setAttribute(\"placeholder\", this.placeholders[index]);\n }\n onPaste(evt) {\n evt.preventDefault();\n this.items.forEach((el)=>{\n if (document.activeElement === el) this.autoFillAll(evt.clipboardData.getData(\"text\"));\n });\n }\n // Static method\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsPinInputCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsPinInputCollection) window.$hsPinInputCollection = [];\n document.querySelectorAll(\"[data-hs-pin-input]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsPinInputCollection.find((elC)=>elC?.element?.el === el)) new $b63c0d64c21290f7$var$HSPinInput(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $b63c0d64c21290f7$var$HSPinInput.autoInit();\n// Uncomment for debug\n// console.log('PIN input collection:', window.$hsPinInputCollection);\n});\nif (typeof window !== \"undefined\") window.HSPinInput = $b63c0d64c21290f7$var$HSPinInput;\nvar $b63c0d64c21290f7$export$2e2bcd8739ae039 = $b63c0d64c21290f7$var$HSPinInput;\n\n\n/*\n * HSRemoveElement\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $2fa3b3495cc39359$var$HSRemoveElement extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n const data = el.getAttribute(\"data-hs-remove-element-options\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.removeTargetId = this.el.getAttribute(\"data-hs-remove-element\");\n this.removeTarget = document.querySelector(this.removeTargetId);\n this.removeTargetAnimationClass = concatOptions?.removeTargetAnimationClass || \"hs-removing\";\n if (this.removeTarget) this.init();\n }\n init() {\n this.createCollection(window.$hsRemoveElementCollection, this);\n this.el.addEventListener(\"click\", ()=>this.remove());\n }\n remove() {\n if (!this.removeTarget) return false;\n this.removeTarget.classList.add(this.removeTargetAnimationClass);\n (0, $cZqAW.afterTransition)(this.removeTarget, ()=>setTimeout(()=>this.removeTarget.remove()));\n }\n // Static method\n static autoInit() {\n if (!window.$hsRemoveElementCollection) window.$hsRemoveElementCollection = [];\n document.querySelectorAll(\"[data-hs-remove-element]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsRemoveElementCollection.find((elC)=>elC?.element?.el === el)) new $2fa3b3495cc39359$var$HSRemoveElement(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $2fa3b3495cc39359$var$HSRemoveElement.autoInit();\n// Uncomment for debug\n// console.log('Remove element collection:', window.$hsRemoveElementCollection);\n});\nif (typeof window !== \"undefined\") window.HSRemoveElement = $2fa3b3495cc39359$var$HSRemoveElement;\nvar $2fa3b3495cc39359$export$2e2bcd8739ae039 = $2fa3b3495cc39359$var$HSRemoveElement;\n\n\n/*\n * HSScrollspy\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $ad11e0e273662123$var$HSScrollspy extends (0, $luwGm.default) {\n constructor(el, options = {}){\n super(el, options);\n this.activeSection = null;\n this.contentId = this.el.getAttribute(\"data-hs-scrollspy\");\n this.content = document.querySelector(this.contentId);\n this.links = this.el.querySelectorAll(\"[href]\");\n this.sections = [];\n this.scrollableId = this.el.getAttribute(\"data-hs-scrollspy-scrollable-parent\");\n this.scrollable = this.scrollableId ? document.querySelector(this.scrollableId) : document;\n this.init();\n }\n init() {\n this.createCollection(window.$hsScrollspyCollection, this);\n this.links.forEach((el)=>{\n this.sections.push(this.scrollable.querySelector(el.getAttribute(\"href\")));\n });\n Array.from(this.sections).forEach((section)=>{\n if (!section.getAttribute(\"id\")) return false;\n this.scrollable.addEventListener(\"scroll\", (evt)=>this.update(evt, section));\n });\n this.links.forEach((el)=>{\n el.addEventListener(\"click\", (evt)=>{\n evt.preventDefault();\n if (el.getAttribute(\"href\") === \"javascript:;\") return false;\n this.scrollTo(el);\n });\n });\n }\n update(evt, section) {\n const globalOffset = parseInt((0, $cZqAW.getClassProperty)(this.el, \"--scrollspy-offset\", \"0\"));\n const userOffset = parseInt((0, $cZqAW.getClassProperty)(section, \"--scrollspy-offset\")) || globalOffset;\n const scrollableParentOffset = evt.target === document ? 0 : parseInt(String(evt.target.getBoundingClientRect().top));\n const topOffset = parseInt(String(section.getBoundingClientRect().top)) - userOffset - scrollableParentOffset;\n const height = section.offsetHeight;\n if (topOffset <= 0 && topOffset + height > 0) {\n if (this.activeSection === section) return false;\n this.links.forEach((el)=>{\n el.classList.remove(\"active\");\n });\n const current = this.el.querySelector(`[href=\"#${section.getAttribute(\"id\")}\"]`);\n if (current) {\n current.classList.add(\"active\");\n const group = current.closest(\"[data-hs-scrollspy-group]\");\n if (group) {\n const parentLink = group.querySelector(\"[href]\");\n if (parentLink) parentLink.classList.add(\"active\");\n }\n }\n this.activeSection = section;\n }\n }\n scrollTo(link) {\n const targetId = link.getAttribute(\"href\");\n const target = document.querySelector(targetId);\n const globalOffset = parseInt((0, $cZqAW.getClassProperty)(this.el, \"--scrollspy-offset\", \"0\"));\n const userOffset = parseInt((0, $cZqAW.getClassProperty)(target, \"--scrollspy-offset\")) || globalOffset;\n const scrollableParentOffset = this.scrollable === document ? 0 : this.scrollable.offsetTop;\n const topOffset = target.offsetTop - userOffset - scrollableParentOffset;\n const view = this.scrollable === document ? window : this.scrollable;\n const scrollFn = ()=>{\n window.history.replaceState(null, null, link.getAttribute(\"href\"));\n if (\"scrollTo\" in view) view.scrollTo({\n top: topOffset,\n left: 0,\n behavior: \"smooth\"\n });\n };\n const beforeScroll = this.fireEvent(\"beforeScroll\", this.el);\n (0, $cZqAW.dispatch)(\"beforeScroll.hs.scrollspy\", this.el, this.el);\n if (beforeScroll instanceof Promise) beforeScroll.then(()=>scrollFn());\n else scrollFn();\n }\n // Static methods\n static getInstance(target, isInstance = false) {\n const elInCollection = window.$hsScrollspyCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static autoInit() {\n if (!window.$hsScrollspyCollection) window.$hsScrollspyCollection = [];\n document.querySelectorAll(\"[data-hs-scrollspy]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsScrollspyCollection.find((elC)=>elC?.element?.el === el)) new $ad11e0e273662123$var$HSScrollspy(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $ad11e0e273662123$var$HSScrollspy.autoInit();\n// Uncomment for debug\n// console.log('Scrollspy collection:', window.$hsScrollspyCollection);\n});\nif (typeof window !== \"undefined\") window.HSScrollspy = $ad11e0e273662123$var$HSScrollspy;\nvar $ad11e0e273662123$export$2e2bcd8739ae039 = $ad11e0e273662123$var$HSScrollspy;\n\n\n/*\n * HSSelect\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\n\nclass $d6d8a1cc6d2c85b9$var$HSSelect extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n this.optionId = 0;\n const data = el.getAttribute(\"data-hs-select\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n const defaultToggleSeparators = {\n items: \", \",\n betweenItemsAndCounter: \"and\"\n };\n this.value = concatOptions?.value || this.el.value || null;\n this.placeholder = concatOptions?.placeholder || \"Select...\";\n this.hasSearch = concatOptions?.hasSearch || false;\n this.preventSearchFocus = concatOptions?.preventSearchFocus || false;\n this.mode = concatOptions?.mode || \"default\";\n this.viewport = typeof concatOptions?.viewport !== \"undefined\" ? document.querySelector(concatOptions?.viewport) : null;\n this.isOpened = Boolean(concatOptions?.isOpened) || false;\n this.isMultiple = this.el.hasAttribute(\"multiple\") || false;\n this.isDisabled = this.el.hasAttribute(\"disabled\") || false;\n this.selectedItems = [];\n this.apiUrl = concatOptions?.apiUrl || null;\n this.apiQuery = concatOptions?.apiQuery || null;\n this.apiOptions = concatOptions?.apiOptions || null;\n this.apiSearchQueryKey = concatOptions?.apiSearchQueryKey || null;\n this.apiDataPart = concatOptions?.apiDataPart || null;\n this.apiFieldsMap = concatOptions?.apiFieldsMap || null;\n this.apiIconTag = concatOptions?.apiIconTag || null;\n this.wrapperClasses = concatOptions?.wrapperClasses || null;\n this.toggleTag = concatOptions?.toggleTag || null;\n this.toggleClasses = concatOptions?.toggleClasses || null;\n this.toggleSeparators = defaultToggleSeparators;\n this.toggleCountText = concatOptions?.toggleCountText || null;\n this.toggleCountTextMinItems = concatOptions?.toggleCountTextMinItems || 1;\n this.toggleCountTextMode = concatOptions?.toggleCountTextMode || \"countAfterLimit\";\n this.tagsItemTemplate = concatOptions?.tagsItemTemplate || null;\n this.tagsItemClasses = concatOptions?.tagsItemClasses || null;\n this.tagsInputId = concatOptions?.tagsInputId || null;\n this.tagsInputClasses = concatOptions?.tagsInputClasses || null;\n this.dropdownTag = concatOptions?.dropdownTag || null;\n this.dropdownClasses = concatOptions?.dropdownClasses || null;\n this.dropdownDirectionClasses = concatOptions?.dropdownDirectionClasses || null;\n this.dropdownSpace = concatOptions?.dropdownSpace || 10;\n this.dropdownPlacement = concatOptions?.dropdownPlacement || null;\n this.dropdownScope = concatOptions?.dropdownScope || \"parent\";\n this.searchTemplate = concatOptions?.searchTemplate || null;\n this.searchWrapperTemplate = concatOptions?.searchWrapperTemplate || null;\n this.searchWrapperClasses = concatOptions?.searchWrapperClasses || \"bg-white p-2 sticky top-0\";\n this.searchId = concatOptions?.searchId || null;\n this.searchLimit = concatOptions?.searchLimit || Infinity;\n this.isSearchDirectMatch = typeof concatOptions?.isSearchDirectMatch !== \"undefined\" ? concatOptions?.isSearchDirectMatch : true;\n this.searchClasses = concatOptions?.searchClasses || \"block w-[calc(100%-2rem)] text-sm border-gray-200 rounded-md focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 py-2 px-3 my-2 mx-4\";\n this.searchPlaceholder = concatOptions?.searchPlaceholder || \"Search...\";\n this.searchNoResultTemplate = concatOptions?.searchNoResultTemplate || \"\";\n this.searchNoResultText = concatOptions?.searchNoResultText || \"No results found\";\n this.searchNoResultClasses = concatOptions?.searchNoResultClasses || \"px-4 text-sm text-gray-800 dark:text-neutral-200\";\n this.optionTemplate = concatOptions?.optionTemplate || null;\n this.optionTag = concatOptions?.optionTag || null;\n this.optionClasses = concatOptions?.optionClasses || null;\n this.extraMarkup = concatOptions?.extraMarkup || null;\n this.descriptionClasses = concatOptions?.descriptionClasses || null;\n this.iconClasses = concatOptions?.iconClasses || null;\n this.isAddTagOnEnter = concatOptions?.isAddTagOnEnter ?? true;\n this.animationInProcess = false;\n this.selectOptions = [];\n this.remoteOptions = [];\n this.tagsInputHelper = null;\n this.init();\n }\n setValue(val) {\n this.value = val;\n this.clearSelections();\n if (Array.isArray(val)) {\n this.toggleTextWrapper.innerHTML = this.value.length ? this.stringFromValue() : this.placeholder;\n this.unselectMultipleItems();\n this.selectMultipleItems();\n } else {\n this.setToggleTitle();\n if (this.toggle.querySelector(\"[data-icon]\")) this.setToggleIcon();\n if (this.toggle.querySelector(\"[data-title]\")) this.setToggleTitle();\n this.selectSingleItem();\n }\n }\n init() {\n this.createCollection(window.$hsSelectCollection, this);\n this.build();\n }\n build() {\n this.el.style.display = \"none\";\n if (this.el.children) Array.from(this.el.children).filter((el)=>el.value && el.value !== \"\").forEach((el)=>{\n const data = el.getAttribute(\"data-hs-select-option\");\n this.selectOptions = [\n ...this.selectOptions,\n {\n title: el.textContent,\n val: el.value,\n disabled: el.disabled,\n options: data !== \"undefined\" ? JSON.parse(data) : null\n }\n ];\n });\n if (this.isMultiple) {\n const selectedOptions = Array.from(this.el.children).filter((el)=>el.selected);\n if (selectedOptions) {\n const values = [];\n selectedOptions.forEach((el)=>{\n values.push(el.value);\n });\n this.value = values;\n }\n }\n this.buildWrapper();\n if (this.mode === \"tags\") this.buildTags();\n else this.buildToggle();\n this.buildDropdown();\n if (this.extraMarkup) this.buildExtraMarkup();\n }\n buildWrapper() {\n this.wrapper = document.createElement(\"div\");\n this.wrapper.classList.add(\"hs-select\", \"relative\");\n if (this.mode === \"tags\") this.wrapper.addEventListener(\"click\", (evt)=>{\n if (!evt.target.closest(\"[data-hs-select-dropdown]\") && !evt.target.closest(\"[data-tag-value]\")) this.tagsInput.focus();\n });\n if (this.wrapperClasses) (0, $cZqAW.classToClassList)(this.wrapperClasses, this.wrapper);\n this.el.before(this.wrapper);\n this.wrapper.append(this.el);\n }\n buildExtraMarkup() {\n const appendMarkup = (markup)=>{\n const el = (0, $cZqAW.htmlToElement)(markup);\n this.wrapper.append(el);\n return el;\n };\n const clickHandle = (el)=>{\n if (!el.classList.contains(\"--prevent-click\")) el.addEventListener(\"click\", (evt)=>{\n evt.stopPropagation();\n this.toggleFn();\n });\n };\n if (Array.isArray(this.extraMarkup)) this.extraMarkup.forEach((el)=>{\n const newEl = appendMarkup(el);\n clickHandle(newEl);\n });\n else {\n const newEl = appendMarkup(this.extraMarkup);\n clickHandle(newEl);\n }\n }\n buildToggle() {\n let icon, title;\n this.toggleTextWrapper = document.createElement(\"span\");\n this.toggleTextWrapper.classList.add(\"truncate\");\n this.toggle = (0, $cZqAW.htmlToElement)(this.toggleTag || \"
\");\n icon = this.toggle.querySelector(\"[data-icon]\");\n title = this.toggle.querySelector(\"[data-title]\");\n if (!this.isMultiple && icon) this.setToggleIcon();\n if (!this.isMultiple && title) this.setToggleTitle();\n if (this.isMultiple) this.toggleTextWrapper.innerHTML = this.value.length ? this.stringFromValue() : this.placeholder;\n else this.toggleTextWrapper.innerHTML = this.getItemByValue(this.value)?.title || this.placeholder;\n if (!title) this.toggle.append(this.toggleTextWrapper);\n if (this.toggleClasses) (0, $cZqAW.classToClassList)(this.toggleClasses, this.toggle);\n if (this.isDisabled) this.toggle.classList.add(\"disabled\");\n if (this.wrapper) this.wrapper.append(this.toggle);\n if (this.toggle?.ariaExpanded) {\n if (this.isOpened) this.toggle.ariaExpanded = \"true\";\n else this.toggle.ariaExpanded = \"false\";\n }\n this.toggle.addEventListener(\"click\", ()=>{\n if (this.isDisabled) return false;\n this.toggleFn();\n });\n }\n setToggleIcon() {\n const item = this.getItemByValue(this.value);\n const icon = this.toggle.querySelector(\"[data-icon]\");\n icon.innerHTML = \"\";\n if (icon) {\n const img = (0, $cZqAW.htmlToElement)(this.apiUrl && this.apiIconTag ? this.apiIconTag || \"\" : item?.options?.icon || \"\");\n if (this.value && this.apiUrl && this.apiIconTag && item[this.apiFieldsMap.icon]) img.src = item[this.apiFieldsMap.icon] || \"\";\n icon.append(img);\n if (!img || !img?.src) icon.classList.add(\"hidden\");\n else icon.classList.remove(\"hidden\");\n }\n }\n setToggleTitle() {\n const title = this.toggle.querySelector(\"[data-title]\");\n title.classList.add(\"truncate\");\n title.innerHTML = \"\";\n if (title) {\n const titleText = this.getItemByValue(this.value)?.title || this.placeholder;\n title.innerHTML = titleText;\n this.toggle.append(title);\n }\n }\n buildTags() {\n if (this.isDisabled) this.wrapper.classList.add(\"disabled\");\n this.buildTagsInput();\n this.setTagsItems();\n }\n reassignTagsInputPlaceholder(placeholder) {\n this.tagsInput.placeholder = placeholder;\n this.tagsInputHelper.innerHTML = placeholder;\n this.calculateInputWidth();\n }\n buildTagsItem(val) {\n const item = this.getItemByValue(val);\n let template, title, remove, icon;\n const newItem = document.createElement(\"div\");\n newItem.setAttribute(\"data-tag-value\", val);\n if (this.tagsItemClasses) (0, $cZqAW.classToClassList)(this.tagsItemClasses, newItem);\n if (this.tagsItemTemplate) {\n template = (0, $cZqAW.htmlToElement)(this.tagsItemTemplate);\n newItem.append(template);\n }\n // Icon\n if (item?.options?.icon || this.apiIconTag) {\n const img = (0, $cZqAW.htmlToElement)(this.apiUrl && this.apiIconTag ? this.apiIconTag : item?.options?.icon);\n if (this.apiUrl && this.apiIconTag && item[this.apiFieldsMap.icon]) img.src = item[this.apiFieldsMap.icon] || \"\";\n icon = template ? template.querySelector(\"[data-icon]\") : document.createElement(\"span\");\n icon.append(img);\n if (!template) newItem.append(icon);\n }\n if (template && template.querySelector(\"[data-icon]\") && !item?.options?.icon && !this.apiUrl && !this.apiIconTag && !item[this.apiFieldsMap?.icon]) template.querySelector(\"[data-icon]\").classList.add(\"hidden\");\n // Title\n title = template ? template.querySelector(\"[data-title]\") : document.createElement(\"span\");\n title.textContent = item.title || \"\";\n if (!template) newItem.append(title);\n // Remove\n if (template) remove = template.querySelector(\"[data-remove]\");\n else {\n remove = document.createElement(\"span\");\n remove.textContent = \"X\";\n newItem.append(remove);\n }\n remove.addEventListener(\"click\", ()=>{\n this.value = this.value.filter((el)=>el !== val);\n this.selectedItems = this.selectedItems.filter((el)=>el !== val);\n if (!this.value.length) this.reassignTagsInputPlaceholder(this.placeholder);\n this.unselectMultipleItems();\n this.selectMultipleItems();\n newItem.remove();\n this.fireEvent(\"change\", this.value);\n (0, $cZqAW.dispatch)(\"change.hs.select\", this.el, this.value);\n });\n this.wrapper.append(newItem);\n }\n getItemByValue(val) {\n const value = this.apiUrl ? this.remoteOptions.find((el)=>el[this.apiFieldsMap.title] === val) : this.selectOptions.find((el)=>el.val === val);\n return value;\n }\n setTagsItems() {\n if (this.value) this.value.forEach((val)=>{\n if (!this.selectedItems.includes(val)) this.buildTagsItem(val);\n this.selectedItems = !this.selectedItems.includes(val) ? [\n ...this.selectedItems,\n val\n ] : this.selectedItems;\n });\n }\n buildTagsInput() {\n this.tagsInput = document.createElement(\"input\");\n if (this.tagsInputId) this.tagsInput.id = this.tagsInputId;\n if (this.tagsInputClasses) (0, $cZqAW.classToClassList)(this.tagsInputClasses, this.tagsInput);\n this.tagsInput.addEventListener(\"focus\", ()=>{\n if (!this.isOpened) this.open();\n });\n this.tagsInput.addEventListener(\"input\", ()=>this.calculateInputWidth());\n this.tagsInput.addEventListener(\"input\", (0, $cZqAW.debounce)((evt)=>this.searchOptions(evt.target.value)));\n this.tagsInput.addEventListener(\"keydown\", (evt)=>{\n if (evt.key === \"Enter\" && this.isAddTagOnEnter) {\n const val = evt.target.value;\n if (this.selectOptions.find((el)=>el.val === val)) return false;\n this.addSelectOption(val, val);\n this.buildOption(val, val);\n this.dropdown.querySelector(`[data-value=\"${val}\"]`).click();\n this.resetTagsInputField();\n // this.close();\n }\n });\n this.wrapper.append(this.tagsInput);\n setTimeout(()=>{\n this.adjustInputWidth();\n this.reassignTagsInputPlaceholder(this.value.length ? \"\" : this.placeholder);\n });\n }\n buildDropdown() {\n this.dropdown = (0, $cZqAW.htmlToElement)(this.dropdownTag || \"
\");\n this.dropdown.setAttribute(\"data-hs-select-dropdown\", \"\");\n if (this.dropdownScope === \"parent\") this.dropdown.classList.add(\"absolute\", \"top-full\");\n this.dropdown.role = \"listbox\";\n this.dropdown.tabIndex = -1;\n this.dropdown.ariaOrientation = \"vertical\";\n if (!this.isOpened) this.dropdown.classList.add(\"hidden\");\n if (this.dropdownClasses) (0, $cZqAW.classToClassList)(this.dropdownClasses, this.dropdown);\n if (this.wrapper) this.wrapper.append(this.dropdown);\n if (this.dropdown && this.hasSearch) this.buildSearch();\n if (this.selectOptions) this.selectOptions.forEach((props, i)=>this.buildOption(props.title, props.val, props.disabled, props.selected, props.options, `${i}`));\n if (this.apiUrl) this.optionsFromRemoteData();\n if (this.dropdownScope === \"window\") this.buildPopper();\n }\n buildPopper() {\n if (typeof Popper !== \"undefined\" && Popper.createPopper) {\n document.body.appendChild(this.dropdown);\n this.popperInstance = Popper.createPopper(this.mode === \"tags\" ? this.wrapper : this.toggle, this.dropdown, {\n placement: (0, $ef84b720836c77d7$export$1a1f61c9c4dd9df0)[this.dropdownPlacement] || \"bottom\",\n strategy: \"fixed\",\n modifiers: [\n {\n name: \"offset\",\n options: {\n offset: [\n 0,\n 5\n ]\n }\n }\n ]\n });\n }\n }\n updateDropdownWidth() {\n const toggle = this.mode === \"tags\" ? this.wrapper : this.toggle;\n this.dropdown.style.width = `${toggle.clientWidth}px`;\n }\n buildSearch() {\n let input;\n this.searchWrapper = (0, $cZqAW.htmlToElement)(this.searchWrapperTemplate || \"
\");\n if (this.searchWrapperClasses) (0, $cZqAW.classToClassList)(this.searchWrapperClasses, this.searchWrapper);\n input = this.searchWrapper.querySelector(\"[data-input]\");\n const search = (0, $cZqAW.htmlToElement)(this.searchTemplate || '');\n this.search = search.tagName === \"INPUT\" ? search : search.querySelector(\":scope input\");\n this.search.placeholder = this.searchPlaceholder;\n if (this.searchClasses) (0, $cZqAW.classToClassList)(this.searchClasses, this.search);\n if (this.searchId) this.search.id = this.searchId;\n this.search.addEventListener(\"input\", (0, $cZqAW.debounce)((evt)=>{\n if (this.apiUrl) this.remoteSearch(evt.target.value);\n else this.searchOptions(evt.target.value);\n }));\n if (input) input.append(search);\n else this.searchWrapper.append(search);\n this.dropdown.append(this.searchWrapper);\n }\n buildOption(title, val, disabled = false, selected = false, options, index = \"1\", id) {\n let template = null;\n let titleWrapper = null;\n let iconWrapper = null;\n let descriptionWrapper = null;\n const option = (0, $cZqAW.htmlToElement)(this.optionTag || \"
\");\n option.setAttribute(\"data-value\", val);\n option.setAttribute(\"data-title-value\", title);\n option.setAttribute(\"tabIndex\", index);\n option.classList.add(\"cursor-pointer\");\n option.setAttribute(\"data-id\", id || `${this.optionId}`);\n if (!id) this.optionId++;\n if (disabled) option.classList.add(\"disabled\");\n if (selected) {\n if (this.isMultiple) this.value = [\n ...this.value,\n val\n ];\n else this.value = val;\n }\n if (this.optionTemplate) {\n template = (0, $cZqAW.htmlToElement)(this.optionTemplate);\n option.append(template);\n }\n if (template) {\n titleWrapper = template.querySelector(\"[data-title]\");\n titleWrapper.textContent = title || \"\";\n } else option.textContent = title || \"\";\n if (options) {\n if (options.icon) {\n const img = (0, $cZqAW.htmlToElement)(this.apiIconTag ?? options.icon);\n img.classList.add(\"max-w-full\");\n if (this.apiUrl) {\n img.setAttribute(\"alt\", title);\n img.setAttribute(\"src\", options.icon);\n }\n if (template) {\n iconWrapper = template.querySelector(\"[data-icon]\");\n iconWrapper.append(img);\n } else {\n const icon = (0, $cZqAW.htmlToElement)(\"
\");\n if (this.iconClasses) (0, $cZqAW.classToClassList)(this.iconClasses, icon);\n icon.append(img);\n option.append(icon);\n }\n }\n if (options.description) {\n if (template) {\n descriptionWrapper = template.querySelector(\"[data-description]\");\n if (descriptionWrapper) descriptionWrapper.append(options.description);\n } else {\n const description = (0, $cZqAW.htmlToElement)(\"
\");\n description.textContent = options.description;\n if (this.descriptionClasses) (0, $cZqAW.classToClassList)(this.descriptionClasses, description);\n option.append(description);\n }\n }\n }\n if (template && template.querySelector(\"[data-icon]\") && !options && !options?.icon) template.querySelector(\"[data-icon]\").classList.add(\"hidden\");\n if (this.value && (this.isMultiple ? this.value.includes(val) : this.value === val)) option.classList.add(\"selected\");\n if (!disabled) option.addEventListener(\"click\", ()=>this.onSelectOption(val));\n if (this.optionClasses) (0, $cZqAW.classToClassList)(this.optionClasses, option);\n if (this.dropdown) this.dropdown.append(option);\n if (selected) this.setNewValue();\n }\n buildOptionFromRemoteData(title, val, disabled = false, selected = false, index = \"1\", id, options) {\n if (index) this.buildOption(title, val, disabled, selected, options, index, id);\n else alert(\"ID parameter is required for generating remote options! Please check your API endpoint have it.\");\n }\n buildOptionsFromRemoteData(data) {\n data.forEach((el, i)=>{\n let id = null;\n let title = \"\";\n const options = {\n id: \"\",\n title: \"\",\n icon: null,\n description: null,\n rest: {}\n };\n Object.keys(el).forEach((key)=>{\n if (el[this.apiFieldsMap.id]) id = el[this.apiFieldsMap.id];\n if (el[this.apiFieldsMap.title]) title = el[this.apiFieldsMap.title];\n if (el[this.apiFieldsMap.icon]) options.icon = el[this.apiFieldsMap.icon];\n if (el[this.apiFieldsMap?.description]) options.description = el[this.apiFieldsMap.description];\n options.rest[key] = el[key];\n });\n this.buildOriginalOption(title, title, id, false, false, options);\n this.buildOptionFromRemoteData(title, title, false, false, `${i}`, id, options);\n });\n this.sortElements(this.el, \"option\");\n this.sortElements(this.dropdown, \"[data-value]\");\n }\n async optionsFromRemoteData(val = \"\") {\n const res = await this.apiRequest(val);\n this.remoteOptions = res;\n if (res.length) this.buildOptionsFromRemoteData(this.remoteOptions);\n else console.log(\"There is no data were responded!\");\n }\n async apiRequest(val = \"\") {\n try {\n let url = this.apiUrl;\n const search = this.apiSearchQueryKey ? `${this.apiSearchQueryKey}=${val.toLowerCase()}` : null;\n const query = `${this.apiQuery}`;\n const options = this.apiOptions || {};\n if (search) url += `?${search}`;\n if (this.apiQuery) url += `${search ? \"&\" : \"?\"}${query}`;\n const req = await fetch(url, options);\n const res = await req.json();\n return this.apiDataPart ? res[this.apiDataPart] : res;\n } catch (err) {\n console.error(err);\n }\n }\n sortElements(container, selector) {\n const items = Array.from(container.querySelectorAll(selector));\n items.sort((a, b)=>{\n const isASelected = a.classList.contains(\"selected\") || a.hasAttribute(\"selected\");\n const isBSelected = b.classList.contains(\"selected\") || b.hasAttribute(\"selected\");\n if (isASelected && !isBSelected) return -1;\n if (!isASelected && isBSelected) return 1;\n return 0;\n });\n items.forEach((item)=>container.appendChild(item));\n }\n async remoteSearch(val) {\n const res = await this.apiRequest(val);\n this.remoteOptions = res;\n let newIds = res.map((item)=>`${item.id}`);\n let restOptions = null;\n const pseudoOptions = this.dropdown.querySelectorAll(\"[data-value]\");\n const options = this.el.querySelectorAll(\"[data-hs-select-option]\");\n options.forEach((el)=>{\n const dataId = el.getAttribute(\"data-id\");\n if (!newIds.includes(dataId) && !this.value?.includes(el.value)) this.destroyOriginalOption(el.value);\n });\n pseudoOptions.forEach((el)=>{\n const dataId = el.getAttribute(\"data-id\");\n if (!newIds.includes(dataId) && !this.value?.includes(el.getAttribute(\"data-value\"))) this.destroyOption(el.getAttribute(\"data-value\"));\n else newIds = newIds.filter((item)=>item !== dataId);\n });\n restOptions = res.filter((item)=>newIds.includes(`${item.id}`));\n if (restOptions.length) this.buildOptionsFromRemoteData(restOptions);\n else console.log(\"There is no data were responded!\");\n }\n destroyOption(val) {\n const option = this.dropdown.querySelector(`[data-value=\"${val}\"]`);\n if (!option) return false;\n option.remove();\n }\n buildOriginalOption(title, val, id, disabled, selected, options) {\n const option = (0, $cZqAW.htmlToElement)(\"\");\n option.setAttribute(\"value\", val);\n if (disabled) option.setAttribute(\"disabled\", \"disabled\");\n if (selected) option.setAttribute(\"selected\", \"selected\");\n if (id) option.setAttribute(\"data-id\", id);\n option.setAttribute(\"data-hs-select-option\", JSON.stringify(options));\n option.innerText = title;\n this.el.append(option);\n }\n destroyOriginalOption(val) {\n const option = this.el.querySelector(`[value=\"${val}\"]`);\n if (!option) return false;\n option.remove();\n }\n buildTagsInputHelper() {\n this.tagsInputHelper = document.createElement(\"span\");\n this.tagsInputHelper.style.fontSize = window.getComputedStyle(this.tagsInput).fontSize;\n this.tagsInputHelper.style.fontFamily = window.getComputedStyle(this.tagsInput).fontFamily;\n this.tagsInputHelper.style.fontWeight = window.getComputedStyle(this.tagsInput).fontWeight;\n this.tagsInputHelper.style.letterSpacing = window.getComputedStyle(this.tagsInput).letterSpacing;\n this.tagsInputHelper.style.visibility = \"hidden\";\n this.tagsInputHelper.style.whiteSpace = \"pre\";\n this.tagsInputHelper.style.position = \"absolute\";\n this.wrapper.appendChild(this.tagsInputHelper);\n }\n calculateInputWidth() {\n this.tagsInputHelper.textContent = this.tagsInput.value || this.tagsInput.placeholder;\n const inputPadding = parseInt(window.getComputedStyle(this.tagsInput).paddingLeft) + parseInt(window.getComputedStyle(this.tagsInput).paddingRight);\n const inputBorder = parseInt(window.getComputedStyle(this.tagsInput).borderLeftWidth) + parseInt(window.getComputedStyle(this.tagsInput).borderRightWidth);\n const newWidth = this.tagsInputHelper.offsetWidth + inputPadding + inputBorder;\n const maxWidth = this.wrapper.offsetWidth - (parseInt(window.getComputedStyle(this.wrapper).paddingLeft) + parseInt(window.getComputedStyle(this.wrapper).paddingRight));\n this.tagsInput.style.width = `${Math.min(newWidth, maxWidth) + 2}px`;\n }\n adjustInputWidth() {\n this.buildTagsInputHelper();\n this.calculateInputWidth();\n }\n onSelectOption(val) {\n this.clearSelections();\n if (this.isMultiple) {\n this.value = this.value.includes(val) ? Array.from(this.value).filter((el)=>el !== val) : [\n ...Array.from(this.value),\n val\n ];\n this.selectMultipleItems();\n this.setNewValue();\n } else {\n this.value = val;\n this.selectSingleItem();\n this.setNewValue();\n }\n this.fireEvent(\"change\", this.value);\n (0, $cZqAW.dispatch)(\"change.hs.select\", this.el, this.value);\n if (this.mode === \"tags\") {\n const intersection = this.selectedItems.filter((x)=>!this.value.includes(x));\n if (intersection.length) intersection.forEach((el)=>{\n this.selectedItems = this.selectedItems.filter((elI)=>elI !== el);\n this.wrapper.querySelector(`[data-tag-value=\"${el}\"]`).remove();\n });\n this.resetTagsInputField();\n }\n if (!this.isMultiple) {\n if (this.toggle.querySelector(\"[data-icon]\")) this.setToggleIcon();\n if (this.toggle.querySelector(\"[data-title]\")) this.setToggleTitle();\n this.close();\n }\n if (!this.value.length && this.mode === \"tags\") this.reassignTagsInputPlaceholder(this.placeholder);\n if (this.isOpened && this.mode === \"tags\" && this.tagsInput) this.tagsInput.focus();\n this.triggerChangeEventForNativeSelect();\n }\n triggerChangeEventForNativeSelect() {\n // TODO:: test for bugs after comment the line below\n // (this.el as HTMLSelectElement).value = `${this.value}`;\n const selectChangeEvent = new Event(\"change\", {\n bubbles: true\n });\n this.el.dispatchEvent(selectChangeEvent);\n }\n addSelectOption(title, val, disabled, selected, options) {\n this.selectOptions = [\n ...this.selectOptions,\n {\n title: title,\n val: val,\n disabled: disabled,\n selected: selected,\n options: options\n }\n ];\n }\n removeSelectOption(val, isArray = false) {\n const hasOption = !!this.selectOptions.some((el)=>el.val === val);\n if (!hasOption) return false;\n this.selectOptions = this.selectOptions.filter((el)=>el.val !== val);\n this.value = isArray ? this.value.filter((item)=>item !== val) : val;\n }\n resetTagsInputField() {\n this.tagsInput.value = \"\";\n this.reassignTagsInputPlaceholder(\"\");\n this.searchOptions(\"\");\n }\n clearSelections() {\n Array.from(this.dropdown.children).forEach((el)=>{\n if (el.classList.contains(\"selected\")) el.classList.remove(\"selected\");\n });\n Array.from(this.el.children).forEach((el)=>{\n if (el.selected) el.selected = false;\n });\n }\n setNewValue() {\n if (this.mode === \"tags\") this.setTagsItems();\n else if (this.value?.length) this.toggleTextWrapper.innerHTML = this.stringFromValue();\n else this.toggleTextWrapper.innerHTML = this.placeholder;\n }\n stringFromValueBasic(options) {\n const value = [];\n let title = \"\";\n options.forEach((el)=>{\n if (this.isMultiple) {\n if (this.value.includes(el.val)) value.push(el.title);\n } else if (this.value === el.val) value.push(el.title);\n });\n if (this.toggleCountText && this.toggleCountText !== \"\" && value.length >= this.toggleCountTextMinItems) {\n if (this.toggleCountTextMode === \"nItemsAndCount\") {\n const nItems = value.slice(0, this.toggleCountTextMinItems - 1);\n title = `${nItems.join(this.toggleSeparators.items)} ${this.toggleSeparators.betweenItemsAndCounter} ${value.length - nItems.length} ${this.toggleCountText}`;\n } else title = `${value.length} ${this.toggleCountText}`;\n } else title = value.join(this.toggleSeparators.items);\n return title;\n }\n stringFromValueRemoteData() {\n const options = this.dropdown.querySelectorAll(\"[data-title-value]\");\n const value = [];\n let title = \"\";\n options.forEach((el)=>{\n const dataValue = el.getAttribute(\"data-value\");\n if (this.isMultiple) {\n if (this.value.includes(dataValue)) value.push(dataValue);\n } else if (this.value === dataValue) value.push(dataValue);\n });\n if (this.toggleCountText && this.toggleCountText !== \"\" && value.length >= this.toggleCountTextMinItems) {\n if (this.toggleCountTextMode === \"nItemsAndCount\") {\n const nItems = value.slice(0, this.toggleCountTextMinItems - 1);\n title = `${nItems.join(this.toggleSeparators.items)} ${this.toggleSeparators.betweenItemsAndCounter} ${value.length - nItems.length} ${this.toggleCountText}`;\n } else title = `${value.length} ${this.toggleCountText}`;\n } else title = value.join(this.toggleSeparators.items);\n return title;\n }\n stringFromValue() {\n const result = this.apiUrl ? this.stringFromValueRemoteData() : this.stringFromValueBasic(this.selectOptions);\n return result;\n }\n selectSingleItem() {\n const selectedOption = Array.from(this.el.children).find((el)=>this.value === el.value);\n selectedOption.selected = true;\n const selectedItem = Array.from(this.dropdown.children).find((el)=>this.value === el.getAttribute(\"data-value\"));\n if (selectedItem) selectedItem.classList.add(\"selected\");\n }\n selectMultipleItems() {\n Array.from(this.dropdown.children).filter((el)=>this.value.includes(el.getAttribute(\"data-value\"))).forEach((el)=>el.classList.add(\"selected\"));\n Array.from(this.el.children).filter((el)=>this.value.includes(el.value)).forEach((el)=>el.selected = true);\n }\n unselectMultipleItems() {\n Array.from(this.dropdown.children).forEach((el)=>el.classList.remove(\"selected\"));\n Array.from(this.el.children).forEach((el)=>el.selected = false);\n }\n searchOptions(val) {\n if (this.searchNoResult) {\n this.searchNoResult.remove();\n this.searchNoResult = null;\n }\n this.searchNoResult = (0, $cZqAW.htmlToElement)(this.searchNoResultTemplate);\n this.searchNoResult.innerText = this.searchNoResultText;\n (0, $cZqAW.classToClassList)(this.searchNoResultClasses, this.searchNoResult);\n const options = this.dropdown.querySelectorAll(\"[data-value]\");\n let hasItems = false;\n let countLimit;\n if (this.searchLimit) countLimit = 0;\n options.forEach((el)=>{\n const optionVal = el.getAttribute(\"data-title-value\").toLocaleLowerCase();\n const regexSafeVal = val ? val.split(\"\").map((char)=>{\n return char.match(/\\w/) ? `${char}[\\\\W_]*` : \"\\\\W*\";\n }).join(\"\") : \"\";\n const regex = new RegExp(regexSafeVal, \"i\");\n const directMatch = this.isSearchDirectMatch;\n const cleanedOptionVal = optionVal.trim();\n const condition = val ? directMatch ? !cleanedOptionVal.toLowerCase().includes(val.toLowerCase()) || countLimit >= this.searchLimit : !regex.test(cleanedOptionVal) || countLimit >= this.searchLimit : !regex.test(cleanedOptionVal);\n if (condition) el.classList.add(\"hidden\");\n else {\n el.classList.remove(\"hidden\");\n hasItems = true;\n if (this.searchLimit) countLimit++;\n }\n });\n if (!hasItems) this.dropdown.append(this.searchNoResult);\n }\n eraseToggleIcon() {\n const icon = this.toggle.querySelector(\"[data-icon]\");\n if (icon) {\n icon.innerHTML = null;\n icon.classList.add(\"hidden\");\n }\n }\n eraseToggleTitle() {\n const title = this.toggle.querySelector(\"[data-title]\");\n if (title) title.innerHTML = this.placeholder;\n else this.toggleTextWrapper.innerHTML = this.placeholder;\n }\n toggleFn() {\n if (this.isOpened) this.close();\n else this.open();\n }\n // Public methods\n destroy() {\n const parent = this.el.parentElement.parentElement;\n this.el.classList.remove(\"hidden\");\n this.el.style.display = \"\";\n parent.prepend(this.el);\n parent.querySelector(\".hs-select\").remove();\n this.wrapper = null;\n }\n open() {\n const currentlyOpened = window?.$hsSelectCollection?.find((el)=>el.element.isOpened) || null;\n if (currentlyOpened) currentlyOpened.element.close();\n if (this.animationInProcess) return false;\n this.animationInProcess = true;\n if (this.dropdownScope === \"window\") this.dropdown.classList.add(\"invisible\");\n this.dropdown.classList.remove(\"hidden\");\n this.recalculateDirection();\n setTimeout(()=>{\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"true\";\n this.wrapper.classList.add(\"active\");\n this.dropdown.classList.add(\"opened\");\n if (this.dropdown.classList.contains(\"w-full\") && this.dropdownScope === \"window\") this.updateDropdownWidth();\n if (this.popperInstance && this.dropdownScope === \"window\") {\n this.popperInstance.update();\n this.dropdown.classList.remove(\"invisible\");\n }\n if (this.hasSearch && !this.preventSearchFocus) this.search.focus();\n this.animationInProcess = false;\n });\n this.isOpened = true;\n }\n close() {\n if (this.animationInProcess) return false;\n this.animationInProcess = true;\n if (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = \"false\";\n this.wrapper.classList.remove(\"active\");\n this.dropdown.classList.remove(\"opened\", \"bottom-full\", \"top-full\");\n if (this.dropdownDirectionClasses?.bottom) this.dropdown.classList.remove(this.dropdownDirectionClasses.bottom);\n if (this.dropdownDirectionClasses?.top) this.dropdown.classList.remove(this.dropdownDirectionClasses.top);\n this.dropdown.style.marginTop = \"\";\n this.dropdown.style.marginBottom = \"\";\n (0, $cZqAW.afterTransition)(this.dropdown, ()=>{\n this.dropdown.classList.add(\"hidden\");\n if (this.hasSearch) {\n this.search.value = \"\";\n this.search.dispatchEvent(new Event(\"input\", {\n bubbles: true\n }));\n this.search.blur();\n }\n this.animationInProcess = false;\n });\n this.dropdown.querySelector(\".hs-select-option-highlighted\")?.classList.remove(\"hs-select-option-highlighted\");\n this.isOpened = false;\n }\n addOption(items) {\n let i = `${this.selectOptions.length}`;\n const addOption = (option)=>{\n const { title: title, val: val, disabled: disabled, selected: selected, options: options } = option;\n const hasOption = !!this.selectOptions.some((el)=>el.val === val);\n if (!hasOption) {\n this.addSelectOption(title, val, disabled, selected, options);\n this.buildOption(title, val, disabled, selected, options, i);\n this.buildOriginalOption(title, val, null, disabled, selected, options);\n if (selected && !this.isMultiple) this.onSelectOption(val);\n }\n };\n if (Array.isArray(items)) items.forEach((option)=>{\n addOption(option);\n });\n else addOption(items);\n }\n removeOption(values) {\n const removeOption = (val, isArray = false)=>{\n const hasOption = !!this.selectOptions.some((el)=>el.val === val);\n if (hasOption) {\n this.removeSelectOption(val, isArray);\n this.destroyOption(val);\n this.destroyOriginalOption(val);\n if (this.value === val) {\n this.value = null;\n this.eraseToggleTitle();\n this.eraseToggleIcon();\n }\n }\n };\n if (Array.isArray(values)) values.forEach((val)=>{\n removeOption(val, this.isMultiple);\n });\n else removeOption(values, this.isMultiple);\n this.setNewValue();\n }\n recalculateDirection() {\n if ((0, $cZqAW.isEnoughSpace)(this.dropdown, this.toggle || this.tagsInput, \"bottom\", this.dropdownSpace, this.viewport)) {\n this.dropdown.classList.remove(\"bottom-full\");\n if (this.dropdownDirectionClasses?.bottom) this.dropdown.classList.remove(this.dropdownDirectionClasses.bottom);\n this.dropdown.style.marginBottom = \"\";\n this.dropdown.classList.add(\"top-full\");\n if (this.dropdownDirectionClasses?.top) this.dropdown.classList.add(this.dropdownDirectionClasses.top);\n this.dropdown.style.marginTop = `${this.dropdownSpace}px`;\n } else {\n this.dropdown.classList.remove(\"top-full\");\n if (this.dropdownDirectionClasses?.top) this.dropdown.classList.remove(this.dropdownDirectionClasses.top);\n this.dropdown.style.marginTop = \"\";\n this.dropdown.classList.add(\"bottom-full\");\n if (this.dropdownDirectionClasses?.bottom) this.dropdown.classList.add(this.dropdownDirectionClasses.bottom);\n this.dropdown.style.marginBottom = `${this.dropdownSpace}px`;\n }\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsSelectCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsSelectCollection) window.$hsSelectCollection = [];\n document.querySelectorAll(\"[data-hs-select]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsSelectCollection.find((elC)=>elC?.element?.el === el)) {\n const data = el.getAttribute(\"data-hs-select\");\n const options = data ? JSON.parse(data) : {};\n new $d6d8a1cc6d2c85b9$var$HSSelect(el, options);\n }\n });\n if (window.$hsSelectCollection) {\n window.addEventListener(\"click\", (evt)=>{\n const evtTarget = evt.target;\n $d6d8a1cc6d2c85b9$var$HSSelect.closeCurrentlyOpened(evtTarget);\n });\n document.addEventListener(\"keydown\", (evt)=>$d6d8a1cc6d2c85b9$var$HSSelect.accessibility(evt));\n }\n }\n static open(target) {\n const elInCollection = window.$hsSelectCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && !elInCollection.element.isOpened) elInCollection.element.open();\n }\n static close(target) {\n const elInCollection = window.$hsSelectCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection && elInCollection.element.isOpened) elInCollection.element.close();\n }\n static closeCurrentlyOpened(evtTarget = null) {\n if (!evtTarget.closest(\".hs-select.active\") && !evtTarget.closest(\"[data-hs-select-dropdown].opened\")) {\n const currentlyOpened = window.$hsSelectCollection.filter((el)=>el.element.isOpened) || null;\n if (currentlyOpened) currentlyOpened.forEach((el)=>{\n el.element.close();\n });\n }\n }\n // Accessibility methods\n static accessibility(evt) {\n const target = window.$hsSelectCollection.find((el)=>el.element.isOpened);\n if (target && (0, $ef84b720836c77d7$export$717c92bf60493a1c).includes(evt.code) && !evt.metaKey) switch(evt.code){\n case \"Escape\":\n evt.preventDefault();\n this.onEscape();\n break;\n case \"ArrowUp\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onArrow();\n break;\n case \"ArrowDown\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onArrow(false);\n break;\n case \"Tab\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onTab(evt.shiftKey);\n break;\n case \"Home\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onStartEnd();\n break;\n case \"End\":\n evt.preventDefault();\n evt.stopImmediatePropagation();\n this.onStartEnd(false);\n break;\n case \"Enter\":\n evt.preventDefault();\n this.onEnter(evt);\n break;\n default:\n break;\n }\n }\n static onEscape() {\n const target = window.$hsSelectCollection.find((el)=>el.element.isOpened);\n if (target) target.element.close();\n }\n static onArrow(isArrowUp = true) {\n const target = window.$hsSelectCollection.find((el)=>el.element.isOpened);\n if (target) {\n const dropdown = target.element.dropdown;\n if (!dropdown) return false;\n const preparedOptions = isArrowUp ? Array.from(dropdown.querySelectorAll(\":scope > *:not(.hidden)\")).reverse() : Array.from(dropdown.querySelectorAll(\":scope > *:not(.hidden)\"));\n const options = preparedOptions.filter((el)=>!el.classList.contains(\"disabled\"));\n const current = dropdown.querySelector(\".hs-select-option-highlighted\") || dropdown.querySelector(\".selected\");\n if (!current) options[0].classList.add(\"hs-select-option-highlighted\");\n let currentInd = options.findIndex((el)=>el === current);\n if (currentInd + 1 < options.length) currentInd++;\n options[currentInd].focus();\n if (current) current.classList.remove(\"hs-select-option-highlighted\");\n options[currentInd].classList.add(\"hs-select-option-highlighted\");\n }\n }\n static onTab(isArrowUp = true) {\n const target = window.$hsSelectCollection.find((el)=>el.element.isOpened);\n if (target) {\n const dropdown = target.element.dropdown;\n if (!dropdown) return false;\n const preparedOptions = isArrowUp ? Array.from(dropdown.querySelectorAll(\":scope > *:not(.hidden)\")).reverse() : Array.from(dropdown.querySelectorAll(\":scope > *:not(.hidden)\"));\n const options = preparedOptions.filter((el)=>!el.classList.contains(\"disabled\"));\n const current = dropdown.querySelector(\".hs-select-option-highlighted\") || dropdown.querySelector(\".selected\");\n if (!current) options[0].classList.add(\"hs-select-option-highlighted\");\n let currentInd = options.findIndex((el)=>el === current);\n if (currentInd + 1 < options.length) currentInd++;\n else {\n if (current) current.classList.remove(\"hs-select-option-highlighted\");\n target.element.close();\n target.element.toggle.focus();\n return false;\n }\n options[currentInd].focus();\n if (current) current.classList.remove(\"hs-select-option-highlighted\");\n options[currentInd].classList.add(\"hs-select-option-highlighted\");\n }\n }\n static onStartEnd(isStart = true) {\n const target = window.$hsSelectCollection.find((el)=>el.element.isOpened);\n if (target) {\n const dropdown = target.element.dropdown;\n if (!dropdown) return false;\n const preparedOptions = isStart ? Array.from(dropdown.querySelectorAll(\":scope > *:not(.hidden)\")) : Array.from(dropdown.querySelectorAll(\":scope > *:not(.hidden)\")).reverse();\n const options = preparedOptions.filter((el)=>!el.classList.contains(\"disabled\"));\n const current = dropdown.querySelector(\".hs-select-option-highlighted\");\n if (options.length) {\n options[0].focus();\n if (current) current.classList.remove(\"hs-select-option-highlighted\");\n options[0].classList.add(\"hs-select-option-highlighted\");\n }\n }\n }\n static onEnter(evt) {\n const select = evt.target.previousSibling;\n if (window.$hsSelectCollection.find((el)=>el.element.el === select)) {\n const opened = window.$hsSelectCollection.find((el)=>el.element.isOpened);\n const target = window.$hsSelectCollection.find((el)=>el.element.el === select);\n opened.element.close();\n target.element.open();\n } else {\n const target = window.$hsSelectCollection.find((el)=>el.element.isOpened);\n if (target) target.element.onSelectOption(evt.target.dataset.value || \"\");\n }\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $d6d8a1cc6d2c85b9$var$HSSelect.autoInit();\n// Uncomment for debug\n// console.log('Select collection:', window.$hsSelectCollection);\n});\ndocument.addEventListener(\"scroll\", ()=>{\n if (!window.$hsSelectCollection) return false;\n const target = window.$hsSelectCollection.find((el)=>el.element.isOpened);\n if (target) target.element.recalculateDirection();\n});\nif (typeof window !== \"undefined\") window.HSSelect = $d6d8a1cc6d2c85b9$var$HSSelect;\nvar $d6d8a1cc6d2c85b9$export$2e2bcd8739ae039 = $d6d8a1cc6d2c85b9$var$HSSelect;\n\n\n/*\n * HSStepper\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $ca72921c6baabde0$var$HSStepper extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n const data = el.getAttribute(\"data-hs-stepper\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.currentIndex = concatOptions?.currentIndex || 1;\n this.mode = concatOptions?.mode || \"linear\";\n this.isCompleted = typeof concatOptions?.isCompleted !== \"undefined\" ? concatOptions?.isCompleted : false;\n this.totalSteps = 1;\n this.navItems = [];\n this.contentItems = [];\n this.init();\n }\n init() {\n this.createCollection(window.$hsStepperCollection, this);\n this.buildNav();\n this.buildContent();\n this.buildButtons();\n this.setTotalSteps();\n }\n getUncompletedSteps(inIncludedSkipped = false) {\n return this.navItems.filter(({ isCompleted: isCompleted, isSkip: isSkip })=>inIncludedSkipped ? !isCompleted || isSkip : !isCompleted && !isSkip);\n }\n setTotalSteps() {\n this.navItems.forEach((item)=>{\n const { index: index } = item;\n if (index > this.totalSteps) this.totalSteps = index;\n });\n }\n // Nav\n buildNav() {\n this.el.querySelectorAll(\"[data-hs-stepper-nav-item]\").forEach((el)=>this.addNavItem(el));\n this.navItems.forEach((item)=>this.buildNavItem(item));\n }\n buildNavItem(item) {\n const { index: index, isDisabled: isDisabled, el: el } = item;\n if (index === this.currentIndex) this.setCurrentNavItem();\n if (this.mode !== \"linear\" || isDisabled) el.addEventListener(\"click\", ()=>this.handleNavItemClick(item));\n }\n addNavItem(el) {\n const { index: index, isFinal: isFinal = false, isCompleted: isCompleted = false, isSkip: isSkip = false, isOptional: isOptional = false, isDisabled: isDisabled = false, isProcessed: isProcessed = false, hasError: hasError = false } = JSON.parse(el.getAttribute(\"data-hs-stepper-nav-item\"));\n if (isCompleted) el.classList.add(\"success\");\n if (isSkip) el.classList.add(\"skipped\");\n if (isDisabled) {\n if (el.tagName === \"BUTTON\" || el.tagName === \"INPUT\") el.setAttribute(\"disabled\", \"disabled\");\n el.classList.add(\"disabled\");\n }\n if (hasError) el.classList.add(\"error\");\n this.navItems.push({\n index: index,\n isFinal: isFinal,\n isCompleted: isCompleted,\n isSkip: isSkip,\n isOptional: isOptional,\n isDisabled: isDisabled,\n isProcessed: isProcessed,\n hasError: hasError,\n el: el\n });\n }\n setCurrentNavItem() {\n this.navItems.forEach((item)=>{\n const { index: index, el: el } = item;\n if (index === this.currentIndex) this.setCurrentNavItemActions(el);\n else this.unsetCurrentNavItemActions(el);\n });\n }\n setCurrentNavItemActions(el) {\n el.classList.add(\"active\");\n this.fireEvent(\"active\", this.currentIndex);\n (0, $cZqAW.dispatch)(\"active.hs.stepper\", this.el, this.currentIndex);\n }\n getNavItem(n = this.currentIndex) {\n return this.navItems.find(({ index: index })=>index === n);\n }\n setProcessedNavItemActions(item) {\n item.isProcessed = true;\n item.el.classList.add(\"processed\");\n }\n setErrorNavItemActions(item) {\n item.hasError = true;\n item.el.classList.add(\"error\");\n }\n unsetCurrentNavItemActions(el) {\n el.classList.remove(\"active\");\n }\n handleNavItemClick(item) {\n const { index: index } = item;\n this.currentIndex = index;\n this.setCurrentNavItem();\n this.setCurrentContentItem();\n this.checkForTheFirstStep();\n }\n // Content\n buildContent() {\n this.el.querySelectorAll(\"[data-hs-stepper-content-item]\").forEach((el)=>this.addContentItem(el));\n this.navItems.forEach((item)=>this.buildContentItem(item));\n }\n buildContentItem(item) {\n const { index: index } = item;\n if (index === this.currentIndex) this.setCurrentContentItem();\n }\n addContentItem(el) {\n const { index: index, isFinal: isFinal = false, isCompleted: isCompleted = false, isSkip: isSkip = false } = JSON.parse(el.getAttribute(\"data-hs-stepper-content-item\"));\n if (isCompleted) el.classList.add(\"success\");\n if (isSkip) el.classList.add(\"skipped\");\n this.contentItems.push({\n index: index,\n isFinal: isFinal,\n isCompleted: isCompleted,\n isSkip: isSkip,\n el: el\n });\n }\n setCurrentContentItem() {\n if (this.isCompleted) {\n const finalContentItem = this.contentItems.find(({ isFinal: isFinal })=>isFinal);\n const otherContentItems = this.contentItems.filter(({ isFinal: isFinal })=>!isFinal);\n finalContentItem.el.style.display = \"\";\n otherContentItems.forEach(({ el: el })=>el.style.display = \"none\");\n return false;\n }\n this.contentItems.forEach((item)=>{\n const { index: index, el: el } = item;\n if (index === this.currentIndex) this.setCurrentContentItemActions(el);\n else this.unsetCurrentContentItemActions(el);\n });\n }\n hideAllContentItems() {\n this.contentItems.forEach(({ el: el })=>el.style.display = \"none\");\n }\n setCurrentContentItemActions(el) {\n el.style.display = \"\";\n }\n unsetCurrentContentItemActions(el) {\n el.style.display = \"none\";\n }\n disableAll() {\n const currentNavItem = this.getNavItem(this.currentIndex);\n currentNavItem.hasError = false;\n currentNavItem.isCompleted = false;\n currentNavItem.isDisabled = false;\n currentNavItem.el.classList.remove(\"error\", \"success\");\n this.disableButtons();\n }\n disableNavItemActions(item) {\n item.isDisabled = true;\n item.el.classList.add(\"disabled\");\n }\n enableNavItemActions(item) {\n item.isDisabled = false;\n item.el.classList.remove(\"disabled\");\n }\n // Buttons\n buildButtons() {\n this.backBtn = this.el.querySelector(\"[data-hs-stepper-back-btn]\");\n this.nextBtn = this.el.querySelector(\"[data-hs-stepper-next-btn]\");\n this.skipBtn = this.el.querySelector(\"[data-hs-stepper-skip-btn]\");\n this.completeStepBtn = this.el.querySelector(\"[data-hs-stepper-complete-step-btn]\");\n this.finishBtn = this.el.querySelector(\"[data-hs-stepper-finish-btn]\");\n this.resetBtn = this.el.querySelector(\"[data-hs-stepper-reset-btn]\");\n this.buildBackButton();\n this.buildNextButton();\n this.buildSkipButton();\n this.buildCompleteStepButton();\n this.buildFinishButton();\n this.buildResetButton();\n }\n // back\n buildBackButton() {\n if (!this.backBtn) return;\n this.checkForTheFirstStep();\n this.backBtn.addEventListener(\"click\", ()=>{\n this.handleBackButtonClick();\n if (this.mode === \"linear\") {\n const currentNavItem = this.navItems.find(({ index: index })=>index === this.currentIndex);\n const currentContentItem = this.contentItems.find(({ index: index })=>index === this.currentIndex);\n if (!currentNavItem || !currentContentItem) return;\n if (currentNavItem.isCompleted) {\n currentNavItem.isCompleted = false;\n currentNavItem.isSkip = false;\n currentNavItem.el.classList.remove(\"success\", \"skipped\");\n }\n if (currentContentItem.isCompleted) {\n currentContentItem.isCompleted = false;\n currentContentItem.isSkip = false;\n currentContentItem.el.classList.remove(\"success\", \"skipped\");\n }\n if (this.mode === \"linear\" && this.currentIndex !== this.totalSteps) {\n if (this.nextBtn) this.nextBtn.style.display = \"\";\n if (this.completeStepBtn) this.completeStepBtn.style.display = \"\";\n }\n this.showSkipButton();\n this.showFinishButton();\n this.showCompleteStepButton();\n }\n });\n }\n handleBackButtonClick() {\n if (this.currentIndex === 1) return;\n if (this.mode === \"linear\") this.removeOptionalClasses();\n this.currentIndex--;\n if (this.mode === \"linear\") this.removeOptionalClasses();\n this.setCurrentNavItem();\n this.setCurrentContentItem();\n this.checkForTheFirstStep();\n if (this.completeStepBtn) this.changeTextAndDisableCompleteButtonIfStepCompleted();\n this.fireEvent(\"back\", this.currentIndex);\n (0, $cZqAW.dispatch)(\"back.hs.stepper\", this.el, this.currentIndex);\n }\n checkForTheFirstStep() {\n if (this.currentIndex === 1) this.setToDisabled(this.backBtn);\n else this.setToNonDisabled(this.backBtn);\n }\n setToDisabled(el) {\n if (el.tagName === \"BUTTON\" || el.tagName === \"INPUT\") el.setAttribute(\"disabled\", \"disabled\");\n el.classList.add(\"disabled\");\n }\n setToNonDisabled(el) {\n if (el.tagName === \"BUTTON\" || el.tagName === \"INPUT\") el.removeAttribute(\"disabled\");\n el.classList.remove(\"disabled\");\n }\n // next\n buildNextButton() {\n if (!this.nextBtn) return;\n this.nextBtn.addEventListener(\"click\", ()=>{\n this.fireEvent(\"beforeNext\", this.currentIndex);\n (0, $cZqAW.dispatch)(\"beforeNext.hs.stepper\", this.el, this.currentIndex);\n if (this.getNavItem(this.currentIndex)?.isProcessed) {\n this.disableAll();\n return false;\n }\n this.goToNext();\n });\n }\n unsetProcessedNavItemActions(item) {\n item.isProcessed = false;\n item.el.classList.remove(\"processed\");\n }\n handleNextButtonClick(infinite = true) {\n if (infinite) {\n if (this.currentIndex === this.totalSteps) this.currentIndex = 1;\n else this.currentIndex++;\n } else {\n const nonCompletedSteps = this.getUncompletedSteps();\n if (nonCompletedSteps.length === 1) {\n const { index: index } = nonCompletedSteps[0];\n this.currentIndex = index;\n } else {\n if (this.currentIndex === this.totalSteps) return;\n this.currentIndex++;\n }\n }\n if (this.mode === \"linear\") this.removeOptionalClasses();\n this.setCurrentNavItem();\n this.setCurrentContentItem();\n this.checkForTheFirstStep();\n if (this.completeStepBtn) this.changeTextAndDisableCompleteButtonIfStepCompleted();\n this.showSkipButton();\n this.showFinishButton();\n this.showCompleteStepButton();\n this.fireEvent(\"next\", this.currentIndex);\n (0, $cZqAW.dispatch)(\"next.hs.stepper\", this.el, this.currentIndex);\n }\n removeOptionalClasses() {\n const currentNavItem = this.navItems.find(({ index: index })=>index === this.currentIndex);\n const currentContentItem = this.contentItems.find(({ index: index })=>index === this.currentIndex);\n currentNavItem.isSkip = false;\n currentNavItem.hasError = false;\n currentNavItem.isDisabled = false;\n currentContentItem.isSkip = false;\n currentNavItem.el.classList.remove(\"skipped\", \"success\", \"error\");\n currentContentItem.el.classList.remove(\"skipped\", \"success\", \"error\");\n }\n // skip\n buildSkipButton() {\n if (!this.skipBtn) return;\n this.showSkipButton();\n this.skipBtn.addEventListener(\"click\", ()=>{\n this.handleSkipButtonClick();\n if (this.mode === \"linear\" && this.currentIndex === this.totalSteps) {\n if (this.nextBtn) this.nextBtn.style.display = \"none\";\n if (this.completeStepBtn) this.completeStepBtn.style.display = \"none\";\n if (this.finishBtn) this.finishBtn.style.display = \"\";\n }\n });\n }\n setSkipItem(n) {\n const targetNavItem = this.navItems.find(({ index: index })=>index === (n || this.currentIndex));\n const targetContentItem = this.contentItems.find(({ index: index })=>index === (n || this.currentIndex));\n if (!targetNavItem || !targetContentItem) return;\n this.setSkipItemActions(targetNavItem);\n this.setSkipItemActions(targetContentItem);\n }\n setSkipItemActions(item) {\n item.isSkip = true;\n item.el.classList.add(\"skipped\");\n }\n showSkipButton() {\n if (!this.skipBtn) return;\n const { isOptional: isOptional } = this.navItems.find(({ index: index })=>index === this.currentIndex);\n if (isOptional) this.skipBtn.style.display = \"\";\n else this.skipBtn.style.display = \"none\";\n }\n handleSkipButtonClick() {\n this.setSkipItem();\n this.handleNextButtonClick();\n this.fireEvent(\"skip\", this.currentIndex);\n (0, $cZqAW.dispatch)(\"skip.hs.stepper\", this.el, this.currentIndex);\n }\n // complete\n buildCompleteStepButton() {\n if (!this.completeStepBtn) return;\n this.completeStepBtnDefaultText = this.completeStepBtn.innerText;\n this.completeStepBtn.addEventListener(\"click\", ()=>this.handleCompleteStepButtonClick());\n }\n changeTextAndDisableCompleteButtonIfStepCompleted() {\n const currentNavItem = this.navItems.find(({ index: index })=>index === this.currentIndex);\n const { completedText: completedText } = JSON.parse(this.completeStepBtn.getAttribute(\"data-hs-stepper-complete-step-btn\"));\n if (!currentNavItem) return;\n if (currentNavItem.isCompleted) {\n this.completeStepBtn.innerText = completedText || this.completeStepBtnDefaultText;\n this.completeStepBtn.setAttribute(\"disabled\", \"disabled\");\n this.completeStepBtn.classList.add(\"disabled\");\n } else {\n this.completeStepBtn.innerText = this.completeStepBtnDefaultText;\n this.completeStepBtn.removeAttribute(\"disabled\");\n this.completeStepBtn.classList.remove(\"disabled\");\n }\n }\n setCompleteItem(n) {\n const targetNavItem = this.navItems.find(({ index: index })=>index === (n || this.currentIndex));\n const targetContentItem = this.contentItems.find(({ index: index })=>index === (n || this.currentIndex));\n if (!targetNavItem || !targetContentItem) return;\n this.setCompleteItemActions(targetNavItem);\n this.setCompleteItemActions(targetContentItem);\n }\n setCompleteItemActions(item) {\n item.isCompleted = true;\n item.el.classList.add(\"success\");\n }\n showCompleteStepButton() {\n if (!this.completeStepBtn) return;\n const nonCompletedSteps = this.getUncompletedSteps();\n if (nonCompletedSteps.length === 1) this.completeStepBtn.style.display = \"none\";\n else this.completeStepBtn.style.display = \"\";\n }\n handleCompleteStepButtonClick() {\n this.setCompleteItem();\n this.fireEvent(\"complete\", this.currentIndex);\n (0, $cZqAW.dispatch)(\"complete.hs.stepper\", this.el, this.currentIndex);\n this.handleNextButtonClick(false);\n this.showFinishButton();\n this.showCompleteStepButton();\n this.checkForTheFirstStep();\n if (this.completeStepBtn) this.changeTextAndDisableCompleteButtonIfStepCompleted();\n this.showSkipButton();\n }\n // finish\n buildFinishButton() {\n if (!this.finishBtn) return;\n if (this.isCompleted) this.setCompleted();\n this.finishBtn.addEventListener(\"click\", ()=>this.handleFinishButtonClick());\n }\n setCompleted() {\n this.el.classList.add(\"completed\");\n }\n unsetCompleted() {\n this.el.classList.remove(\"completed\");\n }\n showFinishButton() {\n if (!this.finishBtn) return;\n const nonCompletedSteps = this.getUncompletedSteps();\n if (nonCompletedSteps.length === 1) this.finishBtn.style.display = \"\";\n else this.finishBtn.style.display = \"none\";\n }\n handleFinishButtonClick() {\n const uncompletedSteps = this.getUncompletedSteps();\n const uncompletedOrSkipSteps = this.getUncompletedSteps(true);\n const { el: el } = this.contentItems.find(({ isFinal: isFinal })=>isFinal);\n if (uncompletedSteps.length) uncompletedSteps.forEach(({ index: index })=>this.setCompleteItem(index));\n this.currentIndex = this.totalSteps;\n this.setCurrentNavItem();\n this.hideAllContentItems();\n const currentNavItem = this.navItems.find(({ index: index })=>index === this.currentIndex);\n const currentNavItemEl = currentNavItem ? currentNavItem.el : null;\n currentNavItemEl.classList.remove(\"active\");\n el.style.display = \"block\";\n if (this.backBtn) this.backBtn.style.display = \"none\";\n if (this.nextBtn) this.nextBtn.style.display = \"none\";\n if (this.skipBtn) this.skipBtn.style.display = \"none\";\n if (this.completeStepBtn) this.completeStepBtn.style.display = \"none\";\n if (this.finishBtn) this.finishBtn.style.display = \"none\";\n if (this.resetBtn) this.resetBtn.style.display = \"\";\n if (uncompletedOrSkipSteps.length <= 1) {\n this.isCompleted = true;\n this.setCompleted();\n }\n this.fireEvent(\"finish\", this.currentIndex);\n (0, $cZqAW.dispatch)(\"finish.hs.stepper\", this.el, this.currentIndex);\n }\n // reset\n buildResetButton() {\n if (!this.resetBtn) return;\n this.resetBtn.addEventListener(\"click\", ()=>this.handleResetButtonClick());\n }\n handleResetButtonClick() {\n if (this.backBtn) this.backBtn.style.display = \"\";\n if (this.nextBtn) this.nextBtn.style.display = \"\";\n if (this.completeStepBtn) {\n this.completeStepBtn.style.display = \"\";\n this.completeStepBtn.innerText = this.completeStepBtnDefaultText;\n this.completeStepBtn.removeAttribute(\"disabled\");\n this.completeStepBtn.classList.remove(\"disabled\");\n }\n if (this.resetBtn) this.resetBtn.style.display = \"none\";\n this.navItems.forEach((item)=>{\n const { el: el } = item;\n item.isSkip = false;\n item.isCompleted = false;\n this.unsetCurrentNavItemActions(el);\n el.classList.remove(\"success\", \"skipped\");\n });\n this.contentItems.forEach((item)=>{\n const { el: el } = item;\n item.isSkip = false;\n item.isCompleted = false;\n this.unsetCurrentContentItemActions(el);\n el.classList.remove(\"success\", \"skipped\");\n });\n this.currentIndex = 1;\n this.unsetCompleted();\n this.isCompleted = false;\n this.setCurrentNavItem();\n this.setCurrentContentItem();\n this.showFinishButton();\n this.showCompleteStepButton();\n this.checkForTheFirstStep();\n this.fireEvent(\"reset\", this.currentIndex);\n (0, $cZqAW.dispatch)(\"reset.hs.stepper\", this.el, this.currentIndex);\n }\n // Public methods\n setProcessedNavItem(n) {\n const targetNavItem = this.getNavItem(n);\n if (!targetNavItem) return;\n this.setProcessedNavItemActions(targetNavItem);\n }\n unsetProcessedNavItem(n) {\n const targetNavItem = this.getNavItem(n);\n if (!targetNavItem) return;\n this.unsetProcessedNavItemActions(targetNavItem);\n }\n goToNext() {\n if (this.mode === \"linear\") this.setCompleteItem();\n this.handleNextButtonClick(this.mode !== \"linear\");\n if (this.mode === \"linear\" && this.currentIndex === this.totalSteps) {\n if (this.nextBtn) this.nextBtn.style.display = \"none\";\n if (this.completeStepBtn) this.completeStepBtn.style.display = \"none\";\n }\n }\n disableButtons() {\n if (this.backBtn) this.setToDisabled(this.backBtn);\n if (this.nextBtn) this.setToDisabled(this.nextBtn);\n }\n enableButtons() {\n if (this.backBtn) this.setToNonDisabled(this.backBtn);\n if (this.nextBtn) this.setToNonDisabled(this.nextBtn);\n }\n setErrorNavItem(n) {\n const targetNavItem = this.getNavItem(n);\n if (!targetNavItem) return;\n this.setErrorNavItemActions(targetNavItem);\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsStepperCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsStepperCollection) window.$hsStepperCollection = [];\n document.querySelectorAll(\"[data-hs-stepper]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsStepperCollection.find((elC)=>elC?.element?.el === el)) new $ca72921c6baabde0$var$HSStepper(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $ca72921c6baabde0$var$HSStepper.autoInit();\n// Uncomment for debug\n// console.log('Stepper collection:', window.$hsStepperCollection);\n});\nif (typeof window !== \"undefined\") window.HSStepper = $ca72921c6baabde0$var$HSStepper;\nvar $ca72921c6baabde0$export$2e2bcd8739ae039 = $ca72921c6baabde0$var$HSStepper;\n\n\n/*\n * HSStrongPassword\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $2cda32f4cf75835b$var$HSStrongPassword extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n this.isOpened = false;\n this.strength = 0;\n this.passedRules = new Set();\n const data = el.getAttribute(\"data-hs-strong-password\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.target = concatOptions?.target ? typeof concatOptions?.target === \"string\" ? document.querySelector(concatOptions.target) : concatOptions.target : null;\n this.hints = concatOptions?.hints ? typeof concatOptions?.hints === \"string\" ? document.querySelector(concatOptions.hints) : concatOptions.hints : null;\n this.stripClasses = concatOptions?.stripClasses || null;\n this.minLength = concatOptions?.minLength || 6;\n this.mode = concatOptions?.mode || \"default\";\n this.popoverSpace = concatOptions?.popoverSpace || 10;\n this.checksExclude = concatOptions?.checksExclude || [];\n this.availableChecks = [\n \"lowercase\",\n \"uppercase\",\n \"numbers\",\n \"special-characters\",\n \"min-length\"\n ].filter((el)=>!this.checksExclude.includes(el));\n this.specialCharactersSet = concatOptions?.specialCharactersSet || \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\\\\\\\\\]^_`{|}~\";\n if (this.target) this.init();\n }\n init() {\n this.createCollection(window.$hsStrongPasswordCollection, this);\n if (this.availableChecks.length) this.build();\n }\n build() {\n this.buildStrips();\n if (this.hints) this.buildHints();\n this.setStrength(this.target.value);\n this.target.addEventListener(\"input\", (evt)=>{\n this.setStrength(evt.target.value);\n });\n }\n buildStrips() {\n this.el.innerHTML = \"\";\n if (this.stripClasses) for(let i = 0; i < this.availableChecks.length; i++){\n const newStrip = (0, $cZqAW.htmlToElement)(\"
\");\n (0, $cZqAW.classToClassList)(this.stripClasses, newStrip);\n this.el.append(newStrip);\n }\n }\n buildHints() {\n this.weakness = this.hints.querySelector(\"[data-hs-strong-password-hints-weakness-text]\") || null;\n this.rules = Array.from(this.hints.querySelectorAll(\"[data-hs-strong-password-hints-rule-text]\")) || null;\n this.rules.forEach((rule)=>{\n const ruleValue = rule.getAttribute(\"data-hs-strong-password-hints-rule-text\");\n if (this.checksExclude?.includes(ruleValue)) rule.remove();\n });\n if (this.weakness) this.buildWeakness();\n if (this.rules) this.buildRules();\n if (this.mode === \"popover\") {\n this.target.addEventListener(\"focus\", ()=>{\n this.isOpened = true;\n this.hints.classList.remove(\"hidden\");\n this.hints.classList.add(\"block\");\n this.recalculateDirection();\n });\n this.target.addEventListener(\"blur\", ()=>{\n this.isOpened = false;\n this.hints.classList.remove(\"block\", \"bottom-full\", \"top-full\");\n this.hints.classList.add(\"hidden\");\n this.hints.style.marginTop = \"\";\n this.hints.style.marginBottom = \"\";\n });\n }\n }\n buildWeakness() {\n this.checkStrength(this.target.value);\n this.setWeaknessText();\n this.target.addEventListener(\"input\", ()=>setTimeout(()=>this.setWeaknessText()));\n }\n buildRules() {\n this.setRulesText();\n this.target.addEventListener(\"input\", ()=>setTimeout(()=>this.setRulesText()));\n }\n setWeaknessText() {\n const weaknessText = this.weakness.getAttribute(\"data-hs-strong-password-hints-weakness-text\");\n const weaknessTextToJson = JSON.parse(weaknessText);\n this.weakness.textContent = weaknessTextToJson[this.strength];\n }\n setRulesText() {\n this.rules.forEach((rule)=>{\n const ruleValue = rule.getAttribute(\"data-hs-strong-password-hints-rule-text\");\n this.checkIfPassed(rule, this.passedRules.has(ruleValue));\n });\n }\n togglePopover() {\n const popover = this.el.querySelector(\".popover\");\n if (popover) popover.classList.toggle(\"show\");\n }\n checkStrength(val) {\n const passedRules = new Set();\n const regexps = {\n lowercase: /[a-z]+/,\n uppercase: /[A-Z]+/,\n numbers: /[0-9]+/,\n \"special-characters\": new RegExp(`[${this.specialCharactersSet}]`)\n };\n let strength = 0;\n if (this.availableChecks.includes(\"lowercase\") && val.match(regexps[\"lowercase\"])) {\n strength += 1;\n passedRules.add(\"lowercase\");\n }\n if (this.availableChecks.includes(\"uppercase\") && val.match(regexps[\"uppercase\"])) {\n strength += 1;\n passedRules.add(\"uppercase\");\n }\n if (this.availableChecks.includes(\"numbers\") && val.match(regexps[\"numbers\"])) {\n strength += 1;\n passedRules.add(\"numbers\");\n }\n if (this.availableChecks.includes(\"special-characters\") && val.match(regexps[\"special-characters\"])) {\n strength += 1;\n passedRules.add(\"special-characters\");\n }\n if (this.availableChecks.includes(\"min-length\") && val.length >= this.minLength) {\n strength += 1;\n passedRules.add(\"min-length\");\n }\n if (!val.length) strength = 0;\n if (strength === this.availableChecks.length) this.el.classList.add(\"accepted\");\n else this.el.classList.remove(\"accepted\");\n this.strength = strength;\n this.passedRules = passedRules;\n return {\n strength: this.strength,\n rules: this.passedRules\n };\n }\n checkIfPassed(el, isRulePassed = false) {\n const check = el.querySelector(\"[data-check]\");\n const uncheck = el.querySelector(\"[data-uncheck]\");\n if (isRulePassed) {\n el.classList.add(\"active\");\n check.classList.remove(\"hidden\");\n uncheck.classList.add(\"hidden\");\n } else {\n el.classList.remove(\"active\");\n check.classList.add(\"hidden\");\n uncheck.classList.remove(\"hidden\");\n }\n }\n setStrength(val) {\n const { strength: strength, rules: rules } = this.checkStrength(val);\n const payload = {\n strength: strength,\n rules: rules\n };\n this.hideStrips(strength);\n this.fireEvent(\"change\", payload);\n (0, $cZqAW.dispatch)(\"change.hs.strongPassword\", this.el, payload);\n }\n hideStrips(qty) {\n Array.from(this.el.children).forEach((el, i)=>{\n if (i < qty) el.classList.add(\"passed\");\n else el.classList.remove(\"passed\");\n });\n }\n // Public methods\n recalculateDirection() {\n if ((0, $cZqAW.isEnoughSpace)(this.hints, this.target, \"bottom\", this.popoverSpace)) {\n this.hints.classList.remove(\"bottom-full\");\n this.hints.classList.add(\"top-full\");\n this.hints.style.marginBottom = \"\";\n this.hints.style.marginTop = `${this.popoverSpace}px`;\n } else {\n this.hints.classList.remove(\"top-full\");\n this.hints.classList.add(\"bottom-full\");\n this.hints.style.marginTop = \"\";\n this.hints.style.marginBottom = `${this.popoverSpace}px`;\n }\n }\n // Static methods\n static getInstance(target) {\n const elInCollection = window.$hsStrongPasswordCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsStrongPasswordCollection) window.$hsStrongPasswordCollection = [];\n document.querySelectorAll(\"[data-hs-strong-password]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsStrongPasswordCollection.find((elC)=>elC?.element?.el === el)) {\n const data = el.getAttribute(\"data-hs-strong-password\");\n const options = data ? JSON.parse(data) : {};\n new $2cda32f4cf75835b$var$HSStrongPassword(el, options);\n }\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $2cda32f4cf75835b$var$HSStrongPassword.autoInit();\n// Uncomment for debug\n// console.log('Strong password collection:', window.$hsStrongPasswordCollection);\n});\ndocument.addEventListener(\"scroll\", ()=>{\n if (!window.$hsStrongPasswordCollection) return false;\n const target = window.$hsStrongPasswordCollection.find((el)=>el.element.isOpened);\n if (target) target.element.recalculateDirection();\n});\nif (typeof window !== \"undefined\") window.HSStrongPassword = $2cda32f4cf75835b$var$HSStrongPassword;\nvar $2cda32f4cf75835b$export$2e2bcd8739ae039 = $2cda32f4cf75835b$var$HSStrongPassword;\n\n\n/*\n * HSTabs\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\n\nclass $c9620caaf893c52f$var$HSTabs extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n this.toggles = this.el.querySelectorAll(\"[data-hs-tab]\");\n this.extraToggleId = this.el.getAttribute(\"data-hs-tab-select\");\n this.extraToggle = document.querySelector(this.extraToggleId);\n this.current = Array.from(this.toggles).find((el)=>el.classList.contains(\"active\"));\n this.currentContentId = this.current.getAttribute(\"data-hs-tab\");\n this.currentContent = document.querySelector(this.currentContentId);\n this.prev = null;\n this.prevContentId = null;\n this.prevContent = null;\n this.init();\n }\n init() {\n this.createCollection(window.$hsTabsCollection, this);\n this.toggles.forEach((el)=>{\n el.addEventListener(\"click\", ()=>this.open(el));\n });\n if (this.extraToggle) this.extraToggle.addEventListener(\"change\", (evt)=>this.change(evt));\n }\n open(el) {\n this.prev = this.current;\n this.prevContentId = this.currentContentId;\n this.prevContent = this.currentContent;\n this.current = el;\n this.currentContentId = this.current.getAttribute(\"data-hs-tab\");\n this.currentContent = document.querySelector(this.currentContentId);\n if (this?.prev?.ariaSelected) this.prev.ariaSelected = \"false\";\n this.prev.classList.remove(\"active\");\n this.prevContent.classList.add(\"hidden\");\n if (this?.current?.ariaSelected) this.current.ariaSelected = \"true\";\n this.current.classList.add(\"active\");\n this.currentContent.classList.remove(\"hidden\");\n this.fireEvent(\"change\", {\n el: el,\n prev: this.prevContentId,\n current: this.currentContentId\n });\n (0, $cZqAW.dispatch)(\"change.hs.tab\", el, {\n el: el,\n prev: this.prevContentId,\n current: this.currentContentId\n });\n }\n change(evt) {\n const toggle = document.querySelector(`[data-hs-tab=\"${evt.target.value}\"]`);\n if (toggle) toggle.click();\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsTabsCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsTabsCollection) window.$hsTabsCollection = [];\n document.querySelectorAll('[role=\"tablist\"]:not(select):not(.--prevent-on-load-init)').forEach((el)=>{\n if (!window.$hsTabsCollection.find((elC)=>elC?.element?.el === el)) new $c9620caaf893c52f$var$HSTabs(el);\n });\n if (window.$hsTabsCollection) document.addEventListener(\"keydown\", (evt)=>$c9620caaf893c52f$var$HSTabs.accessibility(evt));\n }\n static open(target) {\n const elInCollection = window.$hsTabsCollection.find((el)=>Array.from(el.element.toggles).includes(typeof target === \"string\" ? document.querySelector(target) : target));\n const targetInCollection = Array.from(elInCollection.element.toggles).find((el)=>el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (targetInCollection && !targetInCollection.classList.contains(\"active\")) elInCollection.element.open(targetInCollection);\n }\n // Accessibility methods\n static accessibility(evt) {\n const target = document.querySelector(\"[data-hs-tab]:focus\");\n if (target && (0, $ef84b720836c77d7$export$8c1058a58d2daf41).includes(evt.code) && !evt.metaKey) {\n const isVertical = target.closest('[role=\"tablist\"]').getAttribute(\"data-hs-tabs-vertical\");\n evt.preventDefault();\n switch(evt.code){\n case isVertical === \"true\" ? \"ArrowUp\" : \"ArrowLeft\":\n this.onArrow();\n break;\n case isVertical === \"true\" ? \"ArrowDown\" : \"ArrowRight\":\n this.onArrow(false);\n break;\n case \"Home\":\n this.onStartEnd();\n break;\n case \"End\":\n this.onStartEnd(false);\n break;\n default:\n break;\n }\n }\n }\n static onArrow(isOpposite = true) {\n const target = document.querySelector(\"[data-hs-tab]:focus\").closest('[role=\"tablist\"]');\n const targetInCollection = window.$hsTabsCollection.find((el)=>el.element.el === target);\n if (targetInCollection) {\n const toggles = isOpposite ? Array.from(targetInCollection.element.toggles).reverse() : Array.from(targetInCollection.element.toggles);\n const focused = toggles.find((el)=>document.activeElement === el);\n let focusedInd = toggles.findIndex((el)=>el === focused);\n focusedInd = focusedInd + 1 < toggles.length ? focusedInd + 1 : 0;\n toggles[focusedInd].focus();\n toggles[focusedInd].click();\n }\n }\n static onStartEnd(isOpposite = true) {\n const target = document.querySelector(\"[data-hs-tab]:focus\").closest('[role=\"tablist\"]');\n const targetInCollection = window.$hsTabsCollection.find((el)=>el.element.el === target);\n if (targetInCollection) {\n const toggles = isOpposite ? Array.from(targetInCollection.element.toggles) : Array.from(targetInCollection.element.toggles).reverse();\n if (toggles.length) {\n toggles[0].focus();\n toggles[0].click();\n }\n }\n }\n // Backward compatibility\n static on(evt, target, cb) {\n const elInCollection = window.$hsTabsCollection.find((el)=>Array.from(el.element.toggles).includes(typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) elInCollection.element.events[evt] = cb;\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $c9620caaf893c52f$var$HSTabs.autoInit();\n// Uncomment for debug\n// console.log('Tabs collection:', window.$hsTabsCollection);\n});\nif (typeof window !== \"undefined\") window.HSTabs = $c9620caaf893c52f$var$HSTabs;\nvar $c9620caaf893c52f$export$2e2bcd8739ae039 = $c9620caaf893c52f$var$HSTabs;\n\n\n/*\n * HSTextareaAutoHeight\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $luwGm = parcelRequire(\"luwGm\");\nclass $0879d3d9a278de7e$var$HSTextareaAutoHeight extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n const data = el.getAttribute(\"data-hs-copy-markup\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.defaultHeight = concatOptions?.defaultHeight || 0;\n this.init();\n }\n init() {\n this.createCollection(window.$hsTextareaAutoHeightCollection, this);\n this.setAutoHeight();\n }\n setAutoHeight() {\n if (this.isParentHidden()) this.callbackAccordingToType();\n else this.textareaSetHeight(3);\n this.el.addEventListener(\"input\", ()=>this.textareaSetHeight(3));\n }\n textareaSetHeight(offsetTop = 0) {\n this.el.style.height = \"auto\";\n this.el.style.height = this.checkIfOneLine() && this.defaultHeight ? `${this.defaultHeight}px` : `${this.el.scrollHeight + offsetTop}px`;\n }\n checkIfOneLine() {\n const clientHeight = this.el.clientHeight;\n const scrollHeight = this.el.scrollHeight;\n if (scrollHeight > clientHeight) return false;\n else return true;\n }\n isParentHidden() {\n return this.el.closest(\".hs-collapse\") || this.el.closest(\".hs-overlay\");\n }\n parentType() {\n if (this.el.closest(\".hs-collapse\")) return \"collapse\";\n else if (this.el.closest(\".hs-overlay\")) return \"overlay\";\n else return false;\n }\n callbackAccordingToType() {\n if (this.parentType() === \"collapse\") {\n const collapseId = this.el.closest(\".hs-collapse\").id;\n const { element: element } = window.HSCollapse.getInstance(`[data-hs-collapse=\"#${collapseId}\"]`, true);\n element.on(\"beforeOpen\", ()=>{\n if (!this.el) return false;\n this.textareaSetHeight(3);\n });\n } else if (this.parentType() === \"overlay\") {\n const { element: element } = window.HSOverlay.getInstance(this.el.closest(\".hs-overlay\"), true);\n element.on(\"open\", ()=>{\n if (!this.el) return false;\n this.textareaSetHeight(3);\n });\n } else return false;\n }\n // Static method\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsTextareaAutoHeightCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsTextareaAutoHeightCollection) window.$hsTextareaAutoHeightCollection = [];\n document.querySelectorAll(\"[data-hs-textarea-auto-height]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsTextareaAutoHeightCollection.find((elC)=>elC?.element?.el === el)) {\n const data = el.getAttribute(\"data-hs-textarea-auto-height\");\n const options = data ? JSON.parse(data) : {};\n new $0879d3d9a278de7e$var$HSTextareaAutoHeight(el, options);\n }\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $0879d3d9a278de7e$var$HSTextareaAutoHeight.autoInit();\n// Uncomment for debug\n// console.log('Textarea Autoheight collection:', window.$hsTextareaAutoHeightCollection);\n});\nif (typeof window !== \"undefined\") window.HSTextareaAutoHeight = $0879d3d9a278de7e$var$HSTextareaAutoHeight;\nvar $0879d3d9a278de7e$export$2e2bcd8739ae039 = $0879d3d9a278de7e$var$HSTextareaAutoHeight;\n\n\n/*\n * HSThemeSwitch\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $luwGm = parcelRequire(\"luwGm\");\nclass $4ef230b80928ed4d$var$HSThemeSwitch extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n const data = el.getAttribute(\"data-hs-theme-switch\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.theme = concatOptions?.theme || localStorage.getItem(\"hs_theme\") || \"default\";\n this.themeSet = [\n \"light\",\n \"dark\",\n \"default\"\n ];\n this.init();\n }\n init() {\n this.createCollection(window.$hsThemeSwitchCollection, this);\n if (this.theme !== \"default\") this.setAppearance();\n }\n setResetStyles() {\n const style = document.createElement(\"style\");\n style.innerText = `*{transition: unset !important;}`;\n style.setAttribute(\"data-hs-appearance-onload-styles\", \"\");\n document.head.appendChild(style);\n return style;\n }\n addSystemThemeObserver() {\n window.matchMedia(\"(prefers-color-scheme: dark)\").addEventListener(\"change\", ({ matches: matches })=>{\n if (matches) this.setAppearance(\"dark\", false);\n else this.setAppearance(\"default\", false);\n });\n }\n removeSystemThemeObserver() {\n window.matchMedia(\"(prefers-color-scheme: dark)\").removeEventListener;\n }\n // Public methods\n setAppearance(theme = this.theme, isSaveToLocalStorage = true, isSetDispatchEvent = true) {\n const html = document.querySelector(\"html\");\n const resetStyles = this.setResetStyles();\n if (isSaveToLocalStorage) localStorage.setItem(\"hs_theme\", theme);\n if (theme === \"auto\") theme = window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"default\";\n html.classList.remove(\"light\", \"dark\", \"default\", \"auto\");\n html.classList.add(theme);\n setTimeout(()=>resetStyles.remove());\n if (isSetDispatchEvent) window.dispatchEvent(new CustomEvent(\"on-hs-appearance-change\", {\n detail: theme\n }));\n }\n // Static methods\n static getInstance(target) {\n const elInCollection = window.$hsThemeSwitchCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsThemeSwitchCollection) window.$hsThemeSwitchCollection = [];\n const toggleObserveSystemTheme = (el)=>{\n if (localStorage.getItem(\"hs_theme\") === \"auto\") el.addSystemThemeObserver();\n else el.removeSystemThemeObserver();\n };\n document.querySelectorAll(\"[data-hs-theme-switch]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsThemeSwitchCollection.find((elC)=>elC?.element?.el === el)) {\n const switchTheme = new $4ef230b80928ed4d$var$HSThemeSwitch(el);\n switchTheme.el.checked = switchTheme.theme === \"dark\";\n toggleObserveSystemTheme(switchTheme);\n switchTheme.el.addEventListener(\"change\", (evt)=>{\n const theme = evt.target.checked ? \"dark\" : \"default\";\n switchTheme.setAppearance(theme);\n toggleObserveSystemTheme(switchTheme);\n });\n }\n });\n document.querySelectorAll(\"[data-hs-theme-click-value]:not(.--prevent-on-load-init)\").forEach((el)=>{\n const theme = el.getAttribute(\"data-hs-theme-click-value\");\n const switchTheme = new $4ef230b80928ed4d$var$HSThemeSwitch(el);\n toggleObserveSystemTheme(switchTheme);\n switchTheme.el.addEventListener(\"click\", ()=>{\n switchTheme.setAppearance(theme);\n toggleObserveSystemTheme(switchTheme);\n });\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $4ef230b80928ed4d$var$HSThemeSwitch.autoInit();\n// Uncomment for debug\n// console.log('Theme switch collection:', window.$hsThemeSwitchCollection);\n});\nif (window.$hsThemeSwitchCollection) window.addEventListener(\"on-hs-appearance-change\", (evt)=>{\n window.$hsThemeSwitchCollection.forEach((el)=>{\n el.element.el.checked = evt.detail === \"dark\";\n });\n});\nif (typeof window !== \"undefined\") window.HSThemeSwitch = $4ef230b80928ed4d$var$HSThemeSwitch;\nvar $4ef230b80928ed4d$export$2e2bcd8739ae039 = $4ef230b80928ed4d$var$HSThemeSwitch;\n\n\n/*\n * HSToggleCount\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $luwGm = parcelRequire(\"luwGm\");\nclass $e826521c98ea9aeb$var$HSToggleCount extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n const data = el.getAttribute(\"data-hs-toggle-count\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.target = concatOptions?.target ? typeof concatOptions?.target === \"string\" ? document.querySelector(concatOptions.target) : concatOptions.target : null;\n this.min = concatOptions?.min || 0;\n this.max = concatOptions?.max || 0;\n this.duration = concatOptions?.duration || 700;\n this.isChecked = this.target.checked || false;\n if (this.target) this.init();\n }\n init() {\n this.createCollection(window.$hsToggleCountCollection, this);\n if (this.isChecked) this.el.innerText = String(this.max);\n this.target.addEventListener(\"change\", ()=>{\n this.isChecked = !this.isChecked;\n this.toggle();\n });\n }\n toggle() {\n if (this.isChecked) this.countUp();\n else this.countDown();\n }\n animate(from, to) {\n let startTimestamp = 0;\n const step = (timestamp)=>{\n if (!startTimestamp) startTimestamp = timestamp;\n const progress = Math.min((timestamp - startTimestamp) / this.duration, 1);\n this.el.innerText = String(Math.floor(progress * (to - from) + from));\n if (progress < 1) window.requestAnimationFrame(step);\n };\n window.requestAnimationFrame(step);\n }\n // Public methods\n countUp() {\n this.animate(this.min, this.max);\n }\n countDown() {\n this.animate(this.max, this.min);\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsToggleCountCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsToggleCountCollection) window.$hsToggleCountCollection = [];\n document.querySelectorAll(\"[data-hs-toggle-count]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsToggleCountCollection.find((elC)=>elC?.element?.el === el)) new $e826521c98ea9aeb$var$HSToggleCount(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $e826521c98ea9aeb$var$HSToggleCount.autoInit();\n// Uncomment for debug\n// console.log('Toggle count collection:', window.$hsToggleCountCollection);\n});\nif (typeof window !== \"undefined\") window.HSToggleCount = $e826521c98ea9aeb$var$HSToggleCount;\nvar $e826521c98ea9aeb$export$2e2bcd8739ae039 = $e826521c98ea9aeb$var$HSToggleCount;\n\n\n/*\n * HSTogglePassword\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $009472fb1980a140$var$HSTogglePassword extends (0, $luwGm.default) {\n constructor(el, options){\n super(el, options);\n const data = el.getAttribute(\"data-hs-toggle-password\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n const targets = [];\n if (concatOptions?.target && typeof concatOptions?.target === \"string\") {\n const ids = concatOptions?.target.split(\",\");\n ids.forEach((id)=>{\n targets.push(document.querySelector(id));\n });\n } else if (concatOptions?.target && typeof concatOptions?.target === \"object\") concatOptions.target.forEach((el)=>targets.push(document.querySelector(el)));\n else concatOptions.target.forEach((el)=>targets.push(el));\n this.target = targets;\n this.isShown = this.el.hasAttribute(\"type\") ? this.el.checked : false;\n this.eventType = (0, $cZqAW.isFormElement)(this.el) ? \"change\" : \"click\";\n this.isMultiple = this.target.length > 1 && !!this.el.closest(\"[data-hs-toggle-password-group]\");\n if (this.target) this.init();\n }\n init() {\n this.createCollection(window.$hsTogglePasswordCollection, this);\n if (!this.isShown) this.hide();\n else this.show();\n this.el.addEventListener(this.eventType, ()=>{\n if (this.isShown) this.hide();\n else this.show();\n this.fireEvent(\"toggle\", this.target);\n (0, $cZqAW.dispatch)(\"toggle.hs.toggle-select\", this.el, this.target);\n });\n }\n getMultipleToggles() {\n const group = this.el.closest(\"[data-hs-toggle-password-group]\");\n const toggles = group.querySelectorAll(\"[data-hs-toggle-password]\");\n const togglesInCollection = [];\n toggles.forEach((el)=>{\n togglesInCollection.push($009472fb1980a140$var$HSTogglePassword.getInstance(el));\n });\n return togglesInCollection;\n }\n // Public methods\n show() {\n if (this.isMultiple) {\n const toggles = this.getMultipleToggles();\n toggles.forEach((el)=>el ? el.isShown = true : false);\n this.el.closest(\"[data-hs-toggle-password-group]\").classList.add(\"active\");\n } else {\n this.isShown = true;\n this.el.classList.add(\"active\");\n }\n this.target.forEach((el)=>{\n el.type = \"text\";\n });\n }\n hide() {\n if (this.isMultiple) {\n const toggles = this.getMultipleToggles();\n toggles.forEach((el)=>el ? el.isShown = false : false);\n this.el.closest(\"[data-hs-toggle-password-group]\").classList.remove(\"active\");\n } else {\n this.isShown = false;\n this.el.classList.remove(\"active\");\n }\n this.target.forEach((el)=>{\n el.type = \"password\";\n });\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsTogglePasswordCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element : null;\n }\n static autoInit() {\n if (!window.$hsTogglePasswordCollection) window.$hsTogglePasswordCollection = [];\n document.querySelectorAll(\"[data-hs-toggle-password]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsTogglePasswordCollection.find((elC)=>elC?.element?.el === el)) new $009472fb1980a140$var$HSTogglePassword(el);\n });\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $009472fb1980a140$var$HSTogglePassword.autoInit();\n// Uncomment for debug\n// console.log('Toggle password collection:', window.$hsTogglePasswordCollection);\n});\nif (typeof window !== \"undefined\") window.HSTogglePassword = $009472fb1980a140$var$HSTogglePassword;\nvar $009472fb1980a140$export$2e2bcd8739ae039 = $009472fb1980a140$var$HSTogglePassword;\n\n\n/*\n * HSTooltip\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \n\nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\n\nclass $b9c4451e4a0a64db$var$HSTooltip extends (0, $luwGm.default) {\n constructor(el, options, events){\n super(el, options, events);\n if (this.el) {\n this.toggle = this.el.querySelector(\".hs-tooltip-toggle\") || this.el;\n this.content = this.el.querySelector(\".hs-tooltip-content\");\n this.eventMode = (0, $cZqAW.getClassProperty)(this.el, \"--trigger\") || \"hover\";\n this.preventPopper = (0, $cZqAW.getClassProperty)(this.el, \"--prevent-popper\", \"false\");\n this.placement = (0, $cZqAW.getClassProperty)(this.el, \"--placement\");\n this.strategy = (0, $cZqAW.getClassProperty)(this.el, \"--strategy\");\n }\n if (this.el && this.toggle && this.content) this.init();\n }\n init() {\n this.createCollection(window.$hsTooltipCollection, this);\n if (this.eventMode === \"click\") this.toggle.addEventListener(\"click\", ()=>this.click());\n else if (this.eventMode === \"focus\") this.toggle.addEventListener(\"click\", ()=>this.focus());\n else if (this.eventMode === \"hover\") {\n this.toggle.addEventListener(\"mouseenter\", ()=>this.enter());\n this.toggle.addEventListener(\"mouseleave\", ()=>this.leave());\n }\n if (this.preventPopper === \"false\") this.buildPopper();\n }\n enter() {\n this.show();\n }\n leave() {\n this.hide();\n }\n click() {\n if (this.el.classList.contains(\"show\")) return false;\n this.show();\n const handle = ()=>{\n setTimeout(()=>{\n this.hide();\n this.toggle.removeEventListener(\"click\", handle, true);\n this.toggle.removeEventListener(\"blur\", handle, true);\n });\n };\n this.toggle.addEventListener(\"click\", handle, true);\n this.toggle.addEventListener(\"blur\", handle, true);\n }\n focus() {\n this.show();\n const handle = ()=>{\n this.hide();\n this.toggle.removeEventListener(\"blur\", handle, true);\n };\n this.toggle.addEventListener(\"blur\", handle, true);\n }\n buildPopper() {\n this.popperInstance = (0, $288fbeb449f53487$export$8f7491d57c8f97a9)(this.toggle, this.content, {\n placement: (0, $ef84b720836c77d7$export$1a1f61c9c4dd9df0)[this.placement] || \"top\",\n strategy: this.strategy || \"fixed\",\n modifiers: [\n {\n name: \"offset\",\n options: {\n offset: [\n 0,\n 5\n ]\n }\n }\n ]\n });\n }\n // Public methods\n show() {\n this.content.classList.remove(\"hidden\");\n if (this.preventPopper === \"false\") {\n this.popperInstance.setOptions((options)=>({\n ...options,\n modifiers: [\n ...options.modifiers,\n {\n name: \"eventListeners\",\n enabled: true\n }\n ]\n }));\n this.popperInstance.update();\n }\n setTimeout(()=>{\n this.el.classList.add(\"show\");\n this.fireEvent(\"show\", this.el);\n (0, $cZqAW.dispatch)(\"show.hs.tooltip\", this.el, this.el);\n });\n }\n hide() {\n this.el.classList.remove(\"show\");\n if (this.preventPopper === \"false\") this.popperInstance.setOptions((options)=>({\n ...options,\n modifiers: [\n ...options.modifiers,\n {\n name: \"eventListeners\",\n enabled: false\n }\n ]\n }));\n this.fireEvent(\"hide\", this.el);\n (0, $cZqAW.dispatch)(\"hide.hs.tooltip\", this.el, this.el);\n (0, $cZqAW.afterTransition)(this.content, ()=>{\n if (this.el.classList.contains(\"show\")) return false;\n this.content.classList.add(\"hidden\");\n });\n }\n // Static methods\n static getInstance(target, isInstance = false) {\n const elInCollection = window.$hsTooltipCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static autoInit() {\n if (!window.$hsTooltipCollection) window.$hsTooltipCollection = [];\n document.querySelectorAll(\".hs-tooltip\").forEach((el)=>{\n if (!window.$hsTooltipCollection.find((elC)=>elC?.element?.el === el)) new $b9c4451e4a0a64db$var$HSTooltip(el);\n });\n }\n static show(target) {\n const elInCollection = window.$hsTooltipCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) switch(elInCollection.element.eventMode){\n case \"click\":\n elInCollection.element.click();\n break;\n case \"focus\":\n elInCollection.element.focus();\n break;\n default:\n elInCollection.element.enter();\n break;\n }\n }\n static hide(target) {\n const elInCollection = window.$hsTooltipCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) elInCollection.element.hide();\n }\n // Backward compatibility\n static on(evt, target, cb) {\n const elInCollection = window.$hsTooltipCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) elInCollection.element.events[evt] = cb;\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $b9c4451e4a0a64db$var$HSTooltip.autoInit();\n// Uncomment for debug\n// console.log('Tooltip collection:', window.$hsTooltipCollection);\n});\nif (typeof window !== \"undefined\") window.HSTooltip = $b9c4451e4a0a64db$var$HSTooltip;\nvar $b9c4451e4a0a64db$export$2e2bcd8739ae039 = $b9c4451e4a0a64db$var$HSTooltip;\n\n\n/*\n * HSTreeView\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n\nvar $luwGm = parcelRequire(\"luwGm\");\nclass $49e1f82ac0afa4ee$var$HSTreeView extends (0, $luwGm.default) {\n static #_ = this.group = 0;\n constructor(el, options, events){\n super(el, options, events);\n this.items = [];\n const data = el.getAttribute(\"data-hs-tree-view\");\n const dataOptions = data ? JSON.parse(data) : {};\n const concatOptions = {\n ...dataOptions,\n ...options\n };\n this.controlBy = concatOptions?.controlBy || \"button\";\n this.autoSelectChildren = concatOptions?.autoSelectChildren || false;\n this.isIndeterminate = concatOptions?.isIndeterminate || true;\n this.init();\n }\n init() {\n this.createCollection(window.$hsTreeViewCollection, this);\n $49e1f82ac0afa4ee$var$HSTreeView.group += 1;\n this.initItems();\n }\n initItems() {\n this.el.querySelectorAll(\"[data-hs-tree-view-item]\").forEach((el, ind)=>{\n const data = JSON.parse(el.getAttribute(\"data-hs-tree-view-item\"));\n if (!el.id) el.id = `tree-view-item-${$49e1f82ac0afa4ee$var$HSTreeView.group}-${ind}`;\n const concatData = {\n ...data,\n id: data.id ?? el.id,\n path: this.getPath(el),\n isSelected: data.isSelected ?? false\n };\n this.items.push(concatData);\n if (this.controlBy === \"checkbox\") this.controlByCheckbox(el, concatData);\n else this.controlByButton(el, concatData);\n });\n }\n controlByButton(el, data) {\n el.addEventListener(\"click\", (evt)=>{\n evt.stopPropagation();\n if (el.classList.contains(\"disabled\")) return false;\n if (!evt.metaKey && !evt.shiftKey) this.unselectItem(data);\n this.selectItem(el, data);\n this.fireEvent(\"click\", {\n el: el,\n data: data\n });\n (0, $cZqAW.dispatch)(\"click.hs.treeView\", this.el, {\n el: el,\n data: data\n });\n });\n }\n controlByCheckbox(el, data) {\n const control = el.querySelector(`input[value=\"${data.value}\"]`);\n if (!!control) control.addEventListener(\"change\", ()=>{\n if (this.autoSelectChildren) {\n this.selectItem(el, data);\n if (data.isDir) this.selectChildren(el, data);\n this.toggleParent(el);\n } else this.selectItem(el, data);\n });\n }\n getItem(id) {\n return this.items.find((el)=>el.id === id);\n }\n getPath(el) {\n const path = [];\n let parent = el.closest(\"[data-hs-tree-view-item]\");\n while(!!parent){\n const data = JSON.parse(parent.getAttribute(\"data-hs-tree-view-item\"));\n path.push(data.value);\n parent = parent.parentElement?.closest(\"[data-hs-tree-view-item]\");\n }\n return path.reverse().join(\"/\");\n }\n unselectItem(exception = null) {\n let selectedItems = this.getSelectedItems();\n if (exception) selectedItems = selectedItems.filter((el)=>el.id !== exception.id);\n if (selectedItems.length) selectedItems.forEach((el)=>{\n const selectedElement = document.querySelector(`#${el.id}`);\n selectedElement.classList.remove(\"selected\");\n this.changeItemProp(el.id, \"isSelected\", false);\n });\n }\n selectItem(el, data) {\n if (data.isSelected) {\n el.classList.remove(\"selected\");\n this.changeItemProp(data.id, \"isSelected\", false);\n } else {\n el.classList.add(\"selected\");\n this.changeItemProp(data.id, \"isSelected\", true);\n }\n }\n selectChildren(el, data) {\n const items = el.querySelectorAll(\"[data-hs-tree-view-item]\");\n Array.from(items).filter((elI)=>!elI.classList.contains(\"disabled\")).forEach((elI)=>{\n const initialItemData = elI.id ? this.getItem(elI.id) : null;\n if (!initialItemData) return false;\n if (data.isSelected) {\n elI.classList.add(\"selected\");\n this.changeItemProp(initialItemData.id, \"isSelected\", true);\n } else {\n elI.classList.remove(\"selected\");\n this.changeItemProp(initialItemData.id, \"isSelected\", false);\n }\n const currentItemData = this.getItem(elI.id);\n const control = elI.querySelector(`input[value=\"${currentItemData.value}\"]`);\n if (this.isIndeterminate) control.indeterminate = false;\n if (currentItemData.isSelected) control.checked = true;\n else control.checked = false;\n });\n }\n toggleParent(el) {\n let parent = el.parentElement?.closest(\"[data-hs-tree-view-item]\");\n while(!!parent){\n const items = parent.querySelectorAll(\"[data-hs-tree-view-item]:not(.disabled)\");\n const data = JSON.parse(parent.getAttribute(\"data-hs-tree-view-item\"));\n const control = parent.querySelector(`input[value=\"${data.value}\"]`);\n let hasUnchecked = false;\n let checkedItems = 0;\n items.forEach((elI)=>{\n const dataI = this.getItem(elI.id);\n if (dataI.isSelected) checkedItems += 1;\n if (!dataI.isSelected) hasUnchecked = true;\n });\n if (hasUnchecked) {\n parent.classList.remove(\"selected\");\n this.changeItemProp(parent.id, \"isSelected\", false);\n control.checked = false;\n } else {\n parent.classList.add(\"selected\");\n this.changeItemProp(parent.id, \"isSelected\", true);\n control.checked = true;\n }\n if (this.isIndeterminate) {\n if (checkedItems > 0 && checkedItems < items.length) control.indeterminate = true;\n else control.indeterminate = false;\n }\n parent = parent.parentElement?.closest(\"[data-hs-tree-view-item]\");\n }\n }\n // Public methods\n update() {\n this.items.map((el)=>{\n const selector = document.querySelector(`#${el.id}`);\n if (el.path !== this.getPath(selector)) el.path = this.getPath(selector);\n return el;\n });\n }\n getSelectedItems() {\n return this.items.filter((el)=>el.isSelected);\n }\n changeItemProp(id, prop, val) {\n this.items.map((el)=>{\n // @ts-ignore\n if (el.id === id) el[prop] = val;\n return el;\n });\n }\n // Static methods\n static getInstance(target, isInstance) {\n const elInCollection = window.$hsTreeViewCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n return elInCollection ? isInstance ? elInCollection : elInCollection.element.el : null;\n }\n static autoInit() {\n if (!window.$hsTreeViewCollection) window.$hsTreeViewCollection = [];\n document.querySelectorAll(\"[data-hs-tree-view]:not(.--prevent-on-load-init)\").forEach((el)=>{\n if (!window.$hsTreeViewCollection.find((elC)=>elC?.element?.el === el)) new $49e1f82ac0afa4ee$var$HSTreeView(el);\n });\n }\n // Backward compatibility\n static on(evt, target, cb) {\n const elInCollection = window.$hsTreeViewCollection.find((el)=>el.element.el === (typeof target === \"string\" ? document.querySelector(target) : target));\n if (elInCollection) elInCollection.element.events[evt] = cb;\n }\n}\nwindow.addEventListener(\"load\", ()=>{\n $49e1f82ac0afa4ee$var$HSTreeView.autoInit();\n// Uncomment for debug\n// console.log('Tree view collection:', window.$hsTreeViewCollection);\n});\nif (typeof window !== \"undefined\") window.HSTreeView = $49e1f82ac0afa4ee$var$HSTreeView;\nvar $49e1f82ac0afa4ee$export$2e2bcd8739ae039 = $49e1f82ac0afa4ee$var$HSTreeView;\n\n\n/*\n * HSStaticMethods\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \nvar $cZqAW = parcelRequire(\"cZqAW\");\n/*\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */ \n\n\n\n\n\nvar $1C6E2 = parcelRequire(\"1C6E2\");\n\n\nvar $iIPEy = parcelRequire(\"iIPEy\");\n\n\n\n\nvar $dQG8S = parcelRequire(\"dQG8S\");\n\n\n\n\n\n\n\n\n\n\n\n\nconst $229012a49ff0ba35$export$c863840a8dc6e11d = [\n {\n key: \"copy-markup\",\n fn: (0, $f48d59abfdbd8930$export$2e2bcd8739ae039),\n collection: \"$hsCopyMarkupCollection\"\n },\n {\n key: \"accordion\",\n fn: (0, $a86d1961e40cbdd1$export$2e2bcd8739ae039),\n collection: \"$hsAccordionCollection\"\n },\n {\n key: \"carousel\",\n fn: (0, $7d82f08a580c5533$export$2e2bcd8739ae039),\n collection: \"$hsCarouselCollection\"\n },\n {\n key: \"collapse\",\n fn: (0, $e0d3a37d788d765e$export$2e2bcd8739ae039),\n collection: \"$hsCollapseCollection\"\n },\n {\n key: \"combobox\",\n fn: (0, $679ae2f22a56cb31$export$2e2bcd8739ae039),\n collection: \"$hsComboBoxCollection\"\n },\n {\n key: \"datatable\",\n fn: (0, $1C6E2.default),\n collection: \"$hsDataTableCollection\"\n },\n {\n key: \"dropdown\",\n fn: (0, $30ff3bc5863c48e0$export$2e2bcd8739ae039),\n collection: \"$hsDropdownCollection\"\n },\n {\n key: \"file-upload\",\n fn: (0, $iIPEy.default),\n collection: \"$hsFileUploadCollection\"\n },\n {\n key: \"input-number\",\n fn: (0, $92991b515617ed92$export$2e2bcd8739ae039),\n collection: \"$hsInputNumberCollection\"\n },\n {\n key: \"overlay\",\n fn: (0, $c4799b0513ab5e85$export$2e2bcd8739ae039),\n collection: \"$hsOverlayCollection\"\n },\n {\n key: \"pin-input\",\n fn: (0, $b63c0d64c21290f7$export$2e2bcd8739ae039),\n collection: \"$hsPinInputCollection\"\n },\n {\n key: \"range-slider\",\n fn: (0, $dQG8S.default),\n collection: \"$hsRangeSliderCollection\"\n },\n {\n key: \"remove-element\",\n fn: (0, $2fa3b3495cc39359$export$2e2bcd8739ae039),\n collection: \"$hsRemoveElementCollection\"\n },\n {\n key: \"scrollspy\",\n fn: (0, $ad11e0e273662123$export$2e2bcd8739ae039),\n collection: \"$hsScrollspyCollection\"\n },\n {\n key: \"select\",\n fn: (0, $d6d8a1cc6d2c85b9$export$2e2bcd8739ae039),\n collection: \"$hsSelectCollection\"\n },\n {\n key: \"stepper\",\n fn: (0, $ca72921c6baabde0$export$2e2bcd8739ae039),\n collection: \"$hsStepperCollection\"\n },\n {\n key: \"strong-password\",\n fn: (0, $2cda32f4cf75835b$export$2e2bcd8739ae039),\n collection: \"$hsStrongPasswordCollection\"\n },\n {\n key: \"tabs\",\n fn: (0, $c9620caaf893c52f$export$2e2bcd8739ae039),\n collection: \"$hsTabsCollection\"\n },\n {\n key: \"textarea-auto-height\",\n fn: (0, $0879d3d9a278de7e$export$2e2bcd8739ae039),\n collection: \"$hsTextareaAutoHeightCollection\"\n },\n {\n key: \"theme-switch\",\n fn: (0, $4ef230b80928ed4d$export$2e2bcd8739ae039),\n collection: \"$hsThemeSwitchCollection\"\n },\n {\n key: \"toggle-count\",\n fn: (0, $e826521c98ea9aeb$export$2e2bcd8739ae039),\n collection: \"$hsToggleCountCollection\"\n },\n {\n key: \"toggle-password\",\n fn: (0, $009472fb1980a140$export$2e2bcd8739ae039),\n collection: \"$hsTogglePasswordCollection\"\n },\n {\n key: \"tooltip\",\n fn: (0, $b9c4451e4a0a64db$export$2e2bcd8739ae039),\n collection: \"$hsTooltipCollection\"\n },\n {\n key: \"tree-view\",\n fn: (0, $49e1f82ac0afa4ee$export$2e2bcd8739ae039),\n collection: \"$hsTreeViewCollection\"\n }\n];\n\n\nconst $77dda7c950b06739$var$HSStaticMethods = {\n getClassProperty: $cZqAW.getClassProperty,\n afterTransition: $cZqAW.afterTransition,\n autoInit (collection = \"all\") {\n if (collection === \"all\") (0, $229012a49ff0ba35$export$c863840a8dc6e11d).forEach(({ fn: fn })=>{\n fn?.autoInit();\n });\n else (0, $229012a49ff0ba35$export$c863840a8dc6e11d).forEach(({ key: key, fn: fn })=>{\n if (collection.includes(key)) fn?.autoInit();\n });\n },\n cleanCollection (name = \"all\") {\n if (name === \"all\") (0, $229012a49ff0ba35$export$c863840a8dc6e11d).forEach(({ collection: collection })=>{\n if (window[collection] instanceof Array) window[collection] = [];\n });\n else (0, $229012a49ff0ba35$export$c863840a8dc6e11d).forEach(({ key: key, collection: collection })=>{\n if (name.includes(key) && window[collection] instanceof Array) window[collection] = [];\n });\n }\n};\nif (typeof window !== \"undefined\") window.HSStaticMethods = $77dda7c950b06739$var$HSStaticMethods;\nvar $77dda7c950b06739$export$2e2bcd8739ae039 = $77dda7c950b06739$var$HSStaticMethods;\n\n\nlet $67d0318b20e27086$export$66c6706504ee69a5;\nlet $67d0318b20e27086$export$c12a6988ccf2bca0;\nlet $67d0318b20e27086$export$90c97215a2351d2a;\n\nif (typeof DataTable !== \"undefined\" && typeof jQuery !== \"undefined\") $67d0318b20e27086$export$66c6706504ee69a5 = (parcelRequire(\"1C6E2\")).default;\nelse $67d0318b20e27086$export$66c6706504ee69a5 = null;\n\nif (typeof _ !== \"undefined\" && typeof Dropzone !== \"undefined\") $67d0318b20e27086$export$c12a6988ccf2bca0 = (parcelRequire(\"iIPEy\")).default;\nelse $67d0318b20e27086$export$c12a6988ccf2bca0 = null;\n\nif (typeof noUiSlider !== \"undefined\") $67d0318b20e27086$export$90c97215a2351d2a = (parcelRequire(\"dQG8S\")).default;\nelse $67d0318b20e27086$export$90c97215a2351d2a = null;\n\n\n/**\n * Swiper 10.3.1\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * https://swiperjs.com\n *\n * Copyright 2014-2023 Vladimir Kharlampidi\n *\n * Released under the MIT License\n *\n * Released on: September 28, 2023\n */ /**\n * SSR Window 4.0.2\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2021, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: December 13, 2021\n */ /* eslint-disable no-param-reassign */ function $0868fe5596dee114$var$isObject(obj) {\n return obj !== null && typeof obj === \"object\" && \"constructor\" in obj && obj.constructor === Object;\n}\nfunction $0868fe5596dee114$var$extend(target, src) {\n if (target === void 0) target = {};\n if (src === void 0) src = {};\n Object.keys(src).forEach((key)=>{\n if (typeof target[key] === \"undefined\") target[key] = src[key];\n else if ($0868fe5596dee114$var$isObject(src[key]) && $0868fe5596dee114$var$isObject(target[key]) && Object.keys(src[key]).length > 0) $0868fe5596dee114$var$extend(target[key], src[key]);\n });\n}\nconst $0868fe5596dee114$var$ssrDocument = {\n body: {},\n addEventListener () {},\n removeEventListener () {},\n activeElement: {\n blur () {},\n nodeName: \"\"\n },\n querySelector () {\n return null;\n },\n querySelectorAll () {\n return [];\n },\n getElementById () {\n return null;\n },\n createEvent () {\n return {\n initEvent () {}\n };\n },\n createElement () {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute () {},\n getElementsByTagName () {\n return [];\n }\n };\n },\n createElementNS () {\n return {};\n },\n importNode () {\n return null;\n },\n location: {\n hash: \"\",\n host: \"\",\n hostname: \"\",\n href: \"\",\n origin: \"\",\n pathname: \"\",\n protocol: \"\",\n search: \"\"\n }\n};\nfunction $0868fe5596dee114$export$39b482c5e57630a8() {\n const doc = typeof document !== \"undefined\" ? document : {};\n $0868fe5596dee114$var$extend(doc, $0868fe5596dee114$var$ssrDocument);\n return doc;\n}\nconst $0868fe5596dee114$var$ssrWindow = {\n document: $0868fe5596dee114$var$ssrDocument,\n navigator: {\n userAgent: \"\"\n },\n location: {\n hash: \"\",\n host: \"\",\n hostname: \"\",\n href: \"\",\n origin: \"\",\n pathname: \"\",\n protocol: \"\",\n search: \"\"\n },\n history: {\n replaceState () {},\n pushState () {},\n go () {},\n back () {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener () {},\n removeEventListener () {},\n getComputedStyle () {\n return {\n getPropertyValue () {\n return \"\";\n }\n };\n },\n Image () {},\n Date () {},\n screen: {},\n setTimeout () {},\n clearTimeout () {},\n matchMedia () {\n return {};\n },\n requestAnimationFrame (callback) {\n if (typeof setTimeout === \"undefined\") {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame (id) {\n if (typeof setTimeout === \"undefined\") return;\n clearTimeout(id);\n }\n};\nfunction $0868fe5596dee114$export$407448d2b89b1813() {\n const win = typeof window !== \"undefined\" ? window : {};\n $0868fe5596dee114$var$extend(win, $0868fe5596dee114$var$ssrWindow);\n return win;\n}\n\n\n\nfunction $f97f33853a605dba$export$43caf9889c228507(obj) {\n const object = obj;\n Object.keys(object).forEach((key)=>{\n try {\n object[key] = null;\n } catch (e) {\n // no getter for object\n }\n try {\n delete object[key];\n } catch (e) {\n // something got wrong\n }\n });\n}\nfunction $f97f33853a605dba$export$7ccc53e8f1e7dfc5(callback, delay) {\n if (delay === void 0) delay = 0;\n return setTimeout(callback, delay);\n}\nfunction $f97f33853a605dba$export$4368d992c4eafac0() {\n return Date.now();\n}\nfunction $f97f33853a605dba$var$getComputedStyle(el) {\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n let style;\n if (window1.getComputedStyle) style = window1.getComputedStyle(el, null);\n if (!style && el.currentStyle) style = el.currentStyle;\n if (!style) style = el.style;\n return style;\n}\nfunction $f97f33853a605dba$export$dda1d9f60106f0e9(el, axis) {\n if (axis === void 0) axis = \"x\";\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n let matrix;\n let curTransform;\n let transformMatrix;\n const curStyle = $f97f33853a605dba$var$getComputedStyle(el);\n if (window1.WebKitCSSMatrix) {\n curTransform = curStyle.transform || curStyle.webkitTransform;\n if (curTransform.split(\",\").length > 6) curTransform = curTransform.split(\", \").map((a)=>a.replace(\",\", \".\")).join(\", \");\n // Some old versions of Webkit choke when 'none' is passed; pass\n // empty string instead in this case\n transformMatrix = new window1.WebKitCSSMatrix(curTransform === \"none\" ? \"\" : curTransform);\n } else {\n transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue(\"transform\").replace(\"translate(\", \"matrix(1, 0, 0, 1,\");\n matrix = transformMatrix.toString().split(\",\");\n }\n if (axis === \"x\") {\n // Latest Chrome and webkits Fix\n if (window1.WebKitCSSMatrix) curTransform = transformMatrix.m41;\n else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);\n else curTransform = parseFloat(matrix[4]);\n }\n if (axis === \"y\") {\n // Latest Chrome and webkits Fix\n if (window1.WebKitCSSMatrix) curTransform = transformMatrix.m42;\n else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);\n else curTransform = parseFloat(matrix[5]);\n }\n return curTransform || 0;\n}\nfunction $f97f33853a605dba$export$35e795649ee09318(o) {\n return typeof o === \"object\" && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === \"Object\";\n}\nfunction $f97f33853a605dba$var$isNode(node) {\n // eslint-disable-next-line\n if (typeof window !== \"undefined\" && typeof window.HTMLElement !== \"undefined\") return node instanceof HTMLElement;\n return node && (node.nodeType === 1 || node.nodeType === 11);\n}\nfunction $f97f33853a605dba$export$9e5f44173e64f162() {\n const to = Object(arguments.length <= 0 ? undefined : arguments[0]);\n const noExtend = [\n \"__proto__\",\n \"constructor\",\n \"prototype\"\n ];\n for(let i = 1; i < arguments.length; i += 1){\n const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];\n if (nextSource !== undefined && nextSource !== null && !$f97f33853a605dba$var$isNode(nextSource)) {\n const keysArray = Object.keys(Object(nextSource)).filter((key)=>noExtend.indexOf(key) < 0);\n for(let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1){\n const nextKey = keysArray[nextIndex];\n const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n if ($f97f33853a605dba$export$35e795649ee09318(to[nextKey]) && $f97f33853a605dba$export$35e795649ee09318(nextSource[nextKey])) {\n if (nextSource[nextKey].__swiper__) to[nextKey] = nextSource[nextKey];\n else $f97f33853a605dba$export$9e5f44173e64f162(to[nextKey], nextSource[nextKey]);\n } else if (!$f97f33853a605dba$export$35e795649ee09318(to[nextKey]) && $f97f33853a605dba$export$35e795649ee09318(nextSource[nextKey])) {\n to[nextKey] = {};\n if (nextSource[nextKey].__swiper__) to[nextKey] = nextSource[nextKey];\n else $f97f33853a605dba$export$9e5f44173e64f162(to[nextKey], nextSource[nextKey]);\n } else to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n return to;\n}\nfunction $f97f33853a605dba$export$2408f22a0fab9ae5(el, varName, varValue) {\n el.style.setProperty(varName, varValue);\n}\nfunction $f97f33853a605dba$export$ffb5f4729a158638(_ref) {\n let { swiper: swiper, targetPosition: targetPosition, side: side } = _ref;\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n const startPosition = -swiper.translate;\n let startTime = null;\n let time;\n const duration = swiper.params.speed;\n swiper.wrapperEl.style.scrollSnapType = \"none\";\n window1.cancelAnimationFrame(swiper.cssModeFrameID);\n const dir = targetPosition > startPosition ? \"next\" : \"prev\";\n const isOutOfBound = (current, target)=>{\n return dir === \"next\" && current >= target || dir === \"prev\" && current <= target;\n };\n const animate = ()=>{\n time = new Date().getTime();\n if (startTime === null) startTime = time;\n const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);\n const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;\n let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);\n if (isOutOfBound(currentPosition, targetPosition)) currentPosition = targetPosition;\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n if (isOutOfBound(currentPosition, targetPosition)) {\n swiper.wrapperEl.style.overflow = \"hidden\";\n swiper.wrapperEl.style.scrollSnapType = \"\";\n setTimeout(()=>{\n swiper.wrapperEl.style.overflow = \"\";\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n });\n window1.cancelAnimationFrame(swiper.cssModeFrameID);\n return;\n }\n swiper.cssModeFrameID = window1.requestAnimationFrame(animate);\n };\n animate();\n}\nfunction $f97f33853a605dba$export$342063e11d6c3cad(slideEl) {\n return slideEl.querySelector(\".swiper-slide-transform\") || slideEl.shadowRoot && slideEl.shadowRoot.querySelector(\".swiper-slide-transform\") || slideEl;\n}\nfunction $f97f33853a605dba$export$f1e1789686576879(element, selector) {\n if (selector === void 0) selector = \"\";\n return [\n ...element.children\n ].filter((el)=>el.matches(selector));\n}\nfunction $f97f33853a605dba$export$db3b6bfb95261072(tag, classes) {\n if (classes === void 0) classes = [];\n const el = document.createElement(tag);\n el.classList.add(...Array.isArray(classes) ? classes : [\n classes\n ]);\n return el;\n}\nfunction $f97f33853a605dba$export$8b22cf2602fb60ce(el) {\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n const document1 = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n const box = el.getBoundingClientRect();\n const body = document1.body;\n const clientTop = el.clientTop || body.clientTop || 0;\n const clientLeft = el.clientLeft || body.clientLeft || 0;\n const scrollTop = el === window1 ? window1.scrollY : el.scrollTop;\n const scrollLeft = el === window1 ? window1.scrollX : el.scrollLeft;\n return {\n top: box.top + scrollTop - clientTop,\n left: box.left + scrollLeft - clientLeft\n };\n}\nfunction $f97f33853a605dba$export$ae1af26003f05816(el, selector) {\n const prevEls = [];\n while(el.previousElementSibling){\n const prev = el.previousElementSibling; // eslint-disable-line\n if (selector) {\n if (prev.matches(selector)) prevEls.push(prev);\n } else prevEls.push(prev);\n el = prev;\n }\n return prevEls;\n}\nfunction $f97f33853a605dba$export$953cecd6e717a553(el, selector) {\n const nextEls = [];\n while(el.nextElementSibling){\n const next = el.nextElementSibling; // eslint-disable-line\n if (selector) {\n if (next.matches(selector)) nextEls.push(next);\n } else nextEls.push(next);\n el = next;\n }\n return nextEls;\n}\nfunction $f97f33853a605dba$export$882b5998b3b9117c(el, prop) {\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n return window1.getComputedStyle(el, null).getPropertyValue(prop);\n}\nfunction $f97f33853a605dba$export$39b482c5e57630a8(el) {\n let child = el;\n let i;\n if (child) {\n i = 0;\n // eslint-disable-next-line\n while((child = child.previousSibling) !== null)if (child.nodeType === 1) i += 1;\n return i;\n }\n return undefined;\n}\nfunction $f97f33853a605dba$export$407448d2b89b1813(el, selector) {\n const parents = []; // eslint-disable-line\n let parent = el.parentElement; // eslint-disable-line\n while(parent){\n if (selector) {\n if (parent.matches(selector)) parents.push(parent);\n } else parents.push(parent);\n parent = parent.parentElement;\n }\n return parents;\n}\nfunction $f97f33853a605dba$export$23f2a1d2818174ef(el, callback) {\n function fireCallBack(e) {\n if (e.target !== el) return;\n callback.call(el, e);\n el.removeEventListener(\"transitionend\", fireCallBack);\n }\n if (callback) el.addEventListener(\"transitionend\", fireCallBack);\n}\nfunction $f97f33853a605dba$export$2d1720544b23b823(el, size, includeMargins) {\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n if (includeMargins) return el[size === \"width\" ? \"offsetWidth\" : \"offsetHeight\"] + parseFloat(window1.getComputedStyle(el, null).getPropertyValue(size === \"width\" ? \"margin-right\" : \"margin-top\")) + parseFloat(window1.getComputedStyle(el, null).getPropertyValue(size === \"width\" ? \"margin-left\" : \"margin-bottom\"));\n return el.offsetWidth;\n}\n\n\nlet $1262f2e38e280703$var$support;\nfunction $1262f2e38e280703$var$calcSupport() {\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n const document1 = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n return {\n smoothScroll: document1.documentElement && document1.documentElement.style && \"scrollBehavior\" in document1.documentElement.style,\n touch: !!(\"ontouchstart\" in window1 || window1.DocumentTouch && document1 instanceof window1.DocumentTouch)\n };\n}\nfunction $1262f2e38e280703$var$getSupport() {\n if (!$1262f2e38e280703$var$support) $1262f2e38e280703$var$support = $1262f2e38e280703$var$calcSupport();\n return $1262f2e38e280703$var$support;\n}\nlet $1262f2e38e280703$var$deviceCached;\nfunction $1262f2e38e280703$var$calcDevice(_temp) {\n let { userAgent: userAgent } = _temp === void 0 ? {} : _temp;\n const support = $1262f2e38e280703$var$getSupport();\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n const platform = window1.navigator.platform;\n const ua = userAgent || window1.navigator.userAgent;\n const device = {\n ios: false,\n android: false\n };\n const screenWidth = window1.screen.width;\n const screenHeight = window1.screen.height;\n const android = ua.match(/(Android);?[\\s\\/]+([\\d.]+)?/); // eslint-disable-line\n let ipad = ua.match(/(iPad).*OS\\s([\\d_]+)/);\n const ipod = ua.match(/(iPod)(.*OS\\s([\\d_]+))?/);\n const iphone = !ipad && ua.match(/(iPhone\\sOS|iOS)\\s([\\d_]+)/);\n const windows = platform === \"Win32\";\n let macos = platform === \"MacIntel\";\n // iPadOs 13 fix\n const iPadScreens = [\n \"1024x1366\",\n \"1366x1024\",\n \"834x1194\",\n \"1194x834\",\n \"834x1112\",\n \"1112x834\",\n \"768x1024\",\n \"1024x768\",\n \"820x1180\",\n \"1180x820\",\n \"810x1080\",\n \"1080x810\"\n ];\n if (!ipad && macos && support.touch && iPadScreens.indexOf(`${screenWidth}x${screenHeight}`) >= 0) {\n ipad = ua.match(/(Version)\\/([\\d.]+)/);\n if (!ipad) ipad = [\n 0,\n 1,\n \"13_0_0\"\n ];\n macos = false;\n }\n // Android\n if (android && !windows) {\n device.os = \"android\";\n device.android = true;\n }\n if (ipad || iphone || ipod) {\n device.os = \"ios\";\n device.ios = true;\n }\n // Export object\n return device;\n}\nfunction $1262f2e38e280703$var$getDevice(overrides) {\n if (overrides === void 0) overrides = {};\n if (!$1262f2e38e280703$var$deviceCached) $1262f2e38e280703$var$deviceCached = $1262f2e38e280703$var$calcDevice(overrides);\n return $1262f2e38e280703$var$deviceCached;\n}\nlet $1262f2e38e280703$var$browser;\nfunction $1262f2e38e280703$var$calcBrowser() {\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n let needPerspectiveFix = false;\n function isSafari() {\n const ua = window1.navigator.userAgent.toLowerCase();\n return ua.indexOf(\"safari\") >= 0 && ua.indexOf(\"chrome\") < 0 && ua.indexOf(\"android\") < 0;\n }\n if (isSafari()) {\n const ua = String(window1.navigator.userAgent);\n if (ua.includes(\"Version/\")) {\n const [major, minor] = ua.split(\"Version/\")[1].split(\" \")[0].split(\".\").map((num)=>Number(num));\n needPerspectiveFix = major < 16 || major === 16 && minor < 2;\n }\n }\n return {\n isSafari: needPerspectiveFix || isSafari(),\n needPerspectiveFix: needPerspectiveFix,\n isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window1.navigator.userAgent)\n };\n}\nfunction $1262f2e38e280703$var$getBrowser() {\n if (!$1262f2e38e280703$var$browser) $1262f2e38e280703$var$browser = $1262f2e38e280703$var$calcBrowser();\n return $1262f2e38e280703$var$browser;\n}\nfunction $1262f2e38e280703$var$Resize(_ref) {\n let { swiper: swiper, on: on, emit: emit } = _ref;\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n let observer = null;\n let animationFrame = null;\n const resizeHandler = ()=>{\n if (!swiper || swiper.destroyed || !swiper.initialized) return;\n emit(\"beforeResize\");\n emit(\"resize\");\n };\n const createObserver = ()=>{\n if (!swiper || swiper.destroyed || !swiper.initialized) return;\n observer = new ResizeObserver((entries)=>{\n animationFrame = window1.requestAnimationFrame(()=>{\n const { width: width, height: height } = swiper;\n let newWidth = width;\n let newHeight = height;\n entries.forEach((_ref2)=>{\n let { contentBoxSize: contentBoxSize, contentRect: contentRect, target: target } = _ref2;\n if (target && target !== swiper.el) return;\n newWidth = contentRect ? contentRect.width : (contentBoxSize[0] || contentBoxSize).inlineSize;\n newHeight = contentRect ? contentRect.height : (contentBoxSize[0] || contentBoxSize).blockSize;\n });\n if (newWidth !== width || newHeight !== height) resizeHandler();\n });\n });\n observer.observe(swiper.el);\n };\n const removeObserver = ()=>{\n if (animationFrame) window1.cancelAnimationFrame(animationFrame);\n if (observer && observer.unobserve && swiper.el) {\n observer.unobserve(swiper.el);\n observer = null;\n }\n };\n const orientationChangeHandler = ()=>{\n if (!swiper || swiper.destroyed || !swiper.initialized) return;\n emit(\"orientationchange\");\n };\n on(\"init\", ()=>{\n if (swiper.params.resizeObserver && typeof window1.ResizeObserver !== \"undefined\") {\n createObserver();\n return;\n }\n window1.addEventListener(\"resize\", resizeHandler);\n window1.addEventListener(\"orientationchange\", orientationChangeHandler);\n });\n on(\"destroy\", ()=>{\n removeObserver();\n window1.removeEventListener(\"resize\", resizeHandler);\n window1.removeEventListener(\"orientationchange\", orientationChangeHandler);\n });\n}\nfunction $1262f2e38e280703$var$Observer(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on, emit: emit } = _ref;\n const observers = [];\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n const attach = function(target, options) {\n if (options === void 0) options = {};\n const ObserverFunc = window1.MutationObserver || window1.WebkitMutationObserver;\n const observer = new ObserverFunc((mutations)=>{\n // The observerUpdate event should only be triggered\n // once despite the number of mutations. Additional\n // triggers are redundant and are very costly\n if (swiper.__preventObserver__) return;\n if (mutations.length === 1) {\n emit(\"observerUpdate\", mutations[0]);\n return;\n }\n const observerUpdate = function observerUpdate() {\n emit(\"observerUpdate\", mutations[0]);\n };\n if (window1.requestAnimationFrame) window1.requestAnimationFrame(observerUpdate);\n else window1.setTimeout(observerUpdate, 0);\n });\n observer.observe(target, {\n attributes: typeof options.attributes === \"undefined\" ? true : options.attributes,\n childList: typeof options.childList === \"undefined\" ? true : options.childList,\n characterData: typeof options.characterData === \"undefined\" ? true : options.characterData\n });\n observers.push(observer);\n };\n const init = ()=>{\n if (!swiper.params.observer) return;\n if (swiper.params.observeParents) {\n const containerParents = (0, $f97f33853a605dba$export$407448d2b89b1813)(swiper.hostEl);\n for(let i = 0; i < containerParents.length; i += 1)attach(containerParents[i]);\n }\n // Observe container\n attach(swiper.hostEl, {\n childList: swiper.params.observeSlideChildren\n });\n // Observe wrapper\n attach(swiper.wrapperEl, {\n attributes: false\n });\n };\n const destroy = ()=>{\n observers.forEach((observer)=>{\n observer.disconnect();\n });\n observers.splice(0, observers.length);\n };\n extendParams({\n observer: false,\n observeParents: false,\n observeSlideChildren: false\n });\n on(\"init\", init);\n on(\"destroy\", destroy);\n}\n/* eslint-disable no-underscore-dangle */ var $1262f2e38e280703$var$eventsEmitter = {\n on (events, handler, priority) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (typeof handler !== \"function\") return self;\n const method = priority ? \"unshift\" : \"push\";\n events.split(\" \").forEach((event)=>{\n if (!self.eventsListeners[event]) self.eventsListeners[event] = [];\n self.eventsListeners[event][method](handler);\n });\n return self;\n },\n once (events, handler, priority) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (typeof handler !== \"function\") return self;\n function onceHandler() {\n self.off(events, onceHandler);\n if (onceHandler.__emitterProxy) delete onceHandler.__emitterProxy;\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];\n handler.apply(self, args);\n }\n onceHandler.__emitterProxy = handler;\n return self.on(events, onceHandler, priority);\n },\n onAny (handler, priority) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (typeof handler !== \"function\") return self;\n const method = priority ? \"unshift\" : \"push\";\n if (self.eventsAnyListeners.indexOf(handler) < 0) self.eventsAnyListeners[method](handler);\n return self;\n },\n offAny (handler) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (!self.eventsAnyListeners) return self;\n const index = self.eventsAnyListeners.indexOf(handler);\n if (index >= 0) self.eventsAnyListeners.splice(index, 1);\n return self;\n },\n off (events, handler) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (!self.eventsListeners) return self;\n events.split(\" \").forEach((event)=>{\n if (typeof handler === \"undefined\") self.eventsListeners[event] = [];\n else if (self.eventsListeners[event]) self.eventsListeners[event].forEach((eventHandler, index)=>{\n if (eventHandler === handler || eventHandler.__emitterProxy && eventHandler.__emitterProxy === handler) self.eventsListeners[event].splice(index, 1);\n });\n });\n return self;\n },\n emit () {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (!self.eventsListeners) return self;\n let events;\n let data;\n let context;\n for(var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)args[_key2] = arguments[_key2];\n if (typeof args[0] === \"string\" || Array.isArray(args[0])) {\n events = args[0];\n data = args.slice(1, args.length);\n context = self;\n } else {\n events = args[0].events;\n data = args[0].data;\n context = args[0].context || self;\n }\n data.unshift(context);\n const eventsArray = Array.isArray(events) ? events : events.split(\" \");\n eventsArray.forEach((event)=>{\n if (self.eventsAnyListeners && self.eventsAnyListeners.length) self.eventsAnyListeners.forEach((eventHandler)=>{\n eventHandler.apply(context, [\n event,\n ...data\n ]);\n });\n if (self.eventsListeners && self.eventsListeners[event]) self.eventsListeners[event].forEach((eventHandler)=>{\n eventHandler.apply(context, data);\n });\n });\n return self;\n }\n};\nfunction $1262f2e38e280703$var$updateSize() {\n const swiper = this;\n let width;\n let height;\n const el = swiper.el;\n if (typeof swiper.params.width !== \"undefined\" && swiper.params.width !== null) width = swiper.params.width;\n else width = el.clientWidth;\n if (typeof swiper.params.height !== \"undefined\" && swiper.params.height !== null) height = swiper.params.height;\n else height = el.clientHeight;\n if (width === 0 && swiper.isHorizontal() || height === 0 && swiper.isVertical()) return;\n // Subtract paddings\n width = width - parseInt((0, $f97f33853a605dba$export$882b5998b3b9117c)(el, \"padding-left\") || 0, 10) - parseInt((0, $f97f33853a605dba$export$882b5998b3b9117c)(el, \"padding-right\") || 0, 10);\n height = height - parseInt((0, $f97f33853a605dba$export$882b5998b3b9117c)(el, \"padding-top\") || 0, 10) - parseInt((0, $f97f33853a605dba$export$882b5998b3b9117c)(el, \"padding-bottom\") || 0, 10);\n if (Number.isNaN(width)) width = 0;\n if (Number.isNaN(height)) height = 0;\n Object.assign(swiper, {\n width: width,\n height: height,\n size: swiper.isHorizontal() ? width : height\n });\n}\nfunction $1262f2e38e280703$var$updateSlides() {\n const swiper = this;\n function getDirectionLabel(property) {\n if (swiper.isHorizontal()) return property;\n // prettier-ignore\n return ({\n \"width\": \"height\",\n \"margin-top\": \"margin-left\",\n \"margin-bottom \": \"margin-right\",\n \"margin-left\": \"margin-top\",\n \"margin-right\": \"margin-bottom\",\n \"padding-left\": \"padding-top\",\n \"padding-right\": \"padding-bottom\",\n \"marginRight\": \"marginBottom\"\n })[property];\n }\n function getDirectionPropertyValue(node, label) {\n return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0);\n }\n const params = swiper.params;\n const { wrapperEl: wrapperEl, slidesEl: slidesEl, size: swiperSize, rtlTranslate: rtl, wrongRTL: wrongRTL } = swiper;\n const isVirtual = swiper.virtual && params.virtual.enabled;\n const previousSlidesLength = isVirtual ? swiper.virtual.slides.length : swiper.slides.length;\n const slides = (0, $f97f33853a605dba$export$f1e1789686576879)(slidesEl, `.${swiper.params.slideClass}, swiper-slide`);\n const slidesLength = isVirtual ? swiper.virtual.slides.length : slides.length;\n let snapGrid = [];\n const slidesGrid = [];\n const slidesSizesGrid = [];\n let offsetBefore = params.slidesOffsetBefore;\n if (typeof offsetBefore === \"function\") offsetBefore = params.slidesOffsetBefore.call(swiper);\n let offsetAfter = params.slidesOffsetAfter;\n if (typeof offsetAfter === \"function\") offsetAfter = params.slidesOffsetAfter.call(swiper);\n const previousSnapGridLength = swiper.snapGrid.length;\n const previousSlidesGridLength = swiper.slidesGrid.length;\n let spaceBetween = params.spaceBetween;\n let slidePosition = -offsetBefore;\n let prevSlideSize = 0;\n let index = 0;\n if (typeof swiperSize === \"undefined\") return;\n if (typeof spaceBetween === \"string\" && spaceBetween.indexOf(\"%\") >= 0) spaceBetween = parseFloat(spaceBetween.replace(\"%\", \"\")) / 100 * swiperSize;\n else if (typeof spaceBetween === \"string\") spaceBetween = parseFloat(spaceBetween);\n swiper.virtualSize = -spaceBetween;\n // reset margins\n slides.forEach((slideEl)=>{\n if (rtl) slideEl.style.marginLeft = \"\";\n else slideEl.style.marginRight = \"\";\n slideEl.style.marginBottom = \"\";\n slideEl.style.marginTop = \"\";\n });\n // reset cssMode offsets\n if (params.centeredSlides && params.cssMode) {\n (0, $f97f33853a605dba$export$2408f22a0fab9ae5)(wrapperEl, \"--swiper-centered-offset-before\", \"\");\n (0, $f97f33853a605dba$export$2408f22a0fab9ae5)(wrapperEl, \"--swiper-centered-offset-after\", \"\");\n }\n const gridEnabled = params.grid && params.grid.rows > 1 && swiper.grid;\n if (gridEnabled) swiper.grid.initSlides(slidesLength);\n // Calc slides\n let slideSize;\n const shouldResetSlideSize = params.slidesPerView === \"auto\" && params.breakpoints && Object.keys(params.breakpoints).filter((key)=>{\n return typeof params.breakpoints[key].slidesPerView !== \"undefined\";\n }).length > 0;\n for(let i = 0; i < slidesLength; i += 1){\n slideSize = 0;\n let slide;\n if (slides[i]) slide = slides[i];\n if (gridEnabled) swiper.grid.updateSlide(i, slide, slidesLength, getDirectionLabel);\n if (slides[i] && (0, $f97f33853a605dba$export$882b5998b3b9117c)(slide, \"display\") === \"none\") continue; // eslint-disable-line\n if (params.slidesPerView === \"auto\") {\n if (shouldResetSlideSize) slides[i].style[getDirectionLabel(\"width\")] = ``;\n const slideStyles = getComputedStyle(slide);\n const currentTransform = slide.style.transform;\n const currentWebKitTransform = slide.style.webkitTransform;\n if (currentTransform) slide.style.transform = \"none\";\n if (currentWebKitTransform) slide.style.webkitTransform = \"none\";\n if (params.roundLengths) slideSize = swiper.isHorizontal() ? (0, $f97f33853a605dba$export$2d1720544b23b823)(slide, \"width\", true) : (0, $f97f33853a605dba$export$2d1720544b23b823)(slide, \"height\", true);\n else {\n // eslint-disable-next-line\n const width = getDirectionPropertyValue(slideStyles, \"width\");\n const paddingLeft = getDirectionPropertyValue(slideStyles, \"padding-left\");\n const paddingRight = getDirectionPropertyValue(slideStyles, \"padding-right\");\n const marginLeft = getDirectionPropertyValue(slideStyles, \"margin-left\");\n const marginRight = getDirectionPropertyValue(slideStyles, \"margin-right\");\n const boxSizing = slideStyles.getPropertyValue(\"box-sizing\");\n if (boxSizing && boxSizing === \"border-box\") slideSize = width + marginLeft + marginRight;\n else {\n const { clientWidth: clientWidth, offsetWidth: offsetWidth } = slide;\n slideSize = width + paddingLeft + paddingRight + marginLeft + marginRight + (offsetWidth - clientWidth);\n }\n }\n if (currentTransform) slide.style.transform = currentTransform;\n if (currentWebKitTransform) slide.style.webkitTransform = currentWebKitTransform;\n if (params.roundLengths) slideSize = Math.floor(slideSize);\n } else {\n slideSize = (swiperSize - (params.slidesPerView - 1) * spaceBetween) / params.slidesPerView;\n if (params.roundLengths) slideSize = Math.floor(slideSize);\n if (slides[i]) slides[i].style[getDirectionLabel(\"width\")] = `${slideSize}px`;\n }\n if (slides[i]) slides[i].swiperSlideSize = slideSize;\n slidesSizesGrid.push(slideSize);\n if (params.centeredSlides) {\n slidePosition = slidePosition + slideSize / 2 + prevSlideSize / 2 + spaceBetween;\n if (prevSlideSize === 0 && i !== 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;\n if (i === 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;\n if (Math.abs(slidePosition) < 0.001) slidePosition = 0;\n if (params.roundLengths) slidePosition = Math.floor(slidePosition);\n if (index % params.slidesPerGroup === 0) snapGrid.push(slidePosition);\n slidesGrid.push(slidePosition);\n } else {\n if (params.roundLengths) slidePosition = Math.floor(slidePosition);\n if ((index - Math.min(swiper.params.slidesPerGroupSkip, index)) % swiper.params.slidesPerGroup === 0) snapGrid.push(slidePosition);\n slidesGrid.push(slidePosition);\n slidePosition = slidePosition + slideSize + spaceBetween;\n }\n swiper.virtualSize += slideSize + spaceBetween;\n prevSlideSize = slideSize;\n index += 1;\n }\n swiper.virtualSize = Math.max(swiper.virtualSize, swiperSize) + offsetAfter;\n if (rtl && wrongRTL && (params.effect === \"slide\" || params.effect === \"coverflow\")) wrapperEl.style.width = `${swiper.virtualSize + spaceBetween}px`;\n if (params.setWrapperSize) wrapperEl.style[getDirectionLabel(\"width\")] = `${swiper.virtualSize + spaceBetween}px`;\n if (gridEnabled) swiper.grid.updateWrapperSize(slideSize, snapGrid, getDirectionLabel);\n // Remove last grid elements depending on width\n if (!params.centeredSlides) {\n const newSlidesGrid = [];\n for(let i = 0; i < snapGrid.length; i += 1){\n let slidesGridItem = snapGrid[i];\n if (params.roundLengths) slidesGridItem = Math.floor(slidesGridItem);\n if (snapGrid[i] <= swiper.virtualSize - swiperSize) newSlidesGrid.push(slidesGridItem);\n }\n snapGrid = newSlidesGrid;\n if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) > 1) snapGrid.push(swiper.virtualSize - swiperSize);\n }\n if (isVirtual && params.loop) {\n const size = slidesSizesGrid[0] + spaceBetween;\n if (params.slidesPerGroup > 1) {\n const groups = Math.ceil((swiper.virtual.slidesBefore + swiper.virtual.slidesAfter) / params.slidesPerGroup);\n const groupSize = size * params.slidesPerGroup;\n for(let i = 0; i < groups; i += 1)snapGrid.push(snapGrid[snapGrid.length - 1] + groupSize);\n }\n for(let i = 0; i < swiper.virtual.slidesBefore + swiper.virtual.slidesAfter; i += 1){\n if (params.slidesPerGroup === 1) snapGrid.push(snapGrid[snapGrid.length - 1] + size);\n slidesGrid.push(slidesGrid[slidesGrid.length - 1] + size);\n swiper.virtualSize += size;\n }\n }\n if (snapGrid.length === 0) snapGrid = [\n 0\n ];\n if (spaceBetween !== 0) {\n const key = swiper.isHorizontal() && rtl ? \"marginLeft\" : getDirectionLabel(\"marginRight\");\n slides.filter((_, slideIndex)=>{\n if (!params.cssMode || params.loop) return true;\n if (slideIndex === slides.length - 1) return false;\n return true;\n }).forEach((slideEl)=>{\n slideEl.style[key] = `${spaceBetween}px`;\n });\n }\n if (params.centeredSlides && params.centeredSlidesBounds) {\n let allSlidesSize = 0;\n slidesSizesGrid.forEach((slideSizeValue)=>{\n allSlidesSize += slideSizeValue + (spaceBetween || 0);\n });\n allSlidesSize -= spaceBetween;\n const maxSnap = allSlidesSize - swiperSize;\n snapGrid = snapGrid.map((snap)=>{\n if (snap <= 0) return -offsetBefore;\n if (snap > maxSnap) return maxSnap + offsetAfter;\n return snap;\n });\n }\n if (params.centerInsufficientSlides) {\n let allSlidesSize = 0;\n slidesSizesGrid.forEach((slideSizeValue)=>{\n allSlidesSize += slideSizeValue + (spaceBetween || 0);\n });\n allSlidesSize -= spaceBetween;\n if (allSlidesSize < swiperSize) {\n const allSlidesOffset = (swiperSize - allSlidesSize) / 2;\n snapGrid.forEach((snap, snapIndex)=>{\n snapGrid[snapIndex] = snap - allSlidesOffset;\n });\n slidesGrid.forEach((snap, snapIndex)=>{\n slidesGrid[snapIndex] = snap + allSlidesOffset;\n });\n }\n }\n Object.assign(swiper, {\n slides: slides,\n snapGrid: snapGrid,\n slidesGrid: slidesGrid,\n slidesSizesGrid: slidesSizesGrid\n });\n if (params.centeredSlides && params.cssMode && !params.centeredSlidesBounds) {\n (0, $f97f33853a605dba$export$2408f22a0fab9ae5)(wrapperEl, \"--swiper-centered-offset-before\", `${-snapGrid[0]}px`);\n (0, $f97f33853a605dba$export$2408f22a0fab9ae5)(wrapperEl, \"--swiper-centered-offset-after\", `${swiper.size / 2 - slidesSizesGrid[slidesSizesGrid.length - 1] / 2}px`);\n const addToSnapGrid = -swiper.snapGrid[0];\n const addToSlidesGrid = -swiper.slidesGrid[0];\n swiper.snapGrid = swiper.snapGrid.map((v)=>v + addToSnapGrid);\n swiper.slidesGrid = swiper.slidesGrid.map((v)=>v + addToSlidesGrid);\n }\n if (slidesLength !== previousSlidesLength) swiper.emit(\"slidesLengthChange\");\n if (snapGrid.length !== previousSnapGridLength) {\n if (swiper.params.watchOverflow) swiper.checkOverflow();\n swiper.emit(\"snapGridLengthChange\");\n }\n if (slidesGrid.length !== previousSlidesGridLength) swiper.emit(\"slidesGridLengthChange\");\n if (params.watchSlidesProgress) swiper.updateSlidesOffset();\n if (!isVirtual && !params.cssMode && (params.effect === \"slide\" || params.effect === \"fade\")) {\n const backFaceHiddenClass = `${params.containerModifierClass}backface-hidden`;\n const hasClassBackfaceClassAdded = swiper.el.classList.contains(backFaceHiddenClass);\n if (slidesLength <= params.maxBackfaceHiddenSlides) {\n if (!hasClassBackfaceClassAdded) swiper.el.classList.add(backFaceHiddenClass);\n } else if (hasClassBackfaceClassAdded) swiper.el.classList.remove(backFaceHiddenClass);\n }\n}\nfunction $1262f2e38e280703$var$updateAutoHeight(speed) {\n const swiper = this;\n const activeSlides = [];\n const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n let newHeight = 0;\n let i;\n if (typeof speed === \"number\") swiper.setTransition(speed);\n else if (speed === true) swiper.setTransition(swiper.params.speed);\n const getSlideByIndex = (index)=>{\n if (isVirtual) return swiper.slides[swiper.getSlideIndexByData(index)];\n return swiper.slides[index];\n };\n // Find slides currently in view\n if (swiper.params.slidesPerView !== \"auto\" && swiper.params.slidesPerView > 1) {\n if (swiper.params.centeredSlides) (swiper.visibleSlides || []).forEach((slide)=>{\n activeSlides.push(slide);\n });\n else for(i = 0; i < Math.ceil(swiper.params.slidesPerView); i += 1){\n const index = swiper.activeIndex + i;\n if (index > swiper.slides.length && !isVirtual) break;\n activeSlides.push(getSlideByIndex(index));\n }\n } else activeSlides.push(getSlideByIndex(swiper.activeIndex));\n // Find new height from highest slide in view\n for(i = 0; i < activeSlides.length; i += 1)if (typeof activeSlides[i] !== \"undefined\") {\n const height = activeSlides[i].offsetHeight;\n newHeight = height > newHeight ? height : newHeight;\n }\n // Update Height\n if (newHeight || newHeight === 0) swiper.wrapperEl.style.height = `${newHeight}px`;\n}\nfunction $1262f2e38e280703$var$updateSlidesOffset() {\n const swiper = this;\n const slides = swiper.slides;\n // eslint-disable-next-line\n const minusOffset = swiper.isElement ? swiper.isHorizontal() ? swiper.wrapperEl.offsetLeft : swiper.wrapperEl.offsetTop : 0;\n for(let i = 0; i < slides.length; i += 1)slides[i].swiperSlideOffset = (swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop) - minusOffset - swiper.cssOverflowAdjustment();\n}\nfunction $1262f2e38e280703$var$updateSlidesProgress(translate) {\n if (translate === void 0) translate = this && this.translate || 0;\n const swiper = this;\n const params = swiper.params;\n const { slides: slides, rtlTranslate: rtl, snapGrid: snapGrid } = swiper;\n if (slides.length === 0) return;\n if (typeof slides[0].swiperSlideOffset === \"undefined\") swiper.updateSlidesOffset();\n let offsetCenter = -translate;\n if (rtl) offsetCenter = translate;\n // Visible Slides\n slides.forEach((slideEl)=>{\n slideEl.classList.remove(params.slideVisibleClass);\n });\n swiper.visibleSlidesIndexes = [];\n swiper.visibleSlides = [];\n let spaceBetween = params.spaceBetween;\n if (typeof spaceBetween === \"string\" && spaceBetween.indexOf(\"%\") >= 0) spaceBetween = parseFloat(spaceBetween.replace(\"%\", \"\")) / 100 * swiper.size;\n else if (typeof spaceBetween === \"string\") spaceBetween = parseFloat(spaceBetween);\n for(let i = 0; i < slides.length; i += 1){\n const slide = slides[i];\n let slideOffset = slide.swiperSlideOffset;\n if (params.cssMode && params.centeredSlides) slideOffset -= slides[0].swiperSlideOffset;\n const slideProgress = (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);\n const originalSlideProgress = (offsetCenter - snapGrid[0] + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);\n const slideBefore = -(offsetCenter - slideOffset);\n const slideAfter = slideBefore + swiper.slidesSizesGrid[i];\n const isVisible = slideBefore >= 0 && slideBefore < swiper.size - 1 || slideAfter > 1 && slideAfter <= swiper.size || slideBefore <= 0 && slideAfter >= swiper.size;\n if (isVisible) {\n swiper.visibleSlides.push(slide);\n swiper.visibleSlidesIndexes.push(i);\n slides[i].classList.add(params.slideVisibleClass);\n }\n slide.progress = rtl ? -slideProgress : slideProgress;\n slide.originalProgress = rtl ? -originalSlideProgress : originalSlideProgress;\n }\n}\nfunction $1262f2e38e280703$var$updateProgress(translate) {\n const swiper = this;\n if (typeof translate === \"undefined\") {\n const multiplier = swiper.rtlTranslate ? -1 : 1;\n // eslint-disable-next-line\n translate = swiper && swiper.translate && swiper.translate * multiplier || 0;\n }\n const params = swiper.params;\n const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\n let { progress: progress, isBeginning: isBeginning, isEnd: isEnd, progressLoop: progressLoop } = swiper;\n const wasBeginning = isBeginning;\n const wasEnd = isEnd;\n if (translatesDiff === 0) {\n progress = 0;\n isBeginning = true;\n isEnd = true;\n } else {\n progress = (translate - swiper.minTranslate()) / translatesDiff;\n const isBeginningRounded = Math.abs(translate - swiper.minTranslate()) < 1;\n const isEndRounded = Math.abs(translate - swiper.maxTranslate()) < 1;\n isBeginning = isBeginningRounded || progress <= 0;\n isEnd = isEndRounded || progress >= 1;\n if (isBeginningRounded) progress = 0;\n if (isEndRounded) progress = 1;\n }\n if (params.loop) {\n const firstSlideIndex = swiper.getSlideIndexByData(0);\n const lastSlideIndex = swiper.getSlideIndexByData(swiper.slides.length - 1);\n const firstSlideTranslate = swiper.slidesGrid[firstSlideIndex];\n const lastSlideTranslate = swiper.slidesGrid[lastSlideIndex];\n const translateMax = swiper.slidesGrid[swiper.slidesGrid.length - 1];\n const translateAbs = Math.abs(translate);\n if (translateAbs >= firstSlideTranslate) progressLoop = (translateAbs - firstSlideTranslate) / translateMax;\n else progressLoop = (translateAbs + translateMax - lastSlideTranslate) / translateMax;\n if (progressLoop > 1) progressLoop -= 1;\n }\n Object.assign(swiper, {\n progress: progress,\n progressLoop: progressLoop,\n isBeginning: isBeginning,\n isEnd: isEnd\n });\n if (params.watchSlidesProgress || params.centeredSlides && params.autoHeight) swiper.updateSlidesProgress(translate);\n if (isBeginning && !wasBeginning) swiper.emit(\"reachBeginning toEdge\");\n if (isEnd && !wasEnd) swiper.emit(\"reachEnd toEdge\");\n if (wasBeginning && !isBeginning || wasEnd && !isEnd) swiper.emit(\"fromEdge\");\n swiper.emit(\"progress\", progress);\n}\nfunction $1262f2e38e280703$var$updateSlidesClasses() {\n const swiper = this;\n const { slides: slides, params: params, slidesEl: slidesEl, activeIndex: activeIndex } = swiper;\n const isVirtual = swiper.virtual && params.virtual.enabled;\n const getFilteredSlide = (selector)=>{\n return (0, $f97f33853a605dba$export$f1e1789686576879)(slidesEl, `.${params.slideClass}${selector}, swiper-slide${selector}`)[0];\n };\n slides.forEach((slideEl)=>{\n slideEl.classList.remove(params.slideActiveClass, params.slideNextClass, params.slidePrevClass);\n });\n let activeSlide;\n if (isVirtual) {\n if (params.loop) {\n let slideIndex = activeIndex - swiper.virtual.slidesBefore;\n if (slideIndex < 0) slideIndex = swiper.virtual.slides.length + slideIndex;\n if (slideIndex >= swiper.virtual.slides.length) slideIndex -= swiper.virtual.slides.length;\n activeSlide = getFilteredSlide(`[data-swiper-slide-index=\"${slideIndex}\"]`);\n } else activeSlide = getFilteredSlide(`[data-swiper-slide-index=\"${activeIndex}\"]`);\n } else activeSlide = slides[activeIndex];\n if (activeSlide) {\n // Active classes\n activeSlide.classList.add(params.slideActiveClass);\n // Next Slide\n let nextSlide = (0, $f97f33853a605dba$export$953cecd6e717a553)(activeSlide, `.${params.slideClass}, swiper-slide`)[0];\n if (params.loop && !nextSlide) nextSlide = slides[0];\n if (nextSlide) nextSlide.classList.add(params.slideNextClass);\n // Prev Slide\n let prevSlide = (0, $f97f33853a605dba$export$ae1af26003f05816)(activeSlide, `.${params.slideClass}, swiper-slide`)[0];\n params.loop;\n if (prevSlide) prevSlide.classList.add(params.slidePrevClass);\n }\n swiper.emitSlidesClasses();\n}\nconst $1262f2e38e280703$var$processLazyPreloader = (swiper, imageEl)=>{\n if (!swiper || swiper.destroyed || !swiper.params) return;\n const slideSelector = ()=>swiper.isElement ? `swiper-slide` : `.${swiper.params.slideClass}`;\n const slideEl = imageEl.closest(slideSelector());\n if (slideEl) {\n let lazyEl = slideEl.querySelector(`.${swiper.params.lazyPreloaderClass}`);\n if (!lazyEl && swiper.isElement) {\n if (slideEl.shadowRoot) lazyEl = slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`);\n else // init later\n requestAnimationFrame(()=>{\n if (slideEl.shadowRoot) {\n lazyEl = slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`);\n if (lazyEl) lazyEl.remove();\n }\n });\n }\n if (lazyEl) lazyEl.remove();\n }\n};\nconst $1262f2e38e280703$var$unlazy = (swiper, index)=>{\n if (!swiper.slides[index]) return;\n const imageEl = swiper.slides[index].querySelector('[loading=\"lazy\"]');\n if (imageEl) imageEl.removeAttribute(\"loading\");\n};\nconst $1262f2e38e280703$var$preload = (swiper)=>{\n if (!swiper || swiper.destroyed || !swiper.params) return;\n let amount = swiper.params.lazyPreloadPrevNext;\n const len = swiper.slides.length;\n if (!len || !amount || amount < 0) return;\n amount = Math.min(amount, len);\n const slidesPerView = swiper.params.slidesPerView === \"auto\" ? swiper.slidesPerViewDynamic() : Math.ceil(swiper.params.slidesPerView);\n const activeIndex = swiper.activeIndex;\n if (swiper.params.grid && swiper.params.grid.rows > 1) {\n const activeColumn = activeIndex;\n const preloadColumns = [\n activeColumn - amount\n ];\n preloadColumns.push(...Array.from({\n length: amount\n }).map((_, i)=>{\n return activeColumn + slidesPerView + i;\n }));\n swiper.slides.forEach((slideEl, i)=>{\n if (preloadColumns.includes(slideEl.column)) $1262f2e38e280703$var$unlazy(swiper, i);\n });\n return;\n }\n const slideIndexLastInView = activeIndex + slidesPerView - 1;\n if (swiper.params.rewind || swiper.params.loop) for(let i = activeIndex - amount; i <= slideIndexLastInView + amount; i += 1){\n const realIndex = (i % len + len) % len;\n if (realIndex < activeIndex || realIndex > slideIndexLastInView) $1262f2e38e280703$var$unlazy(swiper, realIndex);\n }\n else {\n for(let i = Math.max(activeIndex - amount, 0); i <= Math.min(slideIndexLastInView + amount, len - 1); i += 1)if (i !== activeIndex && (i > slideIndexLastInView || i < activeIndex)) $1262f2e38e280703$var$unlazy(swiper, i);\n }\n};\nfunction $1262f2e38e280703$var$getActiveIndexByTranslate(swiper) {\n const { slidesGrid: slidesGrid, params: params } = swiper;\n const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\n let activeIndex;\n for(let i = 0; i < slidesGrid.length; i += 1){\n if (typeof slidesGrid[i + 1] !== \"undefined\") {\n if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1] - (slidesGrid[i + 1] - slidesGrid[i]) / 2) activeIndex = i;\n else if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1]) activeIndex = i + 1;\n } else if (translate >= slidesGrid[i]) activeIndex = i;\n }\n // Normalize slideIndex\n if (params.normalizeSlideIndex) {\n if (activeIndex < 0 || typeof activeIndex === \"undefined\") activeIndex = 0;\n }\n return activeIndex;\n}\nfunction $1262f2e38e280703$var$updateActiveIndex(newActiveIndex) {\n const swiper = this;\n const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\n const { snapGrid: snapGrid, params: params, activeIndex: previousIndex, realIndex: previousRealIndex, snapIndex: previousSnapIndex } = swiper;\n let activeIndex = newActiveIndex;\n let snapIndex;\n const getVirtualRealIndex = (aIndex)=>{\n let realIndex = aIndex - swiper.virtual.slidesBefore;\n if (realIndex < 0) realIndex = swiper.virtual.slides.length + realIndex;\n if (realIndex >= swiper.virtual.slides.length) realIndex -= swiper.virtual.slides.length;\n return realIndex;\n };\n if (typeof activeIndex === \"undefined\") activeIndex = $1262f2e38e280703$var$getActiveIndexByTranslate(swiper);\n if (snapGrid.indexOf(translate) >= 0) snapIndex = snapGrid.indexOf(translate);\n else {\n const skip = Math.min(params.slidesPerGroupSkip, activeIndex);\n snapIndex = skip + Math.floor((activeIndex - skip) / params.slidesPerGroup);\n }\n if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;\n if (activeIndex === previousIndex) {\n if (snapIndex !== previousSnapIndex) {\n swiper.snapIndex = snapIndex;\n swiper.emit(\"snapIndexChange\");\n }\n if (swiper.params.loop && swiper.virtual && swiper.params.virtual.enabled) swiper.realIndex = getVirtualRealIndex(activeIndex);\n return;\n }\n // Get real index\n let realIndex;\n if (swiper.virtual && params.virtual.enabled && params.loop) realIndex = getVirtualRealIndex(activeIndex);\n else if (swiper.slides[activeIndex]) realIndex = parseInt(swiper.slides[activeIndex].getAttribute(\"data-swiper-slide-index\") || activeIndex, 10);\n else realIndex = activeIndex;\n Object.assign(swiper, {\n previousSnapIndex: previousSnapIndex,\n snapIndex: snapIndex,\n previousRealIndex: previousRealIndex,\n realIndex: realIndex,\n previousIndex: previousIndex,\n activeIndex: activeIndex\n });\n if (swiper.initialized) $1262f2e38e280703$var$preload(swiper);\n swiper.emit(\"activeIndexChange\");\n swiper.emit(\"snapIndexChange\");\n if (swiper.initialized || swiper.params.runCallbacksOnInit) {\n if (previousRealIndex !== realIndex) swiper.emit(\"realIndexChange\");\n swiper.emit(\"slideChange\");\n }\n}\nfunction $1262f2e38e280703$var$updateClickedSlide(el, path) {\n const swiper = this;\n const params = swiper.params;\n let slide = el.closest(`.${params.slideClass}, swiper-slide`);\n if (!slide && swiper.isElement && path && path.length > 1 && path.includes(el)) [\n ...path.slice(path.indexOf(el) + 1, path.length)\n ].forEach((pathEl)=>{\n if (!slide && pathEl.matches && pathEl.matches(`.${params.slideClass}, swiper-slide`)) slide = pathEl;\n });\n let slideFound = false;\n let slideIndex;\n if (slide) {\n for(let i = 0; i < swiper.slides.length; i += 1)if (swiper.slides[i] === slide) {\n slideFound = true;\n slideIndex = i;\n break;\n }\n }\n if (slide && slideFound) {\n swiper.clickedSlide = slide;\n if (swiper.virtual && swiper.params.virtual.enabled) swiper.clickedIndex = parseInt(slide.getAttribute(\"data-swiper-slide-index\"), 10);\n else swiper.clickedIndex = slideIndex;\n } else {\n swiper.clickedSlide = undefined;\n swiper.clickedIndex = undefined;\n return;\n }\n if (params.slideToClickedSlide && swiper.clickedIndex !== undefined && swiper.clickedIndex !== swiper.activeIndex) swiper.slideToClickedSlide();\n}\nvar $1262f2e38e280703$var$update = {\n updateSize: $1262f2e38e280703$var$updateSize,\n updateSlides: $1262f2e38e280703$var$updateSlides,\n updateAutoHeight: $1262f2e38e280703$var$updateAutoHeight,\n updateSlidesOffset: $1262f2e38e280703$var$updateSlidesOffset,\n updateSlidesProgress: $1262f2e38e280703$var$updateSlidesProgress,\n updateProgress: $1262f2e38e280703$var$updateProgress,\n updateSlidesClasses: $1262f2e38e280703$var$updateSlidesClasses,\n updateActiveIndex: $1262f2e38e280703$var$updateActiveIndex,\n updateClickedSlide: $1262f2e38e280703$var$updateClickedSlide\n};\nfunction $1262f2e38e280703$var$getSwiperTranslate(axis) {\n if (axis === void 0) axis = this.isHorizontal() ? \"x\" : \"y\";\n const swiper = this;\n const { params: params, rtlTranslate: rtl, translate: translate, wrapperEl: wrapperEl } = swiper;\n if (params.virtualTranslate) return rtl ? -translate : translate;\n if (params.cssMode) return translate;\n let currentTranslate = (0, $f97f33853a605dba$export$dda1d9f60106f0e9)(wrapperEl, axis);\n currentTranslate += swiper.cssOverflowAdjustment();\n if (rtl) currentTranslate = -currentTranslate;\n return currentTranslate || 0;\n}\nfunction $1262f2e38e280703$var$setTranslate(translate, byController) {\n const swiper = this;\n const { rtlTranslate: rtl, params: params, wrapperEl: wrapperEl, progress: progress } = swiper;\n let x = 0;\n let y = 0;\n const z = 0;\n if (swiper.isHorizontal()) x = rtl ? -translate : translate;\n else y = translate;\n if (params.roundLengths) {\n x = Math.floor(x);\n y = Math.floor(y);\n }\n swiper.previousTranslate = swiper.translate;\n swiper.translate = swiper.isHorizontal() ? x : y;\n if (params.cssMode) wrapperEl[swiper.isHorizontal() ? \"scrollLeft\" : \"scrollTop\"] = swiper.isHorizontal() ? -x : -y;\n else if (!params.virtualTranslate) {\n if (swiper.isHorizontal()) x -= swiper.cssOverflowAdjustment();\n else y -= swiper.cssOverflowAdjustment();\n wrapperEl.style.transform = `translate3d(${x}px, ${y}px, ${z}px)`;\n }\n // Check if we need to update progress\n let newProgress;\n const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\n if (translatesDiff === 0) newProgress = 0;\n else newProgress = (translate - swiper.minTranslate()) / translatesDiff;\n if (newProgress !== progress) swiper.updateProgress(translate);\n swiper.emit(\"setTranslate\", swiper.translate, byController);\n}\nfunction $1262f2e38e280703$var$minTranslate() {\n return -this.snapGrid[0];\n}\nfunction $1262f2e38e280703$var$maxTranslate() {\n return -this.snapGrid[this.snapGrid.length - 1];\n}\nfunction $1262f2e38e280703$var$translateTo(translate, speed, runCallbacks, translateBounds, internal) {\n if (translate === void 0) translate = 0;\n if (speed === void 0) speed = this.params.speed;\n if (runCallbacks === void 0) runCallbacks = true;\n if (translateBounds === void 0) translateBounds = true;\n const swiper = this;\n const { params: params, wrapperEl: wrapperEl } = swiper;\n if (swiper.animating && params.preventInteractionOnTransition) return false;\n const minTranslate = swiper.minTranslate();\n const maxTranslate = swiper.maxTranslate();\n let newTranslate;\n if (translateBounds && translate > minTranslate) newTranslate = minTranslate;\n else if (translateBounds && translate < maxTranslate) newTranslate = maxTranslate;\n else newTranslate = translate;\n // Update progress\n swiper.updateProgress(newTranslate);\n if (params.cssMode) {\n const isH = swiper.isHorizontal();\n if (speed === 0) wrapperEl[isH ? \"scrollLeft\" : \"scrollTop\"] = -newTranslate;\n else {\n if (!swiper.support.smoothScroll) {\n (0, $f97f33853a605dba$export$ffb5f4729a158638)({\n swiper: swiper,\n targetPosition: -newTranslate,\n side: isH ? \"left\" : \"top\"\n });\n return true;\n }\n wrapperEl.scrollTo({\n [isH ? \"left\" : \"top\"]: -newTranslate,\n behavior: \"smooth\"\n });\n }\n return true;\n }\n if (speed === 0) {\n swiper.setTransition(0);\n swiper.setTranslate(newTranslate);\n if (runCallbacks) {\n swiper.emit(\"beforeTransitionStart\", speed, internal);\n swiper.emit(\"transitionEnd\");\n }\n } else {\n swiper.setTransition(speed);\n swiper.setTranslate(newTranslate);\n if (runCallbacks) {\n swiper.emit(\"beforeTransitionStart\", speed, internal);\n swiper.emit(\"transitionStart\");\n }\n if (!swiper.animating) {\n swiper.animating = true;\n if (!swiper.onTranslateToWrapperTransitionEnd) swiper.onTranslateToWrapperTransitionEnd = function transitionEnd(e) {\n if (!swiper || swiper.destroyed) return;\n if (e.target !== this) return;\n swiper.wrapperEl.removeEventListener(\"transitionend\", swiper.onTranslateToWrapperTransitionEnd);\n swiper.onTranslateToWrapperTransitionEnd = null;\n delete swiper.onTranslateToWrapperTransitionEnd;\n if (runCallbacks) swiper.emit(\"transitionEnd\");\n };\n swiper.wrapperEl.addEventListener(\"transitionend\", swiper.onTranslateToWrapperTransitionEnd);\n }\n }\n return true;\n}\nvar $1262f2e38e280703$var$translate = {\n getTranslate: $1262f2e38e280703$var$getSwiperTranslate,\n setTranslate: $1262f2e38e280703$var$setTranslate,\n minTranslate: $1262f2e38e280703$var$minTranslate,\n maxTranslate: $1262f2e38e280703$var$maxTranslate,\n translateTo: $1262f2e38e280703$var$translateTo\n};\nfunction $1262f2e38e280703$var$setTransition(duration, byController) {\n const swiper = this;\n if (!swiper.params.cssMode) {\n swiper.wrapperEl.style.transitionDuration = `${duration}ms`;\n swiper.wrapperEl.style.transitionDelay = duration === 0 ? `0ms` : \"\";\n }\n swiper.emit(\"setTransition\", duration, byController);\n}\nfunction $1262f2e38e280703$var$transitionEmit(_ref) {\n let { swiper: swiper, runCallbacks: runCallbacks, direction: direction, step: step } = _ref;\n const { activeIndex: activeIndex, previousIndex: previousIndex } = swiper;\n let dir = direction;\n if (!dir) {\n if (activeIndex > previousIndex) dir = \"next\";\n else if (activeIndex < previousIndex) dir = \"prev\";\n else dir = \"reset\";\n }\n swiper.emit(`transition${step}`);\n if (runCallbacks && activeIndex !== previousIndex) {\n if (dir === \"reset\") {\n swiper.emit(`slideResetTransition${step}`);\n return;\n }\n swiper.emit(`slideChangeTransition${step}`);\n if (dir === \"next\") swiper.emit(`slideNextTransition${step}`);\n else swiper.emit(`slidePrevTransition${step}`);\n }\n}\nfunction $1262f2e38e280703$var$transitionStart(runCallbacks, direction) {\n if (runCallbacks === void 0) runCallbacks = true;\n const swiper = this;\n const { params: params } = swiper;\n if (params.cssMode) return;\n if (params.autoHeight) swiper.updateAutoHeight();\n $1262f2e38e280703$var$transitionEmit({\n swiper: swiper,\n runCallbacks: runCallbacks,\n direction: direction,\n step: \"Start\"\n });\n}\nfunction $1262f2e38e280703$var$transitionEnd(runCallbacks, direction) {\n if (runCallbacks === void 0) runCallbacks = true;\n const swiper = this;\n const { params: params } = swiper;\n swiper.animating = false;\n if (params.cssMode) return;\n swiper.setTransition(0);\n $1262f2e38e280703$var$transitionEmit({\n swiper: swiper,\n runCallbacks: runCallbacks,\n direction: direction,\n step: \"End\"\n });\n}\nvar $1262f2e38e280703$var$transition = {\n setTransition: $1262f2e38e280703$var$setTransition,\n transitionStart: $1262f2e38e280703$var$transitionStart,\n transitionEnd: $1262f2e38e280703$var$transitionEnd\n};\nfunction $1262f2e38e280703$var$slideTo(index, speed, runCallbacks, internal, initial) {\n if (index === void 0) index = 0;\n if (speed === void 0) speed = this.params.speed;\n if (runCallbacks === void 0) runCallbacks = true;\n if (typeof index === \"string\") index = parseInt(index, 10);\n const swiper = this;\n let slideIndex = index;\n if (slideIndex < 0) slideIndex = 0;\n const { params: params, snapGrid: snapGrid, slidesGrid: slidesGrid, previousIndex: previousIndex, activeIndex: activeIndex, rtlTranslate: rtl, wrapperEl: wrapperEl, enabled: enabled } = swiper;\n if (swiper.animating && params.preventInteractionOnTransition || !enabled && !internal && !initial) return false;\n const skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);\n let snapIndex = skip + Math.floor((slideIndex - skip) / swiper.params.slidesPerGroup);\n if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;\n const translate = -snapGrid[snapIndex];\n // Normalize slideIndex\n if (params.normalizeSlideIndex) for(let i = 0; i < slidesGrid.length; i += 1){\n const normalizedTranslate = -Math.floor(translate * 100);\n const normalizedGrid = Math.floor(slidesGrid[i] * 100);\n const normalizedGridNext = Math.floor(slidesGrid[i + 1] * 100);\n if (typeof slidesGrid[i + 1] !== \"undefined\") {\n if (normalizedTranslate >= normalizedGrid && normalizedTranslate < normalizedGridNext - (normalizedGridNext - normalizedGrid) / 2) slideIndex = i;\n else if (normalizedTranslate >= normalizedGrid && normalizedTranslate < normalizedGridNext) slideIndex = i + 1;\n } else if (normalizedTranslate >= normalizedGrid) slideIndex = i;\n }\n // Directions locks\n if (swiper.initialized && slideIndex !== activeIndex) {\n if (!swiper.allowSlideNext && (rtl ? translate > swiper.translate && translate > swiper.minTranslate() : translate < swiper.translate && translate < swiper.minTranslate())) return false;\n if (!swiper.allowSlidePrev && translate > swiper.translate && translate > swiper.maxTranslate()) {\n if ((activeIndex || 0) !== slideIndex) return false;\n }\n }\n if (slideIndex !== (previousIndex || 0) && runCallbacks) swiper.emit(\"beforeSlideChangeStart\");\n // Update progress\n swiper.updateProgress(translate);\n let direction;\n if (slideIndex > activeIndex) direction = \"next\";\n else if (slideIndex < activeIndex) direction = \"prev\";\n else direction = \"reset\";\n // Update Index\n if (rtl && -translate === swiper.translate || !rtl && translate === swiper.translate) {\n swiper.updateActiveIndex(slideIndex);\n // Update Height\n if (params.autoHeight) swiper.updateAutoHeight();\n swiper.updateSlidesClasses();\n if (params.effect !== \"slide\") swiper.setTranslate(translate);\n if (direction !== \"reset\") {\n swiper.transitionStart(runCallbacks, direction);\n swiper.transitionEnd(runCallbacks, direction);\n }\n return false;\n }\n if (params.cssMode) {\n const isH = swiper.isHorizontal();\n const t = rtl ? translate : -translate;\n if (speed === 0) {\n const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n if (isVirtual) {\n swiper.wrapperEl.style.scrollSnapType = \"none\";\n swiper._immediateVirtual = true;\n }\n if (isVirtual && !swiper._cssModeVirtualInitialSet && swiper.params.initialSlide > 0) {\n swiper._cssModeVirtualInitialSet = true;\n requestAnimationFrame(()=>{\n wrapperEl[isH ? \"scrollLeft\" : \"scrollTop\"] = t;\n });\n } else wrapperEl[isH ? \"scrollLeft\" : \"scrollTop\"] = t;\n if (isVirtual) requestAnimationFrame(()=>{\n swiper.wrapperEl.style.scrollSnapType = \"\";\n swiper._immediateVirtual = false;\n });\n } else {\n if (!swiper.support.smoothScroll) {\n (0, $f97f33853a605dba$export$ffb5f4729a158638)({\n swiper: swiper,\n targetPosition: t,\n side: isH ? \"left\" : \"top\"\n });\n return true;\n }\n wrapperEl.scrollTo({\n [isH ? \"left\" : \"top\"]: t,\n behavior: \"smooth\"\n });\n }\n return true;\n }\n swiper.setTransition(speed);\n swiper.setTranslate(translate);\n swiper.updateActiveIndex(slideIndex);\n swiper.updateSlidesClasses();\n swiper.emit(\"beforeTransitionStart\", speed, internal);\n swiper.transitionStart(runCallbacks, direction);\n if (speed === 0) swiper.transitionEnd(runCallbacks, direction);\n else if (!swiper.animating) {\n swiper.animating = true;\n if (!swiper.onSlideToWrapperTransitionEnd) swiper.onSlideToWrapperTransitionEnd = function transitionEnd(e) {\n if (!swiper || swiper.destroyed) return;\n if (e.target !== this) return;\n swiper.wrapperEl.removeEventListener(\"transitionend\", swiper.onSlideToWrapperTransitionEnd);\n swiper.onSlideToWrapperTransitionEnd = null;\n delete swiper.onSlideToWrapperTransitionEnd;\n swiper.transitionEnd(runCallbacks, direction);\n };\n swiper.wrapperEl.addEventListener(\"transitionend\", swiper.onSlideToWrapperTransitionEnd);\n }\n return true;\n}\nfunction $1262f2e38e280703$var$slideToLoop(index, speed, runCallbacks, internal) {\n if (index === void 0) index = 0;\n if (speed === void 0) speed = this.params.speed;\n if (runCallbacks === void 0) runCallbacks = true;\n if (typeof index === \"string\") {\n const indexAsNumber = parseInt(index, 10);\n index = indexAsNumber;\n }\n const swiper = this;\n let newIndex = index;\n if (swiper.params.loop) {\n if (swiper.virtual && swiper.params.virtual.enabled) // eslint-disable-next-line\n newIndex = newIndex + swiper.virtual.slidesBefore;\n else newIndex = swiper.getSlideIndexByData(newIndex);\n }\n return swiper.slideTo(newIndex, speed, runCallbacks, internal);\n}\n/* eslint no-unused-vars: \"off\" */ function $1262f2e38e280703$var$slideNext(speed, runCallbacks, internal) {\n if (speed === void 0) speed = this.params.speed;\n if (runCallbacks === void 0) runCallbacks = true;\n const swiper = this;\n const { enabled: enabled, params: params, animating: animating } = swiper;\n if (!enabled) return swiper;\n let perGroup = params.slidesPerGroup;\n if (params.slidesPerView === \"auto\" && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) perGroup = Math.max(swiper.slidesPerViewDynamic(\"current\", true), 1);\n const increment = swiper.activeIndex < params.slidesPerGroupSkip ? 1 : perGroup;\n const isVirtual = swiper.virtual && params.virtual.enabled;\n if (params.loop) {\n if (animating && !isVirtual && params.loopPreventsSliding) return false;\n swiper.loopFix({\n direction: \"next\"\n });\n // eslint-disable-next-line\n swiper._clientLeft = swiper.wrapperEl.clientLeft;\n if (swiper.activeIndex === swiper.slides.length - 1 && params.cssMode) {\n requestAnimationFrame(()=>{\n swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);\n });\n return true;\n }\n }\n if (params.rewind && swiper.isEnd) return swiper.slideTo(0, speed, runCallbacks, internal);\n return swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);\n}\n/* eslint no-unused-vars: \"off\" */ function $1262f2e38e280703$var$slidePrev(speed, runCallbacks, internal) {\n if (speed === void 0) speed = this.params.speed;\n if (runCallbacks === void 0) runCallbacks = true;\n const swiper = this;\n const { params: params, snapGrid: snapGrid, slidesGrid: slidesGrid, rtlTranslate: rtlTranslate, enabled: enabled, animating: animating } = swiper;\n if (!enabled) return swiper;\n const isVirtual = swiper.virtual && params.virtual.enabled;\n if (params.loop) {\n if (animating && !isVirtual && params.loopPreventsSliding) return false;\n swiper.loopFix({\n direction: \"prev\"\n });\n // eslint-disable-next-line\n swiper._clientLeft = swiper.wrapperEl.clientLeft;\n }\n const translate = rtlTranslate ? swiper.translate : -swiper.translate;\n function normalize(val) {\n if (val < 0) return -Math.floor(Math.abs(val));\n return Math.floor(val);\n }\n const normalizedTranslate = normalize(translate);\n const normalizedSnapGrid = snapGrid.map((val)=>normalize(val));\n let prevSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate) - 1];\n if (typeof prevSnap === \"undefined\" && params.cssMode) {\n let prevSnapIndex;\n snapGrid.forEach((snap, snapIndex)=>{\n if (normalizedTranslate >= snap) // prevSnap = snap;\n prevSnapIndex = snapIndex;\n });\n if (typeof prevSnapIndex !== \"undefined\") prevSnap = snapGrid[prevSnapIndex > 0 ? prevSnapIndex - 1 : prevSnapIndex];\n }\n let prevIndex = 0;\n if (typeof prevSnap !== \"undefined\") {\n prevIndex = slidesGrid.indexOf(prevSnap);\n if (prevIndex < 0) prevIndex = swiper.activeIndex - 1;\n if (params.slidesPerView === \"auto\" && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) {\n prevIndex = prevIndex - swiper.slidesPerViewDynamic(\"previous\", true) + 1;\n prevIndex = Math.max(prevIndex, 0);\n }\n }\n if (params.rewind && swiper.isBeginning) {\n const lastIndex = swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;\n return swiper.slideTo(lastIndex, speed, runCallbacks, internal);\n } else if (params.loop && swiper.activeIndex === 0 && params.cssMode) {\n requestAnimationFrame(()=>{\n swiper.slideTo(prevIndex, speed, runCallbacks, internal);\n });\n return true;\n }\n return swiper.slideTo(prevIndex, speed, runCallbacks, internal);\n}\n/* eslint no-unused-vars: \"off\" */ function $1262f2e38e280703$var$slideReset(speed, runCallbacks, internal) {\n if (speed === void 0) speed = this.params.speed;\n if (runCallbacks === void 0) runCallbacks = true;\n const swiper = this;\n return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);\n}\n/* eslint no-unused-vars: \"off\" */ function $1262f2e38e280703$var$slideToClosest(speed, runCallbacks, internal, threshold) {\n if (speed === void 0) speed = this.params.speed;\n if (runCallbacks === void 0) runCallbacks = true;\n if (threshold === void 0) threshold = 0.5;\n const swiper = this;\n let index = swiper.activeIndex;\n const skip = Math.min(swiper.params.slidesPerGroupSkip, index);\n const snapIndex = skip + Math.floor((index - skip) / swiper.params.slidesPerGroup);\n const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\n if (translate >= swiper.snapGrid[snapIndex]) {\n // The current translate is on or after the current snap index, so the choice\n // is between the current index and the one after it.\n const currentSnap = swiper.snapGrid[snapIndex];\n const nextSnap = swiper.snapGrid[snapIndex + 1];\n if (translate - currentSnap > (nextSnap - currentSnap) * threshold) index += swiper.params.slidesPerGroup;\n } else {\n // The current translate is before the current snap index, so the choice\n // is between the current index and the one before it.\n const prevSnap = swiper.snapGrid[snapIndex - 1];\n const currentSnap = swiper.snapGrid[snapIndex];\n if (translate - prevSnap <= (currentSnap - prevSnap) * threshold) index -= swiper.params.slidesPerGroup;\n }\n index = Math.max(index, 0);\n index = Math.min(index, swiper.slidesGrid.length - 1);\n return swiper.slideTo(index, speed, runCallbacks, internal);\n}\nfunction $1262f2e38e280703$var$slideToClickedSlide() {\n const swiper = this;\n const { params: params, slidesEl: slidesEl } = swiper;\n const slidesPerView = params.slidesPerView === \"auto\" ? swiper.slidesPerViewDynamic() : params.slidesPerView;\n let slideToIndex = swiper.clickedIndex;\n let realIndex;\n const slideSelector = swiper.isElement ? `swiper-slide` : `.${params.slideClass}`;\n if (params.loop) {\n if (swiper.animating) return;\n realIndex = parseInt(swiper.clickedSlide.getAttribute(\"data-swiper-slide-index\"), 10);\n if (params.centeredSlides) {\n if (slideToIndex < swiper.loopedSlides - slidesPerView / 2 || slideToIndex > swiper.slides.length - swiper.loopedSlides + slidesPerView / 2) {\n swiper.loopFix();\n slideToIndex = swiper.getSlideIndex((0, $f97f33853a605dba$export$f1e1789686576879)(slidesEl, `${slideSelector}[data-swiper-slide-index=\"${realIndex}\"]`)[0]);\n (0, $f97f33853a605dba$export$7ccc53e8f1e7dfc5)(()=>{\n swiper.slideTo(slideToIndex);\n });\n } else swiper.slideTo(slideToIndex);\n } else if (slideToIndex > swiper.slides.length - slidesPerView) {\n swiper.loopFix();\n slideToIndex = swiper.getSlideIndex((0, $f97f33853a605dba$export$f1e1789686576879)(slidesEl, `${slideSelector}[data-swiper-slide-index=\"${realIndex}\"]`)[0]);\n (0, $f97f33853a605dba$export$7ccc53e8f1e7dfc5)(()=>{\n swiper.slideTo(slideToIndex);\n });\n } else swiper.slideTo(slideToIndex);\n } else swiper.slideTo(slideToIndex);\n}\nvar $1262f2e38e280703$var$slide = {\n slideTo: $1262f2e38e280703$var$slideTo,\n slideToLoop: $1262f2e38e280703$var$slideToLoop,\n slideNext: $1262f2e38e280703$var$slideNext,\n slidePrev: $1262f2e38e280703$var$slidePrev,\n slideReset: $1262f2e38e280703$var$slideReset,\n slideToClosest: $1262f2e38e280703$var$slideToClosest,\n slideToClickedSlide: $1262f2e38e280703$var$slideToClickedSlide\n};\nfunction $1262f2e38e280703$var$loopCreate(slideRealIndex) {\n const swiper = this;\n const { params: params, slidesEl: slidesEl } = swiper;\n if (!params.loop || swiper.virtual && swiper.params.virtual.enabled) return;\n const slides = (0, $f97f33853a605dba$export$f1e1789686576879)(slidesEl, `.${params.slideClass}, swiper-slide`);\n slides.forEach((el, index)=>{\n el.setAttribute(\"data-swiper-slide-index\", index);\n });\n swiper.loopFix({\n slideRealIndex: slideRealIndex,\n direction: params.centeredSlides ? undefined : \"next\"\n });\n}\nfunction $1262f2e38e280703$var$loopFix(_temp) {\n let { slideRealIndex: slideRealIndex, slideTo: slideTo = true, direction: direction, setTranslate: setTranslate, activeSlideIndex: activeSlideIndex, byController: byController, byMousewheel: byMousewheel } = _temp === void 0 ? {} : _temp;\n const swiper = this;\n if (!swiper.params.loop) return;\n swiper.emit(\"beforeLoopFix\");\n const { slides: slides, allowSlidePrev: allowSlidePrev, allowSlideNext: allowSlideNext, slidesEl: slidesEl, params: params } = swiper;\n swiper.allowSlidePrev = true;\n swiper.allowSlideNext = true;\n if (swiper.virtual && params.virtual.enabled) {\n if (slideTo) {\n if (!params.centeredSlides && swiper.snapIndex === 0) swiper.slideTo(swiper.virtual.slides.length, 0, false, true);\n else if (params.centeredSlides && swiper.snapIndex < params.slidesPerView) swiper.slideTo(swiper.virtual.slides.length + swiper.snapIndex, 0, false, true);\n else if (swiper.snapIndex === swiper.snapGrid.length - 1) swiper.slideTo(swiper.virtual.slidesBefore, 0, false, true);\n }\n swiper.allowSlidePrev = allowSlidePrev;\n swiper.allowSlideNext = allowSlideNext;\n swiper.emit(\"loopFix\");\n return;\n }\n const slidesPerView = params.slidesPerView === \"auto\" ? swiper.slidesPerViewDynamic() : Math.ceil(parseFloat(params.slidesPerView, 10));\n let loopedSlides = params.loopedSlides || slidesPerView;\n if (loopedSlides % params.slidesPerGroup !== 0) loopedSlides += params.slidesPerGroup - loopedSlides % params.slidesPerGroup;\n swiper.loopedSlides = loopedSlides;\n const prependSlidesIndexes = [];\n const appendSlidesIndexes = [];\n let activeIndex = swiper.activeIndex;\n if (typeof activeSlideIndex === \"undefined\") activeSlideIndex = swiper.getSlideIndex(swiper.slides.filter((el)=>el.classList.contains(params.slideActiveClass))[0]);\n else activeIndex = activeSlideIndex;\n const isNext = direction === \"next\" || !direction;\n const isPrev = direction === \"prev\" || !direction;\n let slidesPrepended = 0;\n let slidesAppended = 0;\n // prepend last slides before start\n if (activeSlideIndex < loopedSlides) {\n slidesPrepended = Math.max(loopedSlides - activeSlideIndex, params.slidesPerGroup);\n for(let i = 0; i < loopedSlides - activeSlideIndex; i += 1){\n const index = i - Math.floor(i / slides.length) * slides.length;\n prependSlidesIndexes.push(slides.length - index - 1);\n }\n } else if (activeSlideIndex /* + slidesPerView */ > swiper.slides.length - loopedSlides * 2) {\n slidesAppended = Math.max(activeSlideIndex - (swiper.slides.length - loopedSlides * 2), params.slidesPerGroup);\n for(let i = 0; i < slidesAppended; i += 1){\n const index = i - Math.floor(i / slides.length) * slides.length;\n appendSlidesIndexes.push(index);\n }\n }\n if (isPrev) prependSlidesIndexes.forEach((index)=>{\n swiper.slides[index].swiperLoopMoveDOM = true;\n slidesEl.prepend(swiper.slides[index]);\n swiper.slides[index].swiperLoopMoveDOM = false;\n });\n if (isNext) appendSlidesIndexes.forEach((index)=>{\n swiper.slides[index].swiperLoopMoveDOM = true;\n slidesEl.append(swiper.slides[index]);\n swiper.slides[index].swiperLoopMoveDOM = false;\n });\n swiper.recalcSlides();\n if (params.slidesPerView === \"auto\") swiper.updateSlides();\n if (params.watchSlidesProgress) swiper.updateSlidesOffset();\n if (slideTo) {\n if (prependSlidesIndexes.length > 0 && isPrev) {\n if (typeof slideRealIndex === \"undefined\") {\n const currentSlideTranslate = swiper.slidesGrid[activeIndex];\n const newSlideTranslate = swiper.slidesGrid[activeIndex + slidesPrepended];\n const diff = newSlideTranslate - currentSlideTranslate;\n if (byMousewheel) swiper.setTranslate(swiper.translate - diff);\n else {\n swiper.slideTo(activeIndex + slidesPrepended, 0, false, true);\n if (setTranslate) {\n swiper.touches[swiper.isHorizontal() ? \"startX\" : \"startY\"] += diff;\n swiper.touchEventsData.currentTranslate = swiper.translate;\n }\n }\n } else if (setTranslate) {\n swiper.slideToLoop(slideRealIndex, 0, false, true);\n swiper.touchEventsData.currentTranslate = swiper.translate;\n }\n } else if (appendSlidesIndexes.length > 0 && isNext) {\n if (typeof slideRealIndex === \"undefined\") {\n const currentSlideTranslate = swiper.slidesGrid[activeIndex];\n const newSlideTranslate = swiper.slidesGrid[activeIndex - slidesAppended];\n const diff = newSlideTranslate - currentSlideTranslate;\n if (byMousewheel) swiper.setTranslate(swiper.translate - diff);\n else {\n swiper.slideTo(activeIndex - slidesAppended, 0, false, true);\n if (setTranslate) {\n swiper.touches[swiper.isHorizontal() ? \"startX\" : \"startY\"] += diff;\n swiper.touchEventsData.currentTranslate = swiper.translate;\n }\n }\n } else swiper.slideToLoop(slideRealIndex, 0, false, true);\n }\n }\n swiper.allowSlidePrev = allowSlidePrev;\n swiper.allowSlideNext = allowSlideNext;\n if (swiper.controller && swiper.controller.control && !byController) {\n const loopParams = {\n slideRealIndex: slideRealIndex,\n direction: direction,\n setTranslate: setTranslate,\n activeSlideIndex: activeSlideIndex,\n byController: true\n };\n if (Array.isArray(swiper.controller.control)) swiper.controller.control.forEach((c)=>{\n if (!c.destroyed && c.params.loop) c.loopFix({\n ...loopParams,\n slideTo: c.params.slidesPerView === params.slidesPerView ? slideTo : false\n });\n });\n else if (swiper.controller.control instanceof swiper.constructor && swiper.controller.control.params.loop) swiper.controller.control.loopFix({\n ...loopParams,\n slideTo: swiper.controller.control.params.slidesPerView === params.slidesPerView ? slideTo : false\n });\n }\n swiper.emit(\"loopFix\");\n}\nfunction $1262f2e38e280703$var$loopDestroy() {\n const swiper = this;\n const { params: params, slidesEl: slidesEl } = swiper;\n if (!params.loop || swiper.virtual && swiper.params.virtual.enabled) return;\n swiper.recalcSlides();\n const newSlidesOrder = [];\n swiper.slides.forEach((slideEl)=>{\n const index = typeof slideEl.swiperSlideIndex === \"undefined\" ? slideEl.getAttribute(\"data-swiper-slide-index\") * 1 : slideEl.swiperSlideIndex;\n newSlidesOrder[index] = slideEl;\n });\n swiper.slides.forEach((slideEl)=>{\n slideEl.removeAttribute(\"data-swiper-slide-index\");\n });\n newSlidesOrder.forEach((slideEl)=>{\n slidesEl.append(slideEl);\n });\n swiper.recalcSlides();\n swiper.slideTo(swiper.realIndex, 0);\n}\nvar $1262f2e38e280703$var$loop = {\n loopCreate: $1262f2e38e280703$var$loopCreate,\n loopFix: $1262f2e38e280703$var$loopFix,\n loopDestroy: $1262f2e38e280703$var$loopDestroy\n};\nfunction $1262f2e38e280703$var$setGrabCursor(moving) {\n const swiper = this;\n if (!swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;\n const el = swiper.params.touchEventsTarget === \"container\" ? swiper.el : swiper.wrapperEl;\n if (swiper.isElement) swiper.__preventObserver__ = true;\n el.style.cursor = \"move\";\n el.style.cursor = moving ? \"grabbing\" : \"grab\";\n if (swiper.isElement) requestAnimationFrame(()=>{\n swiper.__preventObserver__ = false;\n });\n}\nfunction $1262f2e38e280703$var$unsetGrabCursor() {\n const swiper = this;\n if (swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;\n if (swiper.isElement) swiper.__preventObserver__ = true;\n swiper[swiper.params.touchEventsTarget === \"container\" ? \"el\" : \"wrapperEl\"].style.cursor = \"\";\n if (swiper.isElement) requestAnimationFrame(()=>{\n swiper.__preventObserver__ = false;\n });\n}\nvar $1262f2e38e280703$var$grabCursor = {\n setGrabCursor: $1262f2e38e280703$var$setGrabCursor,\n unsetGrabCursor: $1262f2e38e280703$var$unsetGrabCursor\n};\n// Modified from https://stackoverflow.com/questions/54520554/custom-element-getrootnode-closest-function-crossing-multiple-parent-shadowd\nfunction $1262f2e38e280703$var$closestElement(selector, base) {\n if (base === void 0) base = this;\n function __closestFrom(el) {\n if (!el || el === (0, $0868fe5596dee114$export$39b482c5e57630a8)() || el === (0, $0868fe5596dee114$export$407448d2b89b1813)()) return null;\n if (el.assignedSlot) el = el.assignedSlot;\n const found = el.closest(selector);\n if (!found && !el.getRootNode) return null;\n return found || __closestFrom(el.getRootNode().host);\n }\n return __closestFrom(base);\n}\nfunction $1262f2e38e280703$var$onTouchStart(event) {\n const swiper = this;\n const document1 = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n const data = swiper.touchEventsData;\n data.evCache.push(event);\n const { params: params, touches: touches, enabled: enabled } = swiper;\n if (!enabled) return;\n if (!params.simulateTouch && event.pointerType === \"mouse\") return;\n if (swiper.animating && params.preventInteractionOnTransition) return;\n if (!swiper.animating && params.cssMode && params.loop) swiper.loopFix();\n let e = event;\n if (e.originalEvent) e = e.originalEvent;\n let targetEl = e.target;\n if (params.touchEventsTarget === \"wrapper\") {\n if (!swiper.wrapperEl.contains(targetEl)) return;\n }\n if (\"which\" in e && e.which === 3) return;\n if (\"button\" in e && e.button > 0) return;\n if (data.isTouched && data.isMoved) return;\n // change target el for shadow root component\n const swipingClassHasValue = !!params.noSwipingClass && params.noSwipingClass !== \"\";\n // eslint-disable-next-line\n const eventPath = event.composedPath ? event.composedPath() : event.path;\n if (swipingClassHasValue && e.target && e.target.shadowRoot && eventPath) targetEl = eventPath[0];\n const noSwipingSelector = params.noSwipingSelector ? params.noSwipingSelector : `.${params.noSwipingClass}`;\n const isTargetShadow = !!(e.target && e.target.shadowRoot);\n // use closestElement for shadow root element to get the actual closest for nested shadow root element\n if (params.noSwiping && (isTargetShadow ? $1262f2e38e280703$var$closestElement(noSwipingSelector, targetEl) : targetEl.closest(noSwipingSelector))) {\n swiper.allowClick = true;\n return;\n }\n if (params.swipeHandler) {\n if (!targetEl.closest(params.swipeHandler)) return;\n }\n touches.currentX = e.pageX;\n touches.currentY = e.pageY;\n const startX = touches.currentX;\n const startY = touches.currentY;\n // Do NOT start if iOS edge swipe is detected. Otherwise iOS app cannot swipe-to-go-back anymore\n const edgeSwipeDetection = params.edgeSwipeDetection || params.iOSEdgeSwipeDetection;\n const edgeSwipeThreshold = params.edgeSwipeThreshold || params.iOSEdgeSwipeThreshold;\n if (edgeSwipeDetection && (startX <= edgeSwipeThreshold || startX >= window1.innerWidth - edgeSwipeThreshold)) {\n if (edgeSwipeDetection === \"prevent\") event.preventDefault();\n else return;\n }\n Object.assign(data, {\n isTouched: true,\n isMoved: false,\n allowTouchCallbacks: true,\n isScrolling: undefined,\n startMoving: undefined\n });\n touches.startX = startX;\n touches.startY = startY;\n data.touchStartTime = (0, $f97f33853a605dba$export$4368d992c4eafac0)();\n swiper.allowClick = true;\n swiper.updateSize();\n swiper.swipeDirection = undefined;\n if (params.threshold > 0) data.allowThresholdMove = false;\n let preventDefault = true;\n if (targetEl.matches(data.focusableElements)) {\n preventDefault = false;\n if (targetEl.nodeName === \"SELECT\") data.isTouched = false;\n }\n if (document1.activeElement && document1.activeElement.matches(data.focusableElements) && document1.activeElement !== targetEl) document1.activeElement.blur();\n const shouldPreventDefault = preventDefault && swiper.allowTouchMove && params.touchStartPreventDefault;\n if ((params.touchStartForcePreventDefault || shouldPreventDefault) && !targetEl.isContentEditable) e.preventDefault();\n if (params.freeMode && params.freeMode.enabled && swiper.freeMode && swiper.animating && !params.cssMode) swiper.freeMode.onTouchStart();\n swiper.emit(\"touchStart\", e);\n}\nfunction $1262f2e38e280703$var$onTouchMove(event) {\n const document1 = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n const swiper = this;\n const data = swiper.touchEventsData;\n const { params: params, touches: touches, rtlTranslate: rtl, enabled: enabled } = swiper;\n if (!enabled) return;\n if (!params.simulateTouch && event.pointerType === \"mouse\") return;\n let e = event;\n if (e.originalEvent) e = e.originalEvent;\n if (!data.isTouched) {\n if (data.startMoving && data.isScrolling) swiper.emit(\"touchMoveOpposite\", e);\n return;\n }\n const pointerIndex = data.evCache.findIndex((cachedEv)=>cachedEv.pointerId === e.pointerId);\n if (pointerIndex >= 0) data.evCache[pointerIndex] = e;\n const targetTouch = data.evCache.length > 1 ? data.evCache[0] : e;\n const pageX = targetTouch.pageX;\n const pageY = targetTouch.pageY;\n if (e.preventedByNestedSwiper) {\n touches.startX = pageX;\n touches.startY = pageY;\n return;\n }\n if (!swiper.allowTouchMove) {\n if (!e.target.matches(data.focusableElements)) swiper.allowClick = false;\n if (data.isTouched) {\n Object.assign(touches, {\n startX: pageX,\n startY: pageY,\n prevX: swiper.touches.currentX,\n prevY: swiper.touches.currentY,\n currentX: pageX,\n currentY: pageY\n });\n data.touchStartTime = (0, $f97f33853a605dba$export$4368d992c4eafac0)();\n }\n return;\n }\n if (params.touchReleaseOnEdges && !params.loop) {\n if (swiper.isVertical()) // Vertical\n {\n if (pageY < touches.startY && swiper.translate <= swiper.maxTranslate() || pageY > touches.startY && swiper.translate >= swiper.minTranslate()) {\n data.isTouched = false;\n data.isMoved = false;\n return;\n }\n } else if (pageX < touches.startX && swiper.translate <= swiper.maxTranslate() || pageX > touches.startX && swiper.translate >= swiper.minTranslate()) return;\n }\n if (document1.activeElement) {\n if (e.target === document1.activeElement && e.target.matches(data.focusableElements)) {\n data.isMoved = true;\n swiper.allowClick = false;\n return;\n }\n }\n if (data.allowTouchCallbacks) swiper.emit(\"touchMove\", e);\n if (e.targetTouches && e.targetTouches.length > 1) return;\n touches.currentX = pageX;\n touches.currentY = pageY;\n const diffX = touches.currentX - touches.startX;\n const diffY = touches.currentY - touches.startY;\n if (swiper.params.threshold && Math.sqrt(diffX ** 2 + diffY ** 2) < swiper.params.threshold) return;\n if (typeof data.isScrolling === \"undefined\") {\n let touchAngle;\n if (swiper.isHorizontal() && touches.currentY === touches.startY || swiper.isVertical() && touches.currentX === touches.startX) data.isScrolling = false;\n else // eslint-disable-next-line\n if (diffX * diffX + diffY * diffY >= 25) {\n touchAngle = Math.atan2(Math.abs(diffY), Math.abs(diffX)) * 180 / Math.PI;\n data.isScrolling = swiper.isHorizontal() ? touchAngle > params.touchAngle : 90 - touchAngle > params.touchAngle;\n }\n }\n if (data.isScrolling) swiper.emit(\"touchMoveOpposite\", e);\n if (typeof data.startMoving === \"undefined\") {\n if (touches.currentX !== touches.startX || touches.currentY !== touches.startY) data.startMoving = true;\n }\n if (data.isScrolling || swiper.zoom && swiper.params.zoom && swiper.params.zoom.enabled && data.evCache.length > 1) {\n data.isTouched = false;\n return;\n }\n if (!data.startMoving) return;\n swiper.allowClick = false;\n if (!params.cssMode && e.cancelable) e.preventDefault();\n if (params.touchMoveStopPropagation && !params.nested) e.stopPropagation();\n let diff = swiper.isHorizontal() ? diffX : diffY;\n let touchesDiff = swiper.isHorizontal() ? touches.currentX - touches.previousX : touches.currentY - touches.previousY;\n if (params.oneWayMovement) {\n diff = Math.abs(diff) * (rtl ? 1 : -1);\n touchesDiff = Math.abs(touchesDiff) * (rtl ? 1 : -1);\n }\n touches.diff = diff;\n diff *= params.touchRatio;\n if (rtl) {\n diff = -diff;\n touchesDiff = -touchesDiff;\n }\n const prevTouchesDirection = swiper.touchesDirection;\n swiper.swipeDirection = diff > 0 ? \"prev\" : \"next\";\n swiper.touchesDirection = touchesDiff > 0 ? \"prev\" : \"next\";\n const isLoop = swiper.params.loop && !params.cssMode;\n const allowLoopFix = swiper.swipeDirection === \"next\" && swiper.allowSlideNext || swiper.swipeDirection === \"prev\" && swiper.allowSlidePrev;\n if (!data.isMoved) {\n if (isLoop && allowLoopFix) swiper.loopFix({\n direction: swiper.swipeDirection\n });\n data.startTranslate = swiper.getTranslate();\n swiper.setTransition(0);\n if (swiper.animating) {\n const evt = new window.CustomEvent(\"transitionend\", {\n bubbles: true,\n cancelable: true\n });\n swiper.wrapperEl.dispatchEvent(evt);\n }\n data.allowMomentumBounce = false;\n // Grab Cursor\n if (params.grabCursor && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) swiper.setGrabCursor(true);\n swiper.emit(\"sliderFirstMove\", e);\n }\n let loopFixed;\n if (data.isMoved && prevTouchesDirection !== swiper.touchesDirection && isLoop && allowLoopFix && Math.abs(diff) >= 1) {\n // need another loop fix\n swiper.loopFix({\n direction: swiper.swipeDirection,\n setTranslate: true\n });\n loopFixed = true;\n }\n swiper.emit(\"sliderMove\", e);\n data.isMoved = true;\n data.currentTranslate = diff + data.startTranslate;\n let disableParentSwiper = true;\n let resistanceRatio = params.resistanceRatio;\n if (params.touchReleaseOnEdges) resistanceRatio = 0;\n if (diff > 0) {\n if (isLoop && allowLoopFix && !loopFixed && data.currentTranslate > (params.centeredSlides ? swiper.minTranslate() - swiper.size / 2 : swiper.minTranslate())) swiper.loopFix({\n direction: \"prev\",\n setTranslate: true,\n activeSlideIndex: 0\n });\n if (data.currentTranslate > swiper.minTranslate()) {\n disableParentSwiper = false;\n if (params.resistance) data.currentTranslate = swiper.minTranslate() - 1 + (-swiper.minTranslate() + data.startTranslate + diff) ** resistanceRatio;\n }\n } else if (diff < 0) {\n if (isLoop && allowLoopFix && !loopFixed && data.currentTranslate < (params.centeredSlides ? swiper.maxTranslate() + swiper.size / 2 : swiper.maxTranslate())) swiper.loopFix({\n direction: \"next\",\n setTranslate: true,\n activeSlideIndex: swiper.slides.length - (params.slidesPerView === \"auto\" ? swiper.slidesPerViewDynamic() : Math.ceil(parseFloat(params.slidesPerView, 10)))\n });\n if (data.currentTranslate < swiper.maxTranslate()) {\n disableParentSwiper = false;\n if (params.resistance) data.currentTranslate = swiper.maxTranslate() + 1 - (swiper.maxTranslate() - data.startTranslate - diff) ** resistanceRatio;\n }\n }\n if (disableParentSwiper) e.preventedByNestedSwiper = true;\n // Directions locks\n if (!swiper.allowSlideNext && swiper.swipeDirection === \"next\" && data.currentTranslate < data.startTranslate) data.currentTranslate = data.startTranslate;\n if (!swiper.allowSlidePrev && swiper.swipeDirection === \"prev\" && data.currentTranslate > data.startTranslate) data.currentTranslate = data.startTranslate;\n if (!swiper.allowSlidePrev && !swiper.allowSlideNext) data.currentTranslate = data.startTranslate;\n // Threshold\n if (params.threshold > 0) {\n if (Math.abs(diff) > params.threshold || data.allowThresholdMove) {\n if (!data.allowThresholdMove) {\n data.allowThresholdMove = true;\n touches.startX = touches.currentX;\n touches.startY = touches.currentY;\n data.currentTranslate = data.startTranslate;\n touches.diff = swiper.isHorizontal() ? touches.currentX - touches.startX : touches.currentY - touches.startY;\n return;\n }\n } else {\n data.currentTranslate = data.startTranslate;\n return;\n }\n }\n if (!params.followFinger || params.cssMode) return;\n // Update active index in free mode\n if (params.freeMode && params.freeMode.enabled && swiper.freeMode || params.watchSlidesProgress) {\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n if (params.freeMode && params.freeMode.enabled && swiper.freeMode) swiper.freeMode.onTouchMove();\n // Update progress\n swiper.updateProgress(data.currentTranslate);\n // Update translate\n swiper.setTranslate(data.currentTranslate);\n}\nfunction $1262f2e38e280703$var$onTouchEnd(event) {\n const swiper = this;\n const data = swiper.touchEventsData;\n const pointerIndex = data.evCache.findIndex((cachedEv)=>cachedEv.pointerId === event.pointerId);\n if (pointerIndex >= 0) data.evCache.splice(pointerIndex, 1);\n if ([\n \"pointercancel\",\n \"pointerout\",\n \"pointerleave\",\n \"contextmenu\"\n ].includes(event.type)) {\n const proceed = [\n \"pointercancel\",\n \"contextmenu\"\n ].includes(event.type) && (swiper.browser.isSafari || swiper.browser.isWebView);\n if (!proceed) return;\n }\n const { params: params, touches: touches, rtlTranslate: rtl, slidesGrid: slidesGrid, enabled: enabled } = swiper;\n if (!enabled) return;\n if (!params.simulateTouch && event.pointerType === \"mouse\") return;\n let e = event;\n if (e.originalEvent) e = e.originalEvent;\n if (data.allowTouchCallbacks) swiper.emit(\"touchEnd\", e);\n data.allowTouchCallbacks = false;\n if (!data.isTouched) {\n if (data.isMoved && params.grabCursor) swiper.setGrabCursor(false);\n data.isMoved = false;\n data.startMoving = false;\n return;\n }\n // Return Grab Cursor\n if (params.grabCursor && data.isMoved && data.isTouched && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) swiper.setGrabCursor(false);\n // Time diff\n const touchEndTime = (0, $f97f33853a605dba$export$4368d992c4eafac0)();\n const timeDiff = touchEndTime - data.touchStartTime;\n // Tap, doubleTap, Click\n if (swiper.allowClick) {\n const pathTree = e.path || e.composedPath && e.composedPath();\n swiper.updateClickedSlide(pathTree && pathTree[0] || e.target, pathTree);\n swiper.emit(\"tap click\", e);\n if (timeDiff < 300 && touchEndTime - data.lastClickTime < 300) swiper.emit(\"doubleTap doubleClick\", e);\n }\n data.lastClickTime = (0, $f97f33853a605dba$export$4368d992c4eafac0)();\n (0, $f97f33853a605dba$export$7ccc53e8f1e7dfc5)(()=>{\n if (!swiper.destroyed) swiper.allowClick = true;\n });\n if (!data.isTouched || !data.isMoved || !swiper.swipeDirection || touches.diff === 0 || data.currentTranslate === data.startTranslate) {\n data.isTouched = false;\n data.isMoved = false;\n data.startMoving = false;\n return;\n }\n data.isTouched = false;\n data.isMoved = false;\n data.startMoving = false;\n let currentPos;\n if (params.followFinger) currentPos = rtl ? swiper.translate : -swiper.translate;\n else currentPos = -data.currentTranslate;\n if (params.cssMode) return;\n if (params.freeMode && params.freeMode.enabled) {\n swiper.freeMode.onTouchEnd({\n currentPos: currentPos\n });\n return;\n }\n // Find current slide\n let stopIndex = 0;\n let groupSize = swiper.slidesSizesGrid[0];\n for(let i = 0; i < slidesGrid.length; i += i < params.slidesPerGroupSkip ? 1 : params.slidesPerGroup){\n const increment = i < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;\n if (typeof slidesGrid[i + increment] !== \"undefined\") {\n if (currentPos >= slidesGrid[i] && currentPos < slidesGrid[i + increment]) {\n stopIndex = i;\n groupSize = slidesGrid[i + increment] - slidesGrid[i];\n }\n } else if (currentPos >= slidesGrid[i]) {\n stopIndex = i;\n groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];\n }\n }\n let rewindFirstIndex = null;\n let rewindLastIndex = null;\n if (params.rewind) {\n if (swiper.isBeginning) rewindLastIndex = params.virtual && params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;\n else if (swiper.isEnd) rewindFirstIndex = 0;\n }\n // Find current slide size\n const ratio = (currentPos - slidesGrid[stopIndex]) / groupSize;\n const increment = stopIndex < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;\n if (timeDiff > params.longSwipesMs) {\n // Long touches\n if (!params.longSwipes) {\n swiper.slideTo(swiper.activeIndex);\n return;\n }\n if (swiper.swipeDirection === \"next\") {\n if (ratio >= params.longSwipesRatio) swiper.slideTo(params.rewind && swiper.isEnd ? rewindFirstIndex : stopIndex + increment);\n else swiper.slideTo(stopIndex);\n }\n if (swiper.swipeDirection === \"prev\") {\n if (ratio > 1 - params.longSwipesRatio) swiper.slideTo(stopIndex + increment);\n else if (rewindLastIndex !== null && ratio < 0 && Math.abs(ratio) > params.longSwipesRatio) swiper.slideTo(rewindLastIndex);\n else swiper.slideTo(stopIndex);\n }\n } else {\n // Short swipes\n if (!params.shortSwipes) {\n swiper.slideTo(swiper.activeIndex);\n return;\n }\n const isNavButtonTarget = swiper.navigation && (e.target === swiper.navigation.nextEl || e.target === swiper.navigation.prevEl);\n if (!isNavButtonTarget) {\n if (swiper.swipeDirection === \"next\") swiper.slideTo(rewindFirstIndex !== null ? rewindFirstIndex : stopIndex + increment);\n if (swiper.swipeDirection === \"prev\") swiper.slideTo(rewindLastIndex !== null ? rewindLastIndex : stopIndex);\n } else if (e.target === swiper.navigation.nextEl) swiper.slideTo(stopIndex + increment);\n else swiper.slideTo(stopIndex);\n }\n}\nfunction $1262f2e38e280703$var$onResize() {\n const swiper = this;\n const { params: params, el: el } = swiper;\n if (el && el.offsetWidth === 0) return;\n // Breakpoints\n if (params.breakpoints) swiper.setBreakpoint();\n // Save locks\n const { allowSlideNext: allowSlideNext, allowSlidePrev: allowSlidePrev, snapGrid: snapGrid } = swiper;\n const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n // Disable locks on resize\n swiper.allowSlideNext = true;\n swiper.allowSlidePrev = true;\n swiper.updateSize();\n swiper.updateSlides();\n swiper.updateSlidesClasses();\n const isVirtualLoop = isVirtual && params.loop;\n if ((params.slidesPerView === \"auto\" || params.slidesPerView > 1) && swiper.isEnd && !swiper.isBeginning && !swiper.params.centeredSlides && !isVirtualLoop) swiper.slideTo(swiper.slides.length - 1, 0, false, true);\n else if (swiper.params.loop && !isVirtual) swiper.slideToLoop(swiper.realIndex, 0, false, true);\n else swiper.slideTo(swiper.activeIndex, 0, false, true);\n if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {\n clearTimeout(swiper.autoplay.resizeTimeout);\n swiper.autoplay.resizeTimeout = setTimeout(()=>{\n if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) swiper.autoplay.resume();\n }, 500);\n }\n // Return locks after resize\n swiper.allowSlidePrev = allowSlidePrev;\n swiper.allowSlideNext = allowSlideNext;\n if (swiper.params.watchOverflow && snapGrid !== swiper.snapGrid) swiper.checkOverflow();\n}\nfunction $1262f2e38e280703$var$onClick(e) {\n const swiper = this;\n if (!swiper.enabled) return;\n if (!swiper.allowClick) {\n if (swiper.params.preventClicks) e.preventDefault();\n if (swiper.params.preventClicksPropagation && swiper.animating) {\n e.stopPropagation();\n e.stopImmediatePropagation();\n }\n }\n}\nfunction $1262f2e38e280703$var$onScroll() {\n const swiper = this;\n const { wrapperEl: wrapperEl, rtlTranslate: rtlTranslate, enabled: enabled } = swiper;\n if (!enabled) return;\n swiper.previousTranslate = swiper.translate;\n if (swiper.isHorizontal()) swiper.translate = -wrapperEl.scrollLeft;\n else swiper.translate = -wrapperEl.scrollTop;\n // eslint-disable-next-line\n if (swiper.translate === 0) swiper.translate = 0;\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n let newProgress;\n const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\n if (translatesDiff === 0) newProgress = 0;\n else newProgress = (swiper.translate - swiper.minTranslate()) / translatesDiff;\n if (newProgress !== swiper.progress) swiper.updateProgress(rtlTranslate ? -swiper.translate : swiper.translate);\n swiper.emit(\"setTranslate\", swiper.translate, false);\n}\nfunction $1262f2e38e280703$var$onLoad(e) {\n const swiper = this;\n $1262f2e38e280703$var$processLazyPreloader(swiper, e.target);\n if (swiper.params.cssMode || swiper.params.slidesPerView !== \"auto\" && !swiper.params.autoHeight) return;\n swiper.update();\n}\nlet $1262f2e38e280703$var$dummyEventAttached = false;\nfunction $1262f2e38e280703$var$dummyEventListener() {}\nconst $1262f2e38e280703$var$events = (swiper, method)=>{\n const document1 = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n const { params: params, el: el, wrapperEl: wrapperEl, device: device } = swiper;\n const capture = !!params.nested;\n const domMethod = method === \"on\" ? \"addEventListener\" : \"removeEventListener\";\n const swiperMethod = method;\n // Touch Events\n el[domMethod](\"pointerdown\", swiper.onTouchStart, {\n passive: false\n });\n document1[domMethod](\"pointermove\", swiper.onTouchMove, {\n passive: false,\n capture: capture\n });\n document1[domMethod](\"pointerup\", swiper.onTouchEnd, {\n passive: true\n });\n document1[domMethod](\"pointercancel\", swiper.onTouchEnd, {\n passive: true\n });\n document1[domMethod](\"pointerout\", swiper.onTouchEnd, {\n passive: true\n });\n document1[domMethod](\"pointerleave\", swiper.onTouchEnd, {\n passive: true\n });\n document1[domMethod](\"contextmenu\", swiper.onTouchEnd, {\n passive: true\n });\n // Prevent Links Clicks\n if (params.preventClicks || params.preventClicksPropagation) el[domMethod](\"click\", swiper.onClick, true);\n if (params.cssMode) wrapperEl[domMethod](\"scroll\", swiper.onScroll);\n // Resize handler\n if (params.updateOnWindowResize) swiper[swiperMethod](device.ios || device.android ? \"resize orientationchange observerUpdate\" : \"resize observerUpdate\", $1262f2e38e280703$var$onResize, true);\n else swiper[swiperMethod](\"observerUpdate\", $1262f2e38e280703$var$onResize, true);\n // Images loader\n el[domMethod](\"load\", swiper.onLoad, {\n capture: true\n });\n};\nfunction $1262f2e38e280703$var$attachEvents() {\n const swiper = this;\n const document1 = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n const { params: params } = swiper;\n swiper.onTouchStart = $1262f2e38e280703$var$onTouchStart.bind(swiper);\n swiper.onTouchMove = $1262f2e38e280703$var$onTouchMove.bind(swiper);\n swiper.onTouchEnd = $1262f2e38e280703$var$onTouchEnd.bind(swiper);\n if (params.cssMode) swiper.onScroll = $1262f2e38e280703$var$onScroll.bind(swiper);\n swiper.onClick = $1262f2e38e280703$var$onClick.bind(swiper);\n swiper.onLoad = $1262f2e38e280703$var$onLoad.bind(swiper);\n if (!$1262f2e38e280703$var$dummyEventAttached) {\n document1.addEventListener(\"touchstart\", $1262f2e38e280703$var$dummyEventListener);\n $1262f2e38e280703$var$dummyEventAttached = true;\n }\n $1262f2e38e280703$var$events(swiper, \"on\");\n}\nfunction $1262f2e38e280703$var$detachEvents() {\n const swiper = this;\n $1262f2e38e280703$var$events(swiper, \"off\");\n}\nvar $1262f2e38e280703$var$events$1 = {\n attachEvents: $1262f2e38e280703$var$attachEvents,\n detachEvents: $1262f2e38e280703$var$detachEvents\n};\nconst $1262f2e38e280703$var$isGridEnabled = (swiper, params)=>{\n return swiper.grid && params.grid && params.grid.rows > 1;\n};\nfunction $1262f2e38e280703$var$setBreakpoint() {\n const swiper = this;\n const { realIndex: realIndex, initialized: initialized, params: params, el: el } = swiper;\n const breakpoints = params.breakpoints;\n if (!breakpoints || breakpoints && Object.keys(breakpoints).length === 0) return;\n // Get breakpoint for window width and update parameters\n const breakpoint = swiper.getBreakpoint(breakpoints, swiper.params.breakpointsBase, swiper.el);\n if (!breakpoint || swiper.currentBreakpoint === breakpoint) return;\n const breakpointOnlyParams = breakpoint in breakpoints ? breakpoints[breakpoint] : undefined;\n const breakpointParams = breakpointOnlyParams || swiper.originalParams;\n const wasMultiRow = $1262f2e38e280703$var$isGridEnabled(swiper, params);\n const isMultiRow = $1262f2e38e280703$var$isGridEnabled(swiper, breakpointParams);\n const wasEnabled = params.enabled;\n if (wasMultiRow && !isMultiRow) {\n el.classList.remove(`${params.containerModifierClass}grid`, `${params.containerModifierClass}grid-column`);\n swiper.emitContainerClasses();\n } else if (!wasMultiRow && isMultiRow) {\n el.classList.add(`${params.containerModifierClass}grid`);\n if (breakpointParams.grid.fill && breakpointParams.grid.fill === \"column\" || !breakpointParams.grid.fill && params.grid.fill === \"column\") el.classList.add(`${params.containerModifierClass}grid-column`);\n swiper.emitContainerClasses();\n }\n // Toggle navigation, pagination, scrollbar\n [\n \"navigation\",\n \"pagination\",\n \"scrollbar\"\n ].forEach((prop)=>{\n if (typeof breakpointParams[prop] === \"undefined\") return;\n const wasModuleEnabled = params[prop] && params[prop].enabled;\n const isModuleEnabled = breakpointParams[prop] && breakpointParams[prop].enabled;\n if (wasModuleEnabled && !isModuleEnabled) swiper[prop].disable();\n if (!wasModuleEnabled && isModuleEnabled) swiper[prop].enable();\n });\n const directionChanged = breakpointParams.direction && breakpointParams.direction !== params.direction;\n const needsReLoop = params.loop && (breakpointParams.slidesPerView !== params.slidesPerView || directionChanged);\n const wasLoop = params.loop;\n if (directionChanged && initialized) swiper.changeDirection();\n (0, $f97f33853a605dba$export$9e5f44173e64f162)(swiper.params, breakpointParams);\n const isEnabled = swiper.params.enabled;\n const hasLoop = swiper.params.loop;\n Object.assign(swiper, {\n allowTouchMove: swiper.params.allowTouchMove,\n allowSlideNext: swiper.params.allowSlideNext,\n allowSlidePrev: swiper.params.allowSlidePrev\n });\n if (wasEnabled && !isEnabled) swiper.disable();\n else if (!wasEnabled && isEnabled) swiper.enable();\n swiper.currentBreakpoint = breakpoint;\n swiper.emit(\"_beforeBreakpoint\", breakpointParams);\n if (initialized) {\n if (needsReLoop) {\n swiper.loopDestroy();\n swiper.loopCreate(realIndex);\n swiper.updateSlides();\n } else if (!wasLoop && hasLoop) {\n swiper.loopCreate(realIndex);\n swiper.updateSlides();\n } else if (wasLoop && !hasLoop) swiper.loopDestroy();\n }\n swiper.emit(\"breakpoint\", breakpointParams);\n}\nfunction $1262f2e38e280703$var$getBreakpoint(breakpoints, base, containerEl) {\n if (base === void 0) base = \"window\";\n if (!breakpoints || base === \"container\" && !containerEl) return undefined;\n let breakpoint = false;\n const window1 = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n const currentHeight = base === \"window\" ? window1.innerHeight : containerEl.clientHeight;\n const points = Object.keys(breakpoints).map((point)=>{\n if (typeof point === \"string\" && point.indexOf(\"@\") === 0) {\n const minRatio = parseFloat(point.substr(1));\n const value = currentHeight * minRatio;\n return {\n value: value,\n point: point\n };\n }\n return {\n value: point,\n point: point\n };\n });\n points.sort((a, b)=>parseInt(a.value, 10) - parseInt(b.value, 10));\n for(let i = 0; i < points.length; i += 1){\n const { point: point, value: value } = points[i];\n if (base === \"window\") {\n if (window1.matchMedia(`(min-width: ${value}px)`).matches) breakpoint = point;\n } else if (value <= containerEl.clientWidth) breakpoint = point;\n }\n return breakpoint || \"max\";\n}\nvar $1262f2e38e280703$var$breakpoints = {\n setBreakpoint: $1262f2e38e280703$var$setBreakpoint,\n getBreakpoint: $1262f2e38e280703$var$getBreakpoint\n};\nfunction $1262f2e38e280703$var$prepareClasses(entries, prefix) {\n const resultClasses = [];\n entries.forEach((item)=>{\n if (typeof item === \"object\") Object.keys(item).forEach((classNames)=>{\n if (item[classNames]) resultClasses.push(prefix + classNames);\n });\n else if (typeof item === \"string\") resultClasses.push(prefix + item);\n });\n return resultClasses;\n}\nfunction $1262f2e38e280703$var$addClasses() {\n const swiper = this;\n const { classNames: classNames, params: params, rtl: rtl, el: el, device: device } = swiper;\n // prettier-ignore\n const suffixes = $1262f2e38e280703$var$prepareClasses([\n \"initialized\",\n params.direction,\n {\n \"free-mode\": swiper.params.freeMode && params.freeMode.enabled\n },\n {\n \"autoheight\": params.autoHeight\n },\n {\n \"rtl\": rtl\n },\n {\n \"grid\": params.grid && params.grid.rows > 1\n },\n {\n \"grid-column\": params.grid && params.grid.rows > 1 && params.grid.fill === \"column\"\n },\n {\n \"android\": device.android\n },\n {\n \"ios\": device.ios\n },\n {\n \"css-mode\": params.cssMode\n },\n {\n \"centered\": params.cssMode && params.centeredSlides\n },\n {\n \"watch-progress\": params.watchSlidesProgress\n }\n ], params.containerModifierClass);\n classNames.push(...suffixes);\n el.classList.add(...classNames);\n swiper.emitContainerClasses();\n}\nfunction $1262f2e38e280703$var$removeClasses() {\n const swiper = this;\n const { el: el, classNames: classNames } = swiper;\n el.classList.remove(...classNames);\n swiper.emitContainerClasses();\n}\nvar $1262f2e38e280703$var$classes = {\n addClasses: $1262f2e38e280703$var$addClasses,\n removeClasses: $1262f2e38e280703$var$removeClasses\n};\nfunction $1262f2e38e280703$var$checkOverflow() {\n const swiper = this;\n const { isLocked: wasLocked, params: params } = swiper;\n const { slidesOffsetBefore: slidesOffsetBefore } = params;\n if (slidesOffsetBefore) {\n const lastSlideIndex = swiper.slides.length - 1;\n const lastSlideRightEdge = swiper.slidesGrid[lastSlideIndex] + swiper.slidesSizesGrid[lastSlideIndex] + slidesOffsetBefore * 2;\n swiper.isLocked = swiper.size > lastSlideRightEdge;\n } else swiper.isLocked = swiper.snapGrid.length === 1;\n if (params.allowSlideNext === true) swiper.allowSlideNext = !swiper.isLocked;\n if (params.allowSlidePrev === true) swiper.allowSlidePrev = !swiper.isLocked;\n if (wasLocked && wasLocked !== swiper.isLocked) swiper.isEnd = false;\n if (wasLocked !== swiper.isLocked) swiper.emit(swiper.isLocked ? \"lock\" : \"unlock\");\n}\nvar $1262f2e38e280703$var$checkOverflow$1 = {\n checkOverflow: $1262f2e38e280703$var$checkOverflow\n};\nvar $1262f2e38e280703$export$4368d992c4eafac0 = {\n init: true,\n direction: \"horizontal\",\n oneWayMovement: false,\n touchEventsTarget: \"wrapper\",\n initialSlide: 0,\n speed: 300,\n cssMode: false,\n updateOnWindowResize: true,\n resizeObserver: true,\n nested: false,\n createElements: false,\n enabled: true,\n focusableElements: \"input, select, option, textarea, button, video, label\",\n // Overrides\n width: null,\n height: null,\n //\n preventInteractionOnTransition: false,\n // ssr\n userAgent: null,\n url: null,\n // To support iOS's swipe-to-go-back gesture (when being used in-app).\n edgeSwipeDetection: false,\n edgeSwipeThreshold: 20,\n // Autoheight\n autoHeight: false,\n // Set wrapper width\n setWrapperSize: false,\n // Virtual Translate\n virtualTranslate: false,\n // Effects\n effect: \"slide\",\n // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'\n // Breakpoints\n breakpoints: undefined,\n breakpointsBase: \"window\",\n // Slides grid\n spaceBetween: 0,\n slidesPerView: 1,\n slidesPerGroup: 1,\n slidesPerGroupSkip: 0,\n slidesPerGroupAuto: false,\n centeredSlides: false,\n centeredSlidesBounds: false,\n slidesOffsetBefore: 0,\n // in px\n slidesOffsetAfter: 0,\n // in px\n normalizeSlideIndex: true,\n centerInsufficientSlides: false,\n // Disable swiper and hide navigation when container not overflow\n watchOverflow: true,\n // Round length\n roundLengths: false,\n // Touches\n touchRatio: 1,\n touchAngle: 45,\n simulateTouch: true,\n shortSwipes: true,\n longSwipes: true,\n longSwipesRatio: 0.5,\n longSwipesMs: 300,\n followFinger: true,\n allowTouchMove: true,\n threshold: 5,\n touchMoveStopPropagation: false,\n touchStartPreventDefault: true,\n touchStartForcePreventDefault: false,\n touchReleaseOnEdges: false,\n // Unique Navigation Elements\n uniqueNavElements: true,\n // Resistance\n resistance: true,\n resistanceRatio: 0.85,\n // Progress\n watchSlidesProgress: false,\n // Cursor\n grabCursor: false,\n // Clicks\n preventClicks: true,\n preventClicksPropagation: true,\n slideToClickedSlide: false,\n // loop\n loop: false,\n loopedSlides: null,\n loopPreventsSliding: true,\n // rewind\n rewind: false,\n // Swiping/no swiping\n allowSlidePrev: true,\n allowSlideNext: true,\n swipeHandler: null,\n // '.swipe-handler',\n noSwiping: true,\n noSwipingClass: \"swiper-no-swiping\",\n noSwipingSelector: null,\n // Passive Listeners\n passiveListeners: true,\n maxBackfaceHiddenSlides: 10,\n // NS\n containerModifierClass: \"swiper-\",\n // NEW\n slideClass: \"swiper-slide\",\n slideActiveClass: \"swiper-slide-active\",\n slideVisibleClass: \"swiper-slide-visible\",\n slideNextClass: \"swiper-slide-next\",\n slidePrevClass: \"swiper-slide-prev\",\n wrapperClass: \"swiper-wrapper\",\n lazyPreloaderClass: \"swiper-lazy-preloader\",\n lazyPreloadPrevNext: 0,\n // Callbacks\n runCallbacksOnInit: true,\n // Internals\n _emitClasses: false\n};\nfunction $1262f2e38e280703$var$moduleExtendParams(params, allModulesParams) {\n return function extendParams(obj) {\n if (obj === void 0) obj = {};\n const moduleParamName = Object.keys(obj)[0];\n const moduleParams = obj[moduleParamName];\n if (typeof moduleParams !== \"object\" || moduleParams === null) {\n (0, $f97f33853a605dba$export$9e5f44173e64f162)(allModulesParams, obj);\n return;\n }\n if (params[moduleParamName] === true) params[moduleParamName] = {\n enabled: true\n };\n if (moduleParamName === \"navigation\" && params[moduleParamName] && params[moduleParamName].enabled && !params[moduleParamName].prevEl && !params[moduleParamName].nextEl) params[moduleParamName].auto = true;\n if ([\n \"pagination\",\n \"scrollbar\"\n ].indexOf(moduleParamName) >= 0 && params[moduleParamName] && params[moduleParamName].enabled && !params[moduleParamName].el) params[moduleParamName].auto = true;\n if (!(moduleParamName in params && \"enabled\" in moduleParams)) {\n (0, $f97f33853a605dba$export$9e5f44173e64f162)(allModulesParams, obj);\n return;\n }\n if (typeof params[moduleParamName] === \"object\" && !(\"enabled\" in params[moduleParamName])) params[moduleParamName].enabled = true;\n if (!params[moduleParamName]) params[moduleParamName] = {\n enabled: false\n };\n (0, $f97f33853a605dba$export$9e5f44173e64f162)(allModulesParams, obj);\n };\n}\n/* eslint no-param-reassign: \"off\" */ const $1262f2e38e280703$var$prototypes = {\n eventsEmitter: $1262f2e38e280703$var$eventsEmitter,\n update: $1262f2e38e280703$var$update,\n translate: $1262f2e38e280703$var$translate,\n transition: $1262f2e38e280703$var$transition,\n slide: $1262f2e38e280703$var$slide,\n loop: $1262f2e38e280703$var$loop,\n grabCursor: $1262f2e38e280703$var$grabCursor,\n events: $1262f2e38e280703$var$events$1,\n breakpoints: $1262f2e38e280703$var$breakpoints,\n checkOverflow: $1262f2e38e280703$var$checkOverflow$1,\n classes: $1262f2e38e280703$var$classes\n};\nconst $1262f2e38e280703$var$extendedDefaults = {};\nclass $1262f2e38e280703$export$25ce5a424b770e84 {\n constructor(){\n let el;\n let params;\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];\n if (args.length === 1 && args[0].constructor && Object.prototype.toString.call(args[0]).slice(8, -1) === \"Object\") params = args[0];\n else [el, params] = args;\n if (!params) params = {};\n params = (0, $f97f33853a605dba$export$9e5f44173e64f162)({}, params);\n if (el && !params.el) params.el = el;\n const document1 = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n if (params.el && typeof params.el === \"string\" && document1.querySelectorAll(params.el).length > 1) {\n const swipers = [];\n document1.querySelectorAll(params.el).forEach((containerEl)=>{\n const newParams = (0, $f97f33853a605dba$export$9e5f44173e64f162)({}, params, {\n el: containerEl\n });\n swipers.push(new $1262f2e38e280703$export$25ce5a424b770e84(newParams));\n });\n // eslint-disable-next-line no-constructor-return\n return swipers;\n }\n // Swiper Instance\n const swiper = this;\n swiper.__swiper__ = true;\n swiper.support = $1262f2e38e280703$var$getSupport();\n swiper.device = $1262f2e38e280703$var$getDevice({\n userAgent: params.userAgent\n });\n swiper.browser = $1262f2e38e280703$var$getBrowser();\n swiper.eventsListeners = {};\n swiper.eventsAnyListeners = [];\n swiper.modules = [\n ...swiper.__modules__\n ];\n if (params.modules && Array.isArray(params.modules)) swiper.modules.push(...params.modules);\n const allModulesParams = {};\n swiper.modules.forEach((mod)=>{\n mod({\n params: params,\n swiper: swiper,\n extendParams: $1262f2e38e280703$var$moduleExtendParams(params, allModulesParams),\n on: swiper.on.bind(swiper),\n once: swiper.once.bind(swiper),\n off: swiper.off.bind(swiper),\n emit: swiper.emit.bind(swiper)\n });\n });\n // Extend defaults with modules params\n const swiperParams = (0, $f97f33853a605dba$export$9e5f44173e64f162)({}, $1262f2e38e280703$export$4368d992c4eafac0, allModulesParams);\n // Extend defaults with passed params\n swiper.params = (0, $f97f33853a605dba$export$9e5f44173e64f162)({}, swiperParams, $1262f2e38e280703$var$extendedDefaults, params);\n swiper.originalParams = (0, $f97f33853a605dba$export$9e5f44173e64f162)({}, swiper.params);\n swiper.passedParams = (0, $f97f33853a605dba$export$9e5f44173e64f162)({}, params);\n // add event listeners\n if (swiper.params && swiper.params.on) Object.keys(swiper.params.on).forEach((eventName)=>{\n swiper.on(eventName, swiper.params.on[eventName]);\n });\n if (swiper.params && swiper.params.onAny) swiper.onAny(swiper.params.onAny);\n // Extend Swiper\n Object.assign(swiper, {\n enabled: swiper.params.enabled,\n el: el,\n // Classes\n classNames: [],\n // Slides\n slides: [],\n slidesGrid: [],\n snapGrid: [],\n slidesSizesGrid: [],\n // isDirection\n isHorizontal () {\n return swiper.params.direction === \"horizontal\";\n },\n isVertical () {\n return swiper.params.direction === \"vertical\";\n },\n // Indexes\n activeIndex: 0,\n realIndex: 0,\n //\n isBeginning: true,\n isEnd: false,\n // Props\n translate: 0,\n previousTranslate: 0,\n progress: 0,\n velocity: 0,\n animating: false,\n cssOverflowAdjustment () {\n // Returns 0 unless `translate` is > 2**23\n // Should be subtracted from css values to prevent overflow\n return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;\n },\n // Locks\n allowSlideNext: swiper.params.allowSlideNext,\n allowSlidePrev: swiper.params.allowSlidePrev,\n // Touch Events\n touchEventsData: {\n isTouched: undefined,\n isMoved: undefined,\n allowTouchCallbacks: undefined,\n touchStartTime: undefined,\n isScrolling: undefined,\n currentTranslate: undefined,\n startTranslate: undefined,\n allowThresholdMove: undefined,\n // Form elements to match\n focusableElements: swiper.params.focusableElements,\n // Last click time\n lastClickTime: 0,\n clickTimeout: undefined,\n // Velocities\n velocities: [],\n allowMomentumBounce: undefined,\n startMoving: undefined,\n evCache: []\n },\n // Clicks\n allowClick: true,\n // Touches\n allowTouchMove: swiper.params.allowTouchMove,\n touches: {\n startX: 0,\n startY: 0,\n currentX: 0,\n currentY: 0,\n diff: 0\n },\n // Images\n imagesToLoad: [],\n imagesLoaded: 0\n });\n swiper.emit(\"_swiper\");\n // Init\n if (swiper.params.init) swiper.init();\n // Return app instance\n // eslint-disable-next-line no-constructor-return\n return swiper;\n }\n getSlideIndex(slideEl) {\n const { slidesEl: slidesEl, params: params } = this;\n const slides = (0, $f97f33853a605dba$export$f1e1789686576879)(slidesEl, `.${params.slideClass}, swiper-slide`);\n const firstSlideIndex = (0, $f97f33853a605dba$export$39b482c5e57630a8)(slides[0]);\n return (0, $f97f33853a605dba$export$39b482c5e57630a8)(slideEl) - firstSlideIndex;\n }\n getSlideIndexByData(index) {\n return this.getSlideIndex(this.slides.filter((slideEl)=>slideEl.getAttribute(\"data-swiper-slide-index\") * 1 === index)[0]);\n }\n recalcSlides() {\n const swiper = this;\n const { slidesEl: slidesEl, params: params } = swiper;\n swiper.slides = (0, $f97f33853a605dba$export$f1e1789686576879)(slidesEl, `.${params.slideClass}, swiper-slide`);\n }\n enable() {\n const swiper = this;\n if (swiper.enabled) return;\n swiper.enabled = true;\n if (swiper.params.grabCursor) swiper.setGrabCursor();\n swiper.emit(\"enable\");\n }\n disable() {\n const swiper = this;\n if (!swiper.enabled) return;\n swiper.enabled = false;\n if (swiper.params.grabCursor) swiper.unsetGrabCursor();\n swiper.emit(\"disable\");\n }\n setProgress(progress, speed) {\n const swiper = this;\n progress = Math.min(Math.max(progress, 0), 1);\n const min = swiper.minTranslate();\n const max = swiper.maxTranslate();\n const current = (max - min) * progress + min;\n swiper.translateTo(current, typeof speed === \"undefined\" ? 0 : speed);\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n emitContainerClasses() {\n const swiper = this;\n if (!swiper.params._emitClasses || !swiper.el) return;\n const cls = swiper.el.className.split(\" \").filter((className)=>{\n return className.indexOf(\"swiper\") === 0 || className.indexOf(swiper.params.containerModifierClass) === 0;\n });\n swiper.emit(\"_containerClasses\", cls.join(\" \"));\n }\n getSlideClasses(slideEl) {\n const swiper = this;\n if (swiper.destroyed) return \"\";\n return slideEl.className.split(\" \").filter((className)=>{\n return className.indexOf(\"swiper-slide\") === 0 || className.indexOf(swiper.params.slideClass) === 0;\n }).join(\" \");\n }\n emitSlidesClasses() {\n const swiper = this;\n if (!swiper.params._emitClasses || !swiper.el) return;\n const updates = [];\n swiper.slides.forEach((slideEl)=>{\n const classNames = swiper.getSlideClasses(slideEl);\n updates.push({\n slideEl: slideEl,\n classNames: classNames\n });\n swiper.emit(\"_slideClass\", slideEl, classNames);\n });\n swiper.emit(\"_slideClasses\", updates);\n }\n slidesPerViewDynamic(view, exact) {\n if (view === void 0) view = \"current\";\n if (exact === void 0) exact = false;\n const swiper = this;\n const { params: params, slides: slides, slidesGrid: slidesGrid, slidesSizesGrid: slidesSizesGrid, size: swiperSize, activeIndex: activeIndex } = swiper;\n let spv = 1;\n if (typeof params.slidesPerView === \"number\") return params.slidesPerView;\n if (params.centeredSlides) {\n let slideSize = slides[activeIndex] ? slides[activeIndex].swiperSlideSize : 0;\n let breakLoop;\n for(let i = activeIndex + 1; i < slides.length; i += 1)if (slides[i] && !breakLoop) {\n slideSize += slides[i].swiperSlideSize;\n spv += 1;\n if (slideSize > swiperSize) breakLoop = true;\n }\n for(let i = activeIndex - 1; i >= 0; i -= 1)if (slides[i] && !breakLoop) {\n slideSize += slides[i].swiperSlideSize;\n spv += 1;\n if (slideSize > swiperSize) breakLoop = true;\n }\n } else {\n // eslint-disable-next-line\n if (view === \"current\") for(let i = activeIndex + 1; i < slides.length; i += 1){\n const slideInView = exact ? slidesGrid[i] + slidesSizesGrid[i] - slidesGrid[activeIndex] < swiperSize : slidesGrid[i] - slidesGrid[activeIndex] < swiperSize;\n if (slideInView) spv += 1;\n }\n else // previous\n for(let i = activeIndex - 1; i >= 0; i -= 1){\n const slideInView = slidesGrid[activeIndex] - slidesGrid[i] < swiperSize;\n if (slideInView) spv += 1;\n }\n }\n return spv;\n }\n update() {\n const swiper = this;\n if (!swiper || swiper.destroyed) return;\n const { snapGrid: snapGrid, params: params } = swiper;\n // Breakpoints\n if (params.breakpoints) swiper.setBreakpoint();\n [\n ...swiper.el.querySelectorAll('[loading=\"lazy\"]')\n ].forEach((imageEl)=>{\n if (imageEl.complete) $1262f2e38e280703$var$processLazyPreloader(swiper, imageEl);\n });\n swiper.updateSize();\n swiper.updateSlides();\n swiper.updateProgress();\n swiper.updateSlidesClasses();\n function setTranslate() {\n const translateValue = swiper.rtlTranslate ? swiper.translate * -1 : swiper.translate;\n const newTranslate = Math.min(Math.max(translateValue, swiper.maxTranslate()), swiper.minTranslate());\n swiper.setTranslate(newTranslate);\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n let translated;\n if (params.freeMode && params.freeMode.enabled && !params.cssMode) {\n setTranslate();\n if (params.autoHeight) swiper.updateAutoHeight();\n } else {\n if ((params.slidesPerView === \"auto\" || params.slidesPerView > 1) && swiper.isEnd && !params.centeredSlides) {\n const slides = swiper.virtual && params.virtual.enabled ? swiper.virtual.slides : swiper.slides;\n translated = swiper.slideTo(slides.length - 1, 0, false, true);\n } else translated = swiper.slideTo(swiper.activeIndex, 0, false, true);\n if (!translated) setTranslate();\n }\n if (params.watchOverflow && snapGrid !== swiper.snapGrid) swiper.checkOverflow();\n swiper.emit(\"update\");\n }\n changeDirection(newDirection, needUpdate) {\n if (needUpdate === void 0) needUpdate = true;\n const swiper = this;\n const currentDirection = swiper.params.direction;\n if (!newDirection) // eslint-disable-next-line\n newDirection = currentDirection === \"horizontal\" ? \"vertical\" : \"horizontal\";\n if (newDirection === currentDirection || newDirection !== \"horizontal\" && newDirection !== \"vertical\") return swiper;\n swiper.el.classList.remove(`${swiper.params.containerModifierClass}${currentDirection}`);\n swiper.el.classList.add(`${swiper.params.containerModifierClass}${newDirection}`);\n swiper.emitContainerClasses();\n swiper.params.direction = newDirection;\n swiper.slides.forEach((slideEl)=>{\n if (newDirection === \"vertical\") slideEl.style.width = \"\";\n else slideEl.style.height = \"\";\n });\n swiper.emit(\"changeDirection\");\n if (needUpdate) swiper.update();\n return swiper;\n }\n changeLanguageDirection(direction) {\n const swiper = this;\n if (swiper.rtl && direction === \"rtl\" || !swiper.rtl && direction === \"ltr\") return;\n swiper.rtl = direction === \"rtl\";\n swiper.rtlTranslate = swiper.params.direction === \"horizontal\" && swiper.rtl;\n if (swiper.rtl) {\n swiper.el.classList.add(`${swiper.params.containerModifierClass}rtl`);\n swiper.el.dir = \"rtl\";\n } else {\n swiper.el.classList.remove(`${swiper.params.containerModifierClass}rtl`);\n swiper.el.dir = \"ltr\";\n }\n swiper.update();\n }\n mount(element) {\n const swiper = this;\n if (swiper.mounted) return true;\n // Find el\n let el = element || swiper.params.el;\n if (typeof el === \"string\") el = document.querySelector(el);\n if (!el) return false;\n el.swiper = swiper;\n if (el.parentNode && el.parentNode.host && el.parentNode.host.nodeName === \"SWIPER-CONTAINER\") swiper.isElement = true;\n const getWrapperSelector = ()=>{\n return `.${(swiper.params.wrapperClass || \"\").trim().split(\" \").join(\".\")}`;\n };\n const getWrapper = ()=>{\n if (el && el.shadowRoot && el.shadowRoot.querySelector) {\n const res = el.shadowRoot.querySelector(getWrapperSelector());\n // Children needs to return slot items\n return res;\n }\n return (0, $f97f33853a605dba$export$f1e1789686576879)(el, getWrapperSelector())[0];\n };\n // Find Wrapper\n let wrapperEl = getWrapper();\n if (!wrapperEl && swiper.params.createElements) {\n wrapperEl = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"div\", swiper.params.wrapperClass);\n el.append(wrapperEl);\n (0, $f97f33853a605dba$export$f1e1789686576879)(el, `.${swiper.params.slideClass}`).forEach((slideEl)=>{\n wrapperEl.append(slideEl);\n });\n }\n Object.assign(swiper, {\n el: el,\n wrapperEl: wrapperEl,\n slidesEl: swiper.isElement && !el.parentNode.host.slideSlots ? el.parentNode.host : wrapperEl,\n hostEl: swiper.isElement ? el.parentNode.host : el,\n mounted: true,\n // RTL\n rtl: el.dir.toLowerCase() === \"rtl\" || (0, $f97f33853a605dba$export$882b5998b3b9117c)(el, \"direction\") === \"rtl\",\n rtlTranslate: swiper.params.direction === \"horizontal\" && (el.dir.toLowerCase() === \"rtl\" || (0, $f97f33853a605dba$export$882b5998b3b9117c)(el, \"direction\") === \"rtl\"),\n wrongRTL: (0, $f97f33853a605dba$export$882b5998b3b9117c)(wrapperEl, \"display\") === \"-webkit-box\"\n });\n return true;\n }\n init(el) {\n const swiper = this;\n if (swiper.initialized) return swiper;\n const mounted = swiper.mount(el);\n if (mounted === false) return swiper;\n swiper.emit(\"beforeInit\");\n // Set breakpoint\n if (swiper.params.breakpoints) swiper.setBreakpoint();\n // Add Classes\n swiper.addClasses();\n // Update size\n swiper.updateSize();\n // Update slides\n swiper.updateSlides();\n if (swiper.params.watchOverflow) swiper.checkOverflow();\n // Set Grab Cursor\n if (swiper.params.grabCursor && swiper.enabled) swiper.setGrabCursor();\n // Slide To Initial Slide\n if (swiper.params.loop && swiper.virtual && swiper.params.virtual.enabled) swiper.slideTo(swiper.params.initialSlide + swiper.virtual.slidesBefore, 0, swiper.params.runCallbacksOnInit, false, true);\n else swiper.slideTo(swiper.params.initialSlide, 0, swiper.params.runCallbacksOnInit, false, true);\n // Create loop\n if (swiper.params.loop) swiper.loopCreate();\n // Attach events\n swiper.attachEvents();\n const lazyElements = [\n ...swiper.el.querySelectorAll('[loading=\"lazy\"]')\n ];\n if (swiper.isElement) lazyElements.push(...swiper.hostEl.querySelectorAll('[loading=\"lazy\"]'));\n lazyElements.forEach((imageEl)=>{\n if (imageEl.complete) $1262f2e38e280703$var$processLazyPreloader(swiper, imageEl);\n else imageEl.addEventListener(\"load\", (e)=>{\n $1262f2e38e280703$var$processLazyPreloader(swiper, e.target);\n });\n });\n $1262f2e38e280703$var$preload(swiper);\n // Init Flag\n swiper.initialized = true;\n $1262f2e38e280703$var$preload(swiper);\n // Emit\n swiper.emit(\"init\");\n swiper.emit(\"afterInit\");\n return swiper;\n }\n destroy(deleteInstance, cleanStyles) {\n if (deleteInstance === void 0) deleteInstance = true;\n if (cleanStyles === void 0) cleanStyles = true;\n const swiper = this;\n const { params: params, el: el, wrapperEl: wrapperEl, slides: slides } = swiper;\n if (typeof swiper.params === \"undefined\" || swiper.destroyed) return null;\n swiper.emit(\"beforeDestroy\");\n // Init Flag\n swiper.initialized = false;\n // Detach events\n swiper.detachEvents();\n // Destroy loop\n if (params.loop) swiper.loopDestroy();\n // Cleanup styles\n if (cleanStyles) {\n swiper.removeClasses();\n el.removeAttribute(\"style\");\n wrapperEl.removeAttribute(\"style\");\n if (slides && slides.length) slides.forEach((slideEl)=>{\n slideEl.classList.remove(params.slideVisibleClass, params.slideActiveClass, params.slideNextClass, params.slidePrevClass);\n slideEl.removeAttribute(\"style\");\n slideEl.removeAttribute(\"data-swiper-slide-index\");\n });\n }\n swiper.emit(\"destroy\");\n // Detach emitter events\n Object.keys(swiper.eventsListeners).forEach((eventName)=>{\n swiper.off(eventName);\n });\n if (deleteInstance !== false) {\n swiper.el.swiper = null;\n (0, $f97f33853a605dba$export$43caf9889c228507)(swiper);\n }\n swiper.destroyed = true;\n return null;\n }\n static extendDefaults(newDefaults) {\n (0, $f97f33853a605dba$export$9e5f44173e64f162)($1262f2e38e280703$var$extendedDefaults, newDefaults);\n }\n static get extendedDefaults() {\n return $1262f2e38e280703$var$extendedDefaults;\n }\n static get defaults() {\n return $1262f2e38e280703$export$4368d992c4eafac0;\n }\n static installModule(mod) {\n if (!$1262f2e38e280703$export$25ce5a424b770e84.prototype.__modules__) $1262f2e38e280703$export$25ce5a424b770e84.prototype.__modules__ = [];\n const modules = $1262f2e38e280703$export$25ce5a424b770e84.prototype.__modules__;\n if (typeof mod === \"function\" && modules.indexOf(mod) < 0) modules.push(mod);\n }\n static use(module) {\n if (Array.isArray(module)) {\n module.forEach((m)=>$1262f2e38e280703$export$25ce5a424b770e84.installModule(m));\n return $1262f2e38e280703$export$25ce5a424b770e84;\n }\n $1262f2e38e280703$export$25ce5a424b770e84.installModule(module);\n return $1262f2e38e280703$export$25ce5a424b770e84;\n }\n}\nObject.keys($1262f2e38e280703$var$prototypes).forEach((prototypeGroup)=>{\n Object.keys($1262f2e38e280703$var$prototypes[prototypeGroup]).forEach((protoMethod)=>{\n $1262f2e38e280703$export$25ce5a424b770e84.prototype[protoMethod] = $1262f2e38e280703$var$prototypes[prototypeGroup][protoMethod];\n });\n});\n$1262f2e38e280703$export$25ce5a424b770e84.use([\n $1262f2e38e280703$var$Resize,\n $1262f2e38e280703$var$Observer\n]);\n\n\n\n\n\n\nfunction $91b4fe59f517404d$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on, emit: emit } = _ref;\n extendParams({\n virtual: {\n enabled: false,\n slides: [],\n cache: true,\n renderSlide: null,\n renderExternal: null,\n renderExternalUpdate: true,\n addSlidesBefore: 0,\n addSlidesAfter: 0\n }\n });\n let cssModeTimeout;\n const document = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n swiper.virtual = {\n cache: {},\n from: undefined,\n to: undefined,\n slides: [],\n offset: 0,\n slidesGrid: []\n };\n const tempDOM = document.createElement(\"div\");\n function renderSlide(slide, index) {\n const params = swiper.params.virtual;\n if (params.cache && swiper.virtual.cache[index]) return swiper.virtual.cache[index];\n // eslint-disable-next-line\n let slideEl;\n if (params.renderSlide) {\n slideEl = params.renderSlide.call(swiper, slide, index);\n if (typeof slideEl === \"string\") {\n tempDOM.innerHTML = slideEl;\n slideEl = tempDOM.children[0];\n }\n } else if (swiper.isElement) slideEl = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"swiper-slide\");\n else slideEl = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"div\", swiper.params.slideClass);\n slideEl.setAttribute(\"data-swiper-slide-index\", index);\n if (!params.renderSlide) slideEl.innerHTML = slide;\n if (params.cache) swiper.virtual.cache[index] = slideEl;\n return slideEl;\n }\n function update(force) {\n const { slidesPerView: slidesPerView, slidesPerGroup: slidesPerGroup, centeredSlides: centeredSlides, loop: isLoop } = swiper.params;\n const { addSlidesBefore: addSlidesBefore, addSlidesAfter: addSlidesAfter } = swiper.params.virtual;\n const { from: previousFrom, to: previousTo, slides: slides, slidesGrid: previousSlidesGrid, offset: previousOffset } = swiper.virtual;\n if (!swiper.params.cssMode) swiper.updateActiveIndex();\n const activeIndex = swiper.activeIndex || 0;\n let offsetProp;\n if (swiper.rtlTranslate) offsetProp = \"right\";\n else offsetProp = swiper.isHorizontal() ? \"left\" : \"top\";\n let slidesAfter;\n let slidesBefore;\n if (centeredSlides) {\n slidesAfter = Math.floor(slidesPerView / 2) + slidesPerGroup + addSlidesAfter;\n slidesBefore = Math.floor(slidesPerView / 2) + slidesPerGroup + addSlidesBefore;\n } else {\n slidesAfter = slidesPerView + (slidesPerGroup - 1) + addSlidesAfter;\n slidesBefore = (isLoop ? slidesPerView : slidesPerGroup) + addSlidesBefore;\n }\n let from = activeIndex - slidesBefore;\n let to = activeIndex + slidesAfter;\n if (!isLoop) {\n from = Math.max(from, 0);\n to = Math.min(to, slides.length - 1);\n }\n let offset = (swiper.slidesGrid[from] || 0) - (swiper.slidesGrid[0] || 0);\n if (isLoop && activeIndex >= slidesBefore) {\n from -= slidesBefore;\n if (!centeredSlides) offset += swiper.slidesGrid[0];\n } else if (isLoop && activeIndex < slidesBefore) {\n from = -slidesBefore;\n if (centeredSlides) offset += swiper.slidesGrid[0];\n }\n Object.assign(swiper.virtual, {\n from: from,\n to: to,\n offset: offset,\n slidesGrid: swiper.slidesGrid,\n slidesBefore: slidesBefore,\n slidesAfter: slidesAfter\n });\n function onRendered() {\n swiper.updateSlides();\n swiper.updateProgress();\n swiper.updateSlidesClasses();\n emit(\"virtualUpdate\");\n }\n if (previousFrom === from && previousTo === to && !force) {\n if (swiper.slidesGrid !== previousSlidesGrid && offset !== previousOffset) swiper.slides.forEach((slideEl)=>{\n slideEl.style[offsetProp] = `${offset - Math.abs(swiper.cssOverflowAdjustment())}px`;\n });\n swiper.updateProgress();\n emit(\"virtualUpdate\");\n return;\n }\n if (swiper.params.virtual.renderExternal) {\n swiper.params.virtual.renderExternal.call(swiper, {\n offset: offset,\n from: from,\n to: to,\n slides: function getSlides() {\n const slidesToRender = [];\n for(let i = from; i <= to; i += 1)slidesToRender.push(slides[i]);\n return slidesToRender;\n }()\n });\n if (swiper.params.virtual.renderExternalUpdate) onRendered();\n else emit(\"virtualUpdate\");\n return;\n }\n const prependIndexes = [];\n const appendIndexes = [];\n const getSlideIndex = (index)=>{\n let slideIndex = index;\n if (index < 0) slideIndex = slides.length + index;\n else if (slideIndex >= slides.length) // eslint-disable-next-line\n slideIndex = slideIndex - slides.length;\n return slideIndex;\n };\n if (force) swiper.slides.filter((el)=>el.matches(`.${swiper.params.slideClass}, swiper-slide`)).forEach((slideEl)=>{\n slideEl.remove();\n });\n else {\n for(let i = previousFrom; i <= previousTo; i += 1)if (i < from || i > to) {\n const slideIndex = getSlideIndex(i);\n swiper.slides.filter((el)=>el.matches(`.${swiper.params.slideClass}[data-swiper-slide-index=\"${slideIndex}\"], swiper-slide[data-swiper-slide-index=\"${slideIndex}\"]`)).forEach((slideEl)=>{\n slideEl.remove();\n });\n }\n }\n const loopFrom = isLoop ? -slides.length : 0;\n const loopTo = isLoop ? slides.length * 2 : slides.length;\n for(let i = loopFrom; i < loopTo; i += 1)if (i >= from && i <= to) {\n const slideIndex = getSlideIndex(i);\n if (typeof previousTo === \"undefined\" || force) appendIndexes.push(slideIndex);\n else {\n if (i > previousTo) appendIndexes.push(slideIndex);\n if (i < previousFrom) prependIndexes.push(slideIndex);\n }\n }\n appendIndexes.forEach((index)=>{\n swiper.slidesEl.append(renderSlide(slides[index], index));\n });\n if (isLoop) for(let i = prependIndexes.length - 1; i >= 0; i -= 1){\n const index = prependIndexes[i];\n swiper.slidesEl.prepend(renderSlide(slides[index], index));\n }\n else {\n prependIndexes.sort((a, b)=>b - a);\n prependIndexes.forEach((index)=>{\n swiper.slidesEl.prepend(renderSlide(slides[index], index));\n });\n }\n (0, $f97f33853a605dba$export$f1e1789686576879)(swiper.slidesEl, \".swiper-slide, swiper-slide\").forEach((slideEl)=>{\n slideEl.style[offsetProp] = `${offset - Math.abs(swiper.cssOverflowAdjustment())}px`;\n });\n onRendered();\n }\n function appendSlide(slides) {\n if (typeof slides === \"object\" && \"length\" in slides) {\n for(let i = 0; i < slides.length; i += 1)if (slides[i]) swiper.virtual.slides.push(slides[i]);\n } else swiper.virtual.slides.push(slides);\n update(true);\n }\n function prependSlide(slides) {\n const activeIndex = swiper.activeIndex;\n let newActiveIndex = activeIndex + 1;\n let numberOfNewSlides = 1;\n if (Array.isArray(slides)) {\n for(let i = 0; i < slides.length; i += 1)if (slides[i]) swiper.virtual.slides.unshift(slides[i]);\n newActiveIndex = activeIndex + slides.length;\n numberOfNewSlides = slides.length;\n } else swiper.virtual.slides.unshift(slides);\n if (swiper.params.virtual.cache) {\n const cache = swiper.virtual.cache;\n const newCache = {};\n Object.keys(cache).forEach((cachedIndex)=>{\n const cachedEl = cache[cachedIndex];\n const cachedElIndex = cachedEl.getAttribute(\"data-swiper-slide-index\");\n if (cachedElIndex) cachedEl.setAttribute(\"data-swiper-slide-index\", parseInt(cachedElIndex, 10) + numberOfNewSlides);\n newCache[parseInt(cachedIndex, 10) + numberOfNewSlides] = cachedEl;\n });\n swiper.virtual.cache = newCache;\n }\n update(true);\n swiper.slideTo(newActiveIndex, 0);\n }\n function removeSlide(slidesIndexes) {\n if (typeof slidesIndexes === \"undefined\" || slidesIndexes === null) return;\n let activeIndex = swiper.activeIndex;\n if (Array.isArray(slidesIndexes)) for(let i = slidesIndexes.length - 1; i >= 0; i -= 1){\n if (swiper.params.virtual.cache) {\n delete swiper.virtual.cache[slidesIndexes[i]];\n // shift cache indexes\n Object.keys(swiper.virtual.cache).forEach((key)=>{\n if (key > slidesIndexes) {\n swiper.virtual.cache[key - 1] = swiper.virtual.cache[key];\n swiper.virtual.cache[key - 1].setAttribute(\"data-swiper-slide-index\", key - 1);\n delete swiper.virtual.cache[key];\n }\n });\n }\n swiper.virtual.slides.splice(slidesIndexes[i], 1);\n if (slidesIndexes[i] < activeIndex) activeIndex -= 1;\n activeIndex = Math.max(activeIndex, 0);\n }\n else {\n if (swiper.params.virtual.cache) {\n delete swiper.virtual.cache[slidesIndexes];\n // shift cache indexes\n Object.keys(swiper.virtual.cache).forEach((key)=>{\n if (key > slidesIndexes) {\n swiper.virtual.cache[key - 1] = swiper.virtual.cache[key];\n swiper.virtual.cache[key - 1].setAttribute(\"data-swiper-slide-index\", key - 1);\n delete swiper.virtual.cache[key];\n }\n });\n }\n swiper.virtual.slides.splice(slidesIndexes, 1);\n if (slidesIndexes < activeIndex) activeIndex -= 1;\n activeIndex = Math.max(activeIndex, 0);\n }\n update(true);\n swiper.slideTo(activeIndex, 0);\n }\n function removeAllSlides() {\n swiper.virtual.slides = [];\n if (swiper.params.virtual.cache) swiper.virtual.cache = {};\n update(true);\n swiper.slideTo(0, 0);\n }\n on(\"beforeInit\", ()=>{\n if (!swiper.params.virtual.enabled) return;\n let domSlidesAssigned;\n if (typeof swiper.passedParams.virtual.slides === \"undefined\") {\n const slides = [\n ...swiper.slidesEl.children\n ].filter((el)=>el.matches(`.${swiper.params.slideClass}, swiper-slide`));\n if (slides && slides.length) {\n swiper.virtual.slides = [\n ...slides\n ];\n domSlidesAssigned = true;\n slides.forEach((slideEl, slideIndex)=>{\n slideEl.setAttribute(\"data-swiper-slide-index\", slideIndex);\n swiper.virtual.cache[slideIndex] = slideEl;\n slideEl.remove();\n });\n }\n }\n if (!domSlidesAssigned) swiper.virtual.slides = swiper.params.virtual.slides;\n swiper.classNames.push(`${swiper.params.containerModifierClass}virtual`);\n swiper.params.watchSlidesProgress = true;\n swiper.originalParams.watchSlidesProgress = true;\n update();\n });\n on(\"setTranslate\", ()=>{\n if (!swiper.params.virtual.enabled) return;\n if (swiper.params.cssMode && !swiper._immediateVirtual) {\n clearTimeout(cssModeTimeout);\n cssModeTimeout = setTimeout(()=>{\n update();\n }, 100);\n } else update();\n });\n on(\"init update resize\", ()=>{\n if (!swiper.params.virtual.enabled) return;\n if (swiper.params.cssMode) (0, $f97f33853a605dba$export$2408f22a0fab9ae5)(swiper.wrapperEl, \"--swiper-virtual-size\", `${swiper.virtualSize}px`);\n });\n Object.assign(swiper.virtual, {\n appendSlide: appendSlide,\n prependSlide: prependSlide,\n removeSlide: removeSlide,\n removeAllSlides: removeAllSlides,\n update: update\n });\n}\n\n\n\n\n/* eslint-disable consistent-return */ function $2a1c43be64e359f8$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on, emit: emit } = _ref;\n const document = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n const window = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n swiper.keyboard = {\n enabled: false\n };\n extendParams({\n keyboard: {\n enabled: false,\n onlyInViewport: true,\n pageUpDown: true\n }\n });\n function handle(event) {\n if (!swiper.enabled) return;\n const { rtlTranslate: rtl } = swiper;\n let e = event;\n if (e.originalEvent) e = e.originalEvent; // jquery fix\n const kc = e.keyCode || e.charCode;\n const pageUpDown = swiper.params.keyboard.pageUpDown;\n const isPageUp = pageUpDown && kc === 33;\n const isPageDown = pageUpDown && kc === 34;\n const isArrowLeft = kc === 37;\n const isArrowRight = kc === 39;\n const isArrowUp = kc === 38;\n const isArrowDown = kc === 40;\n // Directions locks\n if (!swiper.allowSlideNext && (swiper.isHorizontal() && isArrowRight || swiper.isVertical() && isArrowDown || isPageDown)) return false;\n if (!swiper.allowSlidePrev && (swiper.isHorizontal() && isArrowLeft || swiper.isVertical() && isArrowUp || isPageUp)) return false;\n if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) return undefined;\n if (document.activeElement && document.activeElement.nodeName && (document.activeElement.nodeName.toLowerCase() === \"input\" || document.activeElement.nodeName.toLowerCase() === \"textarea\")) return undefined;\n if (swiper.params.keyboard.onlyInViewport && (isPageUp || isPageDown || isArrowLeft || isArrowRight || isArrowUp || isArrowDown)) {\n let inView = false;\n // Check that swiper should be inside of visible area of window\n if ((0, $f97f33853a605dba$export$407448d2b89b1813)(swiper.el, `.${swiper.params.slideClass}, swiper-slide`).length > 0 && (0, $f97f33853a605dba$export$407448d2b89b1813)(swiper.el, `.${swiper.params.slideActiveClass}`).length === 0) return undefined;\n const el = swiper.el;\n const swiperWidth = el.clientWidth;\n const swiperHeight = el.clientHeight;\n const windowWidth = window.innerWidth;\n const windowHeight = window.innerHeight;\n const swiperOffset = (0, $f97f33853a605dba$export$8b22cf2602fb60ce)(el);\n if (rtl) swiperOffset.left -= el.scrollLeft;\n const swiperCoord = [\n [\n swiperOffset.left,\n swiperOffset.top\n ],\n [\n swiperOffset.left + swiperWidth,\n swiperOffset.top\n ],\n [\n swiperOffset.left,\n swiperOffset.top + swiperHeight\n ],\n [\n swiperOffset.left + swiperWidth,\n swiperOffset.top + swiperHeight\n ]\n ];\n for(let i = 0; i < swiperCoord.length; i += 1){\n const point = swiperCoord[i];\n if (point[0] >= 0 && point[0] <= windowWidth && point[1] >= 0 && point[1] <= windowHeight) {\n if (point[0] === 0 && point[1] === 0) continue; // eslint-disable-line\n inView = true;\n }\n }\n if (!inView) return undefined;\n }\n if (swiper.isHorizontal()) {\n if (isPageUp || isPageDown || isArrowLeft || isArrowRight) {\n if (e.preventDefault) e.preventDefault();\n else e.returnValue = false;\n }\n if ((isPageDown || isArrowRight) && !rtl || (isPageUp || isArrowLeft) && rtl) swiper.slideNext();\n if ((isPageUp || isArrowLeft) && !rtl || (isPageDown || isArrowRight) && rtl) swiper.slidePrev();\n } else {\n if (isPageUp || isPageDown || isArrowUp || isArrowDown) {\n if (e.preventDefault) e.preventDefault();\n else e.returnValue = false;\n }\n if (isPageDown || isArrowDown) swiper.slideNext();\n if (isPageUp || isArrowUp) swiper.slidePrev();\n }\n emit(\"keyPress\", kc);\n return undefined;\n }\n function enable() {\n if (swiper.keyboard.enabled) return;\n document.addEventListener(\"keydown\", handle);\n swiper.keyboard.enabled = true;\n }\n function disable() {\n if (!swiper.keyboard.enabled) return;\n document.removeEventListener(\"keydown\", handle);\n swiper.keyboard.enabled = false;\n }\n on(\"init\", ()=>{\n if (swiper.params.keyboard.enabled) enable();\n });\n on(\"destroy\", ()=>{\n if (swiper.keyboard.enabled) disable();\n });\n Object.assign(swiper.keyboard, {\n enable: enable,\n disable: disable\n });\n}\n\n\n\n\n/* eslint-disable consistent-return */ function $1e6c01efa040ca9a$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on, emit: emit } = _ref;\n const window = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n extendParams({\n mousewheel: {\n enabled: false,\n releaseOnEdges: false,\n invert: false,\n forceToAxis: false,\n sensitivity: 1,\n eventsTarget: \"container\",\n thresholdDelta: null,\n thresholdTime: null,\n noMousewheelClass: \"swiper-no-mousewheel\"\n }\n });\n swiper.mousewheel = {\n enabled: false\n };\n let timeout;\n let lastScrollTime = (0, $f97f33853a605dba$export$4368d992c4eafac0)();\n let lastEventBeforeSnap;\n const recentWheelEvents = [];\n function normalize(e) {\n // Reasonable defaults\n const PIXEL_STEP = 10;\n const LINE_HEIGHT = 40;\n const PAGE_HEIGHT = 800;\n let sX = 0;\n let sY = 0; // spinX, spinY\n let pX = 0;\n let pY = 0; // pixelX, pixelY\n // Legacy\n if (\"detail\" in e) sY = e.detail;\n if (\"wheelDelta\" in e) sY = -e.wheelDelta / 120;\n if (\"wheelDeltaY\" in e) sY = -e.wheelDeltaY / 120;\n if (\"wheelDeltaX\" in e) sX = -e.wheelDeltaX / 120;\n // side scrolling on FF with DOMMouseScroll\n if (\"axis\" in e && e.axis === e.HORIZONTAL_AXIS) {\n sX = sY;\n sY = 0;\n }\n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n if (\"deltaY\" in e) pY = e.deltaY;\n if (\"deltaX\" in e) pX = e.deltaX;\n if (e.shiftKey && !pX) {\n // if user scrolls with shift he wants horizontal scroll\n pX = pY;\n pY = 0;\n }\n if ((pX || pY) && e.deltaMode) {\n if (e.deltaMode === 1) {\n // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else {\n // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n // Fall-back if spin cannot be determined\n if (pX && !sX) sX = pX < 1 ? -1 : 1;\n if (pY && !sY) sY = pY < 1 ? -1 : 1;\n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }\n function handleMouseEnter() {\n if (!swiper.enabled) return;\n swiper.mouseEntered = true;\n }\n function handleMouseLeave() {\n if (!swiper.enabled) return;\n swiper.mouseEntered = false;\n }\n function animateSlider(newEvent) {\n if (swiper.params.mousewheel.thresholdDelta && newEvent.delta < swiper.params.mousewheel.thresholdDelta) // Prevent if delta of wheel scroll delta is below configured threshold\n return false;\n if (swiper.params.mousewheel.thresholdTime && (0, $f97f33853a605dba$export$4368d992c4eafac0)() - lastScrollTime < swiper.params.mousewheel.thresholdTime) // Prevent if time between scrolls is below configured threshold\n return false;\n // If the movement is NOT big enough and\n // if the last time the user scrolled was too close to the current one (avoid continuously triggering the slider):\n // Don't go any further (avoid insignificant scroll movement).\n if (newEvent.delta >= 6 && (0, $f97f33853a605dba$export$4368d992c4eafac0)() - lastScrollTime < 60) // Return false as a default\n return true;\n // If user is scrolling towards the end:\n // If the slider hasn't hit the latest slide or\n // if the slider is a loop and\n // if the slider isn't moving right now:\n // Go to next slide and\n // emit a scroll event.\n // Else (the user is scrolling towards the beginning) and\n // if the slider hasn't hit the first slide or\n // if the slider is a loop and\n // if the slider isn't moving right now:\n // Go to prev slide and\n // emit a scroll event.\n if (newEvent.direction < 0) {\n if ((!swiper.isEnd || swiper.params.loop) && !swiper.animating) {\n swiper.slideNext();\n emit(\"scroll\", newEvent.raw);\n }\n } else if ((!swiper.isBeginning || swiper.params.loop) && !swiper.animating) {\n swiper.slidePrev();\n emit(\"scroll\", newEvent.raw);\n }\n // If you got here is because an animation has been triggered so store the current time\n lastScrollTime = new window.Date().getTime();\n // Return false as a default\n return false;\n }\n function releaseScroll(newEvent) {\n const params = swiper.params.mousewheel;\n if (newEvent.direction < 0) {\n if (swiper.isEnd && !swiper.params.loop && params.releaseOnEdges) // Return true to animate scroll on edges\n return true;\n } else if (swiper.isBeginning && !swiper.params.loop && params.releaseOnEdges) // Return true to animate scroll on edges\n return true;\n return false;\n }\n function handle(event1) {\n let e = event1;\n let disableParentSwiper = true;\n if (!swiper.enabled) return;\n // Ignore event if the target or its parents have the swiper-no-mousewheel class\n if (event1.target.closest(`.${swiper.params.mousewheel.noMousewheelClass}`)) return;\n const params = swiper.params.mousewheel;\n if (swiper.params.cssMode) e.preventDefault();\n let targetEl = swiper.el;\n if (swiper.params.mousewheel.eventsTarget !== \"container\") targetEl = document.querySelector(swiper.params.mousewheel.eventsTarget);\n const targetElContainsTarget = targetEl && targetEl.contains(e.target);\n if (!swiper.mouseEntered && !targetElContainsTarget && !params.releaseOnEdges) return true;\n if (e.originalEvent) e = e.originalEvent; // jquery fix\n let delta = 0;\n const rtlFactor = swiper.rtlTranslate ? -1 : 1;\n const data = normalize(e);\n if (params.forceToAxis) {\n if (swiper.isHorizontal()) {\n if (Math.abs(data.pixelX) > Math.abs(data.pixelY)) delta = -data.pixelX * rtlFactor;\n else return true;\n } else if (Math.abs(data.pixelY) > Math.abs(data.pixelX)) delta = -data.pixelY;\n else return true;\n } else delta = Math.abs(data.pixelX) > Math.abs(data.pixelY) ? -data.pixelX * rtlFactor : -data.pixelY;\n if (delta === 0) return true;\n if (params.invert) delta = -delta;\n // Get the scroll positions\n let positions = swiper.getTranslate() + delta * params.sensitivity;\n if (positions >= swiper.minTranslate()) positions = swiper.minTranslate();\n if (positions <= swiper.maxTranslate()) positions = swiper.maxTranslate();\n // When loop is true:\n // the disableParentSwiper will be true.\n // When loop is false:\n // if the scroll positions is not on edge,\n // then the disableParentSwiper will be true.\n // if the scroll on edge positions,\n // then the disableParentSwiper will be false.\n disableParentSwiper = swiper.params.loop ? true : !(positions === swiper.minTranslate() || positions === swiper.maxTranslate());\n if (disableParentSwiper && swiper.params.nested) e.stopPropagation();\n if (!swiper.params.freeMode || !swiper.params.freeMode.enabled) {\n // Register the new event in a variable which stores the relevant data\n const newEvent = {\n time: (0, $f97f33853a605dba$export$4368d992c4eafac0)(),\n delta: Math.abs(delta),\n direction: Math.sign(delta),\n raw: event1\n };\n // Keep the most recent events\n if (recentWheelEvents.length >= 2) recentWheelEvents.shift(); // only store the last N events\n const prevEvent = recentWheelEvents.length ? recentWheelEvents[recentWheelEvents.length - 1] : undefined;\n recentWheelEvents.push(newEvent);\n // If there is at least one previous recorded event:\n // If direction has changed or\n // if the scroll is quicker than the previous one:\n // Animate the slider.\n // Else (this is the first time the wheel is moved):\n // Animate the slider.\n if (prevEvent) {\n if (newEvent.direction !== prevEvent.direction || newEvent.delta > prevEvent.delta || newEvent.time > prevEvent.time + 150) animateSlider(newEvent);\n } else animateSlider(newEvent);\n // If it's time to release the scroll:\n // Return now so you don't hit the preventDefault.\n if (releaseScroll(newEvent)) return true;\n } else {\n // Freemode or scrollContainer:\n // If we recently snapped after a momentum scroll, then ignore wheel events\n // to give time for the deceleration to finish. Stop ignoring after 500 msecs\n // or if it's a new scroll (larger delta or inverse sign as last event before\n // an end-of-momentum snap).\n const newEvent = {\n time: (0, $f97f33853a605dba$export$4368d992c4eafac0)(),\n delta: Math.abs(delta),\n direction: Math.sign(delta)\n };\n const ignoreWheelEvents = lastEventBeforeSnap && newEvent.time < lastEventBeforeSnap.time + 500 && newEvent.delta <= lastEventBeforeSnap.delta && newEvent.direction === lastEventBeforeSnap.direction;\n if (!ignoreWheelEvents) {\n lastEventBeforeSnap = undefined;\n let position = swiper.getTranslate() + delta * params.sensitivity;\n const wasBeginning = swiper.isBeginning;\n const wasEnd = swiper.isEnd;\n if (position >= swiper.minTranslate()) position = swiper.minTranslate();\n if (position <= swiper.maxTranslate()) position = swiper.maxTranslate();\n swiper.setTransition(0);\n swiper.setTranslate(position);\n swiper.updateProgress();\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n if (!wasBeginning && swiper.isBeginning || !wasEnd && swiper.isEnd) swiper.updateSlidesClasses();\n if (swiper.params.loop) swiper.loopFix({\n direction: newEvent.direction < 0 ? \"next\" : \"prev\",\n byMousewheel: true\n });\n if (swiper.params.freeMode.sticky) {\n // When wheel scrolling starts with sticky (aka snap) enabled, then detect\n // the end of a momentum scroll by storing recent (N=15?) wheel events.\n // 1. do all N events have decreasing or same (absolute value) delta?\n // 2. did all N events arrive in the last M (M=500?) msecs?\n // 3. does the earliest event have an (absolute value) delta that's\n // at least P (P=1?) larger than the most recent event's delta?\n // 4. does the latest event have a delta that's smaller than Q (Q=6?) pixels?\n // If 1-4 are \"yes\" then we're near the end of a momentum scroll deceleration.\n // Snap immediately and ignore remaining wheel events in this scroll.\n // See comment above for \"remaining wheel events in this scroll\" determination.\n // If 1-4 aren't satisfied, then wait to snap until 500ms after the last event.\n clearTimeout(timeout);\n timeout = undefined;\n if (recentWheelEvents.length >= 15) recentWheelEvents.shift(); // only store the last N events\n const prevEvent = recentWheelEvents.length ? recentWheelEvents[recentWheelEvents.length - 1] : undefined;\n const firstEvent = recentWheelEvents[0];\n recentWheelEvents.push(newEvent);\n if (prevEvent && (newEvent.delta > prevEvent.delta || newEvent.direction !== prevEvent.direction)) // Increasing or reverse-sign delta means the user started scrolling again. Clear the wheel event log.\n recentWheelEvents.splice(0);\n else if (recentWheelEvents.length >= 15 && newEvent.time - firstEvent.time < 500 && firstEvent.delta - newEvent.delta >= 1 && newEvent.delta <= 6) {\n // We're at the end of the deceleration of a momentum scroll, so there's no need\n // to wait for more events. Snap ASAP on the next tick.\n // Also, because there's some remaining momentum we'll bias the snap in the\n // direction of the ongoing scroll because it's better UX for the scroll to snap\n // in the same direction as the scroll instead of reversing to snap. Therefore,\n // if it's already scrolled more than 20% in the current direction, keep going.\n const snapToThreshold = delta > 0 ? 0.8 : 0.2;\n lastEventBeforeSnap = newEvent;\n recentWheelEvents.splice(0);\n timeout = (0, $f97f33853a605dba$export$7ccc53e8f1e7dfc5)(()=>{\n swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);\n }, 0); // no delay; move on next tick\n }\n if (!timeout) // if we get here, then we haven't detected the end of a momentum scroll, so\n // we'll consider a scroll \"complete\" when there haven't been any wheel events\n // for 500ms.\n timeout = (0, $f97f33853a605dba$export$7ccc53e8f1e7dfc5)(()=>{\n const snapToThreshold = 0.5;\n lastEventBeforeSnap = newEvent;\n recentWheelEvents.splice(0);\n swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);\n }, 500);\n }\n // Emit event\n if (!ignoreWheelEvents) emit(\"scroll\", e);\n // Stop autoplay\n if (swiper.params.autoplay && swiper.params.autoplayDisableOnInteraction) swiper.autoplay.stop();\n // Return page scroll on edge positions\n if (params.releaseOnEdges && (position === swiper.minTranslate() || position === swiper.maxTranslate())) return true;\n }\n }\n if (e.preventDefault) e.preventDefault();\n else e.returnValue = false;\n return false;\n }\n function events(method) {\n let targetEl = swiper.el;\n if (swiper.params.mousewheel.eventsTarget !== \"container\") targetEl = document.querySelector(swiper.params.mousewheel.eventsTarget);\n targetEl[method](\"mouseenter\", handleMouseEnter);\n targetEl[method](\"mouseleave\", handleMouseLeave);\n targetEl[method](\"wheel\", handle);\n }\n function enable() {\n if (swiper.params.cssMode) {\n swiper.wrapperEl.removeEventListener(\"wheel\", handle);\n return true;\n }\n if (swiper.mousewheel.enabled) return false;\n events(\"addEventListener\");\n swiper.mousewheel.enabled = true;\n return true;\n }\n function disable() {\n if (swiper.params.cssMode) {\n swiper.wrapperEl.addEventListener(event, handle);\n return true;\n }\n if (!swiper.mousewheel.enabled) return false;\n events(\"removeEventListener\");\n swiper.mousewheel.enabled = false;\n return true;\n }\n on(\"init\", ()=>{\n if (!swiper.params.mousewheel.enabled && swiper.params.cssMode) disable();\n if (swiper.params.mousewheel.enabled) enable();\n });\n on(\"destroy\", ()=>{\n if (swiper.params.cssMode) enable();\n if (swiper.mousewheel.enabled) disable();\n });\n Object.assign(swiper.mousewheel, {\n enable: enable,\n disable: disable\n });\n}\n\n\n\nfunction $306a0aea613e7477$export$db3b6bfb95261072(swiper, originalParams, params, checkProps) {\n if (swiper.params.createElements) Object.keys(checkProps).forEach((key)=>{\n if (!params[key] && params.auto === true) {\n let element = (0, $f97f33853a605dba$export$f1e1789686576879)(swiper.el, `.${checkProps[key]}`)[0];\n if (!element) {\n element = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"div\", checkProps[key]);\n element.className = checkProps[key];\n swiper.el.append(element);\n }\n params[key] = element;\n originalParams[key] = element;\n }\n });\n return params;\n}\n\n\nfunction $dc75855670d5bebb$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on, emit: emit } = _ref;\n extendParams({\n navigation: {\n nextEl: null,\n prevEl: null,\n hideOnClick: false,\n disabledClass: \"swiper-button-disabled\",\n hiddenClass: \"swiper-button-hidden\",\n lockClass: \"swiper-button-lock\",\n navigationDisabledClass: \"swiper-navigation-disabled\"\n }\n });\n swiper.navigation = {\n nextEl: null,\n prevEl: null\n };\n const makeElementsArray = (el)=>(Array.isArray(el) ? el : [\n el\n ]).filter((e)=>!!e);\n function getEl(el) {\n let res;\n if (el && typeof el === \"string\" && swiper.isElement) {\n res = swiper.el.querySelector(el);\n if (res) return res;\n }\n if (el) {\n if (typeof el === \"string\") res = [\n ...document.querySelectorAll(el)\n ];\n if (swiper.params.uniqueNavElements && typeof el === \"string\" && res.length > 1 && swiper.el.querySelectorAll(el).length === 1) res = swiper.el.querySelector(el);\n }\n if (el && !res) return el;\n // if (Array.isArray(res) && res.length === 1) res = res[0];\n return res;\n }\n function toggleEl(el, disabled) {\n const params = swiper.params.navigation;\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n if (subEl) {\n subEl.classList[disabled ? \"add\" : \"remove\"](...params.disabledClass.split(\" \"));\n if (subEl.tagName === \"BUTTON\") subEl.disabled = disabled;\n if (swiper.params.watchOverflow && swiper.enabled) subEl.classList[swiper.isLocked ? \"add\" : \"remove\"](params.lockClass);\n }\n });\n }\n function update() {\n // Update Navigation Buttons\n const { nextEl: nextEl, prevEl: prevEl } = swiper.navigation;\n if (swiper.params.loop) {\n toggleEl(prevEl, false);\n toggleEl(nextEl, false);\n return;\n }\n toggleEl(prevEl, swiper.isBeginning && !swiper.params.rewind);\n toggleEl(nextEl, swiper.isEnd && !swiper.params.rewind);\n }\n function onPrevClick(e) {\n e.preventDefault();\n if (swiper.isBeginning && !swiper.params.loop && !swiper.params.rewind) return;\n swiper.slidePrev();\n emit(\"navigationPrev\");\n }\n function onNextClick(e) {\n e.preventDefault();\n if (swiper.isEnd && !swiper.params.loop && !swiper.params.rewind) return;\n swiper.slideNext();\n emit(\"navigationNext\");\n }\n function init() {\n const params = swiper.params.navigation;\n swiper.params.navigation = (0, $306a0aea613e7477$export$db3b6bfb95261072)(swiper, swiper.originalParams.navigation, swiper.params.navigation, {\n nextEl: \"swiper-button-next\",\n prevEl: \"swiper-button-prev\"\n });\n if (!(params.nextEl || params.prevEl)) return;\n let nextEl = getEl(params.nextEl);\n let prevEl = getEl(params.prevEl);\n Object.assign(swiper.navigation, {\n nextEl: nextEl,\n prevEl: prevEl\n });\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n const initButton = (el, dir)=>{\n if (el) el.addEventListener(\"click\", dir === \"next\" ? onNextClick : onPrevClick);\n if (!swiper.enabled && el) el.classList.add(...params.lockClass.split(\" \"));\n };\n nextEl.forEach((el)=>initButton(el, \"next\"));\n prevEl.forEach((el)=>initButton(el, \"prev\"));\n }\n function destroy() {\n let { nextEl: nextEl, prevEl: prevEl } = swiper.navigation;\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n const destroyButton = (el, dir)=>{\n el.removeEventListener(\"click\", dir === \"next\" ? onNextClick : onPrevClick);\n el.classList.remove(...swiper.params.navigation.disabledClass.split(\" \"));\n };\n nextEl.forEach((el)=>destroyButton(el, \"next\"));\n prevEl.forEach((el)=>destroyButton(el, \"prev\"));\n }\n on(\"init\", ()=>{\n if (swiper.params.navigation.enabled === false) // eslint-disable-next-line\n disable();\n else {\n init();\n update();\n }\n });\n on(\"toEdge fromEdge lock unlock\", ()=>{\n update();\n });\n on(\"destroy\", ()=>{\n destroy();\n });\n on(\"enable disable\", ()=>{\n let { nextEl: nextEl, prevEl: prevEl } = swiper.navigation;\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n if (swiper.enabled) {\n update();\n return;\n }\n [\n ...nextEl,\n ...prevEl\n ].filter((el)=>!!el).forEach((el)=>el.classList.add(swiper.params.navigation.lockClass));\n });\n on(\"click\", (_s, e)=>{\n let { nextEl: nextEl, prevEl: prevEl } = swiper.navigation;\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n const targetEl = e.target;\n if (swiper.params.navigation.hideOnClick && !prevEl.includes(targetEl) && !nextEl.includes(targetEl)) {\n if (swiper.pagination && swiper.params.pagination && swiper.params.pagination.clickable && (swiper.pagination.el === targetEl || swiper.pagination.el.contains(targetEl))) return;\n let isHidden;\n if (nextEl.length) isHidden = nextEl[0].classList.contains(swiper.params.navigation.hiddenClass);\n else if (prevEl.length) isHidden = prevEl[0].classList.contains(swiper.params.navigation.hiddenClass);\n if (isHidden === true) emit(\"navigationShow\");\n else emit(\"navigationHide\");\n [\n ...nextEl,\n ...prevEl\n ].filter((el)=>!!el).forEach((el)=>el.classList.toggle(swiper.params.navigation.hiddenClass));\n }\n });\n const enable = ()=>{\n swiper.el.classList.remove(...swiper.params.navigation.navigationDisabledClass.split(\" \"));\n init();\n update();\n };\n const disable = ()=>{\n swiper.el.classList.add(...swiper.params.navigation.navigationDisabledClass.split(\" \"));\n destroy();\n };\n Object.assign(swiper.navigation, {\n enable: enable,\n disable: disable,\n update: update,\n init: init,\n destroy: destroy\n });\n}\n\n\nfunction $129272ba76d8b432$export$db3b6bfb95261072(classes) {\n if (classes === void 0) classes = \"\";\n return `.${classes.trim().replace(/([\\.:!+\\/])/g, \"\\\\$1\") // eslint-disable-line\n .replace(/ /g, \".\")}`;\n}\n\n\n\n\nfunction $a65bf22b710e8cc3$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on, emit: emit } = _ref;\n const pfx = \"swiper-pagination\";\n extendParams({\n pagination: {\n el: null,\n bulletElement: \"span\",\n clickable: false,\n hideOnClick: false,\n renderBullet: null,\n renderProgressbar: null,\n renderFraction: null,\n renderCustom: null,\n progressbarOpposite: false,\n type: \"bullets\",\n // 'bullets' or 'progressbar' or 'fraction' or 'custom'\n dynamicBullets: false,\n dynamicMainBullets: 1,\n formatFractionCurrent: (number)=>number,\n formatFractionTotal: (number)=>number,\n bulletClass: `${pfx}-bullet`,\n bulletActiveClass: `${pfx}-bullet-active`,\n modifierClass: `${pfx}-`,\n currentClass: `${pfx}-current`,\n totalClass: `${pfx}-total`,\n hiddenClass: `${pfx}-hidden`,\n progressbarFillClass: `${pfx}-progressbar-fill`,\n progressbarOppositeClass: `${pfx}-progressbar-opposite`,\n clickableClass: `${pfx}-clickable`,\n lockClass: `${pfx}-lock`,\n horizontalClass: `${pfx}-horizontal`,\n verticalClass: `${pfx}-vertical`,\n paginationDisabledClass: `${pfx}-disabled`\n }\n });\n swiper.pagination = {\n el: null,\n bullets: []\n };\n let bulletSize;\n let dynamicBulletIndex = 0;\n const makeElementsArray = (el)=>(Array.isArray(el) ? el : [\n el\n ]).filter((e)=>!!e);\n function isPaginationDisabled() {\n return !swiper.params.pagination.el || !swiper.pagination.el || Array.isArray(swiper.pagination.el) && swiper.pagination.el.length === 0;\n }\n function setSideBullets(bulletEl, position) {\n const { bulletActiveClass: bulletActiveClass } = swiper.params.pagination;\n if (!bulletEl) return;\n bulletEl = bulletEl[`${position === \"prev\" ? \"previous\" : \"next\"}ElementSibling`];\n if (bulletEl) {\n bulletEl.classList.add(`${bulletActiveClass}-${position}`);\n bulletEl = bulletEl[`${position === \"prev\" ? \"previous\" : \"next\"}ElementSibling`];\n if (bulletEl) bulletEl.classList.add(`${bulletActiveClass}-${position}-${position}`);\n }\n }\n function onBulletClick(e) {\n const bulletEl = e.target.closest((0, $129272ba76d8b432$export$db3b6bfb95261072)(swiper.params.pagination.bulletClass));\n if (!bulletEl) return;\n e.preventDefault();\n const index = (0, $f97f33853a605dba$export$39b482c5e57630a8)(bulletEl) * swiper.params.slidesPerGroup;\n if (swiper.params.loop) {\n if (swiper.realIndex === index) return;\n const realIndex = swiper.realIndex;\n const newSlideIndex = swiper.getSlideIndexByData(index);\n const currentSlideIndex = swiper.getSlideIndexByData(swiper.realIndex);\n const loopFix = (dir)=>{\n const indexBeforeLoopFix = swiper.activeIndex;\n swiper.loopFix({\n direction: dir,\n activeSlideIndex: newSlideIndex,\n slideTo: false\n });\n const indexAfterFix = swiper.activeIndex;\n if (indexBeforeLoopFix === indexAfterFix) swiper.slideToLoop(realIndex, 0, false, true);\n };\n if (newSlideIndex > swiper.slides.length - swiper.loopedSlides) loopFix(newSlideIndex > currentSlideIndex ? \"next\" : \"prev\");\n else if (swiper.params.centeredSlides) {\n const slidesPerView = swiper.params.slidesPerView === \"auto\" ? swiper.slidesPerViewDynamic() : Math.ceil(parseFloat(swiper.params.slidesPerView, 10));\n if (newSlideIndex < Math.floor(slidesPerView / 2)) loopFix(\"prev\");\n }\n swiper.slideToLoop(index);\n } else swiper.slideTo(index);\n }\n function update() {\n // Render || Update Pagination bullets/items\n const rtl = swiper.rtl;\n const params = swiper.params.pagination;\n if (isPaginationDisabled()) return;\n let el = swiper.pagination.el;\n el = makeElementsArray(el);\n // Current/Total\n let current;\n let previousIndex;\n const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\n const total = swiper.params.loop ? Math.ceil(slidesLength / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\n if (swiper.params.loop) {\n previousIndex = swiper.previousRealIndex || 0;\n current = swiper.params.slidesPerGroup > 1 ? Math.floor(swiper.realIndex / swiper.params.slidesPerGroup) : swiper.realIndex;\n } else if (typeof swiper.snapIndex !== \"undefined\") {\n current = swiper.snapIndex;\n previousIndex = swiper.previousSnapIndex;\n } else {\n previousIndex = swiper.previousIndex || 0;\n current = swiper.activeIndex || 0;\n }\n // Types\n if (params.type === \"bullets\" && swiper.pagination.bullets && swiper.pagination.bullets.length > 0) {\n const bullets = swiper.pagination.bullets;\n let firstIndex;\n let lastIndex;\n let midIndex;\n if (params.dynamicBullets) {\n bulletSize = (0, $f97f33853a605dba$export$2d1720544b23b823)(bullets[0], swiper.isHorizontal() ? \"width\" : \"height\", true);\n el.forEach((subEl)=>{\n subEl.style[swiper.isHorizontal() ? \"width\" : \"height\"] = `${bulletSize * (params.dynamicMainBullets + 4)}px`;\n });\n if (params.dynamicMainBullets > 1 && previousIndex !== undefined) {\n dynamicBulletIndex += current - (previousIndex || 0);\n if (dynamicBulletIndex > params.dynamicMainBullets - 1) dynamicBulletIndex = params.dynamicMainBullets - 1;\n else if (dynamicBulletIndex < 0) dynamicBulletIndex = 0;\n }\n firstIndex = Math.max(current - dynamicBulletIndex, 0);\n lastIndex = firstIndex + (Math.min(bullets.length, params.dynamicMainBullets) - 1);\n midIndex = (lastIndex + firstIndex) / 2;\n }\n bullets.forEach((bulletEl)=>{\n const classesToRemove = [\n ...[\n \"\",\n \"-next\",\n \"-next-next\",\n \"-prev\",\n \"-prev-prev\",\n \"-main\"\n ].map((suffix)=>`${params.bulletActiveClass}${suffix}`)\n ].map((s)=>typeof s === \"string\" && s.includes(\" \") ? s.split(\" \") : s).flat();\n bulletEl.classList.remove(...classesToRemove);\n });\n if (el.length > 1) bullets.forEach((bullet)=>{\n const bulletIndex = (0, $f97f33853a605dba$export$39b482c5e57630a8)(bullet);\n if (bulletIndex === current) bullet.classList.add(...params.bulletActiveClass.split(\" \"));\n else if (swiper.isElement) bullet.setAttribute(\"part\", \"bullet\");\n if (params.dynamicBullets) {\n if (bulletIndex >= firstIndex && bulletIndex <= lastIndex) bullet.classList.add(...`${params.bulletActiveClass}-main`.split(\" \"));\n if (bulletIndex === firstIndex) setSideBullets(bullet, \"prev\");\n if (bulletIndex === lastIndex) setSideBullets(bullet, \"next\");\n }\n });\n else {\n const bullet = bullets[current];\n if (bullet) bullet.classList.add(...params.bulletActiveClass.split(\" \"));\n if (swiper.isElement) bullets.forEach((bulletEl, bulletIndex)=>{\n bulletEl.setAttribute(\"part\", bulletIndex === current ? \"bullet-active\" : \"bullet\");\n });\n if (params.dynamicBullets) {\n const firstDisplayedBullet = bullets[firstIndex];\n const lastDisplayedBullet = bullets[lastIndex];\n for(let i = firstIndex; i <= lastIndex; i += 1)if (bullets[i]) bullets[i].classList.add(...`${params.bulletActiveClass}-main`.split(\" \"));\n setSideBullets(firstDisplayedBullet, \"prev\");\n setSideBullets(lastDisplayedBullet, \"next\");\n }\n }\n if (params.dynamicBullets) {\n const dynamicBulletsLength = Math.min(bullets.length, params.dynamicMainBullets + 4);\n const bulletsOffset = (bulletSize * dynamicBulletsLength - bulletSize) / 2 - midIndex * bulletSize;\n const offsetProp = rtl ? \"right\" : \"left\";\n bullets.forEach((bullet)=>{\n bullet.style[swiper.isHorizontal() ? offsetProp : \"top\"] = `${bulletsOffset}px`;\n });\n }\n }\n el.forEach((subEl, subElIndex)=>{\n if (params.type === \"fraction\") {\n subEl.querySelectorAll((0, $129272ba76d8b432$export$db3b6bfb95261072)(params.currentClass)).forEach((fractionEl)=>{\n fractionEl.textContent = params.formatFractionCurrent(current + 1);\n });\n subEl.querySelectorAll((0, $129272ba76d8b432$export$db3b6bfb95261072)(params.totalClass)).forEach((totalEl)=>{\n totalEl.textContent = params.formatFractionTotal(total);\n });\n }\n if (params.type === \"progressbar\") {\n let progressbarDirection;\n if (params.progressbarOpposite) progressbarDirection = swiper.isHorizontal() ? \"vertical\" : \"horizontal\";\n else progressbarDirection = swiper.isHorizontal() ? \"horizontal\" : \"vertical\";\n const scale = (current + 1) / total;\n let scaleX = 1;\n let scaleY = 1;\n if (progressbarDirection === \"horizontal\") scaleX = scale;\n else scaleY = scale;\n subEl.querySelectorAll((0, $129272ba76d8b432$export$db3b6bfb95261072)(params.progressbarFillClass)).forEach((progressEl)=>{\n progressEl.style.transform = `translate3d(0,0,0) scaleX(${scaleX}) scaleY(${scaleY})`;\n progressEl.style.transitionDuration = `${swiper.params.speed}ms`;\n });\n }\n if (params.type === \"custom\" && params.renderCustom) {\n subEl.innerHTML = params.renderCustom(swiper, current + 1, total);\n if (subElIndex === 0) emit(\"paginationRender\", subEl);\n } else {\n if (subElIndex === 0) emit(\"paginationRender\", subEl);\n emit(\"paginationUpdate\", subEl);\n }\n if (swiper.params.watchOverflow && swiper.enabled) subEl.classList[swiper.isLocked ? \"add\" : \"remove\"](params.lockClass);\n });\n }\n function render() {\n // Render Container\n const params = swiper.params.pagination;\n if (isPaginationDisabled()) return;\n const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\n let el = swiper.pagination.el;\n el = makeElementsArray(el);\n let paginationHTML = \"\";\n if (params.type === \"bullets\") {\n let numberOfBullets = swiper.params.loop ? Math.ceil(slidesLength / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\n if (swiper.params.freeMode && swiper.params.freeMode.enabled && numberOfBullets > slidesLength) numberOfBullets = slidesLength;\n for(let i = 0; i < numberOfBullets; i += 1)if (params.renderBullet) paginationHTML += params.renderBullet.call(swiper, i, params.bulletClass);\n else // prettier-ignore\n paginationHTML += `<${params.bulletElement} ${swiper.isElement ? 'part=\"bullet\"' : \"\"} class=\"${params.bulletClass}\">`;\n }\n if (params.type === \"fraction\") {\n if (params.renderFraction) paginationHTML = params.renderFraction.call(swiper, params.currentClass, params.totalClass);\n else paginationHTML = `` + \" / \" + ``;\n }\n if (params.type === \"progressbar\") {\n if (params.renderProgressbar) paginationHTML = params.renderProgressbar.call(swiper, params.progressbarFillClass);\n else paginationHTML = ``;\n }\n swiper.pagination.bullets = [];\n el.forEach((subEl)=>{\n if (params.type !== \"custom\") subEl.innerHTML = paginationHTML || \"\";\n if (params.type === \"bullets\") swiper.pagination.bullets.push(...subEl.querySelectorAll((0, $129272ba76d8b432$export$db3b6bfb95261072)(params.bulletClass)));\n });\n if (params.type !== \"custom\") emit(\"paginationRender\", el[0]);\n }\n function init() {\n swiper.params.pagination = (0, $306a0aea613e7477$export$db3b6bfb95261072)(swiper, swiper.originalParams.pagination, swiper.params.pagination, {\n el: \"swiper-pagination\"\n });\n const params = swiper.params.pagination;\n if (!params.el) return;\n let el;\n if (typeof params.el === \"string\" && swiper.isElement) el = swiper.el.querySelector(params.el);\n if (!el && typeof params.el === \"string\") el = [\n ...document.querySelectorAll(params.el)\n ];\n if (!el) el = params.el;\n if (!el || el.length === 0) return;\n if (swiper.params.uniqueNavElements && typeof params.el === \"string\" && Array.isArray(el) && el.length > 1) {\n el = [\n ...swiper.el.querySelectorAll(params.el)\n ];\n // check if it belongs to another nested Swiper\n if (el.length > 1) el = el.filter((subEl)=>{\n if ((0, $f97f33853a605dba$export$407448d2b89b1813)(subEl, \".swiper\")[0] !== swiper.el) return false;\n return true;\n })[0];\n }\n if (Array.isArray(el) && el.length === 1) el = el[0];\n Object.assign(swiper.pagination, {\n el: el\n });\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n if (params.type === \"bullets\" && params.clickable) subEl.classList.add(...(params.clickableClass || \"\").split(\" \"));\n subEl.classList.add(params.modifierClass + params.type);\n subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n if (params.type === \"bullets\" && params.dynamicBullets) {\n subEl.classList.add(`${params.modifierClass}${params.type}-dynamic`);\n dynamicBulletIndex = 0;\n if (params.dynamicMainBullets < 1) params.dynamicMainBullets = 1;\n }\n if (params.type === \"progressbar\" && params.progressbarOpposite) subEl.classList.add(params.progressbarOppositeClass);\n if (params.clickable) subEl.addEventListener(\"click\", onBulletClick);\n if (!swiper.enabled) subEl.classList.add(params.lockClass);\n });\n }\n function destroy() {\n const params = swiper.params.pagination;\n if (isPaginationDisabled()) return;\n let el = swiper.pagination.el;\n if (el) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.classList.remove(params.hiddenClass);\n subEl.classList.remove(params.modifierClass + params.type);\n subEl.classList.remove(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n if (params.clickable) {\n subEl.classList.remove(...(params.clickableClass || \"\").split(\" \"));\n subEl.removeEventListener(\"click\", onBulletClick);\n }\n });\n }\n if (swiper.pagination.bullets) swiper.pagination.bullets.forEach((subEl)=>subEl.classList.remove(...params.bulletActiveClass.split(\" \")));\n }\n on(\"changeDirection\", ()=>{\n if (!swiper.pagination || !swiper.pagination.el) return;\n const params = swiper.params.pagination;\n let { el: el } = swiper.pagination;\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.classList.remove(params.horizontalClass, params.verticalClass);\n subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n });\n });\n on(\"init\", ()=>{\n if (swiper.params.pagination.enabled === false) // eslint-disable-next-line\n disable();\n else {\n init();\n render();\n update();\n }\n });\n on(\"activeIndexChange\", ()=>{\n if (typeof swiper.snapIndex === \"undefined\") update();\n });\n on(\"snapIndexChange\", ()=>{\n update();\n });\n on(\"snapGridLengthChange\", ()=>{\n render();\n update();\n });\n on(\"destroy\", ()=>{\n destroy();\n });\n on(\"enable disable\", ()=>{\n let { el: el } = swiper.pagination;\n if (el) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>subEl.classList[swiper.enabled ? \"remove\" : \"add\"](swiper.params.pagination.lockClass));\n }\n });\n on(\"lock unlock\", ()=>{\n update();\n });\n on(\"click\", (_s, e)=>{\n const targetEl = e.target;\n const el = makeElementsArray(swiper.pagination.el);\n if (swiper.params.pagination.el && swiper.params.pagination.hideOnClick && el && el.length > 0 && !targetEl.classList.contains(swiper.params.pagination.bulletClass)) {\n if (swiper.navigation && (swiper.navigation.nextEl && targetEl === swiper.navigation.nextEl || swiper.navigation.prevEl && targetEl === swiper.navigation.prevEl)) return;\n const isHidden = el[0].classList.contains(swiper.params.pagination.hiddenClass);\n if (isHidden === true) emit(\"paginationShow\");\n else emit(\"paginationHide\");\n el.forEach((subEl)=>subEl.classList.toggle(swiper.params.pagination.hiddenClass));\n }\n });\n const enable = ()=>{\n swiper.el.classList.remove(swiper.params.pagination.paginationDisabledClass);\n let { el: el } = swiper.pagination;\n if (el) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>subEl.classList.remove(swiper.params.pagination.paginationDisabledClass));\n }\n init();\n render();\n update();\n };\n const disable = ()=>{\n swiper.el.classList.add(swiper.params.pagination.paginationDisabledClass);\n let { el: el } = swiper.pagination;\n if (el) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>subEl.classList.add(swiper.params.pagination.paginationDisabledClass));\n }\n destroy();\n };\n Object.assign(swiper.pagination, {\n enable: enable,\n disable: disable,\n render: render,\n update: update,\n init: init,\n destroy: destroy\n });\n}\n\n\n\n\n\nfunction $acf6379ef00d1b73$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on, emit: emit } = _ref;\n const document = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n let isTouched = false;\n let timeout = null;\n let dragTimeout = null;\n let dragStartPos;\n let dragSize;\n let trackSize;\n let divider;\n extendParams({\n scrollbar: {\n el: null,\n dragSize: \"auto\",\n hide: false,\n draggable: false,\n snapOnRelease: true,\n lockClass: \"swiper-scrollbar-lock\",\n dragClass: \"swiper-scrollbar-drag\",\n scrollbarDisabledClass: \"swiper-scrollbar-disabled\",\n horizontalClass: `swiper-scrollbar-horizontal`,\n verticalClass: `swiper-scrollbar-vertical`\n }\n });\n swiper.scrollbar = {\n el: null,\n dragEl: null\n };\n function setTranslate() {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n const { scrollbar: scrollbar, rtlTranslate: rtl } = swiper;\n const { dragEl: dragEl, el: el } = scrollbar;\n const params = swiper.params.scrollbar;\n const progress = swiper.params.loop ? swiper.progressLoop : swiper.progress;\n let newSize = dragSize;\n let newPos = (trackSize - dragSize) * progress;\n if (rtl) {\n newPos = -newPos;\n if (newPos > 0) {\n newSize = dragSize - newPos;\n newPos = 0;\n } else if (-newPos + dragSize > trackSize) newSize = trackSize + newPos;\n } else if (newPos < 0) {\n newSize = dragSize + newPos;\n newPos = 0;\n } else if (newPos + dragSize > trackSize) newSize = trackSize - newPos;\n if (swiper.isHorizontal()) {\n dragEl.style.transform = `translate3d(${newPos}px, 0, 0)`;\n dragEl.style.width = `${newSize}px`;\n } else {\n dragEl.style.transform = `translate3d(0px, ${newPos}px, 0)`;\n dragEl.style.height = `${newSize}px`;\n }\n if (params.hide) {\n clearTimeout(timeout);\n el.style.opacity = 1;\n timeout = setTimeout(()=>{\n el.style.opacity = 0;\n el.style.transitionDuration = \"400ms\";\n }, 1000);\n }\n }\n function setTransition(duration) {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n swiper.scrollbar.dragEl.style.transitionDuration = `${duration}ms`;\n }\n function updateSize() {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n const { scrollbar: scrollbar } = swiper;\n const { dragEl: dragEl, el: el } = scrollbar;\n dragEl.style.width = \"\";\n dragEl.style.height = \"\";\n trackSize = swiper.isHorizontal() ? el.offsetWidth : el.offsetHeight;\n divider = swiper.size / (swiper.virtualSize + swiper.params.slidesOffsetBefore - (swiper.params.centeredSlides ? swiper.snapGrid[0] : 0));\n if (swiper.params.scrollbar.dragSize === \"auto\") dragSize = trackSize * divider;\n else dragSize = parseInt(swiper.params.scrollbar.dragSize, 10);\n if (swiper.isHorizontal()) dragEl.style.width = `${dragSize}px`;\n else dragEl.style.height = `${dragSize}px`;\n if (divider >= 1) el.style.display = \"none\";\n else el.style.display = \"\";\n if (swiper.params.scrollbar.hide) el.style.opacity = 0;\n if (swiper.params.watchOverflow && swiper.enabled) scrollbar.el.classList[swiper.isLocked ? \"add\" : \"remove\"](swiper.params.scrollbar.lockClass);\n }\n function getPointerPosition(e) {\n return swiper.isHorizontal() ? e.clientX : e.clientY;\n }\n function setDragPosition(e) {\n const { scrollbar: scrollbar, rtlTranslate: rtl } = swiper;\n const { el: el } = scrollbar;\n let positionRatio;\n positionRatio = (getPointerPosition(e) - (0, $f97f33853a605dba$export$8b22cf2602fb60ce)(el)[swiper.isHorizontal() ? \"left\" : \"top\"] - (dragStartPos !== null ? dragStartPos : dragSize / 2)) / (trackSize - dragSize);\n positionRatio = Math.max(Math.min(positionRatio, 1), 0);\n if (rtl) positionRatio = 1 - positionRatio;\n const position = swiper.minTranslate() + (swiper.maxTranslate() - swiper.minTranslate()) * positionRatio;\n swiper.updateProgress(position);\n swiper.setTranslate(position);\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n function onDragStart(e) {\n const params = swiper.params.scrollbar;\n const { scrollbar: scrollbar, wrapperEl: wrapperEl } = swiper;\n const { el: el, dragEl: dragEl } = scrollbar;\n isTouched = true;\n dragStartPos = e.target === dragEl ? getPointerPosition(e) - e.target.getBoundingClientRect()[swiper.isHorizontal() ? \"left\" : \"top\"] : null;\n e.preventDefault();\n e.stopPropagation();\n wrapperEl.style.transitionDuration = \"100ms\";\n dragEl.style.transitionDuration = \"100ms\";\n setDragPosition(e);\n clearTimeout(dragTimeout);\n el.style.transitionDuration = \"0ms\";\n if (params.hide) el.style.opacity = 1;\n if (swiper.params.cssMode) swiper.wrapperEl.style[\"scroll-snap-type\"] = \"none\";\n emit(\"scrollbarDragStart\", e);\n }\n function onDragMove(e) {\n const { scrollbar: scrollbar, wrapperEl: wrapperEl } = swiper;\n const { el: el, dragEl: dragEl } = scrollbar;\n if (!isTouched) return;\n if (e.preventDefault) e.preventDefault();\n else e.returnValue = false;\n setDragPosition(e);\n wrapperEl.style.transitionDuration = \"0ms\";\n el.style.transitionDuration = \"0ms\";\n dragEl.style.transitionDuration = \"0ms\";\n emit(\"scrollbarDragMove\", e);\n }\n function onDragEnd(e) {\n const params = swiper.params.scrollbar;\n const { scrollbar: scrollbar, wrapperEl: wrapperEl } = swiper;\n const { el: el } = scrollbar;\n if (!isTouched) return;\n isTouched = false;\n if (swiper.params.cssMode) {\n swiper.wrapperEl.style[\"scroll-snap-type\"] = \"\";\n wrapperEl.style.transitionDuration = \"\";\n }\n if (params.hide) {\n clearTimeout(dragTimeout);\n dragTimeout = (0, $f97f33853a605dba$export$7ccc53e8f1e7dfc5)(()=>{\n el.style.opacity = 0;\n el.style.transitionDuration = \"400ms\";\n }, 1000);\n }\n emit(\"scrollbarDragEnd\", e);\n if (params.snapOnRelease) swiper.slideToClosest();\n }\n function events(method) {\n const { scrollbar: scrollbar, params: params } = swiper;\n const el = scrollbar.el;\n if (!el) return;\n const target = el;\n const activeListener = params.passiveListeners ? {\n passive: false,\n capture: false\n } : false;\n const passiveListener = params.passiveListeners ? {\n passive: true,\n capture: false\n } : false;\n if (!target) return;\n const eventMethod = method === \"on\" ? \"addEventListener\" : \"removeEventListener\";\n target[eventMethod](\"pointerdown\", onDragStart, activeListener);\n document[eventMethod](\"pointermove\", onDragMove, activeListener);\n document[eventMethod](\"pointerup\", onDragEnd, passiveListener);\n }\n function enableDraggable() {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n events(\"on\");\n }\n function disableDraggable() {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n events(\"off\");\n }\n function init() {\n const { scrollbar: scrollbar, el: swiperEl } = swiper;\n swiper.params.scrollbar = (0, $306a0aea613e7477$export$db3b6bfb95261072)(swiper, swiper.originalParams.scrollbar, swiper.params.scrollbar, {\n el: \"swiper-scrollbar\"\n });\n const params = swiper.params.scrollbar;\n if (!params.el) return;\n let el;\n if (typeof params.el === \"string\" && swiper.isElement) el = swiper.el.querySelector(params.el);\n if (!el && typeof params.el === \"string\") el = document.querySelectorAll(params.el);\n else if (!el) el = params.el;\n if (swiper.params.uniqueNavElements && typeof params.el === \"string\" && el.length > 1 && swiperEl.querySelectorAll(params.el).length === 1) el = swiperEl.querySelector(params.el);\n if (el.length > 0) el = el[0];\n el.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n let dragEl;\n if (el) {\n dragEl = el.querySelector(`.${swiper.params.scrollbar.dragClass}`);\n if (!dragEl) {\n dragEl = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"div\", swiper.params.scrollbar.dragClass);\n el.append(dragEl);\n }\n }\n Object.assign(scrollbar, {\n el: el,\n dragEl: dragEl\n });\n if (params.draggable) enableDraggable();\n if (el) el.classList[swiper.enabled ? \"remove\" : \"add\"](swiper.params.scrollbar.lockClass);\n }\n function destroy() {\n const params = swiper.params.scrollbar;\n const el = swiper.scrollbar.el;\n if (el) el.classList.remove(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n disableDraggable();\n }\n on(\"init\", ()=>{\n if (swiper.params.scrollbar.enabled === false) // eslint-disable-next-line\n disable();\n else {\n init();\n updateSize();\n setTranslate();\n }\n });\n on(\"update resize observerUpdate lock unlock\", ()=>{\n updateSize();\n });\n on(\"setTranslate\", ()=>{\n setTranslate();\n });\n on(\"setTransition\", (_s, duration)=>{\n setTransition(duration);\n });\n on(\"enable disable\", ()=>{\n const { el: el } = swiper.scrollbar;\n if (el) el.classList[swiper.enabled ? \"remove\" : \"add\"](swiper.params.scrollbar.lockClass);\n });\n on(\"destroy\", ()=>{\n destroy();\n });\n const enable = ()=>{\n swiper.el.classList.remove(swiper.params.scrollbar.scrollbarDisabledClass);\n if (swiper.scrollbar.el) swiper.scrollbar.el.classList.remove(swiper.params.scrollbar.scrollbarDisabledClass);\n init();\n updateSize();\n setTranslate();\n };\n const disable = ()=>{\n swiper.el.classList.add(swiper.params.scrollbar.scrollbarDisabledClass);\n if (swiper.scrollbar.el) swiper.scrollbar.el.classList.add(swiper.params.scrollbar.scrollbarDisabledClass);\n destroy();\n };\n Object.assign(swiper.scrollbar, {\n enable: enable,\n disable: disable,\n updateSize: updateSize,\n setTranslate: setTranslate,\n init: init,\n destroy: destroy\n });\n}\n\n\n\nfunction $9eab48129a718d0a$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n parallax: {\n enabled: false\n }\n });\n const elementsSelector = \"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]\";\n const setTransform = (el, progress)=>{\n const { rtl: rtl } = swiper;\n const rtlFactor = rtl ? -1 : 1;\n const p = el.getAttribute(\"data-swiper-parallax\") || \"0\";\n let x = el.getAttribute(\"data-swiper-parallax-x\");\n let y = el.getAttribute(\"data-swiper-parallax-y\");\n const scale = el.getAttribute(\"data-swiper-parallax-scale\");\n const opacity = el.getAttribute(\"data-swiper-parallax-opacity\");\n const rotate = el.getAttribute(\"data-swiper-parallax-rotate\");\n if (x || y) {\n x = x || \"0\";\n y = y || \"0\";\n } else if (swiper.isHorizontal()) {\n x = p;\n y = \"0\";\n } else {\n y = p;\n x = \"0\";\n }\n if (x.indexOf(\"%\") >= 0) x = `${parseInt(x, 10) * progress * rtlFactor}%`;\n else x = `${x * progress * rtlFactor}px`;\n if (y.indexOf(\"%\") >= 0) y = `${parseInt(y, 10) * progress}%`;\n else y = `${y * progress}px`;\n if (typeof opacity !== \"undefined\" && opacity !== null) {\n const currentOpacity = opacity - (opacity - 1) * (1 - Math.abs(progress));\n el.style.opacity = currentOpacity;\n }\n let transform = `translate3d(${x}, ${y}, 0px)`;\n if (typeof scale !== \"undefined\" && scale !== null) {\n const currentScale = scale - (scale - 1) * (1 - Math.abs(progress));\n transform += ` scale(${currentScale})`;\n }\n if (rotate && typeof rotate !== \"undefined\" && rotate !== null) {\n const currentRotate = rotate * progress * -1;\n transform += ` rotate(${currentRotate}deg)`;\n }\n el.style.transform = transform;\n };\n const setTranslate = ()=>{\n const { el: el, slides: slides, progress: progress, snapGrid: snapGrid, isElement: isElement } = swiper;\n const elements = (0, $f97f33853a605dba$export$f1e1789686576879)(el, elementsSelector);\n if (swiper.isElement) elements.push(...(0, $f97f33853a605dba$export$f1e1789686576879)(swiper.hostEl, elementsSelector));\n elements.forEach((subEl)=>{\n setTransform(subEl, progress);\n });\n slides.forEach((slideEl, slideIndex)=>{\n let slideProgress = slideEl.progress;\n if (swiper.params.slidesPerGroup > 1 && swiper.params.slidesPerView !== \"auto\") slideProgress += Math.ceil(slideIndex / 2) - progress * (snapGrid.length - 1);\n slideProgress = Math.min(Math.max(slideProgress, -1), 1);\n slideEl.querySelectorAll(`${elementsSelector}, [data-swiper-parallax-rotate]`).forEach((subEl)=>{\n setTransform(subEl, slideProgress);\n });\n });\n };\n const setTransition = function(duration) {\n if (duration === void 0) duration = swiper.params.speed;\n const { el: el, hostEl: hostEl } = swiper;\n const elements = [\n ...el.querySelectorAll(elementsSelector)\n ];\n if (swiper.isElement) elements.push(...hostEl.querySelectorAll(elementsSelector));\n elements.forEach((parallaxEl)=>{\n let parallaxDuration = parseInt(parallaxEl.getAttribute(\"data-swiper-parallax-duration\"), 10) || duration;\n if (duration === 0) parallaxDuration = 0;\n parallaxEl.style.transitionDuration = `${parallaxDuration}ms`;\n });\n };\n on(\"beforeInit\", ()=>{\n if (!swiper.params.parallax.enabled) return;\n swiper.params.watchSlidesProgress = true;\n swiper.originalParams.watchSlidesProgress = true;\n });\n on(\"init\", ()=>{\n if (!swiper.params.parallax.enabled) return;\n setTranslate();\n });\n on(\"setTranslate\", ()=>{\n if (!swiper.params.parallax.enabled) return;\n setTranslate();\n });\n on(\"setTransition\", (_swiper, duration)=>{\n if (!swiper.params.parallax.enabled) return;\n setTransition(duration);\n });\n}\n\n\n\n\nfunction $5ce60fb5cd45355e$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on, emit: emit } = _ref;\n const window = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n extendParams({\n zoom: {\n enabled: false,\n maxRatio: 3,\n minRatio: 1,\n toggle: true,\n containerClass: \"swiper-zoom-container\",\n zoomedSlideClass: \"swiper-slide-zoomed\"\n }\n });\n swiper.zoom = {\n enabled: false\n };\n let currentScale = 1;\n let isScaling = false;\n let fakeGestureTouched;\n let fakeGestureMoved;\n const evCache = [];\n const gesture = {\n originX: 0,\n originY: 0,\n slideEl: undefined,\n slideWidth: undefined,\n slideHeight: undefined,\n imageEl: undefined,\n imageWrapEl: undefined,\n maxRatio: 3\n };\n const image = {\n isTouched: undefined,\n isMoved: undefined,\n currentX: undefined,\n currentY: undefined,\n minX: undefined,\n minY: undefined,\n maxX: undefined,\n maxY: undefined,\n width: undefined,\n height: undefined,\n startX: undefined,\n startY: undefined,\n touchesStart: {},\n touchesCurrent: {}\n };\n const velocity = {\n x: undefined,\n y: undefined,\n prevPositionX: undefined,\n prevPositionY: undefined,\n prevTime: undefined\n };\n let scale = 1;\n Object.defineProperty(swiper.zoom, \"scale\", {\n get () {\n return scale;\n },\n set (value) {\n if (scale !== value) {\n const imageEl = gesture.imageEl;\n const slideEl = gesture.slideEl;\n emit(\"zoomChange\", value, imageEl, slideEl);\n }\n scale = value;\n }\n });\n function getDistanceBetweenTouches() {\n if (evCache.length < 2) return 1;\n const x1 = evCache[0].pageX;\n const y1 = evCache[0].pageY;\n const x2 = evCache[1].pageX;\n const y2 = evCache[1].pageY;\n const distance = Math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2);\n return distance;\n }\n function getScaleOrigin() {\n if (evCache.length < 2) return {\n x: null,\n y: null\n };\n const box = gesture.imageEl.getBoundingClientRect();\n return [\n (evCache[0].pageX + (evCache[1].pageX - evCache[0].pageX) / 2 - box.x - window.scrollX) / currentScale,\n (evCache[0].pageY + (evCache[1].pageY - evCache[0].pageY) / 2 - box.y - window.scrollY) / currentScale\n ];\n }\n function getSlideSelector() {\n return swiper.isElement ? `swiper-slide` : `.${swiper.params.slideClass}`;\n }\n function eventWithinSlide(e) {\n const slideSelector = getSlideSelector();\n if (e.target.matches(slideSelector)) return true;\n if (swiper.slides.filter((slideEl)=>slideEl.contains(e.target)).length > 0) return true;\n return false;\n }\n function eventWithinZoomContainer(e) {\n const selector = `.${swiper.params.zoom.containerClass}`;\n if (e.target.matches(selector)) return true;\n if ([\n ...swiper.hostEl.querySelectorAll(selector)\n ].filter((containerEl)=>containerEl.contains(e.target)).length > 0) return true;\n return false;\n }\n // Events\n function onGestureStart(e) {\n if (e.pointerType === \"mouse\") evCache.splice(0, evCache.length);\n if (!eventWithinSlide(e)) return;\n const params = swiper.params.zoom;\n fakeGestureTouched = false;\n fakeGestureMoved = false;\n evCache.push(e);\n if (evCache.length < 2) return;\n fakeGestureTouched = true;\n gesture.scaleStart = getDistanceBetweenTouches();\n if (!gesture.slideEl) {\n gesture.slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);\n if (!gesture.slideEl) gesture.slideEl = swiper.slides[swiper.activeIndex];\n let imageEl = gesture.slideEl.querySelector(`.${params.containerClass}`);\n if (imageEl) imageEl = imageEl.querySelectorAll(\"picture, img, svg, canvas, .swiper-zoom-target\")[0];\n gesture.imageEl = imageEl;\n if (imageEl) gesture.imageWrapEl = (0, $f97f33853a605dba$export$407448d2b89b1813)(gesture.imageEl, `.${params.containerClass}`)[0];\n else gesture.imageWrapEl = undefined;\n if (!gesture.imageWrapEl) {\n gesture.imageEl = undefined;\n return;\n }\n gesture.maxRatio = gesture.imageWrapEl.getAttribute(\"data-swiper-zoom\") || params.maxRatio;\n }\n if (gesture.imageEl) {\n const [originX, originY] = getScaleOrigin();\n gesture.originX = originX;\n gesture.originY = originY;\n gesture.imageEl.style.transitionDuration = \"0ms\";\n }\n isScaling = true;\n }\n function onGestureChange(e) {\n if (!eventWithinSlide(e)) return;\n const params = swiper.params.zoom;\n const zoom = swiper.zoom;\n const pointerIndex = evCache.findIndex((cachedEv)=>cachedEv.pointerId === e.pointerId);\n if (pointerIndex >= 0) evCache[pointerIndex] = e;\n if (evCache.length < 2) return;\n fakeGestureMoved = true;\n gesture.scaleMove = getDistanceBetweenTouches();\n if (!gesture.imageEl) return;\n zoom.scale = gesture.scaleMove / gesture.scaleStart * currentScale;\n if (zoom.scale > gesture.maxRatio) zoom.scale = gesture.maxRatio - 1 + (zoom.scale - gesture.maxRatio + 1) ** 0.5;\n if (zoom.scale < params.minRatio) zoom.scale = params.minRatio + 1 - (params.minRatio - zoom.scale + 1) ** 0.5;\n gesture.imageEl.style.transform = `translate3d(0,0,0) scale(${zoom.scale})`;\n }\n function onGestureEnd(e) {\n if (!eventWithinSlide(e)) return;\n if (e.pointerType === \"mouse\" && e.type === \"pointerout\") return;\n const params = swiper.params.zoom;\n const zoom = swiper.zoom;\n const pointerIndex = evCache.findIndex((cachedEv)=>cachedEv.pointerId === e.pointerId);\n if (pointerIndex >= 0) evCache.splice(pointerIndex, 1);\n if (!fakeGestureTouched || !fakeGestureMoved) return;\n fakeGestureTouched = false;\n fakeGestureMoved = false;\n if (!gesture.imageEl) return;\n zoom.scale = Math.max(Math.min(zoom.scale, gesture.maxRatio), params.minRatio);\n gesture.imageEl.style.transitionDuration = `${swiper.params.speed}ms`;\n gesture.imageEl.style.transform = `translate3d(0,0,0) scale(${zoom.scale})`;\n currentScale = zoom.scale;\n isScaling = false;\n if (zoom.scale > 1 && gesture.slideEl) gesture.slideEl.classList.add(`${params.zoomedSlideClass}`);\n else if (zoom.scale <= 1 && gesture.slideEl) gesture.slideEl.classList.remove(`${params.zoomedSlideClass}`);\n if (zoom.scale === 1) {\n gesture.originX = 0;\n gesture.originY = 0;\n gesture.slideEl = undefined;\n }\n }\n function onTouchStart(e) {\n const device = swiper.device;\n if (!gesture.imageEl) return;\n if (image.isTouched) return;\n if (device.android && e.cancelable) e.preventDefault();\n image.isTouched = true;\n const event = evCache.length > 0 ? evCache[0] : e;\n image.touchesStart.x = event.pageX;\n image.touchesStart.y = event.pageY;\n }\n function onTouchMove(e) {\n if (!eventWithinSlide(e) || !eventWithinZoomContainer(e)) return;\n const zoom = swiper.zoom;\n if (!gesture.imageEl) return;\n if (!image.isTouched || !gesture.slideEl) return;\n if (!image.isMoved) {\n image.width = gesture.imageEl.offsetWidth;\n image.height = gesture.imageEl.offsetHeight;\n image.startX = (0, $f97f33853a605dba$export$dda1d9f60106f0e9)(gesture.imageWrapEl, \"x\") || 0;\n image.startY = (0, $f97f33853a605dba$export$dda1d9f60106f0e9)(gesture.imageWrapEl, \"y\") || 0;\n gesture.slideWidth = gesture.slideEl.offsetWidth;\n gesture.slideHeight = gesture.slideEl.offsetHeight;\n gesture.imageWrapEl.style.transitionDuration = \"0ms\";\n }\n // Define if we need image drag\n const scaledWidth = image.width * zoom.scale;\n const scaledHeight = image.height * zoom.scale;\n if (scaledWidth < gesture.slideWidth && scaledHeight < gesture.slideHeight) return;\n image.minX = Math.min(gesture.slideWidth / 2 - scaledWidth / 2, 0);\n image.maxX = -image.minX;\n image.minY = Math.min(gesture.slideHeight / 2 - scaledHeight / 2, 0);\n image.maxY = -image.minY;\n image.touchesCurrent.x = evCache.length > 0 ? evCache[0].pageX : e.pageX;\n image.touchesCurrent.y = evCache.length > 0 ? evCache[0].pageY : e.pageY;\n const touchesDiff = Math.max(Math.abs(image.touchesCurrent.x - image.touchesStart.x), Math.abs(image.touchesCurrent.y - image.touchesStart.y));\n if (touchesDiff > 5) swiper.allowClick = false;\n if (!image.isMoved && !isScaling) {\n if (swiper.isHorizontal() && (Math.floor(image.minX) === Math.floor(image.startX) && image.touchesCurrent.x < image.touchesStart.x || Math.floor(image.maxX) === Math.floor(image.startX) && image.touchesCurrent.x > image.touchesStart.x)) {\n image.isTouched = false;\n return;\n }\n if (!swiper.isHorizontal() && (Math.floor(image.minY) === Math.floor(image.startY) && image.touchesCurrent.y < image.touchesStart.y || Math.floor(image.maxY) === Math.floor(image.startY) && image.touchesCurrent.y > image.touchesStart.y)) {\n image.isTouched = false;\n return;\n }\n }\n if (e.cancelable) e.preventDefault();\n e.stopPropagation();\n image.isMoved = true;\n const scaleRatio = (zoom.scale - currentScale) / (gesture.maxRatio - swiper.params.zoom.minRatio);\n const { originX: originX, originY: originY } = gesture;\n image.currentX = image.touchesCurrent.x - image.touchesStart.x + image.startX + scaleRatio * (image.width - originX * 2);\n image.currentY = image.touchesCurrent.y - image.touchesStart.y + image.startY + scaleRatio * (image.height - originY * 2);\n if (image.currentX < image.minX) image.currentX = image.minX + 1 - (image.minX - image.currentX + 1) ** 0.8;\n if (image.currentX > image.maxX) image.currentX = image.maxX - 1 + (image.currentX - image.maxX + 1) ** 0.8;\n if (image.currentY < image.minY) image.currentY = image.minY + 1 - (image.minY - image.currentY + 1) ** 0.8;\n if (image.currentY > image.maxY) image.currentY = image.maxY - 1 + (image.currentY - image.maxY + 1) ** 0.8;\n // Velocity\n if (!velocity.prevPositionX) velocity.prevPositionX = image.touchesCurrent.x;\n if (!velocity.prevPositionY) velocity.prevPositionY = image.touchesCurrent.y;\n if (!velocity.prevTime) velocity.prevTime = Date.now();\n velocity.x = (image.touchesCurrent.x - velocity.prevPositionX) / (Date.now() - velocity.prevTime) / 2;\n velocity.y = (image.touchesCurrent.y - velocity.prevPositionY) / (Date.now() - velocity.prevTime) / 2;\n if (Math.abs(image.touchesCurrent.x - velocity.prevPositionX) < 2) velocity.x = 0;\n if (Math.abs(image.touchesCurrent.y - velocity.prevPositionY) < 2) velocity.y = 0;\n velocity.prevPositionX = image.touchesCurrent.x;\n velocity.prevPositionY = image.touchesCurrent.y;\n velocity.prevTime = Date.now();\n gesture.imageWrapEl.style.transform = `translate3d(${image.currentX}px, ${image.currentY}px,0)`;\n }\n function onTouchEnd() {\n const zoom = swiper.zoom;\n if (!gesture.imageEl) return;\n if (!image.isTouched || !image.isMoved) {\n image.isTouched = false;\n image.isMoved = false;\n return;\n }\n image.isTouched = false;\n image.isMoved = false;\n let momentumDurationX = 300;\n let momentumDurationY = 300;\n const momentumDistanceX = velocity.x * momentumDurationX;\n const newPositionX = image.currentX + momentumDistanceX;\n const momentumDistanceY = velocity.y * momentumDurationY;\n const newPositionY = image.currentY + momentumDistanceY;\n // Fix duration\n if (velocity.x !== 0) momentumDurationX = Math.abs((newPositionX - image.currentX) / velocity.x);\n if (velocity.y !== 0) momentumDurationY = Math.abs((newPositionY - image.currentY) / velocity.y);\n const momentumDuration = Math.max(momentumDurationX, momentumDurationY);\n image.currentX = newPositionX;\n image.currentY = newPositionY;\n // Define if we need image drag\n const scaledWidth = image.width * zoom.scale;\n const scaledHeight = image.height * zoom.scale;\n image.minX = Math.min(gesture.slideWidth / 2 - scaledWidth / 2, 0);\n image.maxX = -image.minX;\n image.minY = Math.min(gesture.slideHeight / 2 - scaledHeight / 2, 0);\n image.maxY = -image.minY;\n image.currentX = Math.max(Math.min(image.currentX, image.maxX), image.minX);\n image.currentY = Math.max(Math.min(image.currentY, image.maxY), image.minY);\n gesture.imageWrapEl.style.transitionDuration = `${momentumDuration}ms`;\n gesture.imageWrapEl.style.transform = `translate3d(${image.currentX}px, ${image.currentY}px,0)`;\n }\n function onTransitionEnd() {\n const zoom = swiper.zoom;\n if (gesture.slideEl && swiper.activeIndex !== swiper.slides.indexOf(gesture.slideEl)) {\n if (gesture.imageEl) gesture.imageEl.style.transform = \"translate3d(0,0,0) scale(1)\";\n if (gesture.imageWrapEl) gesture.imageWrapEl.style.transform = \"translate3d(0,0,0)\";\n gesture.slideEl.classList.remove(`${swiper.params.zoom.zoomedSlideClass}`);\n zoom.scale = 1;\n currentScale = 1;\n gesture.slideEl = undefined;\n gesture.imageEl = undefined;\n gesture.imageWrapEl = undefined;\n gesture.originX = 0;\n gesture.originY = 0;\n }\n }\n function zoomIn(e) {\n const zoom = swiper.zoom;\n const params = swiper.params.zoom;\n if (!gesture.slideEl) {\n if (e && e.target) gesture.slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);\n if (!gesture.slideEl) {\n if (swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual) gesture.slideEl = (0, $f97f33853a605dba$export$f1e1789686576879)(swiper.slidesEl, `.${swiper.params.slideActiveClass}`)[0];\n else gesture.slideEl = swiper.slides[swiper.activeIndex];\n }\n let imageEl = gesture.slideEl.querySelector(`.${params.containerClass}`);\n if (imageEl) imageEl = imageEl.querySelectorAll(\"picture, img, svg, canvas, .swiper-zoom-target\")[0];\n gesture.imageEl = imageEl;\n if (imageEl) gesture.imageWrapEl = (0, $f97f33853a605dba$export$407448d2b89b1813)(gesture.imageEl, `.${params.containerClass}`)[0];\n else gesture.imageWrapEl = undefined;\n }\n if (!gesture.imageEl || !gesture.imageWrapEl) return;\n if (swiper.params.cssMode) {\n swiper.wrapperEl.style.overflow = \"hidden\";\n swiper.wrapperEl.style.touchAction = \"none\";\n }\n gesture.slideEl.classList.add(`${params.zoomedSlideClass}`);\n let touchX;\n let touchY;\n let offsetX;\n let offsetY;\n let diffX;\n let diffY;\n let translateX;\n let translateY;\n let imageWidth;\n let imageHeight;\n let scaledWidth;\n let scaledHeight;\n let translateMinX;\n let translateMinY;\n let translateMaxX;\n let translateMaxY;\n let slideWidth;\n let slideHeight;\n if (typeof image.touchesStart.x === \"undefined\" && e) {\n touchX = e.pageX;\n touchY = e.pageY;\n } else {\n touchX = image.touchesStart.x;\n touchY = image.touchesStart.y;\n }\n const forceZoomRatio = typeof e === \"number\" ? e : null;\n if (currentScale === 1 && forceZoomRatio) {\n touchX = undefined;\n touchY = undefined;\n }\n zoom.scale = forceZoomRatio || gesture.imageWrapEl.getAttribute(\"data-swiper-zoom\") || params.maxRatio;\n currentScale = forceZoomRatio || gesture.imageWrapEl.getAttribute(\"data-swiper-zoom\") || params.maxRatio;\n if (e && !(currentScale === 1 && forceZoomRatio)) {\n slideWidth = gesture.slideEl.offsetWidth;\n slideHeight = gesture.slideEl.offsetHeight;\n offsetX = (0, $f97f33853a605dba$export$8b22cf2602fb60ce)(gesture.slideEl).left + window.scrollX;\n offsetY = (0, $f97f33853a605dba$export$8b22cf2602fb60ce)(gesture.slideEl).top + window.scrollY;\n diffX = offsetX + slideWidth / 2 - touchX;\n diffY = offsetY + slideHeight / 2 - touchY;\n imageWidth = gesture.imageEl.offsetWidth;\n imageHeight = gesture.imageEl.offsetHeight;\n scaledWidth = imageWidth * zoom.scale;\n scaledHeight = imageHeight * zoom.scale;\n translateMinX = Math.min(slideWidth / 2 - scaledWidth / 2, 0);\n translateMinY = Math.min(slideHeight / 2 - scaledHeight / 2, 0);\n translateMaxX = -translateMinX;\n translateMaxY = -translateMinY;\n translateX = diffX * zoom.scale;\n translateY = diffY * zoom.scale;\n if (translateX < translateMinX) translateX = translateMinX;\n if (translateX > translateMaxX) translateX = translateMaxX;\n if (translateY < translateMinY) translateY = translateMinY;\n if (translateY > translateMaxY) translateY = translateMaxY;\n } else {\n translateX = 0;\n translateY = 0;\n }\n if (forceZoomRatio && zoom.scale === 1) {\n gesture.originX = 0;\n gesture.originY = 0;\n }\n gesture.imageWrapEl.style.transitionDuration = \"300ms\";\n gesture.imageWrapEl.style.transform = `translate3d(${translateX}px, ${translateY}px,0)`;\n gesture.imageEl.style.transitionDuration = \"300ms\";\n gesture.imageEl.style.transform = `translate3d(0,0,0) scale(${zoom.scale})`;\n }\n function zoomOut() {\n const zoom = swiper.zoom;\n const params = swiper.params.zoom;\n if (!gesture.slideEl) {\n if (swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual) gesture.slideEl = (0, $f97f33853a605dba$export$f1e1789686576879)(swiper.slidesEl, `.${swiper.params.slideActiveClass}`)[0];\n else gesture.slideEl = swiper.slides[swiper.activeIndex];\n let imageEl = gesture.slideEl.querySelector(`.${params.containerClass}`);\n if (imageEl) imageEl = imageEl.querySelectorAll(\"picture, img, svg, canvas, .swiper-zoom-target\")[0];\n gesture.imageEl = imageEl;\n if (imageEl) gesture.imageWrapEl = (0, $f97f33853a605dba$export$407448d2b89b1813)(gesture.imageEl, `.${params.containerClass}`)[0];\n else gesture.imageWrapEl = undefined;\n }\n if (!gesture.imageEl || !gesture.imageWrapEl) return;\n if (swiper.params.cssMode) {\n swiper.wrapperEl.style.overflow = \"\";\n swiper.wrapperEl.style.touchAction = \"\";\n }\n zoom.scale = 1;\n currentScale = 1;\n gesture.imageWrapEl.style.transitionDuration = \"300ms\";\n gesture.imageWrapEl.style.transform = \"translate3d(0,0,0)\";\n gesture.imageEl.style.transitionDuration = \"300ms\";\n gesture.imageEl.style.transform = \"translate3d(0,0,0) scale(1)\";\n gesture.slideEl.classList.remove(`${params.zoomedSlideClass}`);\n gesture.slideEl = undefined;\n gesture.originX = 0;\n gesture.originY = 0;\n }\n // Toggle Zoom\n function zoomToggle(e) {\n const zoom = swiper.zoom;\n if (zoom.scale && zoom.scale !== 1) // Zoom Out\n zoomOut();\n else // Zoom In\n zoomIn(e);\n }\n function getListeners() {\n const passiveListener = swiper.params.passiveListeners ? {\n passive: true,\n capture: false\n } : false;\n const activeListenerWithCapture = swiper.params.passiveListeners ? {\n passive: false,\n capture: true\n } : true;\n return {\n passiveListener: passiveListener,\n activeListenerWithCapture: activeListenerWithCapture\n };\n }\n // Attach/Detach Events\n function enable() {\n const zoom = swiper.zoom;\n if (zoom.enabled) return;\n zoom.enabled = true;\n const { passiveListener: passiveListener, activeListenerWithCapture: activeListenerWithCapture } = getListeners();\n // Scale image\n swiper.wrapperEl.addEventListener(\"pointerdown\", onGestureStart, passiveListener);\n swiper.wrapperEl.addEventListener(\"pointermove\", onGestureChange, activeListenerWithCapture);\n [\n \"pointerup\",\n \"pointercancel\",\n \"pointerout\"\n ].forEach((eventName)=>{\n swiper.wrapperEl.addEventListener(eventName, onGestureEnd, passiveListener);\n });\n // Move image\n swiper.wrapperEl.addEventListener(\"pointermove\", onTouchMove, activeListenerWithCapture);\n }\n function disable() {\n const zoom = swiper.zoom;\n if (!zoom.enabled) return;\n zoom.enabled = false;\n const { passiveListener: passiveListener, activeListenerWithCapture: activeListenerWithCapture } = getListeners();\n // Scale image\n swiper.wrapperEl.removeEventListener(\"pointerdown\", onGestureStart, passiveListener);\n swiper.wrapperEl.removeEventListener(\"pointermove\", onGestureChange, activeListenerWithCapture);\n [\n \"pointerup\",\n \"pointercancel\",\n \"pointerout\"\n ].forEach((eventName)=>{\n swiper.wrapperEl.removeEventListener(eventName, onGestureEnd, passiveListener);\n });\n // Move image\n swiper.wrapperEl.removeEventListener(\"pointermove\", onTouchMove, activeListenerWithCapture);\n }\n on(\"init\", ()=>{\n if (swiper.params.zoom.enabled) enable();\n });\n on(\"destroy\", ()=>{\n disable();\n });\n on(\"touchStart\", (_s, e)=>{\n if (!swiper.zoom.enabled) return;\n onTouchStart(e);\n });\n on(\"touchEnd\", (_s, e)=>{\n if (!swiper.zoom.enabled) return;\n onTouchEnd();\n });\n on(\"doubleTap\", (_s, e)=>{\n if (!swiper.animating && swiper.params.zoom.enabled && swiper.zoom.enabled && swiper.params.zoom.toggle) zoomToggle(e);\n });\n on(\"transitionEnd\", ()=>{\n if (swiper.zoom.enabled && swiper.params.zoom.enabled) onTransitionEnd();\n });\n on(\"slideChange\", ()=>{\n if (swiper.zoom.enabled && swiper.params.zoom.enabled && swiper.params.cssMode) onTransitionEnd();\n });\n Object.assign(swiper.zoom, {\n enable: enable,\n disable: disable,\n in: zoomIn,\n out: zoomOut,\n toggle: zoomToggle\n });\n}\n\n\n\n/* eslint no-bitwise: [\"error\", { \"allow\": [\">>\"] }] */ function $4ee670f8e74e92c5$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n controller: {\n control: undefined,\n inverse: false,\n by: \"slide\" // or 'container'\n }\n });\n swiper.controller = {\n control: undefined\n };\n function LinearSpline(x, y) {\n const binarySearch = function search() {\n let maxIndex;\n let minIndex;\n let guess;\n return (array, val)=>{\n minIndex = -1;\n maxIndex = array.length;\n while(maxIndex - minIndex > 1){\n guess = maxIndex + minIndex >> 1;\n if (array[guess] <= val) minIndex = guess;\n else maxIndex = guess;\n }\n return maxIndex;\n };\n }();\n this.x = x;\n this.y = y;\n this.lastIndex = x.length - 1;\n // Given an x value (x2), return the expected y2 value:\n // (x1,y1) is the known point before given value,\n // (x3,y3) is the known point after given value.\n let i1;\n let i3;\n this.interpolate = function interpolate(x2) {\n if (!x2) return 0;\n // Get the indexes of x1 and x3 (the array indexes before and after given x2):\n i3 = binarySearch(this.x, x2);\n i1 = i3 - 1;\n // We have our indexes i1 & i3, so we can calculate already:\n // y2 := ((x2−x1) × (y3−y1)) ÷ (x3−x1) + y1\n return (x2 - this.x[i1]) * (this.y[i3] - this.y[i1]) / (this.x[i3] - this.x[i1]) + this.y[i1];\n };\n return this;\n }\n function getInterpolateFunction(c) {\n swiper.controller.spline = swiper.params.loop ? new LinearSpline(swiper.slidesGrid, c.slidesGrid) : new LinearSpline(swiper.snapGrid, c.snapGrid);\n }\n function setTranslate(_t, byController) {\n const controlled = swiper.controller.control;\n let multiplier;\n let controlledTranslate;\n const Swiper = swiper.constructor;\n function setControlledTranslate(c) {\n if (c.destroyed) return;\n // this will create an Interpolate function based on the snapGrids\n // x is the Grid of the scrolled scroller and y will be the controlled scroller\n // it makes sense to create this only once and recall it for the interpolation\n // the function does a lot of value caching for performance\n const translate = swiper.rtlTranslate ? -swiper.translate : swiper.translate;\n if (swiper.params.controller.by === \"slide\") {\n getInterpolateFunction(c);\n // i am not sure why the values have to be multiplicated this way, tried to invert the snapGrid\n // but it did not work out\n controlledTranslate = -swiper.controller.spline.interpolate(-translate);\n }\n if (!controlledTranslate || swiper.params.controller.by === \"container\") {\n multiplier = (c.maxTranslate() - c.minTranslate()) / (swiper.maxTranslate() - swiper.minTranslate());\n if (Number.isNaN(multiplier) || !Number.isFinite(multiplier)) multiplier = 1;\n controlledTranslate = (translate - swiper.minTranslate()) * multiplier + c.minTranslate();\n }\n if (swiper.params.controller.inverse) controlledTranslate = c.maxTranslate() - controlledTranslate;\n c.updateProgress(controlledTranslate);\n c.setTranslate(controlledTranslate, swiper);\n c.updateActiveIndex();\n c.updateSlidesClasses();\n }\n if (Array.isArray(controlled)) {\n for(let i = 0; i < controlled.length; i += 1)if (controlled[i] !== byController && controlled[i] instanceof Swiper) setControlledTranslate(controlled[i]);\n } else if (controlled instanceof Swiper && byController !== controlled) setControlledTranslate(controlled);\n }\n function setTransition(duration, byController) {\n const Swiper = swiper.constructor;\n const controlled = swiper.controller.control;\n let i;\n function setControlledTransition(c) {\n if (c.destroyed) return;\n c.setTransition(duration, swiper);\n if (duration !== 0) {\n c.transitionStart();\n if (c.params.autoHeight) (0, $f97f33853a605dba$export$7ccc53e8f1e7dfc5)(()=>{\n c.updateAutoHeight();\n });\n (0, $f97f33853a605dba$export$23f2a1d2818174ef)(c.wrapperEl, ()=>{\n if (!controlled) return;\n c.transitionEnd();\n });\n }\n }\n if (Array.isArray(controlled)) {\n for(i = 0; i < controlled.length; i += 1)if (controlled[i] !== byController && controlled[i] instanceof Swiper) setControlledTransition(controlled[i]);\n } else if (controlled instanceof Swiper && byController !== controlled) setControlledTransition(controlled);\n }\n function removeSpline() {\n if (!swiper.controller.control) return;\n if (swiper.controller.spline) {\n swiper.controller.spline = undefined;\n delete swiper.controller.spline;\n }\n }\n on(\"beforeInit\", ()=>{\n if (typeof window !== \"undefined\" && // eslint-disable-line\n (typeof swiper.params.controller.control === \"string\" || swiper.params.controller.control instanceof HTMLElement)) {\n const controlElement = document.querySelector(swiper.params.controller.control);\n if (controlElement && controlElement.swiper) swiper.controller.control = controlElement.swiper;\n else if (controlElement) {\n const onControllerSwiper = (e)=>{\n swiper.controller.control = e.detail[0];\n swiper.update();\n controlElement.removeEventListener(\"init\", onControllerSwiper);\n };\n controlElement.addEventListener(\"init\", onControllerSwiper);\n }\n return;\n }\n swiper.controller.control = swiper.params.controller.control;\n });\n on(\"update\", ()=>{\n removeSpline();\n });\n on(\"resize\", ()=>{\n removeSpline();\n });\n on(\"observerUpdate\", ()=>{\n removeSpline();\n });\n on(\"setTranslate\", (_s, translate, byController)=>{\n if (!swiper.controller.control || swiper.controller.control.destroyed) return;\n swiper.controller.setTranslate(translate, byController);\n });\n on(\"setTransition\", (_s, duration, byController)=>{\n if (!swiper.controller.control || swiper.controller.control.destroyed) return;\n swiper.controller.setTransition(duration, byController);\n });\n Object.assign(swiper.controller, {\n setTranslate: setTranslate,\n setTransition: setTransition\n });\n}\n\n\n\n\nfunction $9df471290665e5ad$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n a11y: {\n enabled: true,\n notificationClass: \"swiper-notification\",\n prevSlideMessage: \"Previous slide\",\n nextSlideMessage: \"Next slide\",\n firstSlideMessage: \"This is the first slide\",\n lastSlideMessage: \"This is the last slide\",\n paginationBulletMessage: \"Go to slide {{index}}\",\n slideLabelMessage: \"{{index}} / {{slidesLength}}\",\n containerMessage: null,\n containerRoleDescriptionMessage: null,\n itemRoleDescriptionMessage: null,\n slideRole: \"group\",\n id: null\n }\n });\n swiper.a11y = {\n clicked: false\n };\n let liveRegion = null;\n function notify(message) {\n const notification = liveRegion;\n if (notification.length === 0) return;\n notification.innerHTML = \"\";\n notification.innerHTML = message;\n }\n const makeElementsArray = (el)=>(Array.isArray(el) ? el : [\n el\n ]).filter((e)=>!!e);\n function getRandomNumber(size) {\n if (size === void 0) size = 16;\n const randomChar = ()=>Math.round(16 * Math.random()).toString(16);\n return \"x\".repeat(size).replace(/x/g, randomChar);\n }\n function makeElFocusable(el) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"tabIndex\", \"0\");\n });\n }\n function makeElNotFocusable(el) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"tabIndex\", \"-1\");\n });\n }\n function addElRole(el, role) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"role\", role);\n });\n }\n function addElRoleDescription(el, description) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"aria-roledescription\", description);\n });\n }\n function addElControls(el, controls) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"aria-controls\", controls);\n });\n }\n function addElLabel(el, label) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"aria-label\", label);\n });\n }\n function addElId(el, id) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"id\", id);\n });\n }\n function addElLive(el, live) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"aria-live\", live);\n });\n }\n function disableEl(el) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"aria-disabled\", true);\n });\n }\n function enableEl(el) {\n el = makeElementsArray(el);\n el.forEach((subEl)=>{\n subEl.setAttribute(\"aria-disabled\", false);\n });\n }\n function onEnterOrSpaceKey(e) {\n if (e.keyCode !== 13 && e.keyCode !== 32) return;\n const params = swiper.params.a11y;\n const targetEl = e.target;\n if (swiper.pagination && swiper.pagination.el && (targetEl === swiper.pagination.el || swiper.pagination.el.contains(e.target))) {\n if (!e.target.matches((0, $129272ba76d8b432$export$db3b6bfb95261072)(swiper.params.pagination.bulletClass))) return;\n }\n if (swiper.navigation && swiper.navigation.nextEl && targetEl === swiper.navigation.nextEl) {\n if (!(swiper.isEnd && !swiper.params.loop)) swiper.slideNext();\n if (swiper.isEnd) notify(params.lastSlideMessage);\n else notify(params.nextSlideMessage);\n }\n if (swiper.navigation && swiper.navigation.prevEl && targetEl === swiper.navigation.prevEl) {\n if (!(swiper.isBeginning && !swiper.params.loop)) swiper.slidePrev();\n if (swiper.isBeginning) notify(params.firstSlideMessage);\n else notify(params.prevSlideMessage);\n }\n if (swiper.pagination && targetEl.matches((0, $129272ba76d8b432$export$db3b6bfb95261072)(swiper.params.pagination.bulletClass))) targetEl.click();\n }\n function updateNavigation() {\n if (swiper.params.loop || swiper.params.rewind || !swiper.navigation) return;\n const { nextEl: nextEl, prevEl: prevEl } = swiper.navigation;\n if (prevEl) {\n if (swiper.isBeginning) {\n disableEl(prevEl);\n makeElNotFocusable(prevEl);\n } else {\n enableEl(prevEl);\n makeElFocusable(prevEl);\n }\n }\n if (nextEl) {\n if (swiper.isEnd) {\n disableEl(nextEl);\n makeElNotFocusable(nextEl);\n } else {\n enableEl(nextEl);\n makeElFocusable(nextEl);\n }\n }\n }\n function hasPagination() {\n return swiper.pagination && swiper.pagination.bullets && swiper.pagination.bullets.length;\n }\n function hasClickablePagination() {\n return hasPagination() && swiper.params.pagination.clickable;\n }\n function updatePagination() {\n const params = swiper.params.a11y;\n if (!hasPagination()) return;\n swiper.pagination.bullets.forEach((bulletEl)=>{\n if (swiper.params.pagination.clickable) {\n makeElFocusable(bulletEl);\n if (!swiper.params.pagination.renderBullet) {\n addElRole(bulletEl, \"button\");\n addElLabel(bulletEl, params.paginationBulletMessage.replace(/\\{\\{index\\}\\}/, (0, $f97f33853a605dba$export$39b482c5e57630a8)(bulletEl) + 1));\n }\n }\n if (bulletEl.matches((0, $129272ba76d8b432$export$db3b6bfb95261072)(swiper.params.pagination.bulletActiveClass))) bulletEl.setAttribute(\"aria-current\", \"true\");\n else bulletEl.removeAttribute(\"aria-current\");\n });\n }\n const initNavEl = (el, wrapperId, message)=>{\n makeElFocusable(el);\n if (el.tagName !== \"BUTTON\") {\n addElRole(el, \"button\");\n el.addEventListener(\"keydown\", onEnterOrSpaceKey);\n }\n addElLabel(el, message);\n addElControls(el, wrapperId);\n };\n const handlePointerDown = ()=>{\n swiper.a11y.clicked = true;\n };\n const handlePointerUp = ()=>{\n requestAnimationFrame(()=>{\n requestAnimationFrame(()=>{\n if (!swiper.destroyed) swiper.a11y.clicked = false;\n });\n });\n };\n const handleFocus = (e)=>{\n if (swiper.a11y.clicked) return;\n const slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);\n if (!slideEl || !swiper.slides.includes(slideEl)) return;\n const isActive = swiper.slides.indexOf(slideEl) === swiper.activeIndex;\n const isVisible = swiper.params.watchSlidesProgress && swiper.visibleSlides && swiper.visibleSlides.includes(slideEl);\n if (isActive || isVisible) return;\n if (e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents) return;\n if (swiper.isHorizontal()) swiper.el.scrollLeft = 0;\n else swiper.el.scrollTop = 0;\n swiper.slideTo(swiper.slides.indexOf(slideEl), 0);\n };\n const initSlides = ()=>{\n const params = swiper.params.a11y;\n if (params.itemRoleDescriptionMessage) addElRoleDescription(swiper.slides, params.itemRoleDescriptionMessage);\n if (params.slideRole) addElRole(swiper.slides, params.slideRole);\n const slidesLength = swiper.slides.length;\n if (params.slideLabelMessage) swiper.slides.forEach((slideEl, index)=>{\n const slideIndex = swiper.params.loop ? parseInt(slideEl.getAttribute(\"data-swiper-slide-index\"), 10) : index;\n const ariaLabelMessage = params.slideLabelMessage.replace(/\\{\\{index\\}\\}/, slideIndex + 1).replace(/\\{\\{slidesLength\\}\\}/, slidesLength);\n addElLabel(slideEl, ariaLabelMessage);\n });\n };\n const init = ()=>{\n const params = swiper.params.a11y;\n swiper.el.append(liveRegion);\n // Container\n const containerEl = swiper.el;\n if (params.containerRoleDescriptionMessage) addElRoleDescription(containerEl, params.containerRoleDescriptionMessage);\n if (params.containerMessage) addElLabel(containerEl, params.containerMessage);\n // Wrapper\n const wrapperEl = swiper.wrapperEl;\n const wrapperId = params.id || wrapperEl.getAttribute(\"id\") || `swiper-wrapper-${getRandomNumber(16)}`;\n const live = swiper.params.autoplay && swiper.params.autoplay.enabled ? \"off\" : \"polite\";\n addElId(wrapperEl, wrapperId);\n addElLive(wrapperEl, live);\n // Slide\n initSlides();\n // Navigation\n let { nextEl: nextEl, prevEl: prevEl } = swiper.navigation ? swiper.navigation : {};\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n if (nextEl) nextEl.forEach((el)=>initNavEl(el, wrapperId, params.nextSlideMessage));\n if (prevEl) prevEl.forEach((el)=>initNavEl(el, wrapperId, params.prevSlideMessage));\n // Pagination\n if (hasClickablePagination()) {\n const paginationEl = Array.isArray(swiper.pagination.el) ? swiper.pagination.el : [\n swiper.pagination.el\n ];\n paginationEl.forEach((el)=>{\n el.addEventListener(\"keydown\", onEnterOrSpaceKey);\n });\n }\n // Tab focus\n swiper.el.addEventListener(\"focus\", handleFocus, true);\n swiper.el.addEventListener(\"pointerdown\", handlePointerDown, true);\n swiper.el.addEventListener(\"pointerup\", handlePointerUp, true);\n };\n function destroy() {\n if (liveRegion) liveRegion.remove();\n let { nextEl: nextEl, prevEl: prevEl } = swiper.navigation ? swiper.navigation : {};\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n if (nextEl) nextEl.forEach((el)=>el.removeEventListener(\"keydown\", onEnterOrSpaceKey));\n if (prevEl) prevEl.forEach((el)=>el.removeEventListener(\"keydown\", onEnterOrSpaceKey));\n // Pagination\n if (hasClickablePagination()) {\n const paginationEl = Array.isArray(swiper.pagination.el) ? swiper.pagination.el : [\n swiper.pagination.el\n ];\n paginationEl.forEach((el)=>{\n el.removeEventListener(\"keydown\", onEnterOrSpaceKey);\n });\n }\n // Tab focus\n swiper.el.removeEventListener(\"focus\", handleFocus, true);\n swiper.el.removeEventListener(\"pointerdown\", handlePointerDown, true);\n swiper.el.removeEventListener(\"pointerup\", handlePointerUp, true);\n }\n on(\"beforeInit\", ()=>{\n liveRegion = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"span\", swiper.params.a11y.notificationClass);\n liveRegion.setAttribute(\"aria-live\", \"assertive\");\n liveRegion.setAttribute(\"aria-atomic\", \"true\");\n });\n on(\"afterInit\", ()=>{\n if (!swiper.params.a11y.enabled) return;\n init();\n });\n on(\"slidesLengthChange snapGridLengthChange slidesGridLengthChange\", ()=>{\n if (!swiper.params.a11y.enabled) return;\n initSlides();\n });\n on(\"fromEdge toEdge afterInit lock unlock\", ()=>{\n if (!swiper.params.a11y.enabled) return;\n updateNavigation();\n });\n on(\"paginationUpdate\", ()=>{\n if (!swiper.params.a11y.enabled) return;\n updatePagination();\n });\n on(\"destroy\", ()=>{\n if (!swiper.params.a11y.enabled) return;\n destroy();\n });\n}\n\n\n\nfunction $bdde5ed48a8716dc$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n history: {\n enabled: false,\n root: \"\",\n replaceState: false,\n key: \"slides\",\n keepQuery: false\n }\n });\n let initialized = false;\n let paths = {};\n const slugify = (text)=>{\n return text.toString().replace(/\\s+/g, \"-\").replace(/[^\\w-]+/g, \"\").replace(/--+/g, \"-\").replace(/^-+/, \"\").replace(/-+$/, \"\");\n };\n const getPathValues = (urlOverride)=>{\n const window = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n let location;\n if (urlOverride) location = new URL(urlOverride);\n else location = window.location;\n const pathArray = location.pathname.slice(1).split(\"/\").filter((part)=>part !== \"\");\n const total = pathArray.length;\n const key = pathArray[total - 2];\n const value = pathArray[total - 1];\n return {\n key: key,\n value: value\n };\n };\n const setHistory = (key, index)=>{\n const window = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n if (!initialized || !swiper.params.history.enabled) return;\n let location;\n if (swiper.params.url) location = new URL(swiper.params.url);\n else location = window.location;\n const slide = swiper.slides[index];\n let value = slugify(slide.getAttribute(\"data-history\"));\n if (swiper.params.history.root.length > 0) {\n let root = swiper.params.history.root;\n if (root[root.length - 1] === \"/\") root = root.slice(0, root.length - 1);\n value = `${root}/${key ? `${key}/` : \"\"}${value}`;\n } else if (!location.pathname.includes(key)) value = `${key ? `${key}/` : \"\"}${value}`;\n if (swiper.params.history.keepQuery) value += location.search;\n const currentState = window.history.state;\n if (currentState && currentState.value === value) return;\n if (swiper.params.history.replaceState) window.history.replaceState({\n value: value\n }, null, value);\n else window.history.pushState({\n value: value\n }, null, value);\n };\n const scrollToSlide = (speed, value, runCallbacks)=>{\n if (value) for(let i = 0, length = swiper.slides.length; i < length; i += 1){\n const slide = swiper.slides[i];\n const slideHistory = slugify(slide.getAttribute(\"data-history\"));\n if (slideHistory === value) {\n const index = swiper.getSlideIndex(slide);\n swiper.slideTo(index, speed, runCallbacks);\n }\n }\n else swiper.slideTo(0, speed, runCallbacks);\n };\n const setHistoryPopState = ()=>{\n paths = getPathValues(swiper.params.url);\n scrollToSlide(swiper.params.speed, paths.value, false);\n };\n const init = ()=>{\n const window = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n if (!swiper.params.history) return;\n if (!window.history || !window.history.pushState) {\n swiper.params.history.enabled = false;\n swiper.params.hashNavigation.enabled = true;\n return;\n }\n initialized = true;\n paths = getPathValues(swiper.params.url);\n if (!paths.key && !paths.value) {\n if (!swiper.params.history.replaceState) window.addEventListener(\"popstate\", setHistoryPopState);\n return;\n }\n scrollToSlide(0, paths.value, swiper.params.runCallbacksOnInit);\n if (!swiper.params.history.replaceState) window.addEventListener(\"popstate\", setHistoryPopState);\n };\n const destroy = ()=>{\n const window = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n if (!swiper.params.history.replaceState) window.removeEventListener(\"popstate\", setHistoryPopState);\n };\n on(\"init\", ()=>{\n if (swiper.params.history.enabled) init();\n });\n on(\"destroy\", ()=>{\n if (swiper.params.history.enabled) destroy();\n });\n on(\"transitionEnd _freeModeNoMomentumRelease\", ()=>{\n if (initialized) setHistory(swiper.params.history.key, swiper.activeIndex);\n });\n on(\"slideChange\", ()=>{\n if (initialized && swiper.params.cssMode) setHistory(swiper.params.history.key, swiper.activeIndex);\n });\n}\n\n\n\n\nfunction $900bed1a87b88621$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, emit: emit, on: on } = _ref;\n let initialized = false;\n const document = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n const window = (0, $0868fe5596dee114$export$407448d2b89b1813)();\n extendParams({\n hashNavigation: {\n enabled: false,\n replaceState: false,\n watchState: false,\n getSlideIndex (_s, hash) {\n if (swiper.virtual && swiper.params.virtual.enabled) {\n const slideWithHash = swiper.slides.filter((slideEl)=>slideEl.getAttribute(\"data-hash\") === hash)[0];\n if (!slideWithHash) return 0;\n const index = parseInt(slideWithHash.getAttribute(\"data-swiper-slide-index\"), 10);\n return index;\n }\n return swiper.getSlideIndex((0, $f97f33853a605dba$export$f1e1789686576879)(swiper.slidesEl, `.${swiper.params.slideClass}[data-hash=\"${hash}\"], swiper-slide[data-hash=\"${hash}\"]`)[0]);\n }\n }\n });\n const onHashChange = ()=>{\n emit(\"hashChange\");\n const newHash = document.location.hash.replace(\"#\", \"\");\n const activeSlideEl = swiper.virtual && swiper.params.virtual.enabled ? swiper.slidesEl.querySelector(`[data-swiper-slide-index=\"${swiper.activeIndex}\"]`) : swiper.slides[swiper.activeIndex];\n const activeSlideHash = activeSlideEl ? activeSlideEl.getAttribute(\"data-hash\") : \"\";\n if (newHash !== activeSlideHash) {\n const newIndex = swiper.params.hashNavigation.getSlideIndex(swiper, newHash);\n if (typeof newIndex === \"undefined\" || Number.isNaN(newIndex)) return;\n swiper.slideTo(newIndex);\n }\n };\n const setHash = ()=>{\n if (!initialized || !swiper.params.hashNavigation.enabled) return;\n const activeSlideEl = swiper.virtual && swiper.params.virtual.enabled ? swiper.slidesEl.querySelector(`[data-swiper-slide-index=\"${swiper.activeIndex}\"]`) : swiper.slides[swiper.activeIndex];\n const activeSlideHash = activeSlideEl ? activeSlideEl.getAttribute(\"data-hash\") || activeSlideEl.getAttribute(\"data-history\") : \"\";\n if (swiper.params.hashNavigation.replaceState && window.history && window.history.replaceState) {\n window.history.replaceState(null, null, `#${activeSlideHash}` || \"\");\n emit(\"hashSet\");\n } else {\n document.location.hash = activeSlideHash || \"\";\n emit(\"hashSet\");\n }\n };\n const init = ()=>{\n if (!swiper.params.hashNavigation.enabled || swiper.params.history && swiper.params.history.enabled) return;\n initialized = true;\n const hash = document.location.hash.replace(\"#\", \"\");\n if (hash) {\n const speed = 0;\n const index = swiper.params.hashNavigation.getSlideIndex(swiper, hash);\n swiper.slideTo(index || 0, speed, swiper.params.runCallbacksOnInit, true);\n }\n if (swiper.params.hashNavigation.watchState) window.addEventListener(\"hashchange\", onHashChange);\n };\n const destroy = ()=>{\n if (swiper.params.hashNavigation.watchState) window.removeEventListener(\"hashchange\", onHashChange);\n };\n on(\"init\", ()=>{\n if (swiper.params.hashNavigation.enabled) init();\n });\n on(\"destroy\", ()=>{\n if (swiper.params.hashNavigation.enabled) destroy();\n });\n on(\"transitionEnd _freeModeNoMomentumRelease\", ()=>{\n if (initialized) setHash();\n });\n on(\"slideChange\", ()=>{\n if (initialized && swiper.params.cssMode) setHash();\n });\n}\n\n\n\n/* eslint no-underscore-dangle: \"off\" */ /* eslint no-use-before-define: \"off\" */ function $ccf162aef171d9ed$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on, emit: emit, params: params } = _ref;\n swiper.autoplay = {\n running: false,\n paused: false,\n timeLeft: 0\n };\n extendParams({\n autoplay: {\n enabled: false,\n delay: 3000,\n waitForTransition: true,\n disableOnInteraction: true,\n stopOnLastSlide: false,\n reverseDirection: false,\n pauseOnMouseEnter: false\n }\n });\n let timeout;\n let raf;\n let autoplayDelayTotal = params && params.autoplay ? params.autoplay.delay : 3000;\n let autoplayDelayCurrent = params && params.autoplay ? params.autoplay.delay : 3000;\n let autoplayTimeLeft;\n let autoplayStartTime = new Date().getTime;\n let wasPaused;\n let isTouched;\n let pausedByTouch;\n let touchStartTimeout;\n let slideChanged;\n let pausedByInteraction;\n function onTransitionEnd(e) {\n if (!swiper || swiper.destroyed || !swiper.wrapperEl) return;\n if (e.target !== swiper.wrapperEl) return;\n swiper.wrapperEl.removeEventListener(\"transitionend\", onTransitionEnd);\n resume();\n }\n const calcTimeLeft = ()=>{\n if (swiper.destroyed || !swiper.autoplay.running) return;\n if (swiper.autoplay.paused) wasPaused = true;\n else if (wasPaused) {\n autoplayDelayCurrent = autoplayTimeLeft;\n wasPaused = false;\n }\n const timeLeft = swiper.autoplay.paused ? autoplayTimeLeft : autoplayStartTime + autoplayDelayCurrent - new Date().getTime();\n swiper.autoplay.timeLeft = timeLeft;\n emit(\"autoplayTimeLeft\", timeLeft, timeLeft / autoplayDelayTotal);\n raf = requestAnimationFrame(()=>{\n calcTimeLeft();\n });\n };\n const getSlideDelay = ()=>{\n let activeSlideEl;\n if (swiper.virtual && swiper.params.virtual.enabled) activeSlideEl = swiper.slides.filter((slideEl)=>slideEl.classList.contains(\"swiper-slide-active\"))[0];\n else activeSlideEl = swiper.slides[swiper.activeIndex];\n if (!activeSlideEl) return undefined;\n const currentSlideDelay = parseInt(activeSlideEl.getAttribute(\"data-swiper-autoplay\"), 10);\n return currentSlideDelay;\n };\n const run = (delayForce)=>{\n if (swiper.destroyed || !swiper.autoplay.running) return;\n cancelAnimationFrame(raf);\n calcTimeLeft();\n let delay = typeof delayForce === \"undefined\" ? swiper.params.autoplay.delay : delayForce;\n autoplayDelayTotal = swiper.params.autoplay.delay;\n autoplayDelayCurrent = swiper.params.autoplay.delay;\n const currentSlideDelay = getSlideDelay();\n if (!Number.isNaN(currentSlideDelay) && currentSlideDelay > 0 && typeof delayForce === \"undefined\") {\n delay = currentSlideDelay;\n autoplayDelayTotal = currentSlideDelay;\n autoplayDelayCurrent = currentSlideDelay;\n }\n autoplayTimeLeft = delay;\n const speed = swiper.params.speed;\n const proceed = ()=>{\n if (!swiper || swiper.destroyed) return;\n if (swiper.params.autoplay.reverseDirection) {\n if (!swiper.isBeginning || swiper.params.loop || swiper.params.rewind) {\n swiper.slidePrev(speed, true, true);\n emit(\"autoplay\");\n } else if (!swiper.params.autoplay.stopOnLastSlide) {\n swiper.slideTo(swiper.slides.length - 1, speed, true, true);\n emit(\"autoplay\");\n }\n } else {\n if (!swiper.isEnd || swiper.params.loop || swiper.params.rewind) {\n swiper.slideNext(speed, true, true);\n emit(\"autoplay\");\n } else if (!swiper.params.autoplay.stopOnLastSlide) {\n swiper.slideTo(0, speed, true, true);\n emit(\"autoplay\");\n }\n }\n if (swiper.params.cssMode) {\n autoplayStartTime = new Date().getTime();\n requestAnimationFrame(()=>{\n run();\n });\n }\n };\n if (delay > 0) {\n clearTimeout(timeout);\n timeout = setTimeout(()=>{\n proceed();\n }, delay);\n } else requestAnimationFrame(()=>{\n proceed();\n });\n // eslint-disable-next-line\n return delay;\n };\n const start = ()=>{\n swiper.autoplay.running = true;\n run();\n emit(\"autoplayStart\");\n };\n const stop = ()=>{\n swiper.autoplay.running = false;\n clearTimeout(timeout);\n cancelAnimationFrame(raf);\n emit(\"autoplayStop\");\n };\n const pause = (internal, reset)=>{\n if (swiper.destroyed || !swiper.autoplay.running) return;\n clearTimeout(timeout);\n if (!internal) pausedByInteraction = true;\n const proceed = ()=>{\n emit(\"autoplayPause\");\n if (swiper.params.autoplay.waitForTransition) swiper.wrapperEl.addEventListener(\"transitionend\", onTransitionEnd);\n else resume();\n };\n swiper.autoplay.paused = true;\n if (reset) {\n if (slideChanged) autoplayTimeLeft = swiper.params.autoplay.delay;\n slideChanged = false;\n proceed();\n return;\n }\n const delay = autoplayTimeLeft || swiper.params.autoplay.delay;\n autoplayTimeLeft = delay - (new Date().getTime() - autoplayStartTime);\n if (swiper.isEnd && autoplayTimeLeft < 0 && !swiper.params.loop) return;\n if (autoplayTimeLeft < 0) autoplayTimeLeft = 0;\n proceed();\n };\n const resume = ()=>{\n if (swiper.isEnd && autoplayTimeLeft < 0 && !swiper.params.loop || swiper.destroyed || !swiper.autoplay.running) return;\n autoplayStartTime = new Date().getTime();\n if (pausedByInteraction) {\n pausedByInteraction = false;\n run(autoplayTimeLeft);\n } else run();\n swiper.autoplay.paused = false;\n emit(\"autoplayResume\");\n };\n const onVisibilityChange = ()=>{\n if (swiper.destroyed || !swiper.autoplay.running) return;\n const document = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n if (document.visibilityState === \"hidden\") {\n pausedByInteraction = true;\n pause(true);\n }\n if (document.visibilityState === \"visible\") resume();\n };\n const onPointerEnter = (e)=>{\n if (e.pointerType !== \"mouse\") return;\n pausedByInteraction = true;\n if (swiper.animating || swiper.autoplay.paused) return;\n pause(true);\n };\n const onPointerLeave = (e)=>{\n if (e.pointerType !== \"mouse\") return;\n if (swiper.autoplay.paused) resume();\n };\n const attachMouseEvents = ()=>{\n if (swiper.params.autoplay.pauseOnMouseEnter) {\n swiper.el.addEventListener(\"pointerenter\", onPointerEnter);\n swiper.el.addEventListener(\"pointerleave\", onPointerLeave);\n }\n };\n const detachMouseEvents = ()=>{\n swiper.el.removeEventListener(\"pointerenter\", onPointerEnter);\n swiper.el.removeEventListener(\"pointerleave\", onPointerLeave);\n };\n const attachDocumentEvents = ()=>{\n const document = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n document.addEventListener(\"visibilitychange\", onVisibilityChange);\n };\n const detachDocumentEvents = ()=>{\n const document = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n document.removeEventListener(\"visibilitychange\", onVisibilityChange);\n };\n on(\"init\", ()=>{\n if (swiper.params.autoplay.enabled) {\n attachMouseEvents();\n attachDocumentEvents();\n autoplayStartTime = new Date().getTime();\n start();\n }\n });\n on(\"destroy\", ()=>{\n detachMouseEvents();\n detachDocumentEvents();\n if (swiper.autoplay.running) stop();\n });\n on(\"beforeTransitionStart\", (_s, speed, internal)=>{\n if (swiper.destroyed || !swiper.autoplay.running) return;\n if (internal || !swiper.params.autoplay.disableOnInteraction) pause(true, true);\n else stop();\n });\n on(\"sliderFirstMove\", ()=>{\n if (swiper.destroyed || !swiper.autoplay.running) return;\n if (swiper.params.autoplay.disableOnInteraction) {\n stop();\n return;\n }\n isTouched = true;\n pausedByTouch = false;\n pausedByInteraction = false;\n touchStartTimeout = setTimeout(()=>{\n pausedByInteraction = true;\n pausedByTouch = true;\n pause(true);\n }, 200);\n });\n on(\"touchEnd\", ()=>{\n if (swiper.destroyed || !swiper.autoplay.running || !isTouched) return;\n clearTimeout(touchStartTimeout);\n clearTimeout(timeout);\n if (swiper.params.autoplay.disableOnInteraction) {\n pausedByTouch = false;\n isTouched = false;\n return;\n }\n if (pausedByTouch && swiper.params.cssMode) resume();\n pausedByTouch = false;\n isTouched = false;\n });\n on(\"slideChange\", ()=>{\n if (swiper.destroyed || !swiper.autoplay.running) return;\n slideChanged = true;\n });\n Object.assign(swiper.autoplay, {\n start: start,\n stop: stop,\n pause: pause,\n resume: resume\n });\n}\n\n\n\n\nfunction $8051f561d9b02add$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n thumbs: {\n swiper: null,\n multipleActiveThumbs: true,\n autoScrollOffset: 0,\n slideThumbActiveClass: \"swiper-slide-thumb-active\",\n thumbsContainerClass: \"swiper-thumbs\"\n }\n });\n let initialized = false;\n let swiperCreated = false;\n swiper.thumbs = {\n swiper: null\n };\n function onThumbClick() {\n const thumbsSwiper = swiper.thumbs.swiper;\n if (!thumbsSwiper || thumbsSwiper.destroyed) return;\n const clickedIndex = thumbsSwiper.clickedIndex;\n const clickedSlide = thumbsSwiper.clickedSlide;\n if (clickedSlide && clickedSlide.classList.contains(swiper.params.thumbs.slideThumbActiveClass)) return;\n if (typeof clickedIndex === \"undefined\" || clickedIndex === null) return;\n let slideToIndex;\n if (thumbsSwiper.params.loop) slideToIndex = parseInt(thumbsSwiper.clickedSlide.getAttribute(\"data-swiper-slide-index\"), 10);\n else slideToIndex = clickedIndex;\n if (swiper.params.loop) swiper.slideToLoop(slideToIndex);\n else swiper.slideTo(slideToIndex);\n }\n function init() {\n const { thumbs: thumbsParams } = swiper.params;\n if (initialized) return false;\n initialized = true;\n const SwiperClass = swiper.constructor;\n if (thumbsParams.swiper instanceof SwiperClass) {\n swiper.thumbs.swiper = thumbsParams.swiper;\n Object.assign(swiper.thumbs.swiper.originalParams, {\n watchSlidesProgress: true,\n slideToClickedSlide: false\n });\n Object.assign(swiper.thumbs.swiper.params, {\n watchSlidesProgress: true,\n slideToClickedSlide: false\n });\n swiper.thumbs.swiper.update();\n } else if ((0, $f97f33853a605dba$export$35e795649ee09318)(thumbsParams.swiper)) {\n const thumbsSwiperParams = Object.assign({}, thumbsParams.swiper);\n Object.assign(thumbsSwiperParams, {\n watchSlidesProgress: true,\n slideToClickedSlide: false\n });\n swiper.thumbs.swiper = new SwiperClass(thumbsSwiperParams);\n swiperCreated = true;\n }\n swiper.thumbs.swiper.el.classList.add(swiper.params.thumbs.thumbsContainerClass);\n swiper.thumbs.swiper.on(\"tap\", onThumbClick);\n return true;\n }\n function update(initial) {\n const thumbsSwiper = swiper.thumbs.swiper;\n if (!thumbsSwiper || thumbsSwiper.destroyed) return;\n const slidesPerView = thumbsSwiper.params.slidesPerView === \"auto\" ? thumbsSwiper.slidesPerViewDynamic() : thumbsSwiper.params.slidesPerView;\n // Activate thumbs\n let thumbsToActivate = 1;\n const thumbActiveClass = swiper.params.thumbs.slideThumbActiveClass;\n if (swiper.params.slidesPerView > 1 && !swiper.params.centeredSlides) thumbsToActivate = swiper.params.slidesPerView;\n if (!swiper.params.thumbs.multipleActiveThumbs) thumbsToActivate = 1;\n thumbsToActivate = Math.floor(thumbsToActivate);\n thumbsSwiper.slides.forEach((slideEl)=>slideEl.classList.remove(thumbActiveClass));\n if (thumbsSwiper.params.loop || thumbsSwiper.params.virtual && thumbsSwiper.params.virtual.enabled) for(let i = 0; i < thumbsToActivate; i += 1)(0, $f97f33853a605dba$export$f1e1789686576879)(thumbsSwiper.slidesEl, `[data-swiper-slide-index=\"${swiper.realIndex + i}\"]`).forEach((slideEl)=>{\n slideEl.classList.add(thumbActiveClass);\n });\n else {\n for(let i = 0; i < thumbsToActivate; i += 1)if (thumbsSwiper.slides[swiper.realIndex + i]) thumbsSwiper.slides[swiper.realIndex + i].classList.add(thumbActiveClass);\n }\n const autoScrollOffset = swiper.params.thumbs.autoScrollOffset;\n const useOffset = autoScrollOffset && !thumbsSwiper.params.loop;\n if (swiper.realIndex !== thumbsSwiper.realIndex || useOffset) {\n const currentThumbsIndex = thumbsSwiper.activeIndex;\n let newThumbsIndex;\n let direction;\n if (thumbsSwiper.params.loop) {\n const newThumbsSlide = thumbsSwiper.slides.filter((slideEl)=>slideEl.getAttribute(\"data-swiper-slide-index\") === `${swiper.realIndex}`)[0];\n newThumbsIndex = thumbsSwiper.slides.indexOf(newThumbsSlide);\n direction = swiper.activeIndex > swiper.previousIndex ? \"next\" : \"prev\";\n } else {\n newThumbsIndex = swiper.realIndex;\n direction = newThumbsIndex > swiper.previousIndex ? \"next\" : \"prev\";\n }\n if (useOffset) newThumbsIndex += direction === \"next\" ? autoScrollOffset : -1 * autoScrollOffset;\n if (thumbsSwiper.visibleSlidesIndexes && thumbsSwiper.visibleSlidesIndexes.indexOf(newThumbsIndex) < 0) {\n if (thumbsSwiper.params.centeredSlides) {\n if (newThumbsIndex > currentThumbsIndex) newThumbsIndex = newThumbsIndex - Math.floor(slidesPerView / 2) + 1;\n else newThumbsIndex = newThumbsIndex + Math.floor(slidesPerView / 2) - 1;\n } else newThumbsIndex > currentThumbsIndex && thumbsSwiper.params.slidesPerGroup;\n thumbsSwiper.slideTo(newThumbsIndex, initial ? 0 : undefined);\n }\n }\n }\n on(\"beforeInit\", ()=>{\n const { thumbs: thumbs } = swiper.params;\n if (!thumbs || !thumbs.swiper) return;\n if (typeof thumbs.swiper === \"string\" || thumbs.swiper instanceof HTMLElement) {\n const document = (0, $0868fe5596dee114$export$39b482c5e57630a8)();\n const getThumbsElementAndInit = ()=>{\n const thumbsElement = typeof thumbs.swiper === \"string\" ? document.querySelector(thumbs.swiper) : thumbs.swiper;\n if (thumbsElement && thumbsElement.swiper) {\n thumbs.swiper = thumbsElement.swiper;\n init();\n update(true);\n } else if (thumbsElement) {\n const onThumbsSwiper = (e)=>{\n thumbs.swiper = e.detail[0];\n thumbsElement.removeEventListener(\"init\", onThumbsSwiper);\n init();\n update(true);\n thumbs.swiper.update();\n swiper.update();\n };\n thumbsElement.addEventListener(\"init\", onThumbsSwiper);\n }\n return thumbsElement;\n };\n const watchForThumbsToAppear = ()=>{\n if (swiper.destroyed) return;\n const thumbsElement = getThumbsElementAndInit();\n if (!thumbsElement) requestAnimationFrame(watchForThumbsToAppear);\n };\n requestAnimationFrame(watchForThumbsToAppear);\n } else {\n init();\n update(true);\n }\n });\n on(\"slideChange update resize observerUpdate\", ()=>{\n update();\n });\n on(\"setTransition\", (_s, duration)=>{\n const thumbsSwiper = swiper.thumbs.swiper;\n if (!thumbsSwiper || thumbsSwiper.destroyed) return;\n thumbsSwiper.setTransition(duration);\n });\n on(\"beforeDestroy\", ()=>{\n const thumbsSwiper = swiper.thumbs.swiper;\n if (!thumbsSwiper || thumbsSwiper.destroyed) return;\n if (swiperCreated) thumbsSwiper.destroy();\n });\n Object.assign(swiper.thumbs, {\n init: init,\n update: update\n });\n}\n\n\n\nfunction $83be9fecc6264cb2$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, emit: emit, once: once } = _ref;\n extendParams({\n freeMode: {\n enabled: false,\n momentum: true,\n momentumRatio: 1,\n momentumBounce: true,\n momentumBounceRatio: 1,\n momentumVelocityRatio: 1,\n sticky: false,\n minimumVelocity: 0.02\n }\n });\n function onTouchStart() {\n if (swiper.params.cssMode) return;\n const translate = swiper.getTranslate();\n swiper.setTranslate(translate);\n swiper.setTransition(0);\n swiper.touchEventsData.velocities.length = 0;\n swiper.freeMode.onTouchEnd({\n currentPos: swiper.rtl ? swiper.translate : -swiper.translate\n });\n }\n function onTouchMove() {\n if (swiper.params.cssMode) return;\n const { touchEventsData: data, touches: touches } = swiper;\n // Velocity\n if (data.velocities.length === 0) data.velocities.push({\n position: touches[swiper.isHorizontal() ? \"startX\" : \"startY\"],\n time: data.touchStartTime\n });\n data.velocities.push({\n position: touches[swiper.isHorizontal() ? \"currentX\" : \"currentY\"],\n time: (0, $f97f33853a605dba$export$4368d992c4eafac0)()\n });\n }\n function onTouchEnd(_ref2) {\n let { currentPos: currentPos } = _ref2;\n if (swiper.params.cssMode) return;\n const { params: params, wrapperEl: wrapperEl, rtlTranslate: rtl, snapGrid: snapGrid, touchEventsData: data } = swiper;\n // Time diff\n const touchEndTime = (0, $f97f33853a605dba$export$4368d992c4eafac0)();\n const timeDiff = touchEndTime - data.touchStartTime;\n if (currentPos < -swiper.minTranslate()) {\n swiper.slideTo(swiper.activeIndex);\n return;\n }\n if (currentPos > -swiper.maxTranslate()) {\n if (swiper.slides.length < snapGrid.length) swiper.slideTo(snapGrid.length - 1);\n else swiper.slideTo(swiper.slides.length - 1);\n return;\n }\n if (params.freeMode.momentum) {\n if (data.velocities.length > 1) {\n const lastMoveEvent = data.velocities.pop();\n const velocityEvent = data.velocities.pop();\n const distance = lastMoveEvent.position - velocityEvent.position;\n const time = lastMoveEvent.time - velocityEvent.time;\n swiper.velocity = distance / time;\n swiper.velocity /= 2;\n if (Math.abs(swiper.velocity) < params.freeMode.minimumVelocity) swiper.velocity = 0;\n // this implies that the user stopped moving a finger then released.\n // There would be no events with distance zero, so the last event is stale.\n if (time > 150 || (0, $f97f33853a605dba$export$4368d992c4eafac0)() - lastMoveEvent.time > 300) swiper.velocity = 0;\n } else swiper.velocity = 0;\n swiper.velocity *= params.freeMode.momentumVelocityRatio;\n data.velocities.length = 0;\n let momentumDuration = 1000 * params.freeMode.momentumRatio;\n const momentumDistance = swiper.velocity * momentumDuration;\n let newPosition = swiper.translate + momentumDistance;\n if (rtl) newPosition = -newPosition;\n let doBounce = false;\n let afterBouncePosition;\n const bounceAmount = Math.abs(swiper.velocity) * 20 * params.freeMode.momentumBounceRatio;\n let needsLoopFix;\n if (newPosition < swiper.maxTranslate()) {\n if (params.freeMode.momentumBounce) {\n if (newPosition + swiper.maxTranslate() < -bounceAmount) newPosition = swiper.maxTranslate() - bounceAmount;\n afterBouncePosition = swiper.maxTranslate();\n doBounce = true;\n data.allowMomentumBounce = true;\n } else newPosition = swiper.maxTranslate();\n if (params.loop && params.centeredSlides) needsLoopFix = true;\n } else if (newPosition > swiper.minTranslate()) {\n if (params.freeMode.momentumBounce) {\n if (newPosition - swiper.minTranslate() > bounceAmount) newPosition = swiper.minTranslate() + bounceAmount;\n afterBouncePosition = swiper.minTranslate();\n doBounce = true;\n data.allowMomentumBounce = true;\n } else newPosition = swiper.minTranslate();\n if (params.loop && params.centeredSlides) needsLoopFix = true;\n } else if (params.freeMode.sticky) {\n let nextSlide;\n for(let j = 0; j < snapGrid.length; j += 1)if (snapGrid[j] > -newPosition) {\n nextSlide = j;\n break;\n }\n if (Math.abs(snapGrid[nextSlide] - newPosition) < Math.abs(snapGrid[nextSlide - 1] - newPosition) || swiper.swipeDirection === \"next\") newPosition = snapGrid[nextSlide];\n else newPosition = snapGrid[nextSlide - 1];\n newPosition = -newPosition;\n }\n if (needsLoopFix) once(\"transitionEnd\", ()=>{\n swiper.loopFix();\n });\n // Fix duration\n if (swiper.velocity !== 0) {\n if (rtl) momentumDuration = Math.abs((-newPosition - swiper.translate) / swiper.velocity);\n else momentumDuration = Math.abs((newPosition - swiper.translate) / swiper.velocity);\n if (params.freeMode.sticky) {\n // If freeMode.sticky is active and the user ends a swipe with a slow-velocity\n // event, then durations can be 20+ seconds to slide one (or zero!) slides.\n // It's easy to see this when simulating touch with mouse events. To fix this,\n // limit single-slide swipes to the default slide duration. This also has the\n // nice side effect of matching slide speed if the user stopped moving before\n // lifting finger or mouse vs. moving slowly before lifting the finger/mouse.\n // For faster swipes, also apply limits (albeit higher ones).\n const moveDistance = Math.abs((rtl ? -newPosition : newPosition) - swiper.translate);\n const currentSlideSize = swiper.slidesSizesGrid[swiper.activeIndex];\n if (moveDistance < currentSlideSize) momentumDuration = params.speed;\n else if (moveDistance < 2 * currentSlideSize) momentumDuration = params.speed * 1.5;\n else momentumDuration = params.speed * 2.5;\n }\n } else if (params.freeMode.sticky) {\n swiper.slideToClosest();\n return;\n }\n if (params.freeMode.momentumBounce && doBounce) {\n swiper.updateProgress(afterBouncePosition);\n swiper.setTransition(momentumDuration);\n swiper.setTranslate(newPosition);\n swiper.transitionStart(true, swiper.swipeDirection);\n swiper.animating = true;\n (0, $f97f33853a605dba$export$23f2a1d2818174ef)(wrapperEl, ()=>{\n if (!swiper || swiper.destroyed || !data.allowMomentumBounce) return;\n emit(\"momentumBounce\");\n swiper.setTransition(params.speed);\n setTimeout(()=>{\n swiper.setTranslate(afterBouncePosition);\n (0, $f97f33853a605dba$export$23f2a1d2818174ef)(wrapperEl, ()=>{\n if (!swiper || swiper.destroyed) return;\n swiper.transitionEnd();\n });\n }, 0);\n });\n } else if (swiper.velocity) {\n emit(\"_freeModeNoMomentumRelease\");\n swiper.updateProgress(newPosition);\n swiper.setTransition(momentumDuration);\n swiper.setTranslate(newPosition);\n swiper.transitionStart(true, swiper.swipeDirection);\n if (!swiper.animating) {\n swiper.animating = true;\n (0, $f97f33853a605dba$export$23f2a1d2818174ef)(wrapperEl, ()=>{\n if (!swiper || swiper.destroyed) return;\n swiper.transitionEnd();\n });\n }\n } else swiper.updateProgress(newPosition);\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n } else if (params.freeMode.sticky) {\n swiper.slideToClosest();\n return;\n } else if (params.freeMode) emit(\"_freeModeNoMomentumRelease\");\n if (!params.freeMode.momentum || timeDiff >= params.longSwipesMs) {\n swiper.updateProgress();\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n }\n Object.assign(swiper, {\n freeMode: {\n onTouchStart: onTouchStart,\n onTouchMove: onTouchMove,\n onTouchEnd: onTouchEnd\n }\n });\n}\n\n\nfunction $ddd0c2ed1384f58e$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n grid: {\n rows: 1,\n fill: \"column\"\n }\n });\n let slidesNumberEvenToRows;\n let slidesPerRow;\n let numFullColumns;\n let wasMultiRow;\n const getSpaceBetween = ()=>{\n let spaceBetween = swiper.params.spaceBetween;\n if (typeof spaceBetween === \"string\" && spaceBetween.indexOf(\"%\") >= 0) spaceBetween = parseFloat(spaceBetween.replace(\"%\", \"\")) / 100 * swiper.size;\n else if (typeof spaceBetween === \"string\") spaceBetween = parseFloat(spaceBetween);\n return spaceBetween;\n };\n const initSlides = (slidesLength)=>{\n const { slidesPerView: slidesPerView } = swiper.params;\n const { rows: rows, fill: fill } = swiper.params.grid;\n numFullColumns = Math.floor(slidesLength / rows);\n if (Math.floor(slidesLength / rows) === slidesLength / rows) slidesNumberEvenToRows = slidesLength;\n else slidesNumberEvenToRows = Math.ceil(slidesLength / rows) * rows;\n if (slidesPerView !== \"auto\" && fill === \"row\") slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, slidesPerView * rows);\n slidesPerRow = slidesNumberEvenToRows / rows;\n };\n const updateSlide = (i, slide, slidesLength, getDirectionLabel)=>{\n const { slidesPerGroup: slidesPerGroup } = swiper.params;\n const spaceBetween = getSpaceBetween();\n const { rows: rows, fill: fill } = swiper.params.grid;\n // Set slides order\n let newSlideOrderIndex;\n let column;\n let row;\n if (fill === \"row\" && slidesPerGroup > 1) {\n const groupIndex = Math.floor(i / (slidesPerGroup * rows));\n const slideIndexInGroup = i - rows * slidesPerGroup * groupIndex;\n const columnsInGroup = groupIndex === 0 ? slidesPerGroup : Math.min(Math.ceil((slidesLength - groupIndex * rows * slidesPerGroup) / rows), slidesPerGroup);\n row = Math.floor(slideIndexInGroup / columnsInGroup);\n column = slideIndexInGroup - row * columnsInGroup + groupIndex * slidesPerGroup;\n newSlideOrderIndex = column + row * slidesNumberEvenToRows / rows;\n slide.style.order = newSlideOrderIndex;\n } else if (fill === \"column\") {\n column = Math.floor(i / rows);\n row = i - column * rows;\n if (column > numFullColumns || column === numFullColumns && row === rows - 1) {\n row += 1;\n if (row >= rows) {\n row = 0;\n column += 1;\n }\n }\n } else {\n row = Math.floor(i / slidesPerRow);\n column = i - row * slidesPerRow;\n }\n slide.row = row;\n slide.column = column;\n slide.style[getDirectionLabel(\"margin-top\")] = row !== 0 ? spaceBetween && `${spaceBetween}px` : \"\";\n };\n const updateWrapperSize = (slideSize, snapGrid, getDirectionLabel)=>{\n const { centeredSlides: centeredSlides, roundLengths: roundLengths } = swiper.params;\n const spaceBetween = getSpaceBetween();\n const { rows: rows } = swiper.params.grid;\n swiper.virtualSize = (slideSize + spaceBetween) * slidesNumberEvenToRows;\n swiper.virtualSize = Math.ceil(swiper.virtualSize / rows) - spaceBetween;\n swiper.wrapperEl.style[getDirectionLabel(\"width\")] = `${swiper.virtualSize + spaceBetween}px`;\n if (centeredSlides) {\n const newSlidesGrid = [];\n for(let i = 0; i < snapGrid.length; i += 1){\n let slidesGridItem = snapGrid[i];\n if (roundLengths) slidesGridItem = Math.floor(slidesGridItem);\n if (snapGrid[i] < swiper.virtualSize + snapGrid[0]) newSlidesGrid.push(slidesGridItem);\n }\n snapGrid.splice(0, snapGrid.length);\n snapGrid.push(...newSlidesGrid);\n }\n };\n const onInit = ()=>{\n wasMultiRow = swiper.params.grid && swiper.params.grid.rows > 1;\n };\n const onUpdate = ()=>{\n const { params: params, el: el } = swiper;\n const isMultiRow = params.grid && params.grid.rows > 1;\n if (wasMultiRow && !isMultiRow) {\n el.classList.remove(`${params.containerModifierClass}grid`, `${params.containerModifierClass}grid-column`);\n numFullColumns = 1;\n swiper.emitContainerClasses();\n } else if (!wasMultiRow && isMultiRow) {\n el.classList.add(`${params.containerModifierClass}grid`);\n if (params.grid.fill === \"column\") el.classList.add(`${params.containerModifierClass}grid-column`);\n swiper.emitContainerClasses();\n }\n wasMultiRow = isMultiRow;\n };\n on(\"init\", onInit);\n on(\"update\", onUpdate);\n swiper.grid = {\n initSlides: initSlides,\n updateSlide: updateSlide,\n updateWrapperSize: updateWrapperSize\n };\n}\n\n\nfunction $f08f7df954f7b274$var$appendSlide(slides) {\n const swiper = this;\n const { params: params, slidesEl: slidesEl } = swiper;\n if (params.loop) swiper.loopDestroy();\n const appendElement = (slideEl)=>{\n if (typeof slideEl === \"string\") {\n const tempDOM = document.createElement(\"div\");\n tempDOM.innerHTML = slideEl;\n slidesEl.append(tempDOM.children[0]);\n tempDOM.innerHTML = \"\";\n } else slidesEl.append(slideEl);\n };\n if (typeof slides === \"object\" && \"length\" in slides) {\n for(let i = 0; i < slides.length; i += 1)if (slides[i]) appendElement(slides[i]);\n } else appendElement(slides);\n swiper.recalcSlides();\n if (params.loop) swiper.loopCreate();\n if (!params.observer || swiper.isElement) swiper.update();\n}\nfunction $f08f7df954f7b274$var$prependSlide(slides) {\n const swiper = this;\n const { params: params, activeIndex: activeIndex, slidesEl: slidesEl } = swiper;\n if (params.loop) swiper.loopDestroy();\n let newActiveIndex = activeIndex + 1;\n const prependElement = (slideEl)=>{\n if (typeof slideEl === \"string\") {\n const tempDOM = document.createElement(\"div\");\n tempDOM.innerHTML = slideEl;\n slidesEl.prepend(tempDOM.children[0]);\n tempDOM.innerHTML = \"\";\n } else slidesEl.prepend(slideEl);\n };\n if (typeof slides === \"object\" && \"length\" in slides) {\n for(let i = 0; i < slides.length; i += 1)if (slides[i]) prependElement(slides[i]);\n newActiveIndex = activeIndex + slides.length;\n } else prependElement(slides);\n swiper.recalcSlides();\n if (params.loop) swiper.loopCreate();\n if (!params.observer || swiper.isElement) swiper.update();\n swiper.slideTo(newActiveIndex, 0, false);\n}\nfunction $f08f7df954f7b274$var$addSlide(index, slides) {\n const swiper = this;\n const { params: params, activeIndex: activeIndex, slidesEl: slidesEl } = swiper;\n let activeIndexBuffer = activeIndex;\n if (params.loop) {\n activeIndexBuffer -= swiper.loopedSlides;\n swiper.loopDestroy();\n swiper.recalcSlides();\n }\n const baseLength = swiper.slides.length;\n if (index <= 0) {\n swiper.prependSlide(slides);\n return;\n }\n if (index >= baseLength) {\n swiper.appendSlide(slides);\n return;\n }\n let newActiveIndex = activeIndexBuffer > index ? activeIndexBuffer + 1 : activeIndexBuffer;\n const slidesBuffer = [];\n for(let i = baseLength - 1; i >= index; i -= 1){\n const currentSlide = swiper.slides[i];\n currentSlide.remove();\n slidesBuffer.unshift(currentSlide);\n }\n if (typeof slides === \"object\" && \"length\" in slides) {\n for(let i = 0; i < slides.length; i += 1)if (slides[i]) slidesEl.append(slides[i]);\n newActiveIndex = activeIndexBuffer > index ? activeIndexBuffer + slides.length : activeIndexBuffer;\n } else slidesEl.append(slides);\n for(let i = 0; i < slidesBuffer.length; i += 1)slidesEl.append(slidesBuffer[i]);\n swiper.recalcSlides();\n if (params.loop) swiper.loopCreate();\n if (!params.observer || swiper.isElement) swiper.update();\n if (params.loop) swiper.slideTo(newActiveIndex + swiper.loopedSlides, 0, false);\n else swiper.slideTo(newActiveIndex, 0, false);\n}\nfunction $f08f7df954f7b274$var$removeSlide(slidesIndexes) {\n const swiper = this;\n const { params: params, activeIndex: activeIndex } = swiper;\n let activeIndexBuffer = activeIndex;\n if (params.loop) {\n activeIndexBuffer -= swiper.loopedSlides;\n swiper.loopDestroy();\n }\n let newActiveIndex = activeIndexBuffer;\n let indexToRemove;\n if (typeof slidesIndexes === \"object\" && \"length\" in slidesIndexes) {\n for(let i = 0; i < slidesIndexes.length; i += 1){\n indexToRemove = slidesIndexes[i];\n if (swiper.slides[indexToRemove]) swiper.slides[indexToRemove].remove();\n if (indexToRemove < newActiveIndex) newActiveIndex -= 1;\n }\n newActiveIndex = Math.max(newActiveIndex, 0);\n } else {\n indexToRemove = slidesIndexes;\n if (swiper.slides[indexToRemove]) swiper.slides[indexToRemove].remove();\n if (indexToRemove < newActiveIndex) newActiveIndex -= 1;\n newActiveIndex = Math.max(newActiveIndex, 0);\n }\n swiper.recalcSlides();\n if (params.loop) swiper.loopCreate();\n if (!params.observer || swiper.isElement) swiper.update();\n if (params.loop) swiper.slideTo(newActiveIndex + swiper.loopedSlides, 0, false);\n else swiper.slideTo(newActiveIndex, 0, false);\n}\nfunction $f08f7df954f7b274$var$removeAllSlides() {\n const swiper = this;\n const slidesIndexes = [];\n for(let i = 0; i < swiper.slides.length; i += 1)slidesIndexes.push(i);\n swiper.removeSlide(slidesIndexes);\n}\nfunction $f08f7df954f7b274$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper } = _ref;\n Object.assign(swiper, {\n appendSlide: $f08f7df954f7b274$var$appendSlide.bind(swiper),\n prependSlide: $f08f7df954f7b274$var$prependSlide.bind(swiper),\n addSlide: $f08f7df954f7b274$var$addSlide.bind(swiper),\n removeSlide: $f08f7df954f7b274$var$removeSlide.bind(swiper),\n removeAllSlides: $f08f7df954f7b274$var$removeAllSlides.bind(swiper)\n });\n}\n\n\nfunction $e0e15645344c9e40$export$f1e1789686576879(params) {\n const { effect: effect, swiper: swiper, on: on, setTranslate: setTranslate, setTransition: setTransition, overwriteParams: overwriteParams, perspective: perspective, recreateShadows: recreateShadows, getEffectParams: getEffectParams } = params;\n on(\"beforeInit\", ()=>{\n if (swiper.params.effect !== effect) return;\n swiper.classNames.push(`${swiper.params.containerModifierClass}${effect}`);\n if (perspective && perspective()) swiper.classNames.push(`${swiper.params.containerModifierClass}3d`);\n const overwriteParamsResult = overwriteParams ? overwriteParams() : {};\n Object.assign(swiper.params, overwriteParamsResult);\n Object.assign(swiper.originalParams, overwriteParamsResult);\n });\n on(\"setTranslate\", ()=>{\n if (swiper.params.effect !== effect) return;\n setTranslate();\n });\n on(\"setTransition\", (_s, duration)=>{\n if (swiper.params.effect !== effect) return;\n setTransition(duration);\n });\n on(\"transitionEnd\", ()=>{\n if (swiper.params.effect !== effect) return;\n if (recreateShadows) {\n if (!getEffectParams || !getEffectParams().slideShadows) return;\n // remove shadows\n swiper.slides.forEach((slideEl)=>{\n slideEl.querySelectorAll(\".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left\").forEach((shadowEl)=>shadowEl.remove());\n });\n // create new one\n recreateShadows();\n }\n });\n let requireUpdateOnVirtual;\n on(\"virtualUpdate\", ()=>{\n if (swiper.params.effect !== effect) return;\n if (!swiper.slides.length) requireUpdateOnVirtual = true;\n requestAnimationFrame(()=>{\n if (requireUpdateOnVirtual && swiper.slides && swiper.slides.length) {\n setTranslate();\n requireUpdateOnVirtual = false;\n }\n });\n });\n}\n\n\n\nfunction $b53f154314d4e7c8$export$f1e1789686576879(effectParams, slideEl) {\n const transformEl = (0, $f97f33853a605dba$export$342063e11d6c3cad)(slideEl);\n if (transformEl !== slideEl) {\n transformEl.style.backfaceVisibility = \"hidden\";\n transformEl.style[\"-webkit-backface-visibility\"] = \"hidden\";\n }\n return transformEl;\n}\n\n\n\nfunction $999496ad6a55bf28$export$f1e1789686576879(_ref) {\n let { swiper: swiper, duration: duration, transformElements: transformElements, allSlides: allSlides } = _ref;\n const { activeIndex: activeIndex } = swiper;\n const getSlide = (el)=>{\n if (!el.parentElement) {\n // assume shadow root\n const slide = swiper.slides.filter((slideEl)=>slideEl.shadowRoot && slideEl.shadowRoot === el.parentNode)[0];\n return slide;\n }\n return el.parentElement;\n };\n if (swiper.params.virtualTranslate && duration !== 0) {\n let eventTriggered = false;\n let transitionEndTarget;\n if (allSlides) transitionEndTarget = transformElements;\n else transitionEndTarget = transformElements.filter((transformEl)=>{\n const el = transformEl.classList.contains(\"swiper-slide-transform\") ? getSlide(transformEl) : transformEl;\n return swiper.getSlideIndex(el) === activeIndex;\n });\n transitionEndTarget.forEach((el)=>{\n (0, $f97f33853a605dba$export$23f2a1d2818174ef)(el, ()=>{\n if (eventTriggered) return;\n if (!swiper || swiper.destroyed) return;\n eventTriggered = true;\n swiper.animating = false;\n const evt = new window.CustomEvent(\"transitionend\", {\n bubbles: true,\n cancelable: true\n });\n swiper.wrapperEl.dispatchEvent(evt);\n });\n });\n }\n}\n\n\n\nfunction $1aaae3023eb523a1$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n fadeEffect: {\n crossFade: false\n }\n });\n const setTranslate = ()=>{\n const { slides: slides } = swiper;\n const params = swiper.params.fadeEffect;\n for(let i = 0; i < slides.length; i += 1){\n const slideEl = swiper.slides[i];\n const offset = slideEl.swiperSlideOffset;\n let tx = -offset;\n if (!swiper.params.virtualTranslate) tx -= swiper.translate;\n let ty = 0;\n if (!swiper.isHorizontal()) {\n ty = tx;\n tx = 0;\n }\n const slideOpacity = swiper.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(slideEl.progress), 0) : 1 + Math.min(Math.max(slideEl.progress, -1), 0);\n const targetEl = (0, $b53f154314d4e7c8$export$f1e1789686576879)(params, slideEl);\n targetEl.style.opacity = slideOpacity;\n targetEl.style.transform = `translate3d(${tx}px, ${ty}px, 0px)`;\n }\n };\n const setTransition = (duration)=>{\n const transformElements = swiper.slides.map((slideEl)=>(0, $f97f33853a605dba$export$342063e11d6c3cad)(slideEl));\n transformElements.forEach((el)=>{\n el.style.transitionDuration = `${duration}ms`;\n });\n (0, $999496ad6a55bf28$export$f1e1789686576879)({\n swiper: swiper,\n duration: duration,\n transformElements: transformElements,\n allSlides: true\n });\n };\n (0, $e0e15645344c9e40$export$f1e1789686576879)({\n effect: \"fade\",\n swiper: swiper,\n on: on,\n setTranslate: setTranslate,\n setTransition: setTransition,\n overwriteParams: ()=>({\n slidesPerView: 1,\n slidesPerGroup: 1,\n watchSlidesProgress: true,\n spaceBetween: 0,\n virtualTranslate: !swiper.params.cssMode\n })\n });\n}\n\n\n\n\nfunction $ae560e392d45c8b7$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n cubeEffect: {\n slideShadows: true,\n shadow: true,\n shadowOffset: 20,\n shadowScale: 0.94\n }\n });\n const createSlideShadows = (slideEl, progress, isHorizontal)=>{\n let shadowBefore = isHorizontal ? slideEl.querySelector(\".swiper-slide-shadow-left\") : slideEl.querySelector(\".swiper-slide-shadow-top\");\n let shadowAfter = isHorizontal ? slideEl.querySelector(\".swiper-slide-shadow-right\") : slideEl.querySelector(\".swiper-slide-shadow-bottom\");\n if (!shadowBefore) {\n shadowBefore = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"div\", `swiper-slide-shadow-cube swiper-slide-shadow-${isHorizontal ? \"left\" : \"top\"}`.split(\" \"));\n slideEl.append(shadowBefore);\n }\n if (!shadowAfter) {\n shadowAfter = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"div\", `swiper-slide-shadow-cube swiper-slide-shadow-${isHorizontal ? \"right\" : \"bottom\"}`.split(\" \"));\n slideEl.append(shadowAfter);\n }\n if (shadowBefore) shadowBefore.style.opacity = Math.max(-progress, 0);\n if (shadowAfter) shadowAfter.style.opacity = Math.max(progress, 0);\n };\n const recreateShadows = ()=>{\n // create new ones\n const isHorizontal = swiper.isHorizontal();\n swiper.slides.forEach((slideEl)=>{\n const progress = Math.max(Math.min(slideEl.progress, 1), -1);\n createSlideShadows(slideEl, progress, isHorizontal);\n });\n };\n const setTranslate = ()=>{\n const { el: el, wrapperEl: wrapperEl, slides: slides, width: swiperWidth, height: swiperHeight, rtlTranslate: rtl, size: swiperSize, browser: browser } = swiper;\n const params = swiper.params.cubeEffect;\n const isHorizontal = swiper.isHorizontal();\n const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n let wrapperRotate = 0;\n let cubeShadowEl;\n if (params.shadow) {\n if (isHorizontal) {\n cubeShadowEl = swiper.wrapperEl.querySelector(\".swiper-cube-shadow\");\n if (!cubeShadowEl) {\n cubeShadowEl = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"div\", \"swiper-cube-shadow\");\n swiper.wrapperEl.append(cubeShadowEl);\n }\n cubeShadowEl.style.height = `${swiperWidth}px`;\n } else {\n cubeShadowEl = el.querySelector(\".swiper-cube-shadow\");\n if (!cubeShadowEl) {\n cubeShadowEl = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"div\", \"swiper-cube-shadow\");\n el.append(cubeShadowEl);\n }\n }\n }\n for(let i = 0; i < slides.length; i += 1){\n const slideEl = slides[i];\n let slideIndex = i;\n if (isVirtual) slideIndex = parseInt(slideEl.getAttribute(\"data-swiper-slide-index\"), 10);\n let slideAngle = slideIndex * 90;\n let round = Math.floor(slideAngle / 360);\n if (rtl) {\n slideAngle = -slideAngle;\n round = Math.floor(-slideAngle / 360);\n }\n const progress = Math.max(Math.min(slideEl.progress, 1), -1);\n let tx = 0;\n let ty = 0;\n let tz = 0;\n if (slideIndex % 4 === 0) {\n tx = -round * 4 * swiperSize;\n tz = 0;\n } else if ((slideIndex - 1) % 4 === 0) {\n tx = 0;\n tz = -round * 4 * swiperSize;\n } else if ((slideIndex - 2) % 4 === 0) {\n tx = swiperSize + round * 4 * swiperSize;\n tz = swiperSize;\n } else if ((slideIndex - 3) % 4 === 0) {\n tx = -swiperSize;\n tz = 3 * swiperSize + swiperSize * 4 * round;\n }\n if (rtl) tx = -tx;\n if (!isHorizontal) {\n ty = tx;\n tx = 0;\n }\n const transform = `rotateX(${isHorizontal ? 0 : -slideAngle}deg) rotateY(${isHorizontal ? slideAngle : 0}deg) translate3d(${tx}px, ${ty}px, ${tz}px)`;\n if (progress <= 1 && progress > -1) {\n wrapperRotate = slideIndex * 90 + progress * 90;\n if (rtl) wrapperRotate = -slideIndex * 90 - progress * 90;\n }\n slideEl.style.transform = transform;\n if (params.slideShadows) createSlideShadows(slideEl, progress, isHorizontal);\n }\n wrapperEl.style.transformOrigin = `50% 50% -${swiperSize / 2}px`;\n wrapperEl.style[\"-webkit-transform-origin\"] = `50% 50% -${swiperSize / 2}px`;\n if (params.shadow) {\n if (isHorizontal) cubeShadowEl.style.transform = `translate3d(0px, ${swiperWidth / 2 + params.shadowOffset}px, ${-swiperWidth / 2}px) rotateX(90deg) rotateZ(0deg) scale(${params.shadowScale})`;\n else {\n const shadowAngle = Math.abs(wrapperRotate) - Math.floor(Math.abs(wrapperRotate) / 90) * 90;\n const multiplier = 1.5 - (Math.sin(shadowAngle * 2 * Math.PI / 360) / 2 + Math.cos(shadowAngle * 2 * Math.PI / 360) / 2);\n const scale1 = params.shadowScale;\n const scale2 = params.shadowScale / multiplier;\n const offset = params.shadowOffset;\n cubeShadowEl.style.transform = `scale3d(${scale1}, 1, ${scale2}) translate3d(0px, ${swiperHeight / 2 + offset}px, ${-swiperHeight / 2 / scale2}px) rotateX(-90deg)`;\n }\n }\n const zFactor = (browser.isSafari || browser.isWebView) && browser.needPerspectiveFix ? -swiperSize / 2 : 0;\n wrapperEl.style.transform = `translate3d(0px,0,${zFactor}px) rotateX(${swiper.isHorizontal() ? 0 : wrapperRotate}deg) rotateY(${swiper.isHorizontal() ? -wrapperRotate : 0}deg)`;\n wrapperEl.style.setProperty(\"--swiper-cube-translate-z\", `${zFactor}px`);\n };\n const setTransition = (duration)=>{\n const { el: el, slides: slides } = swiper;\n slides.forEach((slideEl)=>{\n slideEl.style.transitionDuration = `${duration}ms`;\n slideEl.querySelectorAll(\".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left\").forEach((subEl)=>{\n subEl.style.transitionDuration = `${duration}ms`;\n });\n });\n if (swiper.params.cubeEffect.shadow && !swiper.isHorizontal()) {\n const shadowEl = el.querySelector(\".swiper-cube-shadow\");\n if (shadowEl) shadowEl.style.transitionDuration = `${duration}ms`;\n }\n };\n (0, $e0e15645344c9e40$export$f1e1789686576879)({\n effect: \"cube\",\n swiper: swiper,\n on: on,\n setTranslate: setTranslate,\n setTransition: setTransition,\n recreateShadows: recreateShadows,\n getEffectParams: ()=>swiper.params.cubeEffect,\n perspective: ()=>true,\n overwriteParams: ()=>({\n slidesPerView: 1,\n slidesPerGroup: 1,\n watchSlidesProgress: true,\n resistanceRatio: 0,\n spaceBetween: 0,\n centeredSlides: false,\n virtualTranslate: true\n })\n });\n}\n\n\n\nfunction $0a10add51d1983e4$export$db3b6bfb95261072(suffix, slideEl, side) {\n const shadowClass = `swiper-slide-shadow${side ? `-${side}` : \"\"}${suffix ? ` swiper-slide-shadow-${suffix}` : \"\"}`;\n const shadowContainer = (0, $f97f33853a605dba$export$342063e11d6c3cad)(slideEl);\n let shadowEl = shadowContainer.querySelector(`.${shadowClass.split(\" \").join(\".\")}`);\n if (!shadowEl) {\n shadowEl = (0, $f97f33853a605dba$export$db3b6bfb95261072)(\"div\", shadowClass.split(\" \"));\n shadowContainer.append(shadowEl);\n }\n return shadowEl;\n}\n\n\n\n\n\n\nfunction $03034e94e938a55a$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n flipEffect: {\n slideShadows: true,\n limitRotation: true\n }\n });\n const createSlideShadows = (slideEl, progress)=>{\n let shadowBefore = swiper.isHorizontal() ? slideEl.querySelector(\".swiper-slide-shadow-left\") : slideEl.querySelector(\".swiper-slide-shadow-top\");\n let shadowAfter = swiper.isHorizontal() ? slideEl.querySelector(\".swiper-slide-shadow-right\") : slideEl.querySelector(\".swiper-slide-shadow-bottom\");\n if (!shadowBefore) shadowBefore = (0, $0a10add51d1983e4$export$db3b6bfb95261072)(\"flip\", slideEl, swiper.isHorizontal() ? \"left\" : \"top\");\n if (!shadowAfter) shadowAfter = (0, $0a10add51d1983e4$export$db3b6bfb95261072)(\"flip\", slideEl, swiper.isHorizontal() ? \"right\" : \"bottom\");\n if (shadowBefore) shadowBefore.style.opacity = Math.max(-progress, 0);\n if (shadowAfter) shadowAfter.style.opacity = Math.max(progress, 0);\n };\n const recreateShadows = ()=>{\n // Set shadows\n swiper.params.flipEffect;\n swiper.slides.forEach((slideEl)=>{\n let progress = slideEl.progress;\n if (swiper.params.flipEffect.limitRotation) progress = Math.max(Math.min(slideEl.progress, 1), -1);\n createSlideShadows(slideEl, progress);\n });\n };\n const setTranslate = ()=>{\n const { slides: slides, rtlTranslate: rtl } = swiper;\n const params = swiper.params.flipEffect;\n for(let i = 0; i < slides.length; i += 1){\n const slideEl = slides[i];\n let progress = slideEl.progress;\n if (swiper.params.flipEffect.limitRotation) progress = Math.max(Math.min(slideEl.progress, 1), -1);\n const offset = slideEl.swiperSlideOffset;\n const rotate = -180 * progress;\n let rotateY = rotate;\n let rotateX = 0;\n let tx = swiper.params.cssMode ? -offset - swiper.translate : -offset;\n let ty = 0;\n if (!swiper.isHorizontal()) {\n ty = tx;\n tx = 0;\n rotateX = -rotateY;\n rotateY = 0;\n } else if (rtl) rotateY = -rotateY;\n slideEl.style.zIndex = -Math.abs(Math.round(progress)) + slides.length;\n if (params.slideShadows) createSlideShadows(slideEl, progress);\n const transform = `translate3d(${tx}px, ${ty}px, 0px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;\n const targetEl = (0, $b53f154314d4e7c8$export$f1e1789686576879)(params, slideEl);\n targetEl.style.transform = transform;\n }\n };\n const setTransition = (duration)=>{\n const transformElements = swiper.slides.map((slideEl)=>(0, $f97f33853a605dba$export$342063e11d6c3cad)(slideEl));\n transformElements.forEach((el)=>{\n el.style.transitionDuration = `${duration}ms`;\n el.querySelectorAll(\".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left\").forEach((shadowEl)=>{\n shadowEl.style.transitionDuration = `${duration}ms`;\n });\n });\n (0, $999496ad6a55bf28$export$f1e1789686576879)({\n swiper: swiper,\n duration: duration,\n transformElements: transformElements\n });\n };\n (0, $e0e15645344c9e40$export$f1e1789686576879)({\n effect: \"flip\",\n swiper: swiper,\n on: on,\n setTranslate: setTranslate,\n setTransition: setTransition,\n recreateShadows: recreateShadows,\n getEffectParams: ()=>swiper.params.flipEffect,\n perspective: ()=>true,\n overwriteParams: ()=>({\n slidesPerView: 1,\n slidesPerGroup: 1,\n watchSlidesProgress: true,\n spaceBetween: 0,\n virtualTranslate: !swiper.params.cssMode\n })\n });\n}\n\n\n\n\n\n\nfunction $f2ff8c65b6ddc62a$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n coverflowEffect: {\n rotate: 50,\n stretch: 0,\n depth: 100,\n scale: 1,\n modifier: 1,\n slideShadows: true\n }\n });\n const setTranslate = ()=>{\n const { width: swiperWidth, height: swiperHeight, slides: slides, slidesSizesGrid: slidesSizesGrid } = swiper;\n const params = swiper.params.coverflowEffect;\n const isHorizontal = swiper.isHorizontal();\n const transform = swiper.translate;\n const center = isHorizontal ? -transform + swiperWidth / 2 : -transform + swiperHeight / 2;\n const rotate = isHorizontal ? params.rotate : -params.rotate;\n const translate = params.depth;\n // Each slide offset from center\n for(let i = 0, length = slides.length; i < length; i += 1){\n const slideEl = slides[i];\n const slideSize = slidesSizesGrid[i];\n const slideOffset = slideEl.swiperSlideOffset;\n const centerOffset = (center - slideOffset - slideSize / 2) / slideSize;\n const offsetMultiplier = typeof params.modifier === \"function\" ? params.modifier(centerOffset) : centerOffset * params.modifier;\n let rotateY = isHorizontal ? rotate * offsetMultiplier : 0;\n let rotateX = isHorizontal ? 0 : rotate * offsetMultiplier;\n // var rotateZ = 0\n let translateZ = -translate * Math.abs(offsetMultiplier);\n let stretch = params.stretch;\n // Allow percentage to make a relative stretch for responsive sliders\n if (typeof stretch === \"string\" && stretch.indexOf(\"%\") !== -1) stretch = parseFloat(params.stretch) / 100 * slideSize;\n let translateY = isHorizontal ? 0 : stretch * offsetMultiplier;\n let translateX = isHorizontal ? stretch * offsetMultiplier : 0;\n let scale = 1 - (1 - params.scale) * Math.abs(offsetMultiplier);\n // Fix for ultra small values\n if (Math.abs(translateX) < 0.001) translateX = 0;\n if (Math.abs(translateY) < 0.001) translateY = 0;\n if (Math.abs(translateZ) < 0.001) translateZ = 0;\n if (Math.abs(rotateY) < 0.001) rotateY = 0;\n if (Math.abs(rotateX) < 0.001) rotateX = 0;\n if (Math.abs(scale) < 0.001) scale = 0;\n const slideTransform = `translate3d(${translateX}px,${translateY}px,${translateZ}px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale(${scale})`;\n const targetEl = (0, $b53f154314d4e7c8$export$f1e1789686576879)(params, slideEl);\n targetEl.style.transform = slideTransform;\n slideEl.style.zIndex = -Math.abs(Math.round(offsetMultiplier)) + 1;\n if (params.slideShadows) {\n // Set shadows\n let shadowBeforeEl = isHorizontal ? slideEl.querySelector(\".swiper-slide-shadow-left\") : slideEl.querySelector(\".swiper-slide-shadow-top\");\n let shadowAfterEl = isHorizontal ? slideEl.querySelector(\".swiper-slide-shadow-right\") : slideEl.querySelector(\".swiper-slide-shadow-bottom\");\n if (!shadowBeforeEl) shadowBeforeEl = (0, $0a10add51d1983e4$export$db3b6bfb95261072)(\"coverflow\", slideEl, isHorizontal ? \"left\" : \"top\");\n if (!shadowAfterEl) shadowAfterEl = (0, $0a10add51d1983e4$export$db3b6bfb95261072)(\"coverflow\", slideEl, isHorizontal ? \"right\" : \"bottom\");\n if (shadowBeforeEl) shadowBeforeEl.style.opacity = offsetMultiplier > 0 ? offsetMultiplier : 0;\n if (shadowAfterEl) shadowAfterEl.style.opacity = -offsetMultiplier > 0 ? -offsetMultiplier : 0;\n }\n }\n };\n const setTransition = (duration)=>{\n const transformElements = swiper.slides.map((slideEl)=>(0, $f97f33853a605dba$export$342063e11d6c3cad)(slideEl));\n transformElements.forEach((el)=>{\n el.style.transitionDuration = `${duration}ms`;\n el.querySelectorAll(\".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left\").forEach((shadowEl)=>{\n shadowEl.style.transitionDuration = `${duration}ms`;\n });\n });\n };\n (0, $e0e15645344c9e40$export$f1e1789686576879)({\n effect: \"coverflow\",\n swiper: swiper,\n on: on,\n setTranslate: setTranslate,\n setTransition: setTransition,\n perspective: ()=>true,\n overwriteParams: ()=>({\n watchSlidesProgress: true\n })\n });\n}\n\n\n\n\n\n\n\nfunction $2d1d46abc1b4e0b9$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n creativeEffect: {\n limitProgress: 1,\n shadowPerProgress: false,\n progressMultiplier: 1,\n perspective: true,\n prev: {\n translate: [\n 0,\n 0,\n 0\n ],\n rotate: [\n 0,\n 0,\n 0\n ],\n opacity: 1,\n scale: 1\n },\n next: {\n translate: [\n 0,\n 0,\n 0\n ],\n rotate: [\n 0,\n 0,\n 0\n ],\n opacity: 1,\n scale: 1\n }\n }\n });\n const getTranslateValue = (value)=>{\n if (typeof value === \"string\") return value;\n return `${value}px`;\n };\n const setTranslate = ()=>{\n const { slides: slides, wrapperEl: wrapperEl, slidesSizesGrid: slidesSizesGrid } = swiper;\n const params = swiper.params.creativeEffect;\n const { progressMultiplier: multiplier } = params;\n const isCenteredSlides = swiper.params.centeredSlides;\n if (isCenteredSlides) {\n const margin = slidesSizesGrid[0] / 2 - swiper.params.slidesOffsetBefore || 0;\n wrapperEl.style.transform = `translateX(calc(50% - ${margin}px))`;\n }\n for(let i = 0; i < slides.length; i += 1){\n const slideEl = slides[i];\n const slideProgress = slideEl.progress;\n const progress = Math.min(Math.max(slideEl.progress, -params.limitProgress), params.limitProgress);\n let originalProgress = progress;\n if (!isCenteredSlides) originalProgress = Math.min(Math.max(slideEl.originalProgress, -params.limitProgress), params.limitProgress);\n const offset = slideEl.swiperSlideOffset;\n const t = [\n swiper.params.cssMode ? -offset - swiper.translate : -offset,\n 0,\n 0\n ];\n const r = [\n 0,\n 0,\n 0\n ];\n let custom = false;\n if (!swiper.isHorizontal()) {\n t[1] = t[0];\n t[0] = 0;\n }\n let data = {\n translate: [\n 0,\n 0,\n 0\n ],\n rotate: [\n 0,\n 0,\n 0\n ],\n scale: 1,\n opacity: 1\n };\n if (progress < 0) {\n data = params.next;\n custom = true;\n } else if (progress > 0) {\n data = params.prev;\n custom = true;\n }\n // set translate\n t.forEach((value, index)=>{\n t[index] = `calc(${value}px + (${getTranslateValue(data.translate[index])} * ${Math.abs(progress * multiplier)}))`;\n });\n // set rotates\n r.forEach((value, index)=>{\n r[index] = data.rotate[index] * Math.abs(progress * multiplier);\n });\n slideEl.style.zIndex = -Math.abs(Math.round(slideProgress)) + slides.length;\n const translateString = t.join(\", \");\n const rotateString = `rotateX(${r[0]}deg) rotateY(${r[1]}deg) rotateZ(${r[2]}deg)`;\n const scaleString = originalProgress < 0 ? `scale(${1 + (1 - data.scale) * originalProgress * multiplier})` : `scale(${1 - (1 - data.scale) * originalProgress * multiplier})`;\n const opacityString = originalProgress < 0 ? 1 + (1 - data.opacity) * originalProgress * multiplier : 1 - (1 - data.opacity) * originalProgress * multiplier;\n const transform = `translate3d(${translateString}) ${rotateString} ${scaleString}`;\n // Set shadows\n if (custom && data.shadow || !custom) {\n let shadowEl = slideEl.querySelector(\".swiper-slide-shadow\");\n if (!shadowEl && data.shadow) shadowEl = (0, $0a10add51d1983e4$export$db3b6bfb95261072)(\"creative\", slideEl);\n if (shadowEl) {\n const shadowOpacity = params.shadowPerProgress ? progress * (1 / params.limitProgress) : progress;\n shadowEl.style.opacity = Math.min(Math.max(Math.abs(shadowOpacity), 0), 1);\n }\n }\n const targetEl = (0, $b53f154314d4e7c8$export$f1e1789686576879)(params, slideEl);\n targetEl.style.transform = transform;\n targetEl.style.opacity = opacityString;\n if (data.origin) targetEl.style.transformOrigin = data.origin;\n }\n };\n const setTransition = (duration)=>{\n const transformElements = swiper.slides.map((slideEl)=>(0, $f97f33853a605dba$export$342063e11d6c3cad)(slideEl));\n transformElements.forEach((el)=>{\n el.style.transitionDuration = `${duration}ms`;\n el.querySelectorAll(\".swiper-slide-shadow\").forEach((shadowEl)=>{\n shadowEl.style.transitionDuration = `${duration}ms`;\n });\n });\n (0, $999496ad6a55bf28$export$f1e1789686576879)({\n swiper: swiper,\n duration: duration,\n transformElements: transformElements,\n allSlides: true\n });\n };\n (0, $e0e15645344c9e40$export$f1e1789686576879)({\n effect: \"creative\",\n swiper: swiper,\n on: on,\n setTranslate: setTranslate,\n setTransition: setTransition,\n perspective: ()=>swiper.params.creativeEffect.perspective,\n overwriteParams: ()=>({\n watchSlidesProgress: true,\n virtualTranslate: !swiper.params.cssMode\n })\n });\n}\n\n\n\n\n\n\n\nfunction $ddebdb27567903ce$export$2e2bcd8739ae039(_ref) {\n let { swiper: swiper, extendParams: extendParams, on: on } = _ref;\n extendParams({\n cardsEffect: {\n slideShadows: true,\n rotate: true,\n perSlideRotate: 2,\n perSlideOffset: 8\n }\n });\n const setTranslate = ()=>{\n const { slides: slides, activeIndex: activeIndex, rtlTranslate: rtl } = swiper;\n const params = swiper.params.cardsEffect;\n const { startTranslate: startTranslate, isTouched: isTouched } = swiper.touchEventsData;\n const currentTranslate = rtl ? -swiper.translate : swiper.translate;\n for(let i = 0; i < slides.length; i += 1){\n const slideEl = slides[i];\n const slideProgress = slideEl.progress;\n const progress = Math.min(Math.max(slideProgress, -4), 4);\n let offset = slideEl.swiperSlideOffset;\n if (swiper.params.centeredSlides && !swiper.params.cssMode) swiper.wrapperEl.style.transform = `translateX(${swiper.minTranslate()}px)`;\n if (swiper.params.centeredSlides && swiper.params.cssMode) offset -= slides[0].swiperSlideOffset;\n let tX = swiper.params.cssMode ? -offset - swiper.translate : -offset;\n let tY = 0;\n const tZ = -100 * Math.abs(progress);\n let scale = 1;\n let rotate = -params.perSlideRotate * progress;\n let tXAdd = params.perSlideOffset - Math.abs(progress) * 0.75;\n const slideIndex = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.from + i : i;\n const isSwipeToNext = (slideIndex === activeIndex || slideIndex === activeIndex - 1) && progress > 0 && progress < 1 && (isTouched || swiper.params.cssMode) && currentTranslate < startTranslate;\n const isSwipeToPrev = (slideIndex === activeIndex || slideIndex === activeIndex + 1) && progress < 0 && progress > -1 && (isTouched || swiper.params.cssMode) && currentTranslate > startTranslate;\n if (isSwipeToNext || isSwipeToPrev) {\n const subProgress = (1 - Math.abs((Math.abs(progress) - 0.5) / 0.5)) ** 0.5;\n rotate += -28 * progress * subProgress;\n scale += -0.5 * subProgress;\n tXAdd += 96 * subProgress;\n tY = `${-25 * subProgress * Math.abs(progress)}%`;\n }\n if (progress < 0) // next\n tX = `calc(${tX}px ${rtl ? \"-\" : \"+\"} (${tXAdd * Math.abs(progress)}%))`;\n else if (progress > 0) // prev\n tX = `calc(${tX}px ${rtl ? \"-\" : \"+\"} (-${tXAdd * Math.abs(progress)}%))`;\n else tX = `${tX}px`;\n if (!swiper.isHorizontal()) {\n const prevY = tY;\n tY = tX;\n tX = prevY;\n }\n const scaleString = progress < 0 ? `${1 + (1 - scale) * progress}` : `${1 - (1 - scale) * progress}`;\n /* eslint-disable */ const transform = `\n translate3d(${tX}, ${tY}, ${tZ}px)\n rotateZ(${params.rotate ? rtl ? -rotate : rotate : 0}deg)\n scale(${scaleString})\n `;\n /* eslint-enable */ if (params.slideShadows) {\n // Set shadows\n let shadowEl = slideEl.querySelector(\".swiper-slide-shadow\");\n if (!shadowEl) shadowEl = (0, $0a10add51d1983e4$export$db3b6bfb95261072)(\"cards\", slideEl);\n if (shadowEl) shadowEl.style.opacity = Math.min(Math.max((Math.abs(progress) - 0.5) / 0.5, 0), 1);\n }\n slideEl.style.zIndex = -Math.abs(Math.round(slideProgress)) + slides.length;\n const targetEl = (0, $b53f154314d4e7c8$export$f1e1789686576879)(params, slideEl);\n targetEl.style.transform = transform;\n }\n };\n const setTransition = (duration)=>{\n const transformElements = swiper.slides.map((slideEl)=>(0, $f97f33853a605dba$export$342063e11d6c3cad)(slideEl));\n transformElements.forEach((el)=>{\n el.style.transitionDuration = `${duration}ms`;\n el.querySelectorAll(\".swiper-slide-shadow\").forEach((shadowEl)=>{\n shadowEl.style.transitionDuration = `${duration}ms`;\n });\n });\n (0, $999496ad6a55bf28$export$f1e1789686576879)({\n swiper: swiper,\n duration: duration,\n transformElements: transformElements\n });\n };\n (0, $e0e15645344c9e40$export$f1e1789686576879)({\n effect: \"cards\",\n swiper: swiper,\n on: on,\n setTranslate: setTranslate,\n setTransition: setTransition,\n perspective: ()=>true,\n overwriteParams: ()=>({\n watchSlidesProgress: true,\n virtualTranslate: !swiper.params.cssMode\n })\n });\n}\n\n\n\n\n\nfunction $21bb7f0d2894673a$var$_assertThisInitialized(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return self;\n}\nfunction $21bb7f0d2894673a$var$_inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n/*!\n * GSAP 3.11.5\n * https://greensock.com\n *\n * @license Copyright 2008-2023, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/ /* eslint-disable */ var $21bb7f0d2894673a$export$4922bee768729a77 = {\n autoSleep: 120,\n force3D: \"auto\",\n nullTargetWarn: 1,\n units: {\n lineHeight: \"\"\n }\n}, $21bb7f0d2894673a$var$_defaults = {\n duration: .5,\n overwrite: false,\n delay: 0\n}, $21bb7f0d2894673a$var$_suppressOverwrites, $21bb7f0d2894673a$var$_reverting, $21bb7f0d2894673a$var$_context, $21bb7f0d2894673a$var$_bigNum = 1e8, $21bb7f0d2894673a$var$_tinyNum = 1 / $21bb7f0d2894673a$var$_bigNum, $21bb7f0d2894673a$var$_2PI = Math.PI * 2, $21bb7f0d2894673a$var$_HALF_PI = $21bb7f0d2894673a$var$_2PI / 4, $21bb7f0d2894673a$var$_gsID = 0, $21bb7f0d2894673a$var$_sqrt = Math.sqrt, $21bb7f0d2894673a$var$_cos = Math.cos, $21bb7f0d2894673a$var$_sin = Math.sin, $21bb7f0d2894673a$export$f664476fd67145ca = function _isString(value) {\n return typeof value === \"string\";\n}, $21bb7f0d2894673a$var$_isFunction = function _isFunction(value) {\n return typeof value === \"function\";\n}, $21bb7f0d2894673a$var$_isNumber = function _isNumber(value) {\n return typeof value === \"number\";\n}, $21bb7f0d2894673a$export$a8178c063a9fd3a1 = function _isUndefined(value) {\n return typeof value === \"undefined\";\n}, $21bb7f0d2894673a$var$_isObject = function _isObject(value) {\n return typeof value === \"object\";\n}, $21bb7f0d2894673a$var$_isNotFalse = function _isNotFalse(value) {\n return value !== false;\n}, $21bb7f0d2894673a$var$_windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n}, $21bb7f0d2894673a$var$_isFuncOrString = function _isFuncOrString(value) {\n return $21bb7f0d2894673a$var$_isFunction(value) || $21bb7f0d2894673a$export$f664476fd67145ca(value);\n}, $21bb7f0d2894673a$var$_isTypedArray = typeof ArrayBuffer === \"function\" && ArrayBuffer.isView || function() {}, // note: IE10 has ArrayBuffer, but NOT ArrayBuffer.isView().\n$21bb7f0d2894673a$var$_isArray = Array.isArray, $21bb7f0d2894673a$var$_strictNumExp = /(?:-?\\.?\\d|\\.)+/gi, //only numbers (including negatives and decimals) but NOT relative values.\n$21bb7f0d2894673a$export$b9d44bb6523120d6 = /[-+=.]*\\d+[.e\\-+]*\\d*[e\\-+]*\\d*/g, //finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.\n$21bb7f0d2894673a$export$65c88bbd597e7b0a = /[-+=.]*\\d+[.e-]*\\d*[a-z%]*/g, $21bb7f0d2894673a$var$_complexStringNumExp = /[-+=.]*\\d+\\.?\\d*(?:e-|e\\+)?\\d*/gi, //duplicate so that while we're looping through matches from exec(), it doesn't contaminate the lastIndex of _numExp which we use to search for colors too.\n$21bb7f0d2894673a$export$5a680e28b0b61bc = /[+-]=-?[.\\d]+/, $21bb7f0d2894673a$var$_delimitedValueExp = /[^,'\"\\[\\]\\s]+/gi, // previously /[#\\-+.]*\\b[a-z\\d\\-=+%.]+/gi but didn't catch special characters.\n$21bb7f0d2894673a$var$_unitExp = /^[+\\-=e\\s\\d]*\\d+[.\\d]*([a-z]*|%)\\s*$/i, $21bb7f0d2894673a$var$_globalTimeline, $21bb7f0d2894673a$var$_win, $21bb7f0d2894673a$var$_coreInitted, $21bb7f0d2894673a$var$_doc, $21bb7f0d2894673a$var$_globals = {}, $21bb7f0d2894673a$var$_installScope = {}, $21bb7f0d2894673a$var$_coreReady, $21bb7f0d2894673a$var$_install = function _install(scope) {\n return ($21bb7f0d2894673a$var$_installScope = $21bb7f0d2894673a$var$_merge(scope, $21bb7f0d2894673a$var$_globals)) && $21bb7f0d2894673a$export$99ee26438460406a;\n}, $21bb7f0d2894673a$export$7fb54635790b59a5 = function _missingPlugin(property, value) {\n return console.warn(\"Invalid property\", property, \"set to\", value, \"Missing plugin? gsap.registerPlugin()\");\n}, $21bb7f0d2894673a$var$_warn = function _warn(message, suppress) {\n return !suppress && console.warn(message);\n}, $21bb7f0d2894673a$var$_addGlobal = function _addGlobal(name, obj) {\n return name && ($21bb7f0d2894673a$var$_globals[name] = obj) && $21bb7f0d2894673a$var$_installScope && ($21bb7f0d2894673a$var$_installScope[name] = obj) || $21bb7f0d2894673a$var$_globals;\n}, $21bb7f0d2894673a$var$_emptyFunc = function _emptyFunc() {\n return 0;\n}, $21bb7f0d2894673a$var$_startAtRevertConfig = {\n suppressEvents: true,\n isStart: true,\n kill: false\n}, $21bb7f0d2894673a$var$_revertConfigNoKill = {\n suppressEvents: true,\n kill: false\n}, $21bb7f0d2894673a$var$_revertConfig = {\n suppressEvents: true\n}, $21bb7f0d2894673a$var$_reservedProps = {}, $21bb7f0d2894673a$var$_lazyTweens = [], $21bb7f0d2894673a$var$_lazyLookup = {}, $21bb7f0d2894673a$var$_lastRenderedFrame, $21bb7f0d2894673a$export$d305d8ec5d7c26b8 = {}, $21bb7f0d2894673a$var$_effects = {}, $21bb7f0d2894673a$var$_nextGCFrame = 30, $21bb7f0d2894673a$var$_harnessPlugins = [], $21bb7f0d2894673a$var$_callbackNames = \"\", $21bb7f0d2894673a$var$_harness = function _harness(targets) {\n var target = targets[0], harnessPlugin, i;\n $21bb7f0d2894673a$var$_isObject(target) || $21bb7f0d2894673a$var$_isFunction(target) || (targets = [\n targets\n ]);\n if (!(harnessPlugin = (target._gsap || {}).harness)) {\n // find the first target with a harness. We assume targets passed into an animation will be of similar type, meaning the same kind of harness can be used for them all (performance optimization)\n i = $21bb7f0d2894673a$var$_harnessPlugins.length;\n while(i-- && !$21bb7f0d2894673a$var$_harnessPlugins[i].targetTest(target));\n harnessPlugin = $21bb7f0d2894673a$var$_harnessPlugins[i];\n }\n i = targets.length;\n while(i--)targets[i] && (targets[i]._gsap || (targets[i]._gsap = new $21bb7f0d2894673a$export$cf10981d5419cad5(targets[i], harnessPlugin))) || targets.splice(i, 1);\n return targets;\n}, $21bb7f0d2894673a$export$8b9be379d2de2a39 = function _getCache(target) {\n return target._gsap || $21bb7f0d2894673a$var$_harness($21bb7f0d2894673a$export$45b10814cc054894(target))[0]._gsap;\n}, $21bb7f0d2894673a$export$51d6bbe898aef1f9 = function _getProperty(target, property, v) {\n return (v = target[property]) && $21bb7f0d2894673a$var$_isFunction(v) ? target[property]() : $21bb7f0d2894673a$export$a8178c063a9fd3a1(v) && target.getAttribute && target.getAttribute(property) || v;\n}, $21bb7f0d2894673a$export$f9000b814859f126 = function _forEachName(names, func) {\n return (names = names.split(\",\")).forEach(func) || names;\n}, //split a comma-delimited list of names into an array, then run a forEach() function and return the split array (this is just a way to consolidate/shorten some code).\n$21bb7f0d2894673a$export$9c8d725d65e13f94 = function _round(value) {\n return Math.round(value * 100000) / 100000 || 0;\n}, $21bb7f0d2894673a$var$_roundPrecise = function _roundPrecise(value) {\n return Math.round(value * 10000000) / 10000000 || 0;\n}, // increased precision mostly for timing values.\n$21bb7f0d2894673a$export$dac762bc6301b560 = function _parseRelative(start, value) {\n var operator = value.charAt(0), end = parseFloat(value.substr(2));\n start = parseFloat(start);\n return operator === \"+\" ? start + end : operator === \"-\" ? start - end : operator === \"*\" ? start * end : start / end;\n}, $21bb7f0d2894673a$var$_arrayContainsAny = function _arrayContainsAny(toSearch, toFind) {\n //searches one array to find matches for any of the items in the toFind array. As soon as one is found, it returns true. It does NOT return all the matches; it's simply a boolean search.\n var l = toFind.length, i = 0;\n for(; toSearch.indexOf(toFind[i]) < 0 && ++i < l;);\n return i < l;\n}, $21bb7f0d2894673a$var$_lazyRender = function _lazyRender() {\n var l = $21bb7f0d2894673a$var$_lazyTweens.length, a = $21bb7f0d2894673a$var$_lazyTweens.slice(0), i, tween;\n $21bb7f0d2894673a$var$_lazyLookup = {};\n $21bb7f0d2894673a$var$_lazyTweens.length = 0;\n for(i = 0; i < l; i++){\n tween = a[i];\n tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);\n }\n}, $21bb7f0d2894673a$var$_lazySafeRender = function _lazySafeRender(animation, time, suppressEvents, force) {\n $21bb7f0d2894673a$var$_lazyTweens.length && !$21bb7f0d2894673a$var$_reverting && $21bb7f0d2894673a$var$_lazyRender();\n animation.render(time, suppressEvents, force || $21bb7f0d2894673a$var$_reverting && time < 0 && (animation._initted || animation._startAt));\n $21bb7f0d2894673a$var$_lazyTweens.length && !$21bb7f0d2894673a$var$_reverting && $21bb7f0d2894673a$var$_lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.\n}, $21bb7f0d2894673a$var$_numericIfPossible = function _numericIfPossible(value) {\n var n = parseFloat(value);\n return (n || n === 0) && (value + \"\").match($21bb7f0d2894673a$var$_delimitedValueExp).length < 2 ? n : $21bb7f0d2894673a$export$f664476fd67145ca(value) ? value.trim() : value;\n}, $21bb7f0d2894673a$var$_passThrough = function _passThrough(p) {\n return p;\n}, $21bb7f0d2894673a$export$dc2b19673bb53610 = function _setDefaults(obj, defaults) {\n for(var p in defaults)p in obj || (obj[p] = defaults[p]);\n return obj;\n}, $21bb7f0d2894673a$var$_setKeyframeDefaults = function _setKeyframeDefaults(excludeDuration) {\n return function(obj, defaults) {\n for(var p in defaults)p in obj || p === \"duration\" && excludeDuration || p === \"ease\" || (obj[p] = defaults[p]);\n };\n}, $21bb7f0d2894673a$var$_merge = function _merge(base, toMerge) {\n for(var p in toMerge)base[p] = toMerge[p];\n return base;\n}, $21bb7f0d2894673a$var$_mergeDeep = function _mergeDeep(base, toMerge) {\n for(var p in toMerge)p !== \"__proto__\" && p !== \"constructor\" && p !== \"prototype\" && (base[p] = $21bb7f0d2894673a$var$_isObject(toMerge[p]) ? _mergeDeep(base[p] || (base[p] = {}), toMerge[p]) : toMerge[p]);\n return base;\n}, $21bb7f0d2894673a$var$_copyExcluding = function _copyExcluding(obj, excluding) {\n var copy = {}, p;\n for(p in obj)p in excluding || (copy[p] = obj[p]);\n return copy;\n}, $21bb7f0d2894673a$var$_inheritDefaults = function _inheritDefaults(vars) {\n var parent = vars.parent || $21bb7f0d2894673a$var$_globalTimeline, func = vars.keyframes ? $21bb7f0d2894673a$var$_setKeyframeDefaults($21bb7f0d2894673a$var$_isArray(vars.keyframes)) : $21bb7f0d2894673a$export$dc2b19673bb53610;\n if ($21bb7f0d2894673a$var$_isNotFalse(vars.inherit)) while(parent){\n func(vars, parent.vars.defaults);\n parent = parent.parent || parent._dp;\n }\n return vars;\n}, $21bb7f0d2894673a$var$_arraysMatch = function _arraysMatch(a1, a2) {\n var i = a1.length, match = i === a2.length;\n while(match && i-- && a1[i] === a2[i]);\n return i < 0;\n}, $21bb7f0d2894673a$var$_addLinkedListItem = function _addLinkedListItem(parent, child, firstProp, lastProp, sortBy) {\n if (firstProp === void 0) firstProp = \"_first\";\n if (lastProp === void 0) lastProp = \"_last\";\n var prev = parent[lastProp], t;\n if (sortBy) {\n t = child[sortBy];\n while(prev && prev[sortBy] > t)prev = prev._prev;\n }\n if (prev) {\n child._next = prev._next;\n prev._next = child;\n } else {\n child._next = parent[firstProp];\n parent[firstProp] = child;\n }\n if (child._next) child._next._prev = child;\n else parent[lastProp] = child;\n child._prev = prev;\n child.parent = child._dp = parent;\n return child;\n}, $21bb7f0d2894673a$export$cd008aa6cd8844e3 = function _removeLinkedListItem(parent, child, firstProp, lastProp) {\n if (firstProp === void 0) firstProp = \"_first\";\n if (lastProp === void 0) lastProp = \"_last\";\n var prev = child._prev, next = child._next;\n if (prev) prev._next = next;\n else if (parent[firstProp] === child) parent[firstProp] = next;\n if (next) next._prev = prev;\n else if (parent[lastProp] === child) parent[lastProp] = prev;\n child._next = child._prev = child.parent = null; // don't delete the _dp just so we can revert if necessary. But parent should be null to indicate the item isn't in a linked list.\n}, $21bb7f0d2894673a$var$_removeFromParent = function _removeFromParent(child, onlyIfParentHasAutoRemove) {\n child.parent && (!onlyIfParentHasAutoRemove || child.parent.autoRemoveChildren) && child.parent.remove(child);\n child._act = 0;\n}, $21bb7f0d2894673a$var$_uncache = function _uncache(animation, child) {\n if (animation && (!child || child._end > animation._dur || child._start < 0)) {\n // performance optimization: if a child animation is passed in we should only uncache if that child EXTENDS the animation (its end time is beyond the end)\n var a = animation;\n while(a){\n a._dirty = 1;\n a = a.parent;\n }\n }\n return animation;\n}, $21bb7f0d2894673a$var$_recacheAncestors = function _recacheAncestors(animation) {\n var parent = animation.parent;\n while(parent && parent.parent){\n //sometimes we must force a re-sort of all children and update the duration/totalDuration of all ancestor timelines immediately in case, for example, in the middle of a render loop, one tween alters another tween's timeScale which shoves its startTime before 0, forcing the parent timeline to shift around and shiftChildren() which could affect that next tween's render (startTime). Doesn't matter for the root timeline though.\n parent._dirty = 1;\n parent.totalDuration();\n parent = parent.parent;\n }\n return animation;\n}, $21bb7f0d2894673a$var$_rewindStartAt = function _rewindStartAt(tween, totalTime, suppressEvents, force) {\n return tween._startAt && ($21bb7f0d2894673a$var$_reverting ? tween._startAt.revert($21bb7f0d2894673a$var$_revertConfigNoKill) : tween.vars.immediateRender && !tween.vars.autoRevert || tween._startAt.render(totalTime, true, force));\n}, $21bb7f0d2894673a$var$_hasNoPausedAncestors = function _hasNoPausedAncestors(animation) {\n return !animation || animation._ts && _hasNoPausedAncestors(animation.parent);\n}, $21bb7f0d2894673a$var$_elapsedCycleDuration = function _elapsedCycleDuration(animation) {\n return animation._repeat ? $21bb7f0d2894673a$var$_animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;\n}, // feed in the totalTime and cycleDuration and it'll return the cycle (iteration minus 1) and if the playhead is exactly at the very END, it will NOT bump up to the next cycle.\n$21bb7f0d2894673a$var$_animationCycle = function _animationCycle(tTime, cycleDuration) {\n var whole = Math.floor(tTime /= cycleDuration);\n return tTime && whole === tTime ? whole - 1 : whole;\n}, $21bb7f0d2894673a$var$_parentToChildTotalTime = function _parentToChildTotalTime(parentTime, child) {\n return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);\n}, $21bb7f0d2894673a$var$_setEnd = function _setEnd(animation) {\n return animation._end = $21bb7f0d2894673a$var$_roundPrecise(animation._start + (animation._tDur / Math.abs(animation._ts || animation._rts || $21bb7f0d2894673a$var$_tinyNum) || 0));\n}, $21bb7f0d2894673a$var$_alignPlayhead = function _alignPlayhead(animation, totalTime) {\n // adjusts the animation's _start and _end according to the provided totalTime (only if the parent's smoothChildTiming is true and the animation isn't paused). It doesn't do any rendering or forcing things back into parent timelines, etc. - that's what totalTime() is for.\n var parent = animation._dp;\n if (parent && parent.smoothChildTiming && animation._ts) {\n animation._start = $21bb7f0d2894673a$var$_roundPrecise(parent._time - (animation._ts > 0 ? totalTime / animation._ts : ((animation._dirty ? animation.totalDuration() : animation._tDur) - totalTime) / -animation._ts));\n $21bb7f0d2894673a$var$_setEnd(animation);\n parent._dirty || $21bb7f0d2894673a$var$_uncache(parent, animation); //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.\n }\n return animation;\n}, /*\n_totalTimeToTime = (clampedTotalTime, duration, repeat, repeatDelay, yoyo) => {\n\tlet cycleDuration = duration + repeatDelay,\n\t\ttime = _round(clampedTotalTime % cycleDuration);\n\tif (time > duration) {\n\t\ttime = duration;\n\t}\n\treturn (yoyo && (~~(clampedTotalTime / cycleDuration) & 1)) ? duration - time : time;\n},\n*/ $21bb7f0d2894673a$var$_postAddChecks = function _postAddChecks(timeline, child) {\n var t;\n if (child._time || child._initted && !child._dur) {\n //in case, for example, the _start is moved on a tween that has already rendered. Imagine it's at its end state, then the startTime is moved WAY later (after the end of this timeline), it should render at its beginning.\n t = $21bb7f0d2894673a$var$_parentToChildTotalTime(timeline.rawTime(), child);\n if (!child._dur || $21bb7f0d2894673a$var$_clamp(0, child.totalDuration(), t) - child._tTime > $21bb7f0d2894673a$var$_tinyNum) child.render(t, true);\n } //if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.\n if ($21bb7f0d2894673a$var$_uncache(timeline, child)._dp && timeline._initted && timeline._time >= timeline._dur && timeline._ts) {\n //in case any of the ancestors had completed but should now be enabled...\n if (timeline._dur < timeline.duration()) {\n t = timeline;\n while(t._dp){\n t.rawTime() >= 0 && t.totalTime(t._tTime); //moves the timeline (shifts its startTime) if necessary, and also enables it. If it's currently zero, though, it may not be scheduled to render until later so there's no need to force it to align with the current playhead position. Only move to catch up with the playhead.\n t = t._dp;\n }\n }\n timeline._zTime = -$21bb7f0d2894673a$var$_tinyNum; // helps ensure that the next render() will be forced (crossingStart = true in render()), even if the duration hasn't changed (we're adding a child which would need to get rendered). Definitely an edge case. Note: we MUST do this AFTER the loop above where the totalTime() might trigger a render() because this _addToTimeline() method gets called from the Animation constructor, BEFORE tweens even record their targets, etc. so we wouldn't want things to get triggered in the wrong order.\n }\n}, $21bb7f0d2894673a$var$_addToTimeline = function _addToTimeline(timeline, child, position, skipChecks) {\n child.parent && $21bb7f0d2894673a$var$_removeFromParent(child);\n child._start = $21bb7f0d2894673a$var$_roundPrecise(($21bb7f0d2894673a$var$_isNumber(position) ? position : position || timeline !== $21bb7f0d2894673a$var$_globalTimeline ? $21bb7f0d2894673a$var$_parsePosition(timeline, position, child) : timeline._time) + child._delay);\n child._end = $21bb7f0d2894673a$var$_roundPrecise(child._start + (child.totalDuration() / Math.abs(child.timeScale()) || 0));\n $21bb7f0d2894673a$var$_addLinkedListItem(timeline, child, \"_first\", \"_last\", timeline._sort ? \"_start\" : 0);\n $21bb7f0d2894673a$var$_isFromOrFromStart(child) || (timeline._recent = child);\n skipChecks || $21bb7f0d2894673a$var$_postAddChecks(timeline, child);\n timeline._ts < 0 && $21bb7f0d2894673a$var$_alignPlayhead(timeline, timeline._tTime); // if the timeline is reversed and the new child makes it longer, we may need to adjust the parent's _start (push it back)\n return timeline;\n}, $21bb7f0d2894673a$var$_scrollTrigger = function _scrollTrigger(animation, trigger) {\n return ($21bb7f0d2894673a$var$_globals.ScrollTrigger || $21bb7f0d2894673a$export$7fb54635790b59a5(\"scrollTrigger\", trigger)) && $21bb7f0d2894673a$var$_globals.ScrollTrigger.create(trigger, animation);\n}, $21bb7f0d2894673a$var$_attemptInitTween = function _attemptInitTween(tween, time, force, suppressEvents, tTime) {\n $21bb7f0d2894673a$var$_initTween(tween, time, tTime);\n if (!tween._initted) return 1;\n if (!force && tween._pt && !$21bb7f0d2894673a$var$_reverting && (tween._dur && tween.vars.lazy !== false || !tween._dur && tween.vars.lazy) && $21bb7f0d2894673a$var$_lastRenderedFrame !== $21bb7f0d2894673a$export$762ed8fbedb691e3.frame) {\n $21bb7f0d2894673a$var$_lazyTweens.push(tween);\n tween._lazy = [\n tTime,\n suppressEvents\n ];\n return 1;\n }\n}, $21bb7f0d2894673a$var$_parentPlayheadIsBeforeStart = function _parentPlayheadIsBeforeStart(_ref) {\n var parent = _ref.parent;\n return parent && parent._ts && parent._initted && !parent._lock && (parent.rawTime() < 0 || _parentPlayheadIsBeforeStart(parent));\n}, // check parent's _lock because when a timeline repeats/yoyos and does its artificial wrapping, we shouldn't force the ratio back to 0\n$21bb7f0d2894673a$var$_isFromOrFromStart = function _isFromOrFromStart(_ref2) {\n var data = _ref2.data;\n return data === \"isFromStart\" || data === \"isStart\";\n}, $21bb7f0d2894673a$var$_renderZeroDurationTween = function _renderZeroDurationTween(tween, totalTime, suppressEvents, force) {\n var prevRatio = tween.ratio, ratio = totalTime < 0 || !totalTime && (!tween._start && $21bb7f0d2894673a$var$_parentPlayheadIsBeforeStart(tween) && !(!tween._initted && $21bb7f0d2894673a$var$_isFromOrFromStart(tween)) || (tween._ts < 0 || tween._dp._ts < 0) && !$21bb7f0d2894673a$var$_isFromOrFromStart(tween)) ? 0 : 1, // if the tween or its parent is reversed and the totalTime is 0, we should go to a ratio of 0. Edge case: if a from() or fromTo() stagger tween is placed later in a timeline, the \"startAt\" zero-duration tween could initially render at a time when the parent timeline's playhead is technically BEFORE where this tween is, so make sure that any \"from\" and \"fromTo\" startAt tweens are rendered the first time at a ratio of 1.\n repeatDelay = tween._rDelay, tTime = 0, pt, iteration, prevIteration;\n if (repeatDelay && tween._repeat) {\n // in case there's a zero-duration tween that has a repeat with a repeatDelay\n tTime = $21bb7f0d2894673a$var$_clamp(0, tween._tDur, totalTime);\n iteration = $21bb7f0d2894673a$var$_animationCycle(tTime, repeatDelay);\n tween._yoyo && iteration & 1 && (ratio = 1 - ratio);\n if (iteration !== $21bb7f0d2894673a$var$_animationCycle(tween._tTime, repeatDelay)) {\n // if iteration changed\n prevRatio = 1 - ratio;\n tween.vars.repeatRefresh && tween._initted && tween.invalidate();\n }\n }\n if (ratio !== prevRatio || $21bb7f0d2894673a$var$_reverting || force || tween._zTime === $21bb7f0d2894673a$var$_tinyNum || !totalTime && tween._zTime) {\n if (!tween._initted && $21bb7f0d2894673a$var$_attemptInitTween(tween, totalTime, force, suppressEvents, tTime)) // if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.\n return;\n prevIteration = tween._zTime;\n tween._zTime = totalTime || (suppressEvents ? $21bb7f0d2894673a$var$_tinyNum : 0); // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n suppressEvents || (suppressEvents = totalTime && !prevIteration); // if it was rendered previously at exactly 0 (_zTime) and now the playhead is moving away, DON'T fire callbacks otherwise they'll seem like duplicates.\n tween.ratio = ratio;\n tween._from && (ratio = 1 - ratio);\n tween._time = 0;\n tween._tTime = tTime;\n pt = tween._pt;\n while(pt){\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n totalTime < 0 && $21bb7f0d2894673a$var$_rewindStartAt(tween, totalTime, suppressEvents, true);\n tween._onUpdate && !suppressEvents && $21bb7f0d2894673a$var$_callback(tween, \"onUpdate\");\n tTime && tween._repeat && !suppressEvents && tween.parent && $21bb7f0d2894673a$var$_callback(tween, \"onRepeat\");\n if ((totalTime >= tween._tDur || totalTime < 0) && tween.ratio === ratio) {\n ratio && $21bb7f0d2894673a$var$_removeFromParent(tween, 1);\n if (!suppressEvents && !$21bb7f0d2894673a$var$_reverting) {\n $21bb7f0d2894673a$var$_callback(tween, ratio ? \"onComplete\" : \"onReverseComplete\", true);\n tween._prom && tween._prom();\n }\n }\n } else if (!tween._zTime) tween._zTime = totalTime;\n}, $21bb7f0d2894673a$var$_findNextPauseTween = function _findNextPauseTween(animation, prevTime, time) {\n var child;\n if (time > prevTime) {\n child = animation._first;\n while(child && child._start <= time){\n if (child.data === \"isPause\" && child._start > prevTime) return child;\n child = child._next;\n }\n } else {\n child = animation._last;\n while(child && child._start >= time){\n if (child.data === \"isPause\" && child._start < prevTime) return child;\n child = child._prev;\n }\n }\n}, $21bb7f0d2894673a$var$_setDuration = function _setDuration(animation, duration, skipUncache, leavePlayhead) {\n var repeat = animation._repeat, dur = $21bb7f0d2894673a$var$_roundPrecise(duration) || 0, totalProgress = animation._tTime / animation._tDur;\n totalProgress && !leavePlayhead && (animation._time *= dur / animation._dur);\n animation._dur = dur;\n animation._tDur = !repeat ? dur : repeat < 0 ? 1e10 : $21bb7f0d2894673a$var$_roundPrecise(dur * (repeat + 1) + animation._rDelay * repeat);\n totalProgress > 0 && !leavePlayhead && $21bb7f0d2894673a$var$_alignPlayhead(animation, animation._tTime = animation._tDur * totalProgress);\n animation.parent && $21bb7f0d2894673a$var$_setEnd(animation);\n skipUncache || $21bb7f0d2894673a$var$_uncache(animation.parent, animation);\n return animation;\n}, $21bb7f0d2894673a$var$_onUpdateTotalDuration = function _onUpdateTotalDuration(animation) {\n return animation instanceof $21bb7f0d2894673a$export$e6a97ba2cae5bb94 ? $21bb7f0d2894673a$var$_uncache(animation) : $21bb7f0d2894673a$var$_setDuration(animation, animation._dur);\n}, $21bb7f0d2894673a$var$_zeroPosition = {\n _start: 0,\n endTime: $21bb7f0d2894673a$var$_emptyFunc,\n totalDuration: $21bb7f0d2894673a$var$_emptyFunc\n}, $21bb7f0d2894673a$var$_parsePosition = function _parsePosition(animation, position, percentAnimation) {\n var labels = animation.labels, recent = animation._recent || $21bb7f0d2894673a$var$_zeroPosition, clippedDuration = animation.duration() >= $21bb7f0d2894673a$var$_bigNum ? recent.endTime(false) : animation._dur, //in case there's a child that infinitely repeats, users almost never intend for the insertion point of a new child to be based on a SUPER long value like that so we clip it and assume the most recently-added child's endTime should be used instead.\n i, offset, isPercent;\n if ($21bb7f0d2894673a$export$f664476fd67145ca(position) && (isNaN(position) || position in labels)) {\n //if the string is a number like \"1\", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).\n offset = position.charAt(0);\n isPercent = position.substr(-1) === \"%\";\n i = position.indexOf(\"=\");\n if (offset === \"<\" || offset === \">\") {\n i >= 0 && (position = position.replace(/=/, \"\"));\n return (offset === \"<\" ? recent._start : recent.endTime(recent._repeat >= 0)) + (parseFloat(position.substr(1)) || 0) * (isPercent ? (i < 0 ? recent : percentAnimation).totalDuration() / 100 : 1);\n }\n if (i < 0) {\n position in labels || (labels[position] = clippedDuration);\n return labels[position];\n }\n offset = parseFloat(position.charAt(i - 1) + position.substr(i + 1));\n if (isPercent && percentAnimation) offset = offset / 100 * ($21bb7f0d2894673a$var$_isArray(percentAnimation) ? percentAnimation[0] : percentAnimation).totalDuration();\n return i > 1 ? _parsePosition(animation, position.substr(0, i - 1), percentAnimation) + offset : clippedDuration + offset;\n }\n return position == null ? clippedDuration : +position;\n}, $21bb7f0d2894673a$var$_createTweenType = function _createTweenType(type, params, timeline) {\n var isLegacy = $21bb7f0d2894673a$var$_isNumber(params[1]), varsIndex = (isLegacy ? 2 : 1) + (type < 2 ? 0 : 1), vars = params[varsIndex], irVars, parent;\n isLegacy && (vars.duration = params[1]);\n vars.parent = timeline;\n if (type) {\n irVars = vars;\n parent = timeline;\n while(parent && !(\"immediateRender\" in irVars)){\n // inheritance hasn't happened yet, but someone may have set a default in an ancestor timeline. We could do vars.immediateRender = _isNotFalse(_inheritDefaults(vars).immediateRender) but that'd exact a slight performance penalty because _inheritDefaults() also runs in the Tween constructor. We're paying a small kb price here to gain speed.\n irVars = parent.vars.defaults || {};\n parent = $21bb7f0d2894673a$var$_isNotFalse(parent.vars.inherit) && parent.parent;\n }\n vars.immediateRender = $21bb7f0d2894673a$var$_isNotFalse(irVars.immediateRender);\n type < 2 ? vars.runBackwards = 1 : vars.startAt = params[varsIndex - 1]; // \"from\" vars\n }\n return new $21bb7f0d2894673a$export$208a41d6b4e37b97(params[0], vars, params[varsIndex + 1]);\n}, $21bb7f0d2894673a$var$_conditionalReturn = function _conditionalReturn(value, func) {\n return value || value === 0 ? func(value) : func;\n}, $21bb7f0d2894673a$var$_clamp = function _clamp(min, max, value) {\n return value < min ? min : value > max ? max : value;\n}, $21bb7f0d2894673a$export$65f2564e9a9b9222 = function getUnit(value, v) {\n return !$21bb7f0d2894673a$export$f664476fd67145ca(value) || !(v = $21bb7f0d2894673a$var$_unitExp.exec(value)) ? \"\" : v[1];\n}, // note: protect against padded numbers as strings, like \"100.100\". That shouldn't return \"00\" as the unit. If it's numeric, return no unit.\n$21bb7f0d2894673a$export$7d15b64cf5a3a4c4 = function clamp(min, max, value) {\n return $21bb7f0d2894673a$var$_conditionalReturn(value, function(v) {\n return $21bb7f0d2894673a$var$_clamp(min, max, v);\n });\n}, $21bb7f0d2894673a$var$_slice = [].slice, $21bb7f0d2894673a$var$_isArrayLike = function _isArrayLike(value, nonEmpty) {\n return value && $21bb7f0d2894673a$var$_isObject(value) && \"length\" in value && (!nonEmpty && !value.length || value.length - 1 in value && $21bb7f0d2894673a$var$_isObject(value[0])) && !value.nodeType && value !== $21bb7f0d2894673a$var$_win;\n}, $21bb7f0d2894673a$var$_flatten = function _flatten(ar, leaveStrings, accumulator) {\n if (accumulator === void 0) accumulator = [];\n return ar.forEach(function(value) {\n var _accumulator;\n return $21bb7f0d2894673a$export$f664476fd67145ca(value) && !leaveStrings || $21bb7f0d2894673a$var$_isArrayLike(value, 1) ? (_accumulator = accumulator).push.apply(_accumulator, $21bb7f0d2894673a$export$45b10814cc054894(value)) : accumulator.push(value);\n }) || accumulator;\n}, //takes any value and returns an array. If it's a string (and leaveStrings isn't true), it'll use document.querySelectorAll() and convert that to an array. It'll also accept iterables like jQuery objects.\n$21bb7f0d2894673a$export$45b10814cc054894 = function toArray(value, scope, leaveStrings) {\n return $21bb7f0d2894673a$var$_context && !scope && $21bb7f0d2894673a$var$_context.selector ? $21bb7f0d2894673a$var$_context.selector(value) : $21bb7f0d2894673a$export$f664476fd67145ca(value) && !leaveStrings && ($21bb7f0d2894673a$var$_coreInitted || !$21bb7f0d2894673a$var$_wake()) ? $21bb7f0d2894673a$var$_slice.call((scope || $21bb7f0d2894673a$var$_doc).querySelectorAll(value), 0) : $21bb7f0d2894673a$var$_isArray(value) ? $21bb7f0d2894673a$var$_flatten(value, leaveStrings) : $21bb7f0d2894673a$var$_isArrayLike(value) ? $21bb7f0d2894673a$var$_slice.call(value, 0) : value ? [\n value\n ] : [];\n}, $21bb7f0d2894673a$export$aea217a45095ce11 = function selector(value) {\n value = $21bb7f0d2894673a$export$45b10814cc054894(value)[0] || $21bb7f0d2894673a$var$_warn(\"Invalid scope\") || {};\n return function(v) {\n var el = value.current || value.nativeElement || value;\n return $21bb7f0d2894673a$export$45b10814cc054894(v, el.querySelectorAll ? el : el === value ? $21bb7f0d2894673a$var$_warn(\"Invalid scope\") || $21bb7f0d2894673a$var$_doc.createElement(\"div\") : value);\n };\n}, $21bb7f0d2894673a$export$448332262467e042 = function shuffle(a) {\n return a.sort(function() {\n return .5 - Math.random();\n });\n}, // alternative that's a bit faster and more reliably diverse but bigger: for (let j, v, i = a.length; i; j = Math.floor(Math.random() * i), v = a[--i], a[i] = a[j], a[j] = v); return a;\n//for distributing values across an array. Can accept a number, a function or (most commonly) a function which can contain the following properties: {base, amount, from, ease, grid, axis, length, each}. Returns a function that expects the following parameters: index, target, array. Recognizes the following\n$21bb7f0d2894673a$export$f02a9ddbe4480f19 = function distribute(v) {\n if ($21bb7f0d2894673a$var$_isFunction(v)) return v;\n var vars = $21bb7f0d2894673a$var$_isObject(v) ? v : {\n each: v\n }, //n:1 is just to indicate v was a number; we leverage that later to set v according to the length we get. If a number is passed in, we treat it like the old stagger value where 0.1, for example, would mean that things would be distributed with 0.1 between each element in the array rather than a total \"amount\" that's chunked out among them all.\n ease = $21bb7f0d2894673a$var$_parseEase(vars.ease), from = vars.from || 0, base = parseFloat(vars.base) || 0, cache = {}, isDecimal = from > 0 && from < 1, ratios = isNaN(from) || isDecimal, axis = vars.axis, ratioX = from, ratioY = from;\n if ($21bb7f0d2894673a$export$f664476fd67145ca(from)) ratioX = ratioY = ({\n center: .5,\n edges: .5,\n end: 1\n })[from] || 0;\n else if (!isDecimal && ratios) {\n ratioX = from[0];\n ratioY = from[1];\n }\n return function(i, target, a) {\n var l = (a || vars).length, distances = cache[l], originX, originY, x, y, d, j, max, min, wrapAt;\n if (!distances) {\n wrapAt = vars.grid === \"auto\" ? 0 : (vars.grid || [\n 1,\n $21bb7f0d2894673a$var$_bigNum\n ])[1];\n if (!wrapAt) {\n max = -$21bb7f0d2894673a$var$_bigNum;\n while(max < (max = a[wrapAt++].getBoundingClientRect().left) && wrapAt < l);\n wrapAt--;\n }\n distances = cache[l] = [];\n originX = ratios ? Math.min(wrapAt, l) * ratioX - .5 : from % wrapAt;\n originY = wrapAt === $21bb7f0d2894673a$var$_bigNum ? 0 : ratios ? l * ratioY / wrapAt - .5 : from / wrapAt | 0;\n max = 0;\n min = $21bb7f0d2894673a$var$_bigNum;\n for(j = 0; j < l; j++){\n x = j % wrapAt - originX;\n y = originY - (j / wrapAt | 0);\n distances[j] = d = !axis ? $21bb7f0d2894673a$var$_sqrt(x * x + y * y) : Math.abs(axis === \"y\" ? y : x);\n d > max && (max = d);\n d < min && (min = d);\n }\n from === \"random\" && $21bb7f0d2894673a$export$448332262467e042(distances);\n distances.max = max - min;\n distances.min = min;\n distances.v = l = (parseFloat(vars.amount) || parseFloat(vars.each) * (wrapAt > l ? l - 1 : !axis ? Math.max(wrapAt, l / wrapAt) : axis === \"y\" ? l / wrapAt : wrapAt) || 0) * (from === \"edges\" ? -1 : 1);\n distances.b = l < 0 ? base - l : base;\n distances.u = $21bb7f0d2894673a$export$65f2564e9a9b9222(vars.amount || vars.each) || 0; //unit\n ease = ease && l < 0 ? $21bb7f0d2894673a$var$_invertEase(ease) : ease;\n }\n l = (distances[i] - distances.min) / distances.max || 0;\n return $21bb7f0d2894673a$var$_roundPrecise(distances.b + (ease ? ease(l) : l) * distances.v) + distances.u; //round in order to work around floating point errors\n };\n}, $21bb7f0d2894673a$export$dd12390e6b265a17 = function _roundModifier(v) {\n //pass in 0.1 get a function that'll round to the nearest tenth, or 5 to round to the closest 5, or 0.001 to the closest 1000th, etc.\n var p = Math.pow(10, ((v + \"\").split(\".\")[1] || \"\").length); //to avoid floating point math errors (like 24 * 0.1 == 2.4000000000000004), we chop off at a specific number of decimal places (much faster than toFixed())\n return function(raw) {\n var n = $21bb7f0d2894673a$var$_roundPrecise(Math.round(parseFloat(raw) / v) * v * p);\n return (n - n % 1) / p + ($21bb7f0d2894673a$var$_isNumber(raw) ? 0 : $21bb7f0d2894673a$export$65f2564e9a9b9222(raw)); // n - n % 1 replaces Math.floor() in order to handle negative values properly. For example, Math.floor(-150.00000000000003) is 151!\n };\n}, $21bb7f0d2894673a$export$51a0620f7a28532b = function snap(snapTo, value) {\n var isArray = $21bb7f0d2894673a$var$_isArray(snapTo), radius, is2D;\n if (!isArray && $21bb7f0d2894673a$var$_isObject(snapTo)) {\n radius = isArray = snapTo.radius || $21bb7f0d2894673a$var$_bigNum;\n if (snapTo.values) {\n snapTo = $21bb7f0d2894673a$export$45b10814cc054894(snapTo.values);\n if (is2D = !$21bb7f0d2894673a$var$_isNumber(snapTo[0])) radius *= radius; //performance optimization so we don't have to Math.sqrt() in the loop.\n } else snapTo = $21bb7f0d2894673a$export$dd12390e6b265a17(snapTo.increment);\n }\n return $21bb7f0d2894673a$var$_conditionalReturn(value, !isArray ? $21bb7f0d2894673a$export$dd12390e6b265a17(snapTo) : $21bb7f0d2894673a$var$_isFunction(snapTo) ? function(raw) {\n is2D = snapTo(raw);\n return Math.abs(is2D - raw) <= radius ? is2D : raw;\n } : function(raw) {\n var x = parseFloat(is2D ? raw.x : raw), y = parseFloat(is2D ? raw.y : 0), min = $21bb7f0d2894673a$var$_bigNum, closest = 0, i = snapTo.length, dx, dy;\n while(i--){\n if (is2D) {\n dx = snapTo[i].x - x;\n dy = snapTo[i].y - y;\n dx = dx * dx + dy * dy;\n } else dx = Math.abs(snapTo[i] - x);\n if (dx < min) {\n min = dx;\n closest = i;\n }\n }\n closest = !radius || min <= radius ? snapTo[closest] : raw;\n return is2D || closest === raw || $21bb7f0d2894673a$var$_isNumber(raw) ? closest : closest + $21bb7f0d2894673a$export$65f2564e9a9b9222(raw);\n });\n}, $21bb7f0d2894673a$export$4385e60b38654f68 = function random(min, max, roundingIncrement, returnFunction) {\n return $21bb7f0d2894673a$var$_conditionalReturn($21bb7f0d2894673a$var$_isArray(min) ? !max : roundingIncrement === true ? (roundingIncrement = 0, false) : !returnFunction, function() {\n return $21bb7f0d2894673a$var$_isArray(min) ? min[~~(Math.random() * min.length)] : (roundingIncrement = roundingIncrement || 1e-5, returnFunction = roundingIncrement < 1 ? Math.pow(10, (roundingIncrement + \"\").length - 2) : 1) && Math.floor(Math.round((min - roundingIncrement / 2 + Math.random() * (max - min + roundingIncrement * .99)) / roundingIncrement) * roundingIncrement * returnFunction) / returnFunction;\n });\n}, $21bb7f0d2894673a$export$a4627e546088548d = function pipe() {\n for(var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++)functions[_key] = arguments[_key];\n return function(value) {\n return functions.reduce(function(v, f) {\n return f(v);\n }, value);\n };\n}, $21bb7f0d2894673a$export$d7502930aa5492de = function unitize(func, unit) {\n return function(value) {\n return func(parseFloat(value)) + (unit || $21bb7f0d2894673a$export$65f2564e9a9b9222(value));\n };\n}, $21bb7f0d2894673a$export$a3295358bff77e = function normalize(min, max, value) {\n return $21bb7f0d2894673a$export$f65a7599bbc6b121(min, max, 0, 1, value);\n}, $21bb7f0d2894673a$var$_wrapArray = function _wrapArray(a, wrapper, value) {\n return $21bb7f0d2894673a$var$_conditionalReturn(value, function(index) {\n return a[~~wrapper(index)];\n });\n}, $21bb7f0d2894673a$export$4997ffc0176396a6 = function wrap(min, max, value) {\n // NOTE: wrap() CANNOT be an arrow function! A very odd compiling bug causes problems (unrelated to GSAP).\n var range = max - min;\n return $21bb7f0d2894673a$var$_isArray(min) ? $21bb7f0d2894673a$var$_wrapArray(min, wrap(0, min.length), max) : $21bb7f0d2894673a$var$_conditionalReturn(value, function(value) {\n return (range + (value - min) % range) % range + min;\n });\n}, $21bb7f0d2894673a$export$cfc0b067273edc55 = function wrapYoyo(min, max, value) {\n var range = max - min, total = range * 2;\n return $21bb7f0d2894673a$var$_isArray(min) ? $21bb7f0d2894673a$var$_wrapArray(min, wrapYoyo(0, min.length - 1), max) : $21bb7f0d2894673a$var$_conditionalReturn(value, function(value) {\n value = (total + (value - min) % total) % total || 0;\n return min + (value > range ? total - value : value);\n });\n}, $21bb7f0d2894673a$export$d5962a97e3cde94d = function _replaceRandom(value) {\n //replaces all occurrences of random(...) in a string with the calculated random value. can be a range like random(-100, 100, 5) or an array like random([0, 100, 500])\n var prev = 0, s = \"\", i, nums, end, isArray;\n while(~(i = value.indexOf(\"random(\", prev))){\n end = value.indexOf(\")\", i);\n isArray = value.charAt(i + 7) === \"[\";\n nums = value.substr(i + 7, end - i - 7).match(isArray ? $21bb7f0d2894673a$var$_delimitedValueExp : $21bb7f0d2894673a$var$_strictNumExp);\n s += value.substr(prev, i - prev) + $21bb7f0d2894673a$export$4385e60b38654f68(isArray ? nums : +nums[0], isArray ? 0 : +nums[1], +nums[2] || 1e-5);\n prev = end + 1;\n }\n return s + value.substr(prev, value.length - prev);\n}, $21bb7f0d2894673a$export$f65a7599bbc6b121 = function mapRange(inMin, inMax, outMin, outMax, value) {\n var inRange = inMax - inMin, outRange = outMax - outMin;\n return $21bb7f0d2894673a$var$_conditionalReturn(value, function(value) {\n return outMin + ((value - inMin) / inRange * outRange || 0);\n });\n}, $21bb7f0d2894673a$export$89e29e4ab65e70a9 = function interpolate(start, end, progress, mutate) {\n var func = isNaN(start + end) ? 0 : function(p) {\n return (1 - p) * start + p * end;\n };\n if (!func) {\n var isString = $21bb7f0d2894673a$export$f664476fd67145ca(start), master = {}, p, i, interpolators, l, il;\n progress === true && (mutate = 1) && (progress = null);\n if (isString) {\n start = {\n p: start\n };\n end = {\n p: end\n };\n } else if ($21bb7f0d2894673a$var$_isArray(start) && !$21bb7f0d2894673a$var$_isArray(end)) {\n interpolators = [];\n l = start.length;\n il = l - 2;\n for(i = 1; i < l; i++)interpolators.push(interpolate(start[i - 1], start[i])); //build the interpolators up front as a performance optimization so that when the function is called many times, it can just reuse them.\n l--;\n func = function func(p) {\n p *= l;\n var i = Math.min(il, ~~p);\n return interpolators[i](p - i);\n };\n progress = end;\n } else if (!mutate) start = $21bb7f0d2894673a$var$_merge($21bb7f0d2894673a$var$_isArray(start) ? [] : {}, start);\n if (!interpolators) {\n for(p in end)$21bb7f0d2894673a$var$_addPropTween.call(master, start, p, \"get\", end[p]);\n func = function func(p) {\n return $21bb7f0d2894673a$var$_renderPropTweens(p, master) || (isString ? start.p : start);\n };\n }\n }\n return $21bb7f0d2894673a$var$_conditionalReturn(progress, func);\n}, $21bb7f0d2894673a$var$_getLabelInDirection = function _getLabelInDirection(timeline, fromTime, backward) {\n //used for nextLabel() and previousLabel()\n var labels = timeline.labels, min = $21bb7f0d2894673a$var$_bigNum, p, distance, label;\n for(p in labels){\n distance = labels[p] - fromTime;\n if (distance < 0 === !!backward && distance && min > (distance = Math.abs(distance))) {\n label = p;\n min = distance;\n }\n }\n return label;\n}, $21bb7f0d2894673a$var$_callback = function _callback(animation, type, executeLazyFirst) {\n var v = animation.vars, callback = v[type], prevContext = $21bb7f0d2894673a$var$_context, context = animation._ctx, params, scope, result;\n if (!callback) return;\n params = v[type + \"Params\"];\n scope = v.callbackScope || animation;\n executeLazyFirst && $21bb7f0d2894673a$var$_lazyTweens.length && $21bb7f0d2894673a$var$_lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.\n context && ($21bb7f0d2894673a$var$_context = context);\n result = params ? callback.apply(scope, params) : callback.call(scope);\n $21bb7f0d2894673a$var$_context = prevContext;\n return result;\n}, $21bb7f0d2894673a$var$_interrupt = function _interrupt(animation) {\n $21bb7f0d2894673a$var$_removeFromParent(animation);\n animation.scrollTrigger && animation.scrollTrigger.kill(!!$21bb7f0d2894673a$var$_reverting);\n animation.progress() < 1 && $21bb7f0d2894673a$var$_callback(animation, \"onInterrupt\");\n return animation;\n}, $21bb7f0d2894673a$var$_quickTween, $21bb7f0d2894673a$var$_registerPluginQueue = [], $21bb7f0d2894673a$var$_createPlugin = function _createPlugin(config) {\n if (!$21bb7f0d2894673a$var$_windowExists()) {\n $21bb7f0d2894673a$var$_registerPluginQueue.push(config);\n return;\n }\n config = !config.name && config[\"default\"] || config; //UMD packaging wraps things oddly, so for example MotionPathHelper becomes {MotionPathHelper:MotionPathHelper, default:MotionPathHelper}.\n var name = config.name, isFunc = $21bb7f0d2894673a$var$_isFunction(config), Plugin = name && !isFunc && config.init ? function() {\n this._props = [];\n } : config, //in case someone passes in an object that's not a plugin, like CustomEase\n instanceDefaults = {\n init: $21bb7f0d2894673a$var$_emptyFunc,\n render: $21bb7f0d2894673a$var$_renderPropTweens,\n add: $21bb7f0d2894673a$var$_addPropTween,\n kill: $21bb7f0d2894673a$var$_killPropTweensOf,\n modifier: $21bb7f0d2894673a$var$_addPluginModifier,\n rawVars: 0\n }, statics = {\n targetTest: 0,\n get: 0,\n getSetter: $21bb7f0d2894673a$export$d60fbc1e0278aaf0,\n aliases: {},\n register: 0\n };\n $21bb7f0d2894673a$var$_wake();\n if (config !== Plugin) {\n if ($21bb7f0d2894673a$export$d305d8ec5d7c26b8[name]) return;\n $21bb7f0d2894673a$export$dc2b19673bb53610(Plugin, $21bb7f0d2894673a$export$dc2b19673bb53610($21bb7f0d2894673a$var$_copyExcluding(config, instanceDefaults), statics)); //static methods\n $21bb7f0d2894673a$var$_merge(Plugin.prototype, $21bb7f0d2894673a$var$_merge(instanceDefaults, $21bb7f0d2894673a$var$_copyExcluding(config, statics))); //instance methods\n $21bb7f0d2894673a$export$d305d8ec5d7c26b8[Plugin.prop = name] = Plugin;\n if (config.targetTest) {\n $21bb7f0d2894673a$var$_harnessPlugins.push(Plugin);\n $21bb7f0d2894673a$var$_reservedProps[name] = 1;\n }\n name = (name === \"css\" ? \"CSS\" : name.charAt(0).toUpperCase() + name.substr(1)) + \"Plugin\"; //for the global name. \"motionPath\" should become MotionPathPlugin\n }\n $21bb7f0d2894673a$var$_addGlobal(name, Plugin);\n config.register && config.register($21bb7f0d2894673a$export$99ee26438460406a, Plugin, $21bb7f0d2894673a$export$3a67f7f44b1e838a);\n}, /*\n * --------------------------------------------------------------------------------------\n * COLORS\n * --------------------------------------------------------------------------------------\n */ $21bb7f0d2894673a$var$_255 = 255, $21bb7f0d2894673a$var$_colorLookup = {\n aqua: [\n 0,\n $21bb7f0d2894673a$var$_255,\n $21bb7f0d2894673a$var$_255\n ],\n lime: [\n 0,\n $21bb7f0d2894673a$var$_255,\n 0\n ],\n silver: [\n 192,\n 192,\n 192\n ],\n black: [\n 0,\n 0,\n 0\n ],\n maroon: [\n 128,\n 0,\n 0\n ],\n teal: [\n 0,\n 128,\n 128\n ],\n blue: [\n 0,\n 0,\n $21bb7f0d2894673a$var$_255\n ],\n navy: [\n 0,\n 0,\n 128\n ],\n white: [\n $21bb7f0d2894673a$var$_255,\n $21bb7f0d2894673a$var$_255,\n $21bb7f0d2894673a$var$_255\n ],\n olive: [\n 128,\n 128,\n 0\n ],\n yellow: [\n $21bb7f0d2894673a$var$_255,\n $21bb7f0d2894673a$var$_255,\n 0\n ],\n orange: [\n $21bb7f0d2894673a$var$_255,\n 165,\n 0\n ],\n gray: [\n 128,\n 128,\n 128\n ],\n purple: [\n 128,\n 0,\n 128\n ],\n green: [\n 0,\n 128,\n 0\n ],\n red: [\n $21bb7f0d2894673a$var$_255,\n 0,\n 0\n ],\n pink: [\n $21bb7f0d2894673a$var$_255,\n 192,\n 203\n ],\n cyan: [\n 0,\n $21bb7f0d2894673a$var$_255,\n $21bb7f0d2894673a$var$_255\n ],\n transparent: [\n $21bb7f0d2894673a$var$_255,\n $21bb7f0d2894673a$var$_255,\n $21bb7f0d2894673a$var$_255,\n 0\n ]\n}, // possible future idea to replace the hard-coded color name values - put this in the ticker.wake() where we set the _doc:\n// let ctx = _doc.createElement(\"canvas\").getContext(\"2d\");\n// _forEachName(\"aqua,lime,silver,black,maroon,teal,blue,navy,white,olive,yellow,orange,gray,purple,green,red,pink,cyan\", color => {ctx.fillStyle = color; _colorLookup[color] = splitColor(ctx.fillStyle)});\n$21bb7f0d2894673a$var$_hue = function _hue(h, m1, m2) {\n h += h < 0 ? 1 : h > 1 ? -1 : 0;\n return (h * 6 < 1 ? m1 + (m2 - m1) * h * 6 : h < .5 ? m2 : h * 3 < 2 ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1) * $21bb7f0d2894673a$var$_255 + .5 | 0;\n}, $21bb7f0d2894673a$export$73d6f35be992df24 = function splitColor(v, toHSL, forceAlpha) {\n var a = !v ? $21bb7f0d2894673a$var$_colorLookup.black : $21bb7f0d2894673a$var$_isNumber(v) ? [\n v >> 16,\n v >> 8 & $21bb7f0d2894673a$var$_255,\n v & $21bb7f0d2894673a$var$_255\n ] : 0, r, g, b, h, s, l, max, min, d, wasHSL;\n if (!a) {\n if (v.substr(-1) === \",\") //sometimes a trailing comma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:\"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)\" - in this example \"blue,\" has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.\n v = v.substr(0, v.length - 1);\n if ($21bb7f0d2894673a$var$_colorLookup[v]) a = $21bb7f0d2894673a$var$_colorLookup[v];\n else if (v.charAt(0) === \"#\") {\n if (v.length < 6) {\n //for shorthand like #9F0 or #9F0F (could have alpha)\n r = v.charAt(1);\n g = v.charAt(2);\n b = v.charAt(3);\n v = \"#\" + r + r + g + g + b + b + (v.length === 5 ? v.charAt(4) + v.charAt(4) : \"\");\n }\n if (v.length === 9) {\n // hex with alpha, like #fd5e53ff\n a = parseInt(v.substr(1, 6), 16);\n return [\n a >> 16,\n a >> 8 & $21bb7f0d2894673a$var$_255,\n a & $21bb7f0d2894673a$var$_255,\n parseInt(v.substr(7), 16) / 255\n ];\n }\n v = parseInt(v.substr(1), 16);\n a = [\n v >> 16,\n v >> 8 & $21bb7f0d2894673a$var$_255,\n v & $21bb7f0d2894673a$var$_255\n ];\n } else if (v.substr(0, 3) === \"hsl\") {\n a = wasHSL = v.match($21bb7f0d2894673a$var$_strictNumExp);\n if (!toHSL) {\n h = +a[0] % 360 / 360;\n s = +a[1] / 100;\n l = +a[2] / 100;\n g = l <= .5 ? l * (s + 1) : l + s - l * s;\n r = l * 2 - g;\n a.length > 3 && (a[3] *= 1); //cast as number\n a[0] = $21bb7f0d2894673a$var$_hue(h + 1 / 3, r, g);\n a[1] = $21bb7f0d2894673a$var$_hue(h, r, g);\n a[2] = $21bb7f0d2894673a$var$_hue(h - 1 / 3, r, g);\n } else if (~v.indexOf(\"=\")) {\n //if relative values are found, just return the raw strings with the relative prefixes in place.\n a = v.match($21bb7f0d2894673a$export$b9d44bb6523120d6);\n forceAlpha && a.length < 4 && (a[3] = 1);\n return a;\n }\n } else a = v.match($21bb7f0d2894673a$var$_strictNumExp) || $21bb7f0d2894673a$var$_colorLookup.transparent;\n a = a.map(Number);\n }\n if (toHSL && !wasHSL) {\n r = a[0] / $21bb7f0d2894673a$var$_255;\n g = a[1] / $21bb7f0d2894673a$var$_255;\n b = a[2] / $21bb7f0d2894673a$var$_255;\n max = Math.max(r, g, b);\n min = Math.min(r, g, b);\n l = (max + min) / 2;\n if (max === min) h = s = 0;\n else {\n d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n h = max === r ? (g - b) / d + (g < b ? 6 : 0) : max === g ? (b - r) / d + 2 : (r - g) / d + 4;\n h *= 60;\n }\n a[0] = ~~(h + .5);\n a[1] = ~~(s * 100 + .5);\n a[2] = ~~(l * 100 + .5);\n }\n forceAlpha && a.length < 4 && (a[3] = 1);\n return a;\n}, $21bb7f0d2894673a$var$_colorOrderData = function _colorOrderData(v) {\n // strips out the colors from the string, finds all the numeric slots (with units) and returns an array of those. The Array also has a \"c\" property which is an Array of the index values where the colors belong. This is to help work around issues where there's a mis-matched order of color/numeric data like drop-shadow(#f00 0px 1px 2px) and drop-shadow(0x 1px 2px #f00). This is basically a helper function used in _formatColors()\n var values = [], c = [], i = -1;\n v.split($21bb7f0d2894673a$export$dd733e62515be2bd).forEach(function(v) {\n var a = v.match($21bb7f0d2894673a$export$65c88bbd597e7b0a) || [];\n values.push.apply(values, a);\n c.push(i += a.length + 1);\n });\n values.c = c;\n return values;\n}, $21bb7f0d2894673a$var$_formatColors = function _formatColors(s, toHSL, orderMatchData) {\n var result = \"\", colors = (s + result).match($21bb7f0d2894673a$export$dd733e62515be2bd), type = toHSL ? \"hsla(\" : \"rgba(\", i = 0, c, shell, d, l;\n if (!colors) return s;\n colors = colors.map(function(color) {\n return (color = $21bb7f0d2894673a$export$73d6f35be992df24(color, toHSL, 1)) && type + (toHSL ? color[0] + \",\" + color[1] + \"%,\" + color[2] + \"%,\" + color[3] : color.join(\",\")) + \")\";\n });\n if (orderMatchData) {\n d = $21bb7f0d2894673a$var$_colorOrderData(s);\n c = orderMatchData.c;\n if (c.join(result) !== d.c.join(result)) {\n shell = s.replace($21bb7f0d2894673a$export$dd733e62515be2bd, \"1\").split($21bb7f0d2894673a$export$65c88bbd597e7b0a);\n l = shell.length - 1;\n for(; i < l; i++)result += shell[i] + (~c.indexOf(i) ? colors.shift() || type + \"0,0,0,0)\" : (d.length ? d : colors.length ? colors : orderMatchData).shift());\n }\n }\n if (!shell) {\n shell = s.split($21bb7f0d2894673a$export$dd733e62515be2bd);\n l = shell.length - 1;\n for(; i < l; i++)result += shell[i] + colors[i];\n }\n return result + shell[l];\n}, $21bb7f0d2894673a$export$dd733e62515be2bd = function() {\n var s = \"(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3,4}){1,2}\\\\b\", //we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.,\n p;\n for(p in $21bb7f0d2894673a$var$_colorLookup)s += \"|\" + p + \"\\\\b\";\n return new RegExp(s + \")\", \"gi\");\n}(), $21bb7f0d2894673a$var$_hslExp = /hsl[a]?\\(/, $21bb7f0d2894673a$export$7eb2e5eb5eeb96a4 = function _colorStringFilter(a) {\n var combined = a.join(\" \"), toHSL;\n $21bb7f0d2894673a$export$dd733e62515be2bd.lastIndex = 0;\n if ($21bb7f0d2894673a$export$dd733e62515be2bd.test(combined)) {\n toHSL = $21bb7f0d2894673a$var$_hslExp.test(combined);\n a[1] = $21bb7f0d2894673a$var$_formatColors(a[1], toHSL);\n a[0] = $21bb7f0d2894673a$var$_formatColors(a[0], toHSL, $21bb7f0d2894673a$var$_colorOrderData(a[1])); // make sure the order of numbers/colors match with the END value.\n return true;\n }\n}, /*\n * --------------------------------------------------------------------------------------\n * TICKER\n * --------------------------------------------------------------------------------------\n */ $21bb7f0d2894673a$var$_tickerActive, $21bb7f0d2894673a$export$762ed8fbedb691e3 = function() {\n var _getTime = Date.now, _lagThreshold = 500, _adjustedLag = 33, _startTime = _getTime(), _lastUpdate = _startTime, _gap = 1000 / 240, _nextTime = _gap, _listeners = [], _id, _req, _raf, _self, _delta, _i, _tick = function _tick(v) {\n var elapsed = _getTime() - _lastUpdate, manual = v === true, overlap, dispatch, time, frame;\n elapsed > _lagThreshold && (_startTime += elapsed - _adjustedLag);\n _lastUpdate += elapsed;\n time = _lastUpdate - _startTime;\n overlap = time - _nextTime;\n if (overlap > 0 || manual) {\n frame = ++_self.frame;\n _delta = time - _self.time * 1000;\n _self.time = time = time / 1000;\n _nextTime += overlap + (overlap >= _gap ? 4 : _gap - overlap);\n dispatch = 1;\n }\n manual || (_id = _req(_tick)); //make sure the request is made before we dispatch the \"tick\" event so that timing is maintained. Otherwise, if processing the \"tick\" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.\n if (dispatch) for(_i = 0; _i < _listeners.length; _i++)// use _i and check _listeners.length instead of a variable because a listener could get removed during the loop, and if that happens to an element less than the current index, it'd throw things off in the loop.\n _listeners[_i](time, _delta, frame, v);\n };\n _self = {\n time: 0,\n frame: 0,\n tick: function tick() {\n _tick(true);\n },\n deltaRatio: function deltaRatio(fps) {\n return _delta / (1000 / (fps || 60));\n },\n wake: function wake() {\n if ($21bb7f0d2894673a$var$_coreReady) {\n if (!$21bb7f0d2894673a$var$_coreInitted && $21bb7f0d2894673a$var$_windowExists()) {\n $21bb7f0d2894673a$var$_win = $21bb7f0d2894673a$var$_coreInitted = window;\n $21bb7f0d2894673a$var$_doc = $21bb7f0d2894673a$var$_win.document || {};\n $21bb7f0d2894673a$var$_globals.gsap = $21bb7f0d2894673a$export$99ee26438460406a;\n ($21bb7f0d2894673a$var$_win.gsapVersions || ($21bb7f0d2894673a$var$_win.gsapVersions = [])).push($21bb7f0d2894673a$export$99ee26438460406a.version);\n $21bb7f0d2894673a$var$_install($21bb7f0d2894673a$var$_installScope || $21bb7f0d2894673a$var$_win.GreenSockGlobals || !$21bb7f0d2894673a$var$_win.gsap && $21bb7f0d2894673a$var$_win || {});\n _raf = $21bb7f0d2894673a$var$_win.requestAnimationFrame;\n $21bb7f0d2894673a$var$_registerPluginQueue.forEach($21bb7f0d2894673a$var$_createPlugin);\n }\n _id && _self.sleep();\n _req = _raf || function(f) {\n return setTimeout(f, _nextTime - _self.time * 1000 + 1 | 0);\n };\n $21bb7f0d2894673a$var$_tickerActive = 1;\n _tick(2);\n }\n },\n sleep: function sleep() {\n (_raf ? $21bb7f0d2894673a$var$_win.cancelAnimationFrame : clearTimeout)(_id);\n $21bb7f0d2894673a$var$_tickerActive = 0;\n _req = $21bb7f0d2894673a$var$_emptyFunc;\n },\n lagSmoothing: function lagSmoothing(threshold, adjustedLag) {\n _lagThreshold = threshold || Infinity; // zero should be interpreted as basically unlimited\n _adjustedLag = Math.min(adjustedLag || 33, _lagThreshold);\n },\n fps: function fps(_fps) {\n _gap = 1000 / (_fps || 240);\n _nextTime = _self.time * 1000 + _gap;\n },\n add: function add(callback, once, prioritize) {\n var func = once ? function(t, d, f, v) {\n callback(t, d, f, v);\n _self.remove(func);\n } : callback;\n _self.remove(callback);\n _listeners[prioritize ? \"unshift\" : \"push\"](func);\n $21bb7f0d2894673a$var$_wake();\n return func;\n },\n remove: function remove(callback, i) {\n ~(i = _listeners.indexOf(callback)) && _listeners.splice(i, 1) && _i >= i && _i--;\n },\n _listeners: _listeners\n };\n return _self;\n}(), $21bb7f0d2894673a$var$_wake = function _wake() {\n return !$21bb7f0d2894673a$var$_tickerActive && $21bb7f0d2894673a$export$762ed8fbedb691e3.wake();\n}, //also ensures the core classes are initialized.\n/*\n* -------------------------------------------------\n* EASING\n* -------------------------------------------------\n*/ $21bb7f0d2894673a$var$_easeMap = {}, $21bb7f0d2894673a$var$_customEaseExp = /^[\\d.\\-M][\\d.\\-,\\s]/, $21bb7f0d2894673a$var$_quotesExp = /[\"']/g, $21bb7f0d2894673a$var$_parseObjectInString = function _parseObjectInString(value) {\n //takes a string like \"{wiggles:10, type:anticipate})\" and turns it into a real object. Notice it ends in \")\" and includes the {} wrappers. This is because we only use this function for parsing ease configs and prioritized optimization rather than reusability.\n var obj = {}, split = value.substr(1, value.length - 3).split(\":\"), key = split[0], i = 1, l = split.length, index, val, parsedVal;\n for(; i < l; i++){\n val = split[i];\n index = i !== l - 1 ? val.lastIndexOf(\",\") : val.length;\n parsedVal = val.substr(0, index);\n obj[key] = isNaN(parsedVal) ? parsedVal.replace($21bb7f0d2894673a$var$_quotesExp, \"\").trim() : +parsedVal;\n key = val.substr(index + 1).trim();\n }\n return obj;\n}, $21bb7f0d2894673a$var$_valueInParentheses = function _valueInParentheses(value) {\n var open = value.indexOf(\"(\") + 1, close = value.indexOf(\")\"), nested = value.indexOf(\"(\", open);\n return value.substring(open, ~nested && nested < close ? value.indexOf(\")\", close + 1) : close);\n}, $21bb7f0d2894673a$var$_configEaseFromString = function _configEaseFromString(name) {\n //name can be a string like \"elastic.out(1,0.5)\", and pass in _easeMap as obj and it'll parse it out and call the actual function like _easeMap.Elastic.easeOut.config(1,0.5). It will also parse custom ease strings as long as CustomEase is loaded and registered (internally as _easeMap._CE).\n var split = (name + \"\").split(\"(\"), ease = $21bb7f0d2894673a$var$_easeMap[split[0]];\n return ease && split.length > 1 && ease.config ? ease.config.apply(null, ~name.indexOf(\"{\") ? [\n $21bb7f0d2894673a$var$_parseObjectInString(split[1])\n ] : $21bb7f0d2894673a$var$_valueInParentheses(name).split(\",\").map($21bb7f0d2894673a$var$_numericIfPossible)) : $21bb7f0d2894673a$var$_easeMap._CE && $21bb7f0d2894673a$var$_customEaseExp.test(name) ? $21bb7f0d2894673a$var$_easeMap._CE(\"\", name) : ease;\n}, $21bb7f0d2894673a$var$_invertEase = function _invertEase(ease) {\n return function(p) {\n return 1 - ease(1 - p);\n };\n}, // allow yoyoEase to be set in children and have those affected when the parent/ancestor timeline yoyos.\n$21bb7f0d2894673a$var$_propagateYoyoEase = function _propagateYoyoEase(timeline, isYoyo) {\n var child = timeline._first, ease;\n while(child){\n if (child instanceof $21bb7f0d2894673a$export$e6a97ba2cae5bb94) _propagateYoyoEase(child, isYoyo);\n else if (child.vars.yoyoEase && (!child._yoyo || !child._repeat) && child._yoyo !== isYoyo) {\n if (child.timeline) _propagateYoyoEase(child.timeline, isYoyo);\n else {\n ease = child._ease;\n child._ease = child._yEase;\n child._yEase = ease;\n child._yoyo = isYoyo;\n }\n }\n child = child._next;\n }\n}, $21bb7f0d2894673a$var$_parseEase = function _parseEase(ease, defaultEase) {\n return !ease ? defaultEase : ($21bb7f0d2894673a$var$_isFunction(ease) ? ease : $21bb7f0d2894673a$var$_easeMap[ease] || $21bb7f0d2894673a$var$_configEaseFromString(ease)) || defaultEase;\n}, $21bb7f0d2894673a$var$_insertEase = function _insertEase(names, easeIn, easeOut, easeInOut) {\n if (easeOut === void 0) easeOut = function easeOut(p) {\n return 1 - easeIn(1 - p);\n };\n if (easeInOut === void 0) easeInOut = function easeInOut(p) {\n return p < .5 ? easeIn(p * 2) / 2 : 1 - easeIn((1 - p) * 2) / 2;\n };\n var ease = {\n easeIn: easeIn,\n easeOut: easeOut,\n easeInOut: easeInOut\n }, lowercaseName;\n $21bb7f0d2894673a$export$f9000b814859f126(names, function(name) {\n $21bb7f0d2894673a$var$_easeMap[name] = $21bb7f0d2894673a$var$_globals[name] = ease;\n $21bb7f0d2894673a$var$_easeMap[lowercaseName = name.toLowerCase()] = easeOut;\n for(var p in ease)$21bb7f0d2894673a$var$_easeMap[lowercaseName + (p === \"easeIn\" ? \".in\" : p === \"easeOut\" ? \".out\" : \".inOut\")] = $21bb7f0d2894673a$var$_easeMap[name + \".\" + p] = ease[p];\n });\n return ease;\n}, $21bb7f0d2894673a$var$_easeInOutFromOut = function _easeInOutFromOut(easeOut) {\n return function(p) {\n return p < .5 ? (1 - easeOut(1 - p * 2)) / 2 : .5 + easeOut((p - .5) * 2) / 2;\n };\n}, $21bb7f0d2894673a$var$_configElastic = function _configElastic(type, amplitude, period) {\n var p1 = amplitude >= 1 ? amplitude : 1, //note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1.\n p2 = (period || (type ? .3 : .45)) / (amplitude < 1 ? amplitude : 1), p3 = p2 / $21bb7f0d2894673a$var$_2PI * (Math.asin(1 / p1) || 0), easeOut = function easeOut(p) {\n return p === 1 ? 1 : p1 * Math.pow(2, -10 * p) * $21bb7f0d2894673a$var$_sin((p - p3) * p2) + 1;\n }, ease = type === \"out\" ? easeOut : type === \"in\" ? function(p) {\n return 1 - easeOut(1 - p);\n } : $21bb7f0d2894673a$var$_easeInOutFromOut(easeOut);\n p2 = $21bb7f0d2894673a$var$_2PI / p2; //precalculate to optimize\n ease.config = function(amplitude, period) {\n return _configElastic(type, amplitude, period);\n };\n return ease;\n}, $21bb7f0d2894673a$var$_configBack = function _configBack(type, overshoot) {\n if (overshoot === void 0) overshoot = 1.70158;\n var easeOut = function easeOut(p) {\n return p ? --p * p * ((overshoot + 1) * p + overshoot) + 1 : 0;\n }, ease = type === \"out\" ? easeOut : type === \"in\" ? function(p) {\n return 1 - easeOut(1 - p);\n } : $21bb7f0d2894673a$var$_easeInOutFromOut(easeOut);\n ease.config = function(overshoot) {\n return _configBack(type, overshoot);\n };\n return ease;\n}; // a cheaper (kb and cpu) but more mild way to get a parameterized weighted ease by feeding in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n// _weightedEase = ratio => {\n// \tlet y = 0.5 + ratio / 2;\n// \treturn p => (2 * (1 - p) * p * y + p * p);\n// },\n// a stronger (but more expensive kb/cpu) parameterized weighted ease that lets you feed in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n// _weightedEaseStrong = ratio => {\n// \tratio = .5 + ratio / 2;\n// \tlet o = 1 / 3 * (ratio < .5 ? ratio : 1 - ratio),\n// \t\tb = ratio - o,\n// \t\tc = ratio + o;\n// \treturn p => p === 1 ? p : 3 * b * (1 - p) * (1 - p) * p + 3 * c * (1 - p) * p * p + p * p * p;\n// };\n$21bb7f0d2894673a$export$f9000b814859f126(\"Linear,Quad,Cubic,Quart,Quint,Strong\", function(name, i) {\n var power = i < 5 ? i + 1 : i;\n $21bb7f0d2894673a$var$_insertEase(name + \",Power\" + (power - 1), i ? function(p) {\n return Math.pow(p, power);\n } : function(p) {\n return p;\n }, function(p) {\n return 1 - Math.pow(1 - p, power);\n }, function(p) {\n return p < .5 ? Math.pow(p * 2, power) / 2 : 1 - Math.pow((1 - p) * 2, power) / 2;\n });\n});\n$21bb7f0d2894673a$var$_easeMap.Linear.easeNone = $21bb7f0d2894673a$var$_easeMap.none = $21bb7f0d2894673a$var$_easeMap.Linear.easeIn;\n$21bb7f0d2894673a$var$_insertEase(\"Elastic\", $21bb7f0d2894673a$var$_configElastic(\"in\"), $21bb7f0d2894673a$var$_configElastic(\"out\"), $21bb7f0d2894673a$var$_configElastic());\n(function(n, c) {\n var n1 = 1 / c, n2 = 2 * n1, n3 = 2.5 * n1, easeOut = function easeOut(p) {\n return p < n1 ? n * p * p : p < n2 ? n * Math.pow(p - 1.5 / c, 2) + .75 : p < n3 ? n * (p -= 2.25 / c) * p + .9375 : n * Math.pow(p - 2.625 / c, 2) + .984375;\n };\n $21bb7f0d2894673a$var$_insertEase(\"Bounce\", function(p) {\n return 1 - easeOut(1 - p);\n }, easeOut);\n})(7.5625, 2.75);\n$21bb7f0d2894673a$var$_insertEase(\"Expo\", function(p) {\n return p ? Math.pow(2, 10 * (p - 1)) : 0;\n});\n$21bb7f0d2894673a$var$_insertEase(\"Circ\", function(p) {\n return -($21bb7f0d2894673a$var$_sqrt(1 - p * p) - 1);\n});\n$21bb7f0d2894673a$var$_insertEase(\"Sine\", function(p) {\n return p === 1 ? 1 : -$21bb7f0d2894673a$var$_cos(p * $21bb7f0d2894673a$var$_HALF_PI) + 1;\n});\n$21bb7f0d2894673a$var$_insertEase(\"Back\", $21bb7f0d2894673a$var$_configBack(\"in\"), $21bb7f0d2894673a$var$_configBack(\"out\"), $21bb7f0d2894673a$var$_configBack());\n$21bb7f0d2894673a$var$_easeMap.SteppedEase = $21bb7f0d2894673a$var$_easeMap.steps = $21bb7f0d2894673a$var$_globals.SteppedEase = {\n config: function config(steps, immediateStart) {\n if (steps === void 0) steps = 1;\n var p1 = 1 / steps, p2 = steps + (immediateStart ? 0 : 1), p3 = immediateStart ? 1 : 0, max = 1 - $21bb7f0d2894673a$var$_tinyNum;\n return function(p) {\n return ((p2 * $21bb7f0d2894673a$var$_clamp(0, max, p) | 0) + p3) * p1;\n };\n }\n};\n$21bb7f0d2894673a$var$_defaults.ease = $21bb7f0d2894673a$var$_easeMap[\"quad.out\"];\n$21bb7f0d2894673a$export$f9000b814859f126(\"onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt\", function(name) {\n return $21bb7f0d2894673a$var$_callbackNames += name + \",\" + name + \"Params,\";\n});\nvar $21bb7f0d2894673a$export$cf10981d5419cad5 = function GSCache(target, harness) {\n this.id = $21bb7f0d2894673a$var$_gsID++;\n target._gsap = this;\n this.target = target;\n this.harness = harness;\n this.get = harness ? harness.get : $21bb7f0d2894673a$export$51d6bbe898aef1f9;\n this.set = harness ? harness.getSetter : $21bb7f0d2894673a$export$d60fbc1e0278aaf0;\n};\nvar $21bb7f0d2894673a$export$c35d437ae5945fcd = /*#__PURE__*/ function() {\n function Animation(vars) {\n this.vars = vars;\n this._delay = +vars.delay || 0;\n if (this._repeat = vars.repeat === Infinity ? -2 : vars.repeat || 0) {\n // TODO: repeat: Infinity on a timeline's children must flag that timeline internally and affect its totalDuration, otherwise it'll stop in the negative direction when reaching the start.\n this._rDelay = vars.repeatDelay || 0;\n this._yoyo = !!vars.yoyo || !!vars.yoyoEase;\n }\n this._ts = 1;\n $21bb7f0d2894673a$var$_setDuration(this, +vars.duration, 1, 1);\n this.data = vars.data;\n if ($21bb7f0d2894673a$var$_context) {\n this._ctx = $21bb7f0d2894673a$var$_context;\n $21bb7f0d2894673a$var$_context.data.push(this);\n }\n $21bb7f0d2894673a$var$_tickerActive || $21bb7f0d2894673a$export$762ed8fbedb691e3.wake();\n }\n var _proto = Animation.prototype;\n _proto.delay = function delay(value) {\n if (value || value === 0) {\n this.parent && this.parent.smoothChildTiming && this.startTime(this._start + value - this._delay);\n this._delay = value;\n return this;\n }\n return this._delay;\n };\n _proto.duration = function duration(value) {\n return arguments.length ? this.totalDuration(this._repeat > 0 ? value + (value + this._rDelay) * this._repeat : value) : this.totalDuration() && this._dur;\n };\n _proto.totalDuration = function totalDuration(value) {\n if (!arguments.length) return this._tDur;\n this._dirty = 0;\n return $21bb7f0d2894673a$var$_setDuration(this, this._repeat < 0 ? value : (value - this._repeat * this._rDelay) / (this._repeat + 1));\n };\n _proto.totalTime = function totalTime(_totalTime, suppressEvents) {\n $21bb7f0d2894673a$var$_wake();\n if (!arguments.length) return this._tTime;\n var parent = this._dp;\n if (parent && parent.smoothChildTiming && this._ts) {\n $21bb7f0d2894673a$var$_alignPlayhead(this, _totalTime);\n !parent._dp || parent.parent || $21bb7f0d2894673a$var$_postAddChecks(parent, this); // edge case: if this is a child of a timeline that already completed, for example, we must re-activate the parent.\n //in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The start of that child would get pushed out, but one of the ancestors may have completed.\n while(parent && parent.parent){\n if (parent.parent._time !== parent._start + (parent._ts >= 0 ? parent._tTime / parent._ts : (parent.totalDuration() - parent._tTime) / -parent._ts)) parent.totalTime(parent._tTime, true);\n parent = parent.parent;\n }\n if (!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && _totalTime < this._tDur || this._ts < 0 && _totalTime > 0 || !this._tDur && !_totalTime)) //if the animation doesn't have a parent, put it back into its last parent (recorded as _dp for exactly cases like this). Limit to parents with autoRemoveChildren (like globalTimeline) so that if the user manually removes an animation from a timeline and then alters its playhead, it doesn't get added back in.\n $21bb7f0d2894673a$var$_addToTimeline(this._dp, this, this._start - this._delay);\n }\n if (this._tTime !== _totalTime || !this._dur && !suppressEvents || this._initted && Math.abs(this._zTime) === $21bb7f0d2894673a$var$_tinyNum || !_totalTime && !this._initted && (this.add || this._ptLookup)) {\n // check for _ptLookup on a Tween instance to ensure it has actually finished being instantiated, otherwise if this.reverse() gets called in the Animation constructor, it could trigger a render() here even though the _targets weren't populated, thus when _init() is called there won't be any PropTweens (it'll act like the tween is non-functional)\n this._ts || (this._pTime = _totalTime); // otherwise, if an animation is paused, then the playhead is moved back to zero, then resumed, it'd revert back to the original time at the pause\n //if (!this._lock) { // avoid endless recursion (not sure we need this yet or if it's worth the performance hit)\n // this._lock = 1;\n $21bb7f0d2894673a$var$_lazySafeRender(this, _totalTime, suppressEvents); // this._lock = 0;\n //}\n }\n return this;\n };\n _proto.time = function time(value, suppressEvents) {\n return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + $21bb7f0d2894673a$var$_elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time; // note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!\n };\n _proto.totalProgress = function totalProgress(value, suppressEvents) {\n return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.ratio;\n };\n _proto.progress = function progress(value, suppressEvents) {\n return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + $21bb7f0d2894673a$var$_elapsedCycleDuration(this), suppressEvents) : this.duration() ? Math.min(1, this._time / this._dur) : this.ratio;\n };\n _proto.iteration = function iteration(value, suppressEvents) {\n var cycleDuration = this.duration() + this._rDelay;\n return arguments.length ? this.totalTime(this._time + (value - 1) * cycleDuration, suppressEvents) : this._repeat ? $21bb7f0d2894673a$var$_animationCycle(this._tTime, cycleDuration) + 1 : 1;\n } // potential future addition:\n ;\n _proto.timeScale = function timeScale(value) {\n if (!arguments.length) return this._rts === -$21bb7f0d2894673a$var$_tinyNum ? 0 : this._rts; // recorded timeScale. Special case: if someone calls reverse() on an animation with timeScale of 0, we assign it -_tinyNum to remember it's reversed.\n if (this._rts === value) return this;\n var tTime = this.parent && this._ts ? $21bb7f0d2894673a$var$_parentToChildTotalTime(this.parent._time, this) : this._tTime; // make sure to do the parentToChildTotalTime() BEFORE setting the new _ts because the old one must be used in that calculation.\n // future addition? Up side: fast and minimal file size. Down side: only works on this animation; if a timeline is reversed, for example, its childrens' onReverse wouldn't get called.\n //(+value < 0 && this._rts >= 0) && _callback(this, \"onReverse\", true);\n // prioritize rendering where the parent's playhead lines up instead of this._tTime because there could be a tween that's animating another tween's timeScale in the same rendering loop (same parent), thus if the timeScale tween renders first, it would alter _start BEFORE _tTime was set on that tick (in the rendering loop), effectively freezing it until the timeScale tween finishes.\n this._rts = +value || 0;\n this._ts = this._ps || value === -$21bb7f0d2894673a$var$_tinyNum ? 0 : this._rts; // _ts is the functional timeScale which would be 0 if the animation is paused.\n this.totalTime($21bb7f0d2894673a$var$_clamp(-Math.abs(this._delay), this._tDur, tTime), true);\n $21bb7f0d2894673a$var$_setEnd(this); // if parent.smoothChildTiming was false, the end time didn't get updated in the _alignPlayhead() method, so do it here.\n return $21bb7f0d2894673a$var$_recacheAncestors(this);\n };\n _proto.paused = function paused(value) {\n if (!arguments.length) return this._ps;\n if (this._ps !== value) {\n this._ps = value;\n if (value) {\n this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()); // if the pause occurs during the delay phase, make sure that's factored in when resuming.\n this._ts = this._act = 0; // _ts is the functional timeScale, so a paused tween would effectively have a timeScale of 0. We record the \"real\" timeScale as _rts (recorded time scale)\n } else {\n $21bb7f0d2894673a$var$_wake();\n this._ts = this._rts; //only defer to _pTime (pauseTime) if tTime is zero. Remember, someone could pause() an animation, then scrub the playhead and resume(). If the parent doesn't have smoothChildTiming, we render at the rawTime() because the startTime won't get updated.\n this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== $21bb7f0d2894673a$var$_tinyNum && (this._tTime -= $21bb7f0d2894673a$var$_tinyNum)); // edge case: animation.progress(1).pause().play() wouldn't render again because the playhead is already at the end, but the call to totalTime() below will add it back to its parent...and not remove it again (since removing only happens upon rendering at a new time). Offsetting the _tTime slightly is done simply to cause the final render in totalTime() that'll pop it off its timeline (if autoRemoveChildren is true, of course). Check to make sure _zTime isn't -_tinyNum to avoid an edge case where the playhead is pushed to the end but INSIDE a tween/callback, the timeline itself is paused thus halting rendering and leaving a few unrendered. When resuming, it wouldn't render those otherwise.\n }\n }\n return this;\n };\n _proto.startTime = function startTime(value) {\n if (arguments.length) {\n this._start = value;\n var parent = this.parent || this._dp;\n parent && (parent._sort || !this.parent) && $21bb7f0d2894673a$var$_addToTimeline(parent, this, value - this._delay);\n return this;\n }\n return this._start;\n };\n _proto.endTime = function endTime(includeRepeats) {\n return this._start + ($21bb7f0d2894673a$var$_isNotFalse(includeRepeats) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);\n };\n _proto.rawTime = function rawTime(wrapRepeats) {\n var parent = this.parent || this._dp; // _dp = detached parent\n return !parent ? this._tTime : wrapRepeats && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : !this._ts ? this._tTime : $21bb7f0d2894673a$var$_parentToChildTotalTime(parent.rawTime(wrapRepeats), this);\n };\n _proto.revert = function revert(config) {\n if (config === void 0) config = $21bb7f0d2894673a$var$_revertConfig;\n var prevIsReverting = $21bb7f0d2894673a$var$_reverting;\n $21bb7f0d2894673a$var$_reverting = config;\n if (this._initted || this._startAt) {\n this.timeline && this.timeline.revert(config);\n this.totalTime(-0.01, config.suppressEvents);\n }\n this.data !== \"nested\" && config.kill !== false && this.kill();\n $21bb7f0d2894673a$var$_reverting = prevIsReverting;\n return this;\n };\n _proto.globalTime = function globalTime(rawTime) {\n var animation = this, time = arguments.length ? rawTime : animation.rawTime();\n while(animation){\n time = animation._start + time / (animation._ts || 1);\n animation = animation._dp;\n }\n return !this.parent && this._sat ? this._sat.vars.immediateRender ? -1 : this._sat.globalTime(rawTime) : time; // the _startAt tweens for .fromTo() and .from() that have immediateRender should always be FIRST in the timeline (important for context.revert()). \"_sat\" stands for _startAtTween, referring to the parent tween that created the _startAt. We must discern if that tween had immediateRender so that we can know whether or not to prioritize it in revert().\n };\n _proto.repeat = function repeat(value) {\n if (arguments.length) {\n this._repeat = value === Infinity ? -2 : value;\n return $21bb7f0d2894673a$var$_onUpdateTotalDuration(this);\n }\n return this._repeat === -2 ? Infinity : this._repeat;\n };\n _proto.repeatDelay = function repeatDelay(value) {\n if (arguments.length) {\n var time = this._time;\n this._rDelay = value;\n $21bb7f0d2894673a$var$_onUpdateTotalDuration(this);\n return time ? this.time(time) : this;\n }\n return this._rDelay;\n };\n _proto.yoyo = function yoyo(value) {\n if (arguments.length) {\n this._yoyo = value;\n return this;\n }\n return this._yoyo;\n };\n _proto.seek = function seek(position, suppressEvents) {\n return this.totalTime($21bb7f0d2894673a$var$_parsePosition(this, position), $21bb7f0d2894673a$var$_isNotFalse(suppressEvents));\n };\n _proto.restart = function restart(includeDelay, suppressEvents) {\n return this.play().totalTime(includeDelay ? -this._delay : 0, $21bb7f0d2894673a$var$_isNotFalse(suppressEvents));\n };\n _proto.play = function play(from, suppressEvents) {\n from != null && this.seek(from, suppressEvents);\n return this.reversed(false).paused(false);\n };\n _proto.reverse = function reverse(from, suppressEvents) {\n from != null && this.seek(from || this.totalDuration(), suppressEvents);\n return this.reversed(true).paused(false);\n };\n _proto.pause = function pause(atTime, suppressEvents) {\n atTime != null && this.seek(atTime, suppressEvents);\n return this.paused(true);\n };\n _proto.resume = function resume() {\n return this.paused(false);\n };\n _proto.reversed = function reversed(value) {\n if (arguments.length) {\n !!value !== this.reversed() && this.timeScale(-this._rts || (value ? -$21bb7f0d2894673a$var$_tinyNum : 0)); // in case timeScale is zero, reversing would have no effect so we use _tinyNum.\n return this;\n }\n return this._rts < 0;\n };\n _proto.invalidate = function invalidate() {\n this._initted = this._act = 0;\n this._zTime = -$21bb7f0d2894673a$var$_tinyNum;\n return this;\n };\n _proto.isActive = function isActive() {\n var parent = this.parent || this._dp, start = this._start, rawTime;\n return !!(!parent || this._ts && this._initted && parent.isActive() && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - $21bb7f0d2894673a$var$_tinyNum);\n };\n _proto.eventCallback = function eventCallback(type, callback, params) {\n var vars = this.vars;\n if (arguments.length > 1) {\n if (!callback) delete vars[type];\n else {\n vars[type] = callback;\n params && (vars[type + \"Params\"] = params);\n type === \"onUpdate\" && (this._onUpdate = callback);\n }\n return this;\n }\n return vars[type];\n };\n _proto.then = function then(onFulfilled) {\n var self = this;\n return new Promise(function(resolve) {\n var f = $21bb7f0d2894673a$var$_isFunction(onFulfilled) ? onFulfilled : $21bb7f0d2894673a$var$_passThrough, _resolve = function _resolve() {\n var _then = self.then;\n self.then = null; // temporarily null the then() method to avoid an infinite loop (see https://github.com/greensock/GSAP/issues/322)\n $21bb7f0d2894673a$var$_isFunction(f) && (f = f(self)) && (f.then || f === self) && (self.then = _then);\n resolve(f);\n self.then = _then;\n };\n if (self._initted && self.totalProgress() === 1 && self._ts >= 0 || !self._tTime && self._ts < 0) _resolve();\n else self._prom = _resolve;\n });\n };\n _proto.kill = function kill() {\n $21bb7f0d2894673a$var$_interrupt(this);\n };\n return Animation;\n}();\n$21bb7f0d2894673a$export$dc2b19673bb53610($21bb7f0d2894673a$export$c35d437ae5945fcd.prototype, {\n _time: 0,\n _start: 0,\n _end: 0,\n _tTime: 0,\n _tDur: 0,\n _dirty: 0,\n _repeat: 0,\n _yoyo: false,\n parent: null,\n _initted: false,\n _rDelay: 0,\n _ts: 1,\n _dp: 0,\n ratio: 0,\n _zTime: -$21bb7f0d2894673a$var$_tinyNum,\n _prom: 0,\n _ps: false,\n _rts: 1\n});\nvar $21bb7f0d2894673a$export$e6a97ba2cae5bb94 = /*#__PURE__*/ function(_Animation) {\n $21bb7f0d2894673a$var$_inheritsLoose(Timeline, _Animation);\n function Timeline(vars, position) {\n var _this;\n if (vars === void 0) vars = {};\n _this = _Animation.call(this, vars) || this;\n _this.labels = {};\n _this.smoothChildTiming = !!vars.smoothChildTiming;\n _this.autoRemoveChildren = !!vars.autoRemoveChildren;\n _this._sort = $21bb7f0d2894673a$var$_isNotFalse(vars.sortChildren);\n $21bb7f0d2894673a$var$_globalTimeline && $21bb7f0d2894673a$var$_addToTimeline(vars.parent || $21bb7f0d2894673a$var$_globalTimeline, $21bb7f0d2894673a$var$_assertThisInitialized(_this), position);\n vars.reversed && _this.reverse();\n vars.paused && _this.paused(true);\n vars.scrollTrigger && $21bb7f0d2894673a$var$_scrollTrigger($21bb7f0d2894673a$var$_assertThisInitialized(_this), vars.scrollTrigger);\n return _this;\n }\n var _proto2 = Timeline.prototype;\n _proto2.to = function to(targets, vars, position) {\n $21bb7f0d2894673a$var$_createTweenType(0, arguments, this);\n return this;\n };\n _proto2.from = function from(targets, vars, position) {\n $21bb7f0d2894673a$var$_createTweenType(1, arguments, this);\n return this;\n };\n _proto2.fromTo = function fromTo(targets, fromVars, toVars, position) {\n $21bb7f0d2894673a$var$_createTweenType(2, arguments, this);\n return this;\n };\n _proto2.set = function set(targets, vars, position) {\n vars.duration = 0;\n vars.parent = this;\n $21bb7f0d2894673a$var$_inheritDefaults(vars).repeatDelay || (vars.repeat = 0);\n vars.immediateRender = !!vars.immediateRender;\n new $21bb7f0d2894673a$export$208a41d6b4e37b97(targets, vars, $21bb7f0d2894673a$var$_parsePosition(this, position), 1);\n return this;\n };\n _proto2.call = function call(callback, params, position) {\n return $21bb7f0d2894673a$var$_addToTimeline(this, $21bb7f0d2894673a$export$208a41d6b4e37b97.delayedCall(0, callback, params), position);\n } //ONLY for backward compatibility! Maybe delete?\n ;\n _proto2.staggerTo = function staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n vars.duration = duration;\n vars.stagger = vars.stagger || stagger;\n vars.onComplete = onCompleteAll;\n vars.onCompleteParams = onCompleteAllParams;\n vars.parent = this;\n new $21bb7f0d2894673a$export$208a41d6b4e37b97(targets, vars, $21bb7f0d2894673a$var$_parsePosition(this, position));\n return this;\n };\n _proto2.staggerFrom = function staggerFrom(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n vars.runBackwards = 1;\n $21bb7f0d2894673a$var$_inheritDefaults(vars).immediateRender = $21bb7f0d2894673a$var$_isNotFalse(vars.immediateRender);\n return this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams);\n };\n _proto2.staggerFromTo = function staggerFromTo(targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams) {\n toVars.startAt = fromVars;\n $21bb7f0d2894673a$var$_inheritDefaults(toVars).immediateRender = $21bb7f0d2894673a$var$_isNotFalse(toVars.immediateRender);\n return this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams);\n };\n _proto2.render = function render(totalTime, suppressEvents, force) {\n var prevTime = this._time, tDur = this._dirty ? this.totalDuration() : this._tDur, dur = this._dur, tTime = totalTime <= 0 ? 0 : $21bb7f0d2894673a$var$_roundPrecise(totalTime), // if a paused timeline is resumed (or its _start is updated for another reason...which rounds it), that could result in the playhead shifting a **tiny** amount and a zero-duration child at that spot may get rendered at a different ratio, like its totalTime in render() may be 1e-17 instead of 0, for example.\n crossingStart = this._zTime < 0 !== totalTime < 0 && (this._initted || !dur), time, child, next, iteration, cycleDuration, prevPaused, pauseTween, timeScale, prevStart, prevIteration, yoyo, isYoyo;\n this !== $21bb7f0d2894673a$var$_globalTimeline && tTime > tDur && totalTime >= 0 && (tTime = tDur);\n if (tTime !== this._tTime || force || crossingStart) {\n if (prevTime !== this._time && dur) {\n //if totalDuration() finds a child with a negative startTime and smoothChildTiming is true, things get shifted around internally so we need to adjust the time accordingly. For example, if a tween starts at -30 we must shift EVERYTHING forward 30 seconds and move this timeline's startTime backward by 30 seconds so that things align with the playhead (no jump).\n tTime += this._time - prevTime;\n totalTime += this._time - prevTime;\n }\n time = tTime;\n prevStart = this._start;\n timeScale = this._ts;\n prevPaused = !timeScale;\n if (crossingStart) {\n dur || (prevTime = this._zTime); //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n (totalTime || !suppressEvents) && (this._zTime = totalTime);\n }\n if (this._repeat) {\n //adjust the time for repeats and yoyos\n yoyo = this._yoyo;\n cycleDuration = dur + this._rDelay;\n if (this._repeat < -1 && totalTime < 0) return this.totalTime(cycleDuration * 100 + totalTime, suppressEvents, force);\n time = $21bb7f0d2894673a$var$_roundPrecise(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n if (tTime === tDur) {\n // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n iteration = this._repeat;\n time = dur;\n } else {\n iteration = ~~(tTime / cycleDuration);\n if (iteration && iteration === tTime / cycleDuration) {\n time = dur;\n iteration--;\n }\n time > dur && (time = dur);\n }\n prevIteration = $21bb7f0d2894673a$var$_animationCycle(this._tTime, cycleDuration);\n !prevTime && this._tTime && prevIteration !== iteration && this._tTime - prevIteration * cycleDuration - this._dur <= 0 && (prevIteration = iteration); // edge case - if someone does addPause() at the very beginning of a repeating timeline, that pause is technically at the same spot as the end which causes this._time to get set to 0 when the totalTime would normally place the playhead at the end. See https://greensock.com/forums/topic/23823-closing-nav-animation-not-working-on-ie-and-iphone-6-maybe-other-older-browser/?tab=comments#comment-113005 also, this._tTime - prevIteration * cycleDuration - this._dur <= 0 just checks to make sure it wasn't previously in the \"repeatDelay\" portion\n if (yoyo && iteration & 1) {\n time = dur - time;\n isYoyo = 1;\n }\n /*\n make sure children at the end/beginning of the timeline are rendered properly. If, for example,\n a 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which\n would get translated to 2.8 seconds if the timeline yoyos or 0.2 seconds if it just repeats), there\n could be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So\n we need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must\n ensure that zero-duration tweens at the very beginning or end of the Timeline work.\n */ if (iteration !== prevIteration && !this._lock) {\n var rewinding = yoyo && prevIteration & 1, doesWrap = rewinding === (yoyo && iteration & 1);\n iteration < prevIteration && (rewinding = !rewinding);\n prevTime = rewinding ? 0 : dur;\n this._lock = 1;\n this.render(prevTime || (isYoyo ? 0 : $21bb7f0d2894673a$var$_roundPrecise(iteration * cycleDuration)), suppressEvents, !dur)._lock = 0;\n this._tTime = tTime; // if a user gets the iteration() inside the onRepeat, for example, it should be accurate.\n !suppressEvents && this.parent && $21bb7f0d2894673a$var$_callback(this, \"onRepeat\");\n this.vars.repeatRefresh && !isYoyo && (this.invalidate()._lock = 1);\n if (prevTime && prevTime !== this._time || prevPaused !== !this._ts || this.vars.onRepeat && !this.parent && !this._act) // if prevTime is 0 and we render at the very end, _time will be the end, thus won't match. So in this edge case, prevTime won't match _time but that's okay. If it gets killed in the onRepeat, eject as well.\n return this;\n dur = this._dur; // in case the duration changed in the onRepeat\n tDur = this._tDur;\n if (doesWrap) {\n this._lock = 2;\n prevTime = rewinding ? dur : -0.0001;\n this.render(prevTime, true);\n this.vars.repeatRefresh && !isYoyo && this.invalidate();\n }\n this._lock = 0;\n if (!this._ts && !prevPaused) return this;\n //in order for yoyoEase to work properly when there's a stagger, we must swap out the ease in each sub-tween.\n $21bb7f0d2894673a$var$_propagateYoyoEase(this, isYoyo);\n }\n }\n if (this._hasPause && !this._forcing && this._lock < 2) {\n pauseTween = $21bb7f0d2894673a$var$_findNextPauseTween(this, $21bb7f0d2894673a$var$_roundPrecise(prevTime), $21bb7f0d2894673a$var$_roundPrecise(time));\n if (pauseTween) tTime -= time - (time = pauseTween._start);\n }\n this._tTime = tTime;\n this._time = time;\n this._act = !timeScale; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n if (!this._initted) {\n this._onUpdate = this.vars.onUpdate;\n this._initted = 1;\n this._zTime = totalTime;\n prevTime = 0; // upon init, the playhead should always go forward; someone could invalidate() a completed timeline and then if they restart(), that would make child tweens render in reverse order which could lock in the wrong starting values if they build on each other, like tl.to(obj, {x: 100}).to(obj, {x: 0}).\n }\n if (!prevTime && time && !suppressEvents && !iteration) {\n $21bb7f0d2894673a$var$_callback(this, \"onStart\");\n if (this._tTime !== tTime) // in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.\n return this;\n }\n if (time >= prevTime && totalTime >= 0) {\n child = this._first;\n while(child){\n next = child._next;\n if ((child._act || time >= child._start) && child._ts && pauseTween !== child) {\n if (child.parent !== this) // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n return this.render(totalTime, suppressEvents, force);\n child.render(child._ts > 0 ? (time - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (time - child._start) * child._ts, suppressEvents, force);\n if (time !== this._time || !this._ts && !prevPaused) {\n //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n pauseTween = 0;\n next && (tTime += this._zTime = -$21bb7f0d2894673a$var$_tinyNum); // it didn't finish rendering, so flag zTime as negative so that so that the next time render() is called it'll be forced (to render any remaining children)\n break;\n }\n }\n child = next;\n }\n } else {\n child = this._last;\n var adjustedTime = totalTime < 0 ? totalTime : time; //when the playhead goes backward beyond the start of this timeline, we must pass that information down to the child animations so that zero-duration tweens know whether to render their starting or ending values.\n while(child){\n next = child._prev;\n if ((child._act || adjustedTime <= child._end) && child._ts && pauseTween !== child) {\n if (child.parent !== this) // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n return this.render(totalTime, suppressEvents, force);\n child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || $21bb7f0d2894673a$var$_reverting && (child._initted || child._startAt)); // if reverting, we should always force renders of initted tweens (but remember that .fromTo() or .from() may have a _startAt but not _initted yet). If, for example, a .fromTo() tween with a stagger (which creates an internal timeline) gets reverted BEFORE some of its child tweens render for the first time, it may not properly trigger them to revert.\n if (time !== this._time || !this._ts && !prevPaused) {\n //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n pauseTween = 0;\n next && (tTime += this._zTime = adjustedTime ? -$21bb7f0d2894673a$var$_tinyNum : $21bb7f0d2894673a$var$_tinyNum); // it didn't finish rendering, so adjust zTime so that so that the next time render() is called it'll be forced (to render any remaining children)\n break;\n }\n }\n child = next;\n }\n }\n if (pauseTween && !suppressEvents) {\n this.pause();\n pauseTween.render(time >= prevTime ? 0 : -$21bb7f0d2894673a$var$_tinyNum)._zTime = time >= prevTime ? 1 : -1;\n if (this._ts) {\n //the callback resumed playback! So since we may have held back the playhead due to where the pause is positioned, go ahead and jump to where it's SUPPOSED to be (if no pause happened).\n this._start = prevStart; //if the pause was at an earlier time and the user resumed in the callback, it could reposition the timeline (changing its startTime), throwing things off slightly, so we make sure the _start doesn't shift.\n $21bb7f0d2894673a$var$_setEnd(this);\n return this.render(totalTime, suppressEvents, force);\n }\n }\n this._onUpdate && !suppressEvents && $21bb7f0d2894673a$var$_callback(this, \"onUpdate\", true);\n if (tTime === tDur && this._tTime >= this.totalDuration() || !tTime && prevTime) {\n if (prevStart === this._start || Math.abs(timeScale) !== Math.abs(this._ts)) {\n if (!this._lock) {\n // remember, a child's callback may alter this timeline's playhead or timeScale which is why we need to add some of these checks.\n (totalTime || !dur) && (tTime === tDur && this._ts > 0 || !tTime && this._ts < 0) && $21bb7f0d2894673a$var$_removeFromParent(this, 1); // don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n if (!suppressEvents && !(totalTime < 0 && !prevTime) && (tTime || prevTime || !tDur)) {\n $21bb7f0d2894673a$var$_callback(this, tTime === tDur && totalTime >= 0 ? \"onComplete\" : \"onReverseComplete\", true);\n this._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n }\n }\n }\n }\n }\n return this;\n };\n _proto2.add = function add(child, position) {\n var _this2 = this;\n $21bb7f0d2894673a$var$_isNumber(position) || (position = $21bb7f0d2894673a$var$_parsePosition(this, position, child));\n if (!(child instanceof $21bb7f0d2894673a$export$c35d437ae5945fcd)) {\n if ($21bb7f0d2894673a$var$_isArray(child)) {\n child.forEach(function(obj) {\n return _this2.add(obj, position);\n });\n return this;\n }\n if ($21bb7f0d2894673a$export$f664476fd67145ca(child)) return this.addLabel(child, position);\n if ($21bb7f0d2894673a$var$_isFunction(child)) child = $21bb7f0d2894673a$export$208a41d6b4e37b97.delayedCall(0, child);\n else return this;\n }\n return this !== child ? $21bb7f0d2894673a$var$_addToTimeline(this, child, position) : this; //don't allow a timeline to be added to itself as a child!\n };\n _proto2.getChildren = function getChildren(nested, tweens, timelines, ignoreBeforeTime) {\n if (nested === void 0) nested = true;\n if (tweens === void 0) tweens = true;\n if (timelines === void 0) timelines = true;\n if (ignoreBeforeTime === void 0) ignoreBeforeTime = -$21bb7f0d2894673a$var$_bigNum;\n var a = [], child = this._first;\n while(child){\n if (child._start >= ignoreBeforeTime) {\n if (child instanceof $21bb7f0d2894673a$export$208a41d6b4e37b97) tweens && a.push(child);\n else {\n timelines && a.push(child);\n nested && a.push.apply(a, child.getChildren(true, tweens, timelines));\n }\n }\n child = child._next;\n }\n return a;\n };\n _proto2.getById = function getById(id) {\n var animations = this.getChildren(1, 1, 1), i = animations.length;\n while(i--){\n if (animations[i].vars.id === id) return animations[i];\n }\n };\n _proto2.remove = function remove(child) {\n if ($21bb7f0d2894673a$export$f664476fd67145ca(child)) return this.removeLabel(child);\n if ($21bb7f0d2894673a$var$_isFunction(child)) return this.killTweensOf(child);\n $21bb7f0d2894673a$export$cd008aa6cd8844e3(this, child);\n if (child === this._recent) this._recent = this._last;\n return $21bb7f0d2894673a$var$_uncache(this);\n };\n _proto2.totalTime = function totalTime(_totalTime2, suppressEvents) {\n if (!arguments.length) return this._tTime;\n this._forcing = 1;\n if (!this._dp && this._ts) //special case for the global timeline (or any other that has no parent or detached parent).\n this._start = $21bb7f0d2894673a$var$_roundPrecise($21bb7f0d2894673a$export$762ed8fbedb691e3.time - (this._ts > 0 ? _totalTime2 / this._ts : (this.totalDuration() - _totalTime2) / -this._ts));\n _Animation.prototype.totalTime.call(this, _totalTime2, suppressEvents);\n this._forcing = 0;\n return this;\n };\n _proto2.addLabel = function addLabel(label, position) {\n this.labels[label] = $21bb7f0d2894673a$var$_parsePosition(this, position);\n return this;\n };\n _proto2.removeLabel = function removeLabel(label) {\n delete this.labels[label];\n return this;\n };\n _proto2.addPause = function addPause(position, callback, params) {\n var t = $21bb7f0d2894673a$export$208a41d6b4e37b97.delayedCall(0, callback || $21bb7f0d2894673a$var$_emptyFunc, params);\n t.data = \"isPause\";\n this._hasPause = 1;\n return $21bb7f0d2894673a$var$_addToTimeline(this, t, $21bb7f0d2894673a$var$_parsePosition(this, position));\n };\n _proto2.removePause = function removePause(position) {\n var child = this._first;\n position = $21bb7f0d2894673a$var$_parsePosition(this, position);\n while(child){\n if (child._start === position && child.data === \"isPause\") $21bb7f0d2894673a$var$_removeFromParent(child);\n child = child._next;\n }\n };\n _proto2.killTweensOf = function killTweensOf(targets, props, onlyActive) {\n var tweens = this.getTweensOf(targets, onlyActive), i = tweens.length;\n while(i--)$21bb7f0d2894673a$var$_overwritingTween !== tweens[i] && tweens[i].kill(targets, props);\n return this;\n };\n _proto2.getTweensOf = function getTweensOf(targets, onlyActive) {\n var a = [], parsedTargets = $21bb7f0d2894673a$export$45b10814cc054894(targets), child = this._first, isGlobalTime = $21bb7f0d2894673a$var$_isNumber(onlyActive), // a number is interpreted as a global time. If the animation spans\n children;\n while(child){\n if (child instanceof $21bb7f0d2894673a$export$208a41d6b4e37b97) {\n if ($21bb7f0d2894673a$var$_arrayContainsAny(child._targets, parsedTargets) && (isGlobalTime ? (!$21bb7f0d2894673a$var$_overwritingTween || child._initted && child._ts) && child.globalTime(0) <= onlyActive && child.globalTime(child.totalDuration()) > onlyActive : !onlyActive || child.isActive())) // note: if this is for overwriting, it should only be for tweens that aren't paused and are initted.\n a.push(child);\n } else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) a.push.apply(a, children);\n child = child._next;\n }\n return a;\n } // potential future feature - targets() on timelines\n ;\n _proto2.tweenTo = function tweenTo(position, vars) {\n vars = vars || {};\n var tl = this, endTime = $21bb7f0d2894673a$var$_parsePosition(tl, position), _vars = vars, startAt = _vars.startAt, _onStart = _vars.onStart, onStartParams = _vars.onStartParams, immediateRender = _vars.immediateRender, initted, tween = $21bb7f0d2894673a$export$208a41d6b4e37b97.to(tl, $21bb7f0d2894673a$export$dc2b19673bb53610({\n ease: vars.ease || \"none\",\n lazy: false,\n immediateRender: false,\n time: endTime,\n overwrite: \"auto\",\n duration: vars.duration || Math.abs((endTime - (startAt && \"time\" in startAt ? startAt.time : tl._time)) / tl.timeScale()) || $21bb7f0d2894673a$var$_tinyNum,\n onStart: function onStart() {\n tl.pause();\n if (!initted) {\n var duration = vars.duration || Math.abs((endTime - (startAt && \"time\" in startAt ? startAt.time : tl._time)) / tl.timeScale());\n tween._dur !== duration && $21bb7f0d2894673a$var$_setDuration(tween, duration, 0, 1).render(tween._time, true, true);\n initted = 1;\n }\n _onStart && _onStart.apply(tween, onStartParams || []); //in case the user had an onStart in the vars - we don't want to overwrite it.\n }\n }, vars));\n return immediateRender ? tween.render(0) : tween;\n };\n _proto2.tweenFromTo = function tweenFromTo(fromPosition, toPosition, vars) {\n return this.tweenTo(toPosition, $21bb7f0d2894673a$export$dc2b19673bb53610({\n startAt: {\n time: $21bb7f0d2894673a$var$_parsePosition(this, fromPosition)\n }\n }, vars));\n };\n _proto2.recent = function recent() {\n return this._recent;\n };\n _proto2.nextLabel = function nextLabel(afterTime) {\n if (afterTime === void 0) afterTime = this._time;\n return $21bb7f0d2894673a$var$_getLabelInDirection(this, $21bb7f0d2894673a$var$_parsePosition(this, afterTime));\n };\n _proto2.previousLabel = function previousLabel(beforeTime) {\n if (beforeTime === void 0) beforeTime = this._time;\n return $21bb7f0d2894673a$var$_getLabelInDirection(this, $21bb7f0d2894673a$var$_parsePosition(this, beforeTime), 1);\n };\n _proto2.currentLabel = function currentLabel(value) {\n return arguments.length ? this.seek(value, true) : this.previousLabel(this._time + $21bb7f0d2894673a$var$_tinyNum);\n };\n _proto2.shiftChildren = function shiftChildren(amount, adjustLabels, ignoreBeforeTime) {\n if (ignoreBeforeTime === void 0) ignoreBeforeTime = 0;\n var child = this._first, labels = this.labels, p;\n while(child){\n if (child._start >= ignoreBeforeTime) {\n child._start += amount;\n child._end += amount;\n }\n child = child._next;\n }\n if (adjustLabels) {\n for(p in labels)if (labels[p] >= ignoreBeforeTime) labels[p] += amount;\n }\n return $21bb7f0d2894673a$var$_uncache(this);\n };\n _proto2.invalidate = function invalidate(soft) {\n var child = this._first;\n this._lock = 0;\n while(child){\n child.invalidate(soft);\n child = child._next;\n }\n return _Animation.prototype.invalidate.call(this, soft);\n };\n _proto2.clear = function clear(includeLabels) {\n if (includeLabels === void 0) includeLabels = true;\n var child = this._first, next;\n while(child){\n next = child._next;\n this.remove(child);\n child = next;\n }\n this._dp && (this._time = this._tTime = this._pTime = 0);\n includeLabels && (this.labels = {});\n return $21bb7f0d2894673a$var$_uncache(this);\n };\n _proto2.totalDuration = function totalDuration(value) {\n var max = 0, self = this, child = self._last, prevStart = $21bb7f0d2894673a$var$_bigNum, prev, start, parent;\n if (arguments.length) return self.timeScale((self._repeat < 0 ? self.duration() : self.totalDuration()) / (self.reversed() ? -value : value));\n if (self._dirty) {\n parent = self.parent;\n while(child){\n prev = child._prev; //record it here in case the tween changes position in the sequence...\n child._dirty && child.totalDuration(); //could change the tween._startTime, so make sure the animation's cache is clean before analyzing it.\n start = child._start;\n if (start > prevStart && self._sort && child._ts && !self._lock) {\n //in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence\n self._lock = 1; //prevent endless recursive calls - there are methods that get triggered that check duration/totalDuration when we add().\n $21bb7f0d2894673a$var$_addToTimeline(self, child, start - child._delay, 1)._lock = 0;\n } else prevStart = start;\n if (start < 0 && child._ts) {\n //children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.\n max -= start;\n if (!parent && !self._dp || parent && parent.smoothChildTiming) {\n self._start += start / self._ts;\n self._time -= start;\n self._tTime -= start;\n }\n self.shiftChildren(-start, false, -Infinity);\n prevStart = 0;\n }\n child._end > max && child._ts && (max = child._end);\n child = prev;\n }\n $21bb7f0d2894673a$var$_setDuration(self, self === $21bb7f0d2894673a$var$_globalTimeline && self._time > max ? self._time : max, 1, 1);\n self._dirty = 0;\n }\n return self._tDur;\n };\n Timeline.updateRoot = function updateRoot(time) {\n if ($21bb7f0d2894673a$var$_globalTimeline._ts) {\n $21bb7f0d2894673a$var$_lazySafeRender($21bb7f0d2894673a$var$_globalTimeline, $21bb7f0d2894673a$var$_parentToChildTotalTime(time, $21bb7f0d2894673a$var$_globalTimeline));\n $21bb7f0d2894673a$var$_lastRenderedFrame = $21bb7f0d2894673a$export$762ed8fbedb691e3.frame;\n }\n if ($21bb7f0d2894673a$export$762ed8fbedb691e3.frame >= $21bb7f0d2894673a$var$_nextGCFrame) {\n $21bb7f0d2894673a$var$_nextGCFrame += $21bb7f0d2894673a$export$4922bee768729a77.autoSleep || 120;\n var child = $21bb7f0d2894673a$var$_globalTimeline._first;\n if (!child || !child._ts) {\n if ($21bb7f0d2894673a$export$4922bee768729a77.autoSleep && $21bb7f0d2894673a$export$762ed8fbedb691e3._listeners.length < 2) {\n while(child && !child._ts)child = child._next;\n child || $21bb7f0d2894673a$export$762ed8fbedb691e3.sleep();\n }\n }\n }\n };\n return Timeline;\n}($21bb7f0d2894673a$export$c35d437ae5945fcd);\n$21bb7f0d2894673a$export$dc2b19673bb53610($21bb7f0d2894673a$export$e6a97ba2cae5bb94.prototype, {\n _lock: 0,\n _hasPause: 0,\n _forcing: 0\n});\nvar $21bb7f0d2894673a$var$_addComplexStringPropTween = function _addComplexStringPropTween(target, prop, start, end, setter, stringFilter, funcParam) {\n //note: we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n var pt = new $21bb7f0d2894673a$export$3a67f7f44b1e838a(this._pt, target, prop, 0, 1, $21bb7f0d2894673a$export$c5bc8e04394ecb2, null, setter), index = 0, matchIndex = 0, result, startNums, color, endNum, chunk, startNum, hasRandom, a;\n pt.b = start;\n pt.e = end;\n start += \"\"; //ensure values are strings\n end += \"\";\n if (hasRandom = ~end.indexOf(\"random(\")) end = $21bb7f0d2894673a$export$d5962a97e3cde94d(end);\n if (stringFilter) {\n a = [\n start,\n end\n ];\n stringFilter(a, target, prop); //pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n start = a[0];\n end = a[1];\n }\n startNums = start.match($21bb7f0d2894673a$var$_complexStringNumExp) || [];\n while(result = $21bb7f0d2894673a$var$_complexStringNumExp.exec(end)){\n endNum = result[0];\n chunk = end.substring(index, result.index);\n if (color) color = (color + 1) % 5;\n else if (chunk.substr(-5) === \"rgba(\") color = 1;\n if (endNum !== startNums[matchIndex++]) {\n startNum = parseFloat(startNums[matchIndex - 1]) || 0; //these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n pt._pt = {\n _next: pt._pt,\n p: chunk || matchIndex === 1 ? chunk : \",\",\n //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n s: startNum,\n c: endNum.charAt(1) === \"=\" ? $21bb7f0d2894673a$export$dac762bc6301b560(startNum, endNum) - startNum : parseFloat(endNum) - startNum,\n m: color && color < 4 ? Math.round : 0\n };\n index = $21bb7f0d2894673a$var$_complexStringNumExp.lastIndex;\n }\n }\n pt.c = index < end.length ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n pt.fp = funcParam;\n if ($21bb7f0d2894673a$export$5a680e28b0b61bc.test(end) || hasRandom) pt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n this._pt = pt; //start the linked list with this new PropTween. Remember, we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n return pt;\n}, $21bb7f0d2894673a$var$_addPropTween = function _addPropTween(target, prop, start, end, index, targets, modifier, stringFilter, funcParam, optional) {\n $21bb7f0d2894673a$var$_isFunction(end) && (end = end(index || 0, target, targets));\n var currentValue = target[prop], parsedStart = start !== \"get\" ? start : !$21bb7f0d2894673a$var$_isFunction(currentValue) ? currentValue : funcParam ? target[prop.indexOf(\"set\") || !$21bb7f0d2894673a$var$_isFunction(target[\"get\" + prop.substr(3)]) ? prop : \"get\" + prop.substr(3)](funcParam) : target[prop](), setter = !$21bb7f0d2894673a$var$_isFunction(currentValue) ? $21bb7f0d2894673a$var$_setterPlain : funcParam ? $21bb7f0d2894673a$var$_setterFuncWithParam : $21bb7f0d2894673a$var$_setterFunc, pt;\n if ($21bb7f0d2894673a$export$f664476fd67145ca(end)) {\n if (~end.indexOf(\"random(\")) end = $21bb7f0d2894673a$export$d5962a97e3cde94d(end);\n if (end.charAt(1) === \"=\") {\n pt = $21bb7f0d2894673a$export$dac762bc6301b560(parsedStart, end) + ($21bb7f0d2894673a$export$65f2564e9a9b9222(parsedStart) || 0);\n if (pt || pt === 0) // to avoid isNaN, like if someone passes in a value like \"!= whatever\"\n end = pt;\n }\n }\n if (!optional || parsedStart !== end || $21bb7f0d2894673a$var$_forceAllPropTweens) {\n if (!isNaN(parsedStart * end) && end !== \"\") {\n // fun fact: any number multiplied by \"\" is evaluated as the number 0!\n pt = new $21bb7f0d2894673a$export$3a67f7f44b1e838a(this._pt, target, prop, +parsedStart || 0, end - (parsedStart || 0), typeof currentValue === \"boolean\" ? $21bb7f0d2894673a$var$_renderBoolean : $21bb7f0d2894673a$var$_renderPlain, 0, setter);\n funcParam && (pt.fp = funcParam);\n modifier && pt.modifier(modifier, this, target);\n return this._pt = pt;\n }\n !currentValue && !(prop in target) && $21bb7f0d2894673a$export$7fb54635790b59a5(prop, end);\n return $21bb7f0d2894673a$var$_addComplexStringPropTween.call(this, target, prop, parsedStart, end, setter, stringFilter || $21bb7f0d2894673a$export$4922bee768729a77.stringFilter, funcParam);\n }\n}, //creates a copy of the vars object and processes any function-based values (putting the resulting values directly into the copy) as well as strings with \"random()\" in them. It does NOT process relative values.\n$21bb7f0d2894673a$var$_processVars = function _processVars(vars, index, target, targets, tween) {\n $21bb7f0d2894673a$var$_isFunction(vars) && (vars = $21bb7f0d2894673a$var$_parseFuncOrString(vars, tween, index, target, targets));\n if (!$21bb7f0d2894673a$var$_isObject(vars) || vars.style && vars.nodeType || $21bb7f0d2894673a$var$_isArray(vars) || $21bb7f0d2894673a$var$_isTypedArray(vars)) return $21bb7f0d2894673a$export$f664476fd67145ca(vars) ? $21bb7f0d2894673a$var$_parseFuncOrString(vars, tween, index, target, targets) : vars;\n var copy = {}, p;\n for(p in vars)copy[p] = $21bb7f0d2894673a$var$_parseFuncOrString(vars[p], tween, index, target, targets);\n return copy;\n}, $21bb7f0d2894673a$export$5c457b74208010cf = function _checkPlugin(property, vars, tween, index, target, targets) {\n var plugin, pt, ptLookup, i;\n if ($21bb7f0d2894673a$export$d305d8ec5d7c26b8[property] && (plugin = new $21bb7f0d2894673a$export$d305d8ec5d7c26b8[property]()).init(target, plugin.rawVars ? vars[property] : $21bb7f0d2894673a$var$_processVars(vars[property], index, target, targets, tween), tween, index, targets) !== false) {\n tween._pt = pt = new $21bb7f0d2894673a$export$3a67f7f44b1e838a(tween._pt, target, property, 0, 1, plugin.render, plugin, 0, plugin.priority);\n if (tween !== $21bb7f0d2894673a$var$_quickTween) {\n ptLookup = tween._ptLookup[tween._targets.indexOf(target)]; //note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.\n i = plugin._props.length;\n while(i--)ptLookup[plugin._props[i]] = pt;\n }\n }\n return plugin;\n}, $21bb7f0d2894673a$var$_overwritingTween, //store a reference temporarily so we can avoid overwriting itself.\n$21bb7f0d2894673a$var$_forceAllPropTweens, $21bb7f0d2894673a$var$_initTween = function _initTween(tween, time, tTime) {\n var vars = tween.vars, ease = vars.ease, startAt = vars.startAt, immediateRender = vars.immediateRender, lazy = vars.lazy, onUpdate = vars.onUpdate, onUpdateParams = vars.onUpdateParams, callbackScope = vars.callbackScope, runBackwards = vars.runBackwards, yoyoEase = vars.yoyoEase, keyframes = vars.keyframes, autoRevert = vars.autoRevert, dur = tween._dur, prevStartAt = tween._startAt, targets = tween._targets, parent = tween.parent, fullTargets = parent && parent.data === \"nested\" ? parent.vars.targets : targets, autoOverwrite = tween._overwrite === \"auto\" && !$21bb7f0d2894673a$var$_suppressOverwrites, tl = tween.timeline, cleanVars, i, p, pt, target, hasPriority, gsData, harness, plugin, ptLookup, index, harnessVars, overwritten;\n tl && (!keyframes || !ease) && (ease = \"none\");\n tween._ease = $21bb7f0d2894673a$var$_parseEase(ease, $21bb7f0d2894673a$var$_defaults.ease);\n tween._yEase = yoyoEase ? $21bb7f0d2894673a$var$_invertEase($21bb7f0d2894673a$var$_parseEase(yoyoEase === true ? ease : yoyoEase, $21bb7f0d2894673a$var$_defaults.ease)) : 0;\n if (yoyoEase && tween._yoyo && !tween._repeat) {\n //there must have been a parent timeline with yoyo:true that is currently in its yoyo phase, so flip the eases.\n yoyoEase = tween._yEase;\n tween._yEase = tween._ease;\n tween._ease = yoyoEase;\n }\n tween._from = !tl && !!vars.runBackwards; //nested timelines should never run backwards - the backwards-ness is in the child tweens.\n if (!tl || keyframes && !vars.stagger) {\n //if there's an internal timeline, skip all the parsing because we passed that task down the chain.\n harness = targets[0] ? $21bb7f0d2894673a$export$8b9be379d2de2a39(targets[0]).harness : 0;\n harnessVars = harness && vars[harness.prop]; //someone may need to specify CSS-specific values AND non-CSS values, like if the element has an \"x\" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.\n cleanVars = $21bb7f0d2894673a$var$_copyExcluding(vars, $21bb7f0d2894673a$var$_reservedProps);\n if (prevStartAt) {\n prevStartAt._zTime < 0 && prevStartAt.progress(1); // in case it's a lazy startAt that hasn't rendered yet.\n time < 0 && runBackwards && immediateRender && !autoRevert ? prevStartAt.render(-1, true) : prevStartAt.revert(runBackwards && dur ? $21bb7f0d2894673a$var$_revertConfigNoKill : $21bb7f0d2894673a$var$_startAtRevertConfig); // if it's a \"startAt\" (not \"from()\" or runBackwards: true), we only need to do a shallow revert (keep transforms cached in CSSPlugin)\n // don't just _removeFromParent(prevStartAt.render(-1, true)) because that'll leave inline styles. We're creating a new _startAt for \"startAt\" tweens that re-capture things to ensure that if the pre-tween values changed since the tween was created, they're recorded.\n prevStartAt._lazy = 0;\n }\n if (startAt) {\n $21bb7f0d2894673a$var$_removeFromParent(tween._startAt = $21bb7f0d2894673a$export$208a41d6b4e37b97.set(targets, $21bb7f0d2894673a$export$dc2b19673bb53610({\n data: \"isStart\",\n overwrite: false,\n parent: parent,\n immediateRender: true,\n lazy: !prevStartAt && $21bb7f0d2894673a$var$_isNotFalse(lazy),\n startAt: null,\n delay: 0,\n onUpdate: onUpdate,\n onUpdateParams: onUpdateParams,\n callbackScope: callbackScope,\n stagger: 0\n }, startAt))); //copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, from, to).fromTo(e, to, from);\n tween._startAt._dp = 0; // don't allow it to get put back into root timeline! Like when revert() is called and totalTime() gets set.\n tween._startAt._sat = tween; // used in globalTime(). _sat stands for _startAtTween\n time < 0 && ($21bb7f0d2894673a$var$_reverting || !immediateRender && !autoRevert) && tween._startAt.revert($21bb7f0d2894673a$var$_revertConfigNoKill); // rare edge case, like if a render is forced in the negative direction of a non-initted tween.\n if (immediateRender) {\n if (dur && time <= 0 && tTime <= 0) {\n // check tTime here because in the case of a yoyo tween whose playhead gets pushed to the end like tween.progress(1), we should allow it through so that the onComplete gets fired properly.\n time && (tween._zTime = time);\n return; //we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a Timeline, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.\n }\n }\n } else if (runBackwards && dur) //from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)\n {\n if (!prevStartAt) {\n time && (immediateRender = false); //in rare cases (like if a from() tween runs and then is invalidate()-ed), immediateRender could be true but the initial forced-render gets skipped, so there's no need to force the render in this context when the _time is greater than 0\n p = $21bb7f0d2894673a$export$dc2b19673bb53610({\n overwrite: false,\n data: \"isFromStart\",\n //we tag the tween with as \"isFromStart\" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a \"from()\" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:\"height\", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.\n lazy: immediateRender && !prevStartAt && $21bb7f0d2894673a$var$_isNotFalse(lazy),\n immediateRender: immediateRender,\n //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)\n stagger: 0,\n parent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(\".class\", {y:gsap.utils.wrap([-100,100])})\n }, cleanVars);\n harnessVars && (p[harness.prop] = harnessVars); // in case someone does something like .from(..., {css:{}})\n $21bb7f0d2894673a$var$_removeFromParent(tween._startAt = $21bb7f0d2894673a$export$208a41d6b4e37b97.set(targets, p));\n tween._startAt._dp = 0; // don't allow it to get put back into root timeline!\n tween._startAt._sat = tween; // used in globalTime()\n time < 0 && ($21bb7f0d2894673a$var$_reverting ? tween._startAt.revert($21bb7f0d2894673a$var$_revertConfigNoKill) : tween._startAt.render(-1, true));\n tween._zTime = time;\n if (!immediateRender) _initTween(tween._startAt, $21bb7f0d2894673a$var$_tinyNum, $21bb7f0d2894673a$var$_tinyNum); //ensures that the initial values are recorded\n else if (!time) return;\n }\n }\n tween._pt = tween._ptCache = 0;\n lazy = dur && $21bb7f0d2894673a$var$_isNotFalse(lazy) || lazy && !dur;\n for(i = 0; i < targets.length; i++){\n target = targets[i];\n gsData = target._gsap || $21bb7f0d2894673a$var$_harness(targets)[i]._gsap;\n tween._ptLookup[i] = ptLookup = {};\n $21bb7f0d2894673a$var$_lazyLookup[gsData.id] && $21bb7f0d2894673a$var$_lazyTweens.length && $21bb7f0d2894673a$var$_lazyRender(); //if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)\n index = fullTargets === targets ? i : fullTargets.indexOf(target);\n if (harness && (plugin = new harness()).init(target, harnessVars || cleanVars, tween, index, fullTargets) !== false) {\n tween._pt = pt = new $21bb7f0d2894673a$export$3a67f7f44b1e838a(tween._pt, target, plugin.name, 0, 1, plugin.render, plugin, 0, plugin.priority);\n plugin._props.forEach(function(name) {\n ptLookup[name] = pt;\n });\n plugin.priority && (hasPriority = 1);\n }\n if (!harness || harnessVars) {\n for(p in cleanVars)if ($21bb7f0d2894673a$export$d305d8ec5d7c26b8[p] && (plugin = $21bb7f0d2894673a$export$5c457b74208010cf(p, cleanVars, tween, index, target, fullTargets))) plugin.priority && (hasPriority = 1);\n else ptLookup[p] = pt = $21bb7f0d2894673a$var$_addPropTween.call(tween, target, p, \"get\", cleanVars[p], index, fullTargets, 0, vars.stringFilter);\n }\n tween._op && tween._op[i] && tween.kill(target, tween._op[i]);\n if (autoOverwrite && tween._pt) {\n $21bb7f0d2894673a$var$_overwritingTween = tween;\n $21bb7f0d2894673a$var$_globalTimeline.killTweensOf(target, ptLookup, tween.globalTime(time)); // make sure the overwriting doesn't overwrite THIS tween!!!\n overwritten = !tween.parent;\n $21bb7f0d2894673a$var$_overwritingTween = 0;\n }\n tween._pt && lazy && ($21bb7f0d2894673a$var$_lazyLookup[gsData.id] = 1);\n }\n hasPriority && $21bb7f0d2894673a$export$eed5824f53346d57(tween);\n tween._onInit && tween._onInit(tween); //plugins like RoundProps must wait until ALL of the PropTweens are instantiated. In the plugin's init() function, it sets the _onInit on the tween instance. May not be pretty/intuitive, but it's fast and keeps file size down.\n }\n tween._onUpdate = onUpdate;\n tween._initted = (!tween._op || tween._pt) && !overwritten; // if overwrittenProps resulted in the entire tween being killed, do NOT flag it as initted or else it may render for one tick.\n keyframes && time <= 0 && tl.render($21bb7f0d2894673a$var$_bigNum, true, true); // if there's a 0% keyframe, it'll render in the \"before\" state for any staggered/delayed animations thus when the following tween initializes, it'll use the \"before\" state instead of the \"after\" state as the initial values.\n}, $21bb7f0d2894673a$var$_updatePropTweens = function _updatePropTweens(tween, property, value, start, startIsRelative, ratio, time) {\n var ptCache = (tween._pt && tween._ptCache || (tween._ptCache = {}))[property], pt, rootPT, lookup, i;\n if (!ptCache) {\n ptCache = tween._ptCache[property] = [];\n lookup = tween._ptLookup;\n i = tween._targets.length;\n while(i--){\n pt = lookup[i][property];\n if (pt && pt.d && pt.d._pt) {\n // it's a plugin, so find the nested PropTween\n pt = pt.d._pt;\n while(pt && pt.p !== property && pt.fp !== property)// \"fp\" is functionParam for things like setting CSS variables which require .setProperty(\"--var-name\", value)\n pt = pt._next;\n }\n if (!pt) {\n // there is no PropTween associated with that property, so we must FORCE one to be created and ditch out of this\n // if the tween has other properties that already rendered at new positions, we'd normally have to rewind to put them back like tween.render(0, true) before forcing an _initTween(), but that can create another edge case like tweening a timeline's progress would trigger onUpdates to fire which could move other things around. It's better to just inform users that .resetTo() should ONLY be used for tweens that already have that property. For example, you can't gsap.to(...{ y: 0 }) and then tween.restTo(\"x\", 200) for example.\n $21bb7f0d2894673a$var$_forceAllPropTweens = 1; // otherwise, when we _addPropTween() and it finds no change between the start and end values, it skips creating a PropTween (for efficiency...why tween when there's no difference?) but in this case we NEED that PropTween created so we can edit it.\n tween.vars[property] = \"+=0\";\n $21bb7f0d2894673a$var$_initTween(tween, time);\n $21bb7f0d2894673a$var$_forceAllPropTweens = 0;\n return 1;\n }\n ptCache.push(pt);\n }\n }\n i = ptCache.length;\n while(i--){\n rootPT = ptCache[i];\n pt = rootPT._pt || rootPT; // complex values may have nested PropTweens. We only accommodate the FIRST value.\n pt.s = (start || start === 0) && !startIsRelative ? start : pt.s + (start || 0) + ratio * pt.c;\n pt.c = value - pt.s;\n rootPT.e && (rootPT.e = $21bb7f0d2894673a$export$9c8d725d65e13f94(value) + $21bb7f0d2894673a$export$65f2564e9a9b9222(rootPT.e)); // mainly for CSSPlugin (end value)\n rootPT.b && (rootPT.b = pt.s + $21bb7f0d2894673a$export$65f2564e9a9b9222(rootPT.b)); // (beginning value)\n }\n}, $21bb7f0d2894673a$var$_addAliasesToVars = function _addAliasesToVars(targets, vars) {\n var harness = targets[0] ? $21bb7f0d2894673a$export$8b9be379d2de2a39(targets[0]).harness : 0, propertyAliases = harness && harness.aliases, copy, p, i, aliases;\n if (!propertyAliases) return vars;\n copy = $21bb7f0d2894673a$var$_merge({}, vars);\n for(p in propertyAliases)if (p in copy) {\n aliases = propertyAliases[p].split(\",\");\n i = aliases.length;\n while(i--)copy[aliases[i]] = copy[p];\n }\n return copy;\n}, // parses multiple formats, like {\"0%\": {x: 100}, {\"50%\": {x: -20}} and { x: {\"0%\": 100, \"50%\": -20} }, and an \"ease\" can be set on any object. We populate an \"allProps\" object with an Array for each property, like {x: [{}, {}], y:[{}, {}]} with data for each property tween. The objects have a \"t\" (time), \"v\", (value), and \"e\" (ease) property. This allows us to piece together a timeline later.\n$21bb7f0d2894673a$var$_parseKeyframe = function _parseKeyframe(prop, obj, allProps, easeEach) {\n var ease = obj.ease || easeEach || \"power1.inOut\", p, a;\n if ($21bb7f0d2894673a$var$_isArray(obj)) {\n a = allProps[prop] || (allProps[prop] = []); // t = time (out of 100), v = value, e = ease\n obj.forEach(function(value, i) {\n return a.push({\n t: i / (obj.length - 1) * 100,\n v: value,\n e: ease\n });\n });\n } else for(p in obj){\n a = allProps[p] || (allProps[p] = []);\n p === \"ease\" || a.push({\n t: parseFloat(prop),\n v: obj[p],\n e: ease\n });\n }\n}, $21bb7f0d2894673a$var$_parseFuncOrString = function _parseFuncOrString(value, tween, i, target, targets) {\n return $21bb7f0d2894673a$var$_isFunction(value) ? value.call(tween, i, target, targets) : $21bb7f0d2894673a$export$f664476fd67145ca(value) && ~value.indexOf(\"random(\") ? $21bb7f0d2894673a$export$d5962a97e3cde94d(value) : value;\n}, $21bb7f0d2894673a$var$_staggerTweenProps = $21bb7f0d2894673a$var$_callbackNames + \"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert\", $21bb7f0d2894673a$var$_staggerPropsToSkip = {};\n$21bb7f0d2894673a$export$f9000b814859f126($21bb7f0d2894673a$var$_staggerTweenProps + \",id,stagger,delay,duration,paused,scrollTrigger\", function(name) {\n return $21bb7f0d2894673a$var$_staggerPropsToSkip[name] = 1;\n});\nvar $21bb7f0d2894673a$export$208a41d6b4e37b97 = /*#__PURE__*/ function(_Animation2) {\n $21bb7f0d2894673a$var$_inheritsLoose(Tween, _Animation2);\n function Tween(targets, vars, position, skipInherit) {\n var _this3;\n if (typeof vars === \"number\") {\n position.duration = vars;\n vars = position;\n position = null;\n }\n _this3 = _Animation2.call(this, skipInherit ? vars : $21bb7f0d2894673a$var$_inheritDefaults(vars)) || this;\n var _this3$vars = _this3.vars, duration = _this3$vars.duration, delay = _this3$vars.delay, immediateRender = _this3$vars.immediateRender, stagger = _this3$vars.stagger, overwrite = _this3$vars.overwrite, keyframes = _this3$vars.keyframes, defaults = _this3$vars.defaults, scrollTrigger = _this3$vars.scrollTrigger, yoyoEase = _this3$vars.yoyoEase, parent = vars.parent || $21bb7f0d2894673a$var$_globalTimeline, parsedTargets = ($21bb7f0d2894673a$var$_isArray(targets) || $21bb7f0d2894673a$var$_isTypedArray(targets) ? $21bb7f0d2894673a$var$_isNumber(targets[0]) : \"length\" in vars) ? [\n targets\n ] : $21bb7f0d2894673a$export$45b10814cc054894(targets), tl, i, copy, l, p, curTarget, staggerFunc, staggerVarsToMerge;\n _this3._targets = parsedTargets.length ? $21bb7f0d2894673a$var$_harness(parsedTargets) : $21bb7f0d2894673a$var$_warn(\"GSAP target \" + targets + \" not found. https://greensock.com\", !$21bb7f0d2894673a$export$4922bee768729a77.nullTargetWarn) || [];\n _this3._ptLookup = []; //PropTween lookup. An array containing an object for each target, having keys for each tweening property\n _this3._overwrite = overwrite;\n if (keyframes || stagger || $21bb7f0d2894673a$var$_isFuncOrString(duration) || $21bb7f0d2894673a$var$_isFuncOrString(delay)) {\n vars = _this3.vars;\n tl = _this3.timeline = new $21bb7f0d2894673a$export$e6a97ba2cae5bb94({\n data: \"nested\",\n defaults: defaults || {},\n targets: parent && parent.data === \"nested\" ? parent.vars.targets : parsedTargets\n }); // we need to store the targets because for staggers and keyframes, we end up creating an individual tween for each but function-based values need to know the index and the whole Array of targets.\n tl.kill();\n tl.parent = tl._dp = $21bb7f0d2894673a$var$_assertThisInitialized(_this3);\n tl._start = 0;\n if (stagger || $21bb7f0d2894673a$var$_isFuncOrString(duration) || $21bb7f0d2894673a$var$_isFuncOrString(delay)) {\n l = parsedTargets.length;\n staggerFunc = stagger && $21bb7f0d2894673a$export$f02a9ddbe4480f19(stagger);\n if ($21bb7f0d2894673a$var$_isObject(stagger)) {\n //users can pass in callbacks like onStart/onComplete in the stagger object. These should fire with each individual tween.\n for(p in stagger)if (~$21bb7f0d2894673a$var$_staggerTweenProps.indexOf(p)) {\n staggerVarsToMerge || (staggerVarsToMerge = {});\n staggerVarsToMerge[p] = stagger[p];\n }\n }\n for(i = 0; i < l; i++){\n copy = $21bb7f0d2894673a$var$_copyExcluding(vars, $21bb7f0d2894673a$var$_staggerPropsToSkip);\n copy.stagger = 0;\n yoyoEase && (copy.yoyoEase = yoyoEase);\n staggerVarsToMerge && $21bb7f0d2894673a$var$_merge(copy, staggerVarsToMerge);\n curTarget = parsedTargets[i]; //don't just copy duration or delay because if they're a string or function, we'd end up in an infinite loop because _isFuncOrString() would evaluate as true in the child tweens, entering this loop, etc. So we parse the value straight from vars and default to 0.\n copy.duration = +$21bb7f0d2894673a$var$_parseFuncOrString(duration, $21bb7f0d2894673a$var$_assertThisInitialized(_this3), i, curTarget, parsedTargets);\n copy.delay = (+$21bb7f0d2894673a$var$_parseFuncOrString(delay, $21bb7f0d2894673a$var$_assertThisInitialized(_this3), i, curTarget, parsedTargets) || 0) - _this3._delay;\n if (!stagger && l === 1 && copy.delay) {\n // if someone does delay:\"random(1, 5)\", repeat:-1, for example, the delay shouldn't be inside the repeat.\n _this3._delay = delay = copy.delay;\n _this3._start += delay;\n copy.delay = 0;\n }\n tl.to(curTarget, copy, staggerFunc ? staggerFunc(i, curTarget, parsedTargets) : 0);\n tl._ease = $21bb7f0d2894673a$var$_easeMap.none;\n }\n tl.duration() ? duration = delay = 0 : _this3.timeline = 0; // if the timeline's duration is 0, we don't need a timeline internally!\n } else if (keyframes) {\n $21bb7f0d2894673a$var$_inheritDefaults($21bb7f0d2894673a$export$dc2b19673bb53610(tl.vars.defaults, {\n ease: \"none\"\n }));\n tl._ease = $21bb7f0d2894673a$var$_parseEase(keyframes.ease || vars.ease || \"none\");\n var time = 0, a, kf, v;\n if ($21bb7f0d2894673a$var$_isArray(keyframes)) {\n keyframes.forEach(function(frame) {\n return tl.to(parsedTargets, frame, \">\");\n });\n tl.duration(); // to ensure tl._dur is cached because we tap into it for performance purposes in the render() method.\n } else {\n copy = {};\n for(p in keyframes)p === \"ease\" || p === \"easeEach\" || $21bb7f0d2894673a$var$_parseKeyframe(p, keyframes[p], copy, keyframes.easeEach);\n for(p in copy){\n a = copy[p].sort(function(a, b) {\n return a.t - b.t;\n });\n time = 0;\n for(i = 0; i < a.length; i++){\n kf = a[i];\n v = {\n ease: kf.e,\n duration: (kf.t - (i ? a[i - 1].t : 0)) / 100 * duration\n };\n v[p] = kf.v;\n tl.to(parsedTargets, v, time);\n time += v.duration;\n }\n }\n tl.duration() < duration && tl.to({}, {\n duration: duration - tl.duration()\n }); // in case keyframes didn't go to 100%\n }\n }\n duration || _this3.duration(duration = tl.duration());\n } else _this3.timeline = 0; //speed optimization, faster lookups (no going up the prototype chain)\n if (overwrite === true && !$21bb7f0d2894673a$var$_suppressOverwrites) {\n $21bb7f0d2894673a$var$_overwritingTween = $21bb7f0d2894673a$var$_assertThisInitialized(_this3);\n $21bb7f0d2894673a$var$_globalTimeline.killTweensOf(parsedTargets);\n $21bb7f0d2894673a$var$_overwritingTween = 0;\n }\n $21bb7f0d2894673a$var$_addToTimeline(parent, $21bb7f0d2894673a$var$_assertThisInitialized(_this3), position);\n vars.reversed && _this3.reverse();\n vars.paused && _this3.paused(true);\n if (immediateRender || !duration && !keyframes && _this3._start === $21bb7f0d2894673a$var$_roundPrecise(parent._time) && $21bb7f0d2894673a$var$_isNotFalse(immediateRender) && $21bb7f0d2894673a$var$_hasNoPausedAncestors($21bb7f0d2894673a$var$_assertThisInitialized(_this3)) && parent.data !== \"nested\") {\n _this3._tTime = -$21bb7f0d2894673a$var$_tinyNum; //forces a render without having to set the render() \"force\" parameter to true because we want to allow lazying by default (using the \"force\" parameter always forces an immediate full render)\n _this3.render(Math.max(0, -delay) || 0); //in case delay is negative\n }\n scrollTrigger && $21bb7f0d2894673a$var$_scrollTrigger($21bb7f0d2894673a$var$_assertThisInitialized(_this3), scrollTrigger);\n return _this3;\n }\n var _proto3 = Tween.prototype;\n _proto3.render = function render(totalTime, suppressEvents, force) {\n var prevTime = this._time, tDur = this._tDur, dur = this._dur, isNegative = totalTime < 0, tTime = totalTime > tDur - $21bb7f0d2894673a$var$_tinyNum && !isNegative ? tDur : totalTime < $21bb7f0d2894673a$var$_tinyNum ? 0 : totalTime, time, pt, iteration, cycleDuration, prevIteration, isYoyo, ratio, timeline, yoyoEase;\n if (!dur) $21bb7f0d2894673a$var$_renderZeroDurationTween(this, totalTime, suppressEvents, force);\n else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {\n //this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)\n time = tTime;\n timeline = this.timeline;\n if (this._repeat) {\n //adjust the time for repeats and yoyos\n cycleDuration = dur + this._rDelay;\n if (this._repeat < -1 && isNegative) return this.totalTime(cycleDuration * 100 + totalTime, suppressEvents, force);\n time = $21bb7f0d2894673a$var$_roundPrecise(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n if (tTime === tDur) {\n // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n iteration = this._repeat;\n time = dur;\n } else {\n iteration = ~~(tTime / cycleDuration);\n if (iteration && iteration === tTime / cycleDuration) {\n time = dur;\n iteration--;\n }\n time > dur && (time = dur);\n }\n isYoyo = this._yoyo && iteration & 1;\n if (isYoyo) {\n yoyoEase = this._yEase;\n time = dur - time;\n }\n prevIteration = $21bb7f0d2894673a$var$_animationCycle(this._tTime, cycleDuration);\n if (time === prevTime && !force && this._initted) {\n //could be during the repeatDelay part. No need to render and fire callbacks.\n this._tTime = tTime;\n return this;\n }\n if (iteration !== prevIteration) {\n timeline && this._yEase && $21bb7f0d2894673a$var$_propagateYoyoEase(timeline, isYoyo); //repeatRefresh functionality\n if (this.vars.repeatRefresh && !isYoyo && !this._lock) {\n this._lock = force = 1; //force, otherwise if lazy is true, the _attemptInitTween() will return and we'll jump out and get caught bouncing on each tick.\n this.render($21bb7f0d2894673a$var$_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;\n }\n }\n }\n if (!this._initted) {\n if ($21bb7f0d2894673a$var$_attemptInitTween(this, isNegative ? totalTime : time, force, suppressEvents, tTime)) {\n this._tTime = 0; // in constructor if immediateRender is true, we set _tTime to -_tinyNum to have the playhead cross the starting point but we can't leave _tTime as a negative number.\n return this;\n }\n if (prevTime !== this._time) // rare edge case - during initialization, an onUpdate in the _startAt (.fromTo()) might force this tween to render at a different spot in which case we should ditch this render() call so that it doesn't revert the values.\n return this;\n if (dur !== this._dur) // while initting, a plugin like InertiaPlugin might alter the duration, so rerun from the start to ensure everything renders as it should.\n return this.render(totalTime, suppressEvents, force);\n }\n this._tTime = tTime;\n this._time = time;\n if (!this._act && this._ts) {\n this._act = 1; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n this._lazy = 0;\n }\n this.ratio = ratio = (yoyoEase || this._ease)(time / dur);\n if (this._from) this.ratio = ratio = 1 - ratio;\n if (time && !prevTime && !suppressEvents && !iteration) {\n $21bb7f0d2894673a$var$_callback(this, \"onStart\");\n if (this._tTime !== tTime) // in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.\n return this;\n }\n pt = this._pt;\n while(pt){\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n timeline && timeline.render(totalTime < 0 ? totalTime : !time && isYoyo ? -$21bb7f0d2894673a$var$_tinyNum : timeline._dur * timeline._ease(time / this._dur), suppressEvents, force) || this._startAt && (this._zTime = totalTime);\n if (this._onUpdate && !suppressEvents) {\n isNegative && $21bb7f0d2894673a$var$_rewindStartAt(this, totalTime, suppressEvents, force); //note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.\n $21bb7f0d2894673a$var$_callback(this, \"onUpdate\");\n }\n this._repeat && iteration !== prevIteration && this.vars.onRepeat && !suppressEvents && this.parent && $21bb7f0d2894673a$var$_callback(this, \"onRepeat\");\n if ((tTime === this._tDur || !tTime) && this._tTime === tTime) {\n isNegative && !this._onUpdate && $21bb7f0d2894673a$var$_rewindStartAt(this, totalTime, true, true);\n (totalTime || !dur) && (tTime === this._tDur && this._ts > 0 || !tTime && this._ts < 0) && $21bb7f0d2894673a$var$_removeFromParent(this, 1); // don't remove if we're rendering at exactly a time of 0, as there could be autoRevert values that should get set on the next tick (if the playhead goes backward beyond the startTime, negative totalTime). Don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n if (!suppressEvents && !(isNegative && !prevTime) && (tTime || prevTime || isYoyo)) {\n // if prevTime and tTime are zero, we shouldn't fire the onReverseComplete. This could happen if you gsap.to(... {paused:true}).play();\n $21bb7f0d2894673a$var$_callback(this, tTime === tDur ? \"onComplete\" : \"onReverseComplete\", true);\n this._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n }\n }\n }\n return this;\n };\n _proto3.targets = function targets() {\n return this._targets;\n };\n _proto3.invalidate = function invalidate(soft) {\n // \"soft\" gives us a way to clear out everything EXCEPT the recorded pre-\"from\" portion of from() tweens. Otherwise, for example, if you tween.progress(1).render(0, true true).invalidate(), the \"from\" values would persist and then on the next render, the from() tweens would initialize and the current value would match the \"from\" values, thus animate from the same value to the same value (no animation). We tap into this in ScrollTrigger's refresh() where we must push a tween to completion and then back again but honor its init state in case the tween is dependent on another tween further up on the page.\n (!soft || !this.vars.runBackwards) && (this._startAt = 0);\n this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0;\n this._ptLookup = [];\n this.timeline && this.timeline.invalidate(soft);\n return _Animation2.prototype.invalidate.call(this, soft);\n };\n _proto3.resetTo = function resetTo(property, value, start, startIsRelative) {\n $21bb7f0d2894673a$var$_tickerActive || $21bb7f0d2894673a$export$762ed8fbedb691e3.wake();\n this._ts || this.play();\n var time = Math.min(this._dur, (this._dp._time - this._start) * this._ts), ratio;\n this._initted || $21bb7f0d2894673a$var$_initTween(this, time);\n ratio = this._ease(time / this._dur); // don't just get tween.ratio because it may not have rendered yet.\n // possible future addition to allow an object with multiple values to update, like tween.resetTo({x: 100, y: 200}); At this point, it doesn't seem worth the added kb given the fact that most users will likely opt for the convenient gsap.quickTo() way of interacting with this method.\n // if (_isObject(property)) { // performance optimization\n // \tfor (p in property) {\n // \t\tif (_updatePropTweens(this, p, property[p], value ? value[p] : null, start, ratio, time)) {\n // \t\t\treturn this.resetTo(property, value, start, startIsRelative); // if a PropTween wasn't found for the property, it'll get forced with a re-initialization so we need to jump out and start over again.\n // \t\t}\n // \t}\n // } else {\n if ($21bb7f0d2894673a$var$_updatePropTweens(this, property, value, start, startIsRelative, ratio, time)) return this.resetTo(property, value, start, startIsRelative); // if a PropTween wasn't found for the property, it'll get forced with a re-initialization so we need to jump out and start over again.\n //}\n $21bb7f0d2894673a$var$_alignPlayhead(this, 0);\n this.parent || $21bb7f0d2894673a$var$_addLinkedListItem(this._dp, this, \"_first\", \"_last\", this._dp._sort ? \"_start\" : 0);\n return this.render(0);\n };\n _proto3.kill = function kill(targets, vars) {\n if (vars === void 0) vars = \"all\";\n if (!targets && (!vars || vars === \"all\")) {\n this._lazy = this._pt = 0;\n return this.parent ? $21bb7f0d2894673a$var$_interrupt(this) : this;\n }\n if (this.timeline) {\n var tDur = this.timeline.totalDuration();\n this.timeline.killTweensOf(targets, vars, $21bb7f0d2894673a$var$_overwritingTween && $21bb7f0d2894673a$var$_overwritingTween.vars.overwrite !== true)._first || $21bb7f0d2894673a$var$_interrupt(this); // if nothing is left tweening, interrupt.\n this.parent && tDur !== this.timeline.totalDuration() && $21bb7f0d2894673a$var$_setDuration(this, this._dur * this.timeline._tDur / tDur, 0, 1); // if a nested tween is killed that changes the duration, it should affect this tween's duration. We must use the ratio, though, because sometimes the internal timeline is stretched like for keyframes where they don't all add up to whatever the parent tween's duration was set to.\n return this;\n }\n var parsedTargets = this._targets, killingTargets = targets ? $21bb7f0d2894673a$export$45b10814cc054894(targets) : parsedTargets, propTweenLookup = this._ptLookup, firstPT = this._pt, overwrittenProps, curLookup, curOverwriteProps, props, p, pt, i;\n if ((!vars || vars === \"all\") && $21bb7f0d2894673a$var$_arraysMatch(parsedTargets, killingTargets)) {\n vars === \"all\" && (this._pt = 0);\n return $21bb7f0d2894673a$var$_interrupt(this);\n }\n overwrittenProps = this._op = this._op || [];\n if (vars !== \"all\") {\n //so people can pass in a comma-delimited list of property names\n if ($21bb7f0d2894673a$export$f664476fd67145ca(vars)) {\n p = {};\n $21bb7f0d2894673a$export$f9000b814859f126(vars, function(name) {\n return p[name] = 1;\n });\n vars = p;\n }\n vars = $21bb7f0d2894673a$var$_addAliasesToVars(parsedTargets, vars);\n }\n i = parsedTargets.length;\n while(i--)if (~killingTargets.indexOf(parsedTargets[i])) {\n curLookup = propTweenLookup[i];\n if (vars === \"all\") {\n overwrittenProps[i] = vars;\n props = curLookup;\n curOverwriteProps = {};\n } else {\n curOverwriteProps = overwrittenProps[i] = overwrittenProps[i] || {};\n props = vars;\n }\n for(p in props){\n pt = curLookup && curLookup[p];\n if (pt) {\n if (!(\"kill\" in pt.d) || pt.d.kill(p) === true) $21bb7f0d2894673a$export$cd008aa6cd8844e3(this, pt, \"_pt\");\n delete curLookup[p];\n }\n if (curOverwriteProps !== \"all\") curOverwriteProps[p] = 1;\n }\n }\n this._initted && !this._pt && firstPT && $21bb7f0d2894673a$var$_interrupt(this); //if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.\n return this;\n };\n Tween.to = function to(targets, vars) {\n return new Tween(targets, vars, arguments[2]);\n };\n Tween.from = function from(targets, vars) {\n return $21bb7f0d2894673a$var$_createTweenType(1, arguments);\n };\n Tween.delayedCall = function delayedCall(delay, callback, params, scope) {\n return new Tween(callback, 0, {\n immediateRender: false,\n lazy: false,\n overwrite: false,\n delay: delay,\n onComplete: callback,\n onReverseComplete: callback,\n onCompleteParams: params,\n onReverseCompleteParams: params,\n callbackScope: scope\n }); // we must use onReverseComplete too for things like timeline.add(() => {...}) which should be triggered in BOTH directions (forward and reverse)\n };\n Tween.fromTo = function fromTo(targets, fromVars, toVars) {\n return $21bb7f0d2894673a$var$_createTweenType(2, arguments);\n };\n Tween.set = function set(targets, vars) {\n vars.duration = 0;\n vars.repeatDelay || (vars.repeat = 0);\n return new Tween(targets, vars);\n };\n Tween.killTweensOf = function killTweensOf(targets, props, onlyActive) {\n return $21bb7f0d2894673a$var$_globalTimeline.killTweensOf(targets, props, onlyActive);\n };\n return Tween;\n}($21bb7f0d2894673a$export$c35d437ae5945fcd);\n$21bb7f0d2894673a$export$dc2b19673bb53610($21bb7f0d2894673a$export$208a41d6b4e37b97.prototype, {\n _targets: [],\n _lazy: 0,\n _startAt: 0,\n _op: 0,\n _onInit: 0\n}); //add the pertinent timeline methods to Tween instances so that users can chain conveniently and create a timeline automatically. (removed due to concerns that it'd ultimately add to more confusion especially for beginners)\n// _forEachName(\"to,from,fromTo,set,call,add,addLabel,addPause\", name => {\n// \tTween.prototype[name] = function() {\n// \t\tlet tl = new Timeline();\n// \t\treturn _addToTimeline(tl, this)[name].apply(tl, toArray(arguments));\n// \t}\n// });\n//for backward compatibility. Leverage the timeline calls.\n$21bb7f0d2894673a$export$f9000b814859f126(\"staggerTo,staggerFrom,staggerFromTo\", function(name) {\n $21bb7f0d2894673a$export$208a41d6b4e37b97[name] = function() {\n var tl = new $21bb7f0d2894673a$export$e6a97ba2cae5bb94(), params = $21bb7f0d2894673a$var$_slice.call(arguments, 0);\n params.splice(name === \"staggerFromTo\" ? 5 : 4, 0, 0);\n return tl[name].apply(tl, params);\n };\n});\n/*\n * --------------------------------------------------------------------------------------\n * PROPTWEEN\n * --------------------------------------------------------------------------------------\n */ var $21bb7f0d2894673a$var$_setterPlain = function _setterPlain(target, property, value) {\n return target[property] = value;\n}, $21bb7f0d2894673a$var$_setterFunc = function _setterFunc(target, property, value) {\n return target[property](value);\n}, $21bb7f0d2894673a$var$_setterFuncWithParam = function _setterFuncWithParam(target, property, value, data) {\n return target[property](data.fp, value);\n}, $21bb7f0d2894673a$var$_setterAttribute = function _setterAttribute(target, property, value) {\n return target.setAttribute(property, value);\n}, $21bb7f0d2894673a$export$d60fbc1e0278aaf0 = function _getSetter(target, property) {\n return $21bb7f0d2894673a$var$_isFunction(target[property]) ? $21bb7f0d2894673a$var$_setterFunc : $21bb7f0d2894673a$export$a8178c063a9fd3a1(target[property]) && target.setAttribute ? $21bb7f0d2894673a$var$_setterAttribute : $21bb7f0d2894673a$var$_setterPlain;\n}, $21bb7f0d2894673a$var$_renderPlain = function _renderPlain(ratio, data) {\n return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 1000000) / 1000000, data);\n}, $21bb7f0d2894673a$var$_renderBoolean = function _renderBoolean(ratio, data) {\n return data.set(data.t, data.p, !!(data.s + data.c * ratio), data);\n}, $21bb7f0d2894673a$export$c5bc8e04394ecb2 = function _renderComplexString(ratio, data) {\n var pt = data._pt, s = \"\";\n if (!ratio && data.b) //b = beginning string\n s = data.b;\n else if (ratio === 1 && data.e) //e = ending string\n s = data.e;\n else {\n while(pt){\n s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : Math.round((pt.s + pt.c * ratio) * 10000) / 10000) + s; //we use the \"p\" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.\n pt = pt._next;\n }\n s += data.c; //we use the \"c\" of the PropTween to store the final chunk of non-numeric text.\n }\n data.set(data.t, data.p, s, data);\n}, $21bb7f0d2894673a$var$_renderPropTweens = function _renderPropTweens(ratio, data) {\n var pt = data._pt;\n while(pt){\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n}, $21bb7f0d2894673a$var$_addPluginModifier = function _addPluginModifier(modifier, tween, target, property) {\n var pt = this._pt, next;\n while(pt){\n next = pt._next;\n pt.p === property && pt.modifier(modifier, tween, target);\n pt = next;\n }\n}, $21bb7f0d2894673a$var$_killPropTweensOf = function _killPropTweensOf(property) {\n var pt = this._pt, hasNonDependentRemaining, next;\n while(pt){\n next = pt._next;\n if (pt.p === property && !pt.op || pt.op === property) $21bb7f0d2894673a$export$cd008aa6cd8844e3(this, pt, \"_pt\");\n else if (!pt.dep) hasNonDependentRemaining = 1;\n pt = next;\n }\n return !hasNonDependentRemaining;\n}, $21bb7f0d2894673a$var$_setterWithModifier = function _setterWithModifier(target, property, value, data) {\n data.mSet(target, property, data.m.call(data.tween, value, data.mt), data);\n}, $21bb7f0d2894673a$export$eed5824f53346d57 = function _sortPropTweensByPriority(parent) {\n var pt = parent._pt, next, pt2, first, last; //sorts the PropTween linked list in order of priority because some plugins need to do their work after ALL of the PropTweens were created (like RoundPropsPlugin and ModifiersPlugin)\n while(pt){\n next = pt._next;\n pt2 = first;\n while(pt2 && pt2.pr > pt.pr)pt2 = pt2._next;\n if (pt._prev = pt2 ? pt2._prev : last) pt._prev._next = pt;\n else first = pt;\n if (pt._next = pt2) pt2._prev = pt;\n else last = pt;\n pt = next;\n }\n parent._pt = first;\n}; //PropTween key: t = target, p = prop, r = renderer, d = data, s = start, c = change, op = overwriteProperty (ONLY populated when it's different than p), pr = priority, _next/_prev for the linked list siblings, set = setter, m = modifier, mSet = modifierSetter (the original setter, before a modifier was added)\nvar $21bb7f0d2894673a$export$3a67f7f44b1e838a = /*#__PURE__*/ function() {\n function PropTween(next, target, prop, start, change, renderer, data, setter, priority) {\n this.t = target;\n this.s = start;\n this.c = change;\n this.p = prop;\n this.r = renderer || $21bb7f0d2894673a$var$_renderPlain;\n this.d = data || this;\n this.set = setter || $21bb7f0d2894673a$var$_setterPlain;\n this.pr = priority || 0;\n this._next = next;\n if (next) next._prev = this;\n }\n var _proto4 = PropTween.prototype;\n _proto4.modifier = function modifier(func, tween, target) {\n this.mSet = this.mSet || this.set; //in case it was already set (a PropTween can only have one modifier)\n this.set = $21bb7f0d2894673a$var$_setterWithModifier;\n this.m = func;\n this.mt = target; //modifier target\n this.tween = tween;\n };\n return PropTween;\n}(); //Initialization tasks\n$21bb7f0d2894673a$export$f9000b814859f126($21bb7f0d2894673a$var$_callbackNames + \"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger\", function(name) {\n return $21bb7f0d2894673a$var$_reservedProps[name] = 1;\n});\n$21bb7f0d2894673a$var$_globals.TweenMax = $21bb7f0d2894673a$var$_globals.TweenLite = $21bb7f0d2894673a$export$208a41d6b4e37b97;\n$21bb7f0d2894673a$var$_globals.TimelineLite = $21bb7f0d2894673a$var$_globals.TimelineMax = $21bb7f0d2894673a$export$e6a97ba2cae5bb94;\n$21bb7f0d2894673a$var$_globalTimeline = new $21bb7f0d2894673a$export$e6a97ba2cae5bb94({\n sortChildren: false,\n defaults: $21bb7f0d2894673a$var$_defaults,\n autoRemoveChildren: true,\n id: \"root\",\n smoothChildTiming: true\n});\n$21bb7f0d2894673a$export$4922bee768729a77.stringFilter = $21bb7f0d2894673a$export$7eb2e5eb5eeb96a4;\nvar $21bb7f0d2894673a$var$_media = [], $21bb7f0d2894673a$var$_listeners = {}, $21bb7f0d2894673a$var$_emptyArray = [], $21bb7f0d2894673a$var$_lastMediaTime = 0, $21bb7f0d2894673a$var$_dispatch = function _dispatch(type) {\n return ($21bb7f0d2894673a$var$_listeners[type] || $21bb7f0d2894673a$var$_emptyArray).map(function(f) {\n return f();\n });\n}, $21bb7f0d2894673a$var$_onMediaChange = function _onMediaChange() {\n var time = Date.now(), matches = [];\n if (time - $21bb7f0d2894673a$var$_lastMediaTime > 2) {\n $21bb7f0d2894673a$var$_dispatch(\"matchMediaInit\");\n $21bb7f0d2894673a$var$_media.forEach(function(c) {\n var queries = c.queries, conditions = c.conditions, match, p, anyMatch, toggled;\n for(p in queries){\n match = $21bb7f0d2894673a$var$_win.matchMedia(queries[p]).matches; // Firefox doesn't update the \"matches\" property of the MediaQueryList object correctly - it only does so as it calls its change handler - so we must re-create a media query here to ensure it's accurate.\n match && (anyMatch = 1);\n if (match !== conditions[p]) {\n conditions[p] = match;\n toggled = 1;\n }\n }\n if (toggled) {\n c.revert();\n anyMatch && matches.push(c);\n }\n });\n $21bb7f0d2894673a$var$_dispatch(\"matchMediaRevert\");\n matches.forEach(function(c) {\n return c.onMatch(c);\n });\n $21bb7f0d2894673a$var$_lastMediaTime = time;\n $21bb7f0d2894673a$var$_dispatch(\"matchMedia\");\n }\n};\nvar $21bb7f0d2894673a$var$Context = /*#__PURE__*/ function() {\n function Context(func, scope) {\n this.selector = scope && $21bb7f0d2894673a$export$aea217a45095ce11(scope);\n this.data = [];\n this._r = []; // returned/cleanup functions\n this.isReverted = false;\n func && this.add(func);\n }\n var _proto5 = Context.prototype;\n _proto5.add = function add(name, func, scope) {\n // possible future addition if we need the ability to add() an animation to a context and for whatever reason cannot create that animation inside of a context.add(() => {...}) function.\n // if (name && _isFunction(name.revert)) {\n // \tthis.data.push(name);\n // \treturn (name._ctx = this);\n // }\n if ($21bb7f0d2894673a$var$_isFunction(name)) {\n scope = func;\n func = name;\n name = $21bb7f0d2894673a$var$_isFunction;\n }\n var self = this, f = function f() {\n var prev = $21bb7f0d2894673a$var$_context, prevSelector = self.selector, result;\n prev && prev !== self && prev.data.push(self);\n scope && (self.selector = $21bb7f0d2894673a$export$aea217a45095ce11(scope));\n $21bb7f0d2894673a$var$_context = self;\n result = func.apply(self, arguments);\n $21bb7f0d2894673a$var$_isFunction(result) && self._r.push(result);\n $21bb7f0d2894673a$var$_context = prev;\n self.selector = prevSelector;\n self.isReverted = false;\n return result;\n };\n self.last = f;\n return name === $21bb7f0d2894673a$var$_isFunction ? f(self) : name ? self[name] = f : f;\n };\n _proto5.ignore = function ignore(func) {\n var prev = $21bb7f0d2894673a$var$_context;\n $21bb7f0d2894673a$var$_context = null;\n func(this);\n $21bb7f0d2894673a$var$_context = prev;\n };\n _proto5.getTweens = function getTweens() {\n var a = [];\n this.data.forEach(function(e) {\n return e instanceof Context ? a.push.apply(a, e.getTweens()) : e instanceof $21bb7f0d2894673a$export$208a41d6b4e37b97 && !(e.parent && e.parent.data === \"nested\") && a.push(e);\n });\n return a;\n };\n _proto5.clear = function clear() {\n this._r.length = this.data.length = 0;\n };\n _proto5.kill = function kill(revert, matchMedia) {\n var _this4 = this;\n if (revert) {\n var tweens = this.getTweens();\n this.data.forEach(function(t) {\n // Flip plugin tweens are very different in that they should actually be pushed to their end. The plugin replaces the timeline's .revert() method to do exactly that. But we also need to remove any of those nested tweens inside the flip timeline so that they don't get individually reverted.\n if (t.data === \"isFlip\") {\n t.revert();\n t.getChildren(true, true, false).forEach(function(tween) {\n return tweens.splice(tweens.indexOf(tween), 1);\n });\n }\n }); // save as an object so that we can cache the globalTime for each tween to optimize performance during the sort\n tweens.map(function(t) {\n return {\n g: t.globalTime(0),\n t: t\n };\n }).sort(function(a, b) {\n return b.g - a.g || -1;\n }).forEach(function(o) {\n return o.t.revert(revert);\n }); // note: all of the _startAt tweens should be reverted in reverse order that they were created, and they'll all have the same globalTime (-1) so the \" || -1\" in the sort keeps the order properly.\n this.data.forEach(function(e) {\n return !(e instanceof $21bb7f0d2894673a$export$c35d437ae5945fcd) && e.revert && e.revert(revert);\n });\n this._r.forEach(function(f) {\n return f(revert, _this4);\n });\n this.isReverted = true;\n } else this.data.forEach(function(e) {\n return e.kill && e.kill();\n });\n this.clear();\n if (matchMedia) {\n var i = $21bb7f0d2894673a$var$_media.indexOf(this);\n !!~i && $21bb7f0d2894673a$var$_media.splice(i, 1);\n }\n };\n _proto5.revert = function revert(config) {\n this.kill(config || {});\n };\n return Context;\n}();\nvar $21bb7f0d2894673a$var$MatchMedia = /*#__PURE__*/ function() {\n function MatchMedia(scope) {\n this.contexts = [];\n this.scope = scope;\n }\n var _proto6 = MatchMedia.prototype;\n _proto6.add = function add(conditions, func, scope) {\n $21bb7f0d2894673a$var$_isObject(conditions) || (conditions = {\n matches: conditions\n });\n var context = new $21bb7f0d2894673a$var$Context(0, scope || this.scope), cond = context.conditions = {}, mq, p, active;\n this.contexts.push(context);\n func = context.add(\"onMatch\", func);\n context.queries = conditions;\n for(p in conditions)if (p === \"all\") active = 1;\n else {\n mq = $21bb7f0d2894673a$var$_win.matchMedia(conditions[p]);\n if (mq) {\n $21bb7f0d2894673a$var$_media.indexOf(context) < 0 && $21bb7f0d2894673a$var$_media.push(context);\n (cond[p] = mq.matches) && (active = 1);\n mq.addListener ? mq.addListener($21bb7f0d2894673a$var$_onMediaChange) : mq.addEventListener(\"change\", $21bb7f0d2894673a$var$_onMediaChange);\n }\n }\n active && func(context);\n return this;\n } // refresh() {\n ;\n _proto6.revert = function revert(config) {\n this.kill(config || {});\n };\n _proto6.kill = function kill(revert) {\n this.contexts.forEach(function(c) {\n return c.kill(revert, true);\n });\n };\n return MatchMedia;\n}();\n/*\n * --------------------------------------------------------------------------------------\n * GSAP\n * --------------------------------------------------------------------------------------\n */ var $21bb7f0d2894673a$var$_gsap = {\n registerPlugin: function registerPlugin() {\n for(var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)args[_key2] = arguments[_key2];\n args.forEach(function(config) {\n return $21bb7f0d2894673a$var$_createPlugin(config);\n });\n },\n timeline: function timeline(vars) {\n return new $21bb7f0d2894673a$export$e6a97ba2cae5bb94(vars);\n },\n getTweensOf: function getTweensOf(targets, onlyActive) {\n return $21bb7f0d2894673a$var$_globalTimeline.getTweensOf(targets, onlyActive);\n },\n getProperty: function getProperty(target, property, unit, uncache) {\n $21bb7f0d2894673a$export$f664476fd67145ca(target) && (target = $21bb7f0d2894673a$export$45b10814cc054894(target)[0]); //in case selector text or an array is passed in\n var getter = $21bb7f0d2894673a$export$8b9be379d2de2a39(target || {}).get, format = unit ? $21bb7f0d2894673a$var$_passThrough : $21bb7f0d2894673a$var$_numericIfPossible;\n unit === \"native\" && (unit = \"\");\n return !target ? target : !property ? function(property, unit, uncache) {\n return format(($21bb7f0d2894673a$export$d305d8ec5d7c26b8[property] && $21bb7f0d2894673a$export$d305d8ec5d7c26b8[property].get || getter)(target, property, unit, uncache));\n } : format(($21bb7f0d2894673a$export$d305d8ec5d7c26b8[property] && $21bb7f0d2894673a$export$d305d8ec5d7c26b8[property].get || getter)(target, property, unit, uncache));\n },\n quickSetter: function quickSetter(target, property, unit) {\n target = $21bb7f0d2894673a$export$45b10814cc054894(target);\n if (target.length > 1) {\n var setters = target.map(function(t) {\n return $21bb7f0d2894673a$export$99ee26438460406a.quickSetter(t, property, unit);\n }), l = setters.length;\n return function(value) {\n var i = l;\n while(i--)setters[i](value);\n };\n }\n target = target[0] || {};\n var Plugin = $21bb7f0d2894673a$export$d305d8ec5d7c26b8[property], cache = $21bb7f0d2894673a$export$8b9be379d2de2a39(target), p = cache.harness && (cache.harness.aliases || {})[property] || property, // in case it's an alias, like \"rotate\" for \"rotation\".\n setter = Plugin ? function(value) {\n var p = new Plugin();\n $21bb7f0d2894673a$var$_quickTween._pt = 0;\n p.init(target, unit ? value + unit : value, $21bb7f0d2894673a$var$_quickTween, 0, [\n target\n ]);\n p.render(1, p);\n $21bb7f0d2894673a$var$_quickTween._pt && $21bb7f0d2894673a$var$_renderPropTweens(1, $21bb7f0d2894673a$var$_quickTween);\n } : cache.set(target, p);\n return Plugin ? setter : function(value) {\n return setter(target, p, unit ? value + unit : value, cache, 1);\n };\n },\n quickTo: function quickTo(target, property, vars) {\n var _merge2;\n var tween = $21bb7f0d2894673a$export$99ee26438460406a.to(target, $21bb7f0d2894673a$var$_merge((_merge2 = {}, _merge2[property] = \"+=0.1\", _merge2.paused = true, _merge2), vars || {})), func = function func(value, start, startIsRelative) {\n return tween.resetTo(property, value, start, startIsRelative);\n };\n func.tween = tween;\n return func;\n },\n isTweening: function isTweening(targets) {\n return $21bb7f0d2894673a$var$_globalTimeline.getTweensOf(targets, true).length > 0;\n },\n defaults: function defaults(value) {\n value && value.ease && (value.ease = $21bb7f0d2894673a$var$_parseEase(value.ease, $21bb7f0d2894673a$var$_defaults.ease));\n return $21bb7f0d2894673a$var$_mergeDeep($21bb7f0d2894673a$var$_defaults, value || {});\n },\n config: function config(value) {\n return $21bb7f0d2894673a$var$_mergeDeep($21bb7f0d2894673a$export$4922bee768729a77, value || {});\n },\n registerEffect: function registerEffect(_ref3) {\n var name = _ref3.name, effect = _ref3.effect, plugins = _ref3.plugins, defaults = _ref3.defaults, extendTimeline = _ref3.extendTimeline;\n (plugins || \"\").split(\",\").forEach(function(pluginName) {\n return pluginName && !$21bb7f0d2894673a$export$d305d8ec5d7c26b8[pluginName] && !$21bb7f0d2894673a$var$_globals[pluginName] && $21bb7f0d2894673a$var$_warn(name + \" effect requires \" + pluginName + \" plugin.\");\n });\n $21bb7f0d2894673a$var$_effects[name] = function(targets, vars, tl) {\n return effect($21bb7f0d2894673a$export$45b10814cc054894(targets), $21bb7f0d2894673a$export$dc2b19673bb53610(vars || {}, defaults), tl);\n };\n if (extendTimeline) $21bb7f0d2894673a$export$e6a97ba2cae5bb94.prototype[name] = function(targets, vars, position) {\n return this.add($21bb7f0d2894673a$var$_effects[name](targets, $21bb7f0d2894673a$var$_isObject(vars) ? vars : (position = vars) && {}, this), position);\n };\n },\n registerEase: function registerEase(name, ease) {\n $21bb7f0d2894673a$var$_easeMap[name] = $21bb7f0d2894673a$var$_parseEase(ease);\n },\n parseEase: function parseEase(ease, defaultEase) {\n return arguments.length ? $21bb7f0d2894673a$var$_parseEase(ease, defaultEase) : $21bb7f0d2894673a$var$_easeMap;\n },\n getById: function getById(id) {\n return $21bb7f0d2894673a$var$_globalTimeline.getById(id);\n },\n exportRoot: function exportRoot(vars, includeDelayedCalls) {\n if (vars === void 0) vars = {};\n var tl = new $21bb7f0d2894673a$export$e6a97ba2cae5bb94(vars), child, next;\n tl.smoothChildTiming = $21bb7f0d2894673a$var$_isNotFalse(vars.smoothChildTiming);\n $21bb7f0d2894673a$var$_globalTimeline.remove(tl);\n tl._dp = 0; //otherwise it'll get re-activated when adding children and be re-introduced into _globalTimeline's linked list (then added to itself).\n tl._time = tl._tTime = $21bb7f0d2894673a$var$_globalTimeline._time;\n child = $21bb7f0d2894673a$var$_globalTimeline._first;\n while(child){\n next = child._next;\n if (includeDelayedCalls || !(!child._dur && child instanceof $21bb7f0d2894673a$export$208a41d6b4e37b97 && child.vars.onComplete === child._targets[0])) $21bb7f0d2894673a$var$_addToTimeline(tl, child, child._start - child._delay);\n child = next;\n }\n $21bb7f0d2894673a$var$_addToTimeline($21bb7f0d2894673a$var$_globalTimeline, tl, 0);\n return tl;\n },\n context: function context(func, scope) {\n return func ? new $21bb7f0d2894673a$var$Context(func, scope) : $21bb7f0d2894673a$var$_context;\n },\n matchMedia: function matchMedia(scope) {\n return new $21bb7f0d2894673a$var$MatchMedia(scope);\n },\n matchMediaRefresh: function matchMediaRefresh() {\n return $21bb7f0d2894673a$var$_media.forEach(function(c) {\n var cond = c.conditions, found, p;\n for(p in cond)if (cond[p]) {\n cond[p] = false;\n found = 1;\n }\n found && c.revert();\n }) || $21bb7f0d2894673a$var$_onMediaChange();\n },\n addEventListener: function addEventListener(type, callback) {\n var a = $21bb7f0d2894673a$var$_listeners[type] || ($21bb7f0d2894673a$var$_listeners[type] = []);\n ~a.indexOf(callback) || a.push(callback);\n },\n removeEventListener: function removeEventListener(type, callback) {\n var a = $21bb7f0d2894673a$var$_listeners[type], i = a && a.indexOf(callback);\n i >= 0 && a.splice(i, 1);\n },\n utils: {\n wrap: $21bb7f0d2894673a$export$4997ffc0176396a6,\n wrapYoyo: $21bb7f0d2894673a$export$cfc0b067273edc55,\n distribute: $21bb7f0d2894673a$export$f02a9ddbe4480f19,\n random: $21bb7f0d2894673a$export$4385e60b38654f68,\n snap: $21bb7f0d2894673a$export$51a0620f7a28532b,\n normalize: $21bb7f0d2894673a$export$a3295358bff77e,\n getUnit: $21bb7f0d2894673a$export$65f2564e9a9b9222,\n clamp: $21bb7f0d2894673a$export$7d15b64cf5a3a4c4,\n splitColor: $21bb7f0d2894673a$export$73d6f35be992df24,\n toArray: $21bb7f0d2894673a$export$45b10814cc054894,\n selector: $21bb7f0d2894673a$export$aea217a45095ce11,\n mapRange: $21bb7f0d2894673a$export$f65a7599bbc6b121,\n pipe: $21bb7f0d2894673a$export$a4627e546088548d,\n unitize: $21bb7f0d2894673a$export$d7502930aa5492de,\n interpolate: $21bb7f0d2894673a$export$89e29e4ab65e70a9,\n shuffle: $21bb7f0d2894673a$export$448332262467e042\n },\n install: $21bb7f0d2894673a$var$_install,\n effects: $21bb7f0d2894673a$var$_effects,\n ticker: $21bb7f0d2894673a$export$762ed8fbedb691e3,\n updateRoot: $21bb7f0d2894673a$export$e6a97ba2cae5bb94.updateRoot,\n plugins: $21bb7f0d2894673a$export$d305d8ec5d7c26b8,\n globalTimeline: $21bb7f0d2894673a$var$_globalTimeline,\n core: {\n PropTween: $21bb7f0d2894673a$export$3a67f7f44b1e838a,\n globals: $21bb7f0d2894673a$var$_addGlobal,\n Tween: $21bb7f0d2894673a$export$208a41d6b4e37b97,\n Timeline: $21bb7f0d2894673a$export$e6a97ba2cae5bb94,\n Animation: $21bb7f0d2894673a$export$c35d437ae5945fcd,\n getCache: $21bb7f0d2894673a$export$8b9be379d2de2a39,\n _removeLinkedListItem: $21bb7f0d2894673a$export$cd008aa6cd8844e3,\n reverting: function reverting() {\n return $21bb7f0d2894673a$var$_reverting;\n },\n context: function context(toAdd) {\n if (toAdd && $21bb7f0d2894673a$var$_context) {\n $21bb7f0d2894673a$var$_context.data.push(toAdd);\n toAdd._ctx = $21bb7f0d2894673a$var$_context;\n }\n return $21bb7f0d2894673a$var$_context;\n },\n suppressOverwrites: function suppressOverwrites(value) {\n return $21bb7f0d2894673a$var$_suppressOverwrites = value;\n }\n }\n};\n$21bb7f0d2894673a$export$f9000b814859f126(\"to,from,fromTo,delayedCall,set,killTweensOf\", function(name) {\n return $21bb7f0d2894673a$var$_gsap[name] = $21bb7f0d2894673a$export$208a41d6b4e37b97[name];\n});\n$21bb7f0d2894673a$export$762ed8fbedb691e3.add($21bb7f0d2894673a$export$e6a97ba2cae5bb94.updateRoot);\n$21bb7f0d2894673a$var$_quickTween = $21bb7f0d2894673a$var$_gsap.to({}, {\n duration: 0\n}); // ---- EXTRA PLUGINS --------------------------------------------------------\nvar $21bb7f0d2894673a$var$_getPluginPropTween = function _getPluginPropTween(plugin, prop) {\n var pt = plugin._pt;\n while(pt && pt.p !== prop && pt.op !== prop && pt.fp !== prop)pt = pt._next;\n return pt;\n}, $21bb7f0d2894673a$var$_addModifiers = function _addModifiers(tween, modifiers) {\n var targets = tween._targets, p, i, pt;\n for(p in modifiers){\n i = targets.length;\n while(i--){\n pt = tween._ptLookup[i][p];\n if (pt && (pt = pt.d)) {\n if (pt._pt) // is a plugin\n pt = $21bb7f0d2894673a$var$_getPluginPropTween(pt, p);\n pt && pt.modifier && pt.modifier(modifiers[p], tween, targets[i], p);\n }\n }\n }\n}, $21bb7f0d2894673a$var$_buildModifierPlugin = function _buildModifierPlugin(name, modifier) {\n return {\n name: name,\n rawVars: 1,\n //don't pre-process function-based values or \"random()\" strings.\n init: function init(target, vars, tween) {\n tween._onInit = function(tween) {\n var temp, p;\n if ($21bb7f0d2894673a$export$f664476fd67145ca(vars)) {\n temp = {};\n $21bb7f0d2894673a$export$f9000b814859f126(vars, function(name) {\n return temp[name] = 1;\n }); //if the user passes in a comma-delimited list of property names to roundProps, like \"x,y\", we round to whole numbers.\n vars = temp;\n }\n if (modifier) {\n temp = {};\n for(p in vars)temp[p] = modifier(vars[p]);\n vars = temp;\n }\n $21bb7f0d2894673a$var$_addModifiers(tween, vars);\n };\n }\n };\n}; //register core plugins\nvar $21bb7f0d2894673a$export$99ee26438460406a = $21bb7f0d2894673a$var$_gsap.registerPlugin({\n name: \"attr\",\n init: function init(target, vars, tween, index, targets) {\n var p, pt, v;\n this.tween = tween;\n for(p in vars){\n v = target.getAttribute(p) || \"\";\n pt = this.add(target, \"setAttribute\", (v || 0) + \"\", vars[p], index, targets, 0, 0, p);\n pt.op = p;\n pt.b = v; // record the beginning value so we can revert()\n this._props.push(p);\n }\n },\n render: function render(ratio, data) {\n var pt = data._pt;\n while(pt){\n $21bb7f0d2894673a$var$_reverting ? pt.set(pt.t, pt.p, pt.b, pt) : pt.r(ratio, pt.d); // if reverting, go back to the original (pt.b)\n pt = pt._next;\n }\n }\n}, {\n name: \"endArray\",\n init: function init(target, value) {\n var i = value.length;\n while(i--)this.add(target, i, target[i] || 0, value[i], 0, 0, 0, 0, 0, 1);\n }\n}, $21bb7f0d2894673a$var$_buildModifierPlugin(\"roundProps\", $21bb7f0d2894673a$export$dd12390e6b265a17), $21bb7f0d2894673a$var$_buildModifierPlugin(\"modifiers\"), $21bb7f0d2894673a$var$_buildModifierPlugin(\"snap\", $21bb7f0d2894673a$export$51a0620f7a28532b)) || $21bb7f0d2894673a$var$_gsap; //to prevent the core plugins from being dropped via aggressive tree shaking, we must include them in the variable declaration in this way.\n$21bb7f0d2894673a$export$208a41d6b4e37b97.version = $21bb7f0d2894673a$export$e6a97ba2cae5bb94.version = $21bb7f0d2894673a$export$99ee26438460406a.version = \"3.11.5\";\n$21bb7f0d2894673a$var$_coreReady = 1;\n$21bb7f0d2894673a$var$_windowExists() && $21bb7f0d2894673a$var$_wake();\nvar $21bb7f0d2894673a$export$2fae1e8613537d5f = $21bb7f0d2894673a$var$_easeMap.Power0, $21bb7f0d2894673a$export$5d84ab4efbecec39 = $21bb7f0d2894673a$var$_easeMap.Power1, $21bb7f0d2894673a$export$d8c694b7490ad65d = $21bb7f0d2894673a$var$_easeMap.Power2, $21bb7f0d2894673a$export$acebdf2b184a0b6f = $21bb7f0d2894673a$var$_easeMap.Power3, $21bb7f0d2894673a$export$42e40a141003d2f0 = $21bb7f0d2894673a$var$_easeMap.Power4, $21bb7f0d2894673a$export$cff00ccf6e2392de = $21bb7f0d2894673a$var$_easeMap.Linear, $21bb7f0d2894673a$export$7005c9eb6671414d = $21bb7f0d2894673a$var$_easeMap.Quad, $21bb7f0d2894673a$export$755261d5a1567778 = $21bb7f0d2894673a$var$_easeMap.Cubic, $21bb7f0d2894673a$export$daf531446cad3d2a = $21bb7f0d2894673a$var$_easeMap.Quart, $21bb7f0d2894673a$export$4c407d38ce8ad8cc = $21bb7f0d2894673a$var$_easeMap.Quint, $21bb7f0d2894673a$export$f301627d437cff88 = $21bb7f0d2894673a$var$_easeMap.Strong, $21bb7f0d2894673a$export$56ebabebb04a9ca9 = $21bb7f0d2894673a$var$_easeMap.Elastic, $21bb7f0d2894673a$export$25e48ac541203d4a = $21bb7f0d2894673a$var$_easeMap.Back, $21bb7f0d2894673a$export$f7a11c7543d81853 = $21bb7f0d2894673a$var$_easeMap.SteppedEase, $21bb7f0d2894673a$export$d20e79fdc3899e95 = $21bb7f0d2894673a$var$_easeMap.Bounce, $21bb7f0d2894673a$export$bed2d20ad96b784c = $21bb7f0d2894673a$var$_easeMap.Sine, $21bb7f0d2894673a$export$41e9d1ff1a2fb15a = $21bb7f0d2894673a$var$_easeMap.Expo, $21bb7f0d2894673a$export$ce49a57dd865b86c = $21bb7f0d2894673a$var$_easeMap.Circ;\n\n\n/*!\n * CSSPlugin 3.11.5\n * https://greensock.com\n *\n * Copyright 2008-2023, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/ /* eslint-disable */ \nvar $0cdfc2eaac330c87$var$_win, $0cdfc2eaac330c87$var$_doc, $0cdfc2eaac330c87$var$_docElement, $0cdfc2eaac330c87$var$_pluginInitted, $0cdfc2eaac330c87$var$_tempDiv, $0cdfc2eaac330c87$var$_tempDivStyler, $0cdfc2eaac330c87$var$_recentSetterPlugin, $0cdfc2eaac330c87$var$_reverting, $0cdfc2eaac330c87$var$_windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n}, $0cdfc2eaac330c87$var$_transformProps = {}, $0cdfc2eaac330c87$var$_RAD2DEG = 180 / Math.PI, $0cdfc2eaac330c87$var$_DEG2RAD = Math.PI / 180, $0cdfc2eaac330c87$var$_atan2 = Math.atan2, $0cdfc2eaac330c87$var$_bigNum = 1e8, $0cdfc2eaac330c87$var$_capsExp = /([A-Z])/g, $0cdfc2eaac330c87$var$_horizontalExp = /(left|right|width|margin|padding|x)/i, $0cdfc2eaac330c87$var$_complexExp = /[\\s,\\(]\\S/, $0cdfc2eaac330c87$var$_propertyAliases = {\n autoAlpha: \"opacity,visibility\",\n scale: \"scaleX,scaleY\",\n alpha: \"opacity\"\n}, $0cdfc2eaac330c87$var$_renderCSSProp = function _renderCSSProp(ratio, data) {\n return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);\n}, $0cdfc2eaac330c87$var$_renderPropWithEnd = function _renderPropWithEnd(ratio, data) {\n return data.set(data.t, data.p, ratio === 1 ? data.e : Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);\n}, $0cdfc2eaac330c87$var$_renderCSSPropWithBeginning = function _renderCSSPropWithBeginning(ratio, data) {\n return data.set(data.t, data.p, ratio ? Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u : data.b, data);\n}, //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)\n$0cdfc2eaac330c87$var$_renderRoundedCSSProp = function _renderRoundedCSSProp(ratio, data) {\n var value = data.s + data.c * ratio;\n data.set(data.t, data.p, ~~(value + (value < 0 ? -0.5 : .5)) + data.u, data);\n}, $0cdfc2eaac330c87$var$_renderNonTweeningValue = function _renderNonTweeningValue(ratio, data) {\n return data.set(data.t, data.p, ratio ? data.e : data.b, data);\n}, $0cdfc2eaac330c87$var$_renderNonTweeningValueOnlyAtEnd = function _renderNonTweeningValueOnlyAtEnd(ratio, data) {\n return data.set(data.t, data.p, ratio !== 1 ? data.b : data.e, data);\n}, $0cdfc2eaac330c87$var$_setterCSSStyle = function _setterCSSStyle(target, property, value) {\n return target.style[property] = value;\n}, $0cdfc2eaac330c87$var$_setterCSSProp = function _setterCSSProp(target, property, value) {\n return target.style.setProperty(property, value);\n}, $0cdfc2eaac330c87$var$_setterTransform = function _setterTransform(target, property, value) {\n return target._gsap[property] = value;\n}, $0cdfc2eaac330c87$var$_setterScale = function _setterScale(target, property, value) {\n return target._gsap.scaleX = target._gsap.scaleY = value;\n}, $0cdfc2eaac330c87$var$_setterScaleWithRender = function _setterScaleWithRender(target, property, value, data, ratio) {\n var cache = target._gsap;\n cache.scaleX = cache.scaleY = value;\n cache.renderTransform(ratio, cache);\n}, $0cdfc2eaac330c87$var$_setterTransformWithRender = function _setterTransformWithRender(target, property, value, data, ratio) {\n var cache = target._gsap;\n cache[property] = value;\n cache.renderTransform(ratio, cache);\n}, $0cdfc2eaac330c87$var$_transformProp = \"transform\", $0cdfc2eaac330c87$var$_transformOriginProp = $0cdfc2eaac330c87$var$_transformProp + \"Origin\", $0cdfc2eaac330c87$var$_saveStyle = function _saveStyle(property, isNotCSS) {\n var _this = this;\n var target = this.target, style = target.style;\n if (property in $0cdfc2eaac330c87$var$_transformProps) {\n this.tfm = this.tfm || {};\n if (property !== \"transform\") {\n property = $0cdfc2eaac330c87$var$_propertyAliases[property] || property;\n ~property.indexOf(\",\") ? property.split(\",\").forEach(function(a) {\n return _this.tfm[a] = $0cdfc2eaac330c87$var$_get(target, a);\n }) : this.tfm[property] = target._gsap.x ? target._gsap[property] : $0cdfc2eaac330c87$var$_get(target, property); // note: scale would map to \"scaleX,scaleY\", thus we loop and apply them both.\n } else return $0cdfc2eaac330c87$var$_propertyAliases.transform.split(\",\").forEach(function(p) {\n return _saveStyle.call(_this, p, isNotCSS);\n });\n if (this.props.indexOf($0cdfc2eaac330c87$var$_transformProp) >= 0) return;\n if (target._gsap.svg) {\n this.svgo = target.getAttribute(\"data-svg-origin\");\n this.props.push($0cdfc2eaac330c87$var$_transformOriginProp, isNotCSS, \"\");\n }\n property = $0cdfc2eaac330c87$var$_transformProp;\n }\n (style || isNotCSS) && this.props.push(property, isNotCSS, style[property]);\n}, $0cdfc2eaac330c87$var$_removeIndependentTransforms = function _removeIndependentTransforms(style) {\n if (style.translate) {\n style.removeProperty(\"translate\");\n style.removeProperty(\"scale\");\n style.removeProperty(\"rotate\");\n }\n}, $0cdfc2eaac330c87$var$_revertStyle = function _revertStyle() {\n var props = this.props, target = this.target, style = target.style, cache = target._gsap, i, p;\n for(i = 0; i < props.length; i += 3)// stored like this: property, isNotCSS, value\n props[i + 1] ? target[props[i]] = props[i + 2] : props[i + 2] ? style[props[i]] = props[i + 2] : style.removeProperty(props[i].substr(0, 2) === \"--\" ? props[i] : props[i].replace($0cdfc2eaac330c87$var$_capsExp, \"-$1\").toLowerCase());\n if (this.tfm) {\n for(p in this.tfm)cache[p] = this.tfm[p];\n if (cache.svg) {\n cache.renderTransform();\n target.setAttribute(\"data-svg-origin\", this.svgo || \"\");\n }\n i = $0cdfc2eaac330c87$var$_reverting();\n if ((!i || !i.isStart) && !style[$0cdfc2eaac330c87$var$_transformProp]) {\n $0cdfc2eaac330c87$var$_removeIndependentTransforms(style);\n cache.uncache = 1; // if it's a startAt that's being reverted in the _initTween() of the core, we don't need to uncache transforms. This is purely a performance optimization.\n }\n }\n}, $0cdfc2eaac330c87$var$_getStyleSaver = function _getStyleSaver(target, properties) {\n var saver = {\n target: target,\n props: [],\n revert: $0cdfc2eaac330c87$var$_revertStyle,\n save: $0cdfc2eaac330c87$var$_saveStyle\n };\n target._gsap || (0, $21bb7f0d2894673a$export$99ee26438460406a).core.getCache(target); // just make sure there's a _gsap cache defined because we read from it in _saveStyle() and it's more efficient to just check it here once.\n properties && properties.split(\",\").forEach(function(p) {\n return saver.save(p);\n });\n return saver;\n}, $0cdfc2eaac330c87$var$_supports3D, $0cdfc2eaac330c87$export$a232bb0480ae674a = function _createElement(type, ns) {\n var e = $0cdfc2eaac330c87$var$_doc.createElementNS ? $0cdfc2eaac330c87$var$_doc.createElementNS((ns || \"http://www.w3.org/1999/xhtml\").replace(/^https/, \"http\"), type) : $0cdfc2eaac330c87$var$_doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making \"style\" inaccessible.\n return e.style ? e : $0cdfc2eaac330c87$var$_doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://greensock.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).\n}, $0cdfc2eaac330c87$var$_getComputedProperty = function _getComputedProperty(target, property, skipPrefixFallback) {\n var cs = getComputedStyle(target);\n return cs[property] || cs.getPropertyValue(property.replace($0cdfc2eaac330c87$var$_capsExp, \"-$1\").toLowerCase()) || cs.getPropertyValue(property) || !skipPrefixFallback && _getComputedProperty(target, $0cdfc2eaac330c87$export$8cbef5dd49a09c8b(property) || property, 1) || \"\"; //css variables may not need caps swapped out for dashes and lowercase.\n}, $0cdfc2eaac330c87$var$_prefixes = \"O,Moz,ms,Ms,Webkit\".split(\",\"), $0cdfc2eaac330c87$export$8cbef5dd49a09c8b = function _checkPropPrefix(property, element, preferPrefix) {\n var e = element || $0cdfc2eaac330c87$var$_tempDiv, s = e.style, i = 5;\n if (property in s && !preferPrefix) return property;\n property = property.charAt(0).toUpperCase() + property.substr(1);\n while(i-- && !($0cdfc2eaac330c87$var$_prefixes[i] + property in s));\n return i < 0 ? null : (i === 3 ? \"ms\" : i >= 0 ? $0cdfc2eaac330c87$var$_prefixes[i] : \"\") + property;\n}, $0cdfc2eaac330c87$var$_initCore = function _initCore() {\n if ($0cdfc2eaac330c87$var$_windowExists() && window.document) {\n $0cdfc2eaac330c87$var$_win = window;\n $0cdfc2eaac330c87$var$_doc = $0cdfc2eaac330c87$var$_win.document;\n $0cdfc2eaac330c87$var$_docElement = $0cdfc2eaac330c87$var$_doc.documentElement;\n $0cdfc2eaac330c87$var$_tempDiv = $0cdfc2eaac330c87$export$a232bb0480ae674a(\"div\") || {\n style: {}\n };\n $0cdfc2eaac330c87$var$_tempDivStyler = $0cdfc2eaac330c87$export$a232bb0480ae674a(\"div\");\n $0cdfc2eaac330c87$var$_transformProp = $0cdfc2eaac330c87$export$8cbef5dd49a09c8b($0cdfc2eaac330c87$var$_transformProp);\n $0cdfc2eaac330c87$var$_transformOriginProp = $0cdfc2eaac330c87$var$_transformProp + \"Origin\";\n $0cdfc2eaac330c87$var$_tempDiv.style.cssText = \"border-width:0;line-height:0;position:absolute;padding:0\"; //make sure to override certain properties that may contaminate measurements, in case the user has overreaching style sheets.\n $0cdfc2eaac330c87$var$_supports3D = !!$0cdfc2eaac330c87$export$8cbef5dd49a09c8b(\"perspective\");\n $0cdfc2eaac330c87$var$_reverting = (0, $21bb7f0d2894673a$export$99ee26438460406a).core.reverting;\n $0cdfc2eaac330c87$var$_pluginInitted = 1;\n }\n}, $0cdfc2eaac330c87$var$_getBBoxHack = function _getBBoxHack(swapIfPossible) {\n //works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a element and/or . We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).\n var svg = $0cdfc2eaac330c87$export$a232bb0480ae674a(\"svg\", this.ownerSVGElement && this.ownerSVGElement.getAttribute(\"xmlns\") || \"http://www.w3.org/2000/svg\"), oldParent = this.parentNode, oldSibling = this.nextSibling, oldCSS = this.style.cssText, bbox;\n $0cdfc2eaac330c87$var$_docElement.appendChild(svg);\n svg.appendChild(this);\n this.style.display = \"block\";\n if (swapIfPossible) try {\n bbox = this.getBBox();\n this._gsapBBox = this.getBBox; //store the original\n this.getBBox = _getBBoxHack;\n } catch (e) {}\n else if (this._gsapBBox) bbox = this._gsapBBox();\n if (oldParent) {\n if (oldSibling) oldParent.insertBefore(this, oldSibling);\n else oldParent.appendChild(this);\n }\n $0cdfc2eaac330c87$var$_docElement.removeChild(svg);\n this.style.cssText = oldCSS;\n return bbox;\n}, $0cdfc2eaac330c87$var$_getAttributeFallbacks = function _getAttributeFallbacks(target, attributesArray) {\n var i = attributesArray.length;\n while(i--){\n if (target.hasAttribute(attributesArray[i])) return target.getAttribute(attributesArray[i]);\n }\n}, $0cdfc2eaac330c87$export$41bc7c2d1e04f11b = function _getBBox(target) {\n var bounds;\n try {\n bounds = target.getBBox(); //Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a or ). https://bugzilla.mozilla.org/show_bug.cgi?id=612118\n } catch (error) {\n bounds = $0cdfc2eaac330c87$var$_getBBoxHack.call(target, true);\n }\n bounds && (bounds.width || bounds.height) || target.getBBox === $0cdfc2eaac330c87$var$_getBBoxHack || (bounds = $0cdfc2eaac330c87$var$_getBBoxHack.call(target, true)); //some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.\n return bounds && !bounds.width && !bounds.x && !bounds.y ? {\n x: +$0cdfc2eaac330c87$var$_getAttributeFallbacks(target, [\n \"x\",\n \"cx\",\n \"x1\"\n ]) || 0,\n y: +$0cdfc2eaac330c87$var$_getAttributeFallbacks(target, [\n \"y\",\n \"cy\",\n \"y1\"\n ]) || 0,\n width: 0,\n height: 0\n } : bounds;\n}, $0cdfc2eaac330c87$var$_isSVG = function _isSVG(e) {\n return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && $0cdfc2eaac330c87$export$41bc7c2d1e04f11b(e));\n}, //reports if the element is an SVG on which getBBox() actually works\n$0cdfc2eaac330c87$var$_removeProperty = function _removeProperty(target, property) {\n if (property) {\n var style = target.style;\n if (property in $0cdfc2eaac330c87$var$_transformProps && property !== $0cdfc2eaac330c87$var$_transformOriginProp) property = $0cdfc2eaac330c87$var$_transformProp;\n if (style.removeProperty) {\n if (property.substr(0, 2) === \"ms\" || property.substr(0, 6) === \"webkit\") //Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be \"ms-transform\" instead of \"-ms-transform\" for IE9, for example)\n property = \"-\" + property;\n style.removeProperty(property.replace($0cdfc2eaac330c87$var$_capsExp, \"-$1\").toLowerCase());\n } else //note: old versions of IE use \"removeAttribute()\" instead of \"removeProperty()\"\n style.removeAttribute(property);\n }\n}, $0cdfc2eaac330c87$var$_addNonTweeningPT = function _addNonTweeningPT(plugin, target, property, beginning, end, onlySetAtEnd) {\n var pt = new (0, $21bb7f0d2894673a$export$3a67f7f44b1e838a)(plugin._pt, target, property, 0, 1, onlySetAtEnd ? $0cdfc2eaac330c87$var$_renderNonTweeningValueOnlyAtEnd : $0cdfc2eaac330c87$var$_renderNonTweeningValue);\n plugin._pt = pt;\n pt.b = beginning;\n pt.e = end;\n plugin._props.push(property);\n return pt;\n}, $0cdfc2eaac330c87$var$_nonConvertibleUnits = {\n deg: 1,\n rad: 1,\n turn: 1\n}, $0cdfc2eaac330c87$var$_nonStandardLayouts = {\n grid: 1,\n flex: 1\n}, //takes a single value like 20px and converts it to the unit specified, like \"%\", returning only the numeric amount.\n$0cdfc2eaac330c87$var$_convertToUnit = function _convertToUnit(target, property, value, unit) {\n var curValue = parseFloat(value) || 0, curUnit = (value + \"\").trim().substr((curValue + \"\").length) || \"px\", // some browsers leave extra whitespace at the beginning of CSS variables, hence the need to trim()\n style = $0cdfc2eaac330c87$var$_tempDiv.style, horizontal = $0cdfc2eaac330c87$var$_horizontalExp.test(property), isRootSVG = target.tagName.toLowerCase() === \"svg\", measureProperty = (isRootSVG ? \"client\" : \"offset\") + (horizontal ? \"Width\" : \"Height\"), amount = 100, toPixels = unit === \"px\", toPercent = unit === \"%\", px, parent, cache, isSVG;\n if (unit === curUnit || !curValue || $0cdfc2eaac330c87$var$_nonConvertibleUnits[unit] || $0cdfc2eaac330c87$var$_nonConvertibleUnits[curUnit]) return curValue;\n curUnit !== \"px\" && !toPixels && (curValue = _convertToUnit(target, property, value, \"px\"));\n isSVG = target.getCTM && $0cdfc2eaac330c87$var$_isSVG(target);\n if ((toPercent || curUnit === \"%\") && ($0cdfc2eaac330c87$var$_transformProps[property] || ~property.indexOf(\"adius\"))) {\n px = isSVG ? target.getBBox()[horizontal ? \"width\" : \"height\"] : target[measureProperty];\n return (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(toPercent ? curValue / px * amount : curValue / 100 * px);\n }\n style[horizontal ? \"width\" : \"height\"] = amount + (toPixels ? curUnit : unit);\n parent = ~property.indexOf(\"adius\") || unit === \"em\" && target.appendChild && !isRootSVG ? target : target.parentNode;\n if (isSVG) parent = (target.ownerSVGElement || {}).parentNode;\n if (!parent || parent === $0cdfc2eaac330c87$var$_doc || !parent.appendChild) parent = $0cdfc2eaac330c87$var$_doc.body;\n cache = parent._gsap;\n if (cache && toPercent && cache.width && horizontal && cache.time === (0, $21bb7f0d2894673a$export$762ed8fbedb691e3).time && !cache.uncache) return (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(curValue / cache.width * amount);\n else {\n (toPercent || curUnit === \"%\") && !$0cdfc2eaac330c87$var$_nonStandardLayouts[$0cdfc2eaac330c87$var$_getComputedProperty(parent, \"display\")] && (style.position = $0cdfc2eaac330c87$var$_getComputedProperty(target, \"position\"));\n parent === target && (style.position = \"static\"); // like for borderRadius, if it's a % we must have it relative to the target itself but that may not have position: relative or position: absolute in which case it'd go up the chain until it finds its offsetParent (bad). position: static protects against that.\n parent.appendChild($0cdfc2eaac330c87$var$_tempDiv);\n px = $0cdfc2eaac330c87$var$_tempDiv[measureProperty];\n parent.removeChild($0cdfc2eaac330c87$var$_tempDiv);\n style.position = \"absolute\";\n if (horizontal && toPercent) {\n cache = (0, $21bb7f0d2894673a$export$8b9be379d2de2a39)(parent);\n cache.time = (0, $21bb7f0d2894673a$export$762ed8fbedb691e3).time;\n cache.width = parent[measureProperty];\n }\n }\n return (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(toPixels ? px * curValue / amount : px && curValue ? amount / px * curValue : 0);\n}, $0cdfc2eaac330c87$var$_get = function _get(target, property, unit, uncache) {\n var value;\n $0cdfc2eaac330c87$var$_pluginInitted || $0cdfc2eaac330c87$var$_initCore();\n if (property in $0cdfc2eaac330c87$var$_propertyAliases && property !== \"transform\") {\n property = $0cdfc2eaac330c87$var$_propertyAliases[property];\n if (~property.indexOf(\",\")) property = property.split(\",\")[0];\n }\n if ($0cdfc2eaac330c87$var$_transformProps[property] && property !== \"transform\") {\n value = $0cdfc2eaac330c87$var$_parseTransform(target, uncache);\n value = property !== \"transformOrigin\" ? value[property] : value.svg ? value.origin : $0cdfc2eaac330c87$var$_firstTwoOnly($0cdfc2eaac330c87$var$_getComputedProperty(target, $0cdfc2eaac330c87$var$_transformOriginProp)) + \" \" + value.zOrigin + \"px\";\n } else {\n value = target.style[property];\n if (!value || value === \"auto\" || uncache || ~(value + \"\").indexOf(\"calc(\")) value = $0cdfc2eaac330c87$var$_specialProps[property] && $0cdfc2eaac330c87$var$_specialProps[property](target, property, unit) || $0cdfc2eaac330c87$var$_getComputedProperty(target, property) || (0, $21bb7f0d2894673a$export$51d6bbe898aef1f9)(target, property) || (property === \"opacity\" ? 1 : 0); // note: some browsers, like Firefox, don't report borderRadius correctly! Instead, it only reports every corner like borderTopLeftRadius\n }\n return unit && !~(value + \"\").trim().indexOf(\" \") ? $0cdfc2eaac330c87$var$_convertToUnit(target, property, value, unit) + unit : value;\n}, $0cdfc2eaac330c87$var$_tweenComplexCSSString = function _tweenComplexCSSString(target, prop, start, end) {\n // note: we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n if (!start || start === \"none\") {\n // some browsers like Safari actually PREFER the prefixed property and mis-report the unprefixed value like clipPath (BUG). In other words, even though clipPath exists in the style (\"clipPath\" in target.style) and it's set in the CSS properly (along with -webkit-clip-path), Safari reports clipPath as \"none\" whereas WebkitClipPath reports accurately like \"ellipse(100% 0% at 50% 0%)\", so in this case we must SWITCH to using the prefixed property instead. See https://greensock.com/forums/topic/18310-clippath-doesnt-work-on-ios/\n var p = $0cdfc2eaac330c87$export$8cbef5dd49a09c8b(prop, target, 1), s = p && $0cdfc2eaac330c87$var$_getComputedProperty(target, p, 1);\n if (s && s !== start) {\n prop = p;\n start = s;\n } else if (prop === \"borderColor\") start = $0cdfc2eaac330c87$var$_getComputedProperty(target, \"borderTopColor\"); // Firefox bug: always reports \"borderColor\" as \"\", so we must fall back to borderTopColor. See https://greensock.com/forums/topic/24583-how-to-return-colors-that-i-had-after-reverse/\n }\n var pt = new (0, $21bb7f0d2894673a$export$3a67f7f44b1e838a)(this._pt, target.style, prop, 0, 1, (0, $21bb7f0d2894673a$export$c5bc8e04394ecb2)), index = 0, matchIndex = 0, a, result, startValues, startNum, color, startValue, endValue, endNum, chunk, endUnit, startUnit, endValues;\n pt.b = start;\n pt.e = end;\n start += \"\"; // ensure values are strings\n end += \"\";\n if (end === \"auto\") {\n target.style[prop] = end;\n end = $0cdfc2eaac330c87$var$_getComputedProperty(target, prop) || end;\n target.style[prop] = start;\n }\n a = [\n start,\n end\n ];\n (0, $21bb7f0d2894673a$export$7eb2e5eb5eeb96a4)(a); // pass an array with the starting and ending values and let the filter do whatever it needs to the values. If colors are found, it returns true and then we must match where the color shows up order-wise because for things like boxShadow, sometimes the browser provides the computed values with the color FIRST, but the user provides it with the color LAST, so flip them if necessary. Same for drop-shadow().\n start = a[0];\n end = a[1];\n startValues = start.match((0, $21bb7f0d2894673a$export$65c88bbd597e7b0a)) || [];\n endValues = end.match((0, $21bb7f0d2894673a$export$65c88bbd597e7b0a)) || [];\n if (endValues.length) {\n while(result = (0, $21bb7f0d2894673a$export$65c88bbd597e7b0a).exec(end)){\n endValue = result[0];\n chunk = end.substring(index, result.index);\n if (color) color = (color + 1) % 5;\n else if (chunk.substr(-5) === \"rgba(\" || chunk.substr(-5) === \"hsla(\") color = 1;\n if (endValue !== (startValue = startValues[matchIndex++] || \"\")) {\n startNum = parseFloat(startValue) || 0;\n startUnit = startValue.substr((startNum + \"\").length);\n endValue.charAt(1) === \"=\" && (endValue = (0, $21bb7f0d2894673a$export$dac762bc6301b560)(startNum, endValue) + startUnit);\n endNum = parseFloat(endValue);\n endUnit = endValue.substr((endNum + \"\").length);\n index = (0, $21bb7f0d2894673a$export$65c88bbd597e7b0a).lastIndex - endUnit.length;\n if (!endUnit) {\n //if something like \"perspective:300\" is passed in and we must add a unit to the end\n endUnit = endUnit || (0, $21bb7f0d2894673a$export$4922bee768729a77).units[prop] || startUnit;\n if (index === end.length) {\n end += endUnit;\n pt.e += endUnit;\n }\n }\n if (startUnit !== endUnit) startNum = $0cdfc2eaac330c87$var$_convertToUnit(target, prop, startValue, endUnit) || 0;\n // these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n pt._pt = {\n _next: pt._pt,\n p: chunk || matchIndex === 1 ? chunk : \",\",\n //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n s: startNum,\n c: endNum - startNum,\n m: color && color < 4 || prop === \"zIndex\" ? Math.round : 0\n };\n }\n }\n pt.c = index < end.length ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n } else pt.r = prop === \"display\" && end === \"none\" ? $0cdfc2eaac330c87$var$_renderNonTweeningValueOnlyAtEnd : $0cdfc2eaac330c87$var$_renderNonTweeningValue;\n (0, $21bb7f0d2894673a$export$5a680e28b0b61bc).test(end) && (pt.e = 0); //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n this._pt = pt; //start the linked list with this new PropTween. Remember, we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within another plugin too, thus \"this\" would refer to the plugin.\n return pt;\n}, $0cdfc2eaac330c87$var$_keywordToPercent = {\n top: \"0%\",\n bottom: \"100%\",\n left: \"0%\",\n right: \"100%\",\n center: \"50%\"\n}, $0cdfc2eaac330c87$var$_convertKeywordsToPercentages = function _convertKeywordsToPercentages(value) {\n var split = value.split(\" \"), x = split[0], y = split[1] || \"50%\";\n if (x === \"top\" || x === \"bottom\" || y === \"left\" || y === \"right\") {\n //the user provided them in the wrong order, so flip them\n value = x;\n x = y;\n y = value;\n }\n split[0] = $0cdfc2eaac330c87$var$_keywordToPercent[x] || x;\n split[1] = $0cdfc2eaac330c87$var$_keywordToPercent[y] || y;\n return split.join(\" \");\n}, $0cdfc2eaac330c87$var$_renderClearProps = function _renderClearProps(ratio, data) {\n if (data.tween && data.tween._time === data.tween._dur) {\n var target = data.t, style = target.style, props = data.u, cache = target._gsap, prop, clearTransforms, i;\n if (props === \"all\" || props === true) {\n style.cssText = \"\";\n clearTransforms = 1;\n } else {\n props = props.split(\",\");\n i = props.length;\n while(--i > -1){\n prop = props[i];\n if ($0cdfc2eaac330c87$var$_transformProps[prop]) {\n clearTransforms = 1;\n prop = prop === \"transformOrigin\" ? $0cdfc2eaac330c87$var$_transformOriginProp : $0cdfc2eaac330c87$var$_transformProp;\n }\n $0cdfc2eaac330c87$var$_removeProperty(target, prop);\n }\n }\n if (clearTransforms) {\n $0cdfc2eaac330c87$var$_removeProperty(target, $0cdfc2eaac330c87$var$_transformProp);\n if (cache) {\n cache.svg && target.removeAttribute(\"transform\");\n $0cdfc2eaac330c87$var$_parseTransform(target, 1); // force all the cached values back to \"normal\"/identity, otherwise if there's another tween that's already set to render transforms on this element, it could display the wrong values.\n cache.uncache = 1;\n $0cdfc2eaac330c87$var$_removeIndependentTransforms(style);\n }\n }\n }\n}, // note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.\n$0cdfc2eaac330c87$var$_specialProps = {\n clearProps: function clearProps(plugin, target, property, endValue, tween) {\n if (tween.data !== \"isFromStart\") {\n var pt = plugin._pt = new (0, $21bb7f0d2894673a$export$3a67f7f44b1e838a)(plugin._pt, target, property, 0, 0, $0cdfc2eaac330c87$var$_renderClearProps);\n pt.u = endValue;\n pt.pr = -10;\n pt.tween = tween;\n plugin._props.push(property);\n return 1;\n }\n }\n}, /*\n * --------------------------------------------------------------------------------------\n * TRANSFORMS\n * --------------------------------------------------------------------------------------\n */ $0cdfc2eaac330c87$var$_identity2DMatrix = [\n 1,\n 0,\n 0,\n 1,\n 0,\n 0\n], $0cdfc2eaac330c87$var$_rotationalProperties = {}, $0cdfc2eaac330c87$var$_isNullTransform = function _isNullTransform(value) {\n return value === \"matrix(1, 0, 0, 1, 0, 0)\" || value === \"none\" || !value;\n}, $0cdfc2eaac330c87$var$_getComputedTransformMatrixAsArray = function _getComputedTransformMatrixAsArray(target) {\n var matrixString = $0cdfc2eaac330c87$var$_getComputedProperty(target, $0cdfc2eaac330c87$var$_transformProp);\n return $0cdfc2eaac330c87$var$_isNullTransform(matrixString) ? $0cdfc2eaac330c87$var$_identity2DMatrix : matrixString.substr(7).match((0, $21bb7f0d2894673a$export$b9d44bb6523120d6)).map((0, $21bb7f0d2894673a$export$9c8d725d65e13f94));\n}, $0cdfc2eaac330c87$var$_getMatrix = function _getMatrix(target, force2D) {\n var cache = target._gsap || (0, $21bb7f0d2894673a$export$8b9be379d2de2a39)(target), style = target.style, matrix = $0cdfc2eaac330c87$var$_getComputedTransformMatrixAsArray(target), parent, nextSibling, temp, addedToDOM;\n if (cache.svg && target.getAttribute(\"transform\")) {\n temp = target.transform.baseVal.consolidate().matrix; //ensures that even complex values like \"translate(50,60) rotate(135,0,0)\" are parsed because it mashes it into a matrix.\n matrix = [\n temp.a,\n temp.b,\n temp.c,\n temp.d,\n temp.e,\n temp.f\n ];\n return matrix.join(\",\") === \"1,0,0,1,0,0\" ? $0cdfc2eaac330c87$var$_identity2DMatrix : matrix;\n } else if (matrix === $0cdfc2eaac330c87$var$_identity2DMatrix && !target.offsetParent && target !== $0cdfc2eaac330c87$var$_docElement && !cache.svg) {\n //note: if offsetParent is null, that means the element isn't in the normal document flow, like if it has display:none or one of its ancestors has display:none). Firefox returns null for getComputedStyle() if the element is in an iframe that has display:none. https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n //browsers don't report transforms accurately unless the element is in the DOM and has a display value that's not \"none\". Firefox and Microsoft browsers have a partial bug where they'll report transforms even if display:none BUT not any percentage-based values like translate(-50%, 8px) will be reported as if it's translate(0, 8px).\n temp = style.display;\n style.display = \"block\";\n parent = target.parentNode;\n if (!parent || !target.offsetParent) {\n // note: in 3.3.0 we switched target.offsetParent to _doc.body.contains(target) to avoid [sometimes unnecessary] MutationObserver calls but that wasn't adequate because there are edge cases where nested position: fixed elements need to get reparented to accurately sense transforms. See https://github.com/greensock/GSAP/issues/388 and https://github.com/greensock/GSAP/issues/375\n addedToDOM = 1; //flag\n nextSibling = target.nextElementSibling;\n $0cdfc2eaac330c87$var$_docElement.appendChild(target); //we must add it to the DOM in order to get values properly\n }\n matrix = $0cdfc2eaac330c87$var$_getComputedTransformMatrixAsArray(target);\n temp ? style.display = temp : $0cdfc2eaac330c87$var$_removeProperty(target, \"display\");\n if (addedToDOM) nextSibling ? parent.insertBefore(target, nextSibling) : parent ? parent.appendChild(target) : $0cdfc2eaac330c87$var$_docElement.removeChild(target);\n }\n return force2D && matrix.length > 6 ? [\n matrix[0],\n matrix[1],\n matrix[4],\n matrix[5],\n matrix[12],\n matrix[13]\n ] : matrix;\n}, $0cdfc2eaac330c87$var$_applySVGOrigin = function _applySVGOrigin(target, origin, originIsAbsolute, smooth, matrixArray, pluginToAddPropTweensTo) {\n var cache = target._gsap, matrix = matrixArray || $0cdfc2eaac330c87$var$_getMatrix(target, true), xOriginOld = cache.xOrigin || 0, yOriginOld = cache.yOrigin || 0, xOffsetOld = cache.xOffset || 0, yOffsetOld = cache.yOffset || 0, a = matrix[0], b = matrix[1], c = matrix[2], d = matrix[3], tx = matrix[4], ty = matrix[5], originSplit = origin.split(\" \"), xOrigin = parseFloat(originSplit[0]) || 0, yOrigin = parseFloat(originSplit[1]) || 0, bounds, determinant, x, y;\n if (!originIsAbsolute) {\n bounds = $0cdfc2eaac330c87$export$41bc7c2d1e04f11b(target);\n xOrigin = bounds.x + (~originSplit[0].indexOf(\"%\") ? xOrigin / 100 * bounds.width : xOrigin);\n yOrigin = bounds.y + (~(originSplit[1] || originSplit[0]).indexOf(\"%\") ? yOrigin / 100 * bounds.height : yOrigin);\n } else if (matrix !== $0cdfc2eaac330c87$var$_identity2DMatrix && (determinant = a * d - b * c)) {\n //if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.\n x = xOrigin * (d / determinant) + yOrigin * (-c / determinant) + (c * ty - d * tx) / determinant;\n y = xOrigin * (-b / determinant) + yOrigin * (a / determinant) - (a * ty - b * tx) / determinant;\n xOrigin = x;\n yOrigin = y;\n }\n if (smooth || smooth !== false && cache.smooth) {\n tx = xOrigin - xOriginOld;\n ty = yOrigin - yOriginOld;\n cache.xOffset = xOffsetOld + (tx * a + ty * c) - tx;\n cache.yOffset = yOffsetOld + (tx * b + ty * d) - ty;\n } else cache.xOffset = cache.yOffset = 0;\n cache.xOrigin = xOrigin;\n cache.yOrigin = yOrigin;\n cache.smooth = !!smooth;\n cache.origin = origin;\n cache.originIsAbsolute = !!originIsAbsolute;\n target.style[$0cdfc2eaac330c87$var$_transformOriginProp] = \"0px 0px\"; //otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).\n if (pluginToAddPropTweensTo) {\n $0cdfc2eaac330c87$var$_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOrigin\", xOriginOld, xOrigin);\n $0cdfc2eaac330c87$var$_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOrigin\", yOriginOld, yOrigin);\n $0cdfc2eaac330c87$var$_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOffset\", xOffsetOld, cache.xOffset);\n $0cdfc2eaac330c87$var$_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOffset\", yOffsetOld, cache.yOffset);\n }\n target.setAttribute(\"data-svg-origin\", xOrigin + \" \" + yOrigin);\n}, $0cdfc2eaac330c87$var$_parseTransform = function _parseTransform(target, uncache) {\n var cache = target._gsap || new (0, $21bb7f0d2894673a$export$cf10981d5419cad5)(target);\n if (\"x\" in cache && !uncache && !cache.uncache) return cache;\n var style = target.style, invertedScaleX = cache.scaleX < 0, px = \"px\", deg = \"deg\", cs = getComputedStyle(target), origin = $0cdfc2eaac330c87$var$_getComputedProperty(target, $0cdfc2eaac330c87$var$_transformOriginProp) || \"0\", x, y, z, scaleX, scaleY, rotation, rotationX, rotationY, skewX, skewY, perspective, xOrigin, yOrigin, matrix, angle, cos, sin, a, b, c, d, a12, a22, t1, t2, t3, a13, a23, a33, a42, a43, a32;\n x = y = z = rotation = rotationX = rotationY = skewX = skewY = perspective = 0;\n scaleX = scaleY = 1;\n cache.svg = !!(target.getCTM && $0cdfc2eaac330c87$var$_isSVG(target));\n if (cs.translate) {\n // accommodate independent transforms by combining them into normal ones.\n if (cs.translate !== \"none\" || cs.scale !== \"none\" || cs.rotate !== \"none\") style[$0cdfc2eaac330c87$var$_transformProp] = (cs.translate !== \"none\" ? \"translate3d(\" + (cs.translate + \" 0 0\").split(\" \").slice(0, 3).join(\", \") + \") \" : \"\") + (cs.rotate !== \"none\" ? \"rotate(\" + cs.rotate + \") \" : \"\") + (cs.scale !== \"none\" ? \"scale(\" + cs.scale.split(\" \").join(\",\") + \") \" : \"\") + (cs[$0cdfc2eaac330c87$var$_transformProp] !== \"none\" ? cs[$0cdfc2eaac330c87$var$_transformProp] : \"\");\n style.scale = style.rotate = style.translate = \"none\";\n }\n matrix = $0cdfc2eaac330c87$var$_getMatrix(target, cache.svg);\n if (cache.svg) {\n if (cache.uncache) {\n // if cache.uncache is true (and maybe if origin is 0,0), we need to set element.style.transformOrigin = (cache.xOrigin - bbox.x) + \"px \" + (cache.yOrigin - bbox.y) + \"px\". Previously we let the data-svg-origin stay instead, but when introducing revert(), it complicated things.\n t2 = target.getBBox();\n origin = cache.xOrigin - t2.x + \"px \" + (cache.yOrigin - t2.y) + \"px\";\n t1 = \"\";\n } else t1 = !uncache && target.getAttribute(\"data-svg-origin\"); // Remember, to work around browser inconsistencies we always force SVG elements' transformOrigin to 0,0 and offset the translation accordingly.\n $0cdfc2eaac330c87$var$_applySVGOrigin(target, t1 || origin, !!t1 || cache.originIsAbsolute, cache.smooth !== false, matrix);\n }\n xOrigin = cache.xOrigin || 0;\n yOrigin = cache.yOrigin || 0;\n if (matrix !== $0cdfc2eaac330c87$var$_identity2DMatrix) {\n a = matrix[0]; //a11\n b = matrix[1]; //a21\n c = matrix[2]; //a31\n d = matrix[3]; //a41\n x = a12 = matrix[4];\n y = a22 = matrix[5]; //2D matrix\n if (matrix.length === 6) {\n scaleX = Math.sqrt(a * a + b * b);\n scaleY = Math.sqrt(d * d + c * c);\n rotation = a || b ? $0cdfc2eaac330c87$var$_atan2(b, a) * $0cdfc2eaac330c87$var$_RAD2DEG : 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).\n skewX = c || d ? $0cdfc2eaac330c87$var$_atan2(c, d) * $0cdfc2eaac330c87$var$_RAD2DEG + rotation : 0;\n skewX && (scaleY *= Math.abs(Math.cos(skewX * $0cdfc2eaac330c87$var$_DEG2RAD)));\n if (cache.svg) {\n x -= xOrigin - (xOrigin * a + yOrigin * c);\n y -= yOrigin - (xOrigin * b + yOrigin * d);\n } //3D matrix\n } else {\n a32 = matrix[6];\n a42 = matrix[7];\n a13 = matrix[8];\n a23 = matrix[9];\n a33 = matrix[10];\n a43 = matrix[11];\n x = matrix[12];\n y = matrix[13];\n z = matrix[14];\n angle = $0cdfc2eaac330c87$var$_atan2(a32, a33);\n rotationX = angle * $0cdfc2eaac330c87$var$_RAD2DEG; //rotationX\n if (angle) {\n cos = Math.cos(-angle);\n sin = Math.sin(-angle);\n t1 = a12 * cos + a13 * sin;\n t2 = a22 * cos + a23 * sin;\n t3 = a32 * cos + a33 * sin;\n a13 = a12 * -sin + a13 * cos;\n a23 = a22 * -sin + a23 * cos;\n a33 = a32 * -sin + a33 * cos;\n a43 = a42 * -sin + a43 * cos;\n a12 = t1;\n a22 = t2;\n a32 = t3;\n } //rotationY\n angle = $0cdfc2eaac330c87$var$_atan2(-c, a33);\n rotationY = angle * $0cdfc2eaac330c87$var$_RAD2DEG;\n if (angle) {\n cos = Math.cos(-angle);\n sin = Math.sin(-angle);\n t1 = a * cos - a13 * sin;\n t2 = b * cos - a23 * sin;\n t3 = c * cos - a33 * sin;\n a43 = d * sin + a43 * cos;\n a = t1;\n b = t2;\n c = t3;\n } //rotationZ\n angle = $0cdfc2eaac330c87$var$_atan2(b, a);\n rotation = angle * $0cdfc2eaac330c87$var$_RAD2DEG;\n if (angle) {\n cos = Math.cos(angle);\n sin = Math.sin(angle);\n t1 = a * cos + b * sin;\n t2 = a12 * cos + a22 * sin;\n b = b * cos - a * sin;\n a22 = a22 * cos - a12 * sin;\n a = t1;\n a12 = t2;\n }\n if (rotationX && Math.abs(rotationX) + Math.abs(rotation) > 359.9) {\n //when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.\n rotationX = rotation = 0;\n rotationY = 180 - rotationY;\n }\n scaleX = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(Math.sqrt(a * a + b * b + c * c));\n scaleY = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(Math.sqrt(a22 * a22 + a32 * a32));\n angle = $0cdfc2eaac330c87$var$_atan2(a12, a22);\n skewX = Math.abs(angle) > 0.0002 ? angle * $0cdfc2eaac330c87$var$_RAD2DEG : 0;\n perspective = a43 ? 1 / (a43 < 0 ? -a43 : a43) : 0;\n }\n if (cache.svg) {\n //sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).\n t1 = target.getAttribute(\"transform\");\n cache.forceCSS = target.setAttribute(\"transform\", \"\") || !$0cdfc2eaac330c87$var$_isNullTransform($0cdfc2eaac330c87$var$_getComputedProperty(target, $0cdfc2eaac330c87$var$_transformProp));\n t1 && target.setAttribute(\"transform\", t1);\n }\n }\n if (Math.abs(skewX) > 90 && Math.abs(skewX) < 270) {\n if (invertedScaleX) {\n scaleX *= -1;\n skewX += rotation <= 0 ? 180 : -180;\n rotation += rotation <= 0 ? 180 : -180;\n } else {\n scaleY *= -1;\n skewX += skewX <= 0 ? 180 : -180;\n }\n }\n uncache = uncache || cache.uncache;\n cache.x = x - ((cache.xPercent = x && (!uncache && cache.xPercent || (Math.round(target.offsetWidth / 2) === Math.round(-x) ? -50 : 0))) ? target.offsetWidth * cache.xPercent / 100 : 0) + px;\n cache.y = y - ((cache.yPercent = y && (!uncache && cache.yPercent || (Math.round(target.offsetHeight / 2) === Math.round(-y) ? -50 : 0))) ? target.offsetHeight * cache.yPercent / 100 : 0) + px;\n cache.z = z + px;\n cache.scaleX = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(scaleX);\n cache.scaleY = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(scaleY);\n cache.rotation = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(rotation) + deg;\n cache.rotationX = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(rotationX) + deg;\n cache.rotationY = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(rotationY) + deg;\n cache.skewX = skewX + deg;\n cache.skewY = skewY + deg;\n cache.transformPerspective = perspective + px;\n if (cache.zOrigin = parseFloat(origin.split(\" \")[2]) || 0) style[$0cdfc2eaac330c87$var$_transformOriginProp] = $0cdfc2eaac330c87$var$_firstTwoOnly(origin);\n cache.xOffset = cache.yOffset = 0;\n cache.force3D = (0, $21bb7f0d2894673a$export$4922bee768729a77).force3D;\n cache.renderTransform = cache.svg ? $0cdfc2eaac330c87$var$_renderSVGTransforms : $0cdfc2eaac330c87$var$_supports3D ? $0cdfc2eaac330c87$var$_renderCSSTransforms : $0cdfc2eaac330c87$var$_renderNon3DTransforms;\n cache.uncache = 0;\n return cache;\n}, $0cdfc2eaac330c87$var$_firstTwoOnly = function _firstTwoOnly(value) {\n return (value = value.split(\" \"))[0] + \" \" + value[1];\n}, //for handling transformOrigin values, stripping out the 3rd dimension\n$0cdfc2eaac330c87$var$_addPxTranslate = function _addPxTranslate(target, start, value) {\n var unit = (0, $21bb7f0d2894673a$export$65f2564e9a9b9222)(start);\n return (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(parseFloat(start) + parseFloat($0cdfc2eaac330c87$var$_convertToUnit(target, \"x\", value + \"px\", unit))) + unit;\n}, $0cdfc2eaac330c87$var$_renderNon3DTransforms = function _renderNon3DTransforms(ratio, cache) {\n cache.z = \"0px\";\n cache.rotationY = cache.rotationX = \"0deg\";\n cache.force3D = 0;\n $0cdfc2eaac330c87$var$_renderCSSTransforms(ratio, cache);\n}, $0cdfc2eaac330c87$var$_zeroDeg = \"0deg\", $0cdfc2eaac330c87$var$_zeroPx = \"0px\", $0cdfc2eaac330c87$var$_endParenthesis = \") \", $0cdfc2eaac330c87$var$_renderCSSTransforms = function _renderCSSTransforms(ratio, cache) {\n var _ref = cache || this, xPercent = _ref.xPercent, yPercent = _ref.yPercent, x = _ref.x, y = _ref.y, z = _ref.z, rotation = _ref.rotation, rotationY = _ref.rotationY, rotationX = _ref.rotationX, skewX = _ref.skewX, skewY = _ref.skewY, scaleX = _ref.scaleX, scaleY = _ref.scaleY, transformPerspective = _ref.transformPerspective, force3D = _ref.force3D, target = _ref.target, zOrigin = _ref.zOrigin, transforms = \"\", use3D = force3D === \"auto\" && ratio && ratio !== 1 || force3D === true; // Safari has a bug that causes it not to render 3D transform-origin values properly, so we force the z origin to 0, record it in the cache, and then do the math here to offset the translate values accordingly (basically do the 3D transform-origin part manually)\n if (zOrigin && (rotationX !== $0cdfc2eaac330c87$var$_zeroDeg || rotationY !== $0cdfc2eaac330c87$var$_zeroDeg)) {\n var angle = parseFloat(rotationY) * $0cdfc2eaac330c87$var$_DEG2RAD, a13 = Math.sin(angle), a33 = Math.cos(angle), cos;\n angle = parseFloat(rotationX) * $0cdfc2eaac330c87$var$_DEG2RAD;\n cos = Math.cos(angle);\n x = $0cdfc2eaac330c87$var$_addPxTranslate(target, x, a13 * cos * -zOrigin);\n y = $0cdfc2eaac330c87$var$_addPxTranslate(target, y, -Math.sin(angle) * -zOrigin);\n z = $0cdfc2eaac330c87$var$_addPxTranslate(target, z, a33 * cos * -zOrigin + zOrigin);\n }\n if (transformPerspective !== $0cdfc2eaac330c87$var$_zeroPx) transforms += \"perspective(\" + transformPerspective + $0cdfc2eaac330c87$var$_endParenthesis;\n if (xPercent || yPercent) transforms += \"translate(\" + xPercent + \"%, \" + yPercent + \"%) \";\n if (use3D || x !== $0cdfc2eaac330c87$var$_zeroPx || y !== $0cdfc2eaac330c87$var$_zeroPx || z !== $0cdfc2eaac330c87$var$_zeroPx) transforms += z !== $0cdfc2eaac330c87$var$_zeroPx || use3D ? \"translate3d(\" + x + \", \" + y + \", \" + z + \") \" : \"translate(\" + x + \", \" + y + $0cdfc2eaac330c87$var$_endParenthesis;\n if (rotation !== $0cdfc2eaac330c87$var$_zeroDeg) transforms += \"rotate(\" + rotation + $0cdfc2eaac330c87$var$_endParenthesis;\n if (rotationY !== $0cdfc2eaac330c87$var$_zeroDeg) transforms += \"rotateY(\" + rotationY + $0cdfc2eaac330c87$var$_endParenthesis;\n if (rotationX !== $0cdfc2eaac330c87$var$_zeroDeg) transforms += \"rotateX(\" + rotationX + $0cdfc2eaac330c87$var$_endParenthesis;\n if (skewX !== $0cdfc2eaac330c87$var$_zeroDeg || skewY !== $0cdfc2eaac330c87$var$_zeroDeg) transforms += \"skew(\" + skewX + \", \" + skewY + $0cdfc2eaac330c87$var$_endParenthesis;\n if (scaleX !== 1 || scaleY !== 1) transforms += \"scale(\" + scaleX + \", \" + scaleY + $0cdfc2eaac330c87$var$_endParenthesis;\n target.style[$0cdfc2eaac330c87$var$_transformProp] = transforms || \"translate(0, 0)\";\n}, $0cdfc2eaac330c87$var$_renderSVGTransforms = function _renderSVGTransforms(ratio, cache) {\n var _ref2 = cache || this, xPercent = _ref2.xPercent, yPercent = _ref2.yPercent, x = _ref2.x, y = _ref2.y, rotation = _ref2.rotation, skewX = _ref2.skewX, skewY = _ref2.skewY, scaleX = _ref2.scaleX, scaleY = _ref2.scaleY, target = _ref2.target, xOrigin = _ref2.xOrigin, yOrigin = _ref2.yOrigin, xOffset = _ref2.xOffset, yOffset = _ref2.yOffset, forceCSS = _ref2.forceCSS, tx = parseFloat(x), ty = parseFloat(y), a11, a21, a12, a22, temp;\n rotation = parseFloat(rotation);\n skewX = parseFloat(skewX);\n skewY = parseFloat(skewY);\n if (skewY) {\n //for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.\n skewY = parseFloat(skewY);\n skewX += skewY;\n rotation += skewY;\n }\n if (rotation || skewX) {\n rotation *= $0cdfc2eaac330c87$var$_DEG2RAD;\n skewX *= $0cdfc2eaac330c87$var$_DEG2RAD;\n a11 = Math.cos(rotation) * scaleX;\n a21 = Math.sin(rotation) * scaleX;\n a12 = Math.sin(rotation - skewX) * -scaleY;\n a22 = Math.cos(rotation - skewX) * scaleY;\n if (skewX) {\n skewY *= $0cdfc2eaac330c87$var$_DEG2RAD;\n temp = Math.tan(skewX - skewY);\n temp = Math.sqrt(1 + temp * temp);\n a12 *= temp;\n a22 *= temp;\n if (skewY) {\n temp = Math.tan(skewY);\n temp = Math.sqrt(1 + temp * temp);\n a11 *= temp;\n a21 *= temp;\n }\n }\n a11 = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(a11);\n a21 = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(a21);\n a12 = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(a12);\n a22 = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(a22);\n } else {\n a11 = scaleX;\n a22 = scaleY;\n a21 = a12 = 0;\n }\n if (tx && !~(x + \"\").indexOf(\"px\") || ty && !~(y + \"\").indexOf(\"px\")) {\n tx = $0cdfc2eaac330c87$var$_convertToUnit(target, \"x\", x, \"px\");\n ty = $0cdfc2eaac330c87$var$_convertToUnit(target, \"y\", y, \"px\");\n }\n if (xOrigin || yOrigin || xOffset || yOffset) {\n tx = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(tx + xOrigin - (xOrigin * a11 + yOrigin * a12) + xOffset);\n ty = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(ty + yOrigin - (xOrigin * a21 + yOrigin * a22) + yOffset);\n }\n if (xPercent || yPercent) {\n //The SVG spec doesn't support percentage-based translation in the \"transform\" attribute, so we merge it into the translation to simulate it.\n temp = target.getBBox();\n tx = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(tx + xPercent / 100 * temp.width);\n ty = (0, $21bb7f0d2894673a$export$9c8d725d65e13f94)(ty + yPercent / 100 * temp.height);\n }\n temp = \"matrix(\" + a11 + \",\" + a21 + \",\" + a12 + \",\" + a22 + \",\" + tx + \",\" + ty + \")\";\n target.setAttribute(\"transform\", temp);\n forceCSS && (target.style[$0cdfc2eaac330c87$var$_transformProp] = temp); //some browsers prioritize CSS transforms over the transform attribute. When we sense that the user has CSS transforms applied, we must overwrite them this way (otherwise some browser simply won't render the transform attribute changes!)\n}, $0cdfc2eaac330c87$var$_addRotationalPropTween = function _addRotationalPropTween(plugin, target, property, startNum, endValue) {\n var cap = 360, isString = (0, $21bb7f0d2894673a$export$f664476fd67145ca)(endValue), endNum = parseFloat(endValue) * (isString && ~endValue.indexOf(\"rad\") ? $0cdfc2eaac330c87$var$_RAD2DEG : 1), change = endNum - startNum, finalValue = startNum + change + \"deg\", direction, pt;\n if (isString) {\n direction = endValue.split(\"_\")[1];\n if (direction === \"short\") {\n change %= cap;\n if (change !== change % (cap / 2)) change += change < 0 ? cap : -cap;\n }\n if (direction === \"cw\" && change < 0) change = (change + cap * $0cdfc2eaac330c87$var$_bigNum) % cap - ~~(change / cap) * cap;\n else if (direction === \"ccw\" && change > 0) change = (change - cap * $0cdfc2eaac330c87$var$_bigNum) % cap - ~~(change / cap) * cap;\n }\n plugin._pt = pt = new (0, $21bb7f0d2894673a$export$3a67f7f44b1e838a)(plugin._pt, target, property, startNum, change, $0cdfc2eaac330c87$var$_renderPropWithEnd);\n pt.e = finalValue;\n pt.u = \"deg\";\n plugin._props.push(property);\n return pt;\n}, $0cdfc2eaac330c87$var$_assign = function _assign(target, source) {\n // Internet Explorer doesn't have Object.assign(), so we recreate it here.\n for(var p in source)target[p] = source[p];\n return target;\n}, $0cdfc2eaac330c87$var$_addRawTransformPTs = function _addRawTransformPTs(plugin, transforms, target) {\n //for handling cases where someone passes in a whole transform string, like transform: \"scale(2, 3) rotate(20deg) translateY(30em)\"\n var startCache = $0cdfc2eaac330c87$var$_assign({}, target._gsap), exclude = \"perspective,force3D,transformOrigin,svgOrigin\", style = target.style, endCache, p, startValue, endValue, startNum, endNum, startUnit, endUnit;\n if (startCache.svg) {\n startValue = target.getAttribute(\"transform\");\n target.setAttribute(\"transform\", \"\");\n style[$0cdfc2eaac330c87$var$_transformProp] = transforms;\n endCache = $0cdfc2eaac330c87$var$_parseTransform(target, 1);\n $0cdfc2eaac330c87$var$_removeProperty(target, $0cdfc2eaac330c87$var$_transformProp);\n target.setAttribute(\"transform\", startValue);\n } else {\n startValue = getComputedStyle(target)[$0cdfc2eaac330c87$var$_transformProp];\n style[$0cdfc2eaac330c87$var$_transformProp] = transforms;\n endCache = $0cdfc2eaac330c87$var$_parseTransform(target, 1);\n style[$0cdfc2eaac330c87$var$_transformProp] = startValue;\n }\n for(p in $0cdfc2eaac330c87$var$_transformProps){\n startValue = startCache[p];\n endValue = endCache[p];\n if (startValue !== endValue && exclude.indexOf(p) < 0) {\n //tweening to no perspective gives very unintuitive results - just keep the same perspective in that case.\n startUnit = (0, $21bb7f0d2894673a$export$65f2564e9a9b9222)(startValue);\n endUnit = (0, $21bb7f0d2894673a$export$65f2564e9a9b9222)(endValue);\n startNum = startUnit !== endUnit ? $0cdfc2eaac330c87$var$_convertToUnit(target, p, startValue, endUnit) : parseFloat(startValue);\n endNum = parseFloat(endValue);\n plugin._pt = new (0, $21bb7f0d2894673a$export$3a67f7f44b1e838a)(plugin._pt, endCache, p, startNum, endNum - startNum, $0cdfc2eaac330c87$var$_renderCSSProp);\n plugin._pt.u = endUnit || 0;\n plugin._props.push(p);\n }\n }\n $0cdfc2eaac330c87$var$_assign(endCache, startCache);\n}; // handle splitting apart padding, margin, borderWidth, and borderRadius into their 4 components. Firefox, for example, won't report borderRadius correctly - it will only do borderTopLeftRadius and the other corners. We also want to handle paddingTop, marginLeft, borderRightWidth, etc.\n(0, $21bb7f0d2894673a$export$f9000b814859f126)(\"padding,margin,Width,Radius\", function(name, index) {\n var t = \"Top\", r = \"Right\", b = \"Bottom\", l = \"Left\", props = (index < 3 ? [\n t,\n r,\n b,\n l\n ] : [\n t + l,\n t + r,\n b + r,\n b + l\n ]).map(function(side) {\n return index < 2 ? name + side : \"border\" + side + name;\n });\n $0cdfc2eaac330c87$var$_specialProps[index > 1 ? \"border\" + name : name] = function(plugin, target, property, endValue, tween) {\n var a, vars;\n if (arguments.length < 4) {\n // getter, passed target, property, and unit (from _get())\n a = props.map(function(prop) {\n return $0cdfc2eaac330c87$var$_get(plugin, prop, property);\n });\n vars = a.join(\" \");\n return vars.split(a[0]).length === 5 ? a[0] : vars;\n }\n a = (endValue + \"\").split(\" \");\n vars = {};\n props.forEach(function(prop, i) {\n return vars[prop] = a[i] = a[i] || a[(i - 1) / 2 | 0];\n });\n plugin.init(target, vars, tween);\n };\n});\nvar $0cdfc2eaac330c87$export$855822f522f18eef = {\n name: \"css\",\n register: $0cdfc2eaac330c87$var$_initCore,\n targetTest: function targetTest(target) {\n return target.style && target.nodeType;\n },\n init: function init(target, vars, tween, index, targets) {\n var props = this._props, style = target.style, startAt = tween.vars.startAt, startValue, endValue, endNum, startNum, type, specialProp, p, startUnit, endUnit, relative, isTransformRelated, transformPropTween, cache, smooth, hasPriority, inlineProps;\n $0cdfc2eaac330c87$var$_pluginInitted || $0cdfc2eaac330c87$var$_initCore(); // we may call init() multiple times on the same plugin instance, like when adding special properties, so make sure we don't overwrite the revert data or inlineProps\n this.styles = this.styles || $0cdfc2eaac330c87$var$_getStyleSaver(target);\n inlineProps = this.styles.props;\n this.tween = tween;\n for(p in vars){\n if (p === \"autoRound\") continue;\n endValue = vars[p];\n if ((0, $21bb7f0d2894673a$export$d305d8ec5d7c26b8)[p] && (0, $21bb7f0d2894673a$export$5c457b74208010cf)(p, vars, tween, index, target, targets)) continue;\n type = typeof endValue;\n specialProp = $0cdfc2eaac330c87$var$_specialProps[p];\n if (type === \"function\") {\n endValue = endValue.call(tween, index, target, targets);\n type = typeof endValue;\n }\n if (type === \"string\" && ~endValue.indexOf(\"random(\")) endValue = (0, $21bb7f0d2894673a$export$d5962a97e3cde94d)(endValue);\n if (specialProp) specialProp(this, target, p, endValue, tween) && (hasPriority = 1);\n else if (p.substr(0, 2) === \"--\") {\n //CSS variable\n startValue = (getComputedStyle(target).getPropertyValue(p) + \"\").trim();\n endValue += \"\";\n (0, $21bb7f0d2894673a$export$dd733e62515be2bd).lastIndex = 0;\n if (!(0, $21bb7f0d2894673a$export$dd733e62515be2bd).test(startValue)) {\n // colors don't have units\n startUnit = (0, $21bb7f0d2894673a$export$65f2564e9a9b9222)(startValue);\n endUnit = (0, $21bb7f0d2894673a$export$65f2564e9a9b9222)(endValue);\n }\n endUnit ? startUnit !== endUnit && (startValue = $0cdfc2eaac330c87$var$_convertToUnit(target, p, startValue, endUnit) + endUnit) : startUnit && (endValue += startUnit);\n this.add(style, \"setProperty\", startValue, endValue, index, targets, 0, 0, p);\n props.push(p);\n inlineProps.push(p, 0, style[p]);\n } else if (type !== \"undefined\") {\n if (startAt && p in startAt) {\n // in case someone hard-codes a complex value as the start, like top: \"calc(2vh / 2)\". Without this, it'd use the computed value (always in px)\n startValue = typeof startAt[p] === \"function\" ? startAt[p].call(tween, index, target, targets) : startAt[p];\n (0, $21bb7f0d2894673a$export$f664476fd67145ca)(startValue) && ~startValue.indexOf(\"random(\") && (startValue = (0, $21bb7f0d2894673a$export$d5962a97e3cde94d)(startValue));\n (0, $21bb7f0d2894673a$export$65f2564e9a9b9222)(startValue + \"\") || (startValue += (0, $21bb7f0d2894673a$export$4922bee768729a77).units[p] || (0, $21bb7f0d2894673a$export$65f2564e9a9b9222)($0cdfc2eaac330c87$var$_get(target, p)) || \"\"); // for cases when someone passes in a unitless value like {x: 100}; if we try setting translate(100, 0px) it won't work.\n (startValue + \"\").charAt(1) === \"=\" && (startValue = $0cdfc2eaac330c87$var$_get(target, p)); // can't work with relative values\n } else startValue = $0cdfc2eaac330c87$var$_get(target, p);\n startNum = parseFloat(startValue);\n relative = type === \"string\" && endValue.charAt(1) === \"=\" && endValue.substr(0, 2);\n relative && (endValue = endValue.substr(2));\n endNum = parseFloat(endValue);\n if (p in $0cdfc2eaac330c87$var$_propertyAliases) {\n if (p === \"autoAlpha\") {\n //special case where we control the visibility along with opacity. We still allow the opacity value to pass through and get tweened.\n if (startNum === 1 && $0cdfc2eaac330c87$var$_get(target, \"visibility\") === \"hidden\" && endNum) //if visibility is initially set to \"hidden\", we should interpret that as intent to make opacity 0 (a convenience)\n startNum = 0;\n inlineProps.push(\"visibility\", 0, style.visibility);\n $0cdfc2eaac330c87$var$_addNonTweeningPT(this, style, \"visibility\", startNum ? \"inherit\" : \"hidden\", endNum ? \"inherit\" : \"hidden\", !endNum);\n }\n if (p !== \"scale\" && p !== \"transform\") {\n p = $0cdfc2eaac330c87$var$_propertyAliases[p];\n ~p.indexOf(\",\") && (p = p.split(\",\")[0]);\n }\n }\n isTransformRelated = p in $0cdfc2eaac330c87$var$_transformProps; //--- TRANSFORM-RELATED ---\n if (isTransformRelated) {\n this.styles.save(p);\n if (!transformPropTween) {\n cache = target._gsap;\n cache.renderTransform && !vars.parseTransform || $0cdfc2eaac330c87$var$_parseTransform(target, vars.parseTransform); // if, for example, gsap.set(... {transform:\"translateX(50vw)\"}), the _get() call doesn't parse the transform, thus cache.renderTransform won't be set yet so force the parsing of the transform here.\n smooth = vars.smoothOrigin !== false && cache.smooth;\n transformPropTween = this._pt = new (0, $21bb7f0d2894673a$export$3a67f7f44b1e838a)(this._pt, style, $0cdfc2eaac330c87$var$_transformProp, 0, 1, cache.renderTransform, cache, 0, -1); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)\n transformPropTween.dep = 1; //flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.\n }\n if (p === \"scale\") {\n this._pt = new (0, $21bb7f0d2894673a$export$3a67f7f44b1e838a)(this._pt, cache, \"scaleY\", cache.scaleY, (relative ? (0, $21bb7f0d2894673a$export$dac762bc6301b560)(cache.scaleY, relative + endNum) : endNum) - cache.scaleY || 0, $0cdfc2eaac330c87$var$_renderCSSProp);\n this._pt.u = 0;\n props.push(\"scaleY\", p);\n p += \"X\";\n } else if (p === \"transformOrigin\") {\n inlineProps.push($0cdfc2eaac330c87$var$_transformOriginProp, 0, style[$0cdfc2eaac330c87$var$_transformOriginProp]);\n endValue = $0cdfc2eaac330c87$var$_convertKeywordsToPercentages(endValue); //in case something like \"left top\" or \"bottom right\" is passed in. Convert to percentages.\n if (cache.svg) $0cdfc2eaac330c87$var$_applySVGOrigin(target, endValue, 0, smooth, 0, this);\n else {\n endUnit = parseFloat(endValue.split(\" \")[2]) || 0; //handle the zOrigin separately!\n endUnit !== cache.zOrigin && $0cdfc2eaac330c87$var$_addNonTweeningPT(this, cache, \"zOrigin\", cache.zOrigin, endUnit);\n $0cdfc2eaac330c87$var$_addNonTweeningPT(this, style, p, $0cdfc2eaac330c87$var$_firstTwoOnly(startValue), $0cdfc2eaac330c87$var$_firstTwoOnly(endValue));\n }\n continue;\n } else if (p === \"svgOrigin\") {\n $0cdfc2eaac330c87$var$_applySVGOrigin(target, endValue, 1, smooth, 0, this);\n continue;\n } else if (p in $0cdfc2eaac330c87$var$_rotationalProperties) {\n $0cdfc2eaac330c87$var$_addRotationalPropTween(this, cache, p, startNum, relative ? (0, $21bb7f0d2894673a$export$dac762bc6301b560)(startNum, relative + endValue) : endValue);\n continue;\n } else if (p === \"smoothOrigin\") {\n $0cdfc2eaac330c87$var$_addNonTweeningPT(this, cache, \"smooth\", cache.smooth, endValue);\n continue;\n } else if (p === \"force3D\") {\n cache[p] = endValue;\n continue;\n } else if (p === \"transform\") {\n $0cdfc2eaac330c87$var$_addRawTransformPTs(this, endValue, target);\n continue;\n }\n } else if (!(p in style)) p = $0cdfc2eaac330c87$export$8cbef5dd49a09c8b(p) || p;\n if (isTransformRelated || (endNum || endNum === 0) && (startNum || startNum === 0) && !$0cdfc2eaac330c87$var$_complexExp.test(endValue) && p in style) {\n startUnit = (startValue + \"\").substr((startNum + \"\").length);\n endNum || (endNum = 0); // protect against NaN\n endUnit = (0, $21bb7f0d2894673a$export$65f2564e9a9b9222)(endValue) || (p in (0, $21bb7f0d2894673a$export$4922bee768729a77).units ? (0, $21bb7f0d2894673a$export$4922bee768729a77).units[p] : startUnit);\n startUnit !== endUnit && (startNum = $0cdfc2eaac330c87$var$_convertToUnit(target, p, startValue, endUnit));\n this._pt = new (0, $21bb7f0d2894673a$export$3a67f7f44b1e838a)(this._pt, isTransformRelated ? cache : style, p, startNum, (relative ? (0, $21bb7f0d2894673a$export$dac762bc6301b560)(startNum, relative + endNum) : endNum) - startNum, !isTransformRelated && (endUnit === \"px\" || p === \"zIndex\") && vars.autoRound !== false ? $0cdfc2eaac330c87$var$_renderRoundedCSSProp : $0cdfc2eaac330c87$var$_renderCSSProp);\n this._pt.u = endUnit || 0;\n if (startUnit !== endUnit && endUnit !== \"%\") {\n //when the tween goes all the way back to the beginning, we need to revert it to the OLD/ORIGINAL value (with those units). We record that as a \"b\" (beginning) property and point to a render method that handles that. (performance optimization)\n this._pt.b = startValue;\n this._pt.r = $0cdfc2eaac330c87$var$_renderCSSPropWithBeginning;\n }\n } else if (!(p in style)) {\n if (p in target) //maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.\n this.add(target, p, startValue || target[p], relative ? relative + endValue : endValue, index, targets);\n else if (p !== \"parseTransform\") {\n (0, $21bb7f0d2894673a$export$7fb54635790b59a5)(p, endValue);\n continue;\n }\n } else $0cdfc2eaac330c87$var$_tweenComplexCSSString.call(this, target, p, startValue, relative ? relative + endValue : endValue);\n isTransformRelated || (p in style ? inlineProps.push(p, 0, style[p]) : inlineProps.push(p, 1, startValue || target[p]));\n props.push(p);\n }\n }\n hasPriority && (0, $21bb7f0d2894673a$export$eed5824f53346d57)(this);\n },\n render: function render(ratio, data) {\n if (data.tween._time || !$0cdfc2eaac330c87$var$_reverting()) {\n var pt = data._pt;\n while(pt){\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n } else data.styles.revert();\n },\n get: $0cdfc2eaac330c87$var$_get,\n aliases: $0cdfc2eaac330c87$var$_propertyAliases,\n getSetter: function getSetter(target, property, plugin) {\n //returns a setter function that accepts target, property, value and applies it accordingly. Remember, properties like \"x\" aren't as simple as target.style.property = value because they've got to be applied to a proxy object and then merged into a transform string in a renderer.\n var p = $0cdfc2eaac330c87$var$_propertyAliases[property];\n p && p.indexOf(\",\") < 0 && (property = p);\n return property in $0cdfc2eaac330c87$var$_transformProps && property !== $0cdfc2eaac330c87$var$_transformOriginProp && (target._gsap.x || $0cdfc2eaac330c87$var$_get(target, \"x\")) ? plugin && $0cdfc2eaac330c87$var$_recentSetterPlugin === plugin ? property === \"scale\" ? $0cdfc2eaac330c87$var$_setterScale : $0cdfc2eaac330c87$var$_setterTransform : ($0cdfc2eaac330c87$var$_recentSetterPlugin = plugin || {}, property === \"scale\" ? $0cdfc2eaac330c87$var$_setterScaleWithRender : $0cdfc2eaac330c87$var$_setterTransformWithRender) : target.style && !(0, $21bb7f0d2894673a$export$a8178c063a9fd3a1)(target.style[property]) ? $0cdfc2eaac330c87$var$_setterCSSStyle : ~property.indexOf(\"-\") ? $0cdfc2eaac330c87$var$_setterCSSProp : (0, $21bb7f0d2894673a$export$d60fbc1e0278aaf0)(target, property);\n },\n core: {\n _removeProperty: $0cdfc2eaac330c87$var$_removeProperty,\n _getMatrix: $0cdfc2eaac330c87$var$_getMatrix\n }\n};\n(0, $21bb7f0d2894673a$export$99ee26438460406a).utils.checkPrefix = $0cdfc2eaac330c87$export$8cbef5dd49a09c8b;\n(0, $21bb7f0d2894673a$export$99ee26438460406a).core.getStyleSaver = $0cdfc2eaac330c87$var$_getStyleSaver;\n(function(positionAndScale, rotation, others, aliases) {\n var all = (0, $21bb7f0d2894673a$export$f9000b814859f126)(positionAndScale + \",\" + rotation + \",\" + others, function(name) {\n $0cdfc2eaac330c87$var$_transformProps[name] = 1;\n });\n (0, $21bb7f0d2894673a$export$f9000b814859f126)(rotation, function(name) {\n (0, $21bb7f0d2894673a$export$4922bee768729a77).units[name] = \"deg\";\n $0cdfc2eaac330c87$var$_rotationalProperties[name] = 1;\n });\n $0cdfc2eaac330c87$var$_propertyAliases[all[13]] = positionAndScale + \",\" + rotation;\n (0, $21bb7f0d2894673a$export$f9000b814859f126)(aliases, function(name) {\n var split = name.split(\":\");\n $0cdfc2eaac330c87$var$_propertyAliases[split[1]] = all[split[0]];\n });\n})(\"x,y,z,scale,scaleX,scaleY,xPercent,yPercent\", \"rotation,rotationX,rotationY,skewX,skewY\", \"transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective\", \"0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY\");\n(0, $21bb7f0d2894673a$export$f9000b814859f126)(\"x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective\", function(name) {\n (0, $21bb7f0d2894673a$export$4922bee768729a77).units[name] = \"px\";\n});\n(0, $21bb7f0d2894673a$export$99ee26438460406a).registerPlugin($0cdfc2eaac330c87$export$855822f522f18eef);\n\n\nvar $357b3f2d5f2ec9d5$export$99ee26438460406a = (0, $21bb7f0d2894673a$export$99ee26438460406a).registerPlugin((0, $0cdfc2eaac330c87$export$855822f522f18eef)) || (0, $21bb7f0d2894673a$export$99ee26438460406a), // to protect from tree shaking\n$357b3f2d5f2ec9d5$export$7b23975ad686bf91 = $357b3f2d5f2ec9d5$export$99ee26438460406a.core.Tween;\n\n\n/*!\n * ScrollTrigger 3.11.5\n * https://greensock.com\n *\n * @license Copyright 2008-2023, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/ /* eslint-disable */ function $d7385dda6eeeec57$var$_defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction $d7385dda6eeeec57$var$_createClass(Constructor, protoProps, staticProps) {\n if (protoProps) $d7385dda6eeeec57$var$_defineProperties(Constructor.prototype, protoProps);\n if (staticProps) $d7385dda6eeeec57$var$_defineProperties(Constructor, staticProps);\n return Constructor;\n}\n/*!\n * Observer 3.11.5\n * https://greensock.com\n *\n * @license Copyright 2008-2023, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/ /* eslint-disable */ var $d7385dda6eeeec57$var$gsap, $d7385dda6eeeec57$var$_coreInitted, $d7385dda6eeeec57$var$_clamp, $d7385dda6eeeec57$var$_win, $d7385dda6eeeec57$var$_doc, $d7385dda6eeeec57$var$_docEl, $d7385dda6eeeec57$var$_body, $d7385dda6eeeec57$var$_isTouch, $d7385dda6eeeec57$var$_pointerType, $d7385dda6eeeec57$var$ScrollTrigger, $d7385dda6eeeec57$var$_root, $d7385dda6eeeec57$var$_normalizer, $d7385dda6eeeec57$var$_eventTypes, $d7385dda6eeeec57$var$_context, $d7385dda6eeeec57$var$_getGSAP = function _getGSAP() {\n return $d7385dda6eeeec57$var$gsap || typeof window !== \"undefined\" && ($d7385dda6eeeec57$var$gsap = window.gsap) && $d7385dda6eeeec57$var$gsap.registerPlugin && $d7385dda6eeeec57$var$gsap;\n}, $d7385dda6eeeec57$var$_passThrough = function _passThrough(p) {\n return p;\n}, $d7385dda6eeeec57$var$_startup = 1, $d7385dda6eeeec57$var$_observers = [], $d7385dda6eeeec57$export$3cd1cee43d19b683 = [], $d7385dda6eeeec57$export$d8e56d510a804d0a = [], $d7385dda6eeeec57$var$_getTime = Date.now, $d7385dda6eeeec57$var$_bridge = function _bridge(name, value) {\n return value;\n}, $d7385dda6eeeec57$var$_integrate = function _integrate() {\n var core = $d7385dda6eeeec57$var$ScrollTrigger.core, data = core.bridge || {}, scrollers = core._scrollers, proxies = core._proxies;\n scrollers.push.apply(scrollers, $d7385dda6eeeec57$export$3cd1cee43d19b683);\n proxies.push.apply(proxies, $d7385dda6eeeec57$export$d8e56d510a804d0a);\n $d7385dda6eeeec57$export$3cd1cee43d19b683 = scrollers;\n $d7385dda6eeeec57$export$d8e56d510a804d0a = proxies;\n $d7385dda6eeeec57$var$_bridge = function _bridge(name, value) {\n return data[name](value);\n };\n}, $d7385dda6eeeec57$export$6078f1ef08b38af9 = function _getProxyProp(element, property) {\n return ~$d7385dda6eeeec57$export$d8e56d510a804d0a.indexOf(element) && $d7385dda6eeeec57$export$d8e56d510a804d0a[$d7385dda6eeeec57$export$d8e56d510a804d0a.indexOf(element) + 1][property];\n}, $d7385dda6eeeec57$export$4330f3a92e5d2e94 = function _isViewport(el) {\n return !!~$d7385dda6eeeec57$var$_root.indexOf(el);\n}, $d7385dda6eeeec57$var$_addListener = function _addListener(element, type, func, nonPassive, capture) {\n return element.addEventListener(type, func, {\n passive: !nonPassive,\n capture: !!capture\n });\n}, $d7385dda6eeeec57$var$_removeListener = function _removeListener(element, type, func, capture) {\n return element.removeEventListener(type, func, !!capture);\n}, $d7385dda6eeeec57$var$_scrollLeft = \"scrollLeft\", $d7385dda6eeeec57$var$_scrollTop = \"scrollTop\", $d7385dda6eeeec57$var$_onScroll = function _onScroll() {\n return $d7385dda6eeeec57$var$_normalizer && $d7385dda6eeeec57$var$_normalizer.isPressed || $d7385dda6eeeec57$export$3cd1cee43d19b683.cache++;\n}, $d7385dda6eeeec57$var$_scrollCacheFunc = function _scrollCacheFunc(f, doNotCache) {\n var cachingFunc = function cachingFunc(value) {\n // since reading the scrollTop/scrollLeft/pageOffsetY/pageOffsetX can trigger a layout, this function allows us to cache the value so it only gets read fresh after a \"scroll\" event fires (or while we're refreshing because that can lengthen the page and alter the scroll position). when \"soft\" is true, that means don't actually set the scroll, but cache the new value instead (useful in ScrollSmoother)\n if (value || value === 0) {\n $d7385dda6eeeec57$var$_startup && ($d7385dda6eeeec57$var$_win.history.scrollRestoration = \"manual\"); // otherwise the new position will get overwritten by the browser onload.\n var isNormalizing = $d7385dda6eeeec57$var$_normalizer && $d7385dda6eeeec57$var$_normalizer.isPressed;\n value = cachingFunc.v = Math.round(value) || ($d7385dda6eeeec57$var$_normalizer && $d7385dda6eeeec57$var$_normalizer.iOS ? 1 : 0); //TODO: iOS Bug: if you allow it to go to 0, Safari can start to report super strange (wildly inaccurate) touch positions!\n f(value);\n cachingFunc.cacheID = $d7385dda6eeeec57$export$3cd1cee43d19b683.cache;\n isNormalizing && $d7385dda6eeeec57$var$_bridge(\"ss\", value); // set scroll (notify ScrollTrigger so it can dispatch a \"scrollStart\" event if necessary\n } else if (doNotCache || $d7385dda6eeeec57$export$3cd1cee43d19b683.cache !== cachingFunc.cacheID || $d7385dda6eeeec57$var$_bridge(\"ref\")) {\n cachingFunc.cacheID = $d7385dda6eeeec57$export$3cd1cee43d19b683.cache;\n cachingFunc.v = f();\n }\n return cachingFunc.v + cachingFunc.offset;\n };\n cachingFunc.offset = 0;\n return f && cachingFunc;\n}, $d7385dda6eeeec57$export$b2cabb342cb0ebe1 = {\n s: $d7385dda6eeeec57$var$_scrollLeft,\n p: \"left\",\n p2: \"Left\",\n os: \"right\",\n os2: \"Right\",\n d: \"width\",\n d2: \"Width\",\n a: \"x\",\n sc: $d7385dda6eeeec57$var$_scrollCacheFunc(function(value) {\n return arguments.length ? $d7385dda6eeeec57$var$_win.scrollTo(value, $d7385dda6eeeec57$export$8e40fc98ff518e9d.sc()) : $d7385dda6eeeec57$var$_win.pageXOffset || $d7385dda6eeeec57$var$_doc[$d7385dda6eeeec57$var$_scrollLeft] || $d7385dda6eeeec57$var$_docEl[$d7385dda6eeeec57$var$_scrollLeft] || $d7385dda6eeeec57$var$_body[$d7385dda6eeeec57$var$_scrollLeft] || 0;\n })\n}, $d7385dda6eeeec57$export$8e40fc98ff518e9d = {\n s: $d7385dda6eeeec57$var$_scrollTop,\n p: \"top\",\n p2: \"Top\",\n os: \"bottom\",\n os2: \"Bottom\",\n d: \"height\",\n d2: \"Height\",\n a: \"y\",\n op: $d7385dda6eeeec57$export$b2cabb342cb0ebe1,\n sc: $d7385dda6eeeec57$var$_scrollCacheFunc(function(value) {\n return arguments.length ? $d7385dda6eeeec57$var$_win.scrollTo($d7385dda6eeeec57$export$b2cabb342cb0ebe1.sc(), value) : $d7385dda6eeeec57$var$_win.pageYOffset || $d7385dda6eeeec57$var$_doc[$d7385dda6eeeec57$var$_scrollTop] || $d7385dda6eeeec57$var$_docEl[$d7385dda6eeeec57$var$_scrollTop] || $d7385dda6eeeec57$var$_body[$d7385dda6eeeec57$var$_scrollTop] || 0;\n })\n}, $d7385dda6eeeec57$export$937374fea3f88711 = function _getTarget(t) {\n return $d7385dda6eeeec57$var$gsap.utils.toArray(t)[0] || (typeof t === \"string\" && $d7385dda6eeeec57$var$gsap.config().nullTargetWarn !== false ? console.warn(\"Element not found:\", t) : null);\n}, $d7385dda6eeeec57$export$8665aac53dad5647 = function _getScrollFunc(element, _ref) {\n var s = _ref.s, sc = _ref.sc;\n // we store the scroller functions in an alternating sequenced Array like [element, verticalScrollFunc, horizontalScrollFunc, ...] so that we can minimize memory, maximize performance, and we also record the last position as a \".rec\" property in order to revert to that after refreshing to ensure things don't shift around.\n $d7385dda6eeeec57$export$4330f3a92e5d2e94(element) && (element = $d7385dda6eeeec57$var$_doc.scrollingElement || $d7385dda6eeeec57$var$_docEl);\n var i = $d7385dda6eeeec57$export$3cd1cee43d19b683.indexOf(element), offset = sc === $d7385dda6eeeec57$export$8e40fc98ff518e9d.sc ? 1 : 2;\n !~i && (i = $d7385dda6eeeec57$export$3cd1cee43d19b683.push(element) - 1);\n $d7385dda6eeeec57$export$3cd1cee43d19b683[i + offset] || element.addEventListener(\"scroll\", $d7385dda6eeeec57$var$_onScroll); // clear the cache when a scroll occurs\n var prev = $d7385dda6eeeec57$export$3cd1cee43d19b683[i + offset], func = prev || ($d7385dda6eeeec57$export$3cd1cee43d19b683[i + offset] = $d7385dda6eeeec57$var$_scrollCacheFunc($d7385dda6eeeec57$export$6078f1ef08b38af9(element, s), true) || ($d7385dda6eeeec57$export$4330f3a92e5d2e94(element) ? sc : $d7385dda6eeeec57$var$_scrollCacheFunc(function(value) {\n return arguments.length ? element[s] = value : element[s];\n })));\n func.target = element;\n prev || (func.smooth = $d7385dda6eeeec57$var$gsap.getProperty(element, \"scrollBehavior\") === \"smooth\"); // only set it the first time (don't reset every time a scrollFunc is requested because perhaps it happens during a refresh() when it's disabled in ScrollTrigger.\n return func;\n}, $d7385dda6eeeec57$export$5de019f4480f0f8d = function _getVelocityProp(value, minTimeRefresh, useDelta) {\n var v1 = value, v2 = value, t1 = $d7385dda6eeeec57$var$_getTime(), t2 = t1, min = minTimeRefresh || 50, dropToZeroTime = Math.max(500, min * 3), update = function update(value, force) {\n var t = $d7385dda6eeeec57$var$_getTime();\n if (force || t - t1 > min) {\n v2 = v1;\n v1 = value;\n t2 = t1;\n t1 = t;\n } else if (useDelta) v1 += value;\n else // not totally necessary, but makes it a bit more accurate by adjusting the v1 value according to the new slope. This way we're not just ignoring the incoming data. Removing for now because it doesn't seem to make much practical difference and it's probably not worth the kb.\n v1 = v2 + (value - v2) / (t - t2) * (t1 - t2);\n }, reset = function reset() {\n v2 = v1 = useDelta ? 0 : v1;\n t2 = t1 = 0;\n }, getVelocity = function getVelocity(latestValue) {\n var tOld = t2, vOld = v2, t = $d7385dda6eeeec57$var$_getTime();\n (latestValue || latestValue === 0) && latestValue !== v1 && update(latestValue);\n return t1 === t2 || t - t2 > dropToZeroTime ? 0 : (v1 + (useDelta ? vOld : -vOld)) / ((useDelta ? t : t1) - tOld) * 1000;\n };\n return {\n update: update,\n reset: reset,\n getVelocity: getVelocity\n };\n}, $d7385dda6eeeec57$var$_getEvent = function _getEvent(e, preventDefault) {\n preventDefault && !e._gsapAllow && e.preventDefault();\n return e.changedTouches ? e.changedTouches[0] : e;\n}, $d7385dda6eeeec57$var$_getAbsoluteMax = function _getAbsoluteMax(a) {\n var max = Math.max.apply(Math, a), min = Math.min.apply(Math, a);\n return Math.abs(max) >= Math.abs(min) ? max : min;\n}, $d7385dda6eeeec57$var$_setScrollTrigger = function _setScrollTrigger() {\n $d7385dda6eeeec57$var$ScrollTrigger = $d7385dda6eeeec57$var$gsap.core.globals().ScrollTrigger;\n $d7385dda6eeeec57$var$ScrollTrigger && $d7385dda6eeeec57$var$ScrollTrigger.core && $d7385dda6eeeec57$var$_integrate();\n}, $d7385dda6eeeec57$var$_initCore = function _initCore(core) {\n $d7385dda6eeeec57$var$gsap = core || $d7385dda6eeeec57$var$_getGSAP();\n if ($d7385dda6eeeec57$var$gsap && typeof document !== \"undefined\" && document.body) {\n $d7385dda6eeeec57$var$_win = window;\n $d7385dda6eeeec57$var$_doc = document;\n $d7385dda6eeeec57$var$_docEl = $d7385dda6eeeec57$var$_doc.documentElement;\n $d7385dda6eeeec57$var$_body = $d7385dda6eeeec57$var$_doc.body;\n $d7385dda6eeeec57$var$_root = [\n $d7385dda6eeeec57$var$_win,\n $d7385dda6eeeec57$var$_doc,\n $d7385dda6eeeec57$var$_docEl,\n $d7385dda6eeeec57$var$_body\n ];\n $d7385dda6eeeec57$var$_clamp = $d7385dda6eeeec57$var$gsap.utils.clamp;\n $d7385dda6eeeec57$var$_context = $d7385dda6eeeec57$var$gsap.core.context || function() {};\n $d7385dda6eeeec57$var$_pointerType = \"onpointerenter\" in $d7385dda6eeeec57$var$_body ? \"pointer\" : \"mouse\"; // isTouch is 0 if no touch, 1 if ONLY touch, and 2 if it can accommodate touch but also other types like mouse/pointer.\n $d7385dda6eeeec57$var$_isTouch = $d7385dda6eeeec57$export$c1cbdee04e18ea8b.isTouch = $d7385dda6eeeec57$var$_win.matchMedia && $d7385dda6eeeec57$var$_win.matchMedia(\"(hover: none), (pointer: coarse)\").matches ? 1 : \"ontouchstart\" in $d7385dda6eeeec57$var$_win || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0 ? 2 : 0;\n $d7385dda6eeeec57$var$_eventTypes = $d7385dda6eeeec57$export$c1cbdee04e18ea8b.eventTypes = (\"ontouchstart\" in $d7385dda6eeeec57$var$_docEl ? \"touchstart,touchmove,touchcancel,touchend\" : !(\"onpointerdown\" in $d7385dda6eeeec57$var$_docEl) ? \"mousedown,mousemove,mouseup,mouseup\" : \"pointerdown,pointermove,pointercancel,pointerup\").split(\",\");\n setTimeout(function() {\n return $d7385dda6eeeec57$var$_startup = 0;\n }, 500);\n $d7385dda6eeeec57$var$_setScrollTrigger();\n $d7385dda6eeeec57$var$_coreInitted = 1;\n }\n return $d7385dda6eeeec57$var$_coreInitted;\n};\n$d7385dda6eeeec57$export$b2cabb342cb0ebe1.op = $d7385dda6eeeec57$export$8e40fc98ff518e9d;\n$d7385dda6eeeec57$export$3cd1cee43d19b683.cache = 0;\nvar $d7385dda6eeeec57$export$c1cbdee04e18ea8b = /*#__PURE__*/ function() {\n function Observer(vars) {\n this.init(vars);\n }\n var _proto = Observer.prototype;\n _proto.init = function init(vars) {\n $d7385dda6eeeec57$var$_coreInitted || $d7385dda6eeeec57$var$_initCore($d7385dda6eeeec57$var$gsap) || console.warn(\"Please gsap.registerPlugin(Observer)\");\n $d7385dda6eeeec57$var$ScrollTrigger || $d7385dda6eeeec57$var$_setScrollTrigger();\n var tolerance = vars.tolerance, dragMinimum = vars.dragMinimum, type = vars.type, target = vars.target, lineHeight = vars.lineHeight, debounce = vars.debounce, preventDefault = vars.preventDefault, onStop = vars.onStop, onStopDelay = vars.onStopDelay, ignore = vars.ignore, wheelSpeed = vars.wheelSpeed, event = vars.event, onDragStart = vars.onDragStart, onDragEnd = vars.onDragEnd, onDrag = vars.onDrag, onPress = vars.onPress, onRelease = vars.onRelease, onRight = vars.onRight, onLeft = vars.onLeft, onUp = vars.onUp, onDown = vars.onDown, onChangeX = vars.onChangeX, onChangeY = vars.onChangeY, onChange = vars.onChange, onToggleX = vars.onToggleX, onToggleY = vars.onToggleY, onHover = vars.onHover, onHoverEnd = vars.onHoverEnd, onMove = vars.onMove, ignoreCheck = vars.ignoreCheck, isNormalizer = vars.isNormalizer, onGestureStart = vars.onGestureStart, onGestureEnd = vars.onGestureEnd, onWheel = vars.onWheel, onEnable = vars.onEnable, onDisable = vars.onDisable, onClick = vars.onClick, scrollSpeed = vars.scrollSpeed, capture = vars.capture, allowClicks = vars.allowClicks, lockAxis = vars.lockAxis, onLockAxis = vars.onLockAxis;\n this.target = target = $d7385dda6eeeec57$export$937374fea3f88711(target) || $d7385dda6eeeec57$var$_docEl;\n this.vars = vars;\n ignore && (ignore = $d7385dda6eeeec57$var$gsap.utils.toArray(ignore));\n tolerance = tolerance || 1e-9;\n dragMinimum = dragMinimum || 0;\n wheelSpeed = wheelSpeed || 1;\n scrollSpeed = scrollSpeed || 1;\n type = type || \"wheel,touch,pointer\";\n debounce = debounce !== false;\n lineHeight || (lineHeight = parseFloat($d7385dda6eeeec57$var$_win.getComputedStyle($d7385dda6eeeec57$var$_body).lineHeight) || 22); // note: browser may report \"normal\", so default to 22.\n var id, onStopDelayedCall, dragged, moved, wheeled, locked, axis, self = this, prevDeltaX = 0, prevDeltaY = 0, scrollFuncX = $d7385dda6eeeec57$export$8665aac53dad5647(target, $d7385dda6eeeec57$export$b2cabb342cb0ebe1), scrollFuncY = $d7385dda6eeeec57$export$8665aac53dad5647(target, $d7385dda6eeeec57$export$8e40fc98ff518e9d), scrollX = scrollFuncX(), scrollY = scrollFuncY(), limitToTouch = ~type.indexOf(\"touch\") && !~type.indexOf(\"pointer\") && $d7385dda6eeeec57$var$_eventTypes[0] === \"pointerdown\", // for devices that accommodate mouse events and touch events, we need to distinguish.\n isViewport = $d7385dda6eeeec57$export$4330f3a92e5d2e94(target), ownerDoc = target.ownerDocument || $d7385dda6eeeec57$var$_doc, deltaX = [\n 0,\n 0,\n 0\n ], // wheel, scroll, pointer/touch\n deltaY = [\n 0,\n 0,\n 0\n ], onClickTime = 0, clickCapture = function clickCapture() {\n return onClickTime = $d7385dda6eeeec57$var$_getTime();\n }, _ignoreCheck = function _ignoreCheck(e, isPointerOrTouch) {\n return (self.event = e) && ignore && ~ignore.indexOf(e.target) || isPointerOrTouch && limitToTouch && e.pointerType !== \"touch\" || ignoreCheck && ignoreCheck(e, isPointerOrTouch);\n }, onStopFunc = function onStopFunc() {\n self._vx.reset();\n self._vy.reset();\n onStopDelayedCall.pause();\n onStop && onStop(self);\n }, update = function update() {\n var dx = self.deltaX = $d7385dda6eeeec57$var$_getAbsoluteMax(deltaX), dy = self.deltaY = $d7385dda6eeeec57$var$_getAbsoluteMax(deltaY), changedX = Math.abs(dx) >= tolerance, changedY = Math.abs(dy) >= tolerance;\n onChange && (changedX || changedY) && onChange(self, dx, dy, deltaX, deltaY); // in ScrollTrigger.normalizeScroll(), we need to know if it was touch/pointer so we need access to the deltaX/deltaY Arrays before we clear them out.\n if (changedX) {\n onRight && self.deltaX > 0 && onRight(self);\n onLeft && self.deltaX < 0 && onLeft(self);\n onChangeX && onChangeX(self);\n onToggleX && self.deltaX < 0 !== prevDeltaX < 0 && onToggleX(self);\n prevDeltaX = self.deltaX;\n deltaX[0] = deltaX[1] = deltaX[2] = 0;\n }\n if (changedY) {\n onDown && self.deltaY > 0 && onDown(self);\n onUp && self.deltaY < 0 && onUp(self);\n onChangeY && onChangeY(self);\n onToggleY && self.deltaY < 0 !== prevDeltaY < 0 && onToggleY(self);\n prevDeltaY = self.deltaY;\n deltaY[0] = deltaY[1] = deltaY[2] = 0;\n }\n if (moved || dragged) {\n onMove && onMove(self);\n if (dragged) {\n onDrag(self);\n dragged = false;\n }\n moved = false;\n }\n locked && (locked = false, true) && onLockAxis && onLockAxis(self);\n if (wheeled) {\n onWheel(self);\n wheeled = false;\n }\n id = 0;\n }, onDelta = function onDelta(x, y, index) {\n deltaX[index] += x;\n deltaY[index] += y;\n self._vx.update(x);\n self._vy.update(y);\n debounce ? id || (id = requestAnimationFrame(update)) : update();\n }, onTouchOrPointerDelta = function onTouchOrPointerDelta(x, y) {\n if (lockAxis && !axis) {\n self.axis = axis = Math.abs(x) > Math.abs(y) ? \"x\" : \"y\";\n locked = true;\n }\n if (axis !== \"y\") {\n deltaX[2] += x;\n self._vx.update(x, true); // update the velocity as frequently as possible instead of in the debounced function so that very quick touch-scrolls (flicks) feel natural. If it's the mouse/touch/pointer, force it so that we get snappy/accurate momentum scroll.\n }\n if (axis !== \"x\") {\n deltaY[2] += y;\n self._vy.update(y, true);\n }\n debounce ? id || (id = requestAnimationFrame(update)) : update();\n }, _onDrag = function _onDrag(e) {\n if (_ignoreCheck(e, 1)) return;\n e = $d7385dda6eeeec57$var$_getEvent(e, preventDefault);\n var x = e.clientX, y = e.clientY, dx = x - self.x, dy = y - self.y, isDragging = self.isDragging;\n self.x = x;\n self.y = y;\n if (isDragging || Math.abs(self.startX - x) >= dragMinimum || Math.abs(self.startY - y) >= dragMinimum) {\n onDrag && (dragged = true);\n isDragging || (self.isDragging = true);\n onTouchOrPointerDelta(dx, dy);\n isDragging || onDragStart && onDragStart(self);\n }\n }, _onPress = self.onPress = function(e) {\n if (_ignoreCheck(e, 1) || e && e.button) return;\n self.axis = axis = null;\n onStopDelayedCall.pause();\n self.isPressed = true;\n e = $d7385dda6eeeec57$var$_getEvent(e); // note: may need to preventDefault(?) Won't side-scroll on iOS Safari if we do, though.\n prevDeltaX = prevDeltaY = 0;\n self.startX = self.x = e.clientX;\n self.startY = self.y = e.clientY;\n self._vx.reset(); // otherwise the t2 may be stale if the user touches and flicks super fast and releases in less than 2 requestAnimationFrame ticks, causing velocity to be 0.\n self._vy.reset();\n $d7385dda6eeeec57$var$_addListener(isNormalizer ? target : ownerDoc, $d7385dda6eeeec57$var$_eventTypes[1], _onDrag, preventDefault, true);\n self.deltaX = self.deltaY = 0;\n onPress && onPress(self);\n }, _onRelease = self.onRelease = function(e) {\n if (_ignoreCheck(e, 1)) return;\n $d7385dda6eeeec57$var$_removeListener(isNormalizer ? target : ownerDoc, $d7385dda6eeeec57$var$_eventTypes[1], _onDrag, true);\n var isTrackingDrag = !isNaN(self.y - self.startY), wasDragging = self.isDragging && (Math.abs(self.x - self.startX) > 3 || Math.abs(self.y - self.startY) > 3), // some touch devices need some wiggle room in terms of sensing clicks - the finger may move a few pixels.\n eventData = $d7385dda6eeeec57$var$_getEvent(e);\n if (!wasDragging && isTrackingDrag) {\n self._vx.reset();\n self._vy.reset();\n if (preventDefault && allowClicks) $d7385dda6eeeec57$var$gsap.delayedCall(0.08, function() {\n // some browsers (like Firefox) won't trust script-generated clicks, so if the user tries to click on a video to play it, for example, it simply won't work. Since a regular \"click\" event will most likely be generated anyway (one that has its isTrusted flag set to true), we must slightly delay our script-generated click so that the \"real\"/trusted one is prioritized. Remember, when there are duplicate events in quick succession, we suppress all but the first one. Some browsers don't even trigger the \"real\" one at all, so our synthetic one is a safety valve that ensures that no matter what, a click event does get dispatched.\n if ($d7385dda6eeeec57$var$_getTime() - onClickTime > 300 && !e.defaultPrevented) {\n if (e.target.click) //some browsers (like mobile Safari) don't properly trigger the click event\n e.target.click();\n else if (ownerDoc.createEvent) {\n var syntheticEvent = ownerDoc.createEvent(\"MouseEvents\");\n syntheticEvent.initMouseEvent(\"click\", true, true, $d7385dda6eeeec57$var$_win, 1, eventData.screenX, eventData.screenY, eventData.clientX, eventData.clientY, false, false, false, false, 0, null);\n e.target.dispatchEvent(syntheticEvent);\n }\n }\n });\n }\n self.isDragging = self.isGesturing = self.isPressed = false;\n onStop && !isNormalizer && onStopDelayedCall.restart(true);\n onDragEnd && wasDragging && onDragEnd(self);\n onRelease && onRelease(self, wasDragging);\n }, _onGestureStart = function _onGestureStart(e) {\n return e.touches && e.touches.length > 1 && (self.isGesturing = true) && onGestureStart(e, self.isDragging);\n }, _onGestureEnd = function _onGestureEnd() {\n return self.isGesturing = false, onGestureEnd(self);\n }, onScroll = function onScroll(e) {\n if (_ignoreCheck(e)) return;\n var x = scrollFuncX(), y = scrollFuncY();\n onDelta((x - scrollX) * scrollSpeed, (y - scrollY) * scrollSpeed, 1);\n scrollX = x;\n scrollY = y;\n onStop && onStopDelayedCall.restart(true);\n }, _onWheel = function _onWheel(e) {\n if (_ignoreCheck(e)) return;\n e = $d7385dda6eeeec57$var$_getEvent(e, preventDefault);\n onWheel && (wheeled = true);\n var multiplier = (e.deltaMode === 1 ? lineHeight : e.deltaMode === 2 ? $d7385dda6eeeec57$var$_win.innerHeight : 1) * wheelSpeed;\n onDelta(e.deltaX * multiplier, e.deltaY * multiplier, 0);\n onStop && !isNormalizer && onStopDelayedCall.restart(true);\n }, _onMove = function _onMove(e) {\n if (_ignoreCheck(e)) return;\n var x = e.clientX, y = e.clientY, dx = x - self.x, dy = y - self.y;\n self.x = x;\n self.y = y;\n moved = true;\n (dx || dy) && onTouchOrPointerDelta(dx, dy);\n }, _onHover = function _onHover(e) {\n self.event = e;\n onHover(self);\n }, _onHoverEnd = function _onHoverEnd(e) {\n self.event = e;\n onHoverEnd(self);\n }, _onClick = function _onClick(e) {\n return _ignoreCheck(e) || $d7385dda6eeeec57$var$_getEvent(e, preventDefault) && onClick(self);\n };\n onStopDelayedCall = self._dc = $d7385dda6eeeec57$var$gsap.delayedCall(onStopDelay || 0.25, onStopFunc).pause();\n self.deltaX = self.deltaY = 0;\n self._vx = $d7385dda6eeeec57$export$5de019f4480f0f8d(0, 50, true);\n self._vy = $d7385dda6eeeec57$export$5de019f4480f0f8d(0, 50, true);\n self.scrollX = scrollFuncX;\n self.scrollY = scrollFuncY;\n self.isDragging = self.isGesturing = self.isPressed = false;\n $d7385dda6eeeec57$var$_context(this);\n self.enable = function(e) {\n if (!self.isEnabled) {\n $d7385dda6eeeec57$var$_addListener(isViewport ? ownerDoc : target, \"scroll\", $d7385dda6eeeec57$var$_onScroll);\n type.indexOf(\"scroll\") >= 0 && $d7385dda6eeeec57$var$_addListener(isViewport ? ownerDoc : target, \"scroll\", onScroll, preventDefault, capture);\n type.indexOf(\"wheel\") >= 0 && $d7385dda6eeeec57$var$_addListener(target, \"wheel\", _onWheel, preventDefault, capture);\n if (type.indexOf(\"touch\") >= 0 && $d7385dda6eeeec57$var$_isTouch || type.indexOf(\"pointer\") >= 0) {\n $d7385dda6eeeec57$var$_addListener(target, $d7385dda6eeeec57$var$_eventTypes[0], _onPress, preventDefault, capture);\n $d7385dda6eeeec57$var$_addListener(ownerDoc, $d7385dda6eeeec57$var$_eventTypes[2], _onRelease);\n $d7385dda6eeeec57$var$_addListener(ownerDoc, $d7385dda6eeeec57$var$_eventTypes[3], _onRelease);\n allowClicks && $d7385dda6eeeec57$var$_addListener(target, \"click\", clickCapture, false, true);\n onClick && $d7385dda6eeeec57$var$_addListener(target, \"click\", _onClick);\n onGestureStart && $d7385dda6eeeec57$var$_addListener(ownerDoc, \"gesturestart\", _onGestureStart);\n onGestureEnd && $d7385dda6eeeec57$var$_addListener(ownerDoc, \"gestureend\", _onGestureEnd);\n onHover && $d7385dda6eeeec57$var$_addListener(target, $d7385dda6eeeec57$var$_pointerType + \"enter\", _onHover);\n onHoverEnd && $d7385dda6eeeec57$var$_addListener(target, $d7385dda6eeeec57$var$_pointerType + \"leave\", _onHoverEnd);\n onMove && $d7385dda6eeeec57$var$_addListener(target, $d7385dda6eeeec57$var$_pointerType + \"move\", _onMove);\n }\n self.isEnabled = true;\n e && e.type && _onPress(e);\n onEnable && onEnable(self);\n }\n return self;\n };\n self.disable = function() {\n if (self.isEnabled) {\n // only remove the _onScroll listener if there aren't any others that rely on the functionality.\n $d7385dda6eeeec57$var$_observers.filter(function(o) {\n return o !== self && $d7385dda6eeeec57$export$4330f3a92e5d2e94(o.target);\n }).length || $d7385dda6eeeec57$var$_removeListener(isViewport ? ownerDoc : target, \"scroll\", $d7385dda6eeeec57$var$_onScroll);\n if (self.isPressed) {\n self._vx.reset();\n self._vy.reset();\n $d7385dda6eeeec57$var$_removeListener(isNormalizer ? target : ownerDoc, $d7385dda6eeeec57$var$_eventTypes[1], _onDrag, true);\n }\n $d7385dda6eeeec57$var$_removeListener(isViewport ? ownerDoc : target, \"scroll\", onScroll, capture);\n $d7385dda6eeeec57$var$_removeListener(target, \"wheel\", _onWheel, capture);\n $d7385dda6eeeec57$var$_removeListener(target, $d7385dda6eeeec57$var$_eventTypes[0], _onPress, capture);\n $d7385dda6eeeec57$var$_removeListener(ownerDoc, $d7385dda6eeeec57$var$_eventTypes[2], _onRelease);\n $d7385dda6eeeec57$var$_removeListener(ownerDoc, $d7385dda6eeeec57$var$_eventTypes[3], _onRelease);\n $d7385dda6eeeec57$var$_removeListener(target, \"click\", clickCapture, true);\n $d7385dda6eeeec57$var$_removeListener(target, \"click\", _onClick);\n $d7385dda6eeeec57$var$_removeListener(ownerDoc, \"gesturestart\", _onGestureStart);\n $d7385dda6eeeec57$var$_removeListener(ownerDoc, \"gestureend\", _onGestureEnd);\n $d7385dda6eeeec57$var$_removeListener(target, $d7385dda6eeeec57$var$_pointerType + \"enter\", _onHover);\n $d7385dda6eeeec57$var$_removeListener(target, $d7385dda6eeeec57$var$_pointerType + \"leave\", _onHoverEnd);\n $d7385dda6eeeec57$var$_removeListener(target, $d7385dda6eeeec57$var$_pointerType + \"move\", _onMove);\n self.isEnabled = self.isPressed = self.isDragging = false;\n onDisable && onDisable(self);\n }\n };\n self.kill = self.revert = function() {\n self.disable();\n var i = $d7385dda6eeeec57$var$_observers.indexOf(self);\n i >= 0 && $d7385dda6eeeec57$var$_observers.splice(i, 1);\n $d7385dda6eeeec57$var$_normalizer === self && ($d7385dda6eeeec57$var$_normalizer = 0);\n };\n $d7385dda6eeeec57$var$_observers.push(self);\n isNormalizer && $d7385dda6eeeec57$export$4330f3a92e5d2e94(target) && ($d7385dda6eeeec57$var$_normalizer = self);\n self.enable(event);\n };\n $d7385dda6eeeec57$var$_createClass(Observer, [\n {\n key: \"velocityX\",\n get: function get() {\n return this._vx.getVelocity();\n }\n },\n {\n key: \"velocityY\",\n get: function get() {\n return this._vy.getVelocity();\n }\n }\n ]);\n return Observer;\n}();\n$d7385dda6eeeec57$export$c1cbdee04e18ea8b.version = \"3.11.5\";\n$d7385dda6eeeec57$export$c1cbdee04e18ea8b.create = function(vars) {\n return new $d7385dda6eeeec57$export$c1cbdee04e18ea8b(vars);\n};\n$d7385dda6eeeec57$export$c1cbdee04e18ea8b.register = $d7385dda6eeeec57$var$_initCore;\n$d7385dda6eeeec57$export$c1cbdee04e18ea8b.getAll = function() {\n return $d7385dda6eeeec57$var$_observers.slice();\n};\n$d7385dda6eeeec57$export$c1cbdee04e18ea8b.getById = function(id) {\n return $d7385dda6eeeec57$var$_observers.filter(function(o) {\n return o.vars.id === id;\n })[0];\n};\n$d7385dda6eeeec57$var$_getGSAP() && $d7385dda6eeeec57$var$gsap.registerPlugin($d7385dda6eeeec57$export$c1cbdee04e18ea8b);\n\n\nvar $daf8bee9365fb629$var$gsap, $daf8bee9365fb629$var$_coreInitted, $daf8bee9365fb629$var$_win, $daf8bee9365fb629$var$_doc, $daf8bee9365fb629$var$_docEl, $daf8bee9365fb629$var$_body, $daf8bee9365fb629$var$_root, $daf8bee9365fb629$var$_resizeDelay, $daf8bee9365fb629$var$_toArray, $daf8bee9365fb629$var$_clamp, $daf8bee9365fb629$var$_time2, $daf8bee9365fb629$var$_syncInterval, $daf8bee9365fb629$var$_refreshing, $daf8bee9365fb629$var$_pointerIsDown, $daf8bee9365fb629$var$_transformProp, $daf8bee9365fb629$var$_i, $daf8bee9365fb629$var$_prevWidth, $daf8bee9365fb629$var$_prevHeight, $daf8bee9365fb629$var$_autoRefresh, $daf8bee9365fb629$var$_sort, $daf8bee9365fb629$var$_suppressOverwrites, $daf8bee9365fb629$var$_ignoreResize, $daf8bee9365fb629$var$_normalizer, $daf8bee9365fb629$var$_ignoreMobileResize, $daf8bee9365fb629$var$_baseScreenHeight, $daf8bee9365fb629$var$_baseScreenWidth, $daf8bee9365fb629$var$_fixIOSBug, $daf8bee9365fb629$var$_context, $daf8bee9365fb629$var$_scrollRestoration, $daf8bee9365fb629$var$_limitCallbacks, // if true, we'll only trigger callbacks if the active state toggles, so if you scroll immediately past both the start and end positions of a ScrollTrigger (thus inactive to inactive), neither its onEnter nor onLeave will be called. This is useful during startup.\n$daf8bee9365fb629$var$_startup = 1, $daf8bee9365fb629$var$_getTime = Date.now, $daf8bee9365fb629$var$_time1 = $daf8bee9365fb629$var$_getTime(), $daf8bee9365fb629$var$_lastScrollTime = 0, $daf8bee9365fb629$var$_enabled = 0, $daf8bee9365fb629$var$_rafBugFix = function _rafBugFix() {\n return $daf8bee9365fb629$var$_enabled && requestAnimationFrame(_rafBugFix);\n}, // in some browsers (like Firefox), screen repaints weren't consistent unless we had SOMETHING queued up in requestAnimationFrame()! So this just creates a super simple loop to keep it alive and smooth out repaints.\n$daf8bee9365fb629$var$_pointerDownHandler = function _pointerDownHandler() {\n return $daf8bee9365fb629$var$_pointerIsDown = 1;\n}, $daf8bee9365fb629$var$_pointerUpHandler = function _pointerUpHandler() {\n return $daf8bee9365fb629$var$_pointerIsDown = 0;\n}, $daf8bee9365fb629$var$_passThrough = function _passThrough(v) {\n return v;\n}, $daf8bee9365fb629$var$_round = function _round(value) {\n return Math.round(value * 100000) / 100000 || 0;\n}, $daf8bee9365fb629$var$_windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n}, $daf8bee9365fb629$var$_getGSAP = function _getGSAP() {\n return $daf8bee9365fb629$var$gsap || $daf8bee9365fb629$var$_windowExists() && ($daf8bee9365fb629$var$gsap = window.gsap) && $daf8bee9365fb629$var$gsap.registerPlugin && $daf8bee9365fb629$var$gsap;\n}, $daf8bee9365fb629$var$_isViewport = function _isViewport(e) {\n return !!~$daf8bee9365fb629$var$_root.indexOf(e);\n}, $daf8bee9365fb629$var$_getBoundsFunc = function _getBoundsFunc(element) {\n return (0, $d7385dda6eeeec57$export$6078f1ef08b38af9)(element, \"getBoundingClientRect\") || ($daf8bee9365fb629$var$_isViewport(element) ? function() {\n $daf8bee9365fb629$var$_winOffsets.width = $daf8bee9365fb629$var$_win.innerWidth;\n $daf8bee9365fb629$var$_winOffsets.height = $daf8bee9365fb629$var$_win.innerHeight;\n return $daf8bee9365fb629$var$_winOffsets;\n } : function() {\n return $daf8bee9365fb629$var$_getBounds(element);\n });\n}, $daf8bee9365fb629$var$_getSizeFunc = function _getSizeFunc(scroller, isViewport, _ref) {\n var d = _ref.d, d2 = _ref.d2, a = _ref.a;\n return (a = (0, $d7385dda6eeeec57$export$6078f1ef08b38af9)(scroller, \"getBoundingClientRect\")) ? function() {\n return a()[d];\n } : function() {\n return (isViewport ? $daf8bee9365fb629$var$_win[\"inner\" + d2] : scroller[\"client\" + d2]) || 0;\n };\n}, $daf8bee9365fb629$var$_getOffsetsFunc = function _getOffsetsFunc(element, isViewport) {\n return !isViewport || ~(0, $d7385dda6eeeec57$export$d8e56d510a804d0a).indexOf(element) ? $daf8bee9365fb629$var$_getBoundsFunc(element) : function() {\n return $daf8bee9365fb629$var$_winOffsets;\n };\n}, $daf8bee9365fb629$var$_maxScroll = function _maxScroll(element, _ref2) {\n var s = _ref2.s, d2 = _ref2.d2, d = _ref2.d, a = _ref2.a;\n return Math.max(0, (s = \"scroll\" + d2, a = (0, $d7385dda6eeeec57$export$6078f1ef08b38af9)(element, s)) ? a() - $daf8bee9365fb629$var$_getBoundsFunc(element)()[d] : $daf8bee9365fb629$var$_isViewport(element) ? ($daf8bee9365fb629$var$_docEl[s] || $daf8bee9365fb629$var$_body[s]) - ($daf8bee9365fb629$var$_win[\"inner\" + d2] || $daf8bee9365fb629$var$_docEl[\"client\" + d2] || $daf8bee9365fb629$var$_body[\"client\" + d2]) : element[s] - element[\"offset\" + d2]);\n}, $daf8bee9365fb629$var$_iterateAutoRefresh = function _iterateAutoRefresh(func, events) {\n for(var i = 0; i < $daf8bee9365fb629$var$_autoRefresh.length; i += 3)(!events || ~events.indexOf($daf8bee9365fb629$var$_autoRefresh[i + 1])) && func($daf8bee9365fb629$var$_autoRefresh[i], $daf8bee9365fb629$var$_autoRefresh[i + 1], $daf8bee9365fb629$var$_autoRefresh[i + 2]);\n}, $daf8bee9365fb629$var$_isString = function _isString(value) {\n return typeof value === \"string\";\n}, $daf8bee9365fb629$var$_isFunction = function _isFunction(value) {\n return typeof value === \"function\";\n}, $daf8bee9365fb629$var$_isNumber = function _isNumber(value) {\n return typeof value === \"number\";\n}, $daf8bee9365fb629$var$_isObject = function _isObject(value) {\n return typeof value === \"object\";\n}, $daf8bee9365fb629$var$_callIfFunc = function _callIfFunc(value) {\n return $daf8bee9365fb629$var$_isFunction(value) && value();\n}, $daf8bee9365fb629$var$_combineFunc = function _combineFunc(f1, f2) {\n return function() {\n var result1 = $daf8bee9365fb629$var$_callIfFunc(f1), result2 = $daf8bee9365fb629$var$_callIfFunc(f2);\n return function() {\n $daf8bee9365fb629$var$_callIfFunc(result1);\n $daf8bee9365fb629$var$_callIfFunc(result2);\n };\n };\n}, $daf8bee9365fb629$var$_endAnimation = function _endAnimation(animation, reversed, pause) {\n return animation && animation.progress(reversed ? 0 : 1) && pause && animation.pause();\n}, $daf8bee9365fb629$var$_callback = function _callback(self, func) {\n if (self.enabled) {\n var result = func(self);\n result && result.totalTime && (self.callbackAnimation = result);\n }\n}, $daf8bee9365fb629$var$_abs = Math.abs, $daf8bee9365fb629$var$_scrollLeft = \"scrollLeft\", $daf8bee9365fb629$var$_scrollTop = \"scrollTop\", $daf8bee9365fb629$var$_left = \"left\", $daf8bee9365fb629$var$_top = \"top\", $daf8bee9365fb629$var$_right = \"right\", $daf8bee9365fb629$var$_bottom = \"bottom\", $daf8bee9365fb629$var$_width = \"width\", $daf8bee9365fb629$var$_height = \"height\", $daf8bee9365fb629$var$_Right = \"Right\", $daf8bee9365fb629$var$_Left = \"Left\", $daf8bee9365fb629$var$_Top = \"Top\", $daf8bee9365fb629$var$_Bottom = \"Bottom\", $daf8bee9365fb629$var$_padding = \"padding\", $daf8bee9365fb629$var$_margin = \"margin\", $daf8bee9365fb629$var$_Width = \"Width\", $daf8bee9365fb629$var$_Height = \"Height\", $daf8bee9365fb629$var$_px = \"px\", $daf8bee9365fb629$var$_getComputedStyle = function _getComputedStyle(element) {\n return $daf8bee9365fb629$var$_win.getComputedStyle(element);\n}, $daf8bee9365fb629$var$_makePositionable = function _makePositionable(element) {\n // if the element already has position: absolute or fixed, leave that, otherwise make it position: relative\n var position = $daf8bee9365fb629$var$_getComputedStyle(element).position;\n element.style.position = position === \"absolute\" || position === \"fixed\" ? position : \"relative\";\n}, $daf8bee9365fb629$var$_setDefaults = function _setDefaults(obj, defaults) {\n for(var p in defaults)p in obj || (obj[p] = defaults[p]);\n return obj;\n}, $daf8bee9365fb629$var$_getBounds = function _getBounds(element, withoutTransforms) {\n var tween = withoutTransforms && $daf8bee9365fb629$var$_getComputedStyle(element)[$daf8bee9365fb629$var$_transformProp] !== \"matrix(1, 0, 0, 1, 0, 0)\" && $daf8bee9365fb629$var$gsap.to(element, {\n x: 0,\n y: 0,\n xPercent: 0,\n yPercent: 0,\n rotation: 0,\n rotationX: 0,\n rotationY: 0,\n scale: 1,\n skewX: 0,\n skewY: 0\n }).progress(1), bounds = element.getBoundingClientRect();\n tween && tween.progress(0).kill();\n return bounds;\n}, $daf8bee9365fb629$var$_getSize = function _getSize(element, _ref3) {\n var d2 = _ref3.d2;\n return element[\"offset\" + d2] || element[\"client\" + d2] || 0;\n}, $daf8bee9365fb629$var$_getLabelRatioArray = function _getLabelRatioArray(timeline) {\n var a = [], labels = timeline.labels, duration = timeline.duration(), p;\n for(p in labels)a.push(labels[p] / duration);\n return a;\n}, $daf8bee9365fb629$var$_getClosestLabel = function _getClosestLabel(animation) {\n return function(value) {\n return $daf8bee9365fb629$var$gsap.utils.snap($daf8bee9365fb629$var$_getLabelRatioArray(animation), value);\n };\n}, $daf8bee9365fb629$var$_snapDirectional = function _snapDirectional(snapIncrementOrArray) {\n var snap = $daf8bee9365fb629$var$gsap.utils.snap(snapIncrementOrArray), a = Array.isArray(snapIncrementOrArray) && snapIncrementOrArray.slice(0).sort(function(a, b) {\n return a - b;\n });\n return a ? function(value, direction, threshold) {\n if (threshold === void 0) threshold = 1e-3;\n var i;\n if (!direction) return snap(value);\n if (direction > 0) {\n value -= threshold; // to avoid rounding errors. If we're too strict, it might snap forward, then immediately again, and again.\n for(i = 0; i < a.length; i++){\n if (a[i] >= value) return a[i];\n }\n return a[i - 1];\n } else {\n i = a.length;\n value += threshold;\n while(i--){\n if (a[i] <= value) return a[i];\n }\n }\n return a[0];\n } : function(value, direction, threshold) {\n if (threshold === void 0) threshold = 1e-3;\n var snapped = snap(value);\n return !direction || Math.abs(snapped - value) < threshold || snapped - value < 0 === direction < 0 ? snapped : snap(direction < 0 ? value - snapIncrementOrArray : value + snapIncrementOrArray);\n };\n}, $daf8bee9365fb629$var$_getLabelAtDirection = function _getLabelAtDirection(timeline) {\n return function(value, st) {\n return $daf8bee9365fb629$var$_snapDirectional($daf8bee9365fb629$var$_getLabelRatioArray(timeline))(value, st.direction);\n };\n}, $daf8bee9365fb629$var$_multiListener = function _multiListener(func, element, types, callback) {\n return types.split(\",\").forEach(function(type) {\n return func(element, type, callback);\n });\n}, $daf8bee9365fb629$var$_addListener = function _addListener(element, type, func, nonPassive, capture) {\n return element.addEventListener(type, func, {\n passive: !nonPassive,\n capture: !!capture\n });\n}, $daf8bee9365fb629$var$_removeListener = function _removeListener(element, type, func, capture) {\n return element.removeEventListener(type, func, !!capture);\n}, $daf8bee9365fb629$var$_wheelListener = function _wheelListener(func, el, scrollFunc) {\n scrollFunc = scrollFunc && scrollFunc.wheelHandler;\n if (scrollFunc) {\n func(el, \"wheel\", scrollFunc);\n func(el, \"touchmove\", scrollFunc);\n }\n}, $daf8bee9365fb629$var$_markerDefaults = {\n startColor: \"green\",\n endColor: \"red\",\n indent: 0,\n fontSize: \"16px\",\n fontWeight: \"normal\"\n}, $daf8bee9365fb629$var$_defaults = {\n toggleActions: \"play\",\n anticipatePin: 0\n}, $daf8bee9365fb629$var$_keywords = {\n top: 0,\n left: 0,\n center: 0.5,\n bottom: 1,\n right: 1\n}, $daf8bee9365fb629$var$_offsetToPx = function _offsetToPx(value, size) {\n if ($daf8bee9365fb629$var$_isString(value)) {\n var eqIndex = value.indexOf(\"=\"), relative = ~eqIndex ? +(value.charAt(eqIndex - 1) + 1) * parseFloat(value.substr(eqIndex + 1)) : 0;\n if (~eqIndex) {\n value.indexOf(\"%\") > eqIndex && (relative *= size / 100);\n value = value.substr(0, eqIndex - 1);\n }\n value = relative + (value in $daf8bee9365fb629$var$_keywords ? $daf8bee9365fb629$var$_keywords[value] * size : ~value.indexOf(\"%\") ? parseFloat(value) * size / 100 : parseFloat(value) || 0);\n }\n return value;\n}, $daf8bee9365fb629$var$_createMarker = function _createMarker(type, name, container, direction, _ref4, offset, matchWidthEl, containerAnimation) {\n var startColor = _ref4.startColor, endColor = _ref4.endColor, fontSize = _ref4.fontSize, indent = _ref4.indent, fontWeight = _ref4.fontWeight;\n var e = $daf8bee9365fb629$var$_doc.createElement(\"div\"), useFixedPosition = $daf8bee9365fb629$var$_isViewport(container) || (0, $d7385dda6eeeec57$export$6078f1ef08b38af9)(container, \"pinType\") === \"fixed\", isScroller = type.indexOf(\"scroller\") !== -1, parent = useFixedPosition ? $daf8bee9365fb629$var$_body : container, isStart = type.indexOf(\"start\") !== -1, color = isStart ? startColor : endColor, css = \"border-color:\" + color + \";font-size:\" + fontSize + \";color:\" + color + \";font-weight:\" + fontWeight + \";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;\";\n css += \"position:\" + ((isScroller || containerAnimation) && useFixedPosition ? \"fixed;\" : \"absolute;\");\n (isScroller || containerAnimation || !useFixedPosition) && (css += (direction === (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d) ? $daf8bee9365fb629$var$_right : $daf8bee9365fb629$var$_bottom) + \":\" + (offset + parseFloat(indent)) + \"px;\");\n matchWidthEl && (css += \"box-sizing:border-box;text-align:left;width:\" + matchWidthEl.offsetWidth + \"px;\");\n e._isStart = isStart;\n e.setAttribute(\"class\", \"gsap-marker-\" + type + (name ? \" marker-\" + name : \"\"));\n e.style.cssText = css;\n e.innerText = name || name === 0 ? type + \"-\" + name : type;\n parent.children[0] ? parent.insertBefore(e, parent.children[0]) : parent.appendChild(e);\n e._offset = e[\"offset\" + direction.op.d2];\n $daf8bee9365fb629$var$_positionMarker(e, 0, direction, isStart);\n return e;\n}, $daf8bee9365fb629$var$_positionMarker = function _positionMarker(marker, start, direction, flipped) {\n var vars = {\n display: \"block\"\n }, side = direction[flipped ? \"os2\" : \"p2\"], oppositeSide = direction[flipped ? \"p2\" : \"os2\"];\n marker._isFlipped = flipped;\n vars[direction.a + \"Percent\"] = flipped ? -100 : 0;\n vars[direction.a] = flipped ? \"1px\" : 0;\n vars[\"border\" + side + $daf8bee9365fb629$var$_Width] = 1;\n vars[\"border\" + oppositeSide + $daf8bee9365fb629$var$_Width] = 0;\n vars[direction.p] = start + \"px\";\n $daf8bee9365fb629$var$gsap.set(marker, vars);\n}, $daf8bee9365fb629$var$_triggers = [], $daf8bee9365fb629$var$_ids = {}, $daf8bee9365fb629$var$_rafID, $daf8bee9365fb629$var$_sync = function _sync() {\n return $daf8bee9365fb629$var$_getTime() - $daf8bee9365fb629$var$_lastScrollTime > 34 && ($daf8bee9365fb629$var$_rafID || ($daf8bee9365fb629$var$_rafID = requestAnimationFrame($daf8bee9365fb629$var$_updateAll)));\n}, $daf8bee9365fb629$var$_onScroll = function _onScroll() {\n // previously, we tried to optimize performance by batching/deferring to the next requestAnimationFrame(), but discovered that Safari has a few bugs that make this unworkable (especially on iOS). See https://codepen.io/GreenSock/pen/16c435b12ef09c38125204818e7b45fc?editors=0010 and https://codepen.io/GreenSock/pen/JjOxYpQ/3dd65ccec5a60f1d862c355d84d14562?editors=0010 and https://codepen.io/GreenSock/pen/ExbrPNa/087cef197dc35445a0951e8935c41503?editors=0010\n if (!$daf8bee9365fb629$var$_normalizer || !$daf8bee9365fb629$var$_normalizer.isPressed || $daf8bee9365fb629$var$_normalizer.startX > $daf8bee9365fb629$var$_body.clientWidth) {\n // if the user is dragging the scrollbar, allow it.\n (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).cache++;\n if ($daf8bee9365fb629$var$_normalizer) $daf8bee9365fb629$var$_rafID || ($daf8bee9365fb629$var$_rafID = requestAnimationFrame($daf8bee9365fb629$var$_updateAll));\n else $daf8bee9365fb629$var$_updateAll(); // Safari in particular (on desktop) NEEDS the immediate update rather than waiting for a requestAnimationFrame() whereas iOS seems to benefit from waiting for the requestAnimationFrame() tick, at least when normalizing. See https://codepen.io/GreenSock/pen/qBYozqO?editors=0110\n $daf8bee9365fb629$var$_lastScrollTime || $daf8bee9365fb629$var$_dispatch(\"scrollStart\");\n $daf8bee9365fb629$var$_lastScrollTime = $daf8bee9365fb629$var$_getTime();\n }\n}, $daf8bee9365fb629$var$_setBaseDimensions = function _setBaseDimensions() {\n $daf8bee9365fb629$var$_baseScreenWidth = $daf8bee9365fb629$var$_win.innerWidth;\n $daf8bee9365fb629$var$_baseScreenHeight = $daf8bee9365fb629$var$_win.innerHeight;\n}, $daf8bee9365fb629$var$_onResize = function _onResize() {\n (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).cache++;\n !$daf8bee9365fb629$var$_refreshing && !$daf8bee9365fb629$var$_ignoreResize && !$daf8bee9365fb629$var$_doc.fullscreenElement && !$daf8bee9365fb629$var$_doc.webkitFullscreenElement && (!$daf8bee9365fb629$var$_ignoreMobileResize || $daf8bee9365fb629$var$_baseScreenWidth !== $daf8bee9365fb629$var$_win.innerWidth || Math.abs($daf8bee9365fb629$var$_win.innerHeight - $daf8bee9365fb629$var$_baseScreenHeight) > $daf8bee9365fb629$var$_win.innerHeight * 0.25) && $daf8bee9365fb629$var$_resizeDelay.restart(true);\n}, // ignore resizes triggered by refresh()\n$daf8bee9365fb629$var$_listeners = {}, $daf8bee9365fb629$var$_emptyArray = [], $daf8bee9365fb629$var$_softRefresh = function _softRefresh() {\n return $daf8bee9365fb629$var$_removeListener($daf8bee9365fb629$export$875bcbe48555930, \"scrollEnd\", _softRefresh) || $daf8bee9365fb629$var$_refreshAll(true);\n}, $daf8bee9365fb629$var$_dispatch = function _dispatch(type) {\n return $daf8bee9365fb629$var$_listeners[type] && $daf8bee9365fb629$var$_listeners[type].map(function(f) {\n return f();\n }) || $daf8bee9365fb629$var$_emptyArray;\n}, $daf8bee9365fb629$var$_savedStyles = [], // when ScrollTrigger.saveStyles() is called, the inline styles are recorded in this Array in a sequential format like [element, cssText, gsCache, media]. This keeps it very memory-efficient and fast to iterate through.\n$daf8bee9365fb629$var$_revertRecorded = function _revertRecorded(media) {\n for(var i = 0; i < $daf8bee9365fb629$var$_savedStyles.length; i += 5)if (!media || $daf8bee9365fb629$var$_savedStyles[i + 4] && $daf8bee9365fb629$var$_savedStyles[i + 4].query === media) {\n $daf8bee9365fb629$var$_savedStyles[i].style.cssText = $daf8bee9365fb629$var$_savedStyles[i + 1];\n $daf8bee9365fb629$var$_savedStyles[i].getBBox && $daf8bee9365fb629$var$_savedStyles[i].setAttribute(\"transform\", $daf8bee9365fb629$var$_savedStyles[i + 2] || \"\");\n $daf8bee9365fb629$var$_savedStyles[i + 3].uncache = 1;\n }\n}, $daf8bee9365fb629$var$_revertAll = function _revertAll(kill, media) {\n var trigger;\n for($daf8bee9365fb629$var$_i = 0; $daf8bee9365fb629$var$_i < $daf8bee9365fb629$var$_triggers.length; $daf8bee9365fb629$var$_i++){\n trigger = $daf8bee9365fb629$var$_triggers[$daf8bee9365fb629$var$_i];\n if (trigger && (!media || trigger._ctx === media)) {\n if (kill) trigger.kill(1);\n else trigger.revert(true, true);\n }\n }\n media && $daf8bee9365fb629$var$_revertRecorded(media);\n media || $daf8bee9365fb629$var$_dispatch(\"revert\");\n}, $daf8bee9365fb629$var$_clearScrollMemory = function _clearScrollMemory(scrollRestoration, force) {\n // zero-out all the recorded scroll positions. Don't use _triggers because if, for example, .matchMedia() is used to create some ScrollTriggers and then the user resizes and it removes ALL ScrollTriggers, and then go back to a size where there are ScrollTriggers, it would have kept the position(s) saved from the initial state.\n (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).cache++;\n (force || !$daf8bee9365fb629$var$_refreshingAll) && (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).forEach(function(obj) {\n return $daf8bee9365fb629$var$_isFunction(obj) && obj.cacheID++ && (obj.rec = 0);\n });\n $daf8bee9365fb629$var$_isString(scrollRestoration) && ($daf8bee9365fb629$var$_win.history.scrollRestoration = $daf8bee9365fb629$var$_scrollRestoration = scrollRestoration);\n}, $daf8bee9365fb629$var$_refreshingAll, $daf8bee9365fb629$var$_refreshID = 0, $daf8bee9365fb629$var$_queueRefreshID, $daf8bee9365fb629$var$_queueRefreshAll = function _queueRefreshAll() {\n // we don't want to call _refreshAll() every time we create a new ScrollTrigger (for performance reasons) - it's better to batch them. Some frameworks dynamically load content and we can't rely on the window's \"load\" or \"DOMContentLoaded\" events to trigger it.\n if ($daf8bee9365fb629$var$_queueRefreshID !== $daf8bee9365fb629$var$_refreshID) {\n var id = $daf8bee9365fb629$var$_queueRefreshID = $daf8bee9365fb629$var$_refreshID;\n requestAnimationFrame(function() {\n return id === $daf8bee9365fb629$var$_refreshID && $daf8bee9365fb629$var$_refreshAll(true);\n });\n }\n}, $daf8bee9365fb629$var$_refreshAll = function _refreshAll(force, skipRevert) {\n if ($daf8bee9365fb629$var$_lastScrollTime && !force) {\n $daf8bee9365fb629$var$_addListener($daf8bee9365fb629$export$875bcbe48555930, \"scrollEnd\", $daf8bee9365fb629$var$_softRefresh);\n return;\n }\n $daf8bee9365fb629$var$_refreshingAll = $daf8bee9365fb629$export$875bcbe48555930.isRefreshing = true;\n (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).forEach(function(obj) {\n return $daf8bee9365fb629$var$_isFunction(obj) && obj.cacheID++ && (obj.rec = obj());\n }); // force the clearing of the cache because some browsers take a little while to dispatch the \"scroll\" event and the user may have changed the scroll position and then called ScrollTrigger.refresh() right away\n var refreshInits = $daf8bee9365fb629$var$_dispatch(\"refreshInit\");\n $daf8bee9365fb629$var$_sort && $daf8bee9365fb629$export$875bcbe48555930.sort();\n skipRevert || $daf8bee9365fb629$var$_revertAll();\n (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).forEach(function(obj) {\n if ($daf8bee9365fb629$var$_isFunction(obj)) {\n obj.smooth && (obj.target.style.scrollBehavior = \"auto\"); // smooth scrolling interferes\n obj(0);\n }\n });\n $daf8bee9365fb629$var$_triggers.slice(0).forEach(function(t) {\n return t.refresh();\n }); // don't loop with _i because during a refresh() someone could call ScrollTrigger.update() which would iterate through _i resulting in a skip.\n $daf8bee9365fb629$var$_triggers.forEach(function(t, i) {\n // nested pins (pinnedContainer) with pinSpacing may expand the container, so we must accommodate that here.\n if (t._subPinOffset && t.pin) {\n var prop = t.vars.horizontal ? \"offsetWidth\" : \"offsetHeight\", original = t.pin[prop];\n t.revert(true, 1);\n t.adjustPinSpacing(t.pin[prop] - original);\n t.refresh();\n }\n });\n $daf8bee9365fb629$var$_triggers.forEach(function(t) {\n return t.vars.end === \"max\" && t.setPositions(t.start, Math.max(t.start + 1, $daf8bee9365fb629$var$_maxScroll(t.scroller, t._dir)));\n }); // the scroller's max scroll position may change after all the ScrollTriggers refreshed (like pinning could push it down), so we need to loop back and correct any with end: \"max\".\n refreshInits.forEach(function(result) {\n return result && result.render && result.render(-1);\n }); // if the onRefreshInit() returns an animation (typically a gsap.set()), revert it. This makes it easy to put things in a certain spot before refreshing for measurement purposes, and then put things back.\n (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).forEach(function(obj) {\n if ($daf8bee9365fb629$var$_isFunction(obj)) {\n obj.smooth && requestAnimationFrame(function() {\n return obj.target.style.scrollBehavior = \"smooth\";\n });\n obj.rec && obj(obj.rec);\n }\n });\n $daf8bee9365fb629$var$_clearScrollMemory($daf8bee9365fb629$var$_scrollRestoration, 1);\n $daf8bee9365fb629$var$_resizeDelay.pause();\n $daf8bee9365fb629$var$_refreshID++;\n $daf8bee9365fb629$var$_refreshingAll = 2;\n $daf8bee9365fb629$var$_updateAll(2);\n $daf8bee9365fb629$var$_triggers.forEach(function(t) {\n return $daf8bee9365fb629$var$_isFunction(t.vars.onRefresh) && t.vars.onRefresh(t);\n });\n $daf8bee9365fb629$var$_refreshingAll = $daf8bee9365fb629$export$875bcbe48555930.isRefreshing = false;\n $daf8bee9365fb629$var$_dispatch(\"refresh\");\n}, $daf8bee9365fb629$var$_lastScroll = 0, $daf8bee9365fb629$var$_direction = 1, $daf8bee9365fb629$var$_primary, $daf8bee9365fb629$var$_updateAll = function _updateAll(force) {\n if (!$daf8bee9365fb629$var$_refreshingAll || force === 2) {\n $daf8bee9365fb629$export$875bcbe48555930.isUpdating = true;\n $daf8bee9365fb629$var$_primary && $daf8bee9365fb629$var$_primary.update(0); // ScrollSmoother uses refreshPriority -9999 to become the primary that gets updated before all others because it affects the scroll position.\n var l = $daf8bee9365fb629$var$_triggers.length, time = $daf8bee9365fb629$var$_getTime(), recordVelocity = time - $daf8bee9365fb629$var$_time1 >= 50, scroll = l && $daf8bee9365fb629$var$_triggers[0].scroll();\n $daf8bee9365fb629$var$_direction = $daf8bee9365fb629$var$_lastScroll > scroll ? -1 : 1;\n $daf8bee9365fb629$var$_refreshingAll || ($daf8bee9365fb629$var$_lastScroll = scroll);\n if (recordVelocity) {\n if ($daf8bee9365fb629$var$_lastScrollTime && !$daf8bee9365fb629$var$_pointerIsDown && time - $daf8bee9365fb629$var$_lastScrollTime > 200) {\n $daf8bee9365fb629$var$_lastScrollTime = 0;\n $daf8bee9365fb629$var$_dispatch(\"scrollEnd\");\n }\n $daf8bee9365fb629$var$_time2 = $daf8bee9365fb629$var$_time1;\n $daf8bee9365fb629$var$_time1 = time;\n }\n if ($daf8bee9365fb629$var$_direction < 0) {\n $daf8bee9365fb629$var$_i = l;\n while($daf8bee9365fb629$var$_i-- > 0)$daf8bee9365fb629$var$_triggers[$daf8bee9365fb629$var$_i] && $daf8bee9365fb629$var$_triggers[$daf8bee9365fb629$var$_i].update(0, recordVelocity);\n $daf8bee9365fb629$var$_direction = 1;\n } else for($daf8bee9365fb629$var$_i = 0; $daf8bee9365fb629$var$_i < l; $daf8bee9365fb629$var$_i++)$daf8bee9365fb629$var$_triggers[$daf8bee9365fb629$var$_i] && $daf8bee9365fb629$var$_triggers[$daf8bee9365fb629$var$_i].update(0, recordVelocity);\n $daf8bee9365fb629$export$875bcbe48555930.isUpdating = false;\n }\n $daf8bee9365fb629$var$_rafID = 0;\n}, $daf8bee9365fb629$var$_propNamesToCopy = [\n $daf8bee9365fb629$var$_left,\n $daf8bee9365fb629$var$_top,\n $daf8bee9365fb629$var$_bottom,\n $daf8bee9365fb629$var$_right,\n $daf8bee9365fb629$var$_margin + $daf8bee9365fb629$var$_Bottom,\n $daf8bee9365fb629$var$_margin + $daf8bee9365fb629$var$_Right,\n $daf8bee9365fb629$var$_margin + $daf8bee9365fb629$var$_Top,\n $daf8bee9365fb629$var$_margin + $daf8bee9365fb629$var$_Left,\n \"display\",\n \"flexShrink\",\n \"float\",\n \"zIndex\",\n \"gridColumnStart\",\n \"gridColumnEnd\",\n \"gridRowStart\",\n \"gridRowEnd\",\n \"gridArea\",\n \"justifySelf\",\n \"alignSelf\",\n \"placeSelf\",\n \"order\"\n], $daf8bee9365fb629$var$_stateProps = $daf8bee9365fb629$var$_propNamesToCopy.concat([\n $daf8bee9365fb629$var$_width,\n $daf8bee9365fb629$var$_height,\n \"boxSizing\",\n \"max\" + $daf8bee9365fb629$var$_Width,\n \"max\" + $daf8bee9365fb629$var$_Height,\n \"position\",\n $daf8bee9365fb629$var$_margin,\n $daf8bee9365fb629$var$_padding,\n $daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Top,\n $daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Right,\n $daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Bottom,\n $daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Left\n]), $daf8bee9365fb629$var$_swapPinOut = function _swapPinOut(pin, spacer, state) {\n $daf8bee9365fb629$var$_setState(state);\n var cache = pin._gsap;\n if (cache.spacerIsNative) $daf8bee9365fb629$var$_setState(cache.spacerState);\n else if (pin._gsap.swappedIn) {\n var parent = spacer.parentNode;\n if (parent) {\n parent.insertBefore(pin, spacer);\n parent.removeChild(spacer);\n }\n }\n pin._gsap.swappedIn = false;\n}, $daf8bee9365fb629$var$_swapPinIn = function _swapPinIn(pin, spacer, cs, spacerState) {\n if (!pin._gsap.swappedIn) {\n var i = $daf8bee9365fb629$var$_propNamesToCopy.length, spacerStyle = spacer.style, pinStyle = pin.style, p;\n while(i--){\n p = $daf8bee9365fb629$var$_propNamesToCopy[i];\n spacerStyle[p] = cs[p];\n }\n spacerStyle.position = cs.position === \"absolute\" ? \"absolute\" : \"relative\";\n cs.display === \"inline\" && (spacerStyle.display = \"inline-block\");\n pinStyle[$daf8bee9365fb629$var$_bottom] = pinStyle[$daf8bee9365fb629$var$_right] = \"auto\";\n spacerStyle.flexBasis = cs.flexBasis || \"auto\";\n spacerStyle.overflow = \"visible\";\n spacerStyle.boxSizing = \"border-box\";\n spacerStyle[$daf8bee9365fb629$var$_width] = $daf8bee9365fb629$var$_getSize(pin, (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1)) + $daf8bee9365fb629$var$_px;\n spacerStyle[$daf8bee9365fb629$var$_height] = $daf8bee9365fb629$var$_getSize(pin, (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d)) + $daf8bee9365fb629$var$_px;\n spacerStyle[$daf8bee9365fb629$var$_padding] = pinStyle[$daf8bee9365fb629$var$_margin] = pinStyle[$daf8bee9365fb629$var$_top] = pinStyle[$daf8bee9365fb629$var$_left] = \"0\";\n $daf8bee9365fb629$var$_setState(spacerState);\n pinStyle[$daf8bee9365fb629$var$_width] = pinStyle[\"max\" + $daf8bee9365fb629$var$_Width] = cs[$daf8bee9365fb629$var$_width];\n pinStyle[$daf8bee9365fb629$var$_height] = pinStyle[\"max\" + $daf8bee9365fb629$var$_Height] = cs[$daf8bee9365fb629$var$_height];\n pinStyle[$daf8bee9365fb629$var$_padding] = cs[$daf8bee9365fb629$var$_padding];\n if (pin.parentNode !== spacer) {\n pin.parentNode.insertBefore(spacer, pin);\n spacer.appendChild(pin);\n }\n pin._gsap.swappedIn = true;\n }\n}, $daf8bee9365fb629$var$_capsExp = /([A-Z])/g, $daf8bee9365fb629$var$_setState = function _setState(state) {\n if (state) {\n var style = state.t.style, l = state.length, i = 0, p, value;\n (state.t._gsap || $daf8bee9365fb629$var$gsap.core.getCache(state.t)).uncache = 1; // otherwise transforms may be off\n for(; i < l; i += 2){\n value = state[i + 1];\n p = state[i];\n if (value) style[p] = value;\n else if (style[p]) style.removeProperty(p.replace($daf8bee9365fb629$var$_capsExp, \"-$1\").toLowerCase());\n }\n }\n}, $daf8bee9365fb629$var$_getState = function _getState(element) {\n // returns an Array with alternating values like [property, value, property, value] and a \"t\" property pointing to the target (element). Makes it fast and cheap.\n var l = $daf8bee9365fb629$var$_stateProps.length, style = element.style, state = [], i = 0;\n for(; i < l; i++)state.push($daf8bee9365fb629$var$_stateProps[i], style[$daf8bee9365fb629$var$_stateProps[i]]);\n state.t = element;\n return state;\n}, $daf8bee9365fb629$var$_copyState = function _copyState(state, override, omitOffsets) {\n var result = [], l = state.length, i = omitOffsets ? 8 : 0, // skip top, left, right, bottom if omitOffsets is true\n p;\n for(; i < l; i += 2){\n p = state[i];\n result.push(p, p in override ? override[p] : state[i + 1]);\n }\n result.t = state.t;\n return result;\n}, $daf8bee9365fb629$var$_winOffsets = {\n left: 0,\n top: 0\n}, // // potential future feature (?) Allow users to calculate where a trigger hits (scroll position) like getScrollPosition(\"#id\", \"top bottom\")\n// _getScrollPosition = (trigger, position, {scroller, containerAnimation, horizontal}) => {\n// \tscroller = _getTarget(scroller || _win);\n// \tlet direction = horizontal ? _horizontal : _vertical,\n// \t\tisViewport = _isViewport(scroller);\n// \t_getSizeFunc(scroller, isViewport, direction);\n// \treturn _parsePosition(position, _getTarget(trigger), _getSizeFunc(scroller, isViewport, direction)(), direction, _getScrollFunc(scroller, direction)(), 0, 0, 0, _getOffsetsFunc(scroller, isViewport)(), isViewport ? 0 : parseFloat(_getComputedStyle(scroller)[\"border\" + direction.p2 + _Width]) || 0, 0, containerAnimation ? containerAnimation.duration() : _maxScroll(scroller), containerAnimation);\n// },\n$daf8bee9365fb629$var$_parsePosition = function _parsePosition(value, trigger, scrollerSize, direction, scroll, marker, markerScroller, self, scrollerBounds, borderWidth, useFixedPosition, scrollerMax, containerAnimation) {\n $daf8bee9365fb629$var$_isFunction(value) && (value = value(self));\n if ($daf8bee9365fb629$var$_isString(value) && value.substr(0, 3) === \"max\") value = scrollerMax + (value.charAt(4) === \"=\" ? $daf8bee9365fb629$var$_offsetToPx(\"0\" + value.substr(3), scrollerSize) : 0);\n var time = containerAnimation ? containerAnimation.time() : 0, p1, p2, element;\n containerAnimation && containerAnimation.seek(0);\n if (!$daf8bee9365fb629$var$_isNumber(value)) {\n $daf8bee9365fb629$var$_isFunction(trigger) && (trigger = trigger(self));\n var offsets = (value || \"0\").split(\" \"), bounds, localOffset, globalOffset, display;\n element = (0, $d7385dda6eeeec57$export$937374fea3f88711)(trigger) || $daf8bee9365fb629$var$_body;\n bounds = $daf8bee9365fb629$var$_getBounds(element) || {};\n if ((!bounds || !bounds.left && !bounds.top) && $daf8bee9365fb629$var$_getComputedStyle(element).display === \"none\") {\n // if display is \"none\", it won't report getBoundingClientRect() properly\n display = element.style.display;\n element.style.display = \"block\";\n bounds = $daf8bee9365fb629$var$_getBounds(element);\n display ? element.style.display = display : element.style.removeProperty(\"display\");\n }\n localOffset = $daf8bee9365fb629$var$_offsetToPx(offsets[0], bounds[direction.d]);\n globalOffset = $daf8bee9365fb629$var$_offsetToPx(offsets[1] || \"0\", scrollerSize);\n value = bounds[direction.p] - scrollerBounds[direction.p] - borderWidth + localOffset + scroll - globalOffset;\n markerScroller && $daf8bee9365fb629$var$_positionMarker(markerScroller, globalOffset, direction, scrollerSize - globalOffset < 20 || markerScroller._isStart && globalOffset > 20);\n scrollerSize -= scrollerSize - globalOffset; // adjust for the marker\n } else {\n containerAnimation && (value = $daf8bee9365fb629$var$gsap.utils.mapRange(containerAnimation.scrollTrigger.start, containerAnimation.scrollTrigger.end, 0, scrollerMax, value));\n markerScroller && $daf8bee9365fb629$var$_positionMarker(markerScroller, scrollerSize, direction, true);\n }\n if (marker) {\n var position = value + scrollerSize, isStart = marker._isStart;\n p1 = \"scroll\" + direction.d2;\n $daf8bee9365fb629$var$_positionMarker(marker, position, direction, isStart && position > 20 || !isStart && (useFixedPosition ? Math.max($daf8bee9365fb629$var$_body[p1], $daf8bee9365fb629$var$_docEl[p1]) : marker.parentNode[p1]) <= position + 1);\n if (useFixedPosition) {\n scrollerBounds = $daf8bee9365fb629$var$_getBounds(markerScroller);\n useFixedPosition && (marker.style[direction.op.p] = scrollerBounds[direction.op.p] - direction.op.m - marker._offset + $daf8bee9365fb629$var$_px);\n }\n }\n if (containerAnimation && element) {\n p1 = $daf8bee9365fb629$var$_getBounds(element);\n containerAnimation.seek(scrollerMax);\n p2 = $daf8bee9365fb629$var$_getBounds(element);\n containerAnimation._caScrollDist = p1[direction.p] - p2[direction.p];\n value = value / containerAnimation._caScrollDist * scrollerMax;\n }\n containerAnimation && containerAnimation.seek(time);\n return containerAnimation ? value : Math.round(value);\n}, $daf8bee9365fb629$var$_prefixExp = /(webkit|moz|length|cssText|inset)/i, $daf8bee9365fb629$var$_reparent = function _reparent(element, parent, top, left) {\n if (element.parentNode !== parent) {\n var style = element.style, p, cs;\n if (parent === $daf8bee9365fb629$var$_body) {\n element._stOrig = style.cssText; // record original inline styles so we can revert them later\n cs = $daf8bee9365fb629$var$_getComputedStyle(element);\n for(p in cs)// must copy all relevant styles to ensure that nothing changes visually when we reparent to the . Skip the vendor prefixed ones.\n if (!+p && !$daf8bee9365fb629$var$_prefixExp.test(p) && cs[p] && typeof style[p] === \"string\" && p !== \"0\") style[p] = cs[p];\n style.top = top;\n style.left = left;\n } else style.cssText = element._stOrig;\n $daf8bee9365fb629$var$gsap.core.getCache(element).uncache = 1;\n parent.appendChild(element);\n }\n}, $daf8bee9365fb629$var$_interruptionTracker = function _interruptionTracker(getValueFunc, initialValue, onInterrupt) {\n var last1 = initialValue, last2 = last1;\n return function(value) {\n var current = Math.round(getValueFunc()); // round because in some [very uncommon] Windows environments, scroll can get reported with decimals even though it was set without.\n if (current !== last1 && current !== last2 && Math.abs(current - last1) > 3 && Math.abs(current - last2) > 3) {\n // if the user scrolls, kill the tween. iOS Safari intermittently misreports the scroll position, it may be the most recently-set one or the one before that! When Safari is zoomed (CMD-+), it often misreports as 1 pixel off too! So if we set the scroll position to 125, for example, it'll actually report it as 124.\n value = current;\n onInterrupt && onInterrupt();\n }\n last2 = last1;\n last1 = value;\n return value;\n };\n}, // _mergeAnimations = animations => {\n// \tlet tl = gsap.timeline({smoothChildTiming: true}).startTime(Math.min(...animations.map(a => a.globalTime(0))));\n// \tanimations.forEach(a => {let time = a.totalTime(); tl.add(a); a.totalTime(time); });\n// \ttl.smoothChildTiming = false;\n// \treturn tl;\n// },\n// returns a function that can be used to tween the scroll position in the direction provided, and when doing so it'll add a .tween property to the FUNCTION itself, and remove it when the tween completes or gets killed. This gives us a way to have multiple ScrollTriggers use a central function for any given scroller and see if there's a scroll tween running (which would affect if/how things get updated)\n$daf8bee9365fb629$var$_getTweenCreator = function _getTweenCreator(scroller, direction) {\n var getScroll = (0, $d7385dda6eeeec57$export$8665aac53dad5647)(scroller, direction), prop = \"_scroll\" + direction.p2, // add a tweenable property to the scroller that's a getter/setter function, like _scrollTop or _scrollLeft. This way, if someone does gsap.killTweensOf(scroller) it'll kill the scroll tween.\n lastScroll1, lastScroll2, getTween = function getTween(scrollTo, vars, initialValue, change1, change2) {\n var tween = getTween.tween, onComplete = vars.onComplete, modifiers = {};\n initialValue = initialValue || getScroll();\n var checkForInterruption = $daf8bee9365fb629$var$_interruptionTracker(getScroll, initialValue, function() {\n tween.kill();\n getTween.tween = 0;\n });\n change2 = change1 && change2 || 0; // if change1 is 0, we set that to the difference and ignore change2. Otherwise, there would be a compound effect.\n change1 = change1 || scrollTo - initialValue;\n tween && tween.kill();\n lastScroll1 = Math.round(initialValue);\n vars[prop] = scrollTo;\n vars.modifiers = modifiers;\n modifiers[prop] = function() {\n return checkForInterruption(initialValue + change1 * tween.ratio + change2 * tween.ratio * tween.ratio);\n };\n vars.onUpdate = function() {\n (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).cache++;\n $daf8bee9365fb629$var$_updateAll();\n };\n vars.onComplete = function() {\n getTween.tween = 0;\n onComplete && onComplete.call(tween);\n };\n tween = getTween.tween = $daf8bee9365fb629$var$gsap.to(scroller, vars);\n return tween;\n };\n scroller[prop] = getScroll;\n getScroll.wheelHandler = function() {\n return getTween.tween && getTween.tween.kill() && (getTween.tween = 0);\n };\n $daf8bee9365fb629$var$_addListener(scroller, \"wheel\", getScroll.wheelHandler); // Windows machines handle mousewheel scrolling in chunks (like \"3 lines per scroll\") meaning the typical strategy for cancelling the scroll isn't as sensitive. It's much more likely to match one of the previous 2 scroll event positions. So we kill any snapping as soon as there's a wheel event.\n $daf8bee9365fb629$export$875bcbe48555930.isTouch && $daf8bee9365fb629$var$_addListener(scroller, \"touchmove\", getScroll.wheelHandler);\n return getTween;\n};\nvar $daf8bee9365fb629$export$875bcbe48555930 = /*#__PURE__*/ function() {\n function ScrollTrigger(vars, animation) {\n $daf8bee9365fb629$var$_coreInitted || ScrollTrigger.register($daf8bee9365fb629$var$gsap) || console.warn(\"Please gsap.registerPlugin(ScrollTrigger)\");\n this.init(vars, animation);\n }\n var _proto = ScrollTrigger.prototype;\n _proto.init = function init(vars, animation) {\n this.progress = this.start = 0;\n this.vars && this.kill(true, true); // in case it's being initted again\n if (!$daf8bee9365fb629$var$_enabled) {\n this.update = this.refresh = this.kill = $daf8bee9365fb629$var$_passThrough;\n return;\n }\n vars = $daf8bee9365fb629$var$_setDefaults($daf8bee9365fb629$var$_isString(vars) || $daf8bee9365fb629$var$_isNumber(vars) || vars.nodeType ? {\n trigger: vars\n } : vars, $daf8bee9365fb629$var$_defaults);\n var _vars = vars, onUpdate = _vars.onUpdate, toggleClass = _vars.toggleClass, id = _vars.id, onToggle = _vars.onToggle, onRefresh = _vars.onRefresh, scrub = _vars.scrub, trigger = _vars.trigger, pin = _vars.pin, pinSpacing = _vars.pinSpacing, invalidateOnRefresh = _vars.invalidateOnRefresh, anticipatePin = _vars.anticipatePin, onScrubComplete = _vars.onScrubComplete, onSnapComplete = _vars.onSnapComplete, once = _vars.once, snap = _vars.snap, pinReparent = _vars.pinReparent, pinSpacer = _vars.pinSpacer, containerAnimation = _vars.containerAnimation, fastScrollEnd = _vars.fastScrollEnd, preventOverlaps = _vars.preventOverlaps, direction = vars.horizontal || vars.containerAnimation && vars.horizontal !== false ? (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1) : (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d), isToggle = !scrub && scrub !== 0, scroller = (0, $d7385dda6eeeec57$export$937374fea3f88711)(vars.scroller || $daf8bee9365fb629$var$_win), scrollerCache = $daf8bee9365fb629$var$gsap.core.getCache(scroller), isViewport = $daf8bee9365fb629$var$_isViewport(scroller), useFixedPosition = (\"pinType\" in vars ? vars.pinType : (0, $d7385dda6eeeec57$export$6078f1ef08b38af9)(scroller, \"pinType\") || isViewport && \"fixed\") === \"fixed\", callbacks = [\n vars.onEnter,\n vars.onLeave,\n vars.onEnterBack,\n vars.onLeaveBack\n ], toggleActions = isToggle && vars.toggleActions.split(\" \"), markers = \"markers\" in vars ? vars.markers : $daf8bee9365fb629$var$_defaults.markers, borderWidth = isViewport ? 0 : parseFloat($daf8bee9365fb629$var$_getComputedStyle(scroller)[\"border\" + direction.p2 + $daf8bee9365fb629$var$_Width]) || 0, self = this, onRefreshInit = vars.onRefreshInit && function() {\n return vars.onRefreshInit(self);\n }, getScrollerSize = $daf8bee9365fb629$var$_getSizeFunc(scroller, isViewport, direction), getScrollerOffsets = $daf8bee9365fb629$var$_getOffsetsFunc(scroller, isViewport), lastSnap = 0, lastRefresh = 0, scrollFunc = (0, $d7385dda6eeeec57$export$8665aac53dad5647)(scroller, direction), tweenTo, pinCache, snapFunc, scroll1, scroll2, start, end, markerStart, markerEnd, markerStartTrigger, markerEndTrigger, markerVars, change, pinOriginalState, pinActiveState, pinState, spacer, offset, pinGetter, pinSetter, pinStart, pinChange, spacingStart, spacerState, markerStartSetter, pinMoves, markerEndSetter, cs, snap1, snap2, scrubTween, scrubSmooth, snapDurClamp, snapDelayedCall, prevProgress, prevScroll, prevAnimProgress, caMarkerSetter, customRevertReturn;\n $daf8bee9365fb629$var$_context(self);\n self._dir = direction;\n anticipatePin *= 45;\n self.scroller = scroller;\n self.scroll = containerAnimation ? containerAnimation.time.bind(containerAnimation) : scrollFunc;\n scroll1 = scrollFunc();\n self.vars = vars;\n animation = animation || vars.animation;\n if (\"refreshPriority\" in vars) {\n $daf8bee9365fb629$var$_sort = 1;\n vars.refreshPriority === -9999 && ($daf8bee9365fb629$var$_primary = self); // used by ScrollSmoother\n }\n scrollerCache.tweenScroll = scrollerCache.tweenScroll || {\n top: $daf8bee9365fb629$var$_getTweenCreator(scroller, (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d)),\n left: $daf8bee9365fb629$var$_getTweenCreator(scroller, (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1))\n };\n self.tweenTo = tweenTo = scrollerCache.tweenScroll[direction.p];\n self.scrubDuration = function(value) {\n scrubSmooth = $daf8bee9365fb629$var$_isNumber(value) && value;\n if (!scrubSmooth) {\n scrubTween && scrubTween.progress(1).kill();\n scrubTween = 0;\n } else scrubTween ? scrubTween.duration(value) : scrubTween = $daf8bee9365fb629$var$gsap.to(animation, {\n ease: \"expo\",\n totalProgress: \"+=0.001\",\n duration: scrubSmooth,\n paused: true,\n onComplete: function onComplete() {\n return onScrubComplete && onScrubComplete(self);\n }\n });\n };\n if (animation) {\n animation.vars.lazy = false;\n animation._initted || animation.vars.immediateRender !== false && vars.immediateRender !== false && animation.duration() && animation.render(0, true, true);\n self.animation = animation.pause();\n animation.scrollTrigger = self;\n self.scrubDuration(scrub);\n scrubTween && scrubTween.resetTo && scrubTween.resetTo(\"totalProgress\", 0); // otherwise the initial scrub progress value would start at 0.001 which normally is no big deal, but for containerAnimation it can be noticeable since the range is so tiny.\n snap1 = 0;\n id || (id = animation.vars.id);\n }\n $daf8bee9365fb629$var$_triggers.push(self);\n if (snap) {\n // TODO: potential idea: use legitimate CSS scroll snapping by pushing invisible elements into the DOM that serve as snap positions, and toggle the document.scrollingElement.style.scrollSnapType onToggle. See https://codepen.io/GreenSock/pen/JjLrgWM for a quick proof of concept.\n if (!$daf8bee9365fb629$var$_isObject(snap) || snap.push) snap = {\n snapTo: snap\n };\n \"scrollBehavior\" in $daf8bee9365fb629$var$_body.style && $daf8bee9365fb629$var$gsap.set(isViewport ? [\n $daf8bee9365fb629$var$_body,\n $daf8bee9365fb629$var$_docEl\n ] : scroller, {\n scrollBehavior: \"auto\"\n }); // smooth scrolling doesn't work with snap.\n (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).forEach(function(o) {\n return $daf8bee9365fb629$var$_isFunction(o) && o.target === (isViewport ? $daf8bee9365fb629$var$_doc.scrollingElement || $daf8bee9365fb629$var$_docEl : scroller) && (o.smooth = false);\n }); // note: set smooth to false on both the vertical and horizontal scroll getters/setters\n snapFunc = $daf8bee9365fb629$var$_isFunction(snap.snapTo) ? snap.snapTo : snap.snapTo === \"labels\" ? $daf8bee9365fb629$var$_getClosestLabel(animation) : snap.snapTo === \"labelsDirectional\" ? $daf8bee9365fb629$var$_getLabelAtDirection(animation) : snap.directional !== false ? function(value, st) {\n return $daf8bee9365fb629$var$_snapDirectional(snap.snapTo)(value, $daf8bee9365fb629$var$_getTime() - lastRefresh < 500 ? 0 : st.direction);\n } : $daf8bee9365fb629$var$gsap.utils.snap(snap.snapTo);\n snapDurClamp = snap.duration || {\n min: 0.1,\n max: 2\n };\n snapDurClamp = $daf8bee9365fb629$var$_isObject(snapDurClamp) ? $daf8bee9365fb629$var$_clamp(snapDurClamp.min, snapDurClamp.max) : $daf8bee9365fb629$var$_clamp(snapDurClamp, snapDurClamp);\n snapDelayedCall = $daf8bee9365fb629$var$gsap.delayedCall(snap.delay || scrubSmooth / 2 || 0.1, function() {\n var scroll = scrollFunc(), refreshedRecently = $daf8bee9365fb629$var$_getTime() - lastRefresh < 500, tween = tweenTo.tween;\n if ((refreshedRecently || Math.abs(self.getVelocity()) < 10) && !tween && !$daf8bee9365fb629$var$_pointerIsDown && lastSnap !== scroll) {\n var progress = (scroll - start) / change, totalProgress = animation && !isToggle ? animation.totalProgress() : progress, velocity = refreshedRecently ? 0 : (totalProgress - snap2) / ($daf8bee9365fb629$var$_getTime() - $daf8bee9365fb629$var$_time2) * 1000 || 0, change1 = $daf8bee9365fb629$var$gsap.utils.clamp(-progress, 1 - progress, $daf8bee9365fb629$var$_abs(velocity / 2) * velocity / 0.185), naturalEnd = progress + (snap.inertia === false ? 0 : change1), endValue = $daf8bee9365fb629$var$_clamp(0, 1, snapFunc(naturalEnd, self)), endScroll = Math.round(start + endValue * change), _snap = snap, onStart = _snap.onStart, _onInterrupt = _snap.onInterrupt, _onComplete = _snap.onComplete;\n if (scroll <= end && scroll >= start && endScroll !== scroll) {\n if (tween && !tween._initted && tween.data <= $daf8bee9365fb629$var$_abs(endScroll - scroll)) // there's an overlapping snap! So we must figure out which one is closer and let that tween live.\n return;\n if (snap.inertia === false) change1 = endValue - progress;\n tweenTo(endScroll, {\n duration: snapDurClamp($daf8bee9365fb629$var$_abs(Math.max($daf8bee9365fb629$var$_abs(naturalEnd - totalProgress), $daf8bee9365fb629$var$_abs(endValue - totalProgress)) * 0.185 / velocity / 0.05 || 0)),\n ease: snap.ease || \"power3\",\n data: $daf8bee9365fb629$var$_abs(endScroll - scroll),\n // record the distance so that if another snap tween occurs (conflict) we can prioritize the closest snap.\n onInterrupt: function onInterrupt() {\n return snapDelayedCall.restart(true) && _onInterrupt && _onInterrupt(self);\n },\n onComplete: function onComplete() {\n self.update();\n lastSnap = scrollFunc();\n snap1 = snap2 = animation && !isToggle ? animation.totalProgress() : self.progress;\n onSnapComplete && onSnapComplete(self);\n _onComplete && _onComplete(self);\n }\n }, scroll, change1 * change, endScroll - scroll - change1 * change);\n onStart && onStart(self, tweenTo.tween);\n }\n } else if (self.isActive && lastSnap !== scroll) snapDelayedCall.restart(true);\n }).pause();\n }\n id && ($daf8bee9365fb629$var$_ids[id] = self);\n trigger = self.trigger = (0, $d7385dda6eeeec57$export$937374fea3f88711)(trigger || pin); // if a trigger has some kind of scroll-related effect applied that could contaminate the \"y\" or \"x\" position (like a ScrollSmoother effect), we needed a way to temporarily revert it, so we use the stRevert property of the gsCache. It can return another function that we'll call at the end so it can return to its normal state.\n customRevertReturn = trigger && trigger._gsap && trigger._gsap.stRevert;\n customRevertReturn && (customRevertReturn = customRevertReturn(self));\n pin = pin === true ? trigger : (0, $d7385dda6eeeec57$export$937374fea3f88711)(pin);\n $daf8bee9365fb629$var$_isString(toggleClass) && (toggleClass = {\n targets: trigger,\n className: toggleClass\n });\n if (pin) {\n pinSpacing === false || pinSpacing === $daf8bee9365fb629$var$_margin || (pinSpacing = !pinSpacing && pin.parentNode && pin.parentNode.style && $daf8bee9365fb629$var$_getComputedStyle(pin.parentNode).display === \"flex\" ? false : $daf8bee9365fb629$var$_padding); // if the parent is display: flex, don't apply pinSpacing by default. We should check that pin.parentNode is an element (not shadow dom window)\n self.pin = pin;\n pinCache = $daf8bee9365fb629$var$gsap.core.getCache(pin);\n if (!pinCache.spacer) {\n // record the spacer and pinOriginalState on the cache in case someone tries pinning the same element with MULTIPLE ScrollTriggers - we don't want to have multiple spacers or record the \"original\" pin state after it has already been affected by another ScrollTrigger.\n if (pinSpacer) {\n pinSpacer = (0, $d7385dda6eeeec57$export$937374fea3f88711)(pinSpacer);\n pinSpacer && !pinSpacer.nodeType && (pinSpacer = pinSpacer.current || pinSpacer.nativeElement); // for React & Angular\n pinCache.spacerIsNative = !!pinSpacer;\n pinSpacer && (pinCache.spacerState = $daf8bee9365fb629$var$_getState(pinSpacer));\n }\n pinCache.spacer = spacer = pinSpacer || $daf8bee9365fb629$var$_doc.createElement(\"div\");\n spacer.classList.add(\"pin-spacer\");\n id && spacer.classList.add(\"pin-spacer-\" + id);\n pinCache.pinState = pinOriginalState = $daf8bee9365fb629$var$_getState(pin);\n } else pinOriginalState = pinCache.pinState;\n vars.force3D !== false && $daf8bee9365fb629$var$gsap.set(pin, {\n force3D: true\n });\n self.spacer = spacer = pinCache.spacer;\n cs = $daf8bee9365fb629$var$_getComputedStyle(pin);\n spacingStart = cs[pinSpacing + direction.os2];\n pinGetter = $daf8bee9365fb629$var$gsap.getProperty(pin);\n pinSetter = $daf8bee9365fb629$var$gsap.quickSetter(pin, direction.a, $daf8bee9365fb629$var$_px); // pin.firstChild && !_maxScroll(pin, direction) && (pin.style.overflow = \"hidden\"); // protects from collapsing margins, but can have unintended consequences as demonstrated here: https://codepen.io/GreenSock/pen/1e42c7a73bfa409d2cf1e184e7a4248d so it was removed in favor of just telling people to set up their CSS to avoid the collapsing margins (overflow: hidden | auto is just one option. Another is border-top: 1px solid transparent).\n $daf8bee9365fb629$var$_swapPinIn(pin, spacer, cs);\n pinState = $daf8bee9365fb629$var$_getState(pin);\n }\n if (markers) {\n markerVars = $daf8bee9365fb629$var$_isObject(markers) ? $daf8bee9365fb629$var$_setDefaults(markers, $daf8bee9365fb629$var$_markerDefaults) : $daf8bee9365fb629$var$_markerDefaults;\n markerStartTrigger = $daf8bee9365fb629$var$_createMarker(\"scroller-start\", id, scroller, direction, markerVars, 0);\n markerEndTrigger = $daf8bee9365fb629$var$_createMarker(\"scroller-end\", id, scroller, direction, markerVars, 0, markerStartTrigger);\n offset = markerStartTrigger[\"offset\" + direction.op.d2];\n var content = (0, $d7385dda6eeeec57$export$937374fea3f88711)((0, $d7385dda6eeeec57$export$6078f1ef08b38af9)(scroller, \"content\") || scroller);\n markerStart = this.markerStart = $daf8bee9365fb629$var$_createMarker(\"start\", id, content, direction, markerVars, offset, 0, containerAnimation);\n markerEnd = this.markerEnd = $daf8bee9365fb629$var$_createMarker(\"end\", id, content, direction, markerVars, offset, 0, containerAnimation);\n containerAnimation && (caMarkerSetter = $daf8bee9365fb629$var$gsap.quickSetter([\n markerStart,\n markerEnd\n ], direction.a, $daf8bee9365fb629$var$_px));\n if (!useFixedPosition && !((0, $d7385dda6eeeec57$export$d8e56d510a804d0a).length && (0, $d7385dda6eeeec57$export$6078f1ef08b38af9)(scroller, \"fixedMarkers\") === true)) {\n $daf8bee9365fb629$var$_makePositionable(isViewport ? $daf8bee9365fb629$var$_body : scroller);\n $daf8bee9365fb629$var$gsap.set([\n markerStartTrigger,\n markerEndTrigger\n ], {\n force3D: true\n });\n markerStartSetter = $daf8bee9365fb629$var$gsap.quickSetter(markerStartTrigger, direction.a, $daf8bee9365fb629$var$_px);\n markerEndSetter = $daf8bee9365fb629$var$gsap.quickSetter(markerEndTrigger, direction.a, $daf8bee9365fb629$var$_px);\n }\n }\n if (containerAnimation) {\n var oldOnUpdate = containerAnimation.vars.onUpdate, oldParams = containerAnimation.vars.onUpdateParams;\n containerAnimation.eventCallback(\"onUpdate\", function() {\n self.update(0, 0, 1);\n oldOnUpdate && oldOnUpdate.apply(containerAnimation, oldParams || []);\n });\n }\n self.previous = function() {\n return $daf8bee9365fb629$var$_triggers[$daf8bee9365fb629$var$_triggers.indexOf(self) - 1];\n };\n self.next = function() {\n return $daf8bee9365fb629$var$_triggers[$daf8bee9365fb629$var$_triggers.indexOf(self) + 1];\n };\n self.revert = function(revert, temp) {\n if (!temp) return self.kill(true);\n // for compatibility with gsap.context() and gsap.matchMedia() which call revert()\n var r = revert !== false || !self.enabled, prevRefreshing = $daf8bee9365fb629$var$_refreshing;\n if (r !== self.isReverted) {\n if (r) {\n // if (!self.scroll.rec && (_refreshing || _refreshingAll)) {\n // \tself.scroll.rec = scrollFunc();\n // \t_refreshingAll && scrollFunc(0);\n // }\n prevScroll = Math.max(scrollFunc(), self.scroll.rec || 0); // record the scroll so we can revert later (repositioning/pinning things can affect scroll position). In the static refresh() method, we first record all the scroll positions as a reference.\n prevProgress = self.progress;\n prevAnimProgress = animation && animation.progress();\n }\n markerStart && [\n markerStart,\n markerEnd,\n markerStartTrigger,\n markerEndTrigger\n ].forEach(function(m) {\n return m.style.display = r ? \"none\" : \"block\";\n });\n if (r) {\n $daf8bee9365fb629$var$_refreshing = self;\n self.update(r); // make sure the pin is back in its original position so that all the measurements are correct. do this BEFORE swapping the pin out\n }\n if (pin && (!pinReparent || !self.isActive)) {\n if (r) $daf8bee9365fb629$var$_swapPinOut(pin, spacer, pinOriginalState);\n else $daf8bee9365fb629$var$_swapPinIn(pin, spacer, $daf8bee9365fb629$var$_getComputedStyle(pin), spacerState);\n }\n r || self.update(r); // when we're restoring, the update should run AFTER swapping the pin into its pin-spacer.\n $daf8bee9365fb629$var$_refreshing = prevRefreshing; // restore. We set it to true during the update() so that things fire properly in there.\n self.isReverted = r;\n }\n };\n self.refresh = function(soft, force) {\n if (($daf8bee9365fb629$var$_refreshing || !self.enabled) && !force) return;\n if (pin && soft && $daf8bee9365fb629$var$_lastScrollTime) {\n $daf8bee9365fb629$var$_addListener(ScrollTrigger, \"scrollEnd\", $daf8bee9365fb629$var$_softRefresh);\n return;\n }\n !$daf8bee9365fb629$var$_refreshingAll && onRefreshInit && onRefreshInit(self);\n $daf8bee9365fb629$var$_refreshing = self;\n lastRefresh = $daf8bee9365fb629$var$_getTime();\n if (tweenTo.tween) {\n tweenTo.tween.kill();\n tweenTo.tween = 0;\n }\n scrubTween && scrubTween.pause();\n invalidateOnRefresh && animation && animation.revert({\n kill: false\n }).invalidate();\n self.isReverted || self.revert(true, true);\n self._subPinOffset = false; // we'll set this to true in the sub-pins if we find any\n var size = getScrollerSize(), scrollerBounds = getScrollerOffsets(), max = containerAnimation ? containerAnimation.duration() : $daf8bee9365fb629$var$_maxScroll(scroller, direction), isFirstRefresh = change <= 0.01, offset = 0, otherPinOffset = 0, parsedEnd = vars.end, parsedEndTrigger = vars.endTrigger || trigger, parsedStart = vars.start || (vars.start === 0 || !trigger ? 0 : pin ? \"0 0\" : \"0 100%\"), pinnedContainer = self.pinnedContainer = vars.pinnedContainer && (0, $d7385dda6eeeec57$export$937374fea3f88711)(vars.pinnedContainer), triggerIndex = trigger && Math.max(0, $daf8bee9365fb629$var$_triggers.indexOf(self)) || 0, i = triggerIndex, cs, bounds, scroll, isVertical, override, curTrigger, curPin, oppositeScroll, initted, revertedPins, forcedOverflow;\n while(i--){\n // user might try to pin the same element more than once, so we must find any prior triggers with the same pin, revert them, and determine how long they're pinning so that we can offset things appropriately. Make sure we revert from last to first so that things \"rewind\" properly.\n curTrigger = $daf8bee9365fb629$var$_triggers[i];\n curTrigger.end || curTrigger.refresh(0, 1) || ($daf8bee9365fb629$var$_refreshing = self); // if it's a timeline-based trigger that hasn't been fully initialized yet because it's waiting for 1 tick, just force the refresh() here, otherwise if it contains a pin that's supposed to affect other ScrollTriggers further down the page, they won't be adjusted properly.\n curPin = curTrigger.pin;\n if (curPin && (curPin === trigger || curPin === pin || curPin === pinnedContainer) && !curTrigger.isReverted) {\n revertedPins || (revertedPins = []);\n revertedPins.unshift(curTrigger); // we'll revert from first to last to make sure things reach their end state properly\n curTrigger.revert(true, true);\n }\n if (curTrigger !== $daf8bee9365fb629$var$_triggers[i]) {\n // in case it got removed.\n triggerIndex--;\n i--;\n }\n }\n $daf8bee9365fb629$var$_isFunction(parsedStart) && (parsedStart = parsedStart(self));\n start = $daf8bee9365fb629$var$_parsePosition(parsedStart, trigger, size, direction, scrollFunc(), markerStart, markerStartTrigger, self, scrollerBounds, borderWidth, useFixedPosition, max, containerAnimation) || (pin ? -0.001 : 0);\n $daf8bee9365fb629$var$_isFunction(parsedEnd) && (parsedEnd = parsedEnd(self));\n if ($daf8bee9365fb629$var$_isString(parsedEnd) && !parsedEnd.indexOf(\"+=\")) {\n if (~parsedEnd.indexOf(\" \")) parsedEnd = ($daf8bee9365fb629$var$_isString(parsedStart) ? parsedStart.split(\" \")[0] : \"\") + parsedEnd;\n else {\n offset = $daf8bee9365fb629$var$_offsetToPx(parsedEnd.substr(2), size);\n parsedEnd = $daf8bee9365fb629$var$_isString(parsedStart) ? parsedStart : (containerAnimation ? $daf8bee9365fb629$var$gsap.utils.mapRange(0, containerAnimation.duration(), containerAnimation.scrollTrigger.start, containerAnimation.scrollTrigger.end, start) : start) + offset; // _parsePosition won't factor in the offset if the start is a number, so do it here.\n parsedEndTrigger = trigger;\n }\n }\n end = Math.max(start, $daf8bee9365fb629$var$_parsePosition(parsedEnd || (parsedEndTrigger ? \"100% 0\" : max), parsedEndTrigger, size, direction, scrollFunc() + offset, markerEnd, markerEndTrigger, self, scrollerBounds, borderWidth, useFixedPosition, max, containerAnimation)) || -0.001;\n change = end - start || (start -= 0.01) && 0.001;\n offset = 0;\n i = triggerIndex;\n while(i--){\n curTrigger = $daf8bee9365fb629$var$_triggers[i];\n curPin = curTrigger.pin;\n if (curPin && curTrigger.start - curTrigger._pinPush <= start && !containerAnimation && curTrigger.end > 0) {\n cs = curTrigger.end - curTrigger.start;\n if ((curPin === trigger && curTrigger.start - curTrigger._pinPush < start || curPin === pinnedContainer) && !$daf8bee9365fb629$var$_isNumber(parsedStart)) // numeric start values shouldn't be offset at all - treat them as absolute\n offset += cs * (1 - curTrigger.progress);\n curPin === pin && (otherPinOffset += cs);\n }\n }\n start += offset;\n end += offset;\n if (isFirstRefresh) // on the very first refresh(), the prevProgress couldn't have been accurate yet because the start/end were never calculated, so we set it here. Before 3.11.5, it could lead to an inaccurate scroll position restoration with snapping.\n prevProgress = $daf8bee9365fb629$var$gsap.utils.clamp(0, 1, $daf8bee9365fb629$var$gsap.utils.normalize(start, end, prevScroll));\n self._pinPush = otherPinOffset;\n if (markerStart && offset) {\n // offset the markers if necessary\n cs = {};\n cs[direction.a] = \"+=\" + offset;\n pinnedContainer && (cs[direction.p] = \"-=\" + scrollFunc());\n $daf8bee9365fb629$var$gsap.set([\n markerStart,\n markerEnd\n ], cs);\n }\n if (pin) {\n cs = $daf8bee9365fb629$var$_getComputedStyle(pin);\n isVertical = direction === (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d);\n scroll = scrollFunc(); // recalculate because the triggers can affect the scroll\n pinStart = parseFloat(pinGetter(direction.a)) + otherPinOffset;\n if (!max && end > 1) {\n // makes sure the scroller has a scrollbar, otherwise if something has width: 100%, for example, it would be too big (exclude the scrollbar). See https://greensock.com/forums/topic/25182-scrolltrigger-width-of-page-increase-where-markers-are-set-to-false/\n forcedOverflow = (isViewport ? $daf8bee9365fb629$var$_doc.scrollingElement || $daf8bee9365fb629$var$_docEl : scroller).style;\n forcedOverflow = {\n style: forcedOverflow,\n value: forcedOverflow[\"overflow\" + direction.a.toUpperCase()]\n };\n forcedOverflow.style[\"overflow\" + direction.a.toUpperCase()] = \"scroll\";\n }\n $daf8bee9365fb629$var$_swapPinIn(pin, spacer, cs);\n pinState = $daf8bee9365fb629$var$_getState(pin); // transforms will interfere with the top/left/right/bottom placement, so remove them temporarily. getBoundingClientRect() factors in transforms.\n bounds = $daf8bee9365fb629$var$_getBounds(pin, true);\n oppositeScroll = useFixedPosition && (0, $d7385dda6eeeec57$export$8665aac53dad5647)(scroller, isVertical ? (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1) : (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d))();\n if (pinSpacing) {\n spacerState = [\n pinSpacing + direction.os2,\n change + otherPinOffset + $daf8bee9365fb629$var$_px\n ];\n spacerState.t = spacer;\n i = pinSpacing === $daf8bee9365fb629$var$_padding ? $daf8bee9365fb629$var$_getSize(pin, direction) + change + otherPinOffset : 0;\n i && spacerState.push(direction.d, i + $daf8bee9365fb629$var$_px); // for box-sizing: border-box (must include padding).\n $daf8bee9365fb629$var$_setState(spacerState);\n if (pinnedContainer) // in ScrollTrigger.refresh(), we need to re-evaluate the pinContainer's size because this pinSpacing may stretch it out, but we can't just add the exact distance because depending on layout, it may not push things down or it may only do so partially.\n $daf8bee9365fb629$var$_triggers.forEach(function(t) {\n if (t.pin === pinnedContainer && t.vars.pinSpacing !== false) t._subPinOffset = true;\n });\n useFixedPosition && scrollFunc(prevScroll);\n }\n if (useFixedPosition) {\n override = {\n top: bounds.top + (isVertical ? scroll - start : oppositeScroll) + $daf8bee9365fb629$var$_px,\n left: bounds.left + (isVertical ? oppositeScroll : scroll - start) + $daf8bee9365fb629$var$_px,\n boxSizing: \"border-box\",\n position: \"fixed\"\n };\n override[$daf8bee9365fb629$var$_width] = override[\"max\" + $daf8bee9365fb629$var$_Width] = Math.ceil(bounds.width) + $daf8bee9365fb629$var$_px;\n override[$daf8bee9365fb629$var$_height] = override[\"max\" + $daf8bee9365fb629$var$_Height] = Math.ceil(bounds.height) + $daf8bee9365fb629$var$_px;\n override[$daf8bee9365fb629$var$_margin] = override[$daf8bee9365fb629$var$_margin + $daf8bee9365fb629$var$_Top] = override[$daf8bee9365fb629$var$_margin + $daf8bee9365fb629$var$_Right] = override[$daf8bee9365fb629$var$_margin + $daf8bee9365fb629$var$_Bottom] = override[$daf8bee9365fb629$var$_margin + $daf8bee9365fb629$var$_Left] = \"0\";\n override[$daf8bee9365fb629$var$_padding] = cs[$daf8bee9365fb629$var$_padding];\n override[$daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Top] = cs[$daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Top];\n override[$daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Right] = cs[$daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Right];\n override[$daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Bottom] = cs[$daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Bottom];\n override[$daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Left] = cs[$daf8bee9365fb629$var$_padding + $daf8bee9365fb629$var$_Left];\n pinActiveState = $daf8bee9365fb629$var$_copyState(pinOriginalState, override, pinReparent);\n $daf8bee9365fb629$var$_refreshingAll && scrollFunc(0);\n }\n if (animation) {\n // the animation might be affecting the transform, so we must jump to the end, check the value, and compensate accordingly. Otherwise, when it becomes unpinned, the pinSetter() will get set to a value that doesn't include whatever the animation did.\n initted = animation._initted; // if not, we must invalidate() after this step, otherwise it could lock in starting values prematurely.\n $daf8bee9365fb629$var$_suppressOverwrites(1);\n animation.render(animation.duration(), true, true);\n pinChange = pinGetter(direction.a) - pinStart + change + otherPinOffset;\n pinMoves = Math.abs(change - pinChange) > 1;\n useFixedPosition && pinMoves && pinActiveState.splice(pinActiveState.length - 2, 2); // transform is the last property/value set in the state Array. Since the animation is controlling that, we should omit it.\n animation.render(0, true, true);\n initted || animation.invalidate(true);\n animation.parent || animation.totalTime(animation.totalTime()); // if, for example, a toggleAction called play() and then refresh() happens and when we render(1) above, it would cause the animation to complete and get removed from its parent, so this makes sure it gets put back in.\n $daf8bee9365fb629$var$_suppressOverwrites(0);\n } else pinChange = change;\n forcedOverflow && (forcedOverflow.value ? forcedOverflow.style[\"overflow\" + direction.a.toUpperCase()] = forcedOverflow.value : forcedOverflow.style.removeProperty(\"overflow-\" + direction.a));\n } else if (trigger && scrollFunc() && !containerAnimation) {\n // it may be INSIDE a pinned element, so walk up the tree and look for any elements with _pinOffset to compensate because anything with pinSpacing that's already scrolled would throw off the measurements in getBoundingClientRect()\n bounds = trigger.parentNode;\n while(bounds && bounds !== $daf8bee9365fb629$var$_body){\n if (bounds._pinOffset) {\n start -= bounds._pinOffset;\n end -= bounds._pinOffset;\n }\n bounds = bounds.parentNode;\n }\n }\n revertedPins && revertedPins.forEach(function(t) {\n return t.revert(false, true);\n });\n self.start = start;\n self.end = end;\n scroll1 = scroll2 = $daf8bee9365fb629$var$_refreshingAll ? prevScroll : scrollFunc(); // reset velocity\n if (!containerAnimation && !$daf8bee9365fb629$var$_refreshingAll) {\n scroll1 < prevScroll && scrollFunc(prevScroll);\n self.scroll.rec = 0;\n }\n self.revert(false, true);\n if (snapDelayedCall) {\n lastSnap = -1;\n self.isActive && scrollFunc(start + change * prevProgress); // just so snapping gets re-enabled, clear out any recorded last value\n snapDelayedCall.restart(true);\n }\n $daf8bee9365fb629$var$_refreshing = 0;\n animation && isToggle && (animation._initted || prevAnimProgress) && animation.progress() !== prevAnimProgress && animation.progress(prevAnimProgress, true).render(animation.time(), true, true); // must force a re-render because if saveStyles() was used on the target(s), the styles could have been wiped out during the refresh().\n if (isFirstRefresh || prevProgress !== self.progress || containerAnimation) {\n // ensures that the direction is set properly (when refreshing, progress is set back to 0 initially, then back again to wherever it needs to be) and that callbacks are triggered.\n animation && !isToggle && animation.totalProgress(containerAnimation && start < -0.001 && !prevProgress ? $daf8bee9365fb629$var$gsap.utils.normalize(start, end, 0) : prevProgress, true); // to avoid issues where animation callbacks like onStart aren't triggered.\n self.progress = (scroll1 - start) / change === prevProgress ? 0 : prevProgress;\n }\n pin && pinSpacing && (spacer._pinOffset = Math.round(self.progress * pinChange));\n scrubTween && scrubTween.invalidate();\n onRefresh && !$daf8bee9365fb629$var$_refreshingAll && onRefresh(self); // when refreshing all, we do extra work to correct pinnedContainer sizes and ensure things don't exceed the maxScroll, so we should do all the refreshes at the end after all that work so that the start/end values are corrected.\n };\n self.getVelocity = function() {\n return (scrollFunc() - scroll2) / ($daf8bee9365fb629$var$_getTime() - $daf8bee9365fb629$var$_time2) * 1000 || 0;\n };\n self.endAnimation = function() {\n $daf8bee9365fb629$var$_endAnimation(self.callbackAnimation);\n if (animation) scrubTween ? scrubTween.progress(1) : !animation.paused() ? $daf8bee9365fb629$var$_endAnimation(animation, animation.reversed()) : isToggle || $daf8bee9365fb629$var$_endAnimation(animation, self.direction < 0, 1);\n };\n self.labelToScroll = function(label) {\n return animation && animation.labels && (start || self.refresh() || start) + animation.labels[label] / animation.duration() * change || 0;\n };\n self.getTrailing = function(name) {\n var i = $daf8bee9365fb629$var$_triggers.indexOf(self), a = self.direction > 0 ? $daf8bee9365fb629$var$_triggers.slice(0, i).reverse() : $daf8bee9365fb629$var$_triggers.slice(i + 1);\n return ($daf8bee9365fb629$var$_isString(name) ? a.filter(function(t) {\n return t.vars.preventOverlaps === name;\n }) : a).filter(function(t) {\n return self.direction > 0 ? t.end <= start : t.start >= end;\n });\n };\n self.update = function(reset, recordVelocity, forceFake) {\n if (containerAnimation && !forceFake && !reset) return;\n var scroll = $daf8bee9365fb629$var$_refreshingAll === true ? prevScroll : self.scroll(), p = reset ? 0 : (scroll - start) / change, clipped = p < 0 ? 0 : p > 1 ? 1 : p || 0, prevProgress = self.progress, isActive, wasActive, toggleState, action, stateChanged, toggled, isAtMax, isTakingAction;\n if (recordVelocity) {\n scroll2 = scroll1;\n scroll1 = containerAnimation ? scrollFunc() : scroll;\n if (snap) {\n snap2 = snap1;\n snap1 = animation && !isToggle ? animation.totalProgress() : clipped;\n }\n } // anticipate the pinning a few ticks ahead of time based on velocity to avoid a visual glitch due to the fact that most browsers do scrolling on a separate thread (not synced with requestAnimationFrame).\n anticipatePin && !clipped && pin && !$daf8bee9365fb629$var$_refreshing && !$daf8bee9365fb629$var$_startup && $daf8bee9365fb629$var$_lastScrollTime && start < scroll + (scroll - scroll2) / ($daf8bee9365fb629$var$_getTime() - $daf8bee9365fb629$var$_time2) * anticipatePin && (clipped = 0.0001);\n if (clipped !== prevProgress && self.enabled) {\n isActive = self.isActive = !!clipped && clipped < 1;\n wasActive = !!prevProgress && prevProgress < 1;\n toggled = isActive !== wasActive;\n stateChanged = toggled || !!clipped !== !!prevProgress; // could go from start all the way to end, thus it didn't toggle but it did change state in a sense (may need to fire a callback)\n self.direction = clipped > prevProgress ? 1 : -1;\n self.progress = clipped;\n if (stateChanged && !$daf8bee9365fb629$var$_refreshing) {\n toggleState = clipped && !prevProgress ? 0 : clipped === 1 ? 1 : prevProgress === 1 ? 2 : 3; // 0 = enter, 1 = leave, 2 = enterBack, 3 = leaveBack (we prioritize the FIRST encounter, thus if you scroll really fast past the onEnter and onLeave in one tick, it'd prioritize onEnter.\n if (isToggle) {\n action = !toggled && toggleActions[toggleState + 1] !== \"none\" && toggleActions[toggleState + 1] || toggleActions[toggleState]; // if it didn't toggle, that means it shot right past and since we prioritize the \"enter\" action, we should switch to the \"leave\" in this case (but only if one is defined)\n isTakingAction = animation && (action === \"complete\" || action === \"reset\" || action in animation);\n }\n }\n preventOverlaps && (toggled || isTakingAction) && (isTakingAction || scrub || !animation) && ($daf8bee9365fb629$var$_isFunction(preventOverlaps) ? preventOverlaps(self) : self.getTrailing(preventOverlaps).forEach(function(t) {\n return t.endAnimation();\n }));\n if (!isToggle) {\n if (scrubTween && !$daf8bee9365fb629$var$_refreshing && !$daf8bee9365fb629$var$_startup) {\n scrubTween._dp._time - scrubTween._start !== scrubTween._time && scrubTween.render(scrubTween._dp._time - scrubTween._start); // if there's a scrub on both the container animation and this one (or a ScrollSmoother), the update order would cause this one not to have rendered yet, so it wouldn't make any progress before we .restart() it heading toward the new progress so it'd appear stuck thus we force a render here.\n if (scrubTween.resetTo) scrubTween.resetTo(\"totalProgress\", clipped, animation._tTime / animation._tDur);\n else {\n // legacy support (courtesy), before 3.10.0\n scrubTween.vars.totalProgress = clipped;\n scrubTween.invalidate().restart();\n }\n } else if (animation) animation.totalProgress(clipped, !!$daf8bee9365fb629$var$_refreshing);\n }\n if (pin) {\n reset && pinSpacing && (spacer.style[pinSpacing + direction.os2] = spacingStart);\n if (!useFixedPosition) pinSetter($daf8bee9365fb629$var$_round(pinStart + pinChange * clipped));\n else if (stateChanged) {\n isAtMax = !reset && clipped > prevProgress && end + 1 > scroll && scroll + 1 >= $daf8bee9365fb629$var$_maxScroll(scroller, direction); // if it's at the VERY end of the page, don't switch away from position: fixed because it's pointless and it could cause a brief flash when the user scrolls back up (when it gets pinned again)\n if (pinReparent) {\n if (!reset && (isActive || isAtMax)) {\n var bounds = $daf8bee9365fb629$var$_getBounds(pin, true), _offset = scroll - start;\n $daf8bee9365fb629$var$_reparent(pin, $daf8bee9365fb629$var$_body, bounds.top + (direction === (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d) ? _offset : 0) + $daf8bee9365fb629$var$_px, bounds.left + (direction === (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d) ? 0 : _offset) + $daf8bee9365fb629$var$_px);\n } else $daf8bee9365fb629$var$_reparent(pin, spacer);\n }\n $daf8bee9365fb629$var$_setState(isActive || isAtMax ? pinActiveState : pinState);\n pinMoves && clipped < 1 && isActive || pinSetter(pinStart + (clipped === 1 && !isAtMax ? pinChange : 0));\n }\n }\n snap && !tweenTo.tween && !$daf8bee9365fb629$var$_refreshing && !$daf8bee9365fb629$var$_startup && snapDelayedCall.restart(true);\n toggleClass && (toggled || once && clipped && (clipped < 1 || !$daf8bee9365fb629$var$_limitCallbacks)) && $daf8bee9365fb629$var$_toArray(toggleClass.targets).forEach(function(el) {\n return el.classList[isActive || once ? \"add\" : \"remove\"](toggleClass.className);\n }); // classes could affect positioning, so do it even if reset or refreshing is true.\n onUpdate && !isToggle && !reset && onUpdate(self);\n if (stateChanged && !$daf8bee9365fb629$var$_refreshing) {\n if (isToggle) {\n if (isTakingAction) {\n if (action === \"complete\") animation.pause().totalProgress(1);\n else if (action === \"reset\") animation.restart(true).pause();\n else if (action === \"restart\") animation.restart(true);\n else animation[action]();\n }\n onUpdate && onUpdate(self);\n }\n if (toggled || !$daf8bee9365fb629$var$_limitCallbacks) {\n // on startup, the page could be scrolled and we don't want to fire callbacks that didn't toggle. For example onEnter shouldn't fire if the ScrollTrigger isn't actually entered.\n onToggle && toggled && $daf8bee9365fb629$var$_callback(self, onToggle);\n callbacks[toggleState] && $daf8bee9365fb629$var$_callback(self, callbacks[toggleState]);\n once && (clipped === 1 ? self.kill(false, 1) : callbacks[toggleState] = 0); // a callback shouldn't be called again if once is true.\n if (!toggled) {\n // it's possible to go completely past, like from before the start to after the end (or vice-versa) in which case BOTH callbacks should be fired in that order\n toggleState = clipped === 1 ? 1 : 3;\n callbacks[toggleState] && $daf8bee9365fb629$var$_callback(self, callbacks[toggleState]);\n }\n }\n if (fastScrollEnd && !isActive && Math.abs(self.getVelocity()) > ($daf8bee9365fb629$var$_isNumber(fastScrollEnd) ? fastScrollEnd : 2500)) {\n $daf8bee9365fb629$var$_endAnimation(self.callbackAnimation);\n scrubTween ? scrubTween.progress(1) : $daf8bee9365fb629$var$_endAnimation(animation, action === \"reverse\" ? 1 : !clipped, 1);\n }\n } else if (isToggle && onUpdate && !$daf8bee9365fb629$var$_refreshing) onUpdate(self);\n } // update absolutely-positioned markers (only if the scroller isn't the viewport)\n if (markerEndSetter) {\n var n = containerAnimation ? scroll / containerAnimation.duration() * (containerAnimation._caScrollDist || 0) : scroll;\n markerStartSetter(n + (markerStartTrigger._isFlipped ? 1 : 0));\n markerEndSetter(n);\n }\n caMarkerSetter && caMarkerSetter(-scroll / containerAnimation.duration() * (containerAnimation._caScrollDist || 0));\n };\n self.enable = function(reset, refresh) {\n if (!self.enabled) {\n self.enabled = true;\n $daf8bee9365fb629$var$_addListener(scroller, \"resize\", $daf8bee9365fb629$var$_onResize);\n $daf8bee9365fb629$var$_addListener(isViewport ? $daf8bee9365fb629$var$_doc : scroller, \"scroll\", $daf8bee9365fb629$var$_onScroll);\n onRefreshInit && $daf8bee9365fb629$var$_addListener(ScrollTrigger, \"refreshInit\", onRefreshInit);\n if (reset !== false) {\n self.progress = prevProgress = 0;\n scroll1 = scroll2 = lastSnap = scrollFunc();\n }\n refresh !== false && self.refresh();\n }\n };\n self.getTween = function(snap) {\n return snap && tweenTo ? tweenTo.tween : scrubTween;\n };\n self.setPositions = function(newStart, newEnd) {\n // doesn't persist after refresh()! Intended to be a way to override values that were set during refresh(), like you could set it in onRefresh()\n if (pin) {\n pinStart += newStart - start;\n pinChange += newEnd - newStart - change;\n pinSpacing === $daf8bee9365fb629$var$_padding && self.adjustPinSpacing(newEnd - newStart - change);\n }\n self.start = start = newStart;\n self.end = end = newEnd;\n change = newEnd - newStart;\n self.update();\n };\n self.adjustPinSpacing = function(amount) {\n if (spacerState && amount) {\n var i = spacerState.indexOf(direction.d) + 1;\n spacerState[i] = parseFloat(spacerState[i]) + amount + $daf8bee9365fb629$var$_px;\n spacerState[1] = parseFloat(spacerState[1]) + amount + $daf8bee9365fb629$var$_px;\n $daf8bee9365fb629$var$_setState(spacerState);\n }\n };\n self.disable = function(reset, allowAnimation) {\n if (self.enabled) {\n reset !== false && self.revert(true, true);\n self.enabled = self.isActive = false;\n allowAnimation || scrubTween && scrubTween.pause();\n prevScroll = 0;\n pinCache && (pinCache.uncache = 1);\n onRefreshInit && $daf8bee9365fb629$var$_removeListener(ScrollTrigger, \"refreshInit\", onRefreshInit);\n if (snapDelayedCall) {\n snapDelayedCall.pause();\n tweenTo.tween && tweenTo.tween.kill() && (tweenTo.tween = 0);\n }\n if (!isViewport) {\n var i = $daf8bee9365fb629$var$_triggers.length;\n while(i--){\n if ($daf8bee9365fb629$var$_triggers[i].scroller === scroller && $daf8bee9365fb629$var$_triggers[i] !== self) return; //don't remove the listeners if there are still other triggers referencing it.\n }\n $daf8bee9365fb629$var$_removeListener(scroller, \"resize\", $daf8bee9365fb629$var$_onResize);\n $daf8bee9365fb629$var$_removeListener(scroller, \"scroll\", $daf8bee9365fb629$var$_onScroll);\n }\n }\n };\n self.kill = function(revert, allowAnimation) {\n self.disable(revert, allowAnimation);\n scrubTween && !allowAnimation && scrubTween.kill();\n id && delete $daf8bee9365fb629$var$_ids[id];\n var i = $daf8bee9365fb629$var$_triggers.indexOf(self);\n i >= 0 && $daf8bee9365fb629$var$_triggers.splice(i, 1);\n i === $daf8bee9365fb629$var$_i && $daf8bee9365fb629$var$_direction > 0 && $daf8bee9365fb629$var$_i--; // if we're in the middle of a refresh() or update(), splicing would cause skips in the index, so adjust...\n // if no other ScrollTrigger instances of the same scroller are found, wipe out any recorded scroll position. Otherwise, in a single page application, for example, it could maintain scroll position when it really shouldn't.\n i = 0;\n $daf8bee9365fb629$var$_triggers.forEach(function(t) {\n return t.scroller === self.scroller && (i = 1);\n });\n i || $daf8bee9365fb629$var$_refreshingAll || (self.scroll.rec = 0);\n if (animation) {\n animation.scrollTrigger = null;\n revert && animation.revert({\n kill: false\n });\n allowAnimation || animation.kill();\n }\n markerStart && [\n markerStart,\n markerEnd,\n markerStartTrigger,\n markerEndTrigger\n ].forEach(function(m) {\n return m.parentNode && m.parentNode.removeChild(m);\n });\n $daf8bee9365fb629$var$_primary === self && ($daf8bee9365fb629$var$_primary = 0);\n if (pin) {\n pinCache && (pinCache.uncache = 1);\n i = 0;\n $daf8bee9365fb629$var$_triggers.forEach(function(t) {\n return t.pin === pin && i++;\n });\n i || (pinCache.spacer = 0); // if there aren't any more ScrollTriggers with the same pin, remove the spacer, otherwise it could be contaminated with old/stale values if the user re-creates a ScrollTrigger for the same element.\n }\n vars.onKill && vars.onKill(self);\n };\n self.enable(false, false);\n customRevertReturn && customRevertReturn(self);\n !animation || !animation.add || change ? self.refresh() : $daf8bee9365fb629$var$gsap.delayedCall(0.01, function() {\n return start || end || self.refresh();\n }) && (change = 0.01) && (start = end = 0); // if the animation is a timeline, it may not have been populated yet, so it wouldn't render at the proper place on the first refresh(), thus we should schedule one for the next tick. If \"change\" is defined, we know it must be re-enabling, thus we can refresh() right away.\n pin && $daf8bee9365fb629$var$_queueRefreshAll(); // pinning could affect the positions of other things, so make sure we queue a full refresh()\n };\n ScrollTrigger.register = function register(core) {\n if (!$daf8bee9365fb629$var$_coreInitted) {\n $daf8bee9365fb629$var$gsap = core || $daf8bee9365fb629$var$_getGSAP();\n $daf8bee9365fb629$var$_windowExists() && window.document && ScrollTrigger.enable();\n $daf8bee9365fb629$var$_coreInitted = $daf8bee9365fb629$var$_enabled;\n }\n return $daf8bee9365fb629$var$_coreInitted;\n };\n ScrollTrigger.defaults = function defaults(config) {\n if (config) for(var p in config)$daf8bee9365fb629$var$_defaults[p] = config[p];\n return $daf8bee9365fb629$var$_defaults;\n };\n ScrollTrigger.disable = function disable(reset, kill) {\n $daf8bee9365fb629$var$_enabled = 0;\n $daf8bee9365fb629$var$_triggers.forEach(function(trigger) {\n return trigger[kill ? \"kill\" : \"disable\"](reset);\n });\n $daf8bee9365fb629$var$_removeListener($daf8bee9365fb629$var$_win, \"wheel\", $daf8bee9365fb629$var$_onScroll);\n $daf8bee9365fb629$var$_removeListener($daf8bee9365fb629$var$_doc, \"scroll\", $daf8bee9365fb629$var$_onScroll);\n clearInterval($daf8bee9365fb629$var$_syncInterval);\n $daf8bee9365fb629$var$_removeListener($daf8bee9365fb629$var$_doc, \"touchcancel\", $daf8bee9365fb629$var$_passThrough);\n $daf8bee9365fb629$var$_removeListener($daf8bee9365fb629$var$_body, \"touchstart\", $daf8bee9365fb629$var$_passThrough);\n $daf8bee9365fb629$var$_multiListener($daf8bee9365fb629$var$_removeListener, $daf8bee9365fb629$var$_doc, \"pointerdown,touchstart,mousedown\", $daf8bee9365fb629$var$_pointerDownHandler);\n $daf8bee9365fb629$var$_multiListener($daf8bee9365fb629$var$_removeListener, $daf8bee9365fb629$var$_doc, \"pointerup,touchend,mouseup\", $daf8bee9365fb629$var$_pointerUpHandler);\n $daf8bee9365fb629$var$_resizeDelay.kill();\n $daf8bee9365fb629$var$_iterateAutoRefresh($daf8bee9365fb629$var$_removeListener);\n for(var i = 0; i < (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).length; i += 3){\n $daf8bee9365fb629$var$_wheelListener($daf8bee9365fb629$var$_removeListener, (0, $d7385dda6eeeec57$export$3cd1cee43d19b683)[i], (0, $d7385dda6eeeec57$export$3cd1cee43d19b683)[i + 1]);\n $daf8bee9365fb629$var$_wheelListener($daf8bee9365fb629$var$_removeListener, (0, $d7385dda6eeeec57$export$3cd1cee43d19b683)[i], (0, $d7385dda6eeeec57$export$3cd1cee43d19b683)[i + 2]);\n }\n };\n ScrollTrigger.enable = function enable() {\n $daf8bee9365fb629$var$_win = window;\n $daf8bee9365fb629$var$_doc = document;\n $daf8bee9365fb629$var$_docEl = $daf8bee9365fb629$var$_doc.documentElement;\n $daf8bee9365fb629$var$_body = $daf8bee9365fb629$var$_doc.body;\n if ($daf8bee9365fb629$var$gsap) {\n $daf8bee9365fb629$var$_toArray = $daf8bee9365fb629$var$gsap.utils.toArray;\n $daf8bee9365fb629$var$_clamp = $daf8bee9365fb629$var$gsap.utils.clamp;\n $daf8bee9365fb629$var$_context = $daf8bee9365fb629$var$gsap.core.context || $daf8bee9365fb629$var$_passThrough;\n $daf8bee9365fb629$var$_suppressOverwrites = $daf8bee9365fb629$var$gsap.core.suppressOverwrites || $daf8bee9365fb629$var$_passThrough;\n $daf8bee9365fb629$var$_scrollRestoration = $daf8bee9365fb629$var$_win.history.scrollRestoration || \"auto\";\n $daf8bee9365fb629$var$_lastScroll = $daf8bee9365fb629$var$_win.pageYOffset;\n $daf8bee9365fb629$var$gsap.core.globals(\"ScrollTrigger\", ScrollTrigger); // must register the global manually because in Internet Explorer, functions (classes) don't have a \"name\" property.\n if ($daf8bee9365fb629$var$_body) {\n $daf8bee9365fb629$var$_enabled = 1;\n $daf8bee9365fb629$var$_rafBugFix();\n (0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b).register($daf8bee9365fb629$var$gsap); // isTouch is 0 if no touch, 1 if ONLY touch, and 2 if it can accommodate touch but also other types like mouse/pointer.\n ScrollTrigger.isTouch = (0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b).isTouch;\n $daf8bee9365fb629$var$_fixIOSBug = (0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b).isTouch && /(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent); // since 2017, iOS has had a bug that causes event.clientX/Y to be inaccurate when a scroll occurs, thus we must alternate ignoring every other touchmove event to work around it. See https://bugs.webkit.org/show_bug.cgi?id=181954 and https://codepen.io/GreenSock/pen/ExbrPNa/087cef197dc35445a0951e8935c41503\n $daf8bee9365fb629$var$_addListener($daf8bee9365fb629$var$_win, \"wheel\", $daf8bee9365fb629$var$_onScroll); // mostly for 3rd party smooth scrolling libraries.\n $daf8bee9365fb629$var$_root = [\n $daf8bee9365fb629$var$_win,\n $daf8bee9365fb629$var$_doc,\n $daf8bee9365fb629$var$_docEl,\n $daf8bee9365fb629$var$_body\n ];\n if ($daf8bee9365fb629$var$gsap.matchMedia) {\n ScrollTrigger.matchMedia = function(vars) {\n var mm = $daf8bee9365fb629$var$gsap.matchMedia(), p;\n for(p in vars)mm.add(p, vars[p]);\n return mm;\n };\n $daf8bee9365fb629$var$gsap.addEventListener(\"matchMediaInit\", function() {\n return $daf8bee9365fb629$var$_revertAll();\n });\n $daf8bee9365fb629$var$gsap.addEventListener(\"matchMediaRevert\", function() {\n return $daf8bee9365fb629$var$_revertRecorded();\n });\n $daf8bee9365fb629$var$gsap.addEventListener(\"matchMedia\", function() {\n $daf8bee9365fb629$var$_refreshAll(0, 1);\n $daf8bee9365fb629$var$_dispatch(\"matchMedia\");\n });\n $daf8bee9365fb629$var$gsap.matchMedia(\"(orientation: portrait)\", function() {\n // when orientation changes, we should take new base measurements for the ignoreMobileResize feature.\n $daf8bee9365fb629$var$_setBaseDimensions();\n return $daf8bee9365fb629$var$_setBaseDimensions;\n });\n } else console.warn(\"Requires GSAP 3.11.0 or later\");\n $daf8bee9365fb629$var$_setBaseDimensions();\n $daf8bee9365fb629$var$_addListener($daf8bee9365fb629$var$_doc, \"scroll\", $daf8bee9365fb629$var$_onScroll); // some browsers (like Chrome), the window stops dispatching scroll events on the window if you scroll really fast, but it's consistent on the document!\n var bodyStyle = $daf8bee9365fb629$var$_body.style, border = bodyStyle.borderTopStyle, AnimationProto = $daf8bee9365fb629$var$gsap.core.Animation.prototype, bounds, i;\n AnimationProto.revert || Object.defineProperty(AnimationProto, \"revert\", {\n value: function value() {\n return this.time(-0.01, true);\n }\n }); // only for backwards compatibility (Animation.revert() was added after 3.10.4)\n bodyStyle.borderTopStyle = \"solid\"; // works around an issue where a margin of a child element could throw off the bounds of the _body, making it seem like there's a margin when there actually isn't. The border ensures that the bounds are accurate.\n bounds = $daf8bee9365fb629$var$_getBounds($daf8bee9365fb629$var$_body);\n (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d).m = Math.round(bounds.top + (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d).sc()) || 0; // accommodate the offset of the caused by margins and/or padding\n (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1).m = Math.round(bounds.left + (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1).sc()) || 0;\n border ? bodyStyle.borderTopStyle = border : bodyStyle.removeProperty(\"border-top-style\"); // TODO: (?) maybe move to leveraging the velocity mechanism in Observer and skip intervals.\n $daf8bee9365fb629$var$_syncInterval = setInterval($daf8bee9365fb629$var$_sync, 250);\n $daf8bee9365fb629$var$gsap.delayedCall(0.5, function() {\n return $daf8bee9365fb629$var$_startup = 0;\n });\n $daf8bee9365fb629$var$_addListener($daf8bee9365fb629$var$_doc, \"touchcancel\", $daf8bee9365fb629$var$_passThrough); // some older Android devices intermittently stop dispatching \"touchmove\" events if we don't listen for \"touchcancel\" on the document.\n $daf8bee9365fb629$var$_addListener($daf8bee9365fb629$var$_body, \"touchstart\", $daf8bee9365fb629$var$_passThrough); //works around Safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/\n $daf8bee9365fb629$var$_multiListener($daf8bee9365fb629$var$_addListener, $daf8bee9365fb629$var$_doc, \"pointerdown,touchstart,mousedown\", $daf8bee9365fb629$var$_pointerDownHandler);\n $daf8bee9365fb629$var$_multiListener($daf8bee9365fb629$var$_addListener, $daf8bee9365fb629$var$_doc, \"pointerup,touchend,mouseup\", $daf8bee9365fb629$var$_pointerUpHandler);\n $daf8bee9365fb629$var$_transformProp = $daf8bee9365fb629$var$gsap.utils.checkPrefix(\"transform\");\n $daf8bee9365fb629$var$_stateProps.push($daf8bee9365fb629$var$_transformProp);\n $daf8bee9365fb629$var$_coreInitted = $daf8bee9365fb629$var$_getTime();\n $daf8bee9365fb629$var$_resizeDelay = $daf8bee9365fb629$var$gsap.delayedCall(0.2, $daf8bee9365fb629$var$_refreshAll).pause();\n $daf8bee9365fb629$var$_autoRefresh = [\n $daf8bee9365fb629$var$_doc,\n \"visibilitychange\",\n function() {\n var w = $daf8bee9365fb629$var$_win.innerWidth, h = $daf8bee9365fb629$var$_win.innerHeight;\n if ($daf8bee9365fb629$var$_doc.hidden) {\n $daf8bee9365fb629$var$_prevWidth = w;\n $daf8bee9365fb629$var$_prevHeight = h;\n } else if ($daf8bee9365fb629$var$_prevWidth !== w || $daf8bee9365fb629$var$_prevHeight !== h) $daf8bee9365fb629$var$_onResize();\n },\n $daf8bee9365fb629$var$_doc,\n \"DOMContentLoaded\",\n $daf8bee9365fb629$var$_refreshAll,\n $daf8bee9365fb629$var$_win,\n \"load\",\n $daf8bee9365fb629$var$_refreshAll,\n $daf8bee9365fb629$var$_win,\n \"resize\",\n $daf8bee9365fb629$var$_onResize\n ];\n $daf8bee9365fb629$var$_iterateAutoRefresh($daf8bee9365fb629$var$_addListener);\n $daf8bee9365fb629$var$_triggers.forEach(function(trigger) {\n return trigger.enable(0, 1);\n });\n for(i = 0; i < (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).length; i += 3){\n $daf8bee9365fb629$var$_wheelListener($daf8bee9365fb629$var$_removeListener, (0, $d7385dda6eeeec57$export$3cd1cee43d19b683)[i], (0, $d7385dda6eeeec57$export$3cd1cee43d19b683)[i + 1]);\n $daf8bee9365fb629$var$_wheelListener($daf8bee9365fb629$var$_removeListener, (0, $d7385dda6eeeec57$export$3cd1cee43d19b683)[i], (0, $d7385dda6eeeec57$export$3cd1cee43d19b683)[i + 2]);\n }\n }\n }\n };\n ScrollTrigger.config = function config(vars) {\n \"limitCallbacks\" in vars && ($daf8bee9365fb629$var$_limitCallbacks = !!vars.limitCallbacks);\n var ms = vars.syncInterval;\n ms && clearInterval($daf8bee9365fb629$var$_syncInterval) || ($daf8bee9365fb629$var$_syncInterval = ms) && setInterval($daf8bee9365fb629$var$_sync, ms);\n \"ignoreMobileResize\" in vars && ($daf8bee9365fb629$var$_ignoreMobileResize = ScrollTrigger.isTouch === 1 && vars.ignoreMobileResize);\n if (\"autoRefreshEvents\" in vars) {\n $daf8bee9365fb629$var$_iterateAutoRefresh($daf8bee9365fb629$var$_removeListener) || $daf8bee9365fb629$var$_iterateAutoRefresh($daf8bee9365fb629$var$_addListener, vars.autoRefreshEvents || \"none\");\n $daf8bee9365fb629$var$_ignoreResize = (vars.autoRefreshEvents + \"\").indexOf(\"resize\") === -1;\n }\n };\n ScrollTrigger.scrollerProxy = function scrollerProxy(target, vars) {\n var t = (0, $d7385dda6eeeec57$export$937374fea3f88711)(target), i = (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).indexOf(t), isViewport = $daf8bee9365fb629$var$_isViewport(t);\n if (~i) (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).splice(i, isViewport ? 6 : 2);\n if (vars) isViewport ? (0, $d7385dda6eeeec57$export$d8e56d510a804d0a).unshift($daf8bee9365fb629$var$_win, vars, $daf8bee9365fb629$var$_body, vars, $daf8bee9365fb629$var$_docEl, vars) : (0, $d7385dda6eeeec57$export$d8e56d510a804d0a).unshift(t, vars);\n };\n ScrollTrigger.clearMatchMedia = function clearMatchMedia(query) {\n $daf8bee9365fb629$var$_triggers.forEach(function(t) {\n return t._ctx && t._ctx.query === query && t._ctx.kill(true, true);\n });\n };\n ScrollTrigger.isInViewport = function isInViewport(element, ratio, horizontal) {\n var bounds = ($daf8bee9365fb629$var$_isString(element) ? (0, $d7385dda6eeeec57$export$937374fea3f88711)(element) : element).getBoundingClientRect(), offset = bounds[horizontal ? $daf8bee9365fb629$var$_width : $daf8bee9365fb629$var$_height] * ratio || 0;\n return horizontal ? bounds.right - offset > 0 && bounds.left + offset < $daf8bee9365fb629$var$_win.innerWidth : bounds.bottom - offset > 0 && bounds.top + offset < $daf8bee9365fb629$var$_win.innerHeight;\n };\n ScrollTrigger.positionInViewport = function positionInViewport(element, referencePoint, horizontal) {\n $daf8bee9365fb629$var$_isString(element) && (element = (0, $d7385dda6eeeec57$export$937374fea3f88711)(element));\n var bounds = element.getBoundingClientRect(), size = bounds[horizontal ? $daf8bee9365fb629$var$_width : $daf8bee9365fb629$var$_height], offset = referencePoint == null ? size / 2 : referencePoint in $daf8bee9365fb629$var$_keywords ? $daf8bee9365fb629$var$_keywords[referencePoint] * size : ~referencePoint.indexOf(\"%\") ? parseFloat(referencePoint) * size / 100 : parseFloat(referencePoint) || 0;\n return horizontal ? (bounds.left + offset) / $daf8bee9365fb629$var$_win.innerWidth : (bounds.top + offset) / $daf8bee9365fb629$var$_win.innerHeight;\n };\n ScrollTrigger.killAll = function killAll(allowListeners) {\n $daf8bee9365fb629$var$_triggers.slice(0).forEach(function(t) {\n return t.vars.id !== \"ScrollSmoother\" && t.kill();\n });\n if (allowListeners !== true) {\n var listeners = $daf8bee9365fb629$var$_listeners.killAll || [];\n $daf8bee9365fb629$var$_listeners = {};\n listeners.forEach(function(f) {\n return f();\n });\n }\n };\n return ScrollTrigger;\n}();\n$daf8bee9365fb629$export$875bcbe48555930.version = \"3.11.5\";\n$daf8bee9365fb629$export$875bcbe48555930.saveStyles = function(targets) {\n return targets ? $daf8bee9365fb629$var$_toArray(targets).forEach(function(target) {\n // saved styles are recorded in a consecutive alternating Array, like [element, cssText, transform attribute, cache, matchMedia, ...]\n if (target && target.style) {\n var i = $daf8bee9365fb629$var$_savedStyles.indexOf(target);\n i >= 0 && $daf8bee9365fb629$var$_savedStyles.splice(i, 5);\n $daf8bee9365fb629$var$_savedStyles.push(target, target.style.cssText, target.getBBox && target.getAttribute(\"transform\"), $daf8bee9365fb629$var$gsap.core.getCache(target), $daf8bee9365fb629$var$_context());\n }\n }) : $daf8bee9365fb629$var$_savedStyles;\n};\n$daf8bee9365fb629$export$875bcbe48555930.revert = function(soft, media) {\n return $daf8bee9365fb629$var$_revertAll(!soft, media);\n};\n$daf8bee9365fb629$export$875bcbe48555930.create = function(vars, animation) {\n return new $daf8bee9365fb629$export$875bcbe48555930(vars, animation);\n};\n$daf8bee9365fb629$export$875bcbe48555930.refresh = function(safe) {\n return safe ? $daf8bee9365fb629$var$_onResize() : ($daf8bee9365fb629$var$_coreInitted || $daf8bee9365fb629$export$875bcbe48555930.register()) && $daf8bee9365fb629$var$_refreshAll(true);\n};\n$daf8bee9365fb629$export$875bcbe48555930.update = function(force) {\n return ++(0, $d7385dda6eeeec57$export$3cd1cee43d19b683).cache && $daf8bee9365fb629$var$_updateAll(force === true ? 2 : 0);\n};\n$daf8bee9365fb629$export$875bcbe48555930.clearScrollMemory = $daf8bee9365fb629$var$_clearScrollMemory;\n$daf8bee9365fb629$export$875bcbe48555930.maxScroll = function(element, horizontal) {\n return $daf8bee9365fb629$var$_maxScroll(element, horizontal ? (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1) : (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d));\n};\n$daf8bee9365fb629$export$875bcbe48555930.getScrollFunc = function(element, horizontal) {\n return (0, $d7385dda6eeeec57$export$8665aac53dad5647)((0, $d7385dda6eeeec57$export$937374fea3f88711)(element), horizontal ? (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1) : (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d));\n};\n$daf8bee9365fb629$export$875bcbe48555930.getById = function(id) {\n return $daf8bee9365fb629$var$_ids[id];\n};\n$daf8bee9365fb629$export$875bcbe48555930.getAll = function() {\n return $daf8bee9365fb629$var$_triggers.filter(function(t) {\n return t.vars.id !== \"ScrollSmoother\";\n });\n}; // it's common for people to ScrollTrigger.getAll(t => t.kill()) on page routes, for example, and we don't want it to ruin smooth scrolling by killing the main ScrollSmoother one.\n$daf8bee9365fb629$export$875bcbe48555930.isScrolling = function() {\n return !!$daf8bee9365fb629$var$_lastScrollTime;\n};\n$daf8bee9365fb629$export$875bcbe48555930.snapDirectional = $daf8bee9365fb629$var$_snapDirectional;\n$daf8bee9365fb629$export$875bcbe48555930.addEventListener = function(type, callback) {\n var a = $daf8bee9365fb629$var$_listeners[type] || ($daf8bee9365fb629$var$_listeners[type] = []);\n ~a.indexOf(callback) || a.push(callback);\n};\n$daf8bee9365fb629$export$875bcbe48555930.removeEventListener = function(type, callback) {\n var a = $daf8bee9365fb629$var$_listeners[type], i = a && a.indexOf(callback);\n i >= 0 && a.splice(i, 1);\n};\n$daf8bee9365fb629$export$875bcbe48555930.batch = function(targets, vars) {\n var result = [], varsCopy = {}, interval = vars.interval || 0.016, batchMax = vars.batchMax || 1e9, proxyCallback = function proxyCallback(type, callback) {\n var elements = [], triggers = [], delay = $daf8bee9365fb629$var$gsap.delayedCall(interval, function() {\n callback(elements, triggers);\n elements = [];\n triggers = [];\n }).pause();\n return function(self) {\n elements.length || delay.restart(true);\n elements.push(self.trigger);\n triggers.push(self);\n batchMax <= elements.length && delay.progress(1);\n };\n }, p;\n for(p in vars)varsCopy[p] = p.substr(0, 2) === \"on\" && $daf8bee9365fb629$var$_isFunction(vars[p]) && p !== \"onRefreshInit\" ? proxyCallback(p, vars[p]) : vars[p];\n if ($daf8bee9365fb629$var$_isFunction(batchMax)) {\n batchMax = batchMax();\n $daf8bee9365fb629$var$_addListener($daf8bee9365fb629$export$875bcbe48555930, \"refresh\", function() {\n return batchMax = vars.batchMax();\n });\n }\n $daf8bee9365fb629$var$_toArray(targets).forEach(function(target) {\n var config = {};\n for(p in varsCopy)config[p] = varsCopy[p];\n config.trigger = target;\n result.push($daf8bee9365fb629$export$875bcbe48555930.create(config));\n });\n return result;\n}; // to reduce file size. clamps the scroll and also returns a duration multiplier so that if the scroll gets chopped shorter, the duration gets curtailed as well (otherwise if you're very close to the top of the page, for example, and swipe up really fast, it'll suddenly slow down and take a long time to reach the top).\nvar $daf8bee9365fb629$var$_clampScrollAndGetDurationMultiplier = function _clampScrollAndGetDurationMultiplier(scrollFunc, current, end, max) {\n current > max ? scrollFunc(max) : current < 0 && scrollFunc(0);\n return end > max ? (max - current) / (end - current) : end < 0 ? current / (current - end) : 1;\n}, $daf8bee9365fb629$var$_allowNativePanning = function _allowNativePanning(target, direction) {\n if (direction === true) target.style.removeProperty(\"touch-action\");\n else target.style.touchAction = direction === true ? \"auto\" : direction ? \"pan-\" + direction + ((0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b).isTouch ? \" pinch-zoom\" : \"\") : \"none\"; // note: Firefox doesn't support it pinch-zoom properly, at least in addition to a pan-x or pan-y.\n target === $daf8bee9365fb629$var$_docEl && _allowNativePanning($daf8bee9365fb629$var$_body, direction);\n}, $daf8bee9365fb629$var$_overflow = {\n auto: 1,\n scroll: 1\n}, $daf8bee9365fb629$var$_nestedScroll = function _nestedScroll(_ref5) {\n var event = _ref5.event, target = _ref5.target, axis = _ref5.axis;\n var node = (event.changedTouches ? event.changedTouches[0] : event).target, cache = node._gsap || $daf8bee9365fb629$var$gsap.core.getCache(node), time = $daf8bee9365fb629$var$_getTime(), cs;\n if (!cache._isScrollT || time - cache._isScrollT > 2000) {\n // cache for 2 seconds to improve performance.\n while(node && node !== $daf8bee9365fb629$var$_body && (node.scrollHeight <= node.clientHeight && node.scrollWidth <= node.clientWidth || !($daf8bee9365fb629$var$_overflow[(cs = $daf8bee9365fb629$var$_getComputedStyle(node)).overflowY] || $daf8bee9365fb629$var$_overflow[cs.overflowX])))node = node.parentNode;\n cache._isScroll = node && node !== target && !$daf8bee9365fb629$var$_isViewport(node) && ($daf8bee9365fb629$var$_overflow[(cs = $daf8bee9365fb629$var$_getComputedStyle(node)).overflowY] || $daf8bee9365fb629$var$_overflow[cs.overflowX]);\n cache._isScrollT = time;\n }\n if (cache._isScroll || axis === \"x\") {\n event.stopPropagation();\n event._gsapAllow = true;\n }\n}, // capture events on scrollable elements INSIDE the and allow those by calling stopPropagation() when we find a scrollable ancestor\n$daf8bee9365fb629$var$_inputObserver = function _inputObserver(target, type, inputs, nested) {\n return (0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b).create({\n target: target,\n capture: true,\n debounce: false,\n lockAxis: true,\n type: type,\n onWheel: nested = nested && $daf8bee9365fb629$var$_nestedScroll,\n onPress: nested,\n onDrag: nested,\n onScroll: nested,\n onEnable: function onEnable() {\n return inputs && $daf8bee9365fb629$var$_addListener($daf8bee9365fb629$var$_doc, (0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b).eventTypes[0], $daf8bee9365fb629$var$_captureInputs, false, true);\n },\n onDisable: function onDisable() {\n return $daf8bee9365fb629$var$_removeListener($daf8bee9365fb629$var$_doc, (0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b).eventTypes[0], $daf8bee9365fb629$var$_captureInputs, true);\n }\n });\n}, $daf8bee9365fb629$var$_inputExp = /(input|label|select|textarea)/i, $daf8bee9365fb629$var$_inputIsFocused, $daf8bee9365fb629$var$_captureInputs = function _captureInputs(e) {\n var isInput = $daf8bee9365fb629$var$_inputExp.test(e.target.tagName);\n if (isInput || $daf8bee9365fb629$var$_inputIsFocused) {\n e._gsapAllow = true;\n $daf8bee9365fb629$var$_inputIsFocused = isInput;\n }\n}, $daf8bee9365fb629$var$_getScrollNormalizer = function _getScrollNormalizer(vars) {\n $daf8bee9365fb629$var$_isObject(vars) || (vars = {});\n vars.preventDefault = vars.isNormalizer = vars.allowClicks = true;\n vars.type || (vars.type = \"wheel,touch\");\n vars.debounce = !!vars.debounce;\n vars.id = vars.id || \"normalizer\";\n var _vars2 = vars, normalizeScrollX = _vars2.normalizeScrollX, momentum = _vars2.momentum, allowNestedScroll = _vars2.allowNestedScroll, onRelease = _vars2.onRelease, self, maxY, target = (0, $d7385dda6eeeec57$export$937374fea3f88711)(vars.target) || $daf8bee9365fb629$var$_docEl, smoother = $daf8bee9365fb629$var$gsap.core.globals().ScrollSmoother, smootherInstance = smoother && smoother.get(), content = $daf8bee9365fb629$var$_fixIOSBug && (vars.content && (0, $d7385dda6eeeec57$export$937374fea3f88711)(vars.content) || smootherInstance && vars.content !== false && !smootherInstance.smooth() && smootherInstance.content()), scrollFuncY = (0, $d7385dda6eeeec57$export$8665aac53dad5647)(target, (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d)), scrollFuncX = (0, $d7385dda6eeeec57$export$8665aac53dad5647)(target, (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1)), scale = 1, initialScale = ((0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b).isTouch && $daf8bee9365fb629$var$_win.visualViewport ? $daf8bee9365fb629$var$_win.visualViewport.scale * $daf8bee9365fb629$var$_win.visualViewport.width : $daf8bee9365fb629$var$_win.outerWidth) / $daf8bee9365fb629$var$_win.innerWidth, wheelRefresh = 0, resolveMomentumDuration = $daf8bee9365fb629$var$_isFunction(momentum) ? function() {\n return momentum(self);\n } : function() {\n return momentum || 2.8;\n }, lastRefreshID, skipTouchMove, inputObserver = $daf8bee9365fb629$var$_inputObserver(target, vars.type, true, allowNestedScroll), resumeTouchMove = function resumeTouchMove() {\n return skipTouchMove = false;\n }, scrollClampX = $daf8bee9365fb629$var$_passThrough, scrollClampY = $daf8bee9365fb629$var$_passThrough, updateClamps = function updateClamps() {\n maxY = $daf8bee9365fb629$var$_maxScroll(target, (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d));\n scrollClampY = $daf8bee9365fb629$var$_clamp($daf8bee9365fb629$var$_fixIOSBug ? 1 : 0, maxY);\n normalizeScrollX && (scrollClampX = $daf8bee9365fb629$var$_clamp(0, $daf8bee9365fb629$var$_maxScroll(target, (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1))));\n lastRefreshID = $daf8bee9365fb629$var$_refreshID;\n }, removeContentOffset = function removeContentOffset() {\n content._gsap.y = $daf8bee9365fb629$var$_round(parseFloat(content._gsap.y) + scrollFuncY.offset) + \"px\";\n content.style.transform = \"matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, \" + parseFloat(content._gsap.y) + \", 0, 1)\";\n scrollFuncY.offset = scrollFuncY.cacheID = 0;\n }, ignoreDrag = function ignoreDrag() {\n if (skipTouchMove) {\n requestAnimationFrame(resumeTouchMove);\n var offset = $daf8bee9365fb629$var$_round(self.deltaY / 2), scroll = scrollClampY(scrollFuncY.v - offset);\n if (content && scroll !== scrollFuncY.v + scrollFuncY.offset) {\n scrollFuncY.offset = scroll - scrollFuncY.v;\n var y = $daf8bee9365fb629$var$_round((parseFloat(content && content._gsap.y) || 0) - scrollFuncY.offset);\n content.style.transform = \"matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, \" + y + \", 0, 1)\";\n content._gsap.y = y + \"px\";\n scrollFuncY.cacheID = (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).cache;\n $daf8bee9365fb629$var$_updateAll();\n }\n return true;\n }\n scrollFuncY.offset && removeContentOffset();\n skipTouchMove = true;\n }, tween, startScrollX, startScrollY, onStopDelayedCall, onResize = function onResize() {\n // if the window resizes, like on an iPhone which Apple FORCES the address bar to show/hide even if we event.preventDefault(), it may be scrolling too far now that the address bar is showing, so we must dynamically adjust the momentum tween.\n updateClamps();\n if (tween.isActive() && tween.vars.scrollY > maxY) scrollFuncY() > maxY ? tween.progress(1) && scrollFuncY(maxY) : tween.resetTo(\"scrollY\", maxY);\n };\n content && $daf8bee9365fb629$var$gsap.set(content, {\n y: \"+=0\"\n }); // to ensure there's a cache (element._gsap)\n vars.ignoreCheck = function(e) {\n return $daf8bee9365fb629$var$_fixIOSBug && e.type === \"touchmove\" && ignoreDrag(e) || scale > 1.05 && e.type !== \"touchstart\" || self.isGesturing || e.touches && e.touches.length > 1;\n };\n vars.onPress = function() {\n skipTouchMove = false;\n var prevScale = scale;\n scale = $daf8bee9365fb629$var$_round(($daf8bee9365fb629$var$_win.visualViewport && $daf8bee9365fb629$var$_win.visualViewport.scale || 1) / initialScale);\n tween.pause();\n prevScale !== scale && $daf8bee9365fb629$var$_allowNativePanning(target, scale > 1.01 ? true : normalizeScrollX ? false : \"x\");\n startScrollX = scrollFuncX();\n startScrollY = scrollFuncY();\n updateClamps();\n lastRefreshID = $daf8bee9365fb629$var$_refreshID;\n };\n vars.onRelease = vars.onGestureStart = function(self, wasDragging) {\n scrollFuncY.offset && removeContentOffset();\n if (!wasDragging) onStopDelayedCall.restart(true);\n else {\n (0, $d7385dda6eeeec57$export$3cd1cee43d19b683).cache++; // make sure we're pulling the non-cached value\n // alternate algorithm: durX = Math.min(6, Math.abs(self.velocityX / 800)),\tdur = Math.max(durX, Math.min(6, Math.abs(self.velocityY / 800))); dur = dur * (0.4 + (1 - _power4In(dur / 6)) * 0.6)) * (momentumSpeed || 1)\n var dur = resolveMomentumDuration(), currentScroll, endScroll;\n if (normalizeScrollX) {\n currentScroll = scrollFuncX();\n endScroll = currentScroll + dur * 0.05 * -self.velocityX / 0.227; // the constant .227 is from power4(0.05). velocity is inverted because scrolling goes in the opposite direction.\n dur *= $daf8bee9365fb629$var$_clampScrollAndGetDurationMultiplier(scrollFuncX, currentScroll, endScroll, $daf8bee9365fb629$var$_maxScroll(target, (0, $d7385dda6eeeec57$export$b2cabb342cb0ebe1)));\n tween.vars.scrollX = scrollClampX(endScroll);\n }\n currentScroll = scrollFuncY();\n endScroll = currentScroll + dur * 0.05 * -self.velocityY / 0.227; // the constant .227 is from power4(0.05)\n dur *= $daf8bee9365fb629$var$_clampScrollAndGetDurationMultiplier(scrollFuncY, currentScroll, endScroll, $daf8bee9365fb629$var$_maxScroll(target, (0, $d7385dda6eeeec57$export$8e40fc98ff518e9d)));\n tween.vars.scrollY = scrollClampY(endScroll);\n tween.invalidate().duration(dur).play(0.01);\n if ($daf8bee9365fb629$var$_fixIOSBug && tween.vars.scrollY >= maxY || currentScroll >= maxY - 1) // iOS bug: it'll show the address bar but NOT fire the window \"resize\" event until the animation is done but we must protect against overshoot so we leverage an onUpdate to do so.\n $daf8bee9365fb629$var$gsap.to({}, {\n onUpdate: onResize,\n duration: dur\n });\n }\n onRelease && onRelease(self);\n };\n vars.onWheel = function() {\n tween._ts && tween.pause();\n if ($daf8bee9365fb629$var$_getTime() - wheelRefresh > 1000) {\n // after 1 second, refresh the clamps otherwise that'll only happen when ScrollTrigger.refresh() is called or for touch-scrolling.\n lastRefreshID = 0;\n wheelRefresh = $daf8bee9365fb629$var$_getTime();\n }\n };\n vars.onChange = function(self, dx, dy, xArray, yArray) {\n $daf8bee9365fb629$var$_refreshID !== lastRefreshID && updateClamps();\n dx && normalizeScrollX && scrollFuncX(scrollClampX(xArray[2] === dx ? startScrollX + (self.startX - self.x) : scrollFuncX() + dx - xArray[1])); // for more precision, we track pointer/touch movement from the start, otherwise it'll drift.\n if (dy) {\n scrollFuncY.offset && removeContentOffset();\n var isTouch = yArray[2] === dy, y = isTouch ? startScrollY + self.startY - self.y : scrollFuncY() + dy - yArray[1], yClamped = scrollClampY(y);\n isTouch && y !== yClamped && (startScrollY += yClamped - y);\n scrollFuncY(yClamped);\n }\n (dy || dx) && $daf8bee9365fb629$var$_updateAll();\n };\n vars.onEnable = function() {\n $daf8bee9365fb629$var$_allowNativePanning(target, normalizeScrollX ? false : \"x\");\n $daf8bee9365fb629$export$875bcbe48555930.addEventListener(\"refresh\", onResize);\n $daf8bee9365fb629$var$_addListener($daf8bee9365fb629$var$_win, \"resize\", onResize);\n if (scrollFuncY.smooth) {\n scrollFuncY.target.style.scrollBehavior = \"auto\";\n scrollFuncY.smooth = scrollFuncX.smooth = false;\n }\n inputObserver.enable();\n };\n vars.onDisable = function() {\n $daf8bee9365fb629$var$_allowNativePanning(target, true);\n $daf8bee9365fb629$var$_removeListener($daf8bee9365fb629$var$_win, \"resize\", onResize);\n $daf8bee9365fb629$export$875bcbe48555930.removeEventListener(\"refresh\", onResize);\n inputObserver.kill();\n };\n vars.lockAxis = vars.lockAxis !== false;\n self = new (0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b)(vars);\n self.iOS = $daf8bee9365fb629$var$_fixIOSBug; // used in the Observer getCachedScroll() function to work around an iOS bug that wreaks havoc with TouchEvent.clientY if we allow scroll to go all the way back to 0.\n $daf8bee9365fb629$var$_fixIOSBug && !scrollFuncY() && scrollFuncY(1); // iOS bug causes event.clientY values to freak out (wildly inaccurate) if the scroll position is exactly 0.\n $daf8bee9365fb629$var$_fixIOSBug && $daf8bee9365fb629$var$gsap.ticker.add($daf8bee9365fb629$var$_passThrough); // prevent the ticker from sleeping\n onStopDelayedCall = self._dc;\n tween = $daf8bee9365fb629$var$gsap.to(self, {\n ease: \"power4\",\n paused: true,\n scrollX: normalizeScrollX ? \"+=0.1\" : \"+=0\",\n scrollY: \"+=0.1\",\n modifiers: {\n scrollY: $daf8bee9365fb629$var$_interruptionTracker(scrollFuncY, scrollFuncY(), function() {\n return tween.pause();\n })\n },\n onUpdate: $daf8bee9365fb629$var$_updateAll,\n onComplete: onStopDelayedCall.vars.onComplete\n }); // we need the modifier to sense if the scroll position is altered outside of the momentum tween (like with a scrollTo tween) so we can pause() it to prevent conflicts.\n return self;\n};\n$daf8bee9365fb629$export$875bcbe48555930.sort = function(func) {\n return $daf8bee9365fb629$var$_triggers.sort(func || function(a, b) {\n return (a.vars.refreshPriority || 0) * -1000000 + a.start - (b.start + (b.vars.refreshPriority || 0) * -1000000);\n });\n};\n$daf8bee9365fb629$export$875bcbe48555930.observe = function(vars) {\n return new (0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b)(vars);\n};\n$daf8bee9365fb629$export$875bcbe48555930.normalizeScroll = function(vars) {\n if (typeof vars === \"undefined\") return $daf8bee9365fb629$var$_normalizer;\n if (vars === true && $daf8bee9365fb629$var$_normalizer) return $daf8bee9365fb629$var$_normalizer.enable();\n if (vars === false) return $daf8bee9365fb629$var$_normalizer && $daf8bee9365fb629$var$_normalizer.kill();\n var normalizer = vars instanceof (0, $d7385dda6eeeec57$export$c1cbdee04e18ea8b) ? vars : $daf8bee9365fb629$var$_getScrollNormalizer(vars);\n $daf8bee9365fb629$var$_normalizer && $daf8bee9365fb629$var$_normalizer.target === normalizer.target && $daf8bee9365fb629$var$_normalizer.kill();\n $daf8bee9365fb629$var$_isViewport(normalizer.target) && ($daf8bee9365fb629$var$_normalizer = normalizer);\n return normalizer;\n};\n$daf8bee9365fb629$export$875bcbe48555930.core = {\n // smaller file size way to leverage in ScrollSmoother and Observer\n _getVelocityProp: (0, $d7385dda6eeeec57$export$5de019f4480f0f8d),\n _inputObserver: $daf8bee9365fb629$var$_inputObserver,\n _scrollers: (0, $d7385dda6eeeec57$export$3cd1cee43d19b683),\n _proxies: (0, $d7385dda6eeeec57$export$d8e56d510a804d0a),\n bridge: {\n // when normalizeScroll sets the scroll position (ss = setScroll)\n ss: function ss() {\n $daf8bee9365fb629$var$_lastScrollTime || $daf8bee9365fb629$var$_dispatch(\"scrollStart\");\n $daf8bee9365fb629$var$_lastScrollTime = $daf8bee9365fb629$var$_getTime();\n },\n // a way to get the _refreshing value in Observer\n ref: function ref() {\n return $daf8bee9365fb629$var$_refreshing;\n }\n }\n};\n$daf8bee9365fb629$var$_getGSAP() && $daf8bee9365fb629$var$gsap.registerPlugin($daf8bee9365fb629$export$875bcbe48555930);\n\n\n(0, $357b3f2d5f2ec9d5$export$99ee26438460406a).registerPlugin((0, $daf8bee9365fb629$export$875bcbe48555930));\nclass $8f6a480bb40b134f$var$VideoResponser {\n constructor(selectors){\n const videos = document.querySelectorAll(selectors);\n this.videos = Array.from(videos).map(($video)=>{\n const options = {\n selector: $video,\n breakpoints: {\n default: {\n src: $video.getAttribute(\"src\")\n }\n }\n };\n // get a list of video switching points and links to the videos themselves\n $video.querySelectorAll(\"[src]\").forEach((element)=>options.breakpoints[element.getAttribute(\"data-mw\")] = {\n src: element.getAttribute(\"src\")\n });\n $video.innerHTML = \"\"; // we clean up so that there is nothing superfluous\n return {\n $video: $video,\n options: options\n };\n });\n // run the handler and track the change in screen width\n this.videos.forEach(({ options: options })=>{\n this.responseVideo(options);\n this.resizer(options);\n });\n }\n /** Function runs on resize */ resizer(options) {\n const { selector: selector } = options;\n window.addEventListener(\"resize\", ()=>this.responseVideo(options));\n }\n /**\n * Change src value of video link to fit screen width\n *\n * @param {Object} options object with options\n */ responseVideo(options) {\n const { selector: selector, breakpoints: breakpoints } = options; // get options\n let $video = selector;\n const widthNow = $video.getAttribute(\"data-width-now\") || null;\n const maxBreakpoint = Math.max.apply(Math, Object.keys(breakpoints).filter((key)=>key <= document.body.clientWidth).map(Number));\n const nowBreakpoint = maxBreakpoint || \"default\"; // choose either the maximum value, if not, then the default\n if (widthNow && widthNow == nowBreakpoint) return; // check if the video needs to be changed\n let isPlay = !$video.paused;\n $video.setAttribute(\"data-width-now\", nowBreakpoint);\n $video.src = breakpoints[nowBreakpoint].src;\n if (isPlay) {\n let playPromise = $video.play();\n if (playPromise !== undefined) playPromise.then((_)=>{\n // Automatic playback started!\n // Show playing UI.\n }).catch((error)=>{\n // Auto-play was prevented\n // Show paused UI.\n });\n }\n }\n}\nnew $8f6a480bb40b134f$var$VideoResponser(\".media-query-video\");\nlet $8f6a480bb40b134f$var$videoSwiper = new (0, $1262f2e38e280703$export$25ce5a424b770e84)(\".swiper-video\", {\n modules: [\n (0, $1aaae3023eb523a1$export$2e2bcd8739ae039),\n (0, $a65bf22b710e8cc3$export$2e2bcd8739ae039)\n ],\n allowTouchMove: false,\n loop: true,\n effect: \"fade\",\n fadeEffect: {\n crossFade: true\n },\n pagination: {\n el: \".swiper-pagination\",\n clickable: true\n },\n on: {\n init: function(i) {\n let currentSlide = this.slides[this.activeIndex];\n let video = currentSlide.querySelector(\"video\");\n let playPromise;\n if (video) {\n playPromise = video.play();\n if (playPromise !== undefined) playPromise.then((_)=>{\n // Automatic playback started!\n // Show playing UI.\n }).catch((error)=>{\n // Auto-play was prevented\n // Show paused UI.\n });\n }\n if (video && !video.paused && !video.ended) // 影片正在播放,等待播放完成\n video.onended = function() {\n // 影片播放完成,切換到下一個 slide\n $8f6a480bb40b134f$var$videoSwiper.slideNext();\n console.log(\"1 videoSwiper.slideNext()\");\n };\n },\n slideChangeTransitionEnd: function(i) {\n let prevVideo = this.slides[this.previousIndex].querySelector(\"video\");\n if (prevVideo) {\n prevVideo.pause();\n prevVideo.currentTime = 0;\n prevVideo.onended = null;\n }\n let currentSlide = this.slides[this.activeIndex];\n let video = currentSlide.querySelector(\"video\");\n let playPromise;\n if (video) {\n playPromise = video.play();\n if (playPromise !== undefined) playPromise.then((_)=>{\n // Automatic playback started!\n // Show playing UI.\n }).catch((error)=>{\n // Auto-play was prevented\n // Show paused UI.\n });\n }\n if (video && !video.paused && !video.ended) // 影片正在播放,等待播放完成\n video.onended = function() {\n // 影片播放完成,切換到下一個 slide\n $8f6a480bb40b134f$var$videoSwiper.slideNext();\n console.log(\"2 videoSwiper.slideNext()\");\n };\n }\n }\n});\nlet $8f6a480bb40b134f$var$fadeSwiper = new (0, $1262f2e38e280703$export$25ce5a424b770e84)(\".swiper-fades\", {\n modules: [\n (0, $1aaae3023eb523a1$export$2e2bcd8739ae039),\n (0, $ccf162aef171d9ed$export$2e2bcd8739ae039)\n ],\n allowTouchMove: false,\n loop: true,\n effect: \"fade\",\n fadeEffect: {\n crossFade: true\n },\n autoplay: {\n delay: 5000,\n disableOnInteraction: false\n },\n speed: 1000\n});\nlet $8f6a480bb40b134f$var$listsSwiper = new (0, $1262f2e38e280703$export$25ce5a424b770e84)(\".swiper-lists\", {\n modules: [\n (0, $1aaae3023eb523a1$export$2e2bcd8739ae039)\n ],\n allowTouchMove: false,\n speed: 1000,\n effect: \"fade\",\n fadeEffect: {\n crossFade: true\n },\n autoHeight: true\n});\ndocument.querySelectorAll(\".swiper-lists_nav\").forEach(function(anchor, i) {\n anchor.addEventListener(\"click\", function(e) {\n $8f6a480bb40b134f$var$listsSwiper.slideTo(i);\n });\n});\n(0, $daf8bee9365fb629$export$875bcbe48555930).create({\n trigger: \".scroll-mask\",\n start: \"bottom bottom\",\n once: \"true\",\n toggleClass: {\n targets: \".scroll-mask\",\n className: \"is-active\"\n }\n});\n[].forEach.call(document.querySelectorAll(\".swiper-loop\"), function(slider, index, arr) {\n let data = slider.getAttribute(\"data-swiper\") || \"{}\";\n let dataOptions = {};\n if (data) dataOptions = JSON.parse(data);\n slider.options = Object.assign({}, {\n modules: [\n (0, $ccf162aef171d9ed$export$2e2bcd8739ae039)\n ],\n loop: true,\n freeMode: true,\n allowTouchMove: false,\n // spaceBetween: 20,\n slidesPerView: 1.5,\n autoplay: {\n delay: 0,\n disableOnInteraction: false\n },\n speed: 8000,\n breakpoints: {\n 768: {\n slidesPerView: 3\n }\n }\n }, dataOptions);\n new (0, $1262f2e38e280703$export$25ce5a424b770e84)(slider, slider.options);\n});\n[].forEach.call(document.querySelectorAll(\".swiper-articles\"), function(slider, index, arr) {\n let data = slider.getAttribute(\"data-swiper\") || \"{}\";\n let dataOptions = {};\n if (data) dataOptions = JSON.parse(data);\n slider.options = Object.assign({}, {\n modules: [\n (0, $dc75855670d5bebb$export$2e2bcd8739ae039),\n (0, $ddd0c2ed1384f58e$export$2e2bcd8739ae039)\n ],\n spaceBetween: 20,\n slidesPerView: 1,\n // allowTouchMove: false,\n navigation: {\n nextEl: \".swiper-button-next\",\n prevEl: \".swiper-button-prev\"\n },\n breakpoints: {\n 768: {\n slidesPerView: 1.5\n },\n 1024: {\n slidesPerView: 2\n }\n }\n }, dataOptions);\n new (0, $1262f2e38e280703$export$25ce5a424b770e84)(slider, slider.options);\n});\n(0, $357b3f2d5f2ec9d5$export$99ee26438460406a).utils.toArray(\"[data-aos^=fade]\").forEach((ele)=>{\n const direction = ele.dataset.aos.split(\"-\")[1] || \"null\", delay = ele.dataset.delay || 0, duration = ele.dataset.duration || 0.5, proxy = {\n up: [\n 0,\n 50\n ],\n down: [\n 0,\n -50\n ],\n left: [\n 50,\n 0\n ],\n right: [\n -50,\n 0\n ],\n null: [\n 0,\n 0\n ]\n };\n (0, $357b3f2d5f2ec9d5$export$99ee26438460406a).from(ele, {\n scrollTrigger: {\n trigger: ele,\n start: \"top 90%\",\n once: \"true\"\n },\n duration: parseFloat(duration),\n delay: delay,\n opacity: 0,\n xPercent: proxy[direction][0],\n yPercent: proxy[direction][1]\n });\n});\ndocument.querySelectorAll(\"table\").forEach((table)=>{\n const tableContainer = document.createElement(\"div\");\n table.parentNode.insertBefore(tableContainer, table);\n tableContainer.classList.add(\"overflow-x-auto\");\n const tableWrapper = document.createElement(\"div\");\n tableWrapper.classList.add(\"min-w-full\", \"inline-block\", \"align-middle\");\n const tableInner = document.createElement(\"div\");\n tableInner.classList.add(\"overflow-hidden\");\n tableContainer.appendChild(tableWrapper);\n tableWrapper.appendChild(tableInner);\n tableInner.appendChild(table);\n});\ndocument.querySelectorAll(\".meta-menu .hover-link\").forEach(function(anchor, i) {\n anchor.addEventListener(\"mouseenter\", function(e) {\n (0, $357b3f2d5f2ec9d5$export$99ee26438460406a).to(\".meta-menu .hover-img\" + anchor.dataset.id, {\n opacity: 1,\n duration: 0.3\n });\n });\n anchor.addEventListener(\"mouseleave\", function(e) {\n (0, $357b3f2d5f2ec9d5$export$99ee26438460406a).to(\".meta-menu .hover-img\" + anchor.dataset.id, {\n opacity: 0,\n duration: 0.3\n });\n });\n});\n\n\n//# sourceMappingURL=main.js.map\n","/*\n * HSDataTable\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { Api } from 'datatables.net';\n\nimport { debounce, htmlToElement, classToClassList } from '../../utils';\n\nimport { IDataTableOptions, IDataTable } from '../datatable/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\ndeclare var DataTable: any;\n\ninterface IColumnDef {\n\ttargets: number;\n\torderable: boolean;\n}\n\nclass HSDataTable\n\textends HSBasePlugin\n\timplements IDataTable\n{\n\tprivate concatOptions: IDataTableOptions;\n\n\tprivate dataTable: Api;\n\n\tprivate readonly table: HTMLTableElement;\n\n\tprivate readonly search: HTMLElement | null;\n\n\tprivate readonly pageEntities: HTMLSelectElement | HTMLInputElement | null;\n\n\tprivate readonly paging: HTMLElement | null;\n\tprivate readonly pagingPrev: HTMLElement | null;\n\tprivate readonly pagingNext: HTMLElement | null;\n\tprivate readonly pagingPages: HTMLElement | null;\n\n\tprivate readonly info: HTMLElement | null;\n\tprivate readonly infoFrom: HTMLElement | null;\n\tprivate readonly infoTo: HTMLElement | null;\n\tprivate readonly infoLength: HTMLElement | null;\n\n\tprivate rowSelectingAll: HTMLElement | null;\n\tprivate rowSelectingIndividual: string | null;\n\n\tprivate maxPagesToShow: number;\n\tprivate isRowSelecting: boolean;\n\tprivate readonly pageBtnClasses: string | null;\n\n\tconstructor(el: HTMLElement, options?: IDataTableOptions, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tthis.el = typeof el === 'string' ? document.querySelector(el) : el;\n\n\t\t// Exclude columns from ordering\n\t\tconst columnDefs: IColumnDef[] = [];\n\t\tArray.from(this.el.querySelectorAll('thead th, thead td')).forEach(\n\t\t\t(th: HTMLElement, ind: number) => {\n\t\t\t\tif (th.classList.contains('--exclude-from-ordering'))\n\t\t\t\t\tcolumnDefs.push({\n\t\t\t\t\t\ttargets: ind,\n\t\t\t\t\t\torderable: false,\n\t\t\t\t\t});\n\t\t\t},\n\t\t);\n\n\t\tconst data = this.el.getAttribute('data-hs-datatable');\n\t\tconst dataOptions: IDataTableOptions = data ? JSON.parse(data) : {};\n\n\t\tthis.concatOptions = {\n\t\t\tsearching: true,\n\t\t\tlengthChange: false,\n\t\t\torder: [],\n\t\t\tcolumnDefs: [...columnDefs],\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.table = this.el.querySelector('table');\n\n\t\tthis.search = this.el.querySelector('[data-hs-datatable-search]') ?? null;\n\n\t\tthis.pageEntities =\n\t\t\tthis.el.querySelector('[data-hs-datatable-page-entities]') ?? null;\n\n\t\tthis.paging = this.el.querySelector('[data-hs-datatable-paging]') ?? null;\n\t\tthis.pagingPrev =\n\t\t\tthis.el.querySelector('[data-hs-datatable-paging-prev]') ?? null;\n\t\tthis.pagingNext =\n\t\t\tthis.el.querySelector('[data-hs-datatable-paging-next]') ?? null;\n\t\tthis.pagingPages =\n\t\t\tthis.el.querySelector('[data-hs-datatable-paging-pages]') ?? null;\n\n\t\tthis.info = this.el.querySelector('[data-hs-datatable-info]') ?? null;\n\t\tthis.infoFrom =\n\t\t\tthis.el.querySelector('[data-hs-datatable-info-from]') ?? null;\n\t\tthis.infoTo = this.el.querySelector('[data-hs-datatable-info-to]') ?? null;\n\t\tthis.infoLength =\n\t\t\tthis.el.querySelector('[data-hs-datatable-info-length]') ?? null;\n\n\t\tif (this.concatOptions?.rowSelectingOptions)\n\t\t\tthis.rowSelectingAll =\n\t\t\t\t(this.concatOptions?.rowSelectingOptions?.selectAllSelector\n\t\t\t\t\t? document.querySelector(\n\t\t\t\t\t\t\tthis.concatOptions?.rowSelectingOptions?.selectAllSelector,\n\t\t\t\t\t\t)\n\t\t\t\t\t: document.querySelector('[data-hs-datatable-row-selecting-all]')) ??\n\t\t\t\tnull;\n\t\tif (this.concatOptions?.rowSelectingOptions)\n\t\t\tthis.rowSelectingIndividual =\n\t\t\t\tthis.concatOptions?.rowSelectingOptions?.individualSelector ??\n\t\t\t\t'[data-hs-datatable-row-selecting-individual]' ??\n\t\t\t\tnull;\n\n\t\tif (this.pageEntities)\n\t\t\tthis.concatOptions.pageLength = parseInt(this.pageEntities.value);\n\n\t\tthis.maxPagesToShow = 3;\n\t\tthis.isRowSelecting = !!this.concatOptions?.rowSelectingOptions;\n\t\tthis.pageBtnClasses =\n\t\t\tthis.concatOptions?.pagingOptions?.pageBtnClasses ?? null;\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsDataTableCollection, this);\n\n\t\tthis.initTable();\n\n\t\tif (this.search) this.initSearch();\n\n\t\tif (this.pageEntities) this.initPageEntities();\n\n\t\tif (this.paging) this.initPaging();\n\t\tif (this.pagingPrev) this.initPagingPrev();\n\t\tif (this.pagingNext) this.initPagingNext();\n\t\tif (this.pagingPages) this.buildPagingPages();\n\n\t\tif (this.info) this.initInfo();\n\n\t\tif (this.isRowSelecting) this.initRowSelecting();\n\t}\n\n\tprivate initTable() {\n\t\tthis.dataTable = new DataTable(this.table, this.concatOptions);\n\n\t\tif (this.isRowSelecting) this.triggerChangeEventToRow();\n\n\t\tthis.dataTable.on('draw', () => {\n\t\t\tif (this.isRowSelecting) this.updateSelectAllCheckbox();\n\t\t\tif (this.isRowSelecting) this.triggerChangeEventToRow();\n\t\t\tthis.updateInfo();\n\t\t\tthis.updatePaging();\n\t\t});\n\t}\n\n\t// Search\n\tprivate initSearch() {\n\t\tthis.search.addEventListener(\n\t\t\t'input',\n\t\t\tdebounce((evt: InputEvent) =>\n\t\t\t\tthis.onSearchInput((evt.target as HTMLInputElement).value),\n\t\t\t),\n\t\t);\n\t}\n\n\tprivate onSearchInput(val: string) {\n\t\tthis.dataTable.search(val).draw();\n\t}\n\n\t// Page entities\n\tprivate initPageEntities() {\n\t\tthis.pageEntities.addEventListener('change', (evt: Event) =>\n\t\t\tthis.onEntitiesChange(parseInt((evt.target as HTMLSelectElement).value)),\n\t\t);\n\t}\n\n\tprivate onEntitiesChange(entities: number) {\n\t\tthis.dataTable.page.len(entities).draw();\n\t}\n\n\t// Info\n\tprivate initInfo() {\n\t\tif (this.infoFrom) this.initInfoFrom();\n\t\tif (this.infoTo) this.initInfoTo();\n\t\tif (this.infoLength) this.initInfoLength();\n\t}\n\n\tprivate initInfoFrom() {\n\t\tconst { start } = this.dataTable.page.info();\n\n\t\tthis.infoFrom.innerText = `${start + 1}`;\n\t}\n\n\tprivate initInfoTo() {\n\t\tconst { end } = this.dataTable.page.info();\n\n\t\tthis.infoTo.innerText = `${end}`;\n\t}\n\n\tprivate initInfoLength() {\n\t\tconst { recordsTotal } = this.dataTable.page.info();\n\n\t\tthis.infoLength.innerText = `${recordsTotal}`;\n\t}\n\n\tprivate updateInfo() {\n\t\tthis.initInfo();\n\t}\n\n\t// Paging\n\tprivate initPaging() {\n\t\tthis.hidePagingIfSinglePage();\n\t}\n\n\tprivate hidePagingIfSinglePage() {\n\t\tconst { pages } = this.dataTable.page.info();\n\n\t\tif (pages < 2) {\n\t\t\tthis.paging.classList.add('hidden');\n\t\t\tthis.paging.style.display = 'none';\n\t\t} else {\n\t\t\tthis.paging.classList.remove('hidden');\n\t\t\tthis.paging.style.display = '';\n\t\t}\n\t}\n\n\tprivate initPagingPrev() {\n\t\tthis.pagingPrev.addEventListener('click', () => {\n\t\t\tthis.onPrevClick();\n\t\t});\n\t}\n\n\tprivate onPrevClick() {\n\t\tthis.dataTable.page('previous').draw('page');\n\t}\n\n\tprivate disablePagingArrow(el: HTMLElement, statement: boolean) {\n\t\tif (statement) {\n\t\t\tel.classList.add('disabled');\n\t\t\tel.setAttribute('disabled', 'disabled');\n\t\t} else {\n\t\t\tel.classList.remove('disabled');\n\t\t\tel.removeAttribute('disabled');\n\t\t}\n\t}\n\n\tprivate initPagingNext() {\n\t\tthis.pagingNext.addEventListener('click', () => {\n\t\t\tthis.onNextClick();\n\t\t});\n\t}\n\n\tprivate onNextClick() {\n\t\tthis.dataTable.page('next').draw('page');\n\t}\n\n\tprivate buildPagingPages() {\n\t\tthis.updatePaging();\n\t}\n\n\tprivate updatePaging() {\n\t\tconst { page, pages, length } = this.dataTable.page.info();\n\t\tconst totalRecords = this.dataTable.rows({ search: 'applied' }).count();\n\t\tconst totalPages = Math.ceil(totalRecords / length);\n\t\tconst currentPage = page + 1;\n\n\t\tlet startPage = Math.max(\n\t\t\t1,\n\t\t\tcurrentPage - Math.floor(this.maxPagesToShow / 2),\n\t\t);\n\t\tlet endPage = Math.min(totalPages, startPage + (this.maxPagesToShow - 1));\n\n\t\tif (endPage - startPage + 1 < this.maxPagesToShow) {\n\t\t\tstartPage = Math.max(1, endPage - this.maxPagesToShow + 1);\n\t\t}\n\n\t\tthis.pagingPages.innerHTML = '';\n\n\t\tif (startPage > 1) {\n\t\t\tthis.buildPagingPage(1);\n\n\t\t\tif (startPage > 2) {\n\t\t\t\tthis.pagingPages.appendChild(\n\t\t\t\t\thtmlToElement(`...`),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tfor (let i = startPage; i <= endPage; i++) {\n\t\t\tthis.buildPagingPage(i);\n\t\t}\n\n\t\tif (endPage < totalPages) {\n\t\t\tif (endPage < totalPages - 1) {\n\t\t\t\tthis.pagingPages.appendChild(\n\t\t\t\t\thtmlToElement(`...`),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tthis.buildPagingPage(totalPages);\n\t\t}\n\n\t\tthis.disablePagingArrow(this.pagingPrev, page === 0);\n\t\tthis.disablePagingArrow(this.pagingNext, page === pages - 1);\n\t\tthis.hidePagingIfSinglePage();\n\t}\n\n\tprivate buildPagingPage(counter: number) {\n\t\tconst { page } = this.dataTable.page.info();\n\t\tconst pageEl = htmlToElement(``);\n\t\tpageEl.innerText = `${counter}`;\n\t\tpageEl.setAttribute('data-page', `${counter}`);\n\t\tif (this.pageBtnClasses) classToClassList(this.pageBtnClasses, pageEl);\n\t\tif (page === counter - 1) pageEl.classList.add('active');\n\n\t\tpageEl.addEventListener('click', () => this.onPageClick(counter));\n\n\t\tthis.pagingPages.append(pageEl);\n\t}\n\n\tprivate onPageClick(counter: number) {\n\t\tthis.dataTable.page(counter - 1).draw('page');\n\t}\n\n\t// Select row\n\tprivate initRowSelecting() {\n\t\tthis.rowSelectingAll.addEventListener('change', () =>\n\t\t\tthis.onSelectAllChange(),\n\t\t);\n\t}\n\n\tprivate triggerChangeEventToRow() {\n\t\tthis.table\n\t\t\t.querySelectorAll(`tbody ${this.rowSelectingIndividual}`)\n\t\t\t.forEach((el) => {\n\t\t\t\tel.addEventListener('change', () => {\n\t\t\t\t\tthis.updateSelectAllCheckbox();\n\t\t\t\t});\n\t\t\t});\n\t}\n\n\tprivate onSelectAllChange() {\n\t\tlet isChecked = (this.rowSelectingAll as HTMLInputElement).checked;\n\t\tconst visibleRows = Array.from(\n\t\t\tthis.dataTable.rows({ page: 'current', search: 'applied' }).nodes(),\n\t\t);\n\n\t\tvisibleRows.forEach((el) => {\n\t\t\tconst checkbox = el.querySelector(this.rowSelectingIndividual);\n\n\t\t\tif (checkbox) checkbox.checked = isChecked;\n\t\t});\n\n\t\tthis.updateSelectAllCheckbox();\n\t}\n\n\tprivate updateSelectAllCheckbox() {\n\t\tconst searchRelatedItems = this.dataTable\n\t\t\t.rows({ search: 'applied' })\n\t\t\t.count();\n\n\t\tif (!searchRelatedItems) {\n\t\t\t(this.rowSelectingAll as HTMLInputElement).checked = false;\n\n\t\t\treturn false;\n\t\t}\n\n\t\tlet isChecked = true;\n\t\tconst visibleRows = Array.from(\n\t\t\tthis.dataTable\n\t\t\t\t.rows({\n\t\t\t\t\tpage: 'current',\n\t\t\t\t\tsearch: 'applied',\n\t\t\t\t})\n\t\t\t\t.nodes(),\n\t\t);\n\n\t\tvisibleRows.forEach((el) => {\n\t\t\tconst checkbox = el.querySelector(this.rowSelectingIndividual);\n\n\t\t\tif (checkbox && !checkbox.checked) {\n\t\t\t\tisChecked = false;\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\n\t\t(this.rowSelectingAll as HTMLInputElement).checked = isChecked;\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsDataTableCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsDataTableCollection) window.$hsDataTableCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-datatable]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsDataTableCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSDataTable(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSDataTable: Function;\n\t\t$hsDataTableCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tif (\n\t\tdocument.querySelectorAll(\n\t\t\t'[data-hs-datatable]:not(.--prevent-on-load-init)',\n\t\t).length\n\t) {\n\t\tif (typeof jQuery === 'undefined')\n\t\t\tconsole.error(\n\t\t\t\t'HSDataTable: jQuery is not available, please add it to the page.',\n\t\t\t);\n\t\tif (typeof DataTable === 'undefined')\n\t\t\tconsole.error(\n\t\t\t\t'HSDataTable: DataTable is not available, please add it to the page.',\n\t\t\t);\n\t}\n\n\tif (typeof DataTable !== 'undefined' && typeof jQuery !== 'undefined')\n\t\tHSDataTable.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Datatable collection:', window.$hsDataTableCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSDataTable = HSDataTable;\n}\n\nexport default HSDataTable;\n","/*\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nconst stringToBoolean = (string: string): boolean => {\n\treturn string === 'true' ? true : false;\n};\n\nconst getClassProperty = (el: HTMLElement, prop: string, val = '') => {\n\treturn (window.getComputedStyle(el).getPropertyValue(prop) || val).replace(\n\t\t' ',\n\t\t'',\n\t);\n};\n\nconst getClassPropertyAlt = (\n\tel: HTMLElement,\n\tprop?: string,\n\tval: string = '',\n) => {\n\tlet targetClass = '';\n\n\tel.classList.forEach((c) => {\n\t\tif (c.includes(prop)) {\n\t\t\ttargetClass = c;\n\t\t}\n\t});\n\n\treturn targetClass.match(/:(.*)]/) ? targetClass.match(/:(.*)]/)[1] : val;\n};\n\nconst getZIndex = (el: HTMLElement) => {\n\tconst computedStyle = window.getComputedStyle(el);\n\tconst zIndex = computedStyle.getPropertyValue('z-index');\n\n\treturn zIndex;\n};\n\nfunction getHighestZIndex(arr: HTMLElement[]) {\n\tlet highestZIndex = Number.NEGATIVE_INFINITY;\n\n\tarr.forEach((el) => {\n\t\tlet zIndex: string | number = getZIndex(el);\n\n\t\tif (zIndex !== 'auto') {\n\t\t\tzIndex = parseInt(zIndex, 10);\n\n\t\t\tif (zIndex > highestZIndex) highestZIndex = zIndex;\n\t\t}\n\t});\n\n\treturn highestZIndex;\n}\n\nconst isIOS = () => {\n\tif (/iPad|iPhone|iPod/.test(navigator.platform)) {\n\t\treturn true;\n\t} else {\n\t\treturn (\n\t\t\tnavigator.maxTouchPoints &&\n\t\t\tnavigator.maxTouchPoints > 2 &&\n\t\t\t/MacIntel/.test(navigator.platform)\n\t\t);\n\t}\n};\n\nconst isIpadOS = () => {\n\treturn (\n\t\tnavigator.maxTouchPoints &&\n\t\tnavigator.maxTouchPoints > 2 &&\n\t\t/MacIntel/.test(navigator.platform)\n\t);\n};\n\nconst isDirectChild = (parent: Element, child: HTMLElement) => {\n\tconst children = parent.children;\n\n\tfor (let i = 0; i < children.length; i++) {\n\t\tif (children[i] === child) return true;\n\t}\n\n\treturn false;\n};\n\nconst isEnoughSpace = (\n\tel: HTMLElement,\n\ttoggle: HTMLElement,\n\tpreferredPosition: 'top' | 'bottom' | 'auto' = 'auto',\n\tspace = 10,\n\twrapper: HTMLElement | null = null,\n) => {\n\tconst referenceRect = toggle.getBoundingClientRect();\n\tconst wrapperRect = wrapper ? wrapper.getBoundingClientRect() : null;\n\tconst viewportHeight = window.innerHeight;\n\tconst spaceAbove = wrapperRect\n\t\t? referenceRect.top - wrapperRect.top\n\t\t: referenceRect.top;\n\tconst spaceBelow =\n\t\t(wrapper ? wrapperRect.bottom : viewportHeight) - referenceRect.bottom;\n\tconst minimumSpaceRequired = el.clientHeight + space;\n\n\tif (preferredPosition === 'bottom') {\n\t\treturn spaceBelow >= minimumSpaceRequired;\n\t} else if (preferredPosition === 'top') {\n\t\treturn spaceAbove >= minimumSpaceRequired;\n\t} else {\n\t\treturn (\n\t\t\tspaceAbove >= minimumSpaceRequired || spaceBelow >= minimumSpaceRequired\n\t\t);\n\t}\n};\n\nconst isFormElement = (target: HTMLElement) => {\n\treturn (\n\t\ttarget instanceof HTMLInputElement ||\n\t\ttarget instanceof HTMLTextAreaElement ||\n\t\ttarget instanceof HTMLSelectElement\n\t);\n};\n\nconst isParentOrElementHidden = (element: any): any => {\n\tif (!element) return false;\n\n\tconst computedStyle = window.getComputedStyle(element);\n\n\tif (computedStyle.display === 'none') return true;\n\n\treturn isParentOrElementHidden(element.parentElement);\n};\n\nconst debounce = (func: Function, timeout = 200) => {\n\tlet timer: any;\n\n\treturn (...args: any[]) => {\n\t\tclearTimeout(timer);\n\n\t\ttimer = setTimeout(() => {\n\t\t\tfunc.apply(this, args);\n\t\t}, timeout);\n\t};\n};\n\nconst dispatch = (evt: string, element: any, payload: any = null) => {\n\tconst event = new CustomEvent(evt, {\n\t\tdetail: { payload },\n\t\tbubbles: true,\n\t\tcancelable: true,\n\t\tcomposed: false,\n\t});\n\n\telement.dispatchEvent(event);\n};\n\nconst afterTransition = (el: HTMLElement, callback: Function) => {\n\tconst handleEvent = () => {\n\t\tcallback();\n\n\t\tel.removeEventListener('transitionend', handleEvent, true);\n\t};\n\n\tconst computedStyle = window.getComputedStyle(el);\n\tconst transitionDuration = computedStyle.getPropertyValue(\n\t\t'transition-duration',\n\t);\n\tconst transitionProperty = computedStyle.getPropertyValue(\n\t\t'transition-property',\n\t);\n\tconst hasTransition =\n\t\ttransitionProperty !== 'none' && parseFloat(transitionDuration) > 0;\n\n\tif (hasTransition) el.addEventListener('transitionend', handleEvent, true);\n\telse callback();\n};\n\nconst htmlToElement = (html: string): HTMLElement => {\n\tconst template = document.createElement('template');\n\thtml = html.trim();\n\ttemplate.innerHTML = html;\n\n\treturn template.content.firstChild as HTMLElement;\n};\n\nconst classToClassList = (\n\tclasses: string,\n\ttarget: HTMLElement,\n\tsplitter = ' ',\n\taction: 'add' | 'remove' = 'add',\n) => {\n\tconst classesToArray = classes.split(splitter);\n\tclassesToArray.forEach((cl) =>\n\t\taction === 'add' ? target.classList.add(cl) : target.classList.remove(cl),\n\t);\n};\n\nconst menuSearchHistory = {\n\thistoryIndex: -1,\n\n\taddHistory(index: number) {\n\t\tthis.historyIndex = index;\n\t},\n\n\texistsInHistory(index: number) {\n\t\treturn index > this.historyIndex;\n\t},\n\n\tclearHistory() {\n\t\tthis.historyIndex = -1;\n\t},\n};\n\nexport {\n\tstringToBoolean,\n\tgetClassProperty,\n\tgetClassPropertyAlt,\n\tgetZIndex,\n\tgetHighestZIndex,\n\tisIOS,\n\tisIpadOS,\n\tisEnoughSpace,\n\tisParentOrElementHidden,\n\tisFormElement,\n\tisDirectChild,\n\tdebounce,\n\tdispatch,\n\tafterTransition,\n\thtmlToElement,\n\tclassToClassList,\n\tmenuSearchHistory,\n};\n","/// \n\n/*\n * HSBasePlugin\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { IBasePlugin } from '../base-plugin/interfaces';\n\nexport default class HSBasePlugin\n\timplements IBasePlugin\n{\n\tconstructor(\n\t\tpublic el: E,\n\t\tpublic options: O,\n\t\tpublic events?: any,\n\t) {\n\t\tthis.el = el;\n\t\tthis.options = options;\n\t\tthis.events = {};\n\t}\n\n\tpublic createCollection(collection: any[], element: any) {\n\t\tcollection.push({\n\t\t\tid: element?.el?.id || collection.length + 1,\n\t\t\telement,\n\t\t});\n\t}\n\n\tpublic fireEvent(evt: string, payload: any = null) {\n\t\tif (this.events.hasOwnProperty(evt)) return this.events[evt](payload);\n\t}\n\n\tpublic on(evt: string, cb: Function) {\n\t\tthis.events[evt] = cb;\n\t}\n}\n","/*\n * HSFileUpload\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { DropzoneFile } from 'dropzone';\n\nimport { htmlToElement, classToClassList } from '../../utils';\n\nimport { IFileUploadOptions, IFileUpload } from '../file-upload/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\ndeclare var _: any;\ndeclare var Dropzone: any;\n\nif (typeof Dropzone !== 'undefined') Dropzone.autoDiscover = false;\n\nclass HSFileUpload\n\textends HSBasePlugin\n\timplements IFileUpload\n{\n\tprivate concatOptions: IFileUploadOptions;\n\tprivate previewTemplate: string;\n\tprivate extensions: any = {};\n\tprivate singleton: boolean;\n\n\tpublic dropzone: Dropzone | null;\n\n\tconstructor(el: HTMLElement, options?: IFileUploadOptions, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tthis.el = typeof el === 'string' ? document.querySelector(el) : el;\n\n\t\tconst data = this.el.getAttribute('data-hs-file-upload');\n\t\tconst dataOptions: IFileUploadOptions = data ? JSON.parse(data) : {};\n\n\t\tthis.previewTemplate =\n\t\t\tthis.el.querySelector('[data-hs-file-upload-preview]')?.innerHTML ||\n\t\t\t`
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\t.\n\t\t\t\t\t\t

\n\t\t\t\t\t\t

\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t0%\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
`;\n\t\tthis.extensions = _.merge(\n\t\t\t{\n\t\t\t\tdefault: {\n\t\t\t\t\ticon: '',\n\t\t\t\t\tclass: 'size-5',\n\t\t\t\t},\n\t\t\t\txls: {\n\t\t\t\t\ticon: '',\n\t\t\t\t\tclass: 'size-5',\n\t\t\t\t},\n\t\t\t\tdoc: {\n\t\t\t\t\ticon: '',\n\t\t\t\t\tclass: 'size-5',\n\t\t\t\t},\n\t\t\t\tzip: {\n\t\t\t\t\ticon: '',\n\t\t\t\t\tclass: 'size-5',\n\t\t\t\t},\n\t\t\t},\n\t\t\tdataOptions.extensions,\n\t\t);\n\t\tthis.singleton = dataOptions.singleton;\n\n\t\tthis.concatOptions = {\n\t\t\tclickable: this.el.querySelector(\n\t\t\t\t'[data-hs-file-upload-trigger]',\n\t\t\t) as HTMLElement,\n\t\t\tpreviewsContainer: this.el.querySelector(\n\t\t\t\t'[data-hs-file-upload-previews]',\n\t\t\t) as HTMLElement,\n\t\t\taddRemoveLinks: false,\n\t\t\tpreviewTemplate: this.previewTemplate,\n\t\t\tautoHideTrigger: false,\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsFileUploadCollection, this);\n\n\t\tthis.initDropzone();\n\t}\n\n\tprivate initDropzone() {\n\t\tconst clear = this.el.querySelector(\n\t\t\t'[data-hs-file-upload-clear]',\n\t\t) as HTMLButtonElement;\n\t\tconst pseudoTriggers = Array.from(\n\t\t\tthis.el.querySelectorAll('[data-hs-file-upload-pseudo-trigger]'),\n\t\t) as HTMLButtonElement[];\n\t\tthis.dropzone = new Dropzone(this.el, this.concatOptions);\n\n\t\tthis.dropzone.on('addedfile', (file: DropzoneFile) => this.onAddFile(file));\n\t\tthis.dropzone.on('removedfile', () => this.onRemoveFile());\n\t\tthis.dropzone.on('uploadprogress', (file: DropzoneFile, progress: number) =>\n\t\t\tthis.onUploadProgress(file, progress),\n\t\t);\n\t\tthis.dropzone.on('complete', (file: DropzoneFile) => this.onComplete(file));\n\n\t\tif (clear)\n\t\t\tclear.onclick = () => {\n\t\t\t\tif (this.dropzone.files.length) this.dropzone.removeAllFiles(true);\n\t\t\t};\n\n\t\tif (pseudoTriggers.length)\n\t\t\tpseudoTriggers.forEach((el) => {\n\t\t\t\tel.onclick = () => {\n\t\t\t\t\tif (this.concatOptions?.clickable)\n\t\t\t\t\t\t(this.concatOptions?.clickable as HTMLButtonElement).click();\n\t\t\t\t};\n\t\t\t});\n\t}\n\n\tprivate onAddFile(file: DropzoneFile) {\n\t\tconst { previewElement } = file;\n\t\tconst reloadButton = file.previewElement.querySelector(\n\t\t\t'[data-hs-file-upload-reload]',\n\t\t);\n\n\t\tif (!previewElement) return false;\n\n\t\tif (this.singleton && this.dropzone.files.length > 1)\n\t\t\tthis.dropzone.removeFile(this.dropzone.files[0]);\n\n\t\tif (reloadButton) {\n\t\t\treloadButton.addEventListener('click', (evt: MouseEvent) => {\n\t\t\t\tevt.preventDefault();\n\t\t\t\tevt.stopPropagation();\n\n\t\t\t\tconst tempFileInput = document.createElement('input');\n\t\t\t\ttempFileInput.type = 'file';\n\n\t\t\t\ttempFileInput.click();\n\n\t\t\t\ttempFileInput.addEventListener('change', (event: Event) => {\n\t\t\t\t\tconst input = event.target as HTMLInputElement;\n\t\t\t\t\tconst newFile = input.files?.[0];\n\n\t\t\t\t\tif (newFile) {\n\t\t\t\t\t\tconst dzNewFile = newFile as Dropzone.DropzoneFile;\n\t\t\t\t\t\tdzNewFile.status = Dropzone.ADDED;\n\t\t\t\t\t\tdzNewFile.accepted = true;\n\t\t\t\t\t\tdzNewFile.previewElement = file.previewElement;\n\t\t\t\t\t\tdzNewFile.previewTemplate = file.previewTemplate;\n\t\t\t\t\t\tdzNewFile.previewsContainer = file.previewsContainer;\n\n\t\t\t\t\t\tthis.dropzone.removeFile(file);\n\t\t\t\t\t\tthis.dropzone.addFile(dzNewFile);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\tthis.previewAccepted(file);\n\t}\n\n\tprivate previewAccepted(file: DropzoneFile) {\n\t\tconst { previewElement } = file;\n\t\tconst fileInfo = this.splitFileName(file.name);\n\n\t\tconst fileName = previewElement.querySelector(\n\t\t\t'[data-hs-file-upload-file-name]',\n\t\t);\n\t\tconst fileExt = previewElement.querySelector(\n\t\t\t'[data-hs-file-upload-file-ext]',\n\t\t);\n\t\tconst fileSize = previewElement.querySelector(\n\t\t\t'[data-hs-file-upload-file-size]',\n\t\t);\n\t\tconst fileIcon = previewElement.querySelector(\n\t\t\t'[data-hs-file-upload-file-icon]',\n\t\t) as HTMLElement;\n\t\tconst trigger = this.el.querySelector(\n\t\t\t'[data-hs-file-upload-trigger]',\n\t\t) as HTMLElement;\n\t\tconst preview = previewElement.querySelector(\n\t\t\t'[data-dz-thumbnail]',\n\t\t) as HTMLElement;\n\t\tconst remove = previewElement.querySelector(\n\t\t\t'[data-hs-file-upload-remove]',\n\t\t) as HTMLButtonElement;\n\n\t\tif (fileName) fileName.textContent = fileInfo.name;\n\t\tif (fileExt) fileExt.textContent = fileInfo.extension;\n\t\tif (fileSize) fileSize.textContent = this.formatFileSize(file.size);\n\n\t\tif (preview) {\n\t\t\tif (file.type.includes('image/')) preview.classList.remove('hidden');\n\t\t\telse this.setIcon(fileInfo.extension, fileIcon);\n\t\t}\n\n\t\tif (this.dropzone.files.length > 0 && this.concatOptions.autoHideTrigger)\n\t\t\ttrigger.style.display = 'none';\n\n\t\tif (remove) remove.onclick = () => this.dropzone.removeFile(file);\n\t}\n\n\tprivate onRemoveFile() {\n\t\tconst trigger = this.el.querySelector(\n\t\t\t'[data-hs-file-upload-trigger]',\n\t\t) as HTMLElement;\n\n\t\tif (this.dropzone.files.length === 0 && this.concatOptions.autoHideTrigger)\n\t\t\ttrigger.style.display = '';\n\t}\n\n\tprivate onUploadProgress(file: DropzoneFile, progress: number) {\n\t\tconst { previewElement } = file;\n\n\t\tif (!previewElement) return false;\n\n\t\tconst progressBar = previewElement.querySelector(\n\t\t\t'[data-hs-file-upload-progress-bar]',\n\t\t);\n\t\tconst progressBarPane = previewElement.querySelector(\n\t\t\t'[data-hs-file-upload-progress-bar-pane]',\n\t\t) as HTMLElement;\n\t\tconst progressBarValue = previewElement.querySelector(\n\t\t\t'[data-hs-file-upload-progress-bar-value]',\n\t\t) as HTMLElement;\n\n\t\tconst currentProgress = Math.floor(progress);\n\n\t\tif (progressBar)\n\t\t\tprogressBar.setAttribute('aria-valuenow', `${currentProgress}`);\n\t\tif (progressBarPane) progressBarPane.style.width = `${currentProgress}%`;\n\t\tif (progressBarValue) progressBarValue.innerText = `${currentProgress}`;\n\t}\n\n\tprivate onComplete(file: DropzoneFile) {\n\t\tconst { previewElement } = file;\n\n\t\tif (!previewElement) return false;\n\n\t\tpreviewElement.classList.add('complete');\n\t}\n\n\tprivate setIcon(ext: string, file: HTMLElement) {\n\t\tconst icon = this.createIcon(ext);\n\n\t\tfile.append(icon);\n\t}\n\n\tprivate createIcon(ext: string) {\n\t\tconst icon = this.extensions[ext]?.icon\n\t\t\t? htmlToElement(this.extensions[ext].icon)\n\t\t\t: htmlToElement(this.extensions.default.icon);\n\n\t\tclassToClassList(\n\t\t\tthis.extensions[ext]?.class\n\t\t\t\t? this.extensions[ext].class\n\t\t\t\t: this.extensions.default.class,\n\t\t\ticon,\n\t\t);\n\n\t\treturn icon;\n\t}\n\n\tprivate formatFileSize(size: number) {\n\t\tif (size < 1024) {\n\t\t\treturn size.toFixed(2) + ' B';\n\t\t} else if (size < 1024 * 1024) {\n\t\t\treturn (size / 1024).toFixed(2) + ' KB';\n\t\t} else if (size < 1024 * 1024 * 1024) {\n\t\t\treturn (size / (1024 * 1024)).toFixed(2) + ' MB';\n\t\t} else if (size < 1024 * 1024 * 1024 * 1024) {\n\t\t\treturn (size / (1024 * 1024 * 1024)).toFixed(2) + ' GB';\n\t\t} else {\n\t\t\treturn (size / (1024 * 1024 * 1024 * 1024)).toFixed(2) + ' TB';\n\t\t}\n\t}\n\n\tprivate splitFileName(file: string): {\n\t\tname: string;\n\t\textension: string;\n\t} {\n\t\tlet dotIndex = file.lastIndexOf('.');\n\n\t\tif (dotIndex == -1) return { name: file, extension: '' };\n\n\t\treturn {\n\t\t\tname: file.substring(0, dotIndex),\n\t\t\textension: file.substring(dotIndex + 1),\n\t\t};\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsFileUploadCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsFileUploadCollection) window.$hsFileUploadCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-file-upload]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsFileUploadCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSFileUpload(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSFileUpload: Function;\n\t\t$hsFileUploadCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tif (\n\t\tdocument.querySelectorAll(\n\t\t\t'[data-hs-file-upload]:not(.--prevent-on-load-init)',\n\t\t).length\n\t) {\n\t\tif (typeof _ === 'undefined')\n\t\t\tconsole.error(\n\t\t\t\t'HSFileUpload: Lodash is not available, please add it to the page.',\n\t\t\t);\n\t\tif (typeof Dropzone === 'undefined')\n\t\t\tconsole.error(\n\t\t\t\t'HSFileUpload: Dropzone is not available, please add it to the page.',\n\t\t\t);\n\t}\n\n\tif (typeof _ !== 'undefined' && typeof Dropzone !== 'undefined') {\n\t\tHSFileUpload.autoInit();\n\t}\n\n\t// Uncomment for debug\n\t// console.log('File upload collection:', window.$hsFileUploadCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSFileUpload = HSFileUpload;\n}\n\nexport default HSFileUpload;\n","/*\n * HSRangeSlider\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport type { cssClasses, target } from 'nouislider';\n\nimport {\n\tIRangeSliderCssClassesObject,\n\tIRangeSlider,\n\tIRangeSliderOptions,\n} from './interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSRangeSlider\n\textends HSBasePlugin\n\timplements IRangeSlider\n{\n\tprivate readonly concatOptions: IRangeSliderOptions;\n\tprivate format: any | null;\n\n\tconstructor(el: HTMLElement, options?: IRangeSliderOptions, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tconst data = el.getAttribute('data-hs-range-slider');\n\t\tconst dataOptions: IRangeSliderOptions = data ? JSON.parse(data) : {};\n\n\t\tthis.concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t\tcssClasses: {\n\t\t\t\t...noUiSlider.cssClasses,\n\t\t\t\t...this.processClasses(dataOptions.cssClasses),\n\t\t\t},\n\t\t};\n\n\t\tthis.init();\n\t}\n\n\tget formattedValue() {\n\t\tconst values: number | string | (string | number)[] = (\n\t\t\tthis.el as target\n\t\t).noUiSlider.get();\n\n\t\tif (Array.isArray(values) && this.format) {\n\t\t\tconst updateValues: (string | number)[] = [];\n\n\t\t\tvalues.forEach((val) => {\n\t\t\t\tupdateValues.push(this.format.to(val));\n\t\t\t});\n\n\t\t\treturn updateValues;\n\t\t} else if (this.format) {\n\t\t\treturn this.format.to(values);\n\t\t} else {\n\t\t\treturn values;\n\t\t}\n\t}\n\n\tprivate processClasses(cl: typeof cssClasses) {\n\t\tconst mergedClasses: IRangeSliderCssClassesObject = {};\n\n\t\tObject.keys(cl).forEach((key: keyof typeof noUiSlider.cssClasses) => {\n\t\t\tif (key) mergedClasses[key] = `${noUiSlider.cssClasses[key]} ${cl[key]}`;\n\t\t});\n\n\t\treturn mergedClasses as typeof cssClasses;\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsRangeSliderCollection, this);\n\n\t\tif (\n\t\t\ttypeof this.concatOptions?.formatter === 'object'\n\t\t\t\t? this.concatOptions?.formatter?.type ===\n\t\t\t\t\t'thousandsSeparatorAndDecimalPoints'\n\t\t\t\t: this.concatOptions?.formatter === 'thousandsSeparatorAndDecimalPoints'\n\t\t)\n\t\t\tthis.thousandsSeparatorAndDecimalPointsFormatter();\n\t\telse if (\n\t\t\ttypeof this.concatOptions?.formatter === 'object'\n\t\t\t\t? this.concatOptions?.formatter?.type === 'integer'\n\t\t\t\t: this.concatOptions?.formatter === 'integer'\n\t\t)\n\t\t\tthis.integerFormatter();\n\t\telse if (\n\t\t\ttypeof this.concatOptions?.formatter === 'object' &&\n\t\t\t(this.concatOptions?.formatter?.prefix ||\n\t\t\t\tthis.concatOptions?.formatter?.postfix)\n\t\t)\n\t\t\tthis.prefixOrPostfixFormatter();\n\n\t\tnoUiSlider.create(this.el, this.concatOptions);\n\n\t\tif (this.concatOptions.disabled) this.setDisabled();\n\t}\n\n\tprivate formatValue(val: number | string) {\n\t\tlet result = '';\n\n\t\tif (typeof this.concatOptions?.formatter === 'object') {\n\t\t\tif (this.concatOptions?.formatter?.prefix)\n\t\t\t\tresult += this.concatOptions?.formatter?.prefix;\n\t\t\tresult += val;\n\t\t\tif (this.concatOptions?.formatter?.postfix)\n\t\t\t\tresult += this.concatOptions?.formatter?.postfix;\n\t\t} else result += val;\n\n\t\treturn result;\n\t}\n\n\tprivate integerFormatter() {\n\t\tthis.format = {\n\t\t\tto: (val: number) => this.formatValue(Math.round(val)),\n\t\t\tfrom: (val: string) => Math.round(+val),\n\t\t};\n\n\t\tif (this.concatOptions?.tooltips) this.concatOptions.tooltips = this.format;\n\t}\n\n\tprivate prefixOrPostfixFormatter() {\n\t\tthis.format = {\n\t\t\tto: (val: number) => this.formatValue(val),\n\t\t\tfrom: (val: string) => +val,\n\t\t};\n\n\t\tif (this.concatOptions?.tooltips) this.concatOptions.tooltips = this.format;\n\t}\n\n\tprivate thousandsSeparatorAndDecimalPointsFormatter() {\n\t\tthis.format = {\n\t\t\tto: (val: number) =>\n\t\t\t\tthis.formatValue(\n\t\t\t\t\tnew Intl.NumberFormat('en-US', {\n\t\t\t\t\t\tminimumFractionDigits: 2,\n\t\t\t\t\t\tmaximumFractionDigits: 2,\n\t\t\t\t\t}).format(val),\n\t\t\t\t),\n\t\t\tfrom: (val: string) => parseFloat(val.replace(/,/g, '')),\n\t\t};\n\n\t\tif (this.concatOptions?.tooltips) this.concatOptions.tooltips = this.format;\n\t}\n\n\tprivate setDisabled() {\n\t\tthis.el.setAttribute('disabled', 'disabled');\n\t\tthis.el.classList.add('disabled');\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance = false) {\n\t\tconst elInCollection = window.$hsRangeSliderCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsRangeSliderCollection) window.$hsRangeSliderCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-range-slider]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsRangeSliderCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSRangeSlider(el);\n\t\t\t});\n\t}\n\n\t// Backward compatibility\n\tstatic on(evt: string, target: HTMLElement, cb: Function) {\n\t\tconst elInCollection = window.$hsRangeSliderCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection) elInCollection.element.events[evt] = cb;\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSRangeSlider: Function;\n\t\t$hsRangeSliderCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSRangeSlider.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Range slider collection:', window.$hsRangeSliderCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSRangeSlider = HSRangeSlider;\n}\n\nexport default HSRangeSlider;\n","import \"preline\";\n\nimport Swiper from \"swiper\";\nimport { EffectFade, Autoplay, Navigation, Pagination, Grid } from \"swiper/modules\";\n// import \"swiper/css/bundle\";\n// import 'swiper/css/effect-fade';\n// import 'swiper/css/navigation';\n// import 'swiper/css/Pagination';\nimport \"swiper/swiper-bundle.min.css\";\n// import \"swiper/modules/navigation/navigation.min.css\";\n// import \"swiper/modules/pagination/pagination.min.css\";\n// import \"swiper/modules/effect-fade/effect-fade.min.css\";\n\nimport { gsap } from \"gsap\";\nimport { ScrollTrigger } from \"gsap/ScrollTrigger\";\ngsap.registerPlugin(ScrollTrigger);\n\nclass VideoResponser {\n constructor(selectors) {\n const videos = document.querySelectorAll(selectors);\n this.videos = Array.from(videos).map(($video) => {\n const options = {\n selector: $video,\n breakpoints: { default: { src: $video.getAttribute(\"src\") } },\n };\n\n // get a list of video switching points and links to the videos themselves\n $video.querySelectorAll(\"[src]\").forEach(\n (element) =>\n (options.breakpoints[element.getAttribute(\"data-mw\")] = {\n src: element.getAttribute(\"src\"),\n })\n );\n $video.innerHTML = \"\"; // we clean up so that there is nothing superfluous\n\n return { $video, options };\n });\n\n // run the handler and track the change in screen width\n this.videos.forEach(({ options }) => {\n this.responseVideo(options);\n this.resizer(options);\n });\n }\n\n /** Function runs on resize */\n resizer(options) {\n const { selector } = options;\n window.addEventListener(\"resize\", () => this.responseVideo(options));\n }\n\n /**\n * Change src value of video link to fit screen width\n *\n * @param {Object} options object with options\n */\n responseVideo(options) {\n const { selector, breakpoints } = options; // get options\n let $video = selector;\n const widthNow = $video.getAttribute(\"data-width-now\") || null;\n const maxBreakpoint = Math.max.apply(\n Math,\n Object.keys(breakpoints)\n .filter((key) => key <= document.body.clientWidth)\n .map(Number)\n );\n const nowBreakpoint = maxBreakpoint || \"default\"; // choose either the maximum value, if not, then the default\n\n if (widthNow && widthNow == nowBreakpoint) return; // check if the video needs to be changed\n\n let isPlay = !$video.paused;\n $video.setAttribute(\"data-width-now\", nowBreakpoint);\n $video.src = breakpoints[nowBreakpoint].src;\n\n if (isPlay) {\n let playPromise = $video.play();\n if (playPromise !== undefined) {\n playPromise\n .then((_) => {\n // Automatic playback started!\n // Show playing UI.\n })\n .catch((error) => {\n // Auto-play was prevented\n // Show paused UI.\n });\n }\n }\n }\n}\n\nnew VideoResponser(\".media-query-video\");\n\nlet videoSwiper = new Swiper(\".swiper-video\", {\n modules: [EffectFade, Pagination],\n allowTouchMove: false,\n loop: true,\n effect: \"fade\",\n fadeEffect: {\n crossFade: true,\n },\n pagination: {\n el: \".swiper-pagination\",\n clickable: true,\n },\n on: {\n init: function (i) {\n let currentSlide = this.slides[this.activeIndex];\n let video = currentSlide.querySelector(\"video\");\n let playPromise;\n if (video) {\n playPromise = video.play();\n if (playPromise !== undefined) {\n playPromise\n .then((_) => {\n // Automatic playback started!\n // Show playing UI.\n })\n .catch((error) => {\n // Auto-play was prevented\n // Show paused UI.\n });\n }\n }\n\n if (video && !video.paused && !video.ended) {\n // 影片正在播放,等待播放完成\n video.onended = function () {\n // 影片播放完成,切換到下一個 slide\n videoSwiper.slideNext();\n console.log(\"1 videoSwiper.slideNext()\");\n };\n }\n },\n slideChangeTransitionEnd: function (i) {\n let prevVideo = this.slides[this.previousIndex].querySelector(\"video\");\n if (prevVideo) {\n prevVideo.pause();\n prevVideo.currentTime = 0;\n prevVideo.onended = null;\n }\n\n let currentSlide = this.slides[this.activeIndex];\n let video = currentSlide.querySelector(\"video\");\n let playPromise;\n if (video) {\n playPromise = video.play();\n if (playPromise !== undefined) {\n playPromise\n .then((_) => {\n // Automatic playback started!\n // Show playing UI.\n })\n .catch((error) => {\n // Auto-play was prevented\n // Show paused UI.\n });\n }\n }\n if (video && !video.paused && !video.ended) {\n // 影片正在播放,等待播放完成\n video.onended = function () {\n // 影片播放完成,切換到下一個 slide\n videoSwiper.slideNext();\n console.log(\"2 videoSwiper.slideNext()\");\n };\n }\n },\n },\n});\n\nlet fadeSwiper = new Swiper(\".swiper-fades\", {\n modules: [EffectFade, Autoplay],\n allowTouchMove: false,\n loop: true,\n effect: \"fade\",\n fadeEffect: {\n crossFade: true,\n },\n autoplay: {\n delay: 5000,\n disableOnInteraction: false,\n },\n speed: 1000,\n});\n\nlet listsSwiper = new Swiper(\".swiper-lists\", {\n modules: [EffectFade],\n allowTouchMove: false,\n speed: 1000,\n effect: \"fade\",\n fadeEffect: {\n crossFade: true,\n },\n autoHeight: true,\n});\n\ndocument.querySelectorAll(\".swiper-lists_nav\").forEach(function (anchor, i) {\n anchor.addEventListener(\"click\", function (e) {\n listsSwiper.slideTo(i);\n });\n});\n\nScrollTrigger.create({\n trigger: \".scroll-mask\",\n start: \"bottom bottom\",\n once: \"true\",\n toggleClass: { targets: \".scroll-mask\", className: \"is-active\" },\n // toggleActions: \"play none none none\",\n // markers: true,\n});\n\n[].forEach.call(\n document.querySelectorAll(\".swiper-loop\"),\n function (slider, index, arr) {\n let data = slider.getAttribute(\"data-swiper\") || \"{}\";\n let dataOptions = {};\n\n if (data) {\n dataOptions = JSON.parse(data);\n }\n\n slider.options = Object.assign(\n {},\n {\n modules: [Autoplay],\n loop: true,\n freeMode: true,\n allowTouchMove: false,\n // spaceBetween: 20,\n slidesPerView: 1.5,\n autoplay: {\n delay: 0,\n disableOnInteraction: false,\n },\n speed: 8000,\n breakpoints: {\n 768: {\n slidesPerView: 3,\n },\n },\n },\n dataOptions\n );\n\n new Swiper(slider, slider.options);\n }\n);\n\n[].forEach.call(\n document.querySelectorAll(\".swiper-articles\"),\n function (slider, index, arr) {\n let data = slider.getAttribute(\"data-swiper\") || \"{}\";\n let dataOptions = {};\n\n if (data) {\n dataOptions = JSON.parse(data);\n }\n\n slider.options = Object.assign(\n {},\n {\n modules: [Navigation, Grid],\n spaceBetween: 20,\n slidesPerView: 1,\n // allowTouchMove: false,\n navigation: {\n nextEl: \".swiper-button-next\",\n prevEl: \".swiper-button-prev\",\n },\n breakpoints: {\n 768: {\n slidesPerView: 1.5,\n },\n 1024: {\n slidesPerView: 2,\n },\n },\n },\n dataOptions\n );\n new Swiper(slider, slider.options);\n }\n);\n\ngsap.utils.toArray(\"[data-aos^=fade]\").forEach((ele) => {\n const direction = ele.dataset.aos.split(\"-\")[1] || \"null\",\n delay = ele.dataset.delay || 0,\n duration = ele.dataset.duration || 0.5,\n proxy = {\n up: [0, 50],\n down: [0, -50],\n left: [50, 0],\n right: [-50, 0],\n null: [0, 0],\n };\n gsap.from(ele, {\n scrollTrigger: {\n trigger: ele,\n start: \"top 90%\",\n once: \"true\",\n // toggleActions: 'play none none reverse',\n // markers: true,\n },\n duration: parseFloat(duration),\n delay: delay,\n opacity: 0,\n xPercent: proxy[direction][0],\n yPercent: proxy[direction][1],\n });\n});\n\ndocument.querySelectorAll('table').forEach((table) => {\n const tableContainer = document.createElement('div');\n table.parentNode.insertBefore(tableContainer, table);\n tableContainer.classList.add('overflow-x-auto');\n const tableWrapper = document.createElement('div');\n tableWrapper.classList.add('min-w-full', 'inline-block', 'align-middle');\n const tableInner = document.createElement('div');\n tableInner.classList.add('overflow-hidden');\n tableContainer.appendChild(tableWrapper);\n tableWrapper.appendChild(tableInner);\n tableInner.appendChild(table);\n});\n\ndocument.querySelectorAll(\".meta-menu .hover-link\").forEach(function (anchor, i) {\n anchor.addEventListener(\"mouseenter\", function (e) {\n gsap.to(\".meta-menu .hover-img\"+anchor.dataset.id, {\n opacity: 1,\n duration: 0.3\n });\n });\n anchor.addEventListener(\"mouseleave\", function (e) {\n gsap.to(\".meta-menu .hover-img\"+anchor.dataset.id, {\n opacity: 0,\n duration: 0.3\n });\n });\n});","/*\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\ndeclare var _: any;\ndeclare var DataTable: any;\ndeclare var Dropzone: any;\ndeclare var noUiSlider: any;\n\nlet HSDataTableModule;\nlet HSFileUploadModule;\nlet HSRangeSliderModule;\n\nexport { default as HSCopyMarkup } from './plugins/copy-markup';\nexport { default as HSAccordion } from './plugins/accordion';\nexport { default as HSCarousel } from './plugins/carousel';\nexport { default as HSCollapse } from './plugins/collapse';\nexport { default as HSComboBox } from './plugins/combobox';\nexport { default as HSDropdown } from './plugins/dropdown';\nexport { default as HSInputNumber } from './plugins/input-number';\nexport { default as HSOverlay } from './plugins/overlay';\nexport { default as HSPinInput } from './plugins/pin-input';\nexport { default as HSRemoveElement } from './plugins/remove-element';\nexport { default as HSScrollspy } from './plugins/scrollspy';\nexport { default as HSSelect } from './plugins/select';\nexport { default as HSStepper } from './plugins/stepper';\nexport { default as HSStrongPassword } from './plugins/strong-password';\nexport { default as HSTabs } from './plugins/tabs';\nexport { default as HSTextareaAutoHeight } from './plugins/textarea-auto-height';\nexport { default as HSThemeSwitch } from './plugins/theme-switch';\nexport { default as HSToggleCount } from './plugins/toggle-count';\nexport { default as HSTogglePassword } from './plugins/toggle-password';\nexport { default as HSTooltip } from './plugins/tooltip';\nexport { default as HSTreeView } from './plugins/tree-view';\nexport { default as HSStaticMethods } from './static';\n\nif (typeof DataTable !== 'undefined' && typeof jQuery !== 'undefined')\n\tHSDataTableModule = require('./plugins/datatable').default;\nelse HSDataTableModule = null;\nexport { HSDataTableModule as HSDataTable };\n\nif (typeof _ !== 'undefined' && typeof Dropzone !== 'undefined')\n\tHSFileUploadModule = require('./plugins/file-upload').default;\nelse HSFileUploadModule = null;\nexport { HSFileUploadModule as HSFileUpload };\n\nif (typeof noUiSlider !== 'undefined')\n\tHSRangeSliderModule = require('./plugins/range-slider').default;\nelse HSRangeSliderModule = null;\nexport { HSRangeSliderModule as HSRangeSlider };\n","/*\n * HSCopyMarkup\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { dispatch } from '../../utils';\n\nimport {\n\tICopyMarkupOptions,\n\tICopyMarkup,\n} from '../copy-markup/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSCopyMarkup\n\textends HSBasePlugin\n\timplements ICopyMarkup\n{\n\tprivate readonly targetSelector: string | null;\n\tprivate readonly wrapperSelector: string | null;\n\tprivate readonly limit: number | null;\n\n\tprivate target: HTMLElement | null;\n\tprivate wrapper: HTMLElement | null;\n\tprivate items: HTMLElement[] | null;\n\n\tconstructor(el: HTMLElement, options?: ICopyMarkupOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-copy-markup');\n\t\tconst dataOptions: ICopyMarkupOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.targetSelector = concatOptions?.targetSelector || null;\n\t\tthis.wrapperSelector = concatOptions?.wrapperSelector || null;\n\t\tthis.limit = concatOptions?.limit || null;\n\t\tthis.items = [];\n\n\t\tif (this.targetSelector) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsCopyMarkupCollection, this);\n\n\t\tthis.setTarget();\n\t\tthis.setWrapper();\n\t\tthis.addPredefinedItems();\n\t\tthis.el.addEventListener('click', () => this.copy());\n\t}\n\n\tprivate copy() {\n\t\tif (this.limit && this.items.length >= this.limit) return false;\n\n\t\tif (this.el.hasAttribute('disabled')) this.el.setAttribute('disabled', '');\n\n\t\tconst copiedElement = this.target.cloneNode(true) as HTMLElement;\n\n\t\tthis.addToItems(copiedElement);\n\n\t\tif (this.limit && this.items.length >= this.limit)\n\t\t\tthis.el.setAttribute('disabled', 'disabled');\n\n\t\tthis.fireEvent('copy', copiedElement);\n\t\tdispatch('copy.hs.copyMarkup', copiedElement, copiedElement);\n\t}\n\n\tprivate addPredefinedItems() {\n\t\tArray.from(this.wrapper.children)\n\t\t\t.filter(\n\t\t\t\t(el: HTMLElement) => !el.classList.contains('[--ignore-for-count]'),\n\t\t\t)\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tthis.addToItems(el);\n\t\t\t});\n\t}\n\n\tprivate setTarget() {\n\t\tconst target: HTMLElement =\n\t\t\ttypeof this.targetSelector === 'string'\n\t\t\t\t? (document\n\t\t\t\t\t\t.querySelector(this.targetSelector)\n\t\t\t\t\t\t.cloneNode(true) as HTMLElement)\n\t\t\t\t: ((this.targetSelector as HTMLElement).cloneNode(true) as HTMLElement);\n\n\t\ttarget.removeAttribute('id');\n\n\t\tthis.target = target;\n\t}\n\n\tprivate setWrapper() {\n\t\tthis.wrapper =\n\t\t\ttypeof this.wrapperSelector === 'string'\n\t\t\t\t? document.querySelector(this.wrapperSelector)\n\t\t\t\t: this.wrapperSelector;\n\t}\n\n\tprivate addToItems(item: HTMLElement) {\n\t\tconst deleteItemButton = item.querySelector(\n\t\t\t'[data-hs-copy-markup-delete-item]',\n\t\t);\n\n\t\tif (this.wrapper) this.wrapper.append(item);\n\t\telse this.el.before(item);\n\n\t\tif (deleteItemButton)\n\t\t\tdeleteItemButton.addEventListener('click', () => this.delete(item));\n\n\t\tthis.items.push(item);\n\t}\n\n\t// Public methods\n\tpublic delete(target: HTMLElement) {\n\t\tconst index = this.items.indexOf(target);\n\n\t\tif (index !== -1) this.items.splice(index, 1);\n\n\t\ttarget.remove();\n\n\t\tthis.fireEvent('delete', target);\n\t\tdispatch('delete.hs.copyMarkup', target, target);\n\t}\n\n\t// Static method\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsCopyMarkupCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsCopyMarkupCollection) window.$hsCopyMarkupCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-copy-markup]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsCopyMarkupCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\tconst data = el.getAttribute('data-hs-copy-markup');\n\t\t\t\t\tconst options: ICopyMarkupOptions = data ? JSON.parse(data) : {};\n\n\t\t\t\t\tnew HSCopyMarkup(el, options);\n\t\t\t\t}\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSCopyMarkup: Function;\n\t\t$hsCopyMarkupCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSCopyMarkup.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Copy markup collection:', window.$hsCopyMarkupCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSCopyMarkup = HSCopyMarkup;\n}\n\nexport default HSCopyMarkup;\n","/*\n * HSAccordion\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { dispatch, afterTransition } from '../../utils';\n\nimport {\n\tIAccordionOptions,\n\tIAccordion,\n\tIAccordionTreeView,\n\tIAccordionTreeViewStaticOptions,\n} from '../accordion/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSAccordion\n\textends HSBasePlugin\n\timplements IAccordion\n{\n\tprivate readonly toggle: HTMLElement | null;\n\tpublic content: HTMLElement | null;\n\tprivate group: HTMLElement | null;\n\tprivate isAlwaysOpened: boolean;\n\n\tstatic selectable: IAccordionTreeView[];\n\n\tconstructor(el: HTMLElement, options?: IAccordionOptions, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tthis.toggle = this.el.querySelector('.hs-accordion-toggle') || null;\n\t\tthis.content = this.el.querySelector('.hs-accordion-content') || null;\n\t\tthis.update();\n\n\t\tif (this.toggle && this.content) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsAccordionCollection, this);\n\n\t\tthis.toggle.addEventListener('click', (evt: Event) => {\n\t\t\tevt.stopPropagation();\n\n\t\t\tif (this.el.classList.contains('active')) {\n\t\t\t\tthis.hide();\n\t\t\t} else {\n\t\t\t\tthis.show();\n\t\t\t}\n\t\t});\n\t}\n\n\t// Public methods\n\tpublic show() {\n\t\tif (\n\t\t\tthis.group &&\n\t\t\t!this.isAlwaysOpened &&\n\t\t\tthis.group.querySelector(':scope > .hs-accordion.active') &&\n\t\t\tthis.group.querySelector(':scope > .hs-accordion.active') !== this.el\n\t\t) {\n\t\t\tconst currentlyOpened = window.$hsAccordionCollection.find(\n\t\t\t\t(el) =>\n\t\t\t\t\tel.element.el ===\n\t\t\t\t\tthis.group.querySelector(':scope > .hs-accordion.active'),\n\t\t\t);\n\n\t\t\tcurrentlyOpened.element.hide();\n\t\t}\n\n\t\tif (this.el.classList.contains('active')) return false;\n\n\t\tthis.el.classList.add('active');\n\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'true';\n\n\t\tthis.content.style.display = 'block';\n\t\tthis.content.style.height = '0';\n\t\tsetTimeout(() => {\n\t\t\tthis.content.style.height = `${this.content.scrollHeight}px`;\n\t\t});\n\n\t\tafterTransition(this.content, () => {\n\t\t\tthis.content.style.display = 'block';\n\t\t\tthis.content.style.height = '';\n\n\t\t\tthis.fireEvent('open', this.el);\n\t\t\tdispatch('open.hs.accordion', this.el, this.el);\n\t\t});\n\t}\n\n\tpublic hide() {\n\t\tif (!this.el.classList.contains('active')) return false;\n\n\t\tthis.el.classList.remove('active');\n\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'false';\n\n\t\tthis.content.style.height = `${this.content.scrollHeight}px`;\n\t\tsetTimeout(() => {\n\t\t\tthis.content.style.height = '0';\n\t\t});\n\n\t\tafterTransition(this.content, () => {\n\t\t\tthis.content.style.display = '';\n\t\t\tthis.content.style.height = '0';\n\n\t\t\tthis.fireEvent('close', this.el);\n\t\t\tdispatch('close.hs.accordion', this.el, this.el);\n\t\t});\n\t}\n\n\tpublic update() {\n\t\tthis.group = this.el.closest('.hs-accordion-group') || null;\n\n\t\tif (!this.group) return false;\n\n\t\tthis.isAlwaysOpened =\n\t\t\tthis.group.hasAttribute('data-hs-accordion-always-open') || false;\n\n\t\twindow.$hsAccordionCollection.map((el) => {\n\t\t\tif (el.id === this.el.id) {\n\t\t\t\tel.element.group = this.group;\n\t\t\t\tel.element.isAlwaysOpened = this.isAlwaysOpened;\n\t\t\t}\n\n\t\t\treturn el;\n\t\t});\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsAccordionCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic show(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsAccordionCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (\n\t\t\telInCollection &&\n\t\t\telInCollection.element.content.style.display !== 'block'\n\t\t)\n\t\t\telInCollection.element.show();\n\t}\n\n\tstatic hide(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsAccordionCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (\n\t\t\telInCollection &&\n\t\t\telInCollection.element.content.style.display === 'block'\n\t\t)\n\t\t\telInCollection.element.hide();\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsAccordionCollection) window.$hsAccordionCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('.hs-accordion:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsAccordionCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSAccordion(el);\n\t\t\t});\n\t}\n\n\tstatic treeView() {\n\t\tif (!document.querySelectorAll('.hs-accordion-treeview-root').length)\n\t\t\treturn false;\n\n\t\tthis.selectable = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('.hs-accordion-treeview-root')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tconst data = el?.getAttribute('data-hs-accordion-options');\n\t\t\t\tconst options: IAccordionTreeViewStaticOptions = data\n\t\t\t\t\t? JSON.parse(data)\n\t\t\t\t\t: {};\n\n\t\t\t\tthis.selectable.push({\n\t\t\t\t\tel,\n\t\t\t\t\toptions: { ...options },\n\t\t\t\t});\n\t\t\t});\n\n\t\tif (this.selectable.length)\n\t\t\tthis.selectable.forEach((item) => {\n\t\t\t\tconst { el } = item;\n\n\t\t\t\tel.querySelectorAll('.hs-accordion-selectable').forEach(\n\t\t\t\t\t(_el: HTMLElement) => {\n\t\t\t\t\t\t_el.addEventListener('click', (evt: Event) => {\n\t\t\t\t\t\t\tevt.stopPropagation();\n\n\t\t\t\t\t\t\tthis.toggleSelected(item, _el);\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t});\n\t}\n\n\tstatic toggleSelected(root: IAccordionTreeView, item: HTMLElement) {\n\t\tif (item.classList.contains('selected')) item.classList.remove('selected');\n\t\telse {\n\t\t\troot.el\n\t\t\t\t.querySelectorAll('.hs-accordion-selectable')\n\t\t\t\t.forEach((el: HTMLElement) => el.classList.remove('selected'));\n\t\t\titem.classList.add('selected');\n\t\t}\n\t}\n\n\t// Backward compatibility\n\tstatic on(evt: string, target: HTMLElement, cb: Function) {\n\t\tconst elInCollection = window.$hsAccordionCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection) elInCollection.element.events[evt] = cb;\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSAccordion: Function;\n\t\t$hsAccordionCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSAccordion.autoInit();\n\n\tif (document.querySelectorAll('.hs-accordion-treeview-root').length)\n\t\tHSAccordion.treeView();\n\n\t// Uncomment for debug\n\t// console.log('Accordion collection:', window.$hsAccordionCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSAccordion = HSAccordion;\n}\n\nexport default HSAccordion;\n","/*\n * HSCarousel\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { classToClassList, debounce, htmlToElement } from '../../utils';\n\nimport { ICarousel, ICarouselOptions } from './interfaces';\nimport { TCarouselOptionsSlidesQty } from './types';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\nimport { BREAKPOINTS } from '../../constants';\n\nclass HSCarousel extends HSBasePlugin implements ICarousel {\n\tprivate currentIndex: number;\n\tprivate readonly loadingClasses: string | string[];\n\tprivate readonly dotsItemClasses: string;\n\tprivate readonly isAutoHeight: boolean;\n\tprivate readonly isAutoPlay: boolean;\n\tprivate readonly isCentered: boolean;\n\tprivate readonly isDraggable: boolean;\n\tprivate readonly isInfiniteLoop: boolean;\n\tprivate readonly isRTL: boolean;\n\tprivate readonly isSnap: boolean;\n\tprivate readonly hasSnapSpacers: boolean;\n\tprivate readonly slidesQty: TCarouselOptionsSlidesQty | number;\n\tprivate readonly speed: number;\n\tprivate readonly updateDelay: number;\n\n\tprivate readonly loadingClassesRemove: string | string[];\n\tprivate readonly loadingClassesAdd: string | string[];\n\tprivate readonly afterLoadingClassesAdd: string | string[];\n\n\tprivate readonly container: HTMLElement | null;\n\tprivate readonly inner: HTMLElement | null;\n\tprivate readonly slides: NodeListOf | undefined[];\n\tprivate readonly prev: HTMLElement | null;\n\tprivate readonly next: HTMLElement | null;\n\tprivate readonly dots: HTMLElement | null;\n\tprivate dotsItems: NodeListOf | undefined[] | null;\n\tprivate readonly info: HTMLElement | null;\n\tprivate readonly infoTotal: HTMLElement | null;\n\tprivate readonly infoCurrent: HTMLElement | null;\n\n\tprivate sliderWidth: number;\n\tprivate timer: any;\n\n\t// Drag events' help variables\n\tprivate isScrolling: ReturnType;\n\tprivate isDragging: boolean;\n\tprivate dragStartX: number | null;\n\tprivate initialTranslateX: number | null;\n\n\t// Touch events' help variables\n\tprivate readonly touchX: {\n\t\tstart: number;\n\t\tend: number;\n\t};\n\n\t// Resize events' help variables\n\tprivate resizeContainer: HTMLElement;\n\tpublic resizeContainerWidth: number;\n\n\tconstructor(el: HTMLElement, options?: ICarouselOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-carousel');\n\t\tconst dataOptions: ICarouselOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.currentIndex = concatOptions.currentIndex || 0;\n\t\tthis.loadingClasses = concatOptions.loadingClasses\n\t\t\t? `${concatOptions.loadingClasses}`.split(',')\n\t\t\t: null;\n\t\tthis.dotsItemClasses = concatOptions.dotsItemClasses\n\t\t\t? concatOptions.dotsItemClasses\n\t\t\t: null;\n\t\tthis.isAutoHeight =\n\t\t\ttypeof concatOptions.isAutoHeight !== 'undefined'\n\t\t\t\t? concatOptions.isAutoHeight\n\t\t\t\t: false;\n\t\tthis.isAutoPlay =\n\t\t\ttypeof concatOptions.isAutoPlay !== 'undefined'\n\t\t\t\t? concatOptions.isAutoPlay\n\t\t\t\t: false;\n\t\tthis.isCentered =\n\t\t\ttypeof concatOptions.isCentered !== 'undefined'\n\t\t\t\t? concatOptions.isCentered\n\t\t\t\t: false;\n\t\tthis.isDraggable =\n\t\t\ttypeof concatOptions.isDraggable !== 'undefined'\n\t\t\t\t? concatOptions.isDraggable\n\t\t\t\t: false;\n\t\tthis.isInfiniteLoop =\n\t\t\ttypeof concatOptions.isInfiniteLoop !== 'undefined'\n\t\t\t\t? concatOptions.isInfiniteLoop\n\t\t\t\t: false;\n\t\tthis.isRTL =\n\t\t\ttypeof concatOptions.isRTL !== 'undefined' ? concatOptions.isRTL : false;\n\t\tthis.isSnap =\n\t\t\ttypeof concatOptions.isSnap !== 'undefined'\n\t\t\t\t? concatOptions.isSnap\n\t\t\t\t: false;\n\t\tthis.hasSnapSpacers =\n\t\t\ttypeof concatOptions.hasSnapSpacers !== 'undefined'\n\t\t\t\t? concatOptions.hasSnapSpacers\n\t\t\t\t: true;\n\t\tthis.speed = concatOptions.speed || 4000;\n\t\tthis.updateDelay = concatOptions.updateDelay || 0;\n\t\tthis.slidesQty = concatOptions.slidesQty || 1;\n\n\t\tthis.loadingClassesRemove = this.loadingClasses?.[0]\n\t\t\t? this.loadingClasses[0].split(' ')\n\t\t\t: 'opacity-0';\n\t\tthis.loadingClassesAdd = this.loadingClasses?.[1]\n\t\t\t? this.loadingClasses[1].split(' ')\n\t\t\t: '';\n\t\tthis.afterLoadingClassesAdd = this.loadingClasses?.[2]\n\t\t\t? this.loadingClasses[2].split(' ')\n\t\t\t: '';\n\n\t\tthis.container = this.el.querySelector('.hs-carousel') || null;\n\t\tthis.inner = this.el.querySelector('.hs-carousel-body') || null;\n\t\tthis.slides = this.el.querySelectorAll('.hs-carousel-slide') || [];\n\t\tthis.prev = this.el.querySelector('.hs-carousel-prev') || null;\n\t\tthis.next = this.el.querySelector('.hs-carousel-next') || null;\n\t\tthis.dots = this.el.querySelector('.hs-carousel-pagination') || null;\n\t\tthis.info = this.el.querySelector('.hs-carousel-info') || null;\n\t\tthis.infoTotal =\n\t\t\tthis?.info?.querySelector('.hs-carousel-info-total') || null;\n\t\tthis.infoCurrent =\n\t\t\tthis?.info?.querySelector('.hs-carousel-info-current') || null;\n\n\t\tthis.sliderWidth = this.el.getBoundingClientRect().width;\n\n\t\t// Drag events' help variables\n\t\tthis.isDragging = false;\n\t\tthis.dragStartX = null;\n\t\tthis.initialTranslateX = null;\n\n\t\t// Touch events' help variables\n\t\tthis.touchX = {\n\t\t\tstart: 0,\n\t\t\tend: 0,\n\t\t};\n\n\t\t// Resize events' help variables\n\t\tthis.resizeContainer = document.querySelector('body');\n\t\tthis.resizeContainerWidth = 0;\n\n\t\tthis.init();\n\t}\n\n\tprivate setIsSnap() {\n\t\tconst containerRect = this.container.getBoundingClientRect();\n\t\tconst containerCenter = containerRect.left + containerRect.width / 2;\n\n\t\tlet closestElement: HTMLElement | null = null;\n\t\tlet closestElementIndex: number | null = null;\n\t\tlet closestDistance = Infinity;\n\n\t\tArray.from(this.inner.children).forEach((child: HTMLElement) => {\n\t\t\tconst childRect = child.getBoundingClientRect();\n\t\t\tconst innerContainerRect = this.inner.getBoundingClientRect();\n\t\t\tconst childCenter =\n\t\t\t\tchildRect.left + childRect.width / 2 - innerContainerRect.left;\n\t\t\tconst distance = Math.abs(\n\t\t\t\tcontainerCenter - (innerContainerRect.left + childCenter),\n\t\t\t);\n\n\t\t\tif (distance < closestDistance) {\n\t\t\t\tclosestDistance = distance;\n\t\t\t\tclosestElement = child;\n\t\t\t}\n\t\t});\n\n\t\tif (closestElement) {\n\t\t\tclosestElementIndex = Array.from(this.slides).findIndex(\n\t\t\t\t(el) => el === closestElement,\n\t\t\t);\n\t\t}\n\n\t\tthis.setIndex(closestElementIndex);\n\n\t\tif (this.dots) this.setCurrentDot();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsCarouselCollection, this);\n\n\t\tif (this.inner) {\n\t\t\tthis.calculateWidth();\n\n\t\t\tif (this.isDraggable && !this.isSnap) this.initDragHandling();\n\t\t}\n\t\tif (this.prev)\n\t\t\tthis.prev.addEventListener('click', () => {\n\t\t\t\tthis.goToPrev();\n\t\t\t\tif (this.isAutoPlay) {\n\t\t\t\t\tthis.resetTimer();\n\t\t\t\t\tthis.setTimer();\n\t\t\t\t}\n\t\t\t});\n\t\tif (this.next)\n\t\t\tthis.next.addEventListener('click', () => {\n\t\t\t\tthis.goToNext();\n\t\t\t\tif (this.isAutoPlay) {\n\t\t\t\t\tthis.resetTimer();\n\t\t\t\t\tthis.setTimer();\n\t\t\t\t}\n\t\t\t});\n\t\tif (this.dots) this.initDots();\n\t\tif (this.info) this.buildInfo();\n\t\tif (this.slides.length) {\n\t\t\tthis.addCurrentClass();\n\t\t\tif (!this.isInfiniteLoop) this.addDisabledClass();\n\t\t\tif (this.isAutoPlay) this.autoPlay();\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tif (this.isSnap) this.setIsSnap();\n\n\t\t\tif (this.loadingClassesRemove) {\n\t\t\t\tif (typeof this.loadingClassesRemove === 'string')\n\t\t\t\t\tthis.inner.classList.remove(this.loadingClassesRemove);\n\t\t\t\telse this.inner.classList.remove(...this.loadingClassesRemove);\n\t\t\t}\n\t\t\tif (this.loadingClassesAdd) {\n\t\t\t\tif (typeof this.loadingClassesAdd === 'string')\n\t\t\t\t\tthis.inner.classList.add(this.loadingClassesAdd);\n\t\t\t\telse this.inner.classList.add(...this.loadingClassesAdd);\n\t\t\t}\n\n\t\t\tif (this.inner && this.afterLoadingClassesAdd) {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tif (typeof this.afterLoadingClassesAdd === 'string')\n\t\t\t\t\t\tthis.inner.classList.add(this.afterLoadingClassesAdd);\n\t\t\t\t\telse this.inner.classList.add(...this.afterLoadingClassesAdd);\n\t\t\t\t});\n\t\t\t}\n\t\t}, 400);\n\n\t\tif (this.isSnap) {\n\t\t\tthis.container.addEventListener('scroll', () => {\n\t\t\t\tclearTimeout(this.isScrolling);\n\n\t\t\t\tthis.isScrolling = setTimeout(() => {\n\t\t\t\t\tthis.setIsSnap();\n\t\t\t\t}, 100);\n\t\t\t});\n\t\t}\n\n\t\tthis.el.classList.add('init');\n\n\t\tif (!this.isSnap) {\n\t\t\tthis.el.addEventListener('touchstart', (evt) => {\n\t\t\t\tthis.touchX.start = evt.changedTouches[0].screenX;\n\t\t\t});\n\n\t\t\tthis.el.addEventListener('touchend', (evt) => {\n\t\t\t\tthis.touchX.end = evt.changedTouches[0].screenX;\n\n\t\t\t\tthis.detectDirection();\n\t\t\t});\n\t\t}\n\n\t\tthis.observeResize();\n\t}\n\n\tprivate initDragHandling(): void {\n\t\tconst scrollableElement = this.inner;\n\n\t\tif (scrollableElement) {\n\t\t\tscrollableElement.addEventListener(\n\t\t\t\t'mousedown',\n\t\t\t\tthis.handleDragStart.bind(this),\n\t\t\t);\n\t\t\tscrollableElement.addEventListener(\n\t\t\t\t'touchstart',\n\t\t\t\tthis.handleDragStart.bind(this),\n\t\t\t\t{ passive: true },\n\t\t\t);\n\n\t\t\tdocument.addEventListener('mousemove', this.handleDragMove.bind(this));\n\t\t\tdocument.addEventListener('touchmove', this.handleDragMove.bind(this), {\n\t\t\t\tpassive: false,\n\t\t\t});\n\n\t\t\tdocument.addEventListener('mouseup', this.handleDragEnd.bind(this));\n\t\t\tdocument.addEventListener('touchend', this.handleDragEnd.bind(this));\n\t\t}\n\t}\n\n\tprivate getTranslateXValue(): number {\n\t\tconst transformMatrix = window.getComputedStyle(this.inner).transform;\n\n\t\tif (transformMatrix !== 'none') {\n\t\t\tconst matrixValues = transformMatrix\n\t\t\t\t.match(/matrix.*\\((.+)\\)/)?.[1]\n\t\t\t\t.split(', ');\n\n\t\t\tif (matrixValues) {\n\t\t\t\tlet translateX = parseFloat(\n\t\t\t\t\tmatrixValues.length === 6 ? matrixValues[4] : matrixValues[12],\n\t\t\t\t);\n\t\t\t\tif (this.isRTL) translateX = -translateX;\n\n\t\t\t\treturn isNaN(translateX) || translateX === 0 ? 0 : -translateX;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\tprivate removeClickEventWhileDragging(evt: MouseEvent) {\n\t\tevt.preventDefault();\n\t}\n\n\tprivate handleDragStart(evt: MouseEvent | TouchEvent): void {\n\t\tevt.preventDefault();\n\n\t\tthis.isDragging = true;\n\t\tthis.dragStartX = this.getEventX(evt);\n\t\tthis.initialTranslateX = this.isRTL\n\t\t\t? this.getTranslateXValue()\n\t\t\t: -this.getTranslateXValue();\n\n\t\tthis.inner.classList.add('dragging');\n\t}\n\n\tprivate handleDragMove(evt: MouseEvent | TouchEvent): void {\n\t\tif (!this.isDragging) return;\n\n\t\tthis.inner.querySelectorAll('a:not(.prevented-click)').forEach((el) => {\n\t\t\tel.classList.add('prevented-click');\n\t\t\tel.addEventListener('click', this.removeClickEventWhileDragging);\n\t\t});\n\n\t\tconst currentX = this.getEventX(evt);\n\t\tlet deltaX = currentX - this.dragStartX;\n\t\tif (this.isRTL) deltaX = -deltaX;\n\t\tconst newTranslateX = this.initialTranslateX + deltaX;\n\t\tconst newTranslateXFunc = () => {\n\t\t\tlet calcWidth =\n\t\t\t\t(this.sliderWidth * this.slides.length) / this.getCurrentSlidesQty() -\n\t\t\t\tthis.sliderWidth;\n\t\t\tconst containerWidth = this.sliderWidth;\n\t\t\tconst itemWidth = containerWidth / this.getCurrentSlidesQty();\n\t\t\tconst centeredOffset = (containerWidth - itemWidth) / 2;\n\t\t\tconst limitStart = this.isCentered ? centeredOffset : 0;\n\t\t\tif (this.isCentered) calcWidth = calcWidth + centeredOffset;\n\t\t\tconst limitEnd = -calcWidth;\n\n\t\t\tif (this.isRTL) {\n\t\t\t\tif (newTranslateX < limitStart) return limitStart;\n\t\t\t\tif (newTranslateX > calcWidth) return limitEnd;\n\t\t\t\telse return -newTranslateX;\n\t\t\t} else {\n\t\t\t\tif (newTranslateX > limitStart) return limitStart;\n\t\t\t\telse if (newTranslateX < -calcWidth) return limitEnd;\n\t\t\t\telse return newTranslateX;\n\t\t\t}\n\t\t};\n\n\t\tthis.setTranslate(newTranslateXFunc());\n\t}\n\n\tprivate handleDragEnd(): void {\n\t\tif (!this.isDragging) return;\n\t\tthis.isDragging = false;\n\n\t\tconst containerWidth = this.sliderWidth;\n\t\tconst itemWidth = containerWidth / this.getCurrentSlidesQty();\n\t\tconst currentTranslateX = this.getTranslateXValue();\n\t\tlet closestIndex = Math.round(currentTranslateX / itemWidth);\n\t\tif (this.isRTL) closestIndex = Math.round(currentTranslateX / itemWidth);\n\n\t\tthis.inner.classList.remove('dragging');\n\n\t\tsetTimeout(() => {\n\t\t\tthis.calculateTransform(closestIndex);\n\t\t\tif (this.dots) this.setCurrentDot();\n\n\t\t\tthis.dragStartX = null;\n\t\t\tthis.initialTranslateX = null;\n\n\t\t\tthis.inner.querySelectorAll('a.prevented-click').forEach((el) => {\n\t\t\t\tel.classList.remove('prevented-click');\n\t\t\t\tel.removeEventListener('click', this.removeClickEventWhileDragging);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate getEventX(event: MouseEvent | TouchEvent): number {\n\t\treturn event instanceof MouseEvent\n\t\t\t? event.clientX\n\t\t\t: event.touches[0].clientX;\n\t}\n\n\tprivate getCurrentSlidesQty(): number {\n\t\tif (typeof this.slidesQty === 'object') {\n\t\t\tconst windowWidth = document.body.clientWidth;\n\t\t\tlet currentRes = 0;\n\n\t\t\tObject.keys(this.slidesQty).forEach((key: string) => {\n\t\t\t\tif (\n\t\t\t\t\twindowWidth >=\n\t\t\t\t\t(typeof key + 1 === 'number'\n\t\t\t\t\t\t? (this.slidesQty as TCarouselOptionsSlidesQty)[key]\n\t\t\t\t\t\t: BREAKPOINTS[key])\n\t\t\t\t)\n\t\t\t\t\tcurrentRes = (this.slidesQty as TCarouselOptionsSlidesQty)[key];\n\t\t\t});\n\n\t\t\treturn currentRes;\n\t\t} else {\n\t\t\treturn this.slidesQty as number;\n\t\t}\n\t}\n\n\tprivate buildSnapSpacers() {\n\t\tconst existingBefore = this.inner.querySelector('.hs-snap-before');\n\t\tconst existingAfter = this.inner.querySelector('.hs-snap-after');\n\t\tif (existingBefore) existingBefore.remove();\n\t\tif (existingAfter) existingAfter.remove();\n\n\t\tconst containerWidth = this.sliderWidth;\n\t\tconst itemWidth = containerWidth / this.getCurrentSlidesQty();\n\t\tconst spacerWidth = containerWidth / 2 - itemWidth / 2;\n\n\t\tconst before = htmlToElement(\n\t\t\t`
`,\n\t\t);\n\t\tconst after = htmlToElement(\n\t\t\t`
`,\n\t\t);\n\n\t\tthis.inner.prepend(before);\n\t\tthis.inner.appendChild(after);\n\t}\n\n\tprivate initDots() {\n\t\tif (this.el.querySelectorAll('.hs-carousel-pagination-item').length)\n\t\t\tthis.setDots();\n\t\telse this.buildDots();\n\n\t\tif (this.dots) this.setCurrentDot();\n\t}\n\n\tprivate buildDots() {\n\t\tthis.dots.innerHTML = '';\n\n\t\tconst slidesQty =\n\t\t\t!this.isCentered && this.slidesQty\n\t\t\t\t? this.slides.length - (this.getCurrentSlidesQty() - 1)\n\t\t\t\t: this.slides.length;\n\n\t\tfor (let i = 0; i < slidesQty; i++) {\n\t\t\tconst singleDot = this.buildSingleDot(i);\n\n\t\t\tthis.dots.append(singleDot);\n\t\t}\n\t}\n\n\tprivate setDots() {\n\t\tthis.dotsItems = this.dots.querySelectorAll('.hs-carousel-pagination-item');\n\n\t\tthis.dotsItems.forEach((dot, ind) => {\n\t\t\tconst targetIndex = dot.getAttribute(\n\t\t\t\t'data-carousel-pagination-item-target',\n\t\t\t);\n\n\t\t\tthis.singleDotEvents(dot, targetIndex ? +targetIndex : ind);\n\t\t});\n\t}\n\n\tprivate goToCurrentDot() {\n\t\tconst container = this.dots;\n\t\tconst containerRect = container.getBoundingClientRect();\n\t\tconst containerScrollLeft = container.scrollLeft;\n\t\tconst containerScrollTop = container.scrollTop;\n\t\tconst containerWidth = container.clientWidth;\n\t\tconst containerHeight = container.clientHeight;\n\n\t\tconst item = this.dotsItems[this.currentIndex];\n\t\tconst itemRect = item.getBoundingClientRect();\n\t\tconst itemLeft = itemRect.left - containerRect.left + containerScrollLeft;\n\t\tconst itemRight = itemLeft + item.clientWidth;\n\t\tconst itemTop = itemRect.top - containerRect.top + containerScrollTop;\n\t\tconst itemBottom = itemTop + item.clientHeight;\n\n\t\tlet scrollLeft = containerScrollLeft;\n\t\tlet scrollTop = containerScrollTop;\n\n\t\tif (\n\t\t\titemLeft < containerScrollLeft ||\n\t\t\titemRight > containerScrollLeft + containerWidth\n\t\t) {\n\t\t\tscrollLeft = itemRight - containerWidth;\n\t\t}\n\n\t\tif (\n\t\t\titemTop < containerScrollTop ||\n\t\t\titemBottom > containerScrollTop + containerHeight\n\t\t) {\n\t\t\tscrollTop = itemBottom - containerHeight;\n\t\t}\n\n\t\tcontainer.scrollTo({\n\t\t\tleft: scrollLeft,\n\t\t\ttop: scrollTop,\n\t\t\tbehavior: 'smooth',\n\t\t});\n\t}\n\n\tprivate buildInfo() {\n\t\tif (this.infoTotal) this.setInfoTotal();\n\t\tif (this.infoCurrent) this.setInfoCurrent();\n\t}\n\n\tprivate setInfoTotal() {\n\t\tthis.infoTotal.innerText = `${this.slides.length}`;\n\t}\n\n\tprivate setInfoCurrent() {\n\t\tthis.infoCurrent.innerText = `${this.currentIndex + 1}`;\n\t}\n\n\tprivate buildSingleDot(ind: number) {\n\t\tconst singleDot = htmlToElement('');\n\t\tif (this.dotsItemClasses) classToClassList(this.dotsItemClasses, singleDot);\n\n\t\tthis.singleDotEvents(singleDot, ind);\n\n\t\treturn singleDot;\n\t}\n\n\tprivate singleDotEvents(dot: HTMLElement, ind: number) {\n\t\tdot.addEventListener('click', () => {\n\t\t\tthis.goTo(ind);\n\n\t\t\tif (this.isAutoPlay) {\n\t\t\t\tthis.resetTimer();\n\t\t\t\tthis.setTimer();\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate observeResize() {\n\t\tconst resizeObserver = new ResizeObserver(\n\t\t\tdebounce((entries: ResizeObserverEntry[]) => {\n\t\t\t\tfor (let entry of entries) {\n\t\t\t\t\tconst newWidth = entry.contentRect.width;\n\n\t\t\t\t\tif (newWidth !== this.resizeContainerWidth) {\n\t\t\t\t\t\tthis.recalculateWidth();\n\t\t\t\t\t\tif (this.dots) this.initDots();\n\t\t\t\t\t\tthis.addCurrentClass();\n\n\t\t\t\t\t\tthis.resizeContainerWidth = newWidth;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, this.updateDelay),\n\t\t);\n\n\t\tresizeObserver.observe(this.resizeContainer);\n\t}\n\n\tprivate calculateWidth() {\n\t\tif (!this.isSnap)\n\t\t\tthis.inner.style.width = `${(this.sliderWidth * this.slides.length) / this.getCurrentSlidesQty()}px`;\n\n\t\tthis.slides.forEach((el) => {\n\t\t\tel.style.width = `${this.sliderWidth / this.getCurrentSlidesQty()}px`;\n\t\t});\n\n\t\tthis.calculateTransform();\n\t}\n\n\tprivate addCurrentClass() {\n\t\tif (this.isSnap) {\n\t\t\tconst itemsQty = Math.floor(this.getCurrentSlidesQty() / 2);\n\n\t\t\tfor (let i = 0; i < this.slides.length; i++) {\n\t\t\t\tconst slide = this.slides[i];\n\n\t\t\t\tif (\n\t\t\t\t\ti <= this.currentIndex + itemsQty &&\n\t\t\t\t\ti >= this.currentIndex - itemsQty\n\t\t\t\t)\n\t\t\t\t\tslide.classList.add('active');\n\t\t\t\telse slide.classList.remove('active');\n\t\t\t}\n\t\t} else {\n\t\t\tconst maxIndex = this.isCentered\n\t\t\t\t? this.currentIndex +\n\t\t\t\t\tthis.getCurrentSlidesQty() +\n\t\t\t\t\t(this.getCurrentSlidesQty() - 1)\n\t\t\t\t: this.currentIndex + this.getCurrentSlidesQty();\n\n\t\t\tthis.slides.forEach((el, i) => {\n\t\t\t\tif (i >= this.currentIndex && i < maxIndex) {\n\t\t\t\t\tel.classList.add('active');\n\t\t\t\t} else {\n\t\t\t\t\tel.classList.remove('active');\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate setCurrentDot() {\n\t\tconst toggleDotActive = (el: HTMLElement | Element, i: number) => {\n\t\t\tlet statement = false;\n\t\t\tconst itemsQty = Math.floor(this.getCurrentSlidesQty() / 2);\n\n\t\t\tif (this.isSnap && !this.hasSnapSpacers) {\n\t\t\t\tstatement =\n\t\t\t\t\ti ===\n\t\t\t\t\t(this.getCurrentSlidesQty() % 2 === 0\n\t\t\t\t\t\t? this.currentIndex - itemsQty + 1\n\t\t\t\t\t\t: this.currentIndex - itemsQty);\n\t\t\t} else statement = i === this.currentIndex;\n\n\t\t\tif (statement) el.classList.add('active');\n\t\t\telse el.classList.remove('active');\n\t\t};\n\n\t\tif (this.dotsItems)\n\t\t\tthis.dotsItems.forEach((el, i) => toggleDotActive(el, i));\n\t\telse\n\t\t\tthis.dots\n\t\t\t\t.querySelectorAll(':scope > *')\n\t\t\t\t.forEach((el, i) => toggleDotActive(el, i));\n\t}\n\n\tprivate setElementToDisabled(el: HTMLElement) {\n\t\tel.classList.add('disabled');\n\t\tif (el.tagName === 'BUTTON' || el.tagName === 'INPUT')\n\t\t\tel.setAttribute('disabled', 'disabled');\n\t}\n\n\tprivate unsetElementToDisabled(el: HTMLElement) {\n\t\tel.classList.remove('disabled');\n\t\tif (el.tagName === 'BUTTON' || el.tagName === 'INPUT')\n\t\t\tel.removeAttribute('disabled');\n\t}\n\n\tprivate addDisabledClass() {\n\t\tif (!this.prev || !this.next) return false;\n\n\t\tconst gapValue = getComputedStyle(this.inner).getPropertyValue('gap');\n\t\tconst itemsQty = Math.floor(this.getCurrentSlidesQty() / 2);\n\t\tlet currentIndex = 0;\n\t\tlet maxIndex = 0;\n\t\tlet statementPrev = false;\n\t\tlet statementNext = false;\n\n\t\tif (this.isSnap) {\n\t\t\tcurrentIndex = this.currentIndex;\n\t\t\tmaxIndex = this.hasSnapSpacers\n\t\t\t\t? this.slides.length - 1\n\t\t\t\t: this.slides.length - itemsQty - 1;\n\t\t\tstatementPrev = this.hasSnapSpacers\n\t\t\t\t? currentIndex === 0\n\t\t\t\t: this.getCurrentSlidesQty() % 2 === 0\n\t\t\t\t\t? currentIndex - itemsQty < 0\n\t\t\t\t\t: currentIndex - itemsQty === 0;\n\t\t\tstatementNext =\n\t\t\t\tcurrentIndex >= maxIndex &&\n\t\t\t\tthis.container.scrollLeft +\n\t\t\t\t\tthis.container.clientWidth +\n\t\t\t\t\t(parseFloat(gapValue) || 0) >=\n\t\t\t\t\tthis.container.scrollWidth;\n\t\t} else {\n\t\t\tcurrentIndex = this.currentIndex;\n\t\t\tmaxIndex = this.isCentered\n\t\t\t\t? this.slides.length -\n\t\t\t\t\tthis.getCurrentSlidesQty() +\n\t\t\t\t\t(this.getCurrentSlidesQty() - 1)\n\t\t\t\t: this.slides.length - this.getCurrentSlidesQty();\n\t\t\tstatementPrev = currentIndex === 0;\n\t\t\tstatementNext = currentIndex >= maxIndex;\n\t\t}\n\n\t\tif (statementPrev) {\n\t\t\tthis.unsetElementToDisabled(this.next);\n\t\t\tthis.setElementToDisabled(this.prev);\n\t\t} else if (statementNext) {\n\t\t\tthis.unsetElementToDisabled(this.prev);\n\t\t\tthis.setElementToDisabled(this.next);\n\t\t} else {\n\t\t\tthis.unsetElementToDisabled(this.prev);\n\t\t\tthis.unsetElementToDisabled(this.next);\n\t\t}\n\t}\n\n\tprivate autoPlay() {\n\t\tthis.setTimer();\n\t}\n\n\tprivate setTimer() {\n\t\tthis.timer = setInterval(() => {\n\t\t\tif (this.currentIndex === this.slides.length - 1) this.goTo(0);\n\t\t\telse this.goToNext();\n\t\t}, this.speed);\n\t}\n\n\tprivate resetTimer() {\n\t\tclearInterval(this.timer);\n\t}\n\n\tprivate detectDirection() {\n\t\tconst { start, end } = this.touchX;\n\n\t\tif (end < start) this.goToNext();\n\t\tif (end > start) this.goToPrev();\n\t}\n\n\t// Public methods\n\tpublic recalculateWidth() {\n\t\tthis.sliderWidth = this.inner.parentElement.getBoundingClientRect().width;\n\n\t\tthis.calculateWidth();\n\n\t\tif (\n\t\t\tthis.sliderWidth !==\n\t\t\tthis.inner.parentElement.getBoundingClientRect().width\n\t\t)\n\t\t\tthis.recalculateWidth();\n\t}\n\n\tprivate calculateTransform(currentIdx?: number | undefined): void {\n\t\tif (currentIdx !== undefined) this.currentIndex = currentIdx;\n\t\tif (\n\t\t\tthis.currentIndex > this.slides.length - this.getCurrentSlidesQty() &&\n\t\t\t!this.isCentered\n\t\t)\n\t\t\tthis.currentIndex = this.slides.length - this.getCurrentSlidesQty();\n\n\t\tconst containerWidth = this.sliderWidth;\n\t\tconst itemWidth = containerWidth / this.getCurrentSlidesQty();\n\t\tlet translateX = this.currentIndex * itemWidth;\n\n\t\t// TODO:: need to test auto scrolling to the end if last on resize\n\t\tif (this.isSnap && !this.isCentered) {\n\t\t\tif (\n\t\t\t\tthis.container.scrollLeft < containerWidth &&\n\t\t\t\tthis.container.scrollLeft + itemWidth / 2 > containerWidth\n\t\t\t)\n\t\t\t\tthis.container.scrollLeft = this.container.scrollWidth;\n\t\t}\n\n\t\tif (this.isCentered && !this.isSnap) {\n\t\t\tconst centeredOffset = (containerWidth - itemWidth) / 2;\n\n\t\t\tif (this.currentIndex === 0) translateX = -centeredOffset;\n\t\t\telse if (\n\t\t\t\tthis.currentIndex >=\n\t\t\t\tthis.slides.length -\n\t\t\t\t\tthis.getCurrentSlidesQty() +\n\t\t\t\t\t(this.getCurrentSlidesQty() - 1)\n\t\t\t) {\n\t\t\t\tconst totalSlideWidth = this.slides.length * itemWidth;\n\n\t\t\t\ttranslateX = totalSlideWidth - containerWidth + centeredOffset;\n\t\t\t} else translateX = this.currentIndex * itemWidth - centeredOffset;\n\t\t}\n\n\t\tif (!this.isSnap)\n\t\t\tthis.inner.style.transform = this.isRTL\n\t\t\t\t? `translate(${translateX}px, 0px)`\n\t\t\t\t: `translate(${-translateX}px, 0px)`;\n\n\t\tif (this.isAutoHeight)\n\t\t\tthis.inner.style.height = `${this.slides[this.currentIndex].clientHeight}px`;\n\n\t\tif (this.dotsItems) this.goToCurrentDot();\n\n\t\tthis.addCurrentClass();\n\t\tif (!this.isInfiniteLoop) this.addDisabledClass();\n\t\tif (this.isSnap && this.hasSnapSpacers) this.buildSnapSpacers();\n\t\tif (this.infoCurrent) this.setInfoCurrent();\n\t}\n\n\tprivate setTranslate(val: number) {\n\t\tthis.inner.style.transform = this.isRTL\n\t\t\t? `translate(${-val}px, 0px)`\n\t\t\t: `translate(${val}px, 0px)`;\n\t}\n\n\tpublic goToPrev() {\n\t\tif (this.currentIndex > 0) {\n\t\t\tthis.currentIndex--;\n\t\t} else {\n\t\t\tthis.currentIndex = this.slides.length - this.getCurrentSlidesQty();\n\t\t}\n\n\t\tif (this.isSnap) {\n\t\t\tconst itemWidth = this.sliderWidth / this.getCurrentSlidesQty();\n\n\t\t\tthis.container.scrollBy({\n\t\t\t\tleft: Math.max(-this.container.scrollLeft, -itemWidth),\n\t\t\t\tbehavior: 'smooth',\n\t\t\t});\n\n\t\t\tthis.addCurrentClass();\n\t\t\tif (!this.isInfiniteLoop) this.addDisabledClass();\n\t\t} else this.calculateTransform();\n\n\t\tif (this.dots) this.setCurrentDot();\n\t}\n\n\tpublic goToNext() {\n\t\tconst statement = this.isCentered\n\t\t\t? this.slides.length -\n\t\t\t\tthis.getCurrentSlidesQty() +\n\t\t\t\t(this.getCurrentSlidesQty() - 1)\n\t\t\t: this.slides.length - this.getCurrentSlidesQty();\n\n\t\tif (this.currentIndex < statement) {\n\t\t\tthis.currentIndex++;\n\t\t} else {\n\t\t\tthis.currentIndex = 0;\n\t\t}\n\n\t\tif (this.isSnap) {\n\t\t\tconst itemWidth = this.sliderWidth / this.getCurrentSlidesQty();\n\t\t\tconst maxScrollLeft =\n\t\t\t\tthis.container.scrollWidth - this.container.clientWidth;\n\n\t\t\tthis.container.scrollBy({\n\t\t\t\tleft: Math.min(itemWidth, maxScrollLeft - this.container.scrollLeft),\n\t\t\t\tbehavior: 'smooth',\n\t\t\t});\n\n\t\t\tthis.addCurrentClass();\n\t\t\tif (!this.isInfiniteLoop) this.addDisabledClass();\n\t\t} else this.calculateTransform();\n\n\t\tif (this.dots) this.setCurrentDot();\n\t}\n\n\tpublic goTo(i: number) {\n\t\tconst currentIndex = this.currentIndex;\n\t\tthis.currentIndex = i;\n\n\t\tif (this.isSnap) {\n\t\t\tconst itemWidth = this.sliderWidth / this.getCurrentSlidesQty();\n\t\t\tconst index =\n\t\t\t\tcurrentIndex > this.currentIndex\n\t\t\t\t\t? currentIndex - this.currentIndex\n\t\t\t\t\t: this.currentIndex - currentIndex;\n\t\t\tconst width =\n\t\t\t\tcurrentIndex > this.currentIndex\n\t\t\t\t\t? -(itemWidth * index)\n\t\t\t\t\t: itemWidth * index;\n\n\t\t\tthis.container.scrollBy({\n\t\t\t\tleft: width,\n\t\t\t\tbehavior: 'smooth',\n\t\t\t});\n\n\t\t\tthis.addCurrentClass();\n\t\t\tif (!this.isInfiniteLoop) this.addDisabledClass();\n\t\t} else this.calculateTransform();\n\n\t\tif (this.dots) this.setCurrentDot();\n\t}\n\n\tprivate setIndex(i: number) {\n\t\tthis.currentIndex = i;\n\n\t\tthis.addCurrentClass();\n\t\tif (!this.isInfiniteLoop) this.addDisabledClass();\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsCarouselCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsCarouselCollection) window.$hsCarouselCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-carousel]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsCarouselCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSCarousel(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSCarousel: Function;\n\t\t$hsCarouselCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSCarousel.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Carousel collection:', window.$hsCarouselCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSCarousel = HSCarousel;\n}\n\nexport default HSCarousel;\n","export const POSITIONS: any = {\n\tauto: 'auto',\n\t'auto-start': 'auto-start',\n\t'auto-end': 'auto-end',\n\ttop: 'top',\n\t'top-left': 'top-start',\n\t'top-right': 'top-end',\n\tbottom: 'bottom',\n\t'bottom-left': 'bottom-start',\n\t'bottom-right': 'bottom-end',\n\tright: 'right',\n\t'right-start': 'right-start',\n\t'right-end': 'right-end',\n\tleft: 'left',\n\t'left-start': 'left-start',\n\t'left-end': 'left-end',\n};\n\nexport const DROPDOWN_ACCESSIBILITY_KEY_SET = [\n\t'Escape',\n\t'ArrowUp',\n\t'ArrowDown',\n\t'Home',\n\t'End',\n\t'Enter',\n];\n\nexport const OVERLAY_ACCESSIBILITY_KEY_SET = ['Escape', 'Tab'];\n\nexport const TABS_ACCESSIBILITY_KEY_SET = [\n\t'ArrowUp',\n\t'ArrowLeft',\n\t'ArrowDown',\n\t'ArrowRight',\n\t'Home',\n\t'End',\n];\n\nexport const SELECT_ACCESSIBILITY_KEY_SET = [\n\t'ArrowUp',\n\t'ArrowLeft',\n\t'ArrowDown',\n\t'ArrowRight',\n\t'Home',\n\t'End',\n\t'Escape',\n\t'Enter',\n\t'Tab',\n];\n\nexport const COMBO_BOX_ACCESSIBILITY_KEY_SET = [\n\t'ArrowUp',\n\t'ArrowLeft',\n\t'ArrowDown',\n\t'ArrowRight',\n\t'Home',\n\t'End',\n\t'Escape',\n\t'Enter',\n];\n\nexport const BREAKPOINTS: any = {\n\txs: 0,\n\tsm: 640,\n\tmd: 768,\n\tlg: 1024,\n\txl: 1280,\n\t'2xl': 1536,\n};\n","/*\n * HSCollapse\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { dispatch, afterTransition } from '../../utils';\n\nimport { ICollapse } from '../collapse/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSCollapse extends HSBasePlugin<{}> implements ICollapse {\n\tprivate readonly contentId: string | null;\n\tpublic content: HTMLElement | null;\n\tprivate animationInProcess: boolean;\n\n\tconstructor(el: HTMLElement, options?: {}, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tthis.contentId = this.el.dataset.hsCollapse;\n\t\tthis.content = document.querySelector(this.contentId);\n\t\tthis.animationInProcess = false;\n\n\t\tif (this.content) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsCollapseCollection, this);\n\n\t\tif (this?.el?.ariaExpanded) {\n\t\t\tif (this.el.classList.contains('open')) this.el.ariaExpanded = 'true';\n\t\t\telse this.el.ariaExpanded = 'false';\n\t\t}\n\n\t\tthis.el.addEventListener('click', () => {\n\t\t\tif (this.content.classList.contains('open')) {\n\t\t\t\tthis.hide();\n\t\t\t} else {\n\t\t\t\tthis.show();\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate hideAllMegaMenuItems() {\n\t\tthis.content\n\t\t\t.querySelectorAll('.hs-mega-menu-content.block')\n\t\t\t.forEach((el) => {\n\t\t\t\tel.classList.remove('block');\n\t\t\t\tel.classList.add('hidden');\n\t\t\t});\n\t}\n\n\t// Public methods\n\tpublic show() {\n\t\tif (this.animationInProcess || this.el.classList.contains('open'))\n\t\t\treturn false;\n\n\t\tthis.animationInProcess = true;\n\n\t\tthis.el.classList.add('open');\n\t\tif (this?.el?.ariaExpanded) this.el.ariaExpanded = 'true';\n\t\tthis.content.classList.add('open');\n\t\tthis.content.classList.remove('hidden');\n\n\t\tthis.content.style.height = '0';\n\t\tsetTimeout(() => {\n\t\t\tthis.content.style.height = `${this.content.scrollHeight}px`;\n\n\t\t\tthis.fireEvent('beforeOpen', this.el);\n\t\t\tdispatch('beforeOpen.hs.collapse', this.el, this.el);\n\t\t});\n\n\t\tafterTransition(this.content, () => {\n\t\t\tthis.content.style.height = '';\n\n\t\t\tthis.fireEvent('open', this.el);\n\t\t\tdispatch('open.hs.collapse', this.el, this.el);\n\n\t\t\tthis.animationInProcess = false;\n\t\t});\n\t}\n\n\tpublic hide() {\n\t\tif (this.animationInProcess || !this.el.classList.contains('open'))\n\t\t\treturn false;\n\n\t\tthis.animationInProcess = true;\n\n\t\tthis.el.classList.remove('open');\n\t\tif (this?.el?.ariaExpanded) this.el.ariaExpanded = 'false';\n\n\t\tthis.content.style.height = `${this.content.scrollHeight}px`;\n\t\tsetTimeout(() => {\n\t\t\tthis.content.style.height = '0';\n\t\t});\n\n\t\tthis.content.classList.remove('open');\n\n\t\tafterTransition(this.content, () => {\n\t\t\tthis.content.classList.add('hidden');\n\t\t\tthis.content.style.height = '';\n\n\t\t\tthis.fireEvent('hide', this.el);\n\t\t\tdispatch('hide.hs.collapse', this.el, this.el);\n\n\t\t\tthis.animationInProcess = false;\n\t\t});\n\n\t\tif (this.content.querySelectorAll('.hs-mega-menu-content.block').length) {\n\t\t\tthis.hideAllMegaMenuItems();\n\t\t}\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement, isInstance = false) {\n\t\tconst elInCollection = window.$hsCollapseCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsCollapseCollection) window.$hsCollapseCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('.hs-collapse-toggle:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsCollapseCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSCollapse(el);\n\t\t\t});\n\t}\n\n\tstatic show(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsCollapseCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (\n\t\t\telInCollection &&\n\t\t\telInCollection.element.content.classList.contains('hidden')\n\t\t)\n\t\t\telInCollection.element.show();\n\t}\n\n\tstatic hide(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsCollapseCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (\n\t\t\telInCollection &&\n\t\t\t!elInCollection.element.content.classList.contains('hidden')\n\t\t)\n\t\t\telInCollection.element.hide();\n\t}\n\n\t// Backward compatibility\n\tstatic on(evt: string, target: HTMLElement, cb: Function) {\n\t\tconst elInCollection = window.$hsCollapseCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection) elInCollection.element.events[evt] = cb;\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSCollapse: Function;\n\t\t$hsCollapseCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSCollapse.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Collapse collection:', window.$hsCollapseCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSCollapse = HSCollapse;\n}\n\nexport default HSCollapse;\n","/*\n * HSComboBox\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport {\n\tisEnoughSpace,\n\tdebounce,\n\tdispatch,\n\tafterTransition,\n\thtmlToElement,\n\tisParentOrElementHidden,\n} from '../../utils';\n\nimport {\n\tIComboBox,\n\tIComboBoxOptions,\n\tIComboBoxItemAttr,\n} from '../combobox/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nimport { COMBO_BOX_ACCESSIBILITY_KEY_SET } from '../../constants';\n\nclass HSComboBox extends HSBasePlugin implements IComboBox {\n\tgap: number;\n\tviewport: string | HTMLElement | null;\n\tpreventVisibility: boolean;\n\tapiUrl: string | null;\n\tapiDataPart: string | null;\n\tapiQuery: string | null;\n\tapiSearchQuery: string | null;\n\tapiHeaders: {};\n\tapiGroupField: string | null;\n\toutputItemTemplate: string | null;\n\toutputEmptyTemplate: string | null;\n\toutputLoaderTemplate: string | null;\n\tgroupingType: 'default' | 'tabs' | null;\n\tgroupingTitleTemplate: string | null;\n\ttabsWrapperTemplate: string | null;\n\tpreventSelection: boolean;\n\tpreventAutoPosition: boolean;\n\tisOpenOnFocus: boolean;\n\n\tprivate readonly input: HTMLInputElement | null;\n\tprivate readonly output: HTMLElement | null;\n\tprivate readonly itemsWrapper: HTMLElement | null;\n\tprivate items: HTMLElement[] | [];\n\tprivate tabs: HTMLElement[] | [];\n\tprivate readonly toggle: HTMLElement | null;\n\tprivate readonly toggleClose: HTMLElement | null;\n\tprivate readonly toggleOpen: HTMLElement | null;\n\tprivate outputPlaceholder: HTMLElement | null;\n\tprivate outputLoader: HTMLElement | null;\n\n\tprivate value: string | null;\n\tprivate selected: string | null;\n\tprivate groups: any[] | null;\n\tprivate selectedGroup: string | null;\n\n\tisOpened: boolean;\n\tisCurrent: boolean;\n\tprivate animationInProcess: boolean;\n\n\tconstructor(el: HTMLElement, options?: IComboBoxOptions, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\t// Data parameters\n\t\tconst data = el.getAttribute('data-hs-combo-box');\n\t\tconst dataOptions: IComboBoxOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.gap = 5;\n\t\tthis.viewport =\n\t\t\t(typeof concatOptions?.viewport === 'string'\n\t\t\t\t? (document.querySelector(concatOptions?.viewport) as HTMLElement)\n\t\t\t\t: concatOptions?.viewport) ?? null;\n\t\tthis.preventVisibility = concatOptions?.preventVisibility ?? false;\n\t\tthis.apiUrl = concatOptions?.apiUrl ?? null;\n\t\tthis.apiDataPart = concatOptions?.apiDataPart ?? null;\n\t\tthis.apiQuery = concatOptions?.apiQuery ?? null;\n\t\tthis.apiSearchQuery = concatOptions?.apiSearchQuery ?? null;\n\t\tthis.apiHeaders = concatOptions?.apiHeaders ?? {};\n\t\tthis.apiGroupField = concatOptions?.apiGroupField ?? null;\n\t\tthis.outputItemTemplate =\n\t\t\tconcatOptions?.outputItemTemplate ??\n\t\t\t`
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
`;\n\t\tthis.outputEmptyTemplate =\n\t\t\tconcatOptions?.outputEmptyTemplate ??\n\t\t\t`
Nothing found...
`;\n\t\tthis.outputLoaderTemplate =\n\t\t\tconcatOptions?.outputLoaderTemplate ??\n\t\t\t`
\n\t\t\t\t
\n\t\t\t\t\tLoading...\n\t\t\t\t
\n\t\t\t
`;\n\t\tthis.groupingType = concatOptions?.groupingType ?? null;\n\t\tthis.groupingTitleTemplate =\n\t\t\tconcatOptions?.groupingTitleTemplate ??\n\t\t\t(this.groupingType === 'default'\n\t\t\t\t? `
`\n\t\t\t\t: ``);\n\t\tthis.tabsWrapperTemplate =\n\t\t\tconcatOptions?.tabsWrapperTemplate ??\n\t\t\t`
`;\n\t\tthis.preventSelection = concatOptions?.preventSelection ?? false;\n\t\tthis.preventAutoPosition = concatOptions?.preventAutoPosition ?? false;\n\t\tthis.isOpenOnFocus = concatOptions?.isOpenOnFocus ?? false;\n\n\t\t// Internal parameters\n\t\tthis.input = this.el.querySelector('[data-hs-combo-box-input]') ?? null;\n\t\tthis.output = this.el.querySelector('[data-hs-combo-box-output]') ?? null;\n\t\tthis.itemsWrapper =\n\t\t\tthis.el.querySelector('[data-hs-combo-box-output-items-wrapper]') ?? null;\n\t\tthis.items =\n\t\t\tArray.from(this.el.querySelectorAll('[data-hs-combo-box-output-item]')) ??\n\t\t\t[];\n\t\tthis.tabs = [];\n\t\tthis.toggle = this.el.querySelector('[data-hs-combo-box-toggle]') ?? null;\n\t\tthis.toggleClose =\n\t\t\tthis.el.querySelector('[data-hs-combo-box-close]') ?? null;\n\t\tthis.toggleOpen = this.el.querySelector('[data-hs-combo-box-open]') ?? null;\n\t\tthis.outputPlaceholder = null;\n\n\t\tthis.selected = this.value =\n\t\t\t(this.el.querySelector('[data-hs-combo-box-input]') as HTMLInputElement)\n\t\t\t\t.value ?? '';\n\t\tthis.isOpened = false;\n\t\tthis.isCurrent = false;\n\t\tthis.animationInProcess = false;\n\t\tthis.selectedGroup = 'all';\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsComboBoxCollection, this);\n\n\t\tthis.build();\n\t}\n\n\tprivate build() {\n\t\tthis.buildInput();\n\t\tif (this.groupingType) this.setGroups();\n\t\tthis.buildItems();\n\t\tif (this.preventVisibility) {\n\t\t\t// TODO:: test the plugin while the line below is commented.\n\t\t\t// this.isOpened = true;\n\n\t\t\tif (!this.preventAutoPosition) this.recalculateDirection();\n\t\t}\n\t\tif (this.toggle) this.buildToggle();\n\t\tif (this.toggleClose) this.buildToggleClose();\n\t\tif (this.toggleOpen) this.buildToggleOpen();\n\t}\n\n\tprivate setResultAndRender(value = '') {\n\t\t// TODO:: test the plugin with below code added.\n\t\tlet _value = this.preventVisibility ? this.input.value : value;\n\n\t\tthis.setResults(_value);\n\n\t\tif (this.apiSearchQuery) this.itemsFromJson();\n\t}\n\n\tprivate buildInput() {\n\t\tif (this.isOpenOnFocus) {\n\t\t\tthis.input.addEventListener('focus', () => {\n\t\t\t\tif (!this.isOpened) {\n\t\t\t\t\tthis.setResultAndRender();\n\t\t\t\t\tthis.open();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tthis.input.addEventListener(\n\t\t\t'input',\n\t\t\tdebounce((evt: InputEvent) => {\n\t\t\t\tthis.setResultAndRender((evt.target as HTMLInputElement).value);\n\t\t\t\tif (this.input.value !== '') this.el.classList.add('has-value');\n\t\t\t\telse this.el.classList.remove('has-value');\n\t\t\t\tif (!this.isOpened) this.open();\n\t\t\t}),\n\t\t);\n\t}\n\n\tprivate buildItems() {\n\t\tthis.output.role = 'listbox';\n\t\tthis.output.tabIndex = -1;\n\t\tthis.output.ariaOrientation = 'vertical';\n\n\t\tif (this.apiUrl) this.itemsFromJson();\n\t\telse {\n\t\t\tif (this.itemsWrapper) this.itemsWrapper.innerHTML = '';\n\t\t\telse this.output.innerHTML = '';\n\t\t\tthis.itemsFromHtml();\n\t\t}\n\t}\n\n\tprivate setResults(val: string) {\n\t\tthis.value = val;\n\n\t\tthis.resultItems();\n\n\t\tif (this.hasVisibleItems()) this.destroyOutputPlaceholder();\n\t\telse this.buildOutputPlaceholder();\n\t}\n\n\tprivate isItemExists(obj: never): boolean {\n\t\treturn this.items.some((el: HTMLElement) => {\n\t\t\tconst groupField =\n\t\t\t\tel.getAttribute('data-hs-combo-box-output-item-group-field') ?? null;\n\t\t\tconst params =\n\t\t\t\tJSON.parse(el.getAttribute('data-hs-combo-box-output-item')) ?? null;\n\t\t\tlet group = null;\n\n\t\t\tif (groupField && params?.group?.name) group = obj[groupField];\n\n\t\t\treturn Array.from(\n\t\t\t\tel.querySelectorAll('[data-hs-combo-box-search-text]'),\n\t\t\t).some((elI: HTMLElement) => {\n\t\t\t\tconst equality =\n\t\t\t\t\tparams?.group?.name && group\n\t\t\t\t\t\t? group === params.group.name &&\n\t\t\t\t\t\t\telI.getAttribute('data-hs-combo-box-search-text') ===\n\t\t\t\t\t\t\t\tobj[elI.getAttribute('data-hs-combo-box-output-item-field')]\n\t\t\t\t\t\t: elI.getAttribute('data-hs-combo-box-search-text') ===\n\t\t\t\t\t\t\tobj[elI.getAttribute('data-hs-combo-box-output-item-field')];\n\n\t\t\t\treturn equality;\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate isTextExists(el: HTMLElement, val: string[]): boolean {\n\t\tconst lowerCased = val.map((v) => v.toLowerCase());\n\n\t\treturn Array.from(\n\t\t\tel.querySelectorAll('[data-hs-combo-box-search-text]'),\n\t\t).some((elI: HTMLElement) =>\n\t\t\tlowerCased.includes(\n\t\t\t\telI.getAttribute('data-hs-combo-box-search-text').toLowerCase(),\n\t\t\t),\n\t\t);\n\t}\n\n\tprivate isTextExistsAny(el: HTMLElement, val: string): boolean {\n\t\treturn Array.from(\n\t\t\tel.querySelectorAll('[data-hs-combo-box-search-text]'),\n\t\t).some((elI: HTMLElement) =>\n\t\t\telI\n\t\t\t\t.getAttribute('data-hs-combo-box-search-text')\n\t\t\t\t.toLowerCase()\n\t\t\t\t.includes(val.toLowerCase()),\n\t\t);\n\t}\n\n\tprivate valuesBySelector(el: HTMLElement) {\n\t\treturn Array.from(\n\t\t\tel.querySelectorAll('[data-hs-combo-box-search-text]'),\n\t\t).reduce(\n\t\t\t(acc: any, cur: HTMLElement) => [\n\t\t\t\t...acc,\n\t\t\t\tcur.getAttribute('data-hs-combo-box-search-text'),\n\t\t\t],\n\t\t\t[],\n\t\t);\n\t}\n\n\tprivate buildOutputLoader() {\n\t\tif (this.outputLoader) return false;\n\n\t\tthis.outputLoader = htmlToElement(this.outputLoaderTemplate);\n\t\tif (this.items.length || this.outputPlaceholder) {\n\t\t\tthis.outputLoader.style.position = 'absolute';\n\t\t\tthis.outputLoader.style.top = '0';\n\t\t\tthis.outputLoader.style.bottom = '0';\n\t\t\tthis.outputLoader.style.left = '0';\n\t\t\tthis.outputLoader.style.right = '0';\n\t\t\tthis.outputLoader.style.zIndex = '2';\n\t\t} else {\n\t\t\tthis.outputLoader.style.position = '';\n\t\t\tthis.outputLoader.style.top = '';\n\t\t\tthis.outputLoader.style.bottom = '';\n\t\t\tthis.outputLoader.style.left = '';\n\t\t\tthis.outputLoader.style.right = '';\n\t\t\tthis.outputLoader.style.zIndex = '';\n\t\t\tthis.outputLoader.style.height = '30px';\n\t\t}\n\n\t\tthis.output.append(this.outputLoader);\n\t}\n\n\tprivate destroyOutputLoader() {\n\t\tif (this.outputLoader) this.outputLoader.remove();\n\n\t\tthis.outputLoader = null;\n\t}\n\n\tprivate async itemsFromJson() {\n\t\tthis.buildOutputLoader();\n\n\t\ttry {\n\t\t\tconst query = `${this.apiQuery}`;\n\t\t\tconst searchQuery = `${this.apiSearchQuery}=${this.value.toLowerCase()}`;\n\t\t\tlet url = this.apiUrl;\n\t\t\tif (this.apiQuery && this.apiSearchQuery) {\n\t\t\t\turl += `?${searchQuery}&${query}`;\n\t\t\t} else if (this.apiQuery) {\n\t\t\t\turl += `?${query}`;\n\t\t\t} else if (this.apiSearchQuery) {\n\t\t\t\turl += `?${searchQuery}`;\n\t\t\t}\n\t\t\tconst res = await fetch(url, this.apiHeaders);\n\t\t\tlet items = await res.json();\n\t\t\tif (this.apiDataPart) {\n\t\t\t\titems = items[this.apiDataPart];\n\t\t\t}\n\t\t\tif (this.apiSearchQuery) {\n\t\t\t\tthis.items = [];\n\t\t\t}\n\t\t\tif (this.itemsWrapper) {\n\t\t\t\tthis.itemsWrapper.innerHTML = '';\n\t\t\t} else {\n\t\t\t\tthis.output.innerHTML = '';\n\t\t\t}\n\n\t\t\tif (this.groupingType === 'tabs') {\n\t\t\t\tthis.setApiGroups(items);\n\t\t\t\tthis.groupTabsRender();\n\t\t\t\tthis.jsonItemsRender(items);\n\t\t\t} else if (this.groupingType === 'default') {\n\t\t\t\tthis.setApiGroups(items);\n\n\t\t\t\tthis.groups.forEach((el) => {\n\t\t\t\t\tconst title = htmlToElement(this.groupingTitleTemplate);\n\t\t\t\t\ttitle.setAttribute('data-hs-combo-box-group-title', el.name);\n\t\t\t\t\ttitle.classList.add('--exclude-accessibility');\n\t\t\t\t\ttitle.innerText = el.title;\n\t\t\t\t\tconst newItems = items.filter(\n\t\t\t\t\t\t(i: any) => i[this.apiGroupField] === el.name,\n\t\t\t\t\t);\n\n\t\t\t\t\tif (this.itemsWrapper) this.itemsWrapper.append(title);\n\t\t\t\t\telse this.output.append(title);\n\n\t\t\t\t\tthis.jsonItemsRender(newItems);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.jsonItemsRender(items);\n\t\t\t}\n\n\t\t\tthis.setResults(this.input.value);\n\t\t} catch (err) {\n\t\t\tconsole.error(err);\n\t\t}\n\n\t\tthis.destroyOutputLoader();\n\t}\n\n\tprivate jsonItemsRender(items: any) {\n\t\titems.forEach((item: never, index: number) => {\n\t\t\t// TODO:: test without checking below\n\t\t\t// if (this.isItemExists(item)) return false;\n\n\t\t\tconst newItem = htmlToElement(this.outputItemTemplate);\n\t\t\tnewItem\n\t\t\t\t.querySelectorAll('[data-hs-combo-box-output-item-field]')\n\t\t\t\t.forEach((el) => {\n\t\t\t\t\tconst value =\n\t\t\t\t\t\titem[el.getAttribute('data-hs-combo-box-output-item-field')];\n\t\t\t\t\tconst hideIfEmpty = el.hasAttribute(\n\t\t\t\t\t\t'data-hs-combo-box-output-item-hide-if-empty',\n\t\t\t\t\t);\n\n\t\t\t\t\tel.textContent = value ?? '';\n\t\t\t\t\tif (!value && hideIfEmpty) (el as HTMLElement).style.display = 'none';\n\t\t\t\t});\n\t\t\tnewItem\n\t\t\t\t.querySelectorAll('[data-hs-combo-box-search-text]')\n\t\t\t\t.forEach((el) => {\n\t\t\t\t\tel.setAttribute(\n\t\t\t\t\t\t'data-hs-combo-box-search-text',\n\t\t\t\t\t\titem[el.getAttribute('data-hs-combo-box-output-item-field')] ?? '',\n\t\t\t\t\t);\n\t\t\t\t});\n\t\t\tnewItem\n\t\t\t\t.querySelectorAll('[data-hs-combo-box-output-item-attr]')\n\t\t\t\t.forEach((el) => {\n\t\t\t\t\tconst attributes = JSON.parse(\n\t\t\t\t\t\tel.getAttribute('data-hs-combo-box-output-item-attr'),\n\t\t\t\t\t);\n\n\t\t\t\t\tattributes.forEach((attr: IComboBoxItemAttr) => {\n\t\t\t\t\t\tel.setAttribute(attr.attr, item[attr.valueFrom]);\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\tnewItem.setAttribute('tabIndex', `${index}`);\n\t\t\tif (this.groupingType === 'tabs' || this.groupingType === 'default') {\n\t\t\t\tnewItem.setAttribute(\n\t\t\t\t\t'data-hs-combo-box-output-item',\n\t\t\t\t\t`{\"group\": {\"name\": \"${item[this.apiGroupField]}\", \"title\": \"${\n\t\t\t\t\t\titem[this.apiGroupField]\n\t\t\t\t\t}\"}}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tthis.items = [...this.items, newItem];\n\n\t\t\tif (!this.preventSelection) {\n\t\t\t\t(newItem as HTMLElement).addEventListener('click', () => {\n\t\t\t\t\tthis.close(\n\t\t\t\t\t\t(newItem as HTMLElement)\n\t\t\t\t\t\t\t.querySelector('[data-hs-combo-box-value]')\n\t\t\t\t\t\t\t.getAttribute('data-hs-combo-box-search-text'),\n\t\t\t\t\t);\n\n\t\t\t\t\tthis.setSelectedByValue(this.valuesBySelector(newItem));\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.appendItemsToWrapper(newItem);\n\t\t});\n\t}\n\n\tprivate setGroups() {\n\t\tconst groups: any[] = [];\n\n\t\tthis.items.forEach((item: HTMLElement) => {\n\t\t\tconst { group } = JSON.parse(\n\t\t\t\titem.getAttribute('data-hs-combo-box-output-item'),\n\t\t\t);\n\n\t\t\tif (!groups.some((el) => el?.name === group.name)) {\n\t\t\t\tgroups.push(group);\n\t\t\t}\n\t\t});\n\n\t\tthis.groups = groups;\n\t}\n\n\tpublic setCurrent() {\n\t\tif (window.$hsComboBoxCollection.length) {\n\t\t\twindow.$hsComboBoxCollection.map((el) => (el.element.isCurrent = false));\n\n\t\t\tthis.isCurrent = true;\n\t\t}\n\t}\n\n\tprivate setApiGroups(items: any) {\n\t\tconst groups: any[] = [];\n\n\t\titems.forEach((item: any) => {\n\t\t\tconst group = item[this.apiGroupField];\n\n\t\t\tif (!groups.some((el) => el.name === group)) {\n\t\t\t\tgroups.push({\n\t\t\t\t\tname: group,\n\t\t\t\t\ttitle: group,\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tthis.groups = groups;\n\t}\n\n\tprivate sortItems() {\n\t\tconst compareFn = (i1: HTMLElement, i2: HTMLElement) => {\n\t\t\tconst a = i1\n\t\t\t\t.querySelector('[data-hs-combo-box-value]')\n\t\t\t\t.getAttribute('data-hs-combo-box-search-text');\n\t\t\tconst b = i2\n\t\t\t\t.querySelector('[data-hs-combo-box-value]')\n\t\t\t\t.getAttribute('data-hs-combo-box-search-text');\n\n\t\t\tif (a < b) {\n\t\t\t\treturn -1;\n\t\t\t} else if (a > b) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t};\n\n\t\treturn this.items.sort(compareFn);\n\t}\n\n\tprivate itemRender(item: HTMLElement) {\n\t\tconst val = item\n\t\t\t.querySelector('[data-hs-combo-box-value]')\n\t\t\t.getAttribute('data-hs-combo-box-search-text');\n\n\t\tif (this.itemsWrapper) this.itemsWrapper.append(item);\n\t\telse this.output.append(item);\n\n\t\tif (!this.preventSelection) {\n\t\t\titem.addEventListener('click', () => {\n\t\t\t\tthis.close(val);\n\t\t\t\tthis.setSelectedByValue(this.valuesBySelector(item));\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate plainRender(items: HTMLElement[]) {\n\t\titems.forEach((item: HTMLElement) => {\n\t\t\tthis.itemRender(item);\n\t\t});\n\t}\n\n\tprivate groupTabsRender() {\n\t\tconst tabsScroll = htmlToElement(this.tabsWrapperTemplate);\n\t\tconst tabsWrapper = htmlToElement(\n\t\t\t`
`,\n\t\t);\n\n\t\ttabsScroll.append(tabsWrapper);\n\t\tthis.output.insertBefore(tabsScroll, this.output.firstChild);\n\n\t\tconst tabDef = htmlToElement(this.groupingTitleTemplate);\n\t\ttabDef.setAttribute('data-hs-combo-box-group-title', 'all');\n\t\ttabDef.classList.add('--exclude-accessibility', 'active');\n\t\ttabDef.innerText = 'All';\n\t\tthis.tabs = [...this.tabs, tabDef];\n\t\ttabsWrapper.append(tabDef);\n\t\ttabDef.addEventListener('click', () => {\n\t\t\tthis.selectedGroup = 'all';\n\t\t\tconst selectedTab = this.tabs.find(\n\t\t\t\t(elI: HTMLElement) =>\n\t\t\t\t\telI.getAttribute('data-hs-combo-box-group-title') ===\n\t\t\t\t\tthis.selectedGroup,\n\t\t\t);\n\n\t\t\tthis.tabs.forEach((el: HTMLElement) => el.classList.remove('active'));\n\t\t\tselectedTab.classList.add('active');\n\t\t\tthis.setItemsVisibility();\n\t\t});\n\n\t\tthis.groups.forEach((el) => {\n\t\t\tconst tab = htmlToElement(this.groupingTitleTemplate);\n\t\t\ttab.setAttribute('data-hs-combo-box-group-title', el.name);\n\t\t\ttab.classList.add('--exclude-accessibility');\n\t\t\ttab.innerText = el.title;\n\n\t\t\tthis.tabs = [...this.tabs, tab];\n\t\t\ttabsWrapper.append(tab);\n\n\t\t\ttab.addEventListener('click', () => {\n\t\t\t\tthis.selectedGroup = el.name;\n\t\t\t\tconst selectedTab = this.tabs.find(\n\t\t\t\t\t(elI: HTMLElement) =>\n\t\t\t\t\t\telI.getAttribute('data-hs-combo-box-group-title') ===\n\t\t\t\t\t\tthis.selectedGroup,\n\t\t\t\t);\n\n\t\t\t\tthis.tabs.forEach((el: HTMLElement) => el.classList.remove('active'));\n\t\t\t\tselectedTab.classList.add('active');\n\t\t\t\tthis.setItemsVisibility();\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate groupDefaultRender() {\n\t\tthis.groups.forEach((el) => {\n\t\t\tconst title = htmlToElement(this.groupingTitleTemplate);\n\t\t\ttitle.setAttribute('data-hs-combo-box-group-title', el.name);\n\t\t\ttitle.classList.add('--exclude-accessibility');\n\t\t\ttitle.innerText = el.title;\n\n\t\t\tif (this.itemsWrapper) this.itemsWrapper.append(title);\n\t\t\telse this.output.append(title);\n\n\t\t\tconst items = this.sortItems().filter((f) => {\n\t\t\t\tconst { group } = JSON.parse(\n\t\t\t\t\tf.getAttribute('data-hs-combo-box-output-item'),\n\t\t\t\t);\n\n\t\t\t\treturn group.name === el.name;\n\t\t\t});\n\n\t\t\tthis.plainRender(items);\n\t\t});\n\t}\n\n\tprivate itemsFromHtml() {\n\t\tif (this.groupingType === 'default') {\n\t\t\tthis.groupDefaultRender();\n\t\t} else if (this.groupingType === 'tabs') {\n\t\t\tconst items = this.sortItems();\n\n\t\t\tthis.groupTabsRender();\n\t\t\tthis.plainRender(items);\n\t\t} else {\n\t\t\tconst items = this.sortItems();\n\n\t\t\tthis.plainRender(items);\n\t\t}\n\t\tthis.setResults(this.input.value);\n\t}\n\n\tprivate buildToggle() {\n\t\tif (this.isOpened) {\n\t\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'true';\n\t\t\tif (this?.input?.ariaExpanded) this.input.ariaExpanded = 'true';\n\t\t} else {\n\t\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'false';\n\t\t\tif (this?.input?.ariaExpanded) this.input.ariaExpanded = 'false';\n\t\t}\n\n\t\tthis.toggle.addEventListener('click', () => {\n\t\t\tif (this.isOpened) this.close();\n\t\t\telse this.open(this.toggle.getAttribute('data-hs-combo-box-toggle'));\n\t\t});\n\t}\n\n\tprivate buildToggleClose() {\n\t\tthis.toggleClose.addEventListener('click', () => this.close());\n\t}\n\n\tprivate buildToggleOpen() {\n\t\tthis.toggleOpen.addEventListener('click', () => this.open());\n\t}\n\n\tprivate setSelectedByValue(val: string[]) {\n\t\tthis.items.forEach((el) => {\n\t\t\tif (this.isTextExists(el, val))\n\t\t\t\t(el as HTMLElement).classList.add('selected');\n\t\t\telse (el as HTMLElement).classList.remove('selected');\n\t\t});\n\t}\n\n\tprivate setValue(val: string) {\n\t\tthis.selected = val;\n\t\tthis.value = val;\n\t\tthis.input.value = val;\n\n\t\tthis.fireEvent('select', this.el);\n\t\tdispatch('select.hs.combobox', this.el, this.value);\n\t}\n\n\tprivate setItemsVisibility() {\n\t\tif (this.groupingType === 'tabs' && this.selectedGroup !== 'all') {\n\t\t\tthis.items.forEach((item) => {\n\t\t\t\t(item as HTMLElement).style.display = 'none';\n\t\t\t});\n\t\t}\n\n\t\tconst items =\n\t\t\tthis.groupingType === 'tabs'\n\t\t\t\t? this.selectedGroup === 'all'\n\t\t\t\t\t? this.items\n\t\t\t\t\t: this.items.filter((f: HTMLElement) => {\n\t\t\t\t\t\t\tconst { group } = JSON.parse(\n\t\t\t\t\t\t\t\tf.getAttribute('data-hs-combo-box-output-item'),\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\treturn group.name === this.selectedGroup;\n\t\t\t\t\t\t})\n\t\t\t\t: this.items;\n\n\t\tif (this.groupingType === 'tabs' && this.selectedGroup !== 'all') {\n\t\t\titems.forEach((item) => {\n\t\t\t\t(item as HTMLElement).style.display = 'block';\n\t\t\t});\n\t\t}\n\n\t\titems.forEach((item) => {\n\t\t\tif (!this.isTextExistsAny(item, this.value))\n\t\t\t\t(item as HTMLElement).style.display = 'none';\n\t\t\telse (item as HTMLElement).style.display = 'block';\n\t\t});\n\n\t\tif (this.groupingType === 'default') {\n\t\t\tthis.output\n\t\t\t\t.querySelectorAll('[data-hs-combo-box-group-title]')\n\t\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\t\tconst g = el.getAttribute('data-hs-combo-box-group-title');\n\t\t\t\t\tconst items = this.items.filter((f: HTMLElement) => {\n\t\t\t\t\t\tconst { group } = JSON.parse(\n\t\t\t\t\t\t\tf.getAttribute('data-hs-combo-box-output-item'),\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\treturn group.name === g && f.style.display === 'block';\n\t\t\t\t\t});\n\n\t\t\t\t\tif (items.length) el.style.display = 'block';\n\t\t\t\t\telse el.style.display = 'none';\n\t\t\t\t});\n\t\t}\n\t}\n\n\tprivate hasVisibleItems() {\n\t\treturn this.items.length\n\t\t\t? this.items.some((el: HTMLElement) => el.style.display === 'block')\n\t\t\t: false;\n\t}\n\n\tprivate appendItemsToWrapper(item: HTMLElement) {\n\t\tif (this.itemsWrapper) {\n\t\t\tthis.itemsWrapper.append(item);\n\t\t} else {\n\t\t\tthis.output.append(item);\n\t\t}\n\t}\n\n\tprivate buildOutputPlaceholder() {\n\t\tif (!this.outputPlaceholder)\n\t\t\tthis.outputPlaceholder = htmlToElement(this.outputEmptyTemplate);\n\n\t\tthis.appendItemsToWrapper(this.outputPlaceholder);\n\t}\n\n\tprivate destroyOutputPlaceholder() {\n\t\tif (this.outputPlaceholder) this.outputPlaceholder.remove();\n\n\t\tthis.outputPlaceholder = null;\n\t}\n\n\tprivate resultItems() {\n\t\tif (!this.items.length) return false;\n\n\t\tthis.setItemsVisibility();\n\t\tthis.setSelectedByValue([this.selected]);\n\t}\n\n\t// Public methods\n\tprivate setValueAndOpen(val: string) {\n\t\tthis.value = val;\n\n\t\tif (this.items.length) {\n\t\t\tthis.setItemsVisibility();\n\t\t}\n\t}\n\n\tpublic open(val?: string) {\n\t\tif (this.animationInProcess) return false;\n\n\t\tif (typeof val !== 'undefined') this.setValueAndOpen(val);\n\n\t\tif (this.preventVisibility) return false;\n\n\t\tthis.animationInProcess = true;\n\n\t\tthis.output.style.display = 'block';\n\t\tif (!this.preventAutoPosition) this.recalculateDirection();\n\n\t\tsetTimeout(() => {\n\t\t\tif (this?.input?.ariaExpanded) this.input.ariaExpanded = 'true';\n\t\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'true';\n\t\t\tthis.el.classList.add('active');\n\n\t\t\tthis.animationInProcess = false;\n\t\t});\n\n\t\tthis.isOpened = true;\n\t}\n\n\tprivate setValueAndClear(val: string | null) {\n\t\tif (val) this.setValue(val);\n\t\telse this.setValue(this.selected);\n\n\t\tif (this.outputPlaceholder) this.destroyOutputPlaceholder();\n\t}\n\n\tpublic close(val?: string | null) {\n\t\tif (this.animationInProcess) return false;\n\n\t\tif (this.preventVisibility) {\n\t\t\tthis.setValueAndClear(val);\n\n\t\t\tif (this.input.value !== '') this.el.classList.add('has-value');\n\t\t\telse this.el.classList.remove('has-value');\n\n\t\t\treturn false;\n\t\t}\n\n\t\tthis.animationInProcess = true;\n\n\t\tif (this?.input?.ariaExpanded) this.input.ariaExpanded = 'false';\n\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'false';\n\t\tthis.el.classList.remove('active');\n\t\tif (!this.preventAutoPosition) {\n\t\t\tthis.output.classList.remove('bottom-full', 'top-full');\n\t\t\tthis.output.style.marginTop = '';\n\t\t\tthis.output.style.marginBottom = '';\n\t\t}\n\n\t\tafterTransition(this.output, () => {\n\t\t\tthis.output.style.display = 'none';\n\n\t\t\tthis.setValueAndClear(val);\n\n\t\t\tthis.animationInProcess = false;\n\t\t});\n\n\t\tif (this.input.value !== '') this.el.classList.add('has-value');\n\t\telse this.el.classList.remove('has-value');\n\n\t\tthis.isOpened = false;\n\t}\n\n\tpublic recalculateDirection() {\n\t\tif (\n\t\t\tisEnoughSpace(\n\t\t\t\tthis.output,\n\t\t\t\tthis.input,\n\t\t\t\t'bottom',\n\t\t\t\tthis.gap,\n\t\t\t\tthis.viewport as HTMLElement,\n\t\t\t)\n\t\t) {\n\t\t\tthis.output.classList.remove('bottom-full');\n\t\t\tthis.output.style.marginBottom = '';\n\t\t\tthis.output.classList.add('top-full');\n\t\t\tthis.output.style.marginTop = `${this.gap}px`;\n\t\t} else {\n\t\t\tthis.output.classList.remove('top-full');\n\t\t\tthis.output.style.marginTop = '';\n\t\t\tthis.output.classList.add('bottom-full');\n\t\t\tthis.output.style.marginBottom = `${this.gap}px`;\n\t\t}\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsComboBoxCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsComboBoxCollection) window.$hsComboBoxCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-combo-box]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsComboBoxCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\tconst data = el.getAttribute('data-hs-combo-box');\n\t\t\t\t\tconst options: IComboBoxOptions = data ? JSON.parse(data) : {};\n\n\t\t\t\t\tnew HSComboBox(el, options);\n\t\t\t\t}\n\t\t\t});\n\n\t\tif (window.$hsComboBoxCollection) {\n\t\t\twindow.addEventListener('click', (evt) => {\n\t\t\t\tconst evtTarget = evt.target;\n\n\t\t\t\tHSComboBox.closeCurrentlyOpened(evtTarget as HTMLElement);\n\t\t\t});\n\n\t\t\tdocument.addEventListener('keydown', (evt) =>\n\t\t\t\tHSComboBox.accessibility(evt),\n\t\t\t);\n\t\t}\n\t}\n\n\tstatic close(target: HTMLElement | string) {\n\t\tconst elInCollection = window.$hsComboBoxCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection && elInCollection.element.isOpened) {\n\t\t\telInCollection.element.close();\n\t\t}\n\t}\n\n\tstatic closeCurrentlyOpened(evtTarget: HTMLElement | null = null) {\n\t\tif (!evtTarget.closest('[data-hs-combo-box].active')) {\n\t\t\tconst currentlyOpened =\n\t\t\t\twindow.$hsComboBoxCollection.filter((el) => el.element.isOpened) ||\n\t\t\t\tnull;\n\n\t\t\tif (currentlyOpened) {\n\t\t\t\tcurrentlyOpened.forEach((el) => {\n\t\t\t\t\tel.element.close();\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\t// Accessibility methods\n\tprivate static getPreparedItems(\n\t\tisReversed = false,\n\t\toutput: HTMLElement | null,\n\t): Element[] | null {\n\t\tif (!output) return null;\n\n\t\tconst preparedItems = isReversed\n\t\t\t? Array.from(\n\t\t\t\t\toutput.querySelectorAll(':scope > *:not(.--exclude-accessibility)'),\n\t\t\t\t)\n\t\t\t\t\t.filter((el) => (el as HTMLElement).style.display !== 'none')\n\t\t\t\t\t.reverse()\n\t\t\t: Array.from(\n\t\t\t\t\toutput.querySelectorAll(':scope > *:not(.--exclude-accessibility)'),\n\t\t\t\t).filter((el) => (el as HTMLElement).style.display !== 'none');\n\t\tconst items = preparedItems.filter(\n\t\t\t(el: any) => !el.classList.contains('disabled'),\n\t\t);\n\n\t\treturn items;\n\t}\n\n\tprivate static setHighlighted(\n\t\tprev: Element,\n\t\tcurrent: HTMLElement,\n\t\tinput: HTMLInputElement,\n\t): void {\n\t\tcurrent.focus();\n\n\t\tinput.value = current\n\t\t\t.querySelector('[data-hs-combo-box-value]')\n\t\t\t.getAttribute('data-hs-combo-box-search-text');\n\n\t\tif (prev) prev.classList.remove('hs-combo-box-output-item-highlighted');\n\t\tcurrent.classList.add('hs-combo-box-output-item-highlighted');\n\t}\n\n\tstatic accessibility(evt: KeyboardEvent) {\n\t\tconst target = window.$hsComboBoxCollection.find((el) =>\n\t\t\tel.element.preventVisibility ? el.element.isCurrent : el.element.isOpened,\n\t\t);\n\n\t\tif (\n\t\t\ttarget &&\n\t\t\tCOMBO_BOX_ACCESSIBILITY_KEY_SET.includes(evt.code) &&\n\t\t\t!evt.metaKey\n\t\t) {\n\t\t\tswitch (evt.code) {\n\t\t\t\tcase 'Escape':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tthis.onEscape();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ArrowUp':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onArrow();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ArrowDown':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onArrow(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Home':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onStartEnd();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'End':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onStartEnd(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Enter':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tthis.onEnter(evt);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic onEscape() {\n\t\tconst target = window.$hsComboBoxCollection.find(\n\t\t\t(el) => !el.element.preventVisibility && el.element.isOpened,\n\t\t);\n\n\t\tif (target) {\n\t\t\ttarget.element.close();\n\t\t\ttarget.element.input.blur();\n\t\t}\n\t}\n\n\tstatic onArrow(isArrowUp = true) {\n\t\tconst target = window.$hsComboBoxCollection.find((el) =>\n\t\t\tel.element.preventVisibility ? el.element.isCurrent : el.element.isOpened,\n\t\t);\n\n\t\tif (target) {\n\t\t\tconst output = target.element.itemsWrapper ?? target.element.output;\n\n\t\t\tif (!output) return false;\n\n\t\t\tconst items = HSComboBox.getPreparedItems(isArrowUp, output) as Element[];\n\t\t\tconst current = output.querySelector(\n\t\t\t\t'.hs-combo-box-output-item-highlighted',\n\t\t\t);\n\t\t\tlet currentItem = null;\n\t\t\tif (!current)\n\t\t\t\titems[0].classList.add('hs-combo-box-output-item-highlighted');\n\t\t\tlet currentInd = items.findIndex((el: any) => el === current);\n\t\t\tif (currentInd + 1 < items.length) currentInd++;\n\t\t\tcurrentItem = items[currentInd] as HTMLButtonElement;\n\n\t\t\tHSComboBox.setHighlighted(current, currentItem, target.element.input);\n\t\t}\n\t}\n\n\tstatic onStartEnd(isStart = true) {\n\t\tconst target = window.$hsComboBoxCollection.find((el) =>\n\t\t\tel.element.preventVisibility ? el.element.isCurrent : el.element.isOpened,\n\t\t);\n\n\t\tif (target) {\n\t\t\tconst output = target.element.itemsWrapper ?? target.element.output;\n\n\t\t\tif (!output) return false;\n\n\t\t\tconst items = HSComboBox.getPreparedItems(isStart, output) as Element[];\n\t\t\tconst current = output.querySelector(\n\t\t\t\t'.hs-combo-box-output-item-highlighted',\n\t\t\t);\n\n\t\t\tif (items.length)\n\t\t\t\tHSComboBox.setHighlighted(\n\t\t\t\t\tcurrent,\n\t\t\t\t\titems[0] as HTMLButtonElement,\n\t\t\t\t\ttarget.element.input,\n\t\t\t\t);\n\t\t}\n\t}\n\n\tstatic onEnter(evt: Event) {\n\t\tconst target = evt.target;\n\t\tconst opened = window.$hsComboBoxCollection.find(\n\t\t\t(el) =>\n\t\t\t\t!isParentOrElementHidden(el.element.el) &&\n\t\t\t\t(evt.target as HTMLElement).closest('[data-hs-combo-box]') ===\n\t\t\t\t\tel.element.el,\n\t\t);\n\n\t\tconst link: HTMLAnchorElement = opened.element.el.querySelector(\n\t\t\t'.hs-combo-box-output-item-highlighted a',\n\t\t);\n\n\t\tif ((target as HTMLElement).hasAttribute('data-hs-combo-box-input')) {\n\t\t\topened.element.close();\n\t\t\t(target as HTMLInputElement).blur();\n\t\t} else {\n\t\t\tif (!opened.element.preventSelection) {\n\t\t\t\topened.element.setSelectedByValue(\n\t\t\t\t\topened.element.valuesBySelector(evt.target as HTMLElement),\n\t\t\t\t);\n\t\t\t}\n\t\t\tif (opened.element.preventSelection && link) {\n\t\t\t\twindow.location.assign(link.getAttribute('href'));\n\t\t\t}\n\t\t\topened.element.close(\n\t\t\t\t!opened.element.preventSelection\n\t\t\t\t\t? (evt.target as HTMLElement)\n\t\t\t\t\t\t\t.querySelector('[data-hs-combo-box-value]')\n\t\t\t\t\t\t\t.getAttribute('data-hs-combo-box-search-text')\n\t\t\t\t\t: null,\n\t\t\t);\n\t\t}\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSComboBox: Function;\n\t\t$hsComboBoxCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSComboBox.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('ComboBox collection:', window.$hsComboBoxCollection);\n});\n\ndocument.addEventListener('scroll', () => {\n\tif (!window.$hsComboBoxCollection) return false;\n\n\tconst target = window.$hsComboBoxCollection.find((el) => el.element.isOpened);\n\n\tif (target && !target.element.preventAutoPosition)\n\t\ttarget.element.recalculateDirection();\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSComboBox = HSComboBox;\n}\n\nexport default HSComboBox;\n","/*\n * HSDropdown\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport {\n\tgetClassProperty,\n\tgetClassPropertyAlt,\n\tisIOS,\n\tisIpadOS,\n\tdispatch,\n\tafterTransition,\n\tmenuSearchHistory,\n} from '../../utils';\nimport { IMenuSearchHistory } from '../../utils/interfaces';\n\nimport { createPopper, PositioningStrategy } from '@popperjs/core';\n\nimport { IDropdown, IHTMLElementPopper } from '../dropdown/interfaces';\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nimport { POSITIONS, DROPDOWN_ACCESSIBILITY_KEY_SET } from '../../constants';\n\nclass HSDropdown\n\textends HSBasePlugin<{}, IHTMLElementPopper>\n\timplements IDropdown\n{\n\tprivate static history: IMenuSearchHistory;\n\tprivate readonly toggle: HTMLElement | null;\n\tprivate readonly closers: HTMLElement[] | null;\n\tpublic menu: HTMLElement | null;\n\tprivate eventMode: string;\n\tprivate closeMode: string;\n\tprivate animationInProcess: boolean;\n\n\tconstructor(el: IHTMLElementPopper, options?: {}, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tthis.toggle =\n\t\t\tthis.el.querySelector(':scope > .hs-dropdown-toggle') ||\n\t\t\tthis.el.querySelector(\n\t\t\t\t':scope > .hs-dropdown-toggle-wrapper > .hs-dropdown-toggle',\n\t\t\t) ||\n\t\t\t(this.el.children[0] as HTMLElement);\n\t\tthis.closers =\n\t\t\tArray.from(this.el.querySelectorAll(':scope .hs-dropdown-close')) || null;\n\t\tthis.menu = this.el.querySelector(':scope > .hs-dropdown-menu');\n\t\tthis.eventMode = getClassProperty(this.el, '--trigger', 'click');\n\t\tthis.closeMode = getClassProperty(this.el, '--auto-close', 'true');\n\t\tthis.animationInProcess = false;\n\n\t\tif (this.toggle && this.menu) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsDropdownCollection, this);\n\n\t\tif ((this.toggle as HTMLButtonElement).disabled) return false;\n\n\t\tif (this.toggle) this.buildToggle();\n\t\tif (this.menu) this.buildMenu();\n\t\tif (this.closers) this.buildClosers();\n\n\t\tif (!isIOS() && !isIpadOS()) {\n\t\t\tthis.el.addEventListener('mouseenter', () => this.onMouseEnterHandler());\n\t\t\tthis.el.addEventListener('mouseleave', () => this.onMouseLeaveHandler());\n\t\t}\n\t}\n\n\tresizeHandler() {\n\t\tthis.eventMode = getClassProperty(this.el, '--trigger', 'click');\n\t\tthis.closeMode = getClassProperty(this.el, '--auto-close', 'true');\n\t}\n\n\tprivate buildToggle() {\n\t\tif (this?.toggle?.ariaExpanded) {\n\t\t\tif (this.el.classList.contains('open')) this.toggle.ariaExpanded = 'true';\n\t\t\telse this.toggle.ariaExpanded = 'false';\n\t\t}\n\n\t\tthis.toggle.addEventListener('click', (evt) => this.onClickHandler(evt));\n\t}\n\n\tprivate buildMenu() {\n\t\tthis.menu.role = 'menu';\n\t}\n\n\tprivate buildClosers() {\n\t\tthis.closers.forEach((el: HTMLButtonElement) => {\n\t\t\tel.addEventListener('click', () => this.close());\n\t\t});\n\t}\n\n\tprivate onClickHandler(evt: Event) {\n\t\tif (\n\t\t\tthis.el.classList.contains('open') &&\n\t\t\t!this.menu.classList.contains('hidden')\n\t\t) {\n\t\t\tthis.close();\n\t\t} else {\n\t\t\tthis.open();\n\t\t}\n\t}\n\n\tprivate onMouseEnterHandler() {\n\t\tif (this.eventMode !== 'hover') return false;\n\n\t\tif (this.el._popper) this.forceClearState();\n\n\t\tif (\n\t\t\t!this.el.classList.contains('open') &&\n\t\t\tthis.menu.classList.contains('hidden')\n\t\t) {\n\t\t\tthis.open();\n\t\t}\n\t}\n\n\tprivate onMouseLeaveHandler() {\n\t\tif (this.eventMode !== 'hover') return false;\n\n\t\tif (\n\t\t\tthis.el.classList.contains('open') &&\n\t\t\t!this.menu.classList.contains('hidden')\n\t\t) {\n\t\t\tthis.close();\n\t\t}\n\t}\n\n\tprivate destroyPopper() {\n\t\tthis.menu.classList.remove('block');\n\t\tthis.menu.classList.add('hidden');\n\n\t\tthis.menu.style.inset = null;\n\t\tthis.menu.style.position = null;\n\n\t\tif (this.el && this.el._popper) this.el._popper.destroy();\n\n\t\tthis.animationInProcess = false;\n\t}\n\n\tprivate absoluteStrategyModifiers() {\n\t\treturn [\n\t\t\t{\n\t\t\t\tname: 'applyStyles',\n\t\t\t\tfn: (data: any) => {\n\t\t\t\t\tconst strategy = (\n\t\t\t\t\t\twindow.getComputedStyle(this.el).getPropertyValue('--strategy') ||\n\t\t\t\t\t\t'absolute'\n\t\t\t\t\t).replace(' ', '');\n\t\t\t\t\tconst adaptive = (\n\t\t\t\t\t\twindow.getComputedStyle(this.el).getPropertyValue('--adaptive') ||\n\t\t\t\t\t\t'adaptive'\n\t\t\t\t\t).replace(' ', '');\n\n\t\t\t\t\tdata.state.elements.popper.style.position = strategy;\n\t\t\t\t\tdata.state.elements.popper.style.transform =\n\t\t\t\t\t\tadaptive === 'adaptive' ? data.state.styles.popper.transform : null;\n\t\t\t\t\tdata.state.elements.popper.style.top = null;\n\t\t\t\t\tdata.state.elements.popper.style.bottom = null;\n\t\t\t\t\tdata.state.elements.popper.style.left = null;\n\t\t\t\t\tdata.state.elements.popper.style.right = null;\n\t\t\t\t\tdata.state.elements.popper.style.margin = 0;\n\t\t\t\t},\n\t\t\t},\n\t\t];\n\t}\n\n\t// Public methods\n\tpublic open() {\n\t\tif (this.el.classList.contains('open')) return false;\n\n\t\tif (this.animationInProcess) return false;\n\n\t\tthis.animationInProcess = true;\n\n\t\tconst placement = (\n\t\t\twindow.getComputedStyle(this.el).getPropertyValue('--placement') || ''\n\t\t).replace(' ', '');\n\t\tconst flip = (\n\t\t\twindow.getComputedStyle(this.el).getPropertyValue('--flip') || 'true'\n\t\t).replace(' ', '');\n\t\tconst strategy = (\n\t\t\twindow.getComputedStyle(this.el).getPropertyValue('--strategy') || 'fixed'\n\t\t).replace(' ', '') as PositioningStrategy;\n\t\tconst offset = parseInt(\n\t\t\t(\n\t\t\t\twindow.getComputedStyle(this.el).getPropertyValue('--offset') || '10'\n\t\t\t).replace(' ', ''),\n\t\t);\n\t\tconst gpuAcceleration = (\n\t\t\twindow.getComputedStyle(this.el).getPropertyValue('--gpu-acceleration') ||\n\t\t\t'true'\n\t\t).replace(' ', '');\n\n\t\tif (strategy !== ('static' as PositioningStrategy)) {\n\t\t\tthis.el._popper = createPopper(this.el, this.menu, {\n\t\t\t\tplacement: POSITIONS[placement] || 'bottom-start',\n\t\t\t\tstrategy: strategy,\n\t\t\t\tmodifiers: [\n\t\t\t\t\t...(strategy !== 'fixed' ? this.absoluteStrategyModifiers() : []),\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'flip',\n\t\t\t\t\t\tenabled: flip === 'true',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'offset',\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\toffset: [0, offset],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'computeStyles',\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tadaptive: strategy !== 'fixed' ? false : true,\n\t\t\t\t\t\t\tgpuAcceleration: gpuAcceleration === 'true' ? true : false,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t});\n\t\t}\n\n\t\tthis.menu.style.margin = null;\n\n\t\tthis.menu.classList.remove('hidden');\n\t\tthis.menu.classList.add('block');\n\n\t\tsetTimeout(() => {\n\t\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'true';\n\t\t\tthis.el.classList.add('open');\n\n\t\t\tthis.animationInProcess = false;\n\t\t});\n\n\t\tthis.fireEvent('open', this.el);\n\t\tdispatch('open.hs.dropdown', this.el, this.el);\n\t}\n\n\tpublic close(isAnimated = true) {\n\t\tif (this.animationInProcess || !this.el.classList.contains('open'))\n\t\t\treturn false;\n\n\t\tconst clearAfterClose = () => {\n\t\t\tthis.menu.style.margin = null;\n\n\t\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'false';\n\t\t\tthis.el.classList.remove('open');\n\n\t\t\tthis.fireEvent('close', this.el);\n\t\t\tdispatch('close.hs.dropdown', this.el, this.el);\n\t\t};\n\n\t\tthis.animationInProcess = true;\n\n\t\tif (isAnimated) {\n\t\t\tconst el: HTMLElement =\n\t\t\t\tthis.el.querySelector('[data-hs-dropdown-transition]') || this.menu;\n\n\t\t\tafterTransition(el, () => this.destroyPopper());\n\t\t} else this.destroyPopper();\n\n\t\tclearAfterClose();\n\t}\n\n\tpublic forceClearState() {\n\t\tthis.destroyPopper();\n\t\tthis.menu.style.margin = null;\n\t\tthis.el.classList.remove('open');\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsDropdownCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsDropdownCollection) window.$hsDropdownCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('.hs-dropdown:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: IHTMLElementPopper) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsDropdownCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSDropdown(el);\n\t\t\t});\n\n\t\tif (window.$hsDropdownCollection) {\n\t\t\tdocument.addEventListener('keydown', (evt) =>\n\t\t\t\tHSDropdown.accessibility(evt),\n\t\t\t);\n\n\t\t\twindow.addEventListener('click', (evt) => {\n\t\t\t\tconst evtTarget = evt.target;\n\n\t\t\t\tHSDropdown.closeCurrentlyOpened(evtTarget as HTMLElement);\n\t\t\t});\n\n\t\t\tlet prevWidth = window.innerWidth;\n\t\t\twindow.addEventListener('resize', () => {\n\t\t\t\tif (window.innerWidth !== prevWidth) {\n\t\t\t\t\tprevWidth = innerWidth;\n\t\t\t\t\tHSDropdown.closeCurrentlyOpened(null, false);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tstatic open(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsDropdownCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (\n\t\t\telInCollection &&\n\t\t\telInCollection.element.menu.classList.contains('hidden')\n\t\t)\n\t\t\telInCollection.element.open();\n\t}\n\n\tstatic close(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsDropdownCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (\n\t\t\telInCollection &&\n\t\t\t!elInCollection.element.menu.classList.contains('hidden')\n\t\t) {\n\t\t\telInCollection.element.close();\n\t\t}\n\t}\n\n\t// Accessibility methods\n\tstatic accessibility(evt: KeyboardEvent) {\n\t\tthis.history = menuSearchHistory;\n\n\t\tconst target: ICollectionItem | null =\n\t\t\twindow.$hsDropdownCollection.find((el) =>\n\t\t\t\tel.element.el.classList.contains('open'),\n\t\t\t);\n\n\t\tif (\n\t\t\ttarget &&\n\t\t\t(DROPDOWN_ACCESSIBILITY_KEY_SET.includes(evt.code) ||\n\t\t\t\t(evt.code.length === 4 &&\n\t\t\t\t\tevt.code[evt.code.length - 1].match(/^[A-Z]*$/))) &&\n\t\t\t!evt.metaKey &&\n\t\t\t!target.element.menu.querySelector('input:focus') &&\n\t\t\t!target.element.menu.querySelector('textarea:focus')\n\t\t) {\n\t\t\tswitch (evt.code) {\n\t\t\t\tcase 'Escape':\n\t\t\t\t\tif (!target.element.menu.querySelector('.hs-select.active')) {\n\t\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\t\tthis.onEscape(evt);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Enter':\n\t\t\t\t\tif (\n\t\t\t\t\t\t!target.element.menu.querySelector('.hs-select button:focus') &&\n\t\t\t\t\t\t!target.element.menu.querySelector('.hs-collapse-toggle:focus')\n\t\t\t\t\t) {\n\t\t\t\t\t\tthis.onEnter(evt);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ArrowUp':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onArrow();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ArrowDown':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onArrow(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Home':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onStartEnd();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'End':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onStartEnd(false);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tthis.onFirstLetter(evt.key);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic onEscape(evt: KeyboardEvent) {\n\t\tconst dropdown = (evt.target as HTMLElement).closest('.hs-dropdown.open');\n\n\t\tif (window.$hsDropdownCollection.find((el) => el.element.el === dropdown)) {\n\t\t\tconst target = window.$hsDropdownCollection.find(\n\t\t\t\t(el) => el.element.el === dropdown,\n\t\t\t);\n\n\t\t\tif (target) {\n\t\t\t\ttarget.element.close();\n\t\t\t\ttarget.element.toggle.focus();\n\t\t\t}\n\t\t} else {\n\t\t\tthis.closeCurrentlyOpened();\n\t\t}\n\t}\n\n\tstatic onEnter(evt: KeyboardEvent) {\n\t\tconst dropdown = (evt.target as HTMLElement).parentElement;\n\n\t\tif (window.$hsDropdownCollection.find((el) => el.element.el === dropdown)) {\n\t\t\tevt.preventDefault();\n\n\t\t\tconst target = window.$hsDropdownCollection.find(\n\t\t\t\t(el) => el.element.el === dropdown,\n\t\t\t);\n\n\t\t\tif (target) target.element.open();\n\t\t}\n\t}\n\n\tstatic onArrow(isArrowUp = true) {\n\t\tconst target = window.$hsDropdownCollection.find((el) =>\n\t\t\tel.element.el.classList.contains('open'),\n\t\t);\n\n\t\tif (target) {\n\t\t\tconst menu = target.element.menu;\n\n\t\t\tif (!menu) return false;\n\n\t\t\tconst preparedLinks = isArrowUp\n\t\t\t\t? Array.from(\n\t\t\t\t\t\tmenu.querySelectorAll(\n\t\t\t\t\t\t\t'a:not([hidden]), .hs-dropdown > button:not([hidden])',\n\t\t\t\t\t\t),\n\t\t\t\t\t).reverse()\n\t\t\t\t: Array.from(\n\t\t\t\t\t\tmenu.querySelectorAll(\n\t\t\t\t\t\t\t'a:not([hidden]), .hs-dropdown > button:not([hidden])',\n\t\t\t\t\t\t),\n\t\t\t\t\t);\n\n\t\t\tconst links = preparedLinks.filter(\n\t\t\t\t(el: any) => !el.classList.contains('disabled'),\n\t\t\t);\n\t\t\tconst current = menu.querySelector('a:focus, button:focus');\n\t\t\tlet currentInd = links.findIndex((el: any) => el === current);\n\n\t\t\tif (currentInd + 1 < links.length) {\n\t\t\t\tcurrentInd++;\n\t\t\t}\n\n\t\t\t(links[currentInd] as HTMLButtonElement | HTMLAnchorElement).focus();\n\t\t}\n\t}\n\n\tstatic onStartEnd(isStart = true) {\n\t\tconst target = window.$hsDropdownCollection.find((el) =>\n\t\t\tel.element.el.classList.contains('open'),\n\t\t);\n\n\t\tif (target) {\n\t\t\tconst menu = target.element.menu;\n\n\t\t\tif (!menu) return false;\n\n\t\t\tconst preparedLinks = isStart\n\t\t\t\t? Array.from(menu.querySelectorAll('a'))\n\t\t\t\t: Array.from(menu.querySelectorAll('a')).reverse();\n\t\t\tconst links = preparedLinks.filter(\n\t\t\t\t(el: any) => !el.classList.contains('disabled'),\n\t\t\t);\n\n\t\t\tif (links.length) {\n\t\t\t\tlinks[0].focus();\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic onFirstLetter(code: string) {\n\t\tconst target = window.$hsDropdownCollection.find((el) =>\n\t\t\tel.element.el.classList.contains('open'),\n\t\t);\n\n\t\tif (target) {\n\t\t\tconst menu = target.element.menu;\n\n\t\t\tif (!menu) return false;\n\n\t\t\tconst links = Array.from(menu.querySelectorAll('a'));\n\t\t\tconst getCurrentInd = () =>\n\t\t\t\tlinks.findIndex(\n\t\t\t\t\t(el, i) =>\n\t\t\t\t\t\tel.innerText.toLowerCase().charAt(0) === code.toLowerCase() &&\n\t\t\t\t\t\tthis.history.existsInHistory(i),\n\t\t\t\t);\n\t\t\tlet currentInd = getCurrentInd();\n\n\t\t\tif (currentInd === -1) {\n\t\t\t\tthis.history.clearHistory();\n\t\t\t\tcurrentInd = getCurrentInd();\n\t\t\t}\n\n\t\t\tif (currentInd !== -1) {\n\t\t\t\tlinks[currentInd].focus();\n\t\t\t\tthis.history.addHistory(currentInd);\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic closeCurrentlyOpened(\n\t\tevtTarget: HTMLElement | null = null,\n\t\tisAnimated = true,\n\t) {\n\t\tconst parent =\n\t\t\tevtTarget &&\n\t\t\tevtTarget.closest('.hs-dropdown') &&\n\t\t\tevtTarget.closest('.hs-dropdown').parentElement.closest('.hs-dropdown')\n\t\t\t\t? evtTarget\n\t\t\t\t\t\t.closest('.hs-dropdown')\n\t\t\t\t\t\t.parentElement.closest('.hs-dropdown')\n\t\t\t\t: null;\n\t\tlet currentlyOpened = parent\n\t\t\t? window.$hsDropdownCollection.filter(\n\t\t\t\t\t(el) =>\n\t\t\t\t\t\tel.element.el.classList.contains('open') &&\n\t\t\t\t\t\tel.element.menu\n\t\t\t\t\t\t\t.closest('.hs-dropdown')\n\t\t\t\t\t\t\t.parentElement.closest('.hs-dropdown') === parent,\n\t\t\t\t)\n\t\t\t: window.$hsDropdownCollection.filter((el) =>\n\t\t\t\t\tel.element.el.classList.contains('open'),\n\t\t\t\t);\n\n\t\tif (\n\t\t\tevtTarget &&\n\t\t\tevtTarget.closest('.hs-dropdown') &&\n\t\t\tgetClassPropertyAlt(evtTarget.closest('.hs-dropdown'), '--auto-close') ===\n\t\t\t\t'inside'\n\t\t) {\n\t\t\tcurrentlyOpened = currentlyOpened.filter(\n\t\t\t\t(el) => el.element.el !== evtTarget.closest('.hs-dropdown'),\n\t\t\t);\n\t\t}\n\n\t\tif (currentlyOpened) {\n\t\t\tcurrentlyOpened.forEach((el) => {\n\t\t\t\tif (\n\t\t\t\t\tel.element.closeMode === 'false' ||\n\t\t\t\t\tel.element.closeMode === 'outside'\n\t\t\t\t)\n\t\t\t\t\treturn false;\n\n\t\t\t\tel.element.close(isAnimated);\n\t\t\t});\n\t\t}\n\t}\n\n\t// Backward compatibility\n\tstatic on(evt: string, target: HTMLElement, cb: Function) {\n\t\tconst elInCollection = window.$hsDropdownCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection) elInCollection.element.events[evt] = cb;\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSDropdown: Function;\n\t\t$hsDropdownCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSDropdown.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Dropdown collection:', window.$hsDropdownCollection);\n});\n\nwindow.addEventListener('resize', () => {\n\tif (!window.$hsDropdownCollection) window.$hsDropdownCollection = [];\n\n\twindow.$hsDropdownCollection.forEach((el) => el.element.resizeHandler());\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSDropdown = HSDropdown;\n}\n\nexport default HSDropdown;\n","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport getComputedStyle from \"./dom-utils/getComputedStyle.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport validateModifiers from \"./utils/validateModifiers.js\";\nimport uniqueBy from \"./utils/uniqueBy.js\";\nimport getBasePlacement from \"./utils/getBasePlacement.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nimport { auto } from \"./enums.js\";\nvar INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nvar INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n }); // Validate the provided modifiers so that the consumer will get warned\n // if one of the modifiers is invalid for any reason\n\n if (process.env.NODE_ENV !== \"production\") {\n var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {\n var name = _ref.name;\n return name;\n });\n validateModifiers(modifiers);\n\n if (getBasePlacement(state.options.placement) === auto) {\n var flipModifier = state.orderedModifiers.find(function (_ref2) {\n var name = _ref2.name;\n return name === 'flip';\n });\n\n if (!flipModifier) {\n console.error(['Popper: \"auto\" placements require the \"flip\" modifier be', 'present and enabled to work.'].join(' '));\n }\n }\n\n var _getComputedStyle = getComputedStyle(popper),\n marginTop = _getComputedStyle.marginTop,\n marginRight = _getComputedStyle.marginRight,\n marginBottom = _getComputedStyle.marginBottom,\n marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can\n // cause bugs with positioning, so we'll warn the consumer\n\n\n if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {\n return parseFloat(margin);\n })) {\n console.warn(['Popper: CSS \"margin\" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));\n }\n }\n\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n var __debug_loops__ = 0;\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (process.env.NODE_ENV !== \"production\") {\n __debug_loops__ += 1;\n\n if (__debug_loops__ > 100) {\n console.error(INFINITE_LOOP_ERROR);\n break;\n }\n }\n\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref3) {\n var name = _ref3.name,\n _ref3$options = _ref3.options,\n options = _ref3$options === void 0 ? {} : _ref3$options,\n effect = _ref3.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n\n if (process.env.NODE_ENV !== \"production\") {\n var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';\n\n if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {\n return transitionProperty.indexOf(property) >= 0;\n })) {\n console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".', '\\n\\n', 'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\\n\\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));\n }\n }\n\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, \"auto\" cannot be used to allow \"bottom-start\".', 'Use \"auto-start\" instead.'].join(' '));\n }\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!isHTMLElement(arrowElement)) {\n console.error(['Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper', 'element.'].join(' '));\n }\n\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","/*\n * HSInputNumber\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { dispatch } from '../../utils';\n\nimport {\n\tIInputNumberOptions,\n\tIInputNumber,\n} from '../input-number/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\n\nclass HSInputNumber\n\textends HSBasePlugin\n\timplements IInputNumber\n{\n\tprivate readonly input: HTMLInputElement | null;\n\tprivate readonly increment: HTMLElement | null;\n\tprivate readonly decrement: HTMLElement | null;\n\tprivate inputValue: number | null;\n\tprivate readonly minInputValue: number | null;\n\tprivate readonly maxInputValue: number | null;\n\tprivate readonly step: number;\n\n\tconstructor(el: HTMLElement, options?: IInputNumberOptions) {\n\t\tsuper(el, options);\n\n\t\tthis.input = this.el.querySelector('[data-hs-input-number-input]') || null;\n\t\tthis.increment =\n\t\t\tthis.el.querySelector('[data-hs-input-number-increment]') || null;\n\t\tthis.decrement =\n\t\t\tthis.el.querySelector('[data-hs-input-number-decrement]') || null;\n\n\t\tif (this.input) this.checkIsNumberAndConvert();\n\n\t\tconst data = this.el.dataset.hsInputNumber;\n\t\tconst dataOptions: IInputNumberOptions = data\n\t\t\t? JSON.parse(data)\n\t\t\t: { step: 1 };\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.minInputValue = 'min' in concatOptions ? concatOptions.min : 0;\n\t\tthis.maxInputValue = 'max' in concatOptions ? concatOptions.max : null;\n\t\tthis.step =\n\t\t\t'step' in concatOptions && concatOptions.step > 0\n\t\t\t\t? concatOptions.step\n\t\t\t\t: 1;\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsInputNumberCollection, this);\n\n\t\tif (this.input && this.increment) this.build();\n\t}\n\n\tprivate checkIsNumberAndConvert() {\n\t\tconst value = this.input.value.trim();\n\t\tconst cleanedValue = this.cleanAndExtractNumber(value);\n\n\t\tif (cleanedValue !== null) {\n\t\t\tthis.inputValue = cleanedValue;\n\t\t\tthis.input.value = cleanedValue.toString();\n\t\t} else {\n\t\t\tthis.inputValue = 0;\n\t\t\tthis.input.value = '0';\n\t\t}\n\t}\n\n\tprivate cleanAndExtractNumber(value: string): number | null {\n\t\tconst cleanedArray: string[] = [];\n\t\tlet decimalFound = false;\n\n\t\tvalue.split('').forEach((char) => {\n\t\t\tif (char >= '0' && char <= '9') cleanedArray.push(char);\n\t\t\telse if (char === '.' && !decimalFound) {\n\t\t\t\tcleanedArray.push(char);\n\t\t\t\tdecimalFound = true;\n\t\t\t}\n\t\t});\n\n\t\tconst cleanedValue = cleanedArray.join('');\n\t\tconst number = parseFloat(cleanedValue);\n\n\t\treturn isNaN(number) ? null : number;\n\t}\n\n\tprivate build() {\n\t\tif (this.input) this.buildInput();\n\t\tif (this.increment) this.buildIncrement();\n\t\tif (this.decrement) this.buildDecrement();\n\n\t\tif (this.inputValue <= 0 && this.minInputValue === 0) {\n\t\t\tthis.inputValue = 0;\n\t\t\tthis.input.value = '0';\n\t\t}\n\n\t\tif (this.inputValue <= 0 || this.minInputValue < 0) this.changeValue();\n\n\t\tif (this.input.hasAttribute('disabled')) this.disableButtons();\n\t}\n\n\tprivate buildInput() {\n\t\tthis.input.addEventListener('input', () => this.changeValue());\n\t}\n\n\tprivate buildIncrement() {\n\t\tthis.increment.addEventListener('click', () => {\n\t\t\tthis.changeValue('increment');\n\t\t});\n\t}\n\n\tprivate buildDecrement() {\n\t\tthis.decrement.addEventListener('click', () => {\n\t\t\tthis.changeValue('decrement');\n\t\t});\n\t}\n\n\tprivate changeValue(event = 'none') {\n\t\tconst payload = { inputValue: this.inputValue };\n\t\tconst minInputValue = this.minInputValue ?? Number.MIN_SAFE_INTEGER;\n\t\tconst maxInputValue = this.maxInputValue ?? Number.MAX_SAFE_INTEGER;\n\n\t\tthis.inputValue = isNaN(this.inputValue) ? 0 : this.inputValue;\n\n\t\tswitch (event) {\n\t\t\tcase 'increment':\n\t\t\t\tconst incrementedResult = this.inputValue + this.step;\n\t\t\t\tthis.inputValue =\n\t\t\t\t\tincrementedResult >= minInputValue &&\n\t\t\t\t\tincrementedResult <= maxInputValue\n\t\t\t\t\t\t? incrementedResult\n\t\t\t\t\t\t: maxInputValue;\n\t\t\t\tthis.input.value = this.inputValue.toString();\n\t\t\t\tbreak;\n\t\t\tcase 'decrement':\n\t\t\t\tconst decrementedResult = this.inputValue - this.step;\n\t\t\t\tthis.inputValue =\n\t\t\t\t\tdecrementedResult >= minInputValue &&\n\t\t\t\t\tdecrementedResult <= maxInputValue\n\t\t\t\t\t\t? decrementedResult\n\t\t\t\t\t\t: minInputValue;\n\t\t\t\tthis.input.value = this.inputValue.toString();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tconst defaultResult = isNaN(parseInt(this.input.value))\n\t\t\t\t\t? 0\n\t\t\t\t\t: parseInt(this.input.value);\n\t\t\t\tthis.inputValue =\n\t\t\t\t\tdefaultResult >= maxInputValue\n\t\t\t\t\t\t? maxInputValue\n\t\t\t\t\t\t: defaultResult <= minInputValue\n\t\t\t\t\t\t\t? minInputValue\n\t\t\t\t\t\t\t: defaultResult;\n\t\t\t\tif (this.inputValue <= minInputValue)\n\t\t\t\t\tthis.input.value = this.inputValue.toString();\n\t\t\t\tbreak;\n\t\t}\n\n\t\tpayload.inputValue = this.inputValue;\n\n\t\tif (this.inputValue === minInputValue) {\n\t\t\tthis.el.classList.add('disabled');\n\t\t\tif (this.decrement) this.disableButtons('decrement');\n\t\t} else {\n\t\t\tthis.el.classList.remove('disabled');\n\t\t\tif (this.decrement) this.enableButtons('decrement');\n\t\t}\n\t\tif (this.inputValue === maxInputValue) {\n\t\t\tthis.el.classList.add('disabled');\n\t\t\tif (this.increment) this.disableButtons('increment');\n\t\t} else {\n\t\t\tthis.el.classList.remove('disabled');\n\t\t\tif (this.increment) this.enableButtons('increment');\n\t\t}\n\n\t\tthis.fireEvent('change', payload);\n\t\tdispatch('change.hs.inputNumber', this.el, payload);\n\t}\n\n\tprivate disableButtons(mode = 'all') {\n\t\tif (mode === 'all') {\n\t\t\tif (\n\t\t\t\tthis.increment.tagName === 'BUTTON' ||\n\t\t\t\tthis.increment.tagName === 'INPUT'\n\t\t\t)\n\t\t\t\tthis.increment.setAttribute('disabled', 'disabled');\n\t\t\tif (\n\t\t\t\tthis.decrement.tagName === 'BUTTON' ||\n\t\t\t\tthis.decrement.tagName === 'INPUT'\n\t\t\t)\n\t\t\t\tthis.decrement.setAttribute('disabled', 'disabled');\n\t\t} else if (mode === 'increment') {\n\t\t\tif (\n\t\t\t\tthis.increment.tagName === 'BUTTON' ||\n\t\t\t\tthis.increment.tagName === 'INPUT'\n\t\t\t)\n\t\t\t\tthis.increment.setAttribute('disabled', 'disabled');\n\t\t} else if (mode === 'decrement') {\n\t\t\tif (\n\t\t\t\tthis.decrement.tagName === 'BUTTON' ||\n\t\t\t\tthis.decrement.tagName === 'INPUT'\n\t\t\t)\n\t\t\t\tthis.decrement.setAttribute('disabled', 'disabled');\n\t\t}\n\t}\n\n\tprivate enableButtons(mode = 'all') {\n\t\tif (mode === 'all') {\n\t\t\tif (\n\t\t\t\tthis.increment.tagName === 'BUTTON' ||\n\t\t\t\tthis.increment.tagName === 'INPUT'\n\t\t\t)\n\t\t\t\tthis.increment.removeAttribute('disabled');\n\t\t\tif (\n\t\t\t\tthis.decrement.tagName === 'BUTTON' ||\n\t\t\t\tthis.decrement.tagName === 'INPUT'\n\t\t\t)\n\t\t\t\tthis.decrement.removeAttribute('disabled');\n\t\t} else if (mode === 'increment') {\n\t\t\tif (\n\t\t\t\tthis.increment.tagName === 'BUTTON' ||\n\t\t\t\tthis.increment.tagName === 'INPUT'\n\t\t\t)\n\t\t\t\tthis.increment.removeAttribute('disabled');\n\t\t} else if (mode === 'decrement') {\n\t\t\tif (\n\t\t\t\tthis.decrement.tagName === 'BUTTON' ||\n\t\t\t\tthis.decrement.tagName === 'INPUT'\n\t\t\t)\n\t\t\t\tthis.decrement.removeAttribute('disabled');\n\t\t}\n\t}\n\n\t// Global method\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsInputNumberCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsInputNumberCollection) window.$hsInputNumberCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-input-number]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsInputNumberCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSInputNumber(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSInputNumber: Function;\n\t\t$hsInputNumberCollection: {\n\t\t\tid: number;\n\t\t\telement: HSInputNumber;\n\t\t}[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSInputNumber.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Input number collection:', window.$hsInputNumberCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSInputNumber = HSInputNumber;\n}\n\nexport default HSInputNumber;\n","/*\n * HSOverlay\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport {\n\tstringToBoolean,\n\tgetClassProperty,\n\tisParentOrElementHidden,\n\tisDirectChild,\n\tdispatch,\n\tafterTransition,\n} from '../../utils';\n\nimport { IOverlayOptions, IOverlay } from '../overlay/interfaces';\nimport { ICollectionItem } from '../../interfaces';\nimport { BREAKPOINTS } from '../../constants';\n\nimport HSBasePlugin from '../base-plugin';\n\nclass HSOverlay extends HSBasePlugin<{}> implements IOverlay {\n\tprivate readonly hiddenClass: string | null;\n\tprivate readonly emulateScrollbarSpace: boolean;\n\tprivate readonly isClosePrev: boolean;\n\tprivate readonly backdropClasses: string | null;\n\tprivate readonly backdropExtraClasses: string | null;\n\tprivate readonly animationTarget: HTMLElement | null;\n\n\tprivate openNextOverlay: boolean;\n\tprivate autoHide: ReturnType | null;\n\tprivate readonly overlayId: string | null;\n\n\tpublic overlay: HTMLElement | null;\n\tpublic initContainer: HTMLElement | null;\n\tpublic isCloseWhenClickInside: boolean;\n\tpublic isTabAccessibilityLimited: boolean;\n\tpublic isLayoutAffect: boolean;\n\tpublic hasAutofocus: boolean;\n\tpublic hasAbilityToCloseOnBackdropClick: boolean;\n\tpublic openedBreakpoint: number | null;\n\tpublic autoClose: number | null;\n\tpublic moveOverlayToBody: number | null;\n\n\tconstructor(el: HTMLElement, options?: IOverlayOptions, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tconst data = el.getAttribute('data-hs-overlay-options');\n\t\tconst dataOptions: IOverlayOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.hiddenClass = concatOptions?.hiddenClass || 'hidden';\n\t\tthis.emulateScrollbarSpace = concatOptions?.emulateScrollbarSpace || false;\n\t\tthis.isClosePrev = concatOptions?.isClosePrev ?? true;\n\t\tthis.backdropClasses =\n\t\t\tconcatOptions?.backdropClasses ??\n\t\t\t'hs-overlay-backdrop transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 dark:bg-neutral-900';\n\t\tthis.backdropExtraClasses = concatOptions?.backdropExtraClasses ?? '';\n\t\tthis.moveOverlayToBody = concatOptions?.moveOverlayToBody || null;\n\n\t\tthis.openNextOverlay = false;\n\t\tthis.autoHide = null;\n\t\tthis.overlayId = this.el.getAttribute('data-hs-overlay');\n\t\tthis.overlay = document.querySelector(this.overlayId);\n\t\tthis.initContainer = this.overlay?.parentElement || null;\n\t\tif (this.overlay) {\n\t\t\tthis.isCloseWhenClickInside = stringToBoolean(\n\t\t\t\tgetClassProperty(this.overlay, '--close-when-click-inside', 'false') ||\n\t\t\t\t\t'false',\n\t\t\t);\n\t\t\tthis.isTabAccessibilityLimited = stringToBoolean(\n\t\t\t\tgetClassProperty(this.overlay, '--tab-accessibility-limited', 'true') ||\n\t\t\t\t\t'true',\n\t\t\t);\n\t\t\tthis.isLayoutAffect = stringToBoolean(\n\t\t\t\tgetClassProperty(this.overlay, '--is-layout-affect', 'false') ||\n\t\t\t\t\t'false',\n\t\t\t);\n\t\t\tthis.hasAutofocus = stringToBoolean(\n\t\t\t\tgetClassProperty(this.overlay, '--has-autofocus', 'true') || 'true',\n\t\t\t);\n\t\t\tthis.hasAbilityToCloseOnBackdropClick = stringToBoolean(\n\t\t\t\tthis.overlay.getAttribute('data-hs-overlay-keyboard') || 'true',\n\t\t\t);\n\n\t\t\tconst autoCloseBreakpoint = getClassProperty(\n\t\t\t\tthis.overlay,\n\t\t\t\t'--auto-close',\n\t\t\t);\n\t\t\tthis.autoClose =\n\t\t\t\t!isNaN(+autoCloseBreakpoint) && isFinite(+autoCloseBreakpoint)\n\t\t\t\t\t? +autoCloseBreakpoint\n\t\t\t\t\t: BREAKPOINTS[autoCloseBreakpoint] || null;\n\n\t\t\tconst openedBreakpoint = getClassProperty(this.overlay, '--opened');\n\t\t\tthis.openedBreakpoint =\n\t\t\t\t(!isNaN(+openedBreakpoint) && isFinite(+openedBreakpoint)\n\t\t\t\t\t? +openedBreakpoint\n\t\t\t\t\t: BREAKPOINTS[openedBreakpoint]) || null;\n\t\t}\n\n\t\tthis.animationTarget =\n\t\t\tthis?.overlay?.querySelector('.hs-overlay-animation-target') ||\n\t\t\tthis.overlay;\n\n\t\tif (this.overlay) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsOverlayCollection, this);\n\n\t\tif (this.isLayoutAffect && this.openedBreakpoint) {\n\t\t\tconst instance = HSOverlay.getInstance(this.el, true);\n\n\t\t\tHSOverlay.setOpened(\n\t\t\t\tthis.openedBreakpoint,\n\t\t\t\tinstance as ICollectionItem,\n\t\t\t);\n\t\t}\n\n\t\tif (this?.el?.ariaExpanded) {\n\t\t\tif (this.overlay.classList.contains('opened'))\n\t\t\t\tthis.el.ariaExpanded = 'true';\n\t\t\telse this.el.ariaExpanded = 'false';\n\t\t}\n\n\t\tthis.el.addEventListener('click', () => {\n\t\t\tif (this.overlay.classList.contains('opened')) this.close();\n\t\t\telse this.open();\n\t\t});\n\n\t\tthis.overlay.addEventListener('click', (evt) => {\n\t\t\tif (\n\t\t\t\t(evt.target as HTMLElement).id &&\n\t\t\t\t`#${(evt.target as HTMLElement).id}` === this.overlayId &&\n\t\t\t\tthis.isCloseWhenClickInside &&\n\t\t\t\tthis.hasAbilityToCloseOnBackdropClick\n\t\t\t) {\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate hideAuto() {\n\t\tconst time = parseInt(getClassProperty(this.overlay, '--auto-hide', '0'));\n\n\t\tif (time) {\n\t\t\tthis.autoHide = setTimeout(() => {\n\t\t\t\tthis.close();\n\t\t\t}, time);\n\t\t}\n\t}\n\n\tprivate checkTimer() {\n\t\tif (this.autoHide) {\n\t\t\tclearTimeout(this.autoHide);\n\n\t\t\tthis.autoHide = null;\n\t\t}\n\t}\n\n\tprivate buildBackdrop() {\n\t\tconst overlayClasses = this.overlay.classList.value.split(' ');\n\t\tconst overlayZIndex = parseInt(\n\t\t\twindow.getComputedStyle(this.overlay).getPropertyValue('z-index'),\n\t\t);\n\t\tconst backdropId =\n\t\t\tthis.overlay.getAttribute('data-hs-overlay-backdrop-container') || false;\n\t\tlet backdrop: HTMLElement | Node = document.createElement('div');\n\t\tlet backdropClasses = `${this.backdropClasses} ${this.backdropExtraClasses}`;\n\t\tconst closeOnBackdrop =\n\t\t\tgetClassProperty(this.overlay, '--overlay-backdrop', 'true') !== 'static';\n\t\tconst disableBackdrop =\n\t\t\tgetClassProperty(this.overlay, '--overlay-backdrop', 'true') === 'false';\n\n\t\t(backdrop as HTMLElement).id = `${this.overlay.id}-backdrop`;\n\t\tif ('style' in backdrop) backdrop.style.zIndex = `${overlayZIndex - 1}`;\n\n\t\tfor (const value of overlayClasses) {\n\t\t\tif (\n\t\t\t\tvalue.startsWith('hs-overlay-backdrop-open:') ||\n\t\t\t\tvalue.includes(':hs-overlay-backdrop-open:')\n\t\t\t) {\n\t\t\t\tbackdropClasses += ` ${value}`;\n\t\t\t}\n\t\t}\n\n\t\tif (disableBackdrop) return;\n\n\t\tif (backdropId) {\n\t\t\tbackdrop = document.querySelector(backdropId).cloneNode(true);\n\t\t\t(backdrop as HTMLElement).classList.remove('hidden');\n\n\t\t\tbackdropClasses = `${(backdrop as HTMLElement).classList.toString()}`;\n\t\t\t(backdrop as HTMLElement).classList.value = '';\n\t\t}\n\n\t\tif (closeOnBackdrop) {\n\t\t\t(backdrop as HTMLElement).addEventListener(\n\t\t\t\t'click',\n\t\t\t\t() => this.close(),\n\t\t\t\ttrue,\n\t\t\t);\n\t\t}\n\n\t\t(backdrop as HTMLElement).setAttribute(\n\t\t\t'data-hs-overlay-backdrop-template',\n\t\t\t'',\n\t\t);\n\n\t\tdocument.body.appendChild(backdrop);\n\n\t\tsetTimeout(() => {\n\t\t\t(backdrop as HTMLElement).classList.value = backdropClasses;\n\t\t});\n\t}\n\n\tprivate destroyBackdrop() {\n\t\tconst backdrop: HTMLElement = document.querySelector(\n\t\t\t`#${this.overlay.id}-backdrop`,\n\t\t);\n\n\t\tif (!backdrop) return;\n\n\t\tif (this.openNextOverlay) {\n\t\t\tbackdrop.style.transitionDuration = `${\n\t\t\t\tparseFloat(\n\t\t\t\t\twindow\n\t\t\t\t\t\t.getComputedStyle(backdrop)\n\t\t\t\t\t\t.transitionDuration.replace(/[^\\d.-]/g, ''),\n\t\t\t\t) * 1.8\n\t\t\t}s`;\n\t\t}\n\n\t\tbackdrop.classList.add('opacity-0');\n\n\t\tafterTransition(backdrop, () => {\n\t\t\tbackdrop.remove();\n\t\t});\n\t}\n\n\tprivate focusElement() {\n\t\tconst input: HTMLInputElement = this.overlay.querySelector('[autofocus]');\n\n\t\tif (!input) return false;\n\t\telse input.focus();\n\t}\n\n\tprivate getScrollbarSize() {\n\t\tlet div = document.createElement('div');\n\t\tdiv.style.overflow = 'scroll';\n\t\tdiv.style.width = '100px';\n\t\tdiv.style.height = '100px';\n\t\tdocument.body.appendChild(div);\n\n\t\tlet scrollbarSize = div.offsetWidth - div.clientWidth;\n\n\t\tdocument.body.removeChild(div);\n\n\t\treturn scrollbarSize;\n\t}\n\n\t// Public methods\n\tpublic open() {\n\t\tif (!this.overlay) return false;\n\n\t\tconst openedOverlays = document.querySelectorAll('.hs-overlay.open');\n\t\tconst currentlyOpened = window.$hsOverlayCollection.find(\n\t\t\t(el) =>\n\t\t\t\tArray.from(openedOverlays).includes(el.element.overlay) &&\n\t\t\t\t!el.element.isLayoutAffect,\n\t\t);\n\t\tconst toggles = document.querySelectorAll(\n\t\t\t`[data-hs-overlay=\"#${this.overlay.id}\"]`,\n\t\t);\n\t\tconst disabledScroll =\n\t\t\tgetClassProperty(this.overlay, '--body-scroll', 'false') !== 'true';\n\n\t\tif (this.isClosePrev && currentlyOpened) {\n\t\t\tthis.openNextOverlay = true;\n\n\t\t\treturn currentlyOpened.element.close().then(() => {\n\t\t\t\tthis.open();\n\n\t\t\t\tthis.openNextOverlay = false;\n\t\t\t});\n\t\t}\n\n\t\tif (disabledScroll) {\n\t\t\tdocument.body.style.overflow = 'hidden';\n\t\t\tif (this.emulateScrollbarSpace)\n\t\t\t\tdocument.body.style.paddingRight = `${this.getScrollbarSize()}px`;\n\t\t}\n\n\t\tthis.buildBackdrop();\n\t\tthis.checkTimer();\n\t\tthis.hideAuto();\n\n\t\ttoggles.forEach((toggle) => {\n\t\t\tif (toggle.ariaExpanded) toggle.ariaExpanded = 'true';\n\t\t});\n\t\tthis.overlay.classList.remove(this.hiddenClass);\n\t\tthis.overlay.setAttribute('aria-overlay', 'true');\n\t\tthis.overlay.setAttribute('tabindex', '-1');\n\n\t\tsetTimeout(() => {\n\t\t\tif (this.overlay.classList.contains('opened')) return false;\n\n\t\t\tthis.overlay.classList.add('open', 'opened');\n\t\t\tif (this.isLayoutAffect)\n\t\t\t\tdocument.body.classList.add('hs-overlay-body-open');\n\n\t\t\tthis.fireEvent('open', this.el);\n\t\t\tdispatch('open.hs.overlay', this.el, this.el);\n\n\t\t\tif (this.hasAutofocus) this.focusElement();\n\t\t}, 50);\n\t}\n\n\tpublic close(forceClose = false) {\n\t\tif (this.isLayoutAffect)\n\t\t\tdocument.body.classList.remove('hs-overlay-body-open');\n\n\t\tconst closeFn = (cb: Function) => {\n\t\t\tif (this.overlay.classList.contains('open')) return false;\n\t\t\tconst toggles = document.querySelectorAll(\n\t\t\t\t`[data-hs-overlay=\"#${this.overlay.id}\"]`,\n\t\t\t);\n\n\t\t\ttoggles.forEach((toggle) => {\n\t\t\t\tif (toggle.ariaExpanded) toggle.ariaExpanded = 'false';\n\t\t\t});\n\t\t\tthis.overlay.classList.add(this.hiddenClass);\n\n\t\t\tthis.destroyBackdrop();\n\n\t\t\tthis.fireEvent('close', this.el);\n\t\t\tdispatch('close.hs.overlay', this.el, this.el);\n\n\t\t\tif (!document.querySelector('.hs-overlay.opened')) {\n\t\t\t\tdocument.body.style.overflow = '';\n\t\t\t\tif (this.emulateScrollbarSpace) document.body.style.paddingRight = '';\n\t\t\t}\n\n\t\t\tcb(this.overlay);\n\t\t};\n\n\t\treturn new Promise((resolve) => {\n\t\t\tif (!this.overlay) return false;\n\n\t\t\tthis.overlay.classList.remove('open', 'opened');\n\t\t\tthis.overlay.removeAttribute('aria-overlay');\n\t\t\tthis.overlay.removeAttribute('tabindex');\n\n\t\t\tif (forceClose) closeFn(resolve);\n\t\t\telse afterTransition(this.animationTarget, () => closeFn(resolve));\n\t\t});\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsOverlayCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t\t(typeof target === 'string'\n\t\t\t\t\t\t? document.querySelector(target)\n\t\t\t\t\t\t: target) ||\n\t\t\t\tel.element.overlay ===\n\t\t\t\t\t(typeof target === 'string'\n\t\t\t\t\t\t? document.querySelector(target)\n\t\t\t\t\t\t: target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsOverlayCollection) window.$hsOverlayCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-overlay]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsOverlayCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSOverlay(el);\n\t\t\t});\n\n\t\tif (window.$hsOverlayCollection) {\n\t\t\tdocument.addEventListener('keydown', (evt) =>\n\t\t\t\tHSOverlay.accessibility(evt),\n\t\t\t);\n\t\t}\n\t}\n\n\tstatic open(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsOverlayCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t\t(typeof target === 'string'\n\t\t\t\t\t\t? document.querySelector(target)\n\t\t\t\t\t\t: target) ||\n\t\t\t\tel.element.overlay ===\n\t\t\t\t\t(typeof target === 'string'\n\t\t\t\t\t\t? document.querySelector(target)\n\t\t\t\t\t\t: target),\n\t\t);\n\n\t\tif (\n\t\t\telInCollection &&\n\t\t\telInCollection.element.overlay.classList.contains(\n\t\t\t\telInCollection.element.hiddenClass,\n\t\t\t)\n\t\t)\n\t\t\telInCollection.element.open();\n\t}\n\n\tstatic close(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsOverlayCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t\t(typeof target === 'string'\n\t\t\t\t\t\t? document.querySelector(target)\n\t\t\t\t\t\t: target) ||\n\t\t\t\tel.element.overlay ===\n\t\t\t\t\t(typeof target === 'string'\n\t\t\t\t\t\t? document.querySelector(target)\n\t\t\t\t\t\t: target),\n\t\t);\n\n\t\tif (\n\t\t\telInCollection &&\n\t\t\t!elInCollection.element.overlay.classList.contains(\n\t\t\t\telInCollection.element.hiddenClass,\n\t\t\t)\n\t\t)\n\t\t\telInCollection.element.close();\n\t}\n\n\tstatic setOpened(breakpoint: number, el: ICollectionItem) {\n\t\tif (document.body.clientWidth >= breakpoint) {\n\t\t\tdocument.body.classList.add('hs-overlay-body-open');\n\t\t\tel.element.overlay.classList.add('opened');\n\t\t} else el.element.close(true);\n\t}\n\n\t// Accessibility methods\n\tstatic accessibility(evt: KeyboardEvent) {\n\t\tconst targets = window.$hsOverlayCollection.filter((el) =>\n\t\t\tel.element.overlay.classList.contains('open'),\n\t\t);\n\t\tconst target = targets[targets.length - 1];\n\t\tconst focusableElements = target?.element?.overlay?.querySelectorAll(\n\t\t\t'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n\t\t);\n\t\tconst notHiddenFocusableElements: HTMLElement[] = [];\n\t\tif (focusableElements?.length)\n\t\t\tfocusableElements.forEach((el: HTMLElement) => {\n\t\t\t\tif (!isParentOrElementHidden(el)) notHiddenFocusableElements.push(el);\n\t\t\t});\n\t\tconst basicCheck = target && !evt.metaKey;\n\n\t\tif (\n\t\t\tbasicCheck &&\n\t\t\t!target.element.isTabAccessibilityLimited &&\n\t\t\tevt.code === 'Tab'\n\t\t)\n\t\t\treturn false;\n\n\t\tif (basicCheck && notHiddenFocusableElements.length && evt.code === 'Tab') {\n\t\t\tevt.preventDefault();\n\t\t\tthis.onTab(target, notHiddenFocusableElements);\n\t\t}\n\t\tif (basicCheck && evt.code === 'Escape') {\n\t\t\tevt.preventDefault();\n\t\t\tthis.onEscape(target);\n\t\t}\n\t}\n\n\tstatic onEscape(target: ICollectionItem) {\n\t\tif (target && target.element.hasAbilityToCloseOnBackdropClick)\n\t\t\ttarget.element.close();\n\t}\n\n\tstatic onTab(\n\t\ttarget: ICollectionItem,\n\t\tfocusableElements: HTMLElement[],\n\t) {\n\t\tif (!focusableElements.length) return false;\n\n\t\tconst focused = target.element.overlay.querySelector(':focus');\n\t\tconst focusedIndex = Array.from(focusableElements).indexOf(\n\t\t\tfocused as HTMLElement,\n\t\t);\n\n\t\tif (focusedIndex > -1) {\n\t\t\tconst nextIndex = (focusedIndex + 1) % focusableElements.length;\n\t\t\t(focusableElements[nextIndex] as HTMLElement).focus();\n\t\t} else {\n\t\t\t(focusableElements[0] as HTMLElement).focus();\n\t\t}\n\t}\n\n\t// Backward compatibility\n\tstatic on(evt: string, target: HTMLElement, cb: Function) {\n\t\tconst elInCollection = window.$hsOverlayCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t\t(typeof target === 'string'\n\t\t\t\t\t\t? document.querySelector(target)\n\t\t\t\t\t\t: target) ||\n\t\t\t\tel.element.overlay ===\n\t\t\t\t\t(typeof target === 'string'\n\t\t\t\t\t\t? document.querySelector(target)\n\t\t\t\t\t\t: target),\n\t\t);\n\n\t\tif (elInCollection) elInCollection.element.events[evt] = cb;\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSOverlay: Function;\n\t\t$hsOverlayCollection: ICollectionItem[];\n\t}\n}\n\nconst autoCloseResizeFn = () => {\n\tif (\n\t\t!window.$hsOverlayCollection.length ||\n\t\t!window.$hsOverlayCollection.find((el) => el.element.autoClose)\n\t)\n\t\treturn false;\n\n\tconst overlays = window.$hsOverlayCollection.filter(\n\t\t(el) => el.element.autoClose,\n\t);\n\n\toverlays.forEach((overlay) => {\n\t\tif (document.body.clientWidth >= overlay.element.autoClose)\n\t\t\toverlay.element.close(true);\n\t});\n};\n\nconst moveOverlayToBodyResizeFn = () => {\n\tif (\n\t\t!window.$hsOverlayCollection.length ||\n\t\t!window.$hsOverlayCollection.find((el) => el.element.moveOverlayToBody)\n\t)\n\t\treturn false;\n\n\tconst overlays = window.$hsOverlayCollection.filter(\n\t\t(el) => el.element.moveOverlayToBody,\n\t);\n\n\toverlays.forEach((overlay) => {\n\t\tconst resolution = overlay.element.moveOverlayToBody;\n\t\tconst initPlace = overlay.element.initContainer;\n\t\tconst newPlace = document.querySelector('body');\n\t\tconst target = overlay.element.overlay;\n\n\t\tif (!initPlace && target) return false;\n\n\t\tif (\n\t\t\tdocument.body.clientWidth <= resolution &&\n\t\t\t!isDirectChild(newPlace, target)\n\t\t)\n\t\t\tnewPlace.appendChild(target);\n\t\telse if (\n\t\t\tdocument.body.clientWidth > resolution &&\n\t\t\t!initPlace.contains(target)\n\t\t)\n\t\t\tinitPlace.appendChild(target);\n\t});\n};\n\nconst setOpenedResizeFn = () => {\n\tif (\n\t\t!window.$hsOverlayCollection.length ||\n\t\t!window.$hsOverlayCollection.find((el) => el.element.autoClose)\n\t)\n\t\treturn false;\n\n\tconst overlays = window.$hsOverlayCollection.filter(\n\t\t(el) => el.element.autoClose,\n\t);\n\n\toverlays.forEach((overlay) => {\n\t\tif (document.body.clientWidth >= overlay.element.autoClose)\n\t\t\toverlay.element.close(true);\n\t});\n};\n\nconst setBackdropZIndexResizeFn = () => {\n\tif (\n\t\t!window.$hsOverlayCollection.length ||\n\t\t!window.$hsOverlayCollection.find((el) =>\n\t\t\tel.element.overlay.classList.contains('opened'),\n\t\t)\n\t)\n\t\treturn false;\n\n\tconst overlays = window.$hsOverlayCollection.filter((el) =>\n\t\tel.element.overlay.classList.contains('opened'),\n\t);\n\n\toverlays.forEach((overlay) => {\n\t\tconst overlayZIndex = parseInt(\n\t\t\twindow\n\t\t\t\t.getComputedStyle(overlay.element.overlay)\n\t\t\t\t.getPropertyValue('z-index'),\n\t\t);\n\t\tconst backdrop: HTMLElement = document.querySelector(\n\t\t\t`#${overlay.element.overlay.id}-backdrop`,\n\t\t);\n\t\tconst backdropZIndex = parseInt(\n\t\t\twindow.getComputedStyle(backdrop).getPropertyValue('z-index'),\n\t\t);\n\t\tif (overlayZIndex === backdropZIndex + 1) return false;\n\n\t\tif ('style' in backdrop) backdrop.style.zIndex = `${overlayZIndex - 1}`;\n\t\tdocument.body.classList.add('hs-overlay-body-open');\n\t});\n};\n\nwindow.addEventListener('load', () => {\n\tHSOverlay.autoInit();\n\n\tmoveOverlayToBodyResizeFn();\n\t// Uncomment for debug\n\t// console.log('Overlay collection:', window.$hsOverlayCollection);\n});\n\nwindow.addEventListener('resize', () => {\n\tautoCloseResizeFn();\n\tmoveOverlayToBodyResizeFn();\n\tsetOpenedResizeFn();\n\tsetBackdropZIndexResizeFn();\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSOverlay = HSOverlay;\n}\n\nexport default HSOverlay;\n","/*\n * HSPinInput\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { dispatch } from '../../utils';\n\nimport { IPinInputOptions, IPinInput } from '../pin-input/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSPinInput extends HSBasePlugin implements IPinInput {\n\tprivate items: NodeListOf | null;\n\tprivate currentItem: HTMLInputElement | null;\n\tprivate currentValue: string[] | null;\n\tprivate readonly placeholders: string[] | null;\n\tprivate readonly availableCharsRE: RegExp | null;\n\n\tconstructor(el: HTMLElement, options?: IPinInputOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-pin-input');\n\t\tconst dataOptions: IPinInputOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.items = this.el.querySelectorAll('[data-hs-pin-input-item]');\n\t\tthis.currentItem = null;\n\t\tthis.currentValue = new Array(this.items.length).fill('');\n\t\tthis.placeholders = [];\n\t\tthis.availableCharsRE = new RegExp(\n\t\t\tconcatOptions?.availableCharsRE || '^[a-zA-Z0-9]+$',\n\t\t); // '^[0-9]+$'\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsPinInputCollection, this);\n\n\t\tif (this.items.length) this.build();\n\t}\n\n\tprivate build() {\n\t\tthis.buildInputItems();\n\t}\n\n\tprivate buildInputItems() {\n\t\tthis.items.forEach((el, index) => {\n\t\t\tthis.placeholders.push(el.getAttribute('placeholder') || '');\n\n\t\t\tif (el.hasAttribute('autofocus')) this.onFocusIn(index);\n\n\t\t\tel.addEventListener('input', (evt) => this.onInput(evt, index));\n\t\t\tel.addEventListener('paste', (evt) => this.onPaste(evt));\n\t\t\tel.addEventListener('keydown', (evt) => this.onKeydown(evt, index));\n\t\t\tel.addEventListener('focusin', () => this.onFocusIn(index));\n\t\t\tel.addEventListener('focusout', () => this.onFocusOut(index));\n\t\t});\n\t}\n\n\tprivate checkIfNumber(value: string) {\n\t\treturn value.match(this.availableCharsRE);\n\t}\n\n\tprivate autoFillAll(text: string) {\n\t\tArray.from(text).forEach((n, i) => {\n\t\t\tif (!this?.items[i]) return false;\n\n\t\t\t(this.items[i] as HTMLInputElement).value = n;\n\n\t\t\tthis.items[i].dispatchEvent(new Event('input', { bubbles: true }));\n\t\t});\n\t}\n\n\tprivate setCurrentValue() {\n\t\tthis.currentValue = Array.from(this.items).map(\n\t\t\t(el) => (el as HTMLInputElement).value,\n\t\t);\n\t}\n\n\tprivate toggleCompleted() {\n\t\tif (!this.currentValue.includes('')) this.el.classList.add('active');\n\t\telse this.el.classList.remove('active');\n\t}\n\n\tprivate onInput(evt: Event, index: number) {\n\t\tconst originalValue = (evt.target as HTMLInputElement).value;\n\t\tthis.currentItem = evt.target as HTMLInputElement;\n\t\tthis.currentItem.value = '';\n\t\tthis.currentItem.value = originalValue[originalValue.length - 1];\n\n\t\tif (!this.checkIfNumber(this.currentItem.value)) {\n\t\t\tthis.currentItem.value = this.currentValue[index] || '';\n\n\t\t\treturn false;\n\t\t}\n\n\t\tthis.setCurrentValue();\n\n\t\tif (this.currentItem.value) {\n\t\t\tif (index < this.items.length - 1) this.items[index + 1].focus();\n\t\t\tif (!this.currentValue.includes('')) {\n\t\t\t\tconst payload = { currentValue: this.currentValue };\n\n\t\t\t\tthis.fireEvent('completed', payload);\n\t\t\t\tdispatch('completed.hs.pinInput', this.el, payload);\n\t\t\t}\n\n\t\t\tthis.toggleCompleted();\n\t\t} else {\n\t\t\tif (index > 0) this.items[index - 1].focus();\n\t\t}\n\t}\n\n\tprivate onKeydown(evt: KeyboardEvent, index: number) {\n\t\tif (evt.key === 'Backspace' && index > 0) {\n\t\t\tif ((this.items[index] as HTMLInputElement).value === '') {\n\t\t\t\t(this.items[index - 1] as HTMLInputElement).value = '';\n\t\t\t\t(this.items[index - 1] as HTMLInputElement).focus();\n\t\t\t} else {\n\t\t\t\t(this.items[index] as HTMLInputElement).value = '';\n\t\t\t}\n\t\t}\n\n\t\tthis.setCurrentValue();\n\t\tthis.toggleCompleted();\n\t}\n\n\tprivate onFocusIn(index: number) {\n\t\tthis.items[index].setAttribute('placeholder', '');\n\t}\n\n\tprivate onFocusOut(index: number) {\n\t\tthis.items[index].setAttribute('placeholder', this.placeholders[index]);\n\t}\n\n\tprivate onPaste(evt: ClipboardEvent) {\n\t\tevt.preventDefault();\n\n\t\tthis.items.forEach((el) => {\n\t\t\tif (document.activeElement === el)\n\t\t\t\tthis.autoFillAll(evt.clipboardData.getData('text'));\n\t\t});\n\t}\n\n\t// Static method\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsPinInputCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsPinInputCollection) window.$hsPinInputCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-pin-input]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsPinInputCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSPinInput(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSPinInput: Function;\n\t\t$hsPinInputCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSPinInput.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('PIN input collection:', window.$hsPinInputCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSPinInput = HSPinInput;\n}\n\nexport default HSPinInput;\n","/*\n * HSRemoveElement\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { afterTransition } from '../../utils';\n\nimport {\n\tIRemoveElementOptions,\n\tIRemoveElement,\n} from '../remove-element/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSRemoveElement\n\textends HSBasePlugin\n\timplements IRemoveElement\n{\n\tprivate readonly removeTargetId: string | null;\n\tprivate readonly removeTarget: HTMLElement | null;\n\tprivate readonly removeTargetAnimationClass: string;\n\n\tconstructor(el: HTMLElement, options?: IRemoveElementOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-remove-element-options');\n\t\tconst dataOptions: IRemoveElementOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.removeTargetId = this.el.getAttribute('data-hs-remove-element');\n\t\tthis.removeTarget = document.querySelector(this.removeTargetId);\n\t\tthis.removeTargetAnimationClass =\n\t\t\tconcatOptions?.removeTargetAnimationClass || 'hs-removing';\n\n\t\tif (this.removeTarget) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsRemoveElementCollection, this);\n\n\t\tthis.el.addEventListener('click', () => this.remove());\n\t}\n\n\tprivate remove() {\n\t\tif (!this.removeTarget) return false;\n\n\t\tthis.removeTarget.classList.add(this.removeTargetAnimationClass);\n\n\t\tafterTransition(this.removeTarget, () =>\n\t\t\tsetTimeout(() => this.removeTarget.remove()),\n\t\t);\n\t}\n\n\t// Static method\n\tstatic autoInit() {\n\t\tif (!window.$hsRemoveElementCollection)\n\t\t\twindow.$hsRemoveElementCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-remove-element]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsRemoveElementCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSRemoveElement(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSRemoveElement: Function;\n\t\t$hsRemoveElementCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSRemoveElement.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Remove element collection:', window.$hsRemoveElementCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSRemoveElement = HSRemoveElement;\n}\n\nexport default HSRemoveElement;\n","/*\n * HSScrollspy\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { getClassProperty, dispatch } from '../../utils';\n\nimport { IScrollspy } from '../scrollspy/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSScrollspy extends HSBasePlugin<{}> implements IScrollspy {\n\tprivate activeSection: HTMLElement | null;\n\tprivate readonly contentId: string | null;\n\tprivate readonly content: HTMLElement | null;\n\tprivate readonly links: NodeListOf | null;\n\tprivate readonly sections: HTMLElement[] | null;\n\tprivate readonly scrollableId: string | null;\n\tprivate readonly scrollable: HTMLElement | Document;\n\n\tconstructor(el: HTMLElement, options = {}) {\n\t\tsuper(el, options);\n\n\t\tthis.activeSection = null;\n\t\tthis.contentId = this.el.getAttribute('data-hs-scrollspy');\n\t\tthis.content = document.querySelector(this.contentId);\n\t\tthis.links = this.el.querySelectorAll('[href]');\n\t\tthis.sections = [];\n\t\tthis.scrollableId = this.el.getAttribute(\n\t\t\t'data-hs-scrollspy-scrollable-parent',\n\t\t);\n\t\tthis.scrollable = this.scrollableId\n\t\t\t? (document.querySelector(this.scrollableId) as HTMLElement)\n\t\t\t: (document as Document);\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsScrollspyCollection, this);\n\n\t\tthis.links.forEach((el) => {\n\t\t\tthis.sections.push(\n\t\t\t\tthis.scrollable.querySelector(el.getAttribute('href')),\n\t\t\t);\n\t\t});\n\n\t\tArray.from(this.sections).forEach((section: HTMLElement) => {\n\t\t\tif (!section.getAttribute('id')) return false;\n\n\t\t\tthis.scrollable.addEventListener('scroll', (evt) =>\n\t\t\t\tthis.update(evt, section),\n\t\t\t);\n\t\t});\n\n\t\tthis.links.forEach((el) => {\n\t\t\tel.addEventListener('click', (evt) => {\n\t\t\t\tevt.preventDefault();\n\n\t\t\t\tif (el.getAttribute('href') === 'javascript:;') return false;\n\n\t\t\t\tthis.scrollTo(el);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate update(evt: Event, section: HTMLElement) {\n\t\tconst globalOffset = parseInt(\n\t\t\tgetClassProperty(this.el, '--scrollspy-offset', '0'),\n\t\t);\n\t\tconst userOffset =\n\t\t\tparseInt(getClassProperty(section, '--scrollspy-offset')) || globalOffset;\n\t\tconst scrollableParentOffset =\n\t\t\tevt.target === document\n\t\t\t\t? 0\n\t\t\t\t: parseInt(\n\t\t\t\t\t\tString((evt.target as HTMLElement).getBoundingClientRect().top),\n\t\t\t\t\t);\n\t\tconst topOffset =\n\t\t\tparseInt(String(section.getBoundingClientRect().top)) -\n\t\t\tuserOffset -\n\t\t\tscrollableParentOffset;\n\t\tconst height = section.offsetHeight;\n\n\t\tif (topOffset <= 0 && topOffset + height > 0) {\n\t\t\tif (this.activeSection === section) return false;\n\n\t\t\tthis.links.forEach((el) => {\n\t\t\t\tel.classList.remove('active');\n\t\t\t});\n\n\t\t\tconst current = this.el.querySelector(\n\t\t\t\t`[href=\"#${section.getAttribute('id')}\"]`,\n\t\t\t);\n\n\t\t\tif (current) {\n\t\t\t\tcurrent.classList.add('active');\n\n\t\t\t\tconst group = current.closest('[data-hs-scrollspy-group]');\n\n\t\t\t\tif (group) {\n\t\t\t\t\tconst parentLink = group.querySelector('[href]');\n\n\t\t\t\t\tif (parentLink) parentLink.classList.add('active');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.activeSection = section;\n\t\t}\n\t}\n\n\tprivate scrollTo(link: HTMLAnchorElement) {\n\t\tconst targetId = link.getAttribute('href');\n\t\tconst target: HTMLElement = document.querySelector(targetId);\n\t\tconst globalOffset = parseInt(\n\t\t\tgetClassProperty(this.el, '--scrollspy-offset', '0'),\n\t\t);\n\t\tconst userOffset =\n\t\t\tparseInt(getClassProperty(target, '--scrollspy-offset')) || globalOffset;\n\t\tconst scrollableParentOffset =\n\t\t\tthis.scrollable === document\n\t\t\t\t? 0\n\t\t\t\t: (this.scrollable as HTMLElement).offsetTop;\n\t\tconst topOffset = target.offsetTop - userOffset - scrollableParentOffset;\n\t\tconst view = this.scrollable === document ? window : this.scrollable;\n\t\tconst scrollFn = () => {\n\t\t\twindow.history.replaceState(null, null, link.getAttribute('href'));\n\n\t\t\tif ('scrollTo' in view) {\n\t\t\t\tview.scrollTo({\n\t\t\t\t\ttop: topOffset,\n\t\t\t\t\tleft: 0,\n\t\t\t\t\tbehavior: 'smooth',\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\tconst beforeScroll = this.fireEvent('beforeScroll', this.el);\n\t\tdispatch('beforeScroll.hs.scrollspy', this.el, this.el);\n\n\t\tif (beforeScroll instanceof Promise) beforeScroll.then(() => scrollFn());\n\t\telse scrollFn();\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement, isInstance = false) {\n\t\tconst elInCollection = window.$hsScrollspyCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsScrollspyCollection) window.$hsScrollspyCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-scrollspy]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsScrollspyCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSScrollspy(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSScrollspy: Function;\n\t\t$hsScrollspyCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSScrollspy.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Scrollspy collection:', window.$hsScrollspyCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSScrollspy = HSScrollspy;\n}\n\nexport default HSScrollspy;\n","/*\n * HSSelect\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport {\n\tisEnoughSpace,\n\tdebounce,\n\tdispatch,\n\tafterTransition,\n\thtmlToElement,\n\tclassToClassList,\n} from '../../utils';\n\nimport {\n\tISelect,\n\tISelectOptions,\n\tISingleOption,\n\tISingleOptionOptions,\n\tIApiFieldMap,\n} from '../select/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nimport { SELECT_ACCESSIBILITY_KEY_SET, POSITIONS } from '../../constants';\n\nclass HSSelect extends HSBasePlugin implements ISelect {\n\tvalue: string | string[] | null;\n\tprivate readonly placeholder: string | null;\n\tprivate readonly hasSearch: boolean;\n\tprivate readonly preventSearchFocus: boolean;\n\tprivate readonly mode: string | null;\n\tprivate readonly viewport: HTMLElement | null;\n\n\tisOpened: boolean | null;\n\tisMultiple: boolean | null;\n\tisDisabled: boolean | null;\n\tselectedItems: string[];\n\n\tprivate readonly apiUrl: string | null;\n\tprivate readonly apiQuery: string | null;\n\tprivate readonly apiOptions: RequestInit | null;\n\tprivate readonly apiDataPart: string | null;\n\tprivate readonly apiSearchQueryKey: string | null;\n\tprivate readonly apiFieldsMap: IApiFieldMap | null;\n\tprivate readonly apiIconTag: string | null;\n\n\tprivate readonly toggleTag: string | null;\n\tprivate readonly toggleClasses: string | null;\n\tprivate readonly toggleSeparators: {\n\t\titems?: string;\n\t\tbetweenItemsAndCounter?: string;\n\t} | null;\n\tprivate readonly toggleCountText: string | null;\n\tprivate readonly toggleCountTextMinItems: number | null;\n\tprivate readonly toggleCountTextMode: string | null;\n\tprivate readonly wrapperClasses: string | null;\n\tprivate readonly tagsItemTemplate: string | null;\n\tprivate readonly tagsItemClasses: string | null;\n\tprivate readonly tagsInputId: string | null;\n\tprivate readonly tagsInputClasses: string | null;\n\tprivate readonly dropdownTag: string | null;\n\tprivate readonly dropdownClasses: string | null;\n\tprivate readonly dropdownDirectionClasses: {\n\t\ttop?: string;\n\t\tbottom?: string;\n\t} | null;\n\tpublic dropdownSpace: number | null;\n\tpublic readonly dropdownPlacement: string | null;\n\tpublic readonly dropdownScope: 'window' | 'parent';\n\tprivate readonly searchTemplate: string | null;\n\tprivate readonly searchWrapperTemplate: string | null;\n\tprivate readonly searchPlaceholder: string | null;\n\tprivate readonly searchId: string | null;\n\tprivate readonly searchLimit: number | typeof Infinity;\n\tprivate readonly isSearchDirectMatch: boolean;\n\tprivate readonly searchClasses: string | null;\n\tprivate readonly searchWrapperClasses: string | null;\n\tprivate readonly searchNoResultTemplate: string | null;\n\tprivate readonly searchNoResultText: string | null;\n\tprivate readonly searchNoResultClasses: string | null;\n\tprivate readonly optionTag: string | null;\n\tprivate readonly optionTemplate: string | null;\n\tprivate readonly optionClasses: string | null;\n\tprivate readonly descriptionClasses: string | null;\n\tprivate readonly iconClasses: string | null;\n\n\tprivate animationInProcess: boolean;\n\n\tprivate wrapper: HTMLElement | null;\n\tprivate toggle: HTMLElement | null;\n\tprivate toggleTextWrapper: HTMLElement | null;\n\tprivate tagsInput: HTMLElement | null;\n\tprivate dropdown: HTMLElement | null;\n\tprivate popperInstance: any;\n\tprivate searchWrapper: HTMLElement | null;\n\tprivate search: HTMLInputElement | null;\n\tprivate searchNoResult: HTMLElement | null;\n\tprivate selectOptions: ISingleOption[] | [];\n\tprivate extraMarkup: string | string[] | Element | null;\n\n\tprivate readonly isAddTagOnEnter: boolean;\n\n\tprivate tagsInputHelper: HTMLElement | null;\n\n\tprivate remoteOptions: unknown[];\n\n\tprivate optionId = 0;\n\n\tconstructor(el: HTMLElement, options?: ISelectOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-select');\n\t\tconst dataOptions: ISelectOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\t\tconst defaultToggleSeparators = {\n\t\t\titems: ', ',\n\t\t\tbetweenItemsAndCounter: 'and',\n\t\t};\n\n\t\tthis.value =\n\t\t\tconcatOptions?.value || (this.el as HTMLSelectElement).value || null;\n\t\tthis.placeholder = concatOptions?.placeholder || 'Select...';\n\t\tthis.hasSearch = concatOptions?.hasSearch || false;\n\t\tthis.preventSearchFocus = concatOptions?.preventSearchFocus || false;\n\t\tthis.mode = concatOptions?.mode || 'default';\n\t\tthis.viewport =\n\t\t\ttypeof concatOptions?.viewport !== 'undefined'\n\t\t\t\t? document.querySelector(concatOptions?.viewport)\n\t\t\t\t: null;\n\t\tthis.isOpened = Boolean(concatOptions?.isOpened) || false;\n\t\tthis.isMultiple = this.el.hasAttribute('multiple') || false;\n\t\tthis.isDisabled = this.el.hasAttribute('disabled') || false;\n\t\tthis.selectedItems = [];\n\n\t\tthis.apiUrl = concatOptions?.apiUrl || null;\n\t\tthis.apiQuery = concatOptions?.apiQuery || null;\n\t\tthis.apiOptions = concatOptions?.apiOptions || null;\n\t\tthis.apiSearchQueryKey = concatOptions?.apiSearchQueryKey || null;\n\t\tthis.apiDataPart = concatOptions?.apiDataPart || null;\n\t\tthis.apiFieldsMap = concatOptions?.apiFieldsMap || null;\n\t\tthis.apiIconTag = concatOptions?.apiIconTag || null;\n\n\t\tthis.wrapperClasses = concatOptions?.wrapperClasses || null;\n\t\tthis.toggleTag = concatOptions?.toggleTag || null;\n\t\tthis.toggleClasses = concatOptions?.toggleClasses || null;\n\t\tthis.toggleSeparators = defaultToggleSeparators;\n\t\tthis.toggleCountText = concatOptions?.toggleCountText || null;\n\t\tthis.toggleCountTextMinItems = concatOptions?.toggleCountTextMinItems || 1;\n\t\tthis.toggleCountTextMode =\n\t\t\tconcatOptions?.toggleCountTextMode || 'countAfterLimit';\n\t\tthis.tagsItemTemplate = concatOptions?.tagsItemTemplate || null;\n\t\tthis.tagsItemClasses = concatOptions?.tagsItemClasses || null;\n\t\tthis.tagsInputId = concatOptions?.tagsInputId || null;\n\t\tthis.tagsInputClasses = concatOptions?.tagsInputClasses || null;\n\t\tthis.dropdownTag = concatOptions?.dropdownTag || null;\n\t\tthis.dropdownClasses = concatOptions?.dropdownClasses || null;\n\t\tthis.dropdownDirectionClasses =\n\t\t\tconcatOptions?.dropdownDirectionClasses || null;\n\t\tthis.dropdownSpace = concatOptions?.dropdownSpace || 10;\n\t\tthis.dropdownPlacement = concatOptions?.dropdownPlacement || null;\n\t\tthis.dropdownScope = concatOptions?.dropdownScope || 'parent';\n\t\tthis.searchTemplate = concatOptions?.searchTemplate || null;\n\t\tthis.searchWrapperTemplate = concatOptions?.searchWrapperTemplate || null;\n\t\tthis.searchWrapperClasses =\n\t\t\tconcatOptions?.searchWrapperClasses || 'bg-white p-2 sticky top-0';\n\t\tthis.searchId = concatOptions?.searchId || null;\n\t\tthis.searchLimit = concatOptions?.searchLimit || Infinity;\n\t\tthis.isSearchDirectMatch =\n\t\t\ttypeof concatOptions?.isSearchDirectMatch !== 'undefined'\n\t\t\t\t? concatOptions?.isSearchDirectMatch\n\t\t\t\t: true;\n\t\tthis.searchClasses =\n\t\t\tconcatOptions?.searchClasses ||\n\t\t\t'block w-[calc(100%-2rem)] text-sm border-gray-200 rounded-md focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 py-2 px-3 my-2 mx-4';\n\t\tthis.searchPlaceholder = concatOptions?.searchPlaceholder || 'Search...';\n\t\tthis.searchNoResultTemplate =\n\t\t\tconcatOptions?.searchNoResultTemplate || '';\n\t\tthis.searchNoResultText =\n\t\t\tconcatOptions?.searchNoResultText || 'No results found';\n\t\tthis.searchNoResultClasses =\n\t\t\tconcatOptions?.searchNoResultClasses ||\n\t\t\t'px-4 text-sm text-gray-800 dark:text-neutral-200';\n\t\tthis.optionTemplate = concatOptions?.optionTemplate || null;\n\t\tthis.optionTag = concatOptions?.optionTag || null;\n\t\tthis.optionClasses = concatOptions?.optionClasses || null;\n\t\tthis.extraMarkup = concatOptions?.extraMarkup || null;\n\t\tthis.descriptionClasses = concatOptions?.descriptionClasses || null;\n\t\tthis.iconClasses = concatOptions?.iconClasses || null;\n\t\tthis.isAddTagOnEnter = concatOptions?.isAddTagOnEnter ?? true;\n\n\t\tthis.animationInProcess = false;\n\t\tthis.selectOptions = [];\n\t\tthis.remoteOptions = [];\n\n\t\tthis.tagsInputHelper = null;\n\n\t\tthis.init();\n\t}\n\n\tpublic setValue(val: string | string[]) {\n\t\tthis.value = val;\n\n\t\tthis.clearSelections();\n\n\t\tif (Array.isArray(val)) {\n\t\t\tthis.toggleTextWrapper.innerHTML = this.value.length\n\t\t\t\t? this.stringFromValue()\n\t\t\t\t: this.placeholder;\n\t\t\tthis.unselectMultipleItems();\n\t\t\tthis.selectMultipleItems();\n\t\t} else {\n\t\t\tthis.setToggleTitle();\n\n\t\t\tif (this.toggle.querySelector('[data-icon]')) this.setToggleIcon();\n\t\t\tif (this.toggle.querySelector('[data-title]')) this.setToggleTitle();\n\n\t\t\tthis.selectSingleItem();\n\t\t}\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsSelectCollection, this);\n\n\t\tthis.build();\n\t}\n\n\tprivate build() {\n\t\tthis.el.style.display = 'none';\n\n\t\tif (this.el.children) {\n\t\t\tArray.from(this.el.children)\n\t\t\t\t.filter((el: HTMLOptionElement) => el.value && el.value !== '')\n\t\t\t\t.forEach((el: HTMLOptionElement) => {\n\t\t\t\t\tconst data = el.getAttribute('data-hs-select-option');\n\n\t\t\t\t\tthis.selectOptions = [\n\t\t\t\t\t\t...this.selectOptions,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttitle: el.textContent,\n\t\t\t\t\t\t\tval: el.value,\n\t\t\t\t\t\t\tdisabled: el.disabled,\n\t\t\t\t\t\t\toptions: data !== 'undefined' ? JSON.parse(data) : null,\n\t\t\t\t\t\t},\n\t\t\t\t\t];\n\t\t\t\t});\n\t\t}\n\n\t\tif (this.isMultiple) {\n\t\t\tconst selectedOptions = Array.from(this.el.children).filter(\n\t\t\t\t(el: HTMLOptionElement) => el.selected,\n\t\t\t);\n\n\t\t\tif (selectedOptions) {\n\t\t\t\tconst values: string[] = [];\n\n\t\t\t\tselectedOptions.forEach((el: HTMLOptionElement) => {\n\t\t\t\t\tvalues.push(el.value);\n\t\t\t\t});\n\n\t\t\t\tthis.value = values;\n\t\t\t}\n\t\t}\n\n\t\tthis.buildWrapper();\n\t\tif (this.mode === 'tags') this.buildTags();\n\t\telse this.buildToggle();\n\t\tthis.buildDropdown();\n\t\tif (this.extraMarkup) this.buildExtraMarkup();\n\t}\n\n\tprivate buildWrapper() {\n\t\tthis.wrapper = document.createElement('div');\n\t\tthis.wrapper.classList.add('hs-select', 'relative');\n\n\t\tif (this.mode === 'tags') {\n\t\t\tthis.wrapper.addEventListener('click', (evt) => {\n\t\t\t\tif (\n\t\t\t\t\t!(evt.target as HTMLElement).closest('[data-hs-select-dropdown]') &&\n\t\t\t\t\t!(evt.target as HTMLElement).closest('[data-tag-value]')\n\t\t\t\t) {\n\t\t\t\t\tthis.tagsInput.focus();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tif (this.wrapperClasses)\n\t\t\tclassToClassList(this.wrapperClasses, this.wrapper);\n\n\t\tthis.el.before(this.wrapper);\n\n\t\tthis.wrapper.append(this.el);\n\t}\n\n\tprivate buildExtraMarkup() {\n\t\tconst appendMarkup = (markup: string): HTMLElement => {\n\t\t\tconst el = htmlToElement(markup);\n\n\t\t\tthis.wrapper.append(el);\n\n\t\t\treturn el;\n\t\t};\n\t\tconst clickHandle = (el: HTMLElement) => {\n\t\t\tif (!el.classList.contains('--prevent-click'))\n\t\t\t\tel.addEventListener('click', (evt: Event) => {\n\t\t\t\t\tevt.stopPropagation();\n\t\t\t\t\tthis.toggleFn();\n\t\t\t\t});\n\t\t};\n\n\t\tif (Array.isArray(this.extraMarkup)) {\n\t\t\tthis.extraMarkup.forEach((el) => {\n\t\t\t\tconst newEl = appendMarkup(el);\n\n\t\t\t\tclickHandle(newEl);\n\t\t\t});\n\t\t} else {\n\t\t\tconst newEl = appendMarkup(this.extraMarkup as string);\n\n\t\t\tclickHandle(newEl);\n\t\t}\n\t}\n\n\tprivate buildToggle() {\n\t\tlet icon, title;\n\t\tthis.toggleTextWrapper = document.createElement('span');\n\t\tthis.toggleTextWrapper.classList.add('truncate');\n\t\tthis.toggle = htmlToElement(this.toggleTag || '
');\n\t\ticon = this.toggle.querySelector('[data-icon]');\n\t\ttitle = this.toggle.querySelector('[data-title]');\n\n\t\tif (!this.isMultiple && icon) this.setToggleIcon();\n\t\tif (!this.isMultiple && title) this.setToggleTitle();\n\t\tif (this.isMultiple) {\n\t\t\tthis.toggleTextWrapper.innerHTML = this.value.length\n\t\t\t\t? this.stringFromValue()\n\t\t\t\t: this.placeholder;\n\t\t} else {\n\t\t\tthis.toggleTextWrapper.innerHTML =\n\t\t\t\tthis.getItemByValue(this.value as string)?.title || this.placeholder;\n\t\t}\n\t\tif (!title) this.toggle.append(this.toggleTextWrapper);\n\t\tif (this.toggleClasses) classToClassList(this.toggleClasses, this.toggle);\n\t\tif (this.isDisabled) this.toggle.classList.add('disabled');\n\t\tif (this.wrapper) this.wrapper.append(this.toggle);\n\n\t\tif (this.toggle?.ariaExpanded) {\n\t\t\tif (this.isOpened) this.toggle.ariaExpanded = 'true';\n\t\t\telse this.toggle.ariaExpanded = 'false';\n\t\t}\n\n\t\tthis.toggle.addEventListener('click', () => {\n\t\t\tif (this.isDisabled) return false;\n\n\t\t\tthis.toggleFn();\n\t\t});\n\t}\n\n\tprivate setToggleIcon() {\n\t\tconst item = this.getItemByValue(this.value as string) as ISingleOption &\n\t\t\tIApiFieldMap;\n\t\tconst icon = this.toggle.querySelector('[data-icon]');\n\t\ticon.innerHTML = '';\n\n\t\tif (icon) {\n\t\t\tconst img = htmlToElement(\n\t\t\t\tthis.apiUrl && this.apiIconTag\n\t\t\t\t\t? this.apiIconTag || ''\n\t\t\t\t\t: item?.options?.icon || '',\n\t\t\t) as HTMLImageElement;\n\t\t\tif (this.value && this.apiUrl && this.apiIconTag && item[this.apiFieldsMap.icon])\n\t\t\t\timg.src = (item[this.apiFieldsMap.icon] as string) || '';\n\n\t\t\ticon.append(img);\n\n\t\t\tif (!img || !img?.src) icon.classList.add('hidden');\n\t\t\telse icon.classList.remove('hidden');\n\t\t}\n\t}\n\n\tprivate setToggleTitle() {\n\t\tconst title = this.toggle.querySelector('[data-title]');\n\t\ttitle.classList.add('truncate');\n\t\ttitle.innerHTML = '';\n\n\t\tif (title) {\n\t\t\tconst titleText =\n\t\t\t\tthis.getItemByValue(this.value as string)?.title || this.placeholder;\n\t\t\ttitle.innerHTML = titleText;\n\n\t\t\tthis.toggle.append(title);\n\t\t}\n\t}\n\n\tprivate buildTags() {\n\t\tif (this.isDisabled) this.wrapper.classList.add('disabled');\n\t\tthis.buildTagsInput();\n\t\tthis.setTagsItems();\n\t}\n\n\tprivate reassignTagsInputPlaceholder(placeholder: string) {\n\t\t(this.tagsInput as HTMLInputElement).placeholder = placeholder;\n\t\tthis.tagsInputHelper.innerHTML = placeholder;\n\t\tthis.calculateInputWidth();\n\t}\n\n\tprivate buildTagsItem(val: string) {\n\t\tconst item = this.getItemByValue(val) as ISingleOption & IApiFieldMap;\n\n\t\tlet template, title, remove, icon: null | HTMLElement;\n\n\t\tconst newItem = document.createElement('div');\n\t\tnewItem.setAttribute('data-tag-value', val);\n\t\tif (this.tagsItemClasses) classToClassList(this.tagsItemClasses, newItem);\n\n\t\tif (this.tagsItemTemplate) {\n\t\t\ttemplate = htmlToElement(this.tagsItemTemplate);\n\n\t\t\tnewItem.append(template);\n\t\t}\n\n\t\t// Icon\n\t\tif (item?.options?.icon || this.apiIconTag) {\n\t\t\tconst img = htmlToElement(\n\t\t\t\tthis.apiUrl && this.apiIconTag\n\t\t\t\t\t? this.apiIconTag\n\t\t\t\t\t: item?.options?.icon,\n\t\t\t) as HTMLImageElement;\n\n\t\t\tif (this.apiUrl && this.apiIconTag && item[this.apiFieldsMap.icon])\n\t\t\t\timg.src = (item[this.apiFieldsMap.icon] as string) || '';\n\n\t\t\ticon = template\n\t\t\t\t? template.querySelector('[data-icon]')\n\t\t\t\t: document.createElement('span');\n\n\t\t\ticon.append(img);\n\n\t\t\tif (!template) newItem.append(icon);\n\t\t}\n\n\t\tif (\n\t\t\ttemplate &&\n\t\t\ttemplate.querySelector('[data-icon]') &&\n\t\t\t!item?.options?.icon &&\n\t\t\t!this.apiUrl &&\n\t\t\t!this.apiIconTag &&\n\t\t\t!item[this.apiFieldsMap?.icon]\n\t\t) {\n\t\t\ttemplate.querySelector('[data-icon]').classList.add('hidden');\n\t\t}\n\n\t\t// Title\n\t\ttitle = template\n\t\t\t? template.querySelector('[data-title]')\n\t\t\t: document.createElement('span');\n\t\ttitle.textContent = item.title || '';\n\n\t\tif (!template) newItem.append(title);\n\n\t\t// Remove\n\t\tif (template) {\n\t\t\tremove = template.querySelector('[data-remove]');\n\t\t} else {\n\t\t\tremove = document.createElement('span');\n\t\t\tremove.textContent = 'X';\n\n\t\t\tnewItem.append(remove);\n\t\t}\n\n\t\tremove.addEventListener('click', () => {\n\t\t\tthis.value = (this.value as string[]).filter((el) => el !== val);\n\t\t\tthis.selectedItems = this.selectedItems.filter((el) => el !== val);\n\n\t\t\tif (!this.value.length)\n\t\t\t\tthis.reassignTagsInputPlaceholder(this.placeholder);\n\n\t\t\tthis.unselectMultipleItems();\n\t\t\tthis.selectMultipleItems();\n\n\t\t\tnewItem.remove();\n\t\t\tthis.fireEvent('change', this.value);\n\t\t\tdispatch('change.hs.select', this.el, this.value);\n\t\t});\n\n\t\tthis.wrapper.append(newItem);\n\t}\n\n\tprivate getItemByValue(val: string) {\n\t\tconst value = this.apiUrl\n\t\t\t? (this.remoteOptions as (ISingleOption & IApiFieldMap)[]).find(\n\t\t\t\t\t(el) => el[this.apiFieldsMap.title] === val,\n\t\t\t\t)\n\t\t\t: this.selectOptions.find((el: ISingleOption) => el.val === val);\n\n\t\treturn value;\n\t}\n\n\tprivate setTagsItems() {\n\t\tif (this.value) {\n\t\t\t(this.value as string[]).forEach((val) => {\n\t\t\t\tif (!this.selectedItems.includes(val)) this.buildTagsItem(val);\n\n\t\t\t\tthis.selectedItems = !this.selectedItems.includes(val)\n\t\t\t\t\t? [...this.selectedItems, val]\n\t\t\t\t\t: this.selectedItems;\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate buildTagsInput() {\n\t\tthis.tagsInput = document.createElement('input');\n\n\t\tif (this.tagsInputId) this.tagsInput.id = this.tagsInputId;\n\t\tif (this.tagsInputClasses)\n\t\t\tclassToClassList(this.tagsInputClasses, this.tagsInput);\n\n\t\tthis.tagsInput.addEventListener('focus', () => {\n\t\t\tif (!this.isOpened) this.open();\n\t\t});\n\t\tthis.tagsInput.addEventListener('input', () => this.calculateInputWidth());\n\t\tthis.tagsInput.addEventListener(\n\t\t\t'input',\n\t\t\tdebounce((evt: InputEvent) =>\n\t\t\t\tthis.searchOptions((evt.target as HTMLInputElement).value),\n\t\t\t),\n\t\t);\n\t\tthis.tagsInput.addEventListener('keydown', (evt) => {\n\t\t\tif (evt.key === 'Enter' && this.isAddTagOnEnter) {\n\t\t\t\tconst val = (evt.target as HTMLInputElement).value;\n\n\t\t\t\tif (this.selectOptions.find((el: ISingleOption) => el.val === val))\n\t\t\t\t\treturn false;\n\n\t\t\t\tthis.addSelectOption(val, val);\n\t\t\t\tthis.buildOption(val, val);\n\t\t\t\t(\n\t\t\t\t\tthis.dropdown.querySelector(`[data-value=\"${val}\"]`) as HTMLElement\n\t\t\t\t).click();\n\n\t\t\t\tthis.resetTagsInputField();\n\t\t\t\t// this.close();\n\t\t\t}\n\t\t});\n\n\t\tthis.wrapper.append(this.tagsInput);\n\n\t\tsetTimeout(() => {\n\t\t\tthis.adjustInputWidth();\n\t\t\tthis.reassignTagsInputPlaceholder(\n\t\t\t\tthis.value.length ? '' : this.placeholder,\n\t\t\t);\n\t\t});\n\t}\n\n\tprivate buildDropdown() {\n\t\tthis.dropdown = htmlToElement(this.dropdownTag || '
');\n\t\tthis.dropdown.setAttribute('data-hs-select-dropdown', '');\n\n\t\tif (this.dropdownScope === 'parent')\n\t\t\tthis.dropdown.classList.add('absolute', 'top-full');\n\t\tthis.dropdown.role = 'listbox';\n\t\tthis.dropdown.tabIndex = -1;\n\t\tthis.dropdown.ariaOrientation = 'vertical';\n\n\t\tif (!this.isOpened) this.dropdown.classList.add('hidden');\n\n\t\tif (this.dropdownClasses)\n\t\t\tclassToClassList(this.dropdownClasses, this.dropdown);\n\t\tif (this.wrapper) this.wrapper.append(this.dropdown);\n\t\tif (this.dropdown && this.hasSearch) this.buildSearch();\n\t\tif (this.selectOptions)\n\t\t\tthis.selectOptions.forEach((props: ISingleOption, i) =>\n\t\t\t\tthis.buildOption(\n\t\t\t\t\tprops.title,\n\t\t\t\t\tprops.val,\n\t\t\t\t\tprops.disabled,\n\t\t\t\t\tprops.selected,\n\t\t\t\t\tprops.options,\n\t\t\t\t\t`${i}`,\n\t\t\t\t),\n\t\t\t);\n\n\t\tif (this.apiUrl) this.optionsFromRemoteData();\n\n\t\tif (this.dropdownScope === 'window') this.buildPopper();\n\t}\n\n\tprivate buildPopper() {\n\t\tif (typeof Popper !== 'undefined' && Popper.createPopper) {\n\t\t\tdocument.body.appendChild(this.dropdown);\n\n\t\t\tthis.popperInstance = Popper.createPopper(\n\t\t\t\tthis.mode === 'tags' ? this.wrapper : this.toggle,\n\t\t\t\tthis.dropdown,\n\t\t\t\t{\n\t\t\t\t\tplacement: POSITIONS[this.dropdownPlacement] || 'bottom',\n\t\t\t\t\tstrategy: 'fixed',\n\t\t\t\t\tmodifiers: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'offset',\n\t\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\t\toffset: [0, 5],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate updateDropdownWidth() {\n\t\tconst toggle = this.mode === 'tags' ? this.wrapper : this.toggle;\n\n\t\tthis.dropdown.style.width = `${toggle.clientWidth}px`;\n\t}\n\n\tprivate buildSearch() {\n\t\tlet input;\n\t\tthis.searchWrapper = htmlToElement(\n\t\t\tthis.searchWrapperTemplate || '
',\n\t\t);\n\t\tif (this.searchWrapperClasses)\n\t\t\tclassToClassList(this.searchWrapperClasses, this.searchWrapper);\n\t\tinput = this.searchWrapper.querySelector('[data-input]');\n\n\t\tconst search = htmlToElement(\n\t\t\tthis.searchTemplate || '',\n\t\t);\n\t\tthis.search = (\n\t\t\tsearch.tagName === 'INPUT' ? search : search.querySelector(':scope input')\n\t\t) as HTMLInputElement;\n\n\t\tthis.search.placeholder = this.searchPlaceholder;\n\t\tif (this.searchClasses) classToClassList(this.searchClasses, this.search);\n\t\tif (this.searchId) this.search.id = this.searchId;\n\n\t\tthis.search.addEventListener(\n\t\t\t'input',\n\t\t\tdebounce((evt: InputEvent) => {\n\t\t\t\tif (this.apiUrl)\n\t\t\t\t\tthis.remoteSearch((evt.target as HTMLInputElement).value);\n\t\t\t\telse this.searchOptions((evt.target as HTMLInputElement).value);\n\t\t\t}),\n\t\t);\n\n\t\tif (input) input.append(search);\n\t\telse this.searchWrapper.append(search);\n\n\t\tthis.dropdown.append(this.searchWrapper);\n\t}\n\n\tprivate buildOption(\n\t\ttitle: string,\n\t\tval: string,\n\t\tdisabled: boolean = false,\n\t\tselected: boolean = false,\n\t\toptions?: ISingleOptionOptions,\n\t\tindex: string = '1',\n\t\tid?: string,\n\t) {\n\t\tlet template: HTMLElement | null = null;\n\t\tlet titleWrapper: HTMLElement | null = null;\n\t\tlet iconWrapper: HTMLElement | null = null;\n\t\tlet descriptionWrapper: HTMLElement | null = null;\n\n\t\tconst option = htmlToElement(this.optionTag || '
');\n\t\toption.setAttribute('data-value', val);\n\t\toption.setAttribute('data-title-value', title);\n\t\toption.setAttribute('tabIndex', index);\n\t\toption.classList.add('cursor-pointer');\n\t\toption.setAttribute('data-id', id || `${this.optionId}`);\n\t\tif (!id) this.optionId++;\n\t\tif (disabled) option.classList.add('disabled');\n\t\tif (selected) {\n\t\t\tif (this.isMultiple) this.value = [...(this.value as []), val];\n\t\t\telse this.value = val;\n\t\t}\n\t\tif (this.optionTemplate) {\n\t\t\ttemplate = htmlToElement(this.optionTemplate);\n\n\t\t\toption.append(template);\n\t\t}\n\t\tif (template) {\n\t\t\ttitleWrapper = template.querySelector('[data-title]');\n\t\t\ttitleWrapper.textContent = title || '';\n\t\t} else {\n\t\t\toption.textContent = title || '';\n\t\t}\n\t\tif (options) {\n\t\t\tif (options.icon) {\n\t\t\t\tconst img = htmlToElement(this.apiIconTag ?? options.icon);\n\t\t\t\timg.classList.add('max-w-full');\n\n\t\t\t\tif (this.apiUrl) {\n\t\t\t\t\timg.setAttribute('alt', title);\n\t\t\t\t\timg.setAttribute('src', options.icon);\n\t\t\t\t}\n\n\t\t\t\tif (template) {\n\t\t\t\t\ticonWrapper = template.querySelector('[data-icon]');\n\t\t\t\t\ticonWrapper.append(img);\n\t\t\t\t} else {\n\t\t\t\t\tconst icon = htmlToElement('
');\n\t\t\t\t\tif (this.iconClasses) classToClassList(this.iconClasses, icon);\n\n\t\t\t\t\ticon.append(img);\n\t\t\t\t\toption.append(icon);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (options.description) {\n\t\t\t\tif (template) {\n\t\t\t\t\tdescriptionWrapper = template.querySelector('[data-description]');\n\t\t\t\t\tif (descriptionWrapper)\n\t\t\t\t\t\tdescriptionWrapper.append(options.description);\n\t\t\t\t} else {\n\t\t\t\t\tconst description = htmlToElement('
');\n\t\t\t\t\tdescription.textContent = options.description;\n\t\t\t\t\tif (this.descriptionClasses)\n\t\t\t\t\t\tclassToClassList(this.descriptionClasses, description);\n\n\t\t\t\t\toption.append(description);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (\n\t\t\ttemplate &&\n\t\t\ttemplate.querySelector('[data-icon]') &&\n\t\t\t!options &&\n\t\t\t!options?.icon\n\t\t) {\n\t\t\ttemplate.querySelector('[data-icon]').classList.add('hidden');\n\t\t}\n\n\t\tif (\n\t\t\tthis.value &&\n\t\t\t(this.isMultiple ? this.value.includes(val) : this.value === val)\n\t\t)\n\t\t\toption.classList.add('selected');\n\n\t\tif (!disabled)\n\t\t\toption.addEventListener('click', () => this.onSelectOption(val));\n\n\t\tif (this.optionClasses) classToClassList(this.optionClasses, option);\n\t\tif (this.dropdown) this.dropdown.append(option);\n\t\tif (selected) this.setNewValue();\n\t}\n\n\tprivate buildOptionFromRemoteData(\n\t\ttitle: string,\n\t\tval: string,\n\t\tdisabled: boolean = false,\n\t\tselected: boolean = false,\n\t\tindex: string = '1',\n\t\tid: string | null,\n\t\toptions?: ISingleOptionOptions,\n\t) {\n\t\tif (index) {\n\t\t\tthis.buildOption(title, val, disabled, selected, options, index, id);\n\t\t} else {\n\t\t\talert(\n\t\t\t\t'ID parameter is required for generating remote options! Please check your API endpoint have it.',\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate buildOptionsFromRemoteData(data: []) {\n\t\tdata.forEach((el: IApiFieldMap, i) => {\n\t\t\tlet id = null;\n\t\t\tlet title = '';\n\t\t\tconst options: IApiFieldMap & { rest: { [key: string]: unknown } } = {\n\t\t\t\tid: '',\n\t\t\t\ttitle: '',\n\t\t\t\ticon: null,\n\t\t\t\tdescription: null,\n\t\t\t\trest: {},\n\t\t\t};\n\n\t\t\tObject.keys(el).forEach((key: string) => {\n\t\t\t\tif (el[this.apiFieldsMap.id]) id = el[this.apiFieldsMap.id];\n\t\t\t\tif (el[this.apiFieldsMap.title])\n\t\t\t\t\ttitle = el[this.apiFieldsMap.title] as string;\n\t\t\t\tif (el[this.apiFieldsMap.icon])\n\t\t\t\t\toptions.icon = el[this.apiFieldsMap.icon] as string;\n\t\t\t\tif (el[this.apiFieldsMap?.description])\n\t\t\t\t\toptions.description = el[this.apiFieldsMap.description] as string;\n\t\t\t\toptions.rest[key] = el[key];\n\t\t\t});\n\n\t\t\tthis.buildOriginalOption(\n\t\t\t\ttitle,\n\t\t\t\ttitle,\n\t\t\t\tid,\n\t\t\t\tfalse,\n\t\t\t\tfalse,\n\t\t\t\toptions as ISingleOptionOptions & IApiFieldMap,\n\t\t\t);\n\n\t\t\tthis.buildOptionFromRemoteData(\n\t\t\t\ttitle,\n\t\t\t\ttitle,\n\t\t\t\tfalse,\n\t\t\t\tfalse,\n\t\t\t\t`${i}`,\n\t\t\t\tid,\n\t\t\t\toptions as ISingleOptionOptions & IApiFieldMap,\n\t\t\t);\n\t\t});\n\n\t\tthis.sortElements(this.el, 'option');\n\t\tthis.sortElements(this.dropdown, '[data-value]');\n\t}\n\n\tprivate async optionsFromRemoteData(val = '') {\n\t\tconst res = await this.apiRequest(val);\n\t\tthis.remoteOptions = res;\n\n\t\tif (res.length) this.buildOptionsFromRemoteData(this.remoteOptions as []);\n\t\telse console.log('There is no data were responded!');\n\t}\n\n\tprivate async apiRequest(val = '') {\n\t\ttry {\n\t\t\tlet url = this.apiUrl;\n\t\t\tconst search = this.apiSearchQueryKey\n\t\t\t\t? `${this.apiSearchQueryKey}=${val.toLowerCase()}`\n\t\t\t\t: null;\n\t\t\tconst query = `${this.apiQuery}`;\n\t\t\tconst options = this.apiOptions || {};\n\n\t\t\tif (search) url += `?${search}`;\n\t\t\tif (this.apiQuery) url += `${search ? '&' : '?'}${query}`;\n\n\t\t\tconst req = await fetch(url, options);\n\t\t\tconst res = await req.json();\n\n\t\t\treturn this.apiDataPart ? res[this.apiDataPart] : res;\n\t\t} catch (err) {\n\t\t\tconsole.error(err);\n\t\t}\n\t}\n\n\tprivate sortElements(container: HTMLElement, selector: string): void {\n\t\tconst items = Array.from(container.querySelectorAll(selector));\n\n\t\titems.sort((a, b) => {\n\t\t\tconst isASelected =\n\t\t\t\ta.classList.contains('selected') || a.hasAttribute('selected');\n\t\t\tconst isBSelected =\n\t\t\t\tb.classList.contains('selected') || b.hasAttribute('selected');\n\n\t\t\tif (isASelected && !isBSelected) return -1;\n\t\t\tif (!isASelected && isBSelected) return 1;\n\n\t\t\treturn 0;\n\t\t});\n\n\t\titems.forEach((item) => container.appendChild(item));\n\t}\n\n\tprivate async remoteSearch(val: string) {\n\t\tconst res = await this.apiRequest(val);\n\t\tthis.remoteOptions = res;\n\t\tlet newIds = res.map((item: { id: string }) => `${item.id}`);\n\t\tlet restOptions = null;\n\t\tconst pseudoOptions = this.dropdown.querySelectorAll('[data-value]');\n\t\tconst options = this.el.querySelectorAll('[data-hs-select-option]');\n\n\t\toptions.forEach((el: HTMLOptionElement) => {\n\t\t\tconst dataId = el.getAttribute('data-id');\n\n\t\t\tif (!newIds.includes(dataId) && !this.value?.includes(el.value))\n\t\t\t\tthis.destroyOriginalOption(el.value);\n\t\t});\n\n\t\tpseudoOptions.forEach((el: HTMLElement) => {\n\t\t\tconst dataId = el.getAttribute('data-id');\n\n\t\t\tif (\n\t\t\t\t!newIds.includes(dataId) &&\n\t\t\t\t!this.value?.includes(el.getAttribute('data-value'))\n\t\t\t)\n\t\t\t\tthis.destroyOption(el.getAttribute('data-value'));\n\t\t\telse newIds = newIds.filter((item: string) => item !== dataId);\n\t\t});\n\n\t\trestOptions = res.filter((item: { id: string }) =>\n\t\t\tnewIds.includes(`${item.id}`),\n\t\t);\n\n\t\tif (restOptions.length) this.buildOptionsFromRemoteData(restOptions as []);\n\t\telse console.log('There is no data were responded!');\n\t}\n\n\tprivate destroyOption(val: string) {\n\t\tconst option = this.dropdown.querySelector(`[data-value=\"${val}\"]`);\n\n\t\tif (!option) return false;\n\n\t\toption.remove();\n\t}\n\n\tprivate buildOriginalOption(\n\t\ttitle: string,\n\t\tval: string,\n\t\tid?: string | null,\n\t\tdisabled?: boolean,\n\t\tselected?: boolean,\n\t\toptions?: ISingleOptionOptions,\n\t) {\n\t\tconst option = htmlToElement('');\n\t\toption.setAttribute('value', val);\n\t\tif (disabled) option.setAttribute('disabled', 'disabled');\n\t\tif (selected) option.setAttribute('selected', 'selected');\n\t\tif (id) option.setAttribute('data-id', id);\n\t\toption.setAttribute('data-hs-select-option', JSON.stringify(options));\n\t\toption.innerText = title;\n\n\t\tthis.el.append(option);\n\t}\n\n\tprivate destroyOriginalOption(val: string) {\n\t\tconst option = this.el.querySelector(`[value=\"${val}\"]`);\n\n\t\tif (!option) return false;\n\n\t\toption.remove();\n\t}\n\n\tprivate buildTagsInputHelper() {\n\t\tthis.tagsInputHelper = document.createElement('span');\n\t\tthis.tagsInputHelper.style.fontSize = window.getComputedStyle(\n\t\t\tthis.tagsInput,\n\t\t).fontSize;\n\t\tthis.tagsInputHelper.style.fontFamily = window.getComputedStyle(\n\t\t\tthis.tagsInput,\n\t\t).fontFamily;\n\t\tthis.tagsInputHelper.style.fontWeight = window.getComputedStyle(\n\t\t\tthis.tagsInput,\n\t\t).fontWeight;\n\t\tthis.tagsInputHelper.style.letterSpacing = window.getComputedStyle(\n\t\t\tthis.tagsInput,\n\t\t).letterSpacing;\n\t\tthis.tagsInputHelper.style.visibility = 'hidden';\n\t\tthis.tagsInputHelper.style.whiteSpace = 'pre';\n\t\tthis.tagsInputHelper.style.position = 'absolute';\n\n\t\tthis.wrapper.appendChild(this.tagsInputHelper);\n\t}\n\n\tprivate calculateInputWidth() {\n\t\tthis.tagsInputHelper.textContent =\n\t\t\t(this.tagsInput as HTMLInputElement).value ||\n\t\t\t(this.tagsInput as HTMLInputElement).placeholder;\n\n\t\tconst inputPadding =\n\t\t\tparseInt(window.getComputedStyle(this.tagsInput).paddingLeft) +\n\t\t\tparseInt(window.getComputedStyle(this.tagsInput).paddingRight);\n\t\tconst inputBorder =\n\t\t\tparseInt(window.getComputedStyle(this.tagsInput).borderLeftWidth) +\n\t\t\tparseInt(window.getComputedStyle(this.tagsInput).borderRightWidth);\n\t\tconst newWidth =\n\t\t\tthis.tagsInputHelper.offsetWidth + inputPadding + inputBorder;\n\t\tconst maxWidth =\n\t\t\tthis.wrapper.offsetWidth -\n\t\t\t(parseInt(window.getComputedStyle(this.wrapper).paddingLeft) +\n\t\t\t\tparseInt(window.getComputedStyle(this.wrapper).paddingRight));\n\n\t\t(this.tagsInput as HTMLInputElement).style.width = `${\n\t\t\tMath.min(newWidth, maxWidth) + 2\n\t\t}px`;\n\t}\n\n\tprivate adjustInputWidth() {\n\t\tthis.buildTagsInputHelper();\n\t\tthis.calculateInputWidth();\n\t}\n\n\tprivate onSelectOption(val: string) {\n\t\tthis.clearSelections();\n\n\t\tif (this.isMultiple) {\n\t\t\tthis.value = this.value.includes(val)\n\t\t\t\t? Array.from(this.value).filter((el) => el !== val)\n\t\t\t\t: [...Array.from(this.value), val];\n\n\t\t\tthis.selectMultipleItems();\n\t\t\tthis.setNewValue();\n\t\t} else {\n\t\t\tthis.value = val;\n\n\t\t\tthis.selectSingleItem();\n\t\t\tthis.setNewValue();\n\t\t}\n\n\t\tthis.fireEvent('change', this.value);\n\t\tdispatch('change.hs.select', this.el, this.value);\n\n\t\tif (this.mode === 'tags') {\n\t\t\tconst intersection = this.selectedItems.filter(\n\t\t\t\t(x) => !(this.value as string[]).includes(x),\n\t\t\t);\n\t\t\tif (intersection.length) {\n\t\t\t\tintersection.forEach((el) => {\n\t\t\t\t\tthis.selectedItems = this.selectedItems.filter((elI) => elI !== el);\n\t\t\t\t\tthis.wrapper.querySelector(`[data-tag-value=\"${el}\"]`).remove();\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.resetTagsInputField();\n\t\t}\n\n\t\tif (!this.isMultiple) {\n\t\t\tif (this.toggle.querySelector('[data-icon]')) this.setToggleIcon();\n\t\t\tif (this.toggle.querySelector('[data-title]')) this.setToggleTitle();\n\t\t\tthis.close();\n\t\t}\n\n\t\tif (!this.value.length && this.mode === 'tags')\n\t\t\tthis.reassignTagsInputPlaceholder(this.placeholder);\n\n\t\tif (this.isOpened && this.mode === 'tags' && this.tagsInput)\n\t\t\tthis.tagsInput.focus();\n\n\t\tthis.triggerChangeEventForNativeSelect();\n\t}\n\n\tprivate triggerChangeEventForNativeSelect() {\n\t\t// TODO:: test for bugs after comment the line below\n\t\t// (this.el as HTMLSelectElement).value = `${this.value}`;\n\t\tconst selectChangeEvent = new Event('change', { bubbles: true });\n\t\t(this.el as HTMLSelectElement).dispatchEvent(selectChangeEvent);\n\t}\n\n\tprivate addSelectOption(\n\t\ttitle: string,\n\t\tval: string,\n\t\tdisabled?: boolean,\n\t\tselected?: boolean,\n\t\toptions?: ISingleOptionOptions,\n\t) {\n\t\tthis.selectOptions = [\n\t\t\t...this.selectOptions,\n\t\t\t{\n\t\t\t\ttitle,\n\t\t\t\tval,\n\t\t\t\tdisabled,\n\t\t\t\tselected,\n\t\t\t\toptions,\n\t\t\t},\n\t\t];\n\t}\n\n\tprivate removeSelectOption(val: string, isArray = false) {\n\t\tconst hasOption = !!this.selectOptions.some(\n\t\t\t(el: ISingleOption) => el.val === val,\n\t\t);\n\n\t\tif (!hasOption) return false;\n\n\t\tthis.selectOptions = this.selectOptions.filter(\n\t\t\t(el: ISingleOption) => el.val !== val,\n\t\t);\n\n\t\tthis.value = isArray\n\t\t\t? (this.value as string[]).filter((item: string) => item !== val)\n\t\t\t: val;\n\t}\n\n\tprivate resetTagsInputField() {\n\t\t(this.tagsInput as HTMLInputElement).value = '';\n\n\t\tthis.reassignTagsInputPlaceholder('');\n\t\tthis.searchOptions('');\n\t}\n\n\tprivate clearSelections() {\n\t\tArray.from(this.dropdown.children).forEach((el) => {\n\t\t\tif (el.classList.contains('selected')) el.classList.remove('selected');\n\t\t});\n\t\tArray.from(this.el.children).forEach((el) => {\n\t\t\tif ((el as HTMLOptionElement).selected)\n\t\t\t\t(el as HTMLOptionElement).selected = false;\n\t\t});\n\t}\n\n\tprivate setNewValue() {\n\t\tif (this.mode === 'tags') {\n\t\t\tthis.setTagsItems();\n\t\t} else {\n\t\t\tif (this.value?.length) {\n\t\t\t\tthis.toggleTextWrapper.innerHTML = this.stringFromValue();\n\t\t\t} else this.toggleTextWrapper.innerHTML = this.placeholder;\n\t\t}\n\t}\n\n\tprivate stringFromValueBasic(options: ISingleOption[]) {\n\t\tconst value: string[] = [];\n\t\tlet title = '';\n\n\t\toptions.forEach((el: ISingleOption) => {\n\t\t\tif (this.isMultiple) {\n\t\t\t\tif (this.value.includes(el.val)) value.push(el.title);\n\t\t\t} else {\n\t\t\t\tif (this.value === el.val) value.push(el.title);\n\t\t\t}\n\t\t});\n\n\t\tif (\n\t\t\tthis.toggleCountText &&\n\t\t\tthis.toggleCountText !== '' &&\n\t\t\tvalue.length >= this.toggleCountTextMinItems\n\t\t) {\n\t\t\tif (this.toggleCountTextMode === 'nItemsAndCount') {\n\t\t\t\tconst nItems = value.slice(0, this.toggleCountTextMinItems - 1);\n\n\t\t\t\ttitle = `${nItems.join(this.toggleSeparators.items)} ${this.toggleSeparators.betweenItemsAndCounter} ${value.length - nItems.length} ${this.toggleCountText}`;\n\t\t\t} else {\n\t\t\t\ttitle = `${value.length} ${this.toggleCountText}`;\n\t\t\t}\n\t\t} else {\n\t\t\ttitle = value.join(this.toggleSeparators.items);\n\t\t}\n\n\t\treturn title;\n\t}\n\n\tprivate stringFromValueRemoteData() {\n\t\tconst options = this.dropdown.querySelectorAll('[data-title-value]');\n\t\tconst value: string[] = [];\n\t\tlet title = '';\n\n\t\toptions.forEach((el: HTMLElement) => {\n\t\t\tconst dataValue = el.getAttribute('data-value');\n\n\t\t\tif (this.isMultiple) {\n\t\t\t\tif (this.value.includes(dataValue)) value.push(dataValue);\n\t\t\t} else {\n\t\t\t\tif (this.value === dataValue) value.push(dataValue);\n\t\t\t}\n\t\t});\n\n\t\tif (\n\t\t\tthis.toggleCountText &&\n\t\t\tthis.toggleCountText !== '' &&\n\t\t\tvalue.length >= this.toggleCountTextMinItems\n\t\t) {\n\t\t\tif (this.toggleCountTextMode === 'nItemsAndCount') {\n\t\t\t\tconst nItems = value.slice(0, this.toggleCountTextMinItems - 1);\n\n\t\t\t\ttitle = `${nItems.join(this.toggleSeparators.items)} ${this.toggleSeparators.betweenItemsAndCounter} ${value.length - nItems.length} ${this.toggleCountText}`;\n\t\t\t} else {\n\t\t\t\ttitle = `${value.length} ${this.toggleCountText}`;\n\t\t\t}\n\t\t} else {\n\t\t\ttitle = value.join(this.toggleSeparators.items);\n\t\t}\n\n\t\treturn title;\n\t}\n\n\tprivate stringFromValue() {\n\t\tconst result = this.apiUrl\n\t\t\t? this.stringFromValueRemoteData()\n\t\t\t: this.stringFromValueBasic(this.selectOptions);\n\n\t\treturn result;\n\t}\n\n\tprivate selectSingleItem() {\n\t\tconst selectedOption = Array.from(this.el.children).find(\n\t\t\t(el) => this.value === (el as HTMLOptionElement).value,\n\t\t);\n\t\t(selectedOption as HTMLOptionElement).selected = true;\n\n\t\tconst selectedItem = Array.from(this.dropdown.children).find(\n\t\t\t(el) =>\n\t\t\t\tthis.value === (el as HTMLOptionElement).getAttribute('data-value'),\n\t\t);\n\n\t\tif (selectedItem) selectedItem.classList.add('selected');\n\t}\n\n\tprivate selectMultipleItems() {\n\t\tArray.from(this.dropdown.children)\n\t\t\t.filter((el) => this.value.includes(el.getAttribute('data-value')))\n\t\t\t.forEach((el) => el.classList.add('selected'));\n\n\t\tArray.from(this.el.children)\n\t\t\t.filter((el) => this.value.includes((el as HTMLOptionElement).value))\n\t\t\t.forEach((el) => ((el as HTMLOptionElement).selected = true));\n\t}\n\n\tprivate unselectMultipleItems() {\n\t\tArray.from(this.dropdown.children).forEach((el) =>\n\t\t\tel.classList.remove('selected'),\n\t\t);\n\t\tArray.from(this.el.children).forEach(\n\t\t\t(el) => ((el as HTMLOptionElement).selected = false),\n\t\t);\n\t}\n\n\tprivate searchOptions(val: string) {\n\t\tif (this.searchNoResult) {\n\t\t\tthis.searchNoResult.remove();\n\t\t\tthis.searchNoResult = null;\n\t\t}\n\t\tthis.searchNoResult = htmlToElement(this.searchNoResultTemplate);\n\t\tthis.searchNoResult.innerText = this.searchNoResultText;\n\t\tclassToClassList(this.searchNoResultClasses, this.searchNoResult);\n\n\t\tconst options = this.dropdown.querySelectorAll('[data-value]');\n\t\tlet hasItems = false;\n\t\tlet countLimit: number;\n\t\tif (this.searchLimit) countLimit = 0;\n\n\t\toptions.forEach((el) => {\n\t\t\tconst optionVal = el.getAttribute('data-title-value').toLocaleLowerCase();\n\t\t\tconst regexSafeVal = val\n\t\t\t\t? val\n\t\t\t\t\t\t.split('')\n\t\t\t\t\t\t.map((char) => {\n\t\t\t\t\t\t\treturn char.match(/\\w/) ? `${char}[\\\\W_]*` : '\\\\W*';\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.join('')\n\t\t\t\t: '';\n\t\t\tconst regex = new RegExp(regexSafeVal, 'i');\n\t\t\tconst directMatch = this.isSearchDirectMatch;\n\t\t\tconst cleanedOptionVal = optionVal.trim();\n\t\t\tconst condition = val\n\t\t\t\t? directMatch\n\t\t\t\t\t? !cleanedOptionVal.toLowerCase().includes(val.toLowerCase()) ||\n\t\t\t\t\t\tcountLimit >= this.searchLimit\n\t\t\t\t\t: !regex.test(cleanedOptionVal) || countLimit >= this.searchLimit\n\t\t\t\t: !regex.test(cleanedOptionVal);\n\n\t\t\tif (condition) {\n\t\t\t\tel.classList.add('hidden');\n\t\t\t} else {\n\t\t\t\tel.classList.remove('hidden');\n\t\t\t\thasItems = true;\n\n\t\t\t\tif (this.searchLimit) countLimit++;\n\t\t\t}\n\t\t});\n\n\t\tif (!hasItems) this.dropdown.append(this.searchNoResult);\n\t}\n\n\tprivate eraseToggleIcon() {\n\t\tconst icon = this.toggle.querySelector('[data-icon]');\n\n\t\tif (icon) {\n\t\t\ticon.innerHTML = null;\n\t\t\ticon.classList.add('hidden');\n\t\t}\n\t}\n\n\tprivate eraseToggleTitle() {\n\t\tconst title = this.toggle.querySelector('[data-title]');\n\n\t\tif (title) {\n\t\t\ttitle.innerHTML = this.placeholder;\n\t\t} else {\n\t\t\tthis.toggleTextWrapper.innerHTML = this.placeholder;\n\t\t}\n\t}\n\n\tprivate toggleFn() {\n\t\tif (this.isOpened) this.close();\n\t\telse this.open();\n\t}\n\n\t// Public methods\n\tpublic destroy() {\n\t\tconst parent = this.el.parentElement.parentElement;\n\n\t\tthis.el.classList.remove('hidden');\n\t\tthis.el.style.display = '';\n\t\tparent.prepend(this.el);\n\t\tparent.querySelector('.hs-select').remove();\n\t\tthis.wrapper = null;\n\t}\n\n\tpublic open() {\n\t\tconst currentlyOpened =\n\t\t\twindow?.$hsSelectCollection?.find((el) => el.element.isOpened) || null;\n\n\t\tif (currentlyOpened) currentlyOpened.element.close();\n\t\tif (this.animationInProcess) return false;\n\n\t\tthis.animationInProcess = true;\n\n\t\tif (this.dropdownScope === 'window')\n\t\t\tthis.dropdown.classList.add('invisible');\n\t\tthis.dropdown.classList.remove('hidden');\n\n\t\tthis.recalculateDirection();\n\n\t\tsetTimeout(() => {\n\t\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'true';\n\t\t\tthis.wrapper.classList.add('active');\n\t\t\tthis.dropdown.classList.add('opened');\n\t\t\tif (\n\t\t\t\tthis.dropdown.classList.contains('w-full') &&\n\t\t\t\tthis.dropdownScope === 'window'\n\t\t\t)\n\t\t\t\tthis.updateDropdownWidth();\n\t\t\tif (this.popperInstance && this.dropdownScope === 'window') {\n\t\t\t\tthis.popperInstance.update();\n\t\t\t\tthis.dropdown.classList.remove('invisible');\n\t\t\t}\n\t\t\tif (this.hasSearch && !this.preventSearchFocus) this.search.focus();\n\n\t\t\tthis.animationInProcess = false;\n\t\t});\n\n\t\tthis.isOpened = true;\n\t}\n\n\tpublic close() {\n\t\tif (this.animationInProcess) return false;\n\n\t\tthis.animationInProcess = true;\n\n\t\tif (this?.toggle?.ariaExpanded) this.toggle.ariaExpanded = 'false';\n\t\tthis.wrapper.classList.remove('active');\n\t\tthis.dropdown.classList.remove('opened', 'bottom-full', 'top-full');\n\t\tif (this.dropdownDirectionClasses?.bottom)\n\t\t\tthis.dropdown.classList.remove(this.dropdownDirectionClasses.bottom);\n\t\tif (this.dropdownDirectionClasses?.top)\n\t\t\tthis.dropdown.classList.remove(this.dropdownDirectionClasses.top);\n\t\tthis.dropdown.style.marginTop = '';\n\t\tthis.dropdown.style.marginBottom = '';\n\n\t\tafterTransition(this.dropdown, () => {\n\t\t\tthis.dropdown.classList.add('hidden');\n\t\t\tif (this.hasSearch) {\n\t\t\t\tthis.search.value = '';\n\t\t\t\tthis.search.dispatchEvent(new Event('input', { bubbles: true }));\n\t\t\t\tthis.search.blur();\n\t\t\t}\n\n\t\t\tthis.animationInProcess = false;\n\t\t});\n\n\t\tthis.dropdown\n\t\t\t.querySelector('.hs-select-option-highlighted')\n\t\t\t?.classList.remove('hs-select-option-highlighted');\n\t\tthis.isOpened = false;\n\t}\n\n\tpublic addOption(items: ISingleOption | ISingleOption[]) {\n\t\tlet i = `${this.selectOptions.length}`;\n\t\tconst addOption = (option: ISingleOption) => {\n\t\t\tconst { title, val, disabled, selected, options } = option;\n\t\t\tconst hasOption = !!this.selectOptions.some(\n\t\t\t\t(el: ISingleOption) => el.val === val,\n\t\t\t);\n\n\t\t\tif (!hasOption) {\n\t\t\t\tthis.addSelectOption(title, val, disabled, selected, options);\n\t\t\t\tthis.buildOption(title, val, disabled, selected, options, i);\n\t\t\t\tthis.buildOriginalOption(title, val, null, disabled, selected, options);\n\n\t\t\t\tif (selected && !this.isMultiple) this.onSelectOption(val);\n\t\t\t}\n\t\t};\n\n\t\tif (Array.isArray(items)) {\n\t\t\titems.forEach((option) => {\n\t\t\t\taddOption(option);\n\t\t\t});\n\t\t} else {\n\t\t\taddOption(items);\n\t\t}\n\t}\n\n\tpublic removeOption(values: string | string[]) {\n\t\tconst removeOption = (val: string, isArray = false) => {\n\t\t\tconst hasOption = !!this.selectOptions.some(\n\t\t\t\t(el: ISingleOption) => el.val === val,\n\t\t\t);\n\n\t\t\tif (hasOption) {\n\t\t\t\tthis.removeSelectOption(val, isArray);\n\t\t\t\tthis.destroyOption(val);\n\t\t\t\tthis.destroyOriginalOption(val);\n\n\t\t\t\tif (this.value === val) {\n\t\t\t\t\tthis.value = null;\n\n\t\t\t\t\tthis.eraseToggleTitle();\n\t\t\t\t\tthis.eraseToggleIcon();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tif (Array.isArray(values)) {\n\t\t\tvalues.forEach((val) => {\n\t\t\t\tremoveOption(val, this.isMultiple);\n\t\t\t});\n\t\t} else {\n\t\t\tremoveOption(values, this.isMultiple);\n\t\t}\n\n\t\tthis.setNewValue();\n\t}\n\n\tpublic recalculateDirection() {\n\t\tif (\n\t\t\tisEnoughSpace(\n\t\t\t\tthis.dropdown,\n\t\t\t\tthis.toggle || this.tagsInput,\n\t\t\t\t'bottom',\n\t\t\t\tthis.dropdownSpace,\n\t\t\t\tthis.viewport,\n\t\t\t)\n\t\t) {\n\t\t\tthis.dropdown.classList.remove('bottom-full');\n\t\t\tif (this.dropdownDirectionClasses?.bottom)\n\t\t\t\tthis.dropdown.classList.remove(this.dropdownDirectionClasses.bottom);\n\t\t\tthis.dropdown.style.marginBottom = '';\n\t\t\tthis.dropdown.classList.add('top-full');\n\t\t\tif (this.dropdownDirectionClasses?.top)\n\t\t\t\tthis.dropdown.classList.add(this.dropdownDirectionClasses.top);\n\t\t\tthis.dropdown.style.marginTop = `${this.dropdownSpace}px`;\n\t\t} else {\n\t\t\tthis.dropdown.classList.remove('top-full');\n\t\t\tif (this.dropdownDirectionClasses?.top)\n\t\t\t\tthis.dropdown.classList.remove(this.dropdownDirectionClasses.top);\n\t\t\tthis.dropdown.style.marginTop = '';\n\t\t\tthis.dropdown.classList.add('bottom-full');\n\t\t\tif (this.dropdownDirectionClasses?.bottom)\n\t\t\t\tthis.dropdown.classList.add(this.dropdownDirectionClasses.bottom);\n\t\t\tthis.dropdown.style.marginBottom = `${this.dropdownSpace}px`;\n\t\t}\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsSelectCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsSelectCollection) window.$hsSelectCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-select]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsSelectCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\tconst data = el.getAttribute('data-hs-select');\n\t\t\t\t\tconst options: ISelectOptions = data ? JSON.parse(data) : {};\n\n\t\t\t\t\tnew HSSelect(el, options);\n\t\t\t\t}\n\t\t\t});\n\n\t\tif (window.$hsSelectCollection) {\n\t\t\twindow.addEventListener('click', (evt) => {\n\t\t\t\tconst evtTarget = evt.target;\n\n\t\t\t\tHSSelect.closeCurrentlyOpened(evtTarget as HTMLElement);\n\t\t\t});\n\n\t\t\tdocument.addEventListener('keydown', (evt) =>\n\t\t\t\tHSSelect.accessibility(evt),\n\t\t\t);\n\t\t}\n\t}\n\n\tstatic open(target: HTMLElement | string) {\n\t\tconst elInCollection = window.$hsSelectCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection && !elInCollection.element.isOpened)\n\t\t\telInCollection.element.open();\n\t}\n\n\tstatic close(target: HTMLElement | string) {\n\t\tconst elInCollection = window.$hsSelectCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection && elInCollection.element.isOpened) {\n\t\t\telInCollection.element.close();\n\t\t}\n\t}\n\n\tstatic closeCurrentlyOpened(evtTarget: HTMLElement | null = null) {\n\t\tif (\n\t\t\t!evtTarget.closest('.hs-select.active') &&\n\t\t\t!evtTarget.closest('[data-hs-select-dropdown].opened')\n\t\t) {\n\t\t\tconst currentlyOpened =\n\t\t\t\twindow.$hsSelectCollection.filter((el) => el.element.isOpened) || null;\n\n\t\t\tif (currentlyOpened) {\n\t\t\t\tcurrentlyOpened.forEach((el) => {\n\t\t\t\t\tel.element.close();\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\t// Accessibility methods\n\tstatic accessibility(evt: KeyboardEvent) {\n\t\tconst target = window.$hsSelectCollection.find((el) => el.element.isOpened);\n\n\t\tif (\n\t\t\ttarget &&\n\t\t\tSELECT_ACCESSIBILITY_KEY_SET.includes(evt.code) &&\n\t\t\t!evt.metaKey\n\t\t) {\n\t\t\tswitch (evt.code) {\n\t\t\t\tcase 'Escape':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tthis.onEscape();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ArrowUp':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onArrow();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ArrowDown':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onArrow(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Tab':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onTab(evt.shiftKey);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Home':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onStartEnd();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'End':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tevt.stopImmediatePropagation();\n\t\t\t\t\tthis.onStartEnd(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Enter':\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\tthis.onEnter(evt);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic onEscape() {\n\t\tconst target = window.$hsSelectCollection.find((el) => el.element.isOpened);\n\n\t\tif (target) target.element.close();\n\t}\n\n\tstatic onArrow(isArrowUp = true) {\n\t\tconst target = window.$hsSelectCollection.find((el) => el.element.isOpened);\n\n\t\tif (target) {\n\t\t\tconst dropdown = target.element.dropdown;\n\n\t\t\tif (!dropdown) return false;\n\n\t\t\tconst preparedOptions = isArrowUp\n\t\t\t\t? Array.from(\n\t\t\t\t\t\tdropdown.querySelectorAll(':scope > *:not(.hidden)'),\n\t\t\t\t\t).reverse()\n\t\t\t\t: Array.from(dropdown.querySelectorAll(':scope > *:not(.hidden)'));\n\t\t\tconst options = preparedOptions.filter(\n\t\t\t\t(el: any) => !el.classList.contains('disabled'),\n\t\t\t);\n\t\t\tconst current =\n\t\t\t\tdropdown.querySelector('.hs-select-option-highlighted') ||\n\t\t\t\tdropdown.querySelector('.selected');\n\t\t\tif (!current) options[0].classList.add('hs-select-option-highlighted');\n\t\t\tlet currentInd = options.findIndex((el: any) => el === current);\n\n\t\t\tif (currentInd + 1 < options.length) {\n\t\t\t\tcurrentInd++;\n\t\t\t}\n\n\t\t\t(options[currentInd] as HTMLButtonElement).focus();\n\t\t\tif (current) current.classList.remove('hs-select-option-highlighted');\n\t\t\toptions[currentInd].classList.add('hs-select-option-highlighted');\n\t\t}\n\t}\n\n\tstatic onTab(isArrowUp = true) {\n\t\tconst target = window.$hsSelectCollection.find((el) => el.element.isOpened);\n\n\t\tif (target) {\n\t\t\tconst dropdown = target.element.dropdown;\n\n\t\t\tif (!dropdown) return false;\n\n\t\t\tconst preparedOptions = isArrowUp\n\t\t\t\t? Array.from(\n\t\t\t\t\t\tdropdown.querySelectorAll(':scope > *:not(.hidden)'),\n\t\t\t\t\t).reverse()\n\t\t\t\t: Array.from(dropdown.querySelectorAll(':scope > *:not(.hidden)'));\n\t\t\tconst options = preparedOptions.filter(\n\t\t\t\t(el: any) => !el.classList.contains('disabled'),\n\t\t\t);\n\t\t\tconst current =\n\t\t\t\tdropdown.querySelector('.hs-select-option-highlighted') ||\n\t\t\t\tdropdown.querySelector('.selected');\n\t\t\tif (!current) options[0].classList.add('hs-select-option-highlighted');\n\t\t\tlet currentInd = options.findIndex((el: any) => el === current);\n\n\t\t\tif (currentInd + 1 < options.length) {\n\t\t\t\tcurrentInd++;\n\t\t\t} else {\n\t\t\t\tif (current) current.classList.remove('hs-select-option-highlighted');\n\t\t\t\ttarget.element.close();\n\t\t\t\ttarget.element.toggle.focus();\n\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t(options[currentInd] as HTMLButtonElement).focus();\n\t\t\tif (current) current.classList.remove('hs-select-option-highlighted');\n\t\t\toptions[currentInd].classList.add('hs-select-option-highlighted');\n\t\t}\n\t}\n\n\tstatic onStartEnd(isStart = true) {\n\t\tconst target = window.$hsSelectCollection.find((el) => el.element.isOpened);\n\n\t\tif (target) {\n\t\t\tconst dropdown = target.element.dropdown;\n\n\t\t\tif (!dropdown) return false;\n\n\t\t\tconst preparedOptions = isStart\n\t\t\t\t? Array.from(dropdown.querySelectorAll(':scope > *:not(.hidden)'))\n\t\t\t\t: Array.from(\n\t\t\t\t\t\tdropdown.querySelectorAll(':scope > *:not(.hidden)'),\n\t\t\t\t\t).reverse();\n\t\t\tconst options = preparedOptions.filter(\n\t\t\t\t(el: any) => !el.classList.contains('disabled'),\n\t\t\t);\n\t\t\tconst current = dropdown.querySelector('.hs-select-option-highlighted');\n\n\t\t\tif (options.length) {\n\t\t\t\t(options[0] as HTMLButtonElement).focus();\n\t\t\t\tif (current) current.classList.remove('hs-select-option-highlighted');\n\t\t\t\toptions[0].classList.add('hs-select-option-highlighted');\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic onEnter(evt: Event) {\n\t\tconst select = (evt.target as HTMLElement).previousSibling;\n\n\t\tif (window.$hsSelectCollection.find((el) => el.element.el === select)) {\n\t\t\tconst opened = window.$hsSelectCollection.find(\n\t\t\t\t(el) => el.element.isOpened,\n\t\t\t);\n\t\t\tconst target = window.$hsSelectCollection.find(\n\t\t\t\t(el) => el.element.el === select,\n\t\t\t);\n\n\t\t\topened.element.close();\n\t\t\ttarget.element.open();\n\t\t} else {\n\t\t\tconst target = window.$hsSelectCollection.find(\n\t\t\t\t(el) => el.element.isOpened,\n\t\t\t);\n\n\t\t\tif (target)\n\t\t\t\ttarget.element.onSelectOption(\n\t\t\t\t\t(evt.target as HTMLElement).dataset.value || '',\n\t\t\t\t);\n\t\t}\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSSelect: Function;\n\t\t$hsSelectCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSSelect.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Select collection:', window.$hsSelectCollection);\n});\n\ndocument.addEventListener('scroll', () => {\n\tif (!window.$hsSelectCollection) return false;\n\n\tconst target = window.$hsSelectCollection.find((el) => el.element.isOpened);\n\n\tif (target) target.element.recalculateDirection();\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSSelect = HSSelect;\n}\n\nexport default HSSelect;\n","/*\n * HSStepper\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { dispatch } from '../../utils';\n\nimport {\n\tIStepperOptions,\n\tIStepper,\n\tIStepperItem,\n} from '../stepper/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSStepper extends HSBasePlugin<{}> implements IStepper {\n\tprivate currentIndex: number | null;\n\tprivate readonly mode: string | null;\n\tprivate isCompleted: boolean | null;\n\n\tprivate totalSteps: number | null;\n\n\tprivate navItems: IStepperItem[] | null;\n\tprivate contentItems: IStepperItem[] | null;\n\tprivate backBtn: HTMLElement | null;\n\tprivate nextBtn: HTMLElement | null;\n\tprivate skipBtn: HTMLElement | null;\n\tprivate completeStepBtn: HTMLElement | null;\n\tprivate completeStepBtnDefaultText: string | null;\n\tprivate finishBtn: HTMLElement | null;\n\tprivate resetBtn: HTMLElement | null;\n\n\tconstructor(el: HTMLElement, options?: IStepperOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-stepper');\n\t\tconst dataOptions: IStepperOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.currentIndex = concatOptions?.currentIndex || 1;\n\t\tthis.mode = concatOptions?.mode || 'linear';\n\t\tthis.isCompleted =\n\t\t\ttypeof concatOptions?.isCompleted !== 'undefined'\n\t\t\t\t? concatOptions?.isCompleted\n\t\t\t\t: false;\n\n\t\tthis.totalSteps = 1;\n\n\t\tthis.navItems = [];\n\t\tthis.contentItems = [];\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsStepperCollection, this);\n\n\t\tthis.buildNav();\n\t\tthis.buildContent();\n\t\tthis.buildButtons();\n\t\tthis.setTotalSteps();\n\t}\n\n\tprivate getUncompletedSteps(inIncludedSkipped: boolean = false) {\n\t\treturn this.navItems.filter(({ isCompleted, isSkip }) =>\n\t\t\tinIncludedSkipped ? !isCompleted || isSkip : !isCompleted && !isSkip,\n\t\t);\n\t}\n\n\tprivate setTotalSteps() {\n\t\tthis.navItems.forEach((item) => {\n\t\t\tconst { index } = item;\n\n\t\t\tif (index > this.totalSteps) this.totalSteps = index;\n\t\t});\n\t}\n\n\t// Nav\n\tprivate buildNav() {\n\t\tthis.el\n\t\t\t.querySelectorAll('[data-hs-stepper-nav-item]')\n\t\t\t.forEach((el) => this.addNavItem(el as HTMLElement));\n\n\t\tthis.navItems.forEach((item) => this.buildNavItem(item));\n\t}\n\n\tprivate buildNavItem(item: IStepperItem) {\n\t\tconst { index, isDisabled, el } = item;\n\n\t\tif (index === this.currentIndex) this.setCurrentNavItem();\n\n\t\tif (this.mode !== 'linear' || isDisabled) {\n\t\t\tel.addEventListener('click', () => this.handleNavItemClick(item));\n\t\t}\n\t}\n\n\tprivate addNavItem(el: HTMLElement) {\n\t\tconst {\n\t\t\tindex,\n\t\t\tisFinal = false,\n\t\t\tisCompleted = false,\n\t\t\tisSkip = false,\n\t\t\tisOptional = false,\n\t\t\tisDisabled = false,\n\t\t\tisProcessed = false,\n\t\t\thasError = false,\n\t\t} = JSON.parse(el.getAttribute('data-hs-stepper-nav-item'));\n\n\t\tif (isCompleted) el.classList.add('success');\n\t\tif (isSkip) el.classList.add('skipped');\n\t\tif (isDisabled) {\n\t\t\tif (el.tagName === 'BUTTON' || el.tagName === 'INPUT')\n\t\t\t\tel.setAttribute('disabled', 'disabled');\n\n\t\t\tel.classList.add('disabled');\n\t\t}\n\t\tif (hasError) el.classList.add('error');\n\n\t\tthis.navItems.push({\n\t\t\tindex,\n\t\t\tisFinal,\n\t\t\tisCompleted,\n\t\t\tisSkip,\n\t\t\tisOptional,\n\t\t\tisDisabled,\n\t\t\tisProcessed,\n\t\t\thasError,\n\t\t\tel: el as HTMLElement,\n\t\t});\n\t}\n\n\tprivate setCurrentNavItem() {\n\t\tthis.navItems.forEach((item) => {\n\t\t\tconst { index, el } = item;\n\n\t\t\tif (index === this.currentIndex) this.setCurrentNavItemActions(el);\n\t\t\telse this.unsetCurrentNavItemActions(el);\n\t\t});\n\t}\n\n\tprivate setCurrentNavItemActions(el: HTMLElement) {\n\t\tel.classList.add('active');\n\n\t\tthis.fireEvent('active', this.currentIndex);\n\t\tdispatch('active.hs.stepper', this.el, this.currentIndex);\n\t}\n\n\tprivate getNavItem(n = this.currentIndex) {\n\t\treturn this.navItems.find(({ index }) => index === n);\n\t}\n\n\tprivate setProcessedNavItemActions(item: IStepperItem) {\n\t\titem.isProcessed = true;\n\n\t\titem.el.classList.add('processed');\n\t}\n\n\tprivate setErrorNavItemActions(item: IStepperItem) {\n\t\titem.hasError = true;\n\n\t\titem.el.classList.add('error');\n\t}\n\n\tprivate unsetCurrentNavItemActions(el: HTMLElement) {\n\t\tel.classList.remove('active');\n\t}\n\n\tprivate handleNavItemClick(item: IStepperItem) {\n\t\tconst { index } = item;\n\n\t\tthis.currentIndex = index;\n\n\t\tthis.setCurrentNavItem();\n\t\tthis.setCurrentContentItem();\n\n\t\tthis.checkForTheFirstStep();\n\t}\n\n\t// Content\n\tprivate buildContent() {\n\t\tthis.el\n\t\t\t.querySelectorAll('[data-hs-stepper-content-item]')\n\t\t\t.forEach((el) => this.addContentItem(el as HTMLElement));\n\n\t\tthis.navItems.forEach((item) => this.buildContentItem(item));\n\t}\n\n\tprivate buildContentItem(item: IStepperItem) {\n\t\tconst { index } = item;\n\n\t\tif (index === this.currentIndex) this.setCurrentContentItem();\n\t}\n\n\tprivate addContentItem(el: HTMLElement) {\n\t\tconst {\n\t\t\tindex,\n\t\t\tisFinal = false,\n\t\t\tisCompleted = false,\n\t\t\tisSkip = false,\n\t\t} = JSON.parse(el.getAttribute('data-hs-stepper-content-item'));\n\n\t\tif (isCompleted) el.classList.add('success');\n\t\tif (isSkip) el.classList.add('skipped');\n\n\t\tthis.contentItems.push({\n\t\t\tindex,\n\t\t\tisFinal,\n\t\t\tisCompleted,\n\t\t\tisSkip,\n\t\t\tel: el as HTMLElement,\n\t\t});\n\t}\n\n\tprivate setCurrentContentItem() {\n\t\tif (this.isCompleted) {\n\t\t\tconst finalContentItem = this.contentItems.find(({ isFinal }) => isFinal);\n\t\t\tconst otherContentItems = this.contentItems.filter(\n\t\t\t\t({ isFinal }) => !isFinal,\n\t\t\t);\n\t\t\tfinalContentItem.el.style.display = '';\n\t\t\totherContentItems.forEach(({ el }) => (el.style.display = 'none'));\n\n\t\t\treturn false;\n\t\t}\n\n\t\tthis.contentItems.forEach((item) => {\n\t\t\tconst { index, el } = item;\n\n\t\t\tif (index === this.currentIndex) this.setCurrentContentItemActions(el);\n\t\t\telse this.unsetCurrentContentItemActions(el);\n\t\t});\n\t}\n\n\tprivate hideAllContentItems() {\n\t\tthis.contentItems.forEach(({ el }) => (el.style.display = 'none'));\n\t}\n\n\tprivate setCurrentContentItemActions(el: HTMLElement) {\n\t\tel.style.display = '';\n\t}\n\n\tprivate unsetCurrentContentItemActions(el: HTMLElement) {\n\t\tel.style.display = 'none';\n\t}\n\n\tprivate disableAll() {\n\t\tconst currentNavItem = this.getNavItem(this.currentIndex);\n\t\tcurrentNavItem.hasError = false;\n\t\tcurrentNavItem.isCompleted = false;\n\t\tcurrentNavItem.isDisabled = false;\n\t\tcurrentNavItem.el.classList.remove('error', 'success');\n\n\t\tthis.disableButtons();\n\t}\n\n\tprivate disableNavItemActions(item: IStepperItem) {\n\t\titem.isDisabled = true;\n\t\titem.el.classList.add('disabled');\n\t}\n\n\tprivate enableNavItemActions(item: IStepperItem) {\n\t\titem.isDisabled = false;\n\t\titem.el.classList.remove('disabled');\n\t}\n\n\t// Buttons\n\tprivate buildButtons() {\n\t\tthis.backBtn = this.el.querySelector('[data-hs-stepper-back-btn]');\n\t\tthis.nextBtn = this.el.querySelector('[data-hs-stepper-next-btn]');\n\t\tthis.skipBtn = this.el.querySelector('[data-hs-stepper-skip-btn]');\n\t\tthis.completeStepBtn = this.el.querySelector(\n\t\t\t'[data-hs-stepper-complete-step-btn]',\n\t\t);\n\t\tthis.finishBtn = this.el.querySelector('[data-hs-stepper-finish-btn]');\n\t\tthis.resetBtn = this.el.querySelector('[data-hs-stepper-reset-btn]');\n\n\t\tthis.buildBackButton();\n\t\tthis.buildNextButton();\n\t\tthis.buildSkipButton();\n\t\tthis.buildCompleteStepButton();\n\t\tthis.buildFinishButton();\n\t\tthis.buildResetButton();\n\t}\n\n\t// back\n\tprivate buildBackButton() {\n\t\tif (!this.backBtn) return;\n\n\t\tthis.checkForTheFirstStep();\n\n\t\tthis.backBtn.addEventListener('click', () => {\n\t\t\tthis.handleBackButtonClick();\n\n\t\t\tif (this.mode === 'linear') {\n\t\t\t\tconst currentNavItem = this.navItems.find(\n\t\t\t\t\t({ index }) => index === this.currentIndex,\n\t\t\t\t);\n\t\t\t\tconst currentContentItem = this.contentItems.find(\n\t\t\t\t\t({ index }) => index === this.currentIndex,\n\t\t\t\t);\n\n\t\t\t\tif (!currentNavItem || !currentContentItem) return;\n\n\t\t\t\tif (currentNavItem.isCompleted) {\n\t\t\t\t\tcurrentNavItem.isCompleted = false;\n\t\t\t\t\tcurrentNavItem.isSkip = false;\n\n\t\t\t\t\tcurrentNavItem.el.classList.remove('success', 'skipped');\n\t\t\t\t}\n\n\t\t\t\tif (currentContentItem.isCompleted) {\n\t\t\t\t\tcurrentContentItem.isCompleted = false;\n\t\t\t\t\tcurrentContentItem.isSkip = false;\n\n\t\t\t\t\tcurrentContentItem.el.classList.remove('success', 'skipped');\n\t\t\t\t}\n\n\t\t\t\tif (this.mode === 'linear' && this.currentIndex !== this.totalSteps) {\n\t\t\t\t\tif (this.nextBtn) this.nextBtn.style.display = '';\n\t\t\t\t\tif (this.completeStepBtn) this.completeStepBtn.style.display = '';\n\t\t\t\t}\n\n\t\t\t\tthis.showSkipButton();\n\t\t\t\tthis.showFinishButton();\n\t\t\t\tthis.showCompleteStepButton();\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate handleBackButtonClick() {\n\t\tif (this.currentIndex === 1) return;\n\n\t\tif (this.mode === 'linear') {\n\t\t\tthis.removeOptionalClasses();\n\t\t}\n\n\t\tthis.currentIndex--;\n\n\t\tif (this.mode === 'linear') {\n\t\t\tthis.removeOptionalClasses();\n\t\t}\n\n\t\tthis.setCurrentNavItem();\n\t\tthis.setCurrentContentItem();\n\n\t\tthis.checkForTheFirstStep();\n\t\tif (this.completeStepBtn)\n\t\t\tthis.changeTextAndDisableCompleteButtonIfStepCompleted();\n\n\t\tthis.fireEvent('back', this.currentIndex);\n\t\tdispatch('back.hs.stepper', this.el, this.currentIndex);\n\t}\n\n\tprivate checkForTheFirstStep() {\n\t\tif (this.currentIndex === 1) {\n\t\t\tthis.setToDisabled(this.backBtn);\n\t\t} else {\n\t\t\tthis.setToNonDisabled(this.backBtn);\n\t\t}\n\t}\n\n\tprivate setToDisabled(el: HTMLElement) {\n\t\tif (el.tagName === 'BUTTON' || el.tagName === 'INPUT')\n\t\t\tel.setAttribute('disabled', 'disabled');\n\n\t\tel.classList.add('disabled');\n\t}\n\n\tprivate setToNonDisabled(el: HTMLElement) {\n\t\tif (el.tagName === 'BUTTON' || el.tagName === 'INPUT')\n\t\t\tel.removeAttribute('disabled');\n\n\t\tel.classList.remove('disabled');\n\t}\n\n\t// next\n\tprivate buildNextButton() {\n\t\tif (!this.nextBtn) return;\n\n\t\tthis.nextBtn.addEventListener('click', () => {\n\t\t\tthis.fireEvent('beforeNext', this.currentIndex);\n\t\t\tdispatch('beforeNext.hs.stepper', this.el, this.currentIndex);\n\n\t\t\tif (this.getNavItem(this.currentIndex)?.isProcessed) {\n\t\t\t\tthis.disableAll();\n\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthis.goToNext();\n\t\t});\n\t}\n\n\tprivate unsetProcessedNavItemActions(item: IStepperItem) {\n\t\titem.isProcessed = false;\n\n\t\titem.el.classList.remove('processed');\n\t}\n\n\tprivate handleNextButtonClick(infinite = true) {\n\t\tif (infinite) {\n\t\t\tif (this.currentIndex === this.totalSteps) this.currentIndex = 1;\n\t\t\telse this.currentIndex++;\n\t\t} else {\n\t\t\tconst nonCompletedSteps = this.getUncompletedSteps();\n\n\t\t\tif (nonCompletedSteps.length === 1) {\n\t\t\t\tconst { index } = nonCompletedSteps[0];\n\n\t\t\t\tthis.currentIndex = index;\n\t\t\t} else {\n\t\t\t\tif (this.currentIndex === this.totalSteps) return;\n\n\t\t\t\tthis.currentIndex++;\n\t\t\t}\n\t\t}\n\n\t\tif (this.mode === 'linear') {\n\t\t\tthis.removeOptionalClasses();\n\t\t}\n\n\t\tthis.setCurrentNavItem();\n\t\tthis.setCurrentContentItem();\n\n\t\tthis.checkForTheFirstStep();\n\t\tif (this.completeStepBtn)\n\t\t\tthis.changeTextAndDisableCompleteButtonIfStepCompleted();\n\n\t\tthis.showSkipButton();\n\t\tthis.showFinishButton();\n\t\tthis.showCompleteStepButton();\n\n\t\tthis.fireEvent('next', this.currentIndex);\n\t\tdispatch('next.hs.stepper', this.el, this.currentIndex);\n\t}\n\n\tprivate removeOptionalClasses() {\n\t\tconst currentNavItem = this.navItems.find(\n\t\t\t({ index }) => index === this.currentIndex,\n\t\t);\n\t\tconst currentContentItem = this.contentItems.find(\n\t\t\t({ index }) => index === this.currentIndex,\n\t\t);\n\n\t\tcurrentNavItem.isSkip = false;\n\t\tcurrentNavItem.hasError = false;\n\t\tcurrentNavItem.isDisabled = false;\n\t\tcurrentContentItem.isSkip = false;\n\n\t\tcurrentNavItem.el.classList.remove('skipped', 'success', 'error');\n\t\tcurrentContentItem.el.classList.remove('skipped', 'success', 'error');\n\t}\n\n\t// skip\n\tprivate buildSkipButton() {\n\t\tif (!this.skipBtn) return;\n\n\t\tthis.showSkipButton();\n\n\t\tthis.skipBtn.addEventListener('click', () => {\n\t\t\tthis.handleSkipButtonClick();\n\n\t\t\tif (this.mode === 'linear' && this.currentIndex === this.totalSteps) {\n\t\t\t\tif (this.nextBtn) this.nextBtn.style.display = 'none';\n\t\t\t\tif (this.completeStepBtn) this.completeStepBtn.style.display = 'none';\n\t\t\t\tif (this.finishBtn) this.finishBtn.style.display = '';\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate setSkipItem(n?: number) {\n\t\tconst targetNavItem = this.navItems.find(\n\t\t\t({ index }) => index === (n || this.currentIndex),\n\t\t);\n\t\tconst targetContentItem = this.contentItems.find(\n\t\t\t({ index }) => index === (n || this.currentIndex),\n\t\t);\n\n\t\tif (!targetNavItem || !targetContentItem) return;\n\n\t\tthis.setSkipItemActions(targetNavItem);\n\t\tthis.setSkipItemActions(targetContentItem);\n\t}\n\n\tprivate setSkipItemActions(item: IStepperItem) {\n\t\titem.isSkip = true;\n\n\t\titem.el.classList.add('skipped');\n\t}\n\n\tprivate showSkipButton() {\n\t\tif (!this.skipBtn) return;\n\n\t\tconst { isOptional } = this.navItems.find(\n\t\t\t({ index }) => index === this.currentIndex,\n\t\t);\n\n\t\tif (isOptional) this.skipBtn.style.display = '';\n\t\telse this.skipBtn.style.display = 'none';\n\t}\n\n\tprivate handleSkipButtonClick() {\n\t\tthis.setSkipItem();\n\t\tthis.handleNextButtonClick();\n\n\t\tthis.fireEvent('skip', this.currentIndex);\n\t\tdispatch('skip.hs.stepper', this.el, this.currentIndex);\n\t}\n\n\t// complete\n\tprivate buildCompleteStepButton() {\n\t\tif (!this.completeStepBtn) return;\n\n\t\tthis.completeStepBtnDefaultText = this.completeStepBtn.innerText;\n\n\t\tthis.completeStepBtn.addEventListener('click', () =>\n\t\t\tthis.handleCompleteStepButtonClick(),\n\t\t);\n\t}\n\n\tprivate changeTextAndDisableCompleteButtonIfStepCompleted() {\n\t\tconst currentNavItem = this.navItems.find(\n\t\t\t({ index }) => index === this.currentIndex,\n\t\t);\n\t\tconst { completedText } = JSON.parse(\n\t\t\tthis.completeStepBtn.getAttribute('data-hs-stepper-complete-step-btn'),\n\t\t);\n\n\t\tif (!currentNavItem) return;\n\n\t\tif (currentNavItem.isCompleted) {\n\t\t\tthis.completeStepBtn.innerText =\n\t\t\t\tcompletedText || this.completeStepBtnDefaultText;\n\t\t\tthis.completeStepBtn.setAttribute('disabled', 'disabled');\n\t\t\tthis.completeStepBtn.classList.add('disabled');\n\t\t} else {\n\t\t\tthis.completeStepBtn.innerText = this.completeStepBtnDefaultText;\n\t\t\tthis.completeStepBtn.removeAttribute('disabled');\n\t\t\tthis.completeStepBtn.classList.remove('disabled');\n\t\t}\n\t}\n\n\tprivate setCompleteItem(n?: number) {\n\t\tconst targetNavItem = this.navItems.find(\n\t\t\t({ index }) => index === (n || this.currentIndex),\n\t\t);\n\t\tconst targetContentItem = this.contentItems.find(\n\t\t\t({ index }) => index === (n || this.currentIndex),\n\t\t);\n\n\t\tif (!targetNavItem || !targetContentItem) return;\n\n\t\tthis.setCompleteItemActions(targetNavItem);\n\t\tthis.setCompleteItemActions(targetContentItem);\n\t}\n\n\tprivate setCompleteItemActions(item: IStepperItem) {\n\t\titem.isCompleted = true;\n\n\t\titem.el.classList.add('success');\n\t}\n\n\tprivate showCompleteStepButton() {\n\t\tif (!this.completeStepBtn) return;\n\n\t\tconst nonCompletedSteps = this.getUncompletedSteps();\n\n\t\tif (nonCompletedSteps.length === 1)\n\t\t\tthis.completeStepBtn.style.display = 'none';\n\t\telse this.completeStepBtn.style.display = '';\n\t}\n\n\tprivate handleCompleteStepButtonClick() {\n\t\tthis.setCompleteItem();\n\n\t\tthis.fireEvent('complete', this.currentIndex);\n\t\tdispatch('complete.hs.stepper', this.el, this.currentIndex);\n\n\t\tthis.handleNextButtonClick(false);\n\t\tthis.showFinishButton();\n\t\tthis.showCompleteStepButton();\n\t\tthis.checkForTheFirstStep();\n\t\tif (this.completeStepBtn)\n\t\t\tthis.changeTextAndDisableCompleteButtonIfStepCompleted();\n\t\tthis.showSkipButton();\n\t}\n\n\t// finish\n\tprivate buildFinishButton() {\n\t\tif (!this.finishBtn) return;\n\n\t\tif (this.isCompleted) {\n\t\t\tthis.setCompleted();\n\t\t}\n\n\t\tthis.finishBtn.addEventListener('click', () =>\n\t\t\tthis.handleFinishButtonClick(),\n\t\t);\n\t}\n\n\tprivate setCompleted() {\n\t\tthis.el.classList.add('completed');\n\t}\n\n\tprivate unsetCompleted() {\n\t\tthis.el.classList.remove('completed');\n\t}\n\n\tprivate showFinishButton() {\n\t\tif (!this.finishBtn) return;\n\n\t\tconst nonCompletedSteps = this.getUncompletedSteps();\n\n\t\tif (nonCompletedSteps.length === 1) this.finishBtn.style.display = '';\n\t\telse this.finishBtn.style.display = 'none';\n\t}\n\n\tprivate handleFinishButtonClick() {\n\t\tconst uncompletedSteps = this.getUncompletedSteps();\n\t\tconst uncompletedOrSkipSteps = this.getUncompletedSteps(true);\n\t\tconst { el } = this.contentItems.find(({ isFinal }) => isFinal);\n\n\t\tif (uncompletedSteps.length)\n\t\t\tuncompletedSteps.forEach(({ index }) => this.setCompleteItem(index));\n\n\t\tthis.currentIndex = this.totalSteps;\n\n\t\tthis.setCurrentNavItem();\n\t\tthis.hideAllContentItems();\n\n\t\tconst currentNavItem = this.navItems.find(\n\t\t\t({ index }) => index === this.currentIndex,\n\t\t);\n\t\tconst currentNavItemEl = currentNavItem ? currentNavItem.el : null;\n\n\t\tcurrentNavItemEl.classList.remove('active');\n\n\t\tel.style.display = 'block';\n\t\tif (this.backBtn) this.backBtn.style.display = 'none';\n\t\tif (this.nextBtn) this.nextBtn.style.display = 'none';\n\t\tif (this.skipBtn) this.skipBtn.style.display = 'none';\n\t\tif (this.completeStepBtn) this.completeStepBtn.style.display = 'none';\n\t\tif (this.finishBtn) this.finishBtn.style.display = 'none';\n\t\tif (this.resetBtn) this.resetBtn.style.display = '';\n\n\t\tif (uncompletedOrSkipSteps.length <= 1) {\n\t\t\tthis.isCompleted = true;\n\t\t\tthis.setCompleted();\n\t\t}\n\n\t\tthis.fireEvent('finish', this.currentIndex);\n\t\tdispatch('finish.hs.stepper', this.el, this.currentIndex);\n\t}\n\n\t// reset\n\tprivate buildResetButton() {\n\t\tif (!this.resetBtn) return;\n\n\t\tthis.resetBtn.addEventListener('click', () =>\n\t\t\tthis.handleResetButtonClick(),\n\t\t);\n\t}\n\n\tprivate handleResetButtonClick() {\n\t\tif (this.backBtn) this.backBtn.style.display = '';\n\t\tif (this.nextBtn) this.nextBtn.style.display = '';\n\t\tif (this.completeStepBtn) {\n\t\t\tthis.completeStepBtn.style.display = '';\n\t\t\tthis.completeStepBtn.innerText = this.completeStepBtnDefaultText;\n\t\t\tthis.completeStepBtn.removeAttribute('disabled');\n\t\t\tthis.completeStepBtn.classList.remove('disabled');\n\t\t}\n\t\tif (this.resetBtn) this.resetBtn.style.display = 'none';\n\n\t\tthis.navItems.forEach((item) => {\n\t\t\tconst { el } = item;\n\t\t\titem.isSkip = false;\n\t\t\titem.isCompleted = false;\n\n\t\t\tthis.unsetCurrentNavItemActions(el);\n\t\t\tel.classList.remove('success', 'skipped');\n\t\t});\n\n\t\tthis.contentItems.forEach((item) => {\n\t\t\tconst { el } = item;\n\t\t\titem.isSkip = false;\n\t\t\titem.isCompleted = false;\n\n\t\t\tthis.unsetCurrentContentItemActions(el);\n\t\t\tel.classList.remove('success', 'skipped');\n\t\t});\n\n\t\tthis.currentIndex = 1;\n\t\tthis.unsetCompleted();\n\t\tthis.isCompleted = false;\n\n\t\tthis.setCurrentNavItem();\n\t\tthis.setCurrentContentItem();\n\t\tthis.showFinishButton();\n\t\tthis.showCompleteStepButton();\n\t\tthis.checkForTheFirstStep();\n\n\t\tthis.fireEvent('reset', this.currentIndex);\n\t\tdispatch('reset.hs.stepper', this.el, this.currentIndex);\n\t}\n\n\t// Public methods\n\tpublic setProcessedNavItem(n?: number) {\n\t\tconst targetNavItem = this.getNavItem(n);\n\n\t\tif (!targetNavItem) return;\n\n\t\tthis.setProcessedNavItemActions(targetNavItem);\n\t}\n\n\tpublic unsetProcessedNavItem(n?: number) {\n\t\tconst targetNavItem = this.getNavItem(n);\n\n\t\tif (!targetNavItem) return;\n\n\t\tthis.unsetProcessedNavItemActions(targetNavItem);\n\t}\n\n\tpublic goToNext() {\n\t\tif (this.mode === 'linear') this.setCompleteItem();\n\n\t\tthis.handleNextButtonClick(this.mode !== 'linear');\n\n\t\tif (this.mode === 'linear' && this.currentIndex === this.totalSteps) {\n\t\t\tif (this.nextBtn) this.nextBtn.style.display = 'none';\n\t\t\tif (this.completeStepBtn) this.completeStepBtn.style.display = 'none';\n\t\t}\n\t}\n\n\tpublic disableButtons() {\n\t\tif (this.backBtn) this.setToDisabled(this.backBtn);\n\t\tif (this.nextBtn) this.setToDisabled(this.nextBtn);\n\t}\n\n\tpublic enableButtons() {\n\t\tif (this.backBtn) this.setToNonDisabled(this.backBtn);\n\t\tif (this.nextBtn) this.setToNonDisabled(this.nextBtn);\n\t}\n\n\tpublic setErrorNavItem(n?: number) {\n\t\tconst targetNavItem = this.getNavItem(n);\n\n\t\tif (!targetNavItem) return;\n\n\t\tthis.setErrorNavItemActions(targetNavItem);\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsStepperCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsStepperCollection) window.$hsStepperCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-stepper]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsStepperCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSStepper(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSStepper: Function;\n\t\t$hsStepperCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSStepper.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Stepper collection:', window.$hsStepperCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSStepper = HSStepper;\n}\n\nexport default HSStepper;\n","/*\n * HSStrongPassword\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport {\n\tisEnoughSpace,\n\tdispatch,\n\thtmlToElement,\n\tclassToClassList,\n} from '../../utils';\n\nimport {\n\tIStrongPasswordOptions,\n\tIStrongPassword,\n} from '../strong-password/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSStrongPassword\n\textends HSBasePlugin\n\timplements IStrongPassword\n{\n\tprivate readonly target: string | HTMLInputElement | null;\n\tprivate readonly hints: string | HTMLElement | null;\n\tprivate readonly stripClasses: string | null;\n\tprivate readonly minLength: number;\n\tprivate readonly mode: string;\n\tprivate readonly popoverSpace: number;\n\tprivate readonly checksExclude: string[] | null;\n\tprivate readonly specialCharactersSet: string | null;\n\n\tpublic isOpened: boolean = false;\n\tprivate strength: number = 0;\n\tprivate passedRules: Set = new Set();\n\tprivate weakness: HTMLElement | null;\n\tprivate rules: HTMLElement[] | null;\n\tprivate availableChecks: string[] | null;\n\n\tconstructor(el: HTMLElement, options?: IStrongPasswordOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-strong-password');\n\t\tconst dataOptions: IStrongPasswordOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.target = concatOptions?.target\n\t\t\t? typeof concatOptions?.target === 'string'\n\t\t\t\t? (document.querySelector(concatOptions.target) as HTMLInputElement)\n\t\t\t\t: concatOptions.target\n\t\t\t: null;\n\t\tthis.hints = concatOptions?.hints\n\t\t\t? typeof concatOptions?.hints === 'string'\n\t\t\t\t? (document.querySelector(concatOptions.hints) as HTMLElement)\n\t\t\t\t: concatOptions.hints\n\t\t\t: null;\n\t\tthis.stripClasses = concatOptions?.stripClasses || null;\n\t\tthis.minLength = concatOptions?.minLength || 6;\n\t\tthis.mode = concatOptions?.mode || 'default';\n\t\tthis.popoverSpace = concatOptions?.popoverSpace || 10;\n\t\tthis.checksExclude = concatOptions?.checksExclude || [];\n\t\tthis.availableChecks = [\n\t\t\t'lowercase',\n\t\t\t'uppercase',\n\t\t\t'numbers',\n\t\t\t'special-characters',\n\t\t\t'min-length',\n\t\t].filter((el) => !this.checksExclude.includes(el));\n\t\tthis.specialCharactersSet =\n\t\t\tconcatOptions?.specialCharactersSet ||\n\t\t\t'!\"#$%&\\'()*+,-./:;<=>?@[\\\\\\\\\\\\]^_`{|}~';\n\n\t\tif (this.target) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsStrongPasswordCollection, this);\n\n\t\tif (this.availableChecks.length) this.build();\n\t}\n\n\tprivate build() {\n\t\tthis.buildStrips();\n\t\tif (this.hints) this.buildHints();\n\n\t\tthis.setStrength((this.target as HTMLInputElement).value);\n\n\t\t(this.target as HTMLInputElement).addEventListener(\n\t\t\t'input',\n\t\t\t(evt: InputEvent) => {\n\t\t\t\tthis.setStrength((evt.target as HTMLInputElement).value);\n\t\t\t},\n\t\t);\n\t}\n\n\tprivate buildStrips() {\n\t\tthis.el.innerHTML = '';\n\n\t\tif (this.stripClasses) {\n\t\t\tfor (let i = 0; i < this.availableChecks.length; i++) {\n\t\t\t\tconst newStrip = htmlToElement('
');\n\t\t\t\tclassToClassList(this.stripClasses, newStrip);\n\n\t\t\t\tthis.el.append(newStrip);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate buildHints() {\n\t\tthis.weakness =\n\t\t\t(this.hints as HTMLElement).querySelector(\n\t\t\t\t'[data-hs-strong-password-hints-weakness-text]',\n\t\t\t) || null;\n\t\tthis.rules =\n\t\t\tArray.from(\n\t\t\t\t(this.hints as HTMLElement).querySelectorAll(\n\t\t\t\t\t'[data-hs-strong-password-hints-rule-text]',\n\t\t\t\t),\n\t\t\t) || null;\n\n\t\tthis.rules.forEach((rule) => {\n\t\t\tconst ruleValue = rule.getAttribute(\n\t\t\t\t'data-hs-strong-password-hints-rule-text',\n\t\t\t);\n\n\t\t\tif (this.checksExclude?.includes(ruleValue)) rule.remove();\n\t\t});\n\n\t\tif (this.weakness) this.buildWeakness();\n\t\tif (this.rules) this.buildRules();\n\t\tif (this.mode === 'popover') {\n\t\t\t(this.target as HTMLInputElement).addEventListener('focus', () => {\n\t\t\t\tthis.isOpened = true;\n\t\t\t\t(this.hints as HTMLElement).classList.remove('hidden');\n\t\t\t\t(this.hints as HTMLElement).classList.add('block');\n\n\t\t\t\tthis.recalculateDirection();\n\t\t\t});\n\n\t\t\t(this.target as HTMLInputElement).addEventListener('blur', () => {\n\t\t\t\tthis.isOpened = false;\n\t\t\t\t(this.hints as HTMLElement).classList.remove(\n\t\t\t\t\t'block',\n\t\t\t\t\t'bottom-full',\n\t\t\t\t\t'top-full',\n\t\t\t\t);\n\t\t\t\t(this.hints as HTMLElement).classList.add('hidden');\n\t\t\t\t(this.hints as HTMLElement).style.marginTop = '';\n\t\t\t\t(this.hints as HTMLElement).style.marginBottom = '';\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate buildWeakness() {\n\t\tthis.checkStrength((this.target as HTMLInputElement).value);\n\t\tthis.setWeaknessText();\n\n\t\t(this.target as HTMLInputElement).addEventListener('input', () =>\n\t\t\tsetTimeout(() => this.setWeaknessText()),\n\t\t);\n\t}\n\n\tprivate buildRules() {\n\t\tthis.setRulesText();\n\n\t\t(this.target as HTMLInputElement).addEventListener('input', () =>\n\t\t\tsetTimeout(() => this.setRulesText()),\n\t\t);\n\t}\n\n\tprivate setWeaknessText() {\n\t\tconst weaknessText = this.weakness.getAttribute(\n\t\t\t'data-hs-strong-password-hints-weakness-text',\n\t\t);\n\t\tconst weaknessTextToJson = JSON.parse(weaknessText as string);\n\n\t\tthis.weakness.textContent = weaknessTextToJson[this.strength];\n\t}\n\n\tprivate setRulesText() {\n\t\tthis.rules.forEach((rule) => {\n\t\t\tconst ruleValue = rule.getAttribute(\n\t\t\t\t'data-hs-strong-password-hints-rule-text',\n\t\t\t);\n\n\t\t\tthis.checkIfPassed(rule, this.passedRules.has(ruleValue));\n\t\t});\n\t}\n\n\tprivate togglePopover() {\n\t\tconst popover = this.el.querySelector('.popover');\n\n\t\tif (popover) popover.classList.toggle('show');\n\t}\n\n\tprivate checkStrength(val: string): { strength: number; rules: Set } {\n\t\tconst passedRules = new Set();\n\t\tconst regexps = {\n\t\t\tlowercase: /[a-z]+/,\n\t\t\tuppercase: /[A-Z]+/,\n\t\t\tnumbers: /[0-9]+/,\n\t\t\t'special-characters': new RegExp(`[${this.specialCharactersSet}]`),\n\t\t};\n\t\tlet strength = 0;\n\n\t\tif (\n\t\t\tthis.availableChecks.includes('lowercase') &&\n\t\t\tval.match(regexps['lowercase'])\n\t\t) {\n\t\t\tstrength += 1;\n\t\t\tpassedRules.add('lowercase');\n\t\t}\n\t\tif (\n\t\t\tthis.availableChecks.includes('uppercase') &&\n\t\t\tval.match(regexps['uppercase'])\n\t\t) {\n\t\t\tstrength += 1;\n\t\t\tpassedRules.add('uppercase');\n\t\t}\n\t\tif (\n\t\t\tthis.availableChecks.includes('numbers') &&\n\t\t\tval.match(regexps['numbers'])\n\t\t) {\n\t\t\tstrength += 1;\n\t\t\tpassedRules.add('numbers');\n\t\t}\n\t\tif (\n\t\t\tthis.availableChecks.includes('special-characters') &&\n\t\t\tval.match(regexps['special-characters'])\n\t\t) {\n\t\t\tstrength += 1;\n\t\t\tpassedRules.add('special-characters');\n\t\t}\n\t\tif (\n\t\t\tthis.availableChecks.includes('min-length') &&\n\t\t\tval.length >= this.minLength\n\t\t) {\n\t\t\tstrength += 1;\n\t\t\tpassedRules.add('min-length');\n\t\t}\n\t\tif (!val.length) {\n\t\t\tstrength = 0;\n\t\t}\n\n\t\tif (strength === this.availableChecks.length)\n\t\t\tthis.el.classList.add('accepted');\n\t\telse this.el.classList.remove('accepted');\n\n\t\tthis.strength = strength;\n\t\tthis.passedRules = passedRules;\n\n\t\treturn {\n\t\t\tstrength: this.strength,\n\t\t\trules: this.passedRules,\n\t\t};\n\t}\n\n\tprivate checkIfPassed(el: HTMLElement, isRulePassed = false) {\n\t\tconst check = el.querySelector('[data-check]');\n\t\tconst uncheck = el.querySelector('[data-uncheck]');\n\n\t\tif (isRulePassed) {\n\t\t\tel.classList.add('active');\n\t\t\tcheck.classList.remove('hidden');\n\t\t\tuncheck.classList.add('hidden');\n\t\t} else {\n\t\t\tel.classList.remove('active');\n\t\t\tcheck.classList.add('hidden');\n\t\t\tuncheck.classList.remove('hidden');\n\t\t}\n\t}\n\n\tprivate setStrength(val: string) {\n\t\tconst { strength, rules } = this.checkStrength(val);\n\t\tconst payload = {\n\t\t\tstrength,\n\t\t\trules,\n\t\t};\n\n\t\tthis.hideStrips(strength);\n\n\t\tthis.fireEvent('change', payload);\n\t\tdispatch('change.hs.strongPassword', this.el, payload);\n\t}\n\n\tprivate hideStrips(qty: number) {\n\t\tArray.from(this.el.children).forEach((el: HTMLElement, i: number) => {\n\t\t\tif (i < qty) el.classList.add('passed');\n\t\t\telse el.classList.remove('passed');\n\t\t});\n\t}\n\n\t// Public methods\n\tpublic recalculateDirection() {\n\t\tif (\n\t\t\tisEnoughSpace(\n\t\t\t\tthis.hints as HTMLElement,\n\t\t\t\tthis.target as HTMLInputElement,\n\t\t\t\t'bottom',\n\t\t\t\tthis.popoverSpace,\n\t\t\t)\n\t\t) {\n\t\t\t(this.hints as HTMLElement).classList.remove('bottom-full');\n\t\t\t(this.hints as HTMLElement).classList.add('top-full');\n\t\t\t(this.hints as HTMLElement).style.marginBottom = '';\n\t\t\t(this.hints as HTMLElement).style.marginTop = `${this.popoverSpace}px`;\n\t\t} else {\n\t\t\t(this.hints as HTMLElement).classList.remove('top-full');\n\t\t\t(this.hints as HTMLElement).classList.add('bottom-full');\n\t\t\t(this.hints as HTMLElement).style.marginTop = '';\n\t\t\t(this.hints as HTMLElement).style.marginBottom = `${this.popoverSpace}px`;\n\t\t}\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string) {\n\t\tconst elInCollection = window.$hsStrongPasswordCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection ? elInCollection.element : null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsStrongPasswordCollection)\n\t\t\twindow.$hsStrongPasswordCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll(\n\t\t\t\t'[data-hs-strong-password]:not(.--prevent-on-load-init)',\n\t\t\t)\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsStrongPasswordCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\tconst data = el.getAttribute('data-hs-strong-password');\n\t\t\t\t\tconst options: IStrongPasswordOptions = data ? JSON.parse(data) : {};\n\n\t\t\t\t\tnew HSStrongPassword(el, options);\n\t\t\t\t}\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSStrongPassword: Function;\n\t\t$hsStrongPasswordCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSStrongPassword.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Strong password collection:', window.$hsStrongPasswordCollection);\n});\n\ndocument.addEventListener('scroll', () => {\n\tif (!window.$hsStrongPasswordCollection) return false;\n\n\tconst target = window.$hsStrongPasswordCollection.find(\n\t\t(el) => el.element.isOpened,\n\t);\n\n\tif (target) target.element.recalculateDirection();\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSStrongPassword = HSStrongPassword;\n}\n\nexport default HSStrongPassword;\n","/*\n * HSTabs\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { dispatch } from '../../utils';\n\nimport { ITabs } from '../tabs/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nimport { TABS_ACCESSIBILITY_KEY_SET } from '../../constants';\n\nclass HSTabs extends HSBasePlugin<{}> implements ITabs {\n\tpublic toggles: NodeListOf | null;\n\tprivate readonly extraToggleId: string | null;\n\tprivate readonly extraToggle: HTMLSelectElement | null;\n\tprivate current: HTMLElement | null;\n\tprivate currentContentId: string | null;\n\tpublic currentContent: HTMLElement | null;\n\tprivate prev: HTMLElement | null;\n\tprivate prevContentId: string | null;\n\tprivate prevContent: HTMLElement | null;\n\n\tconstructor(el: HTMLElement, options?: {}, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tthis.toggles = this.el.querySelectorAll('[data-hs-tab]');\n\t\tthis.extraToggleId = this.el.getAttribute('data-hs-tab-select');\n\t\tthis.extraToggle = document.querySelector(this.extraToggleId);\n\t\tthis.current = Array.from(this.toggles).find((el) =>\n\t\t\tel.classList.contains('active'),\n\t\t);\n\t\tthis.currentContentId = this.current.getAttribute('data-hs-tab');\n\t\tthis.currentContent = document.querySelector(this.currentContentId);\n\t\tthis.prev = null;\n\t\tthis.prevContentId = null;\n\t\tthis.prevContent = null;\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsTabsCollection, this);\n\n\t\tthis.toggles.forEach((el) => {\n\t\t\tel.addEventListener('click', () => this.open(el));\n\t\t});\n\n\t\tif (this.extraToggle) {\n\t\t\tthis.extraToggle.addEventListener('change', (evt) => this.change(evt));\n\t\t}\n\t}\n\n\tprivate open(el: HTMLElement) {\n\t\tthis.prev = this.current;\n\t\tthis.prevContentId = this.currentContentId;\n\t\tthis.prevContent = this.currentContent;\n\n\t\tthis.current = el;\n\t\tthis.currentContentId = this.current.getAttribute('data-hs-tab');\n\t\tthis.currentContent = document.querySelector(this.currentContentId);\n\n\t\tif (this?.prev?.ariaSelected) this.prev.ariaSelected = 'false';\n\t\tthis.prev.classList.remove('active');\n\t\tthis.prevContent.classList.add('hidden');\n\n\t\tif (this?.current?.ariaSelected) this.current.ariaSelected = 'true';\n\t\tthis.current.classList.add('active');\n\t\tthis.currentContent.classList.remove('hidden');\n\n\t\tthis.fireEvent('change', {\n\t\t\tel,\n\t\t\tprev: this.prevContentId,\n\t\t\tcurrent: this.currentContentId,\n\t\t});\n\t\tdispatch('change.hs.tab', el, {\n\t\t\tel,\n\t\t\tprev: this.prevContentId,\n\t\t\tcurrent: this.currentContentId,\n\t\t});\n\t}\n\n\tprivate change(evt: Event) {\n\t\tconst toggle: HTMLElement = document.querySelector(\n\t\t\t`[data-hs-tab=\"${(evt.target as HTMLSelectElement).value}\"]`,\n\t\t);\n\n\t\tif (toggle) toggle.click();\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsTabsCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsTabsCollection) window.$hsTabsCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll(\n\t\t\t\t'[role=\"tablist\"]:not(select):not(.--prevent-on-load-init)',\n\t\t\t)\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsTabsCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSTabs(el);\n\t\t\t});\n\n\t\tif (window.$hsTabsCollection)\n\t\t\tdocument.addEventListener('keydown', (evt) => HSTabs.accessibility(evt));\n\t}\n\n\tstatic open(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsTabsCollection.find((el) =>\n\t\t\tArray.from(el.element.toggles).includes(\n\t\t\t\ttypeof target === 'string' ? document.querySelector(target) : target,\n\t\t\t),\n\t\t);\n\t\tconst targetInCollection = Array.from(elInCollection.element.toggles).find(\n\t\t\t(el) =>\n\t\t\t\tel ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (targetInCollection && !targetInCollection.classList.contains('active'))\n\t\t\telInCollection.element.open(targetInCollection);\n\t}\n\n\t// Accessibility methods\n\tstatic accessibility(evt: KeyboardEvent) {\n\t\tconst target = document.querySelector('[data-hs-tab]:focus');\n\n\t\tif (\n\t\t\ttarget &&\n\t\t\tTABS_ACCESSIBILITY_KEY_SET.includes(evt.code) &&\n\t\t\t!evt.metaKey\n\t\t) {\n\t\t\tconst isVertical = target\n\t\t\t\t.closest('[role=\"tablist\"]')\n\t\t\t\t.getAttribute('data-hs-tabs-vertical');\n\n\t\t\tevt.preventDefault();\n\n\t\t\tswitch (evt.code) {\n\t\t\t\tcase isVertical === 'true' ? 'ArrowUp' : 'ArrowLeft':\n\t\t\t\t\tthis.onArrow();\n\t\t\t\t\tbreak;\n\t\t\t\tcase isVertical === 'true' ? 'ArrowDown' : 'ArrowRight':\n\t\t\t\t\tthis.onArrow(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Home':\n\t\t\t\t\tthis.onStartEnd();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'End':\n\t\t\t\t\tthis.onStartEnd(false);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic onArrow(isOpposite = true) {\n\t\tconst target = document\n\t\t\t.querySelector('[data-hs-tab]:focus')\n\t\t\t.closest('[role=\"tablist\"]');\n\t\tconst targetInCollection = window.$hsTabsCollection.find(\n\t\t\t(el) => el.element.el === target,\n\t\t);\n\n\t\tif (targetInCollection) {\n\t\t\tconst toggles = isOpposite\n\t\t\t\t? Array.from(targetInCollection.element.toggles).reverse()\n\t\t\t\t: Array.from(targetInCollection.element.toggles);\n\t\t\tconst focused = toggles.find((el) => document.activeElement === el);\n\t\t\tlet focusedInd = toggles.findIndex((el: any) => el === focused);\n\t\t\tfocusedInd = focusedInd + 1 < toggles.length ? focusedInd + 1 : 0;\n\n\t\t\ttoggles[focusedInd].focus();\n\t\t\ttoggles[focusedInd].click();\n\t\t}\n\t}\n\n\tstatic onStartEnd(isOpposite = true) {\n\t\tconst target = document\n\t\t\t.querySelector('[data-hs-tab]:focus')\n\t\t\t.closest('[role=\"tablist\"]');\n\t\tconst targetInCollection = window.$hsTabsCollection.find(\n\t\t\t(el) => el.element.el === target,\n\t\t);\n\n\t\tif (targetInCollection) {\n\t\t\tconst toggles = isOpposite\n\t\t\t\t? Array.from(targetInCollection.element.toggles)\n\t\t\t\t: Array.from(targetInCollection.element.toggles).reverse();\n\n\t\t\tif (toggles.length) {\n\t\t\t\ttoggles[0].focus();\n\t\t\t\ttoggles[0].click();\n\t\t\t}\n\t\t}\n\t}\n\n\t// Backward compatibility\n\tstatic on(evt: string, target: HTMLElement, cb: Function) {\n\t\tconst elInCollection = window.$hsTabsCollection.find((el) =>\n\t\t\tArray.from(el.element.toggles).includes(\n\t\t\t\ttypeof target === 'string' ? document.querySelector(target) : target,\n\t\t\t),\n\t\t);\n\n\t\tif (elInCollection) elInCollection.element.events[evt] = cb;\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSTabs: Function;\n\t\t$hsTabsCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSTabs.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Tabs collection:', window.$hsTabsCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSTabs = HSTabs;\n}\n\nexport default HSTabs;\n","/*\n * HSTextareaAutoHeight\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport {\n\tITextareaAutoHeightOptions,\n\tITextareaAutoHeight,\n} from '../textarea-auto-height/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSTextareaAutoHeight\n\textends HSBasePlugin\n\timplements ITextareaAutoHeight\n{\n\tprivate readonly defaultHeight: number;\n\n\tconstructor(el: HTMLTextAreaElement, options?: ITextareaAutoHeightOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-copy-markup');\n\t\tconst dataOptions: ITextareaAutoHeightOptions = data\n\t\t\t? JSON.parse(data)\n\t\t\t: {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.defaultHeight = concatOptions?.defaultHeight || 0;\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsTextareaAutoHeightCollection, this);\n\n\t\tthis.setAutoHeight();\n\t}\n\n\tprivate setAutoHeight() {\n\t\tif (this.isParentHidden()) this.callbackAccordingToType();\n\t\telse this.textareaSetHeight(3);\n\n\t\tthis.el.addEventListener('input', () => this.textareaSetHeight(3));\n\t}\n\n\tprivate textareaSetHeight(offsetTop = 0) {\n\t\tthis.el.style.height = 'auto';\n\t\tthis.el.style.height =\n\t\t\tthis.checkIfOneLine() && this.defaultHeight\n\t\t\t\t? `${this.defaultHeight}px`\n\t\t\t\t: `${this.el.scrollHeight + offsetTop}px`;\n\t}\n\n\tprivate checkIfOneLine(): boolean {\n\t\tconst clientHeight = this.el.clientHeight;\n\t\tconst scrollHeight = this.el.scrollHeight;\n\n\t\tif (scrollHeight > clientHeight) return false;\n\t\telse return true;\n\t}\n\n\tprivate isParentHidden() {\n\t\treturn this.el.closest('.hs-collapse') || this.el.closest('.hs-overlay');\n\t}\n\n\tprivate parentType(): string | boolean {\n\t\tif (this.el.closest('.hs-collapse')) return 'collapse';\n\t\telse if (this.el.closest('.hs-overlay')) return 'overlay';\n\t\telse return false;\n\t}\n\n\tprivate callbackAccordingToType() {\n\t\tif (this.parentType() === 'collapse') {\n\t\t\tconst collapseId = this.el.closest('.hs-collapse').id;\n\t\t\tconst { element } = (window.HSCollapse as any).getInstance(\n\t\t\t\t`[data-hs-collapse=\"#${collapseId}\"]`,\n\t\t\t\ttrue,\n\t\t\t);\n\n\t\t\telement.on('beforeOpen', () => {\n\t\t\t\tif (!this.el) return false;\n\n\t\t\t\tthis.textareaSetHeight(3);\n\t\t\t});\n\t\t} else if (this.parentType() === 'overlay') {\n\t\t\tconst { element } = (window.HSOverlay as any).getInstance(\n\t\t\t\tthis.el.closest('.hs-overlay'),\n\t\t\t\ttrue,\n\t\t\t);\n\n\t\t\telement.on('open', () => {\n\t\t\t\tif (!this.el) return false;\n\n\t\t\t\tthis.textareaSetHeight(3);\n\t\t\t});\n\t\t} else return false;\n\t}\n\n\t// Static method\n\tstatic getInstance(\n\t\ttarget: HTMLTextAreaElement | string,\n\t\tisInstance?: boolean,\n\t) {\n\t\tconst elInCollection = window.$hsTextareaAutoHeightCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsTextareaAutoHeightCollection)\n\t\t\twindow.$hsTextareaAutoHeightCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll(\n\t\t\t\t'[data-hs-textarea-auto-height]:not(.--prevent-on-load-init)',\n\t\t\t)\n\t\t\t.forEach((el: HTMLTextAreaElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsTextareaAutoHeightCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLTextAreaElement) === el,\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\tconst data = el.getAttribute('data-hs-textarea-auto-height');\n\t\t\t\t\tconst options: ITextareaAutoHeightOptions = data\n\t\t\t\t\t\t? JSON.parse(data)\n\t\t\t\t\t\t: {};\n\n\t\t\t\t\tnew HSTextareaAutoHeight(el, options);\n\t\t\t\t}\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSTextareaAutoHeight: Function;\n\t\t$hsTextareaAutoHeightCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSTextareaAutoHeight.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Textarea Autoheight collection:', window.$hsTextareaAutoHeightCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSTextareaAutoHeight = HSTextareaAutoHeight;\n}\n\nexport default HSTextareaAutoHeight;\n","/*\n * HSThemeSwitch\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\nimport {\n\tIThemeSwitchOptions,\n\tIThemeSwitch,\n} from '../theme-switch/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSThemeSwitch\n\textends HSBasePlugin\n\timplements IThemeSwitch\n{\n\tpublic theme: string;\n\tprivate readonly themeSet: string[];\n\n\tconstructor(el: HTMLElement, options?: IThemeSwitchOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-theme-switch');\n\t\tconst dataOptions: IThemeSwitchOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.theme =\n\t\t\tconcatOptions?.theme || localStorage.getItem('hs_theme') || 'default';\n\t\tthis.themeSet = ['light', 'dark', 'default'];\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsThemeSwitchCollection, this);\n\n\t\tif (this.theme !== 'default') this.setAppearance();\n\t}\n\n\tprivate setResetStyles() {\n\t\tconst style = document.createElement('style');\n\n\t\tstyle.innerText = `*{transition: unset !important;}`;\n\t\tstyle.setAttribute('data-hs-appearance-onload-styles', '');\n\n\t\tdocument.head.appendChild(style);\n\n\t\treturn style;\n\t}\n\n\tprivate addSystemThemeObserver() {\n\t\twindow\n\t\t\t.matchMedia('(prefers-color-scheme: dark)')\n\t\t\t.addEventListener('change', ({ matches }) => {\n\t\t\t\tif (matches) this.setAppearance('dark', false);\n\t\t\t\telse this.setAppearance('default', false);\n\t\t\t});\n\t}\n\n\tprivate removeSystemThemeObserver() {\n\t\twindow.matchMedia('(prefers-color-scheme: dark)').removeEventListener;\n\t}\n\n\t// Public methods\n\tpublic setAppearance(\n\t\ttheme = this.theme,\n\t\tisSaveToLocalStorage = true,\n\t\tisSetDispatchEvent = true,\n\t) {\n\t\tconst html = document.querySelector('html');\n\t\tconst resetStyles = this.setResetStyles();\n\n\t\tif (isSaveToLocalStorage) localStorage.setItem('hs_theme', theme);\n\t\tif (theme === 'auto')\n\t\t\ttheme = window.matchMedia('(prefers-color-scheme: dark)').matches\n\t\t\t\t? 'dark'\n\t\t\t\t: 'default';\n\n\t\thtml.classList.remove('light', 'dark', 'default', 'auto');\n\t\thtml.classList.add(theme);\n\n\t\tsetTimeout(() => resetStyles.remove());\n\n\t\tif (isSetDispatchEvent)\n\t\t\twindow.dispatchEvent(\n\t\t\t\tnew CustomEvent('on-hs-appearance-change', { detail: theme }),\n\t\t\t);\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string) {\n\t\tconst elInCollection = window.$hsThemeSwitchCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection ? elInCollection.element : null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsThemeSwitchCollection) window.$hsThemeSwitchCollection = [];\n\n\t\tconst toggleObserveSystemTheme = (el: HSThemeSwitch) => {\n\t\t\tif (localStorage.getItem('hs_theme') === 'auto')\n\t\t\t\tel.addSystemThemeObserver();\n\t\t\telse el.removeSystemThemeObserver();\n\t\t};\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-theme-switch]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsThemeSwitchCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\tconst switchTheme = new HSThemeSwitch(el);\n\t\t\t\t\t(switchTheme.el as HTMLInputElement).checked =\n\t\t\t\t\t\tswitchTheme.theme === 'dark';\n\n\t\t\t\t\ttoggleObserveSystemTheme(switchTheme);\n\n\t\t\t\t\tswitchTheme.el.addEventListener('change', (evt) => {\n\t\t\t\t\t\tconst theme = (evt.target as HTMLInputElement).checked\n\t\t\t\t\t\t\t? 'dark'\n\t\t\t\t\t\t\t: 'default';\n\t\t\t\t\t\tswitchTheme.setAppearance(theme);\n\n\t\t\t\t\t\ttoggleObserveSystemTheme(switchTheme);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\tdocument\n\t\t\t.querySelectorAll(\n\t\t\t\t'[data-hs-theme-click-value]:not(.--prevent-on-load-init)',\n\t\t\t)\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tconst theme = el.getAttribute('data-hs-theme-click-value');\n\t\t\t\tconst switchTheme = new HSThemeSwitch(el);\n\n\t\t\t\ttoggleObserveSystemTheme(switchTheme);\n\n\t\t\t\tswitchTheme.el.addEventListener('click', () => {\n\t\t\t\t\tswitchTheme.setAppearance(theme);\n\n\t\t\t\t\ttoggleObserveSystemTheme(switchTheme);\n\t\t\t\t});\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSThemeSwitch: Function;\n\t\t$hsThemeSwitchCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSThemeSwitch.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Theme switch collection:', window.$hsThemeSwitchCollection);\n});\n\nif (window.$hsThemeSwitchCollection) {\n\twindow.addEventListener(\n\t\t'on-hs-appearance-change',\n\t\t(evt: Event & { detail: string }) => {\n\t\t\twindow.$hsThemeSwitchCollection.forEach((el) => {\n\t\t\t\t(el.element.el as HTMLInputElement).checked = evt.detail === 'dark';\n\t\t\t});\n\t\t},\n\t);\n}\n\nif (typeof window !== 'undefined') {\n\twindow.HSThemeSwitch = HSThemeSwitch;\n}\n\nexport default HSThemeSwitch;\n","/*\n * HSToggleCount\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport {\n\tIToggleCountOptions,\n\tIToggleCount,\n} from '../toggle-count/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSToggleCount\n\textends HSBasePlugin\n\timplements IToggleCount\n{\n\tprivate readonly target: HTMLInputElement | null;\n\tprivate readonly min: number | null;\n\tprivate readonly max: number | null;\n\tprivate readonly duration: number | null;\n\tprivate isChecked: boolean;\n\n\tconstructor(el: HTMLElement, options?: IToggleCountOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-toggle-count');\n\t\tconst dataOptions: IToggleCountOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.target = concatOptions?.target\n\t\t\t? typeof concatOptions?.target === 'string'\n\t\t\t\t? (document.querySelector(concatOptions.target) as HTMLInputElement)\n\t\t\t\t: concatOptions.target\n\t\t\t: null;\n\t\tthis.min = concatOptions?.min || 0;\n\t\tthis.max = concatOptions?.max || 0;\n\t\tthis.duration = concatOptions?.duration || 700;\n\n\t\tthis.isChecked = (this.target as HTMLInputElement).checked || false;\n\n\t\tif (this.target) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsToggleCountCollection, this);\n\n\t\tif (this.isChecked) this.el.innerText = String(this.max);\n\n\t\tthis.target.addEventListener('change', () => {\n\t\t\tthis.isChecked = !this.isChecked;\n\n\t\t\tthis.toggle();\n\t\t});\n\t}\n\n\tprivate toggle() {\n\t\tif (this.isChecked) this.countUp();\n\t\telse this.countDown();\n\t}\n\n\tprivate animate(from: number, to: number) {\n\t\tlet startTimestamp = 0;\n\n\t\tconst step = (timestamp: number) => {\n\t\t\tif (!startTimestamp) startTimestamp = timestamp;\n\t\t\tconst progress = Math.min(\n\t\t\t\t(timestamp - startTimestamp) / this.duration,\n\t\t\t\t1,\n\t\t\t);\n\n\t\t\tthis.el.innerText = String(Math.floor(progress * (to - from) + from));\n\n\t\t\tif (progress < 1) window.requestAnimationFrame(step);\n\t\t};\n\n\t\twindow.requestAnimationFrame(step);\n\t}\n\n\t// Public methods\n\tpublic countUp() {\n\t\tthis.animate(this.min, this.max);\n\t}\n\n\tpublic countDown() {\n\t\tthis.animate(this.max, this.min);\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsToggleCountCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsToggleCountCollection) window.$hsToggleCountCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-toggle-count]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsToggleCountCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSToggleCount(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSToggleCount: Function;\n\t\t$hsToggleCountCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSToggleCount.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Toggle count collection:', window.$hsToggleCountCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSToggleCount = HSToggleCount;\n}\n\nexport default HSToggleCount;\n","/*\n * HSTogglePassword\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { isFormElement, dispatch } from '../../utils';\n\nimport {\n\tITogglePasswordOptions,\n\tITogglePassword,\n} from '../toggle-password/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSTogglePassword\n\textends HSBasePlugin\n\timplements ITogglePassword\n{\n\tprivate readonly target:\n\t\t| string\n\t\t| string[]\n\t\t| HTMLInputElement\n\t\t| HTMLInputElement[]\n\t\t| null;\n\tprivate isShown: boolean;\n\tprivate isMultiple: boolean;\n\tprivate eventType: string;\n\n\tconstructor(el: HTMLElement, options?: ITogglePasswordOptions) {\n\t\tsuper(el, options);\n\n\t\tconst data = el.getAttribute('data-hs-toggle-password');\n\t\tconst dataOptions: ITogglePasswordOptions = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\t\tconst targets: HTMLInputElement[] = [];\n\t\tif (concatOptions?.target && typeof concatOptions?.target === 'string') {\n\t\t\tconst ids = concatOptions?.target.split(',');\n\t\t\tids.forEach((id) => {\n\t\t\t\ttargets.push(document.querySelector(id) as HTMLInputElement);\n\t\t\t});\n\t\t} else if (\n\t\t\tconcatOptions?.target &&\n\t\t\ttypeof concatOptions?.target === 'object'\n\t\t) {\n\t\t\t(concatOptions.target as string[]).forEach((el) =>\n\t\t\t\ttargets.push(document.querySelector(el)),\n\t\t\t);\n\t\t} else {\n\t\t\t(concatOptions.target as HTMLInputElement[]).forEach((el) =>\n\t\t\t\ttargets.push(el),\n\t\t\t);\n\t\t}\n\n\t\tthis.target = targets;\n\t\tthis.isShown = this.el.hasAttribute('type')\n\t\t\t? (this.el as HTMLInputElement).checked\n\t\t\t: false;\n\t\tthis.eventType = isFormElement(this.el) ? 'change' : 'click';\n\t\tthis.isMultiple =\n\t\t\tthis.target.length > 1 &&\n\t\t\t!!this.el.closest('[data-hs-toggle-password-group]');\n\n\t\tif (this.target) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsTogglePasswordCollection, this);\n\n\t\tif (!this.isShown) {\n\t\t\tthis.hide();\n\t\t} else {\n\t\t\tthis.show();\n\t\t}\n\n\t\tthis.el.addEventListener(this.eventType, () => {\n\t\t\tif (this.isShown) {\n\t\t\t\tthis.hide();\n\t\t\t} else {\n\t\t\t\tthis.show();\n\t\t\t}\n\n\t\t\tthis.fireEvent('toggle', this.target);\n\t\t\tdispatch('toggle.hs.toggle-select', this.el, this.target);\n\t\t});\n\t}\n\n\tprivate getMultipleToggles(): HSTogglePassword[] {\n\t\tconst group = this.el.closest('[data-hs-toggle-password-group]');\n\t\tconst toggles = group.querySelectorAll('[data-hs-toggle-password]');\n\t\tconst togglesInCollection: HSTogglePassword[] = [];\n\n\t\ttoggles.forEach((el: HTMLElement) => {\n\t\t\ttogglesInCollection.push(\n\t\t\t\tHSTogglePassword.getInstance(el) as HSTogglePassword,\n\t\t\t);\n\t\t});\n\n\t\treturn togglesInCollection;\n\t}\n\n\t// Public methods\n\tpublic show() {\n\t\tif (this.isMultiple) {\n\t\t\tconst toggles = this.getMultipleToggles();\n\n\t\t\ttoggles.forEach((el: HSTogglePassword) =>\n\t\t\t\tel ? (el.isShown = true) : false,\n\t\t\t);\n\n\t\t\tthis.el\n\t\t\t\t.closest('[data-hs-toggle-password-group]')\n\t\t\t\t.classList.add('active');\n\t\t} else {\n\t\t\tthis.isShown = true;\n\n\t\t\tthis.el.classList.add('active');\n\t\t}\n\t\t(this.target as HTMLInputElement[]).forEach((el) => {\n\t\t\t(el as HTMLInputElement).type = 'text';\n\t\t});\n\t}\n\n\tpublic hide() {\n\t\tif (this.isMultiple) {\n\t\t\tconst toggles = this.getMultipleToggles();\n\n\t\t\ttoggles.forEach((el: HSTogglePassword) =>\n\t\t\t\tel ? (el.isShown = false) : false,\n\t\t\t);\n\n\t\t\tthis.el\n\t\t\t\t.closest('[data-hs-toggle-password-group]')\n\t\t\t\t.classList.remove('active');\n\t\t} else {\n\t\t\tthis.isShown = false;\n\n\t\t\tthis.el.classList.remove('active');\n\t\t}\n\t\t(this.target as HTMLInputElement[]).forEach((el) => {\n\t\t\t(el as HTMLInputElement).type = 'password';\n\t\t});\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsTogglePasswordCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsTogglePasswordCollection)\n\t\t\twindow.$hsTogglePasswordCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll(\n\t\t\t\t'[data-hs-toggle-password]:not(.--prevent-on-load-init)',\n\t\t\t)\n\t\t\t.forEach((el: HTMLInputElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsTogglePasswordCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSTogglePassword(el);\n\t\t\t});\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSTogglePassword: Function;\n\t\t$hsTogglePasswordCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSTogglePassword.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Toggle password collection:', window.$hsTogglePasswordCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSTogglePassword = HSTogglePassword;\n}\n\nexport default HSTogglePassword;\n","/*\n * HSTooltip\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { createPopper, PositioningStrategy, Instance } from '@popperjs/core';\nimport { getClassProperty, dispatch, afterTransition } from '../../utils';\n\nimport { ITooltip } from '../tooltip/interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nimport { POSITIONS } from '../../constants';\n\nclass HSTooltip extends HSBasePlugin<{}> implements ITooltip {\n\tprivate readonly toggle: HTMLElement | null;\n\tpublic content: HTMLElement | null;\n\treadonly eventMode: string;\n\tprivate readonly preventPopper: string;\n\tprivate popperInstance: Instance;\n\tprivate readonly placement: string;\n\tprivate readonly strategy: PositioningStrategy;\n\n\tconstructor(el: HTMLElement, options?: {}, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tif (this.el) {\n\t\t\tthis.toggle = this.el.querySelector('.hs-tooltip-toggle') || this.el;\n\t\t\tthis.content = this.el.querySelector('.hs-tooltip-content');\n\t\t\tthis.eventMode = getClassProperty(this.el, '--trigger') || 'hover';\n\t\t\tthis.preventPopper = getClassProperty(\n\t\t\t\tthis.el,\n\t\t\t\t'--prevent-popper',\n\t\t\t\t'false',\n\t\t\t);\n\t\t\tthis.placement = getClassProperty(this.el, '--placement');\n\t\t\tthis.strategy = getClassProperty(\n\t\t\t\tthis.el,\n\t\t\t\t'--strategy',\n\t\t\t) as PositioningStrategy;\n\t\t}\n\n\t\tif (this.el && this.toggle && this.content) this.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsTooltipCollection, this);\n\n\t\tif (this.eventMode === 'click') {\n\t\t\tthis.toggle.addEventListener('click', () => this.click());\n\t\t} else if (this.eventMode === 'focus') {\n\t\t\tthis.toggle.addEventListener('click', () => this.focus());\n\t\t} else if (this.eventMode === 'hover') {\n\t\t\tthis.toggle.addEventListener('mouseenter', () => this.enter());\n\t\t\tthis.toggle.addEventListener('mouseleave', () => this.leave());\n\t\t}\n\n\t\tif (this.preventPopper === 'false') this.buildPopper();\n\t}\n\n\tprivate enter() {\n\t\tthis.show();\n\t}\n\n\tprivate leave() {\n\t\tthis.hide();\n\t}\n\n\tprivate click() {\n\t\tif (this.el.classList.contains('show')) return false;\n\n\t\tthis.show();\n\n\t\tconst handle = () => {\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.hide();\n\n\t\t\t\tthis.toggle.removeEventListener('click', handle, true);\n\t\t\t\tthis.toggle.removeEventListener('blur', handle, true);\n\t\t\t});\n\t\t};\n\n\t\tthis.toggle.addEventListener('click', handle, true);\n\t\tthis.toggle.addEventListener('blur', handle, true);\n\t}\n\n\tprivate focus() {\n\t\tthis.show();\n\n\t\tconst handle = () => {\n\t\t\tthis.hide();\n\n\t\t\tthis.toggle.removeEventListener('blur', handle, true);\n\t\t};\n\n\t\tthis.toggle.addEventListener('blur', handle, true);\n\t}\n\n\tprivate buildPopper() {\n\t\tthis.popperInstance = createPopper(this.toggle, this.content, {\n\t\t\tplacement: POSITIONS[this.placement] || 'top',\n\t\t\tstrategy: this.strategy || 'fixed',\n\t\t\tmodifiers: [\n\t\t\t\t{\n\t\t\t\t\tname: 'offset',\n\t\t\t\t\toptions: {\n\t\t\t\t\t\toffset: [0, 5],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t});\n\t}\n\n\t// Public methods\n\tpublic show() {\n\t\tthis.content.classList.remove('hidden');\n\n\t\tif (this.preventPopper === 'false') {\n\t\t\tthis.popperInstance.setOptions((options) => ({\n\t\t\t\t...options,\n\t\t\t\tmodifiers: [\n\t\t\t\t\t...options.modifiers,\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'eventListeners',\n\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}));\n\n\t\t\tthis.popperInstance.update();\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tthis.el.classList.add('show');\n\n\t\t\tthis.fireEvent('show', this.el);\n\t\t\tdispatch('show.hs.tooltip', this.el, this.el);\n\t\t});\n\t}\n\n\tpublic hide() {\n\t\tthis.el.classList.remove('show');\n\n\t\tif (this.preventPopper === 'false') {\n\t\t\tthis.popperInstance.setOptions((options) => ({\n\t\t\t\t...options,\n\t\t\t\tmodifiers: [\n\t\t\t\t\t...options.modifiers,\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'eventListeners',\n\t\t\t\t\t\tenabled: false,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}));\n\t\t}\n\n\t\tthis.fireEvent('hide', this.el);\n\t\tdispatch('hide.hs.tooltip', this.el, this.el);\n\n\t\tafterTransition(this.content, () => {\n\t\t\tif (this.el.classList.contains('show')) return false;\n\n\t\t\tthis.content.classList.add('hidden');\n\t\t});\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance = false) {\n\t\tconst elInCollection = window.$hsTooltipCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsTooltipCollection) window.$hsTooltipCollection = [];\n\n\t\tdocument.querySelectorAll('.hs-tooltip').forEach((el: HTMLElement) => {\n\t\t\tif (\n\t\t\t\t!window.$hsTooltipCollection.find(\n\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t)\n\t\t\t)\n\t\t\t\tnew HSTooltip(el);\n\t\t});\n\t}\n\n\tstatic show(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsTooltipCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection) {\n\t\t\tswitch (elInCollection.element.eventMode) {\n\t\t\t\tcase 'click':\n\t\t\t\t\telInCollection.element.click();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'focus':\n\t\t\t\t\telInCollection.element.focus();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\telInCollection.element.enter();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic hide(target: HTMLElement) {\n\t\tconst elInCollection = window.$hsTooltipCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection) elInCollection.element.hide();\n\t}\n\n\t// Backward compatibility\n\tstatic on(evt: string, target: HTMLElement, cb: Function) {\n\t\tconst elInCollection = window.$hsTooltipCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection) elInCollection.element.events[evt] = cb;\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSTooltip: Function;\n\t\t$hsTooltipCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSTooltip.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Tooltip collection:', window.$hsTooltipCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSTooltip = HSTooltip;\n}\n\nexport default HSTooltip;\n","/*\n * HSTreeView\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { dispatch } from '../../utils';\n\nimport {\n\tITreeViewOptions,\n\tITreeView,\n\tITreeViewItem,\n\tITreeViewOptionsControlBy,\n} from './interfaces';\n\nimport HSBasePlugin from '../base-plugin';\nimport { ICollectionItem } from '../../interfaces';\n\nclass HSTreeView extends HSBasePlugin implements ITreeView {\n\tprivate items: ITreeViewItem[] = [];\n\tprivate readonly controlBy: ITreeViewOptionsControlBy;\n\tprivate readonly autoSelectChildren: boolean;\n\tprivate readonly isIndeterminate: boolean;\n\tstatic group: number = 0;\n\n\tconstructor(el: HTMLElement, options?: ITreeViewOptions, events?: {}) {\n\t\tsuper(el, options, events);\n\n\t\tconst data = el.getAttribute('data-hs-tree-view');\n\t\tconst dataOptions: ITreeView = data ? JSON.parse(data) : {};\n\t\tconst concatOptions = {\n\t\t\t...dataOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.controlBy = concatOptions?.controlBy || 'button';\n\t\tthis.autoSelectChildren = concatOptions?.autoSelectChildren || false;\n\t\tthis.isIndeterminate = concatOptions?.isIndeterminate || true;\n\n\t\tthis.init();\n\t}\n\n\tprivate init() {\n\t\tthis.createCollection(window.$hsTreeViewCollection, this);\n\n\t\tHSTreeView.group += 1;\n\n\t\tthis.initItems();\n\t}\n\n\tprivate initItems() {\n\t\tthis.el.querySelectorAll('[data-hs-tree-view-item]').forEach((el, ind) => {\n\t\t\tconst data = JSON.parse(el.getAttribute('data-hs-tree-view-item'));\n\t\t\tif (!el.id) el.id = `tree-view-item-${HSTreeView.group}-${ind}`;\n\t\t\tconst concatData = {\n\t\t\t\t...data,\n\t\t\t\tid: data.id ?? el.id,\n\t\t\t\tpath: this.getPath(el),\n\t\t\t\tisSelected: data.isSelected ?? false,\n\t\t\t};\n\n\t\t\tthis.items.push(concatData);\n\n\t\t\tif (this.controlBy === 'checkbox') this.controlByCheckbox(el, concatData);\n\t\t\telse this.controlByButton(el, concatData);\n\t\t});\n\t}\n\n\tprivate controlByButton(el: Element, data: ITreeViewItem) {\n\t\tel.addEventListener('click', (evt: PointerEvent) => {\n\t\t\tevt.stopPropagation();\n\n\t\t\tif (el.classList.contains('disabled')) return false;\n\n\t\t\tif (!evt.metaKey && !evt.shiftKey) this.unselectItem(data);\n\t\t\tthis.selectItem(el, data);\n\n\t\t\tthis.fireEvent('click', {\n\t\t\t\tel,\n\t\t\t\tdata: data,\n\t\t\t});\n\t\t\tdispatch('click.hs.treeView', this.el, {\n\t\t\t\tel,\n\t\t\t\tdata: data,\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate controlByCheckbox(el: Element, data: ITreeViewItem) {\n\t\tconst control = el.querySelector(`input[value=\"${data.value}\"]`);\n\n\t\tif (!!control)\n\t\t\tcontrol.addEventListener('change', () => {\n\t\t\t\tif (this.autoSelectChildren) {\n\t\t\t\t\tthis.selectItem(el, data);\n\t\t\t\t\tif (data.isDir) this.selectChildren(el, data);\n\t\t\t\t\tthis.toggleParent(el);\n\t\t\t\t} else this.selectItem(el, data);\n\t\t\t});\n\t}\n\n\tprivate getItem(id: string) {\n\t\treturn this.items.find((el) => el.id === id);\n\t}\n\n\tprivate getPath(el: Element) {\n\t\tconst path: any = [];\n\t\tlet parent = el.closest('[data-hs-tree-view-item]');\n\n\t\twhile (!!parent) {\n\t\t\tconst data = JSON.parse(parent.getAttribute('data-hs-tree-view-item'));\n\n\t\t\tpath.push(data.value);\n\n\t\t\tparent = parent.parentElement?.closest('[data-hs-tree-view-item]');\n\t\t}\n\n\t\treturn path.reverse().join('/');\n\t}\n\n\tprivate unselectItem(exception: ITreeViewItem | null = null) {\n\t\tlet selectedItems = this.getSelectedItems();\n\t\tif (exception)\n\t\t\tselectedItems = selectedItems.filter((el) => el.id !== exception.id);\n\n\t\tif (selectedItems.length) {\n\t\t\tselectedItems.forEach((el) => {\n\t\t\t\tconst selectedElement = document.querySelector(`#${el.id}`);\n\n\t\t\t\tselectedElement.classList.remove('selected');\n\t\t\t\tthis.changeItemProp(el.id, 'isSelected', false);\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate selectItem(el: Element, data: ITreeViewItem) {\n\t\tif (data.isSelected) {\n\t\t\tel.classList.remove('selected');\n\t\t\tthis.changeItemProp(data.id, 'isSelected', false);\n\t\t} else {\n\t\t\tel.classList.add('selected');\n\t\t\tthis.changeItemProp(data.id, 'isSelected', true);\n\t\t}\n\t}\n\n\tprivate selectChildren(el: Element, data: ITreeViewItem) {\n\t\tconst items = el.querySelectorAll('[data-hs-tree-view-item]');\n\n\t\tArray.from(items)\n\t\t\t.filter((elI) => !elI.classList.contains('disabled'))\n\t\t\t.forEach((elI) => {\n\t\t\t\tconst initialItemData = elI.id ? this.getItem(elI.id) : null;\n\n\t\t\t\tif (!initialItemData) return false;\n\n\t\t\t\tif (data.isSelected) {\n\t\t\t\t\telI.classList.add('selected');\n\t\t\t\t\tthis.changeItemProp(initialItemData.id, 'isSelected', true);\n\t\t\t\t} else {\n\t\t\t\t\telI.classList.remove('selected');\n\t\t\t\t\tthis.changeItemProp(initialItemData.id, 'isSelected', false);\n\t\t\t\t}\n\n\t\t\t\tconst currentItemData = this.getItem(elI.id);\n\t\t\t\tconst control: HTMLFormElement = elI.querySelector(\n\t\t\t\t\t`input[value=\"${currentItemData.value}\"]`,\n\t\t\t\t);\n\n\t\t\t\tif (this.isIndeterminate) control.indeterminate = false;\n\n\t\t\t\tif (currentItemData.isSelected) control.checked = true;\n\t\t\t\telse control.checked = false;\n\t\t\t});\n\t}\n\n\tprivate toggleParent(el: Element) {\n\t\tlet parent = el.parentElement?.closest('[data-hs-tree-view-item]');\n\n\t\twhile (!!parent) {\n\t\t\tconst items = parent.querySelectorAll(\n\t\t\t\t'[data-hs-tree-view-item]:not(.disabled)',\n\t\t\t);\n\t\t\tconst data = JSON.parse(parent.getAttribute('data-hs-tree-view-item'));\n\t\t\tconst control: HTMLFormElement = parent.querySelector(\n\t\t\t\t`input[value=\"${data.value}\"]`,\n\t\t\t);\n\t\t\tlet hasUnchecked = false;\n\t\t\tlet checkedItems = 0;\n\n\t\t\titems.forEach((elI) => {\n\t\t\t\tconst dataI = this.getItem(elI.id);\n\n\t\t\t\tif (dataI.isSelected) checkedItems += 1;\n\t\t\t\tif (!dataI.isSelected) hasUnchecked = true;\n\t\t\t});\n\n\t\t\tif (hasUnchecked) {\n\t\t\t\tparent.classList.remove('selected');\n\t\t\t\tthis.changeItemProp(parent.id, 'isSelected', false);\n\t\t\t\tcontrol.checked = false;\n\t\t\t} else {\n\t\t\t\tparent.classList.add('selected');\n\t\t\t\tthis.changeItemProp(parent.id, 'isSelected', true);\n\t\t\t\tcontrol.checked = true;\n\t\t\t}\n\n\t\t\tif (this.isIndeterminate) {\n\t\t\t\tif (checkedItems > 0 && checkedItems < items.length)\n\t\t\t\t\tcontrol.indeterminate = true;\n\t\t\t\telse control.indeterminate = false;\n\t\t\t}\n\n\t\t\tparent = parent.parentElement?.closest('[data-hs-tree-view-item]');\n\t\t}\n\t}\n\n\t// Public methods\n\tpublic update() {\n\t\tthis.items.map((el: ITreeViewItem) => {\n\t\t\tconst selector = document.querySelector(`#${el.id}`);\n\n\t\t\tif (el.path !== this.getPath(selector)) el.path = this.getPath(selector);\n\n\t\t\treturn el;\n\t\t});\n\t}\n\n\tpublic getSelectedItems() {\n\t\treturn this.items.filter((el) => el.isSelected);\n\t}\n\n\tpublic changeItemProp(id: string, prop: string, val: any) {\n\t\tthis.items.map((el) => {\n\t\t\t// @ts-ignore\n\t\t\tif (el.id === id) el[prop] = val;\n\n\t\t\treturn el;\n\t\t});\n\t}\n\n\t// Static methods\n\tstatic getInstance(target: HTMLElement | string, isInstance?: boolean) {\n\t\tconst elInCollection = window.$hsTreeViewCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\treturn elInCollection\n\t\t\t? isInstance\n\t\t\t\t? elInCollection\n\t\t\t\t: elInCollection.element.el\n\t\t\t: null;\n\t}\n\n\tstatic autoInit() {\n\t\tif (!window.$hsTreeViewCollection) window.$hsTreeViewCollection = [];\n\n\t\tdocument\n\t\t\t.querySelectorAll('[data-hs-tree-view]:not(.--prevent-on-load-init)')\n\t\t\t.forEach((el: HTMLElement) => {\n\t\t\t\tif (\n\t\t\t\t\t!window.$hsTreeViewCollection.find(\n\t\t\t\t\t\t(elC) => (elC?.element?.el as HTMLElement) === el,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t\tnew HSTreeView(el);\n\t\t\t});\n\t}\n\n\t// Backward compatibility\n\tstatic on(evt: string, target: HTMLElement, cb: Function) {\n\t\tconst elInCollection = window.$hsTreeViewCollection.find(\n\t\t\t(el) =>\n\t\t\t\tel.element.el ===\n\t\t\t\t(typeof target === 'string' ? document.querySelector(target) : target),\n\t\t);\n\n\t\tif (elInCollection) elInCollection.element.events[evt] = cb;\n\t}\n}\n\ndeclare global {\n\tinterface Window {\n\t\tHSTreeView: Function;\n\t\t$hsTreeViewCollection: ICollectionItem[];\n\t}\n}\n\nwindow.addEventListener('load', () => {\n\tHSTreeView.autoInit();\n\n\t// Uncomment for debug\n\t// console.log('Tree view collection:', window.$hsTreeViewCollection);\n});\n\nif (typeof window !== 'undefined') {\n\twindow.HSTreeView = HSTreeView;\n}\n\nexport default HSTreeView;\n","/*\n * HSStaticMethods\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { getClassProperty, afterTransition } from '../utils';\nimport { COLLECTIONS } from '../spa/index';\nimport { IStaticMethods } from '../static/interfaces';\nimport { ICollectionItem } from '../interfaces';\nimport type HSCopyMarkup from '../plugins/copy-markup';\nimport type HSAccordion from '../plugins/accordion';\nimport type HSCarousel from '../plugins/carousel';\nimport type HSCollapse from '../plugins/collapse';\nimport type HSComboBox from '../plugins/combobox';\nimport type HSDataTable from '../plugins/datatable';\nimport type HSDropdown from '../plugins/dropdown';\nimport type HSFileUpload from '../plugins/file-upload';\nimport type HSInputNumber from '../plugins/input-number';\nimport type HSOverlay from '../plugins/overlay';\nimport type HSPinInput from '../plugins/pin-input';\nimport type HSRangeSlider from '../plugins/range-slider';\nimport type HSRemoveElement from '../plugins/remove-element';\nimport type HSScrollspy from '../plugins/scrollspy';\nimport type HSSelect from '../plugins/select';\nimport type HSStepper from '../plugins/stepper';\nimport type HSStrongPassword from '../plugins/strong-password';\nimport type HSTabs from '../plugins/tabs';\nimport type HSTextareaAutoHeight from '../plugins/textarea-auto-height';\nimport type HSThemeSwitch from '../plugins/theme-switch';\nimport type HSToggleCount from '../plugins/toggle-count';\nimport type HSTogglePassword from '../plugins/toggle-password';\nimport type HSTooltip from '../plugins/tooltip';\nimport type HSTreeView from '../plugins/tree-view';\n\ndeclare global {\n\tinterface Window {\n\t\tHSStaticMethods: IStaticMethods;\n\t\t$hsCopyMarkupCollection: ICollectionItem[];\n\t\t$hsAccordionCollection: ICollectionItem[];\n\t\t$hsCarouselCollection: ICollectionItem[];\n\t\t$hsCollapseCollection: ICollectionItem[];\n\t\t$hsComboBoxCollection: ICollectionItem[];\n\t\t$hsDataTableCollection: ICollectionItem[];\n\t\t$hsDropdownCollection: ICollectionItem[];\n\t\t$hsFileUploadCollection: ICollectionItem[];\n\t\t$hsInputNumberCollection: { id: number; element: HSInputNumber }[];\n\t\t$hsOverlayCollection: ICollectionItem[];\n\t\t$hsPinInputCollection: ICollectionItem[];\n\t\t$hsRangeSliderCollection: ICollectionItem[];\n\t\t$hsRemoveElementCollection: ICollectionItem[];\n\t\t$hsScrollspyCollection: ICollectionItem[];\n\t\t$hsSelectCollection: ICollectionItem[];\n\t\t$hsStepperCollection: ICollectionItem[];\n\t\t$hsStrongPasswordCollection: ICollectionItem[];\n\t\t$hsTabsCollection: ICollectionItem[];\n\t\t$hsTextareaAutoHeightCollection: ICollectionItem[];\n\t\t$hsThemeSwitchCollection: ICollectionItem[];\n\t\t$hsToggleCountCollection: ICollectionItem[];\n\t\t$hsTogglePasswordCollection: ICollectionItem[];\n\t\t$hsTooltipCollection: ICollectionItem[];\n\t\t$hsTreeViewCollection: ICollectionItem[];\n\t}\n}\n\nconst HSStaticMethods: IStaticMethods = {\n\tgetClassProperty,\n\tafterTransition,\n\tautoInit(collection: string | string[] = 'all') {\n\t\tif (collection === 'all') {\n\t\t\tCOLLECTIONS.forEach(({ fn }) => {\n\t\t\t\tfn?.autoInit();\n\t\t\t});\n\t\t} else {\n\t\t\tCOLLECTIONS.forEach(({ key, fn }) => {\n\t\t\t\tif (collection.includes(key)) fn?.autoInit();\n\t\t\t});\n\t\t}\n\t},\n\tcleanCollection(name: string | string[] = 'all') {\n\t\tif (name === 'all') {\n\t\t\tCOLLECTIONS.forEach(({ collection }) => {\n\t\t\t\tif ((window as any)[collection] instanceof Array) {\n\t\t\t\t\t(window as any)[collection] = [];\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tCOLLECTIONS.forEach(({ key, collection }) => {\n\t\t\t\tif (\n\t\t\t\t\tname.includes(key) &&\n\t\t\t\t\t(window as any)[collection] instanceof Array\n\t\t\t\t) {\n\t\t\t\t\t(window as any)[collection] = [];\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n};\n\nif (typeof window !== 'undefined') {\n\twindow.HSStaticMethods = HSStaticMethods;\n}\n\nexport default HSStaticMethods;\n","/*\n * @version: 2.5.1\n * @author: Preline Labs Ltd.\n * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)\n * Copyright 2024 Preline Labs Ltd.\n */\n\nimport { ISpaCollectionItem } from '../spa/interfaces';\n\nimport HSCopyMarkup from '../plugins/copy-markup';\nimport HSAccordion from '../plugins/accordion';\nimport HSCarousel from '../plugins/carousel';\nimport HSCollapse from '../plugins/collapse';\nimport HSComboBox from '../plugins/combobox';\nimport HSDataTable from '../plugins/datatable';\nimport HSDropdown from '../plugins/dropdown';\nimport HSFileUpload from '../plugins/file-upload';\nimport HSInputNumber from '../plugins/input-number';\nimport HSOverlay from '../plugins/overlay';\nimport HSPinInput from '../plugins/pin-input';\nimport HSRangeSlider from '../plugins/range-slider';\nimport HSRemoveElement from '../plugins/remove-element';\nimport HSScrollspy from '../plugins/scrollspy';\nimport HSSelect from '../plugins/select';\nimport HSStepper from '../plugins/stepper';\nimport HSStrongPassword from '../plugins/strong-password';\nimport HSTabs from '../plugins/tabs';\nimport HSTextareaAutoHeight from '../plugins/textarea-auto-height';\nimport HSThemeSwitch from '../plugins/theme-switch';\nimport HSToggleCount from '../plugins/toggle-count';\nimport HSTogglePassword from '../plugins/toggle-password';\nimport HSTooltip from '../plugins/tooltip';\nimport HSTreeView from '../plugins/tree-view';\n\nexport const COLLECTIONS: ISpaCollectionItem[] = [\n\t{\n\t\tkey: 'copy-markup',\n\t\tfn: HSCopyMarkup,\n\t\tcollection: '$hsCopyMarkupCollection',\n\t},\n\t{ key: 'accordion', fn: HSAccordion, collection: '$hsAccordionCollection' },\n\t{ key: 'carousel', fn: HSCarousel, collection: '$hsCarouselCollection' },\n\t{ key: 'collapse', fn: HSCollapse, collection: '$hsCollapseCollection' },\n\t{ key: 'combobox', fn: HSComboBox, collection: '$hsComboBoxCollection' },\n\t{ key: 'datatable', fn: HSDataTable, collection: '$hsDataTableCollection' },\n\t{ key: 'dropdown', fn: HSDropdown, collection: '$hsDropdownCollection' },\n\t{\n\t\tkey: 'file-upload',\n\t\tfn: HSFileUpload,\n\t\tcollection: '$hsFileUploadCollection',\n\t},\n\t{\n\t\tkey: 'input-number',\n\t\tfn: HSInputNumber,\n\t\tcollection: '$hsInputNumberCollection',\n\t},\n\t{ key: 'overlay', fn: HSOverlay, collection: '$hsOverlayCollection' },\n\t{ key: 'pin-input', fn: HSPinInput, collection: '$hsPinInputCollection' },\n\t{\n\t\tkey: 'range-slider',\n\t\tfn: HSRangeSlider,\n\t\tcollection: '$hsRangeSliderCollection',\n\t},\n\t{\n\t\tkey: 'remove-element',\n\t\tfn: HSRemoveElement,\n\t\tcollection: '$hsRemoveElementCollection',\n\t},\n\t{ key: 'scrollspy', fn: HSScrollspy, collection: '$hsScrollspyCollection' },\n\t{ key: 'select', fn: HSSelect, collection: '$hsSelectCollection' },\n\t{ key: 'stepper', fn: HSStepper, collection: '$hsStepperCollection' },\n\t{\n\t\tkey: 'strong-password',\n\t\tfn: HSStrongPassword,\n\t\tcollection: '$hsStrongPasswordCollection',\n\t},\n\t{ key: 'tabs', fn: HSTabs, collection: '$hsTabsCollection' },\n\t{\n\t\tkey: 'textarea-auto-height',\n\t\tfn: HSTextareaAutoHeight,\n\t\tcollection: '$hsTextareaAutoHeightCollection',\n\t},\n\t{\n\t\tkey: 'theme-switch',\n\t\tfn: HSThemeSwitch,\n\t\tcollection: '$hsThemeSwitchCollection',\n\t},\n\t{\n\t\tkey: 'toggle-count',\n\t\tfn: HSToggleCount,\n\t\tcollection: '$hsToggleCountCollection',\n\t},\n\t{\n\t\tkey: 'toggle-password',\n\t\tfn: HSTogglePassword,\n\t\tcollection: '$hsTogglePasswordCollection',\n\t},\n\t{ key: 'tooltip', fn: HSTooltip, collection: '$hsTooltipCollection' },\n\t{ key: 'tree-view', fn: HSTreeView, collection: '$hsTreeViewCollection' },\n];\n","/**\n * Swiper 10.3.1\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * https://swiperjs.com\n *\n * Copyright 2014-2023 Vladimir Kharlampidi\n *\n * Released under the MIT License\n *\n * Released on: September 28, 2023\n */\n\nexport { S as Swiper, S as default } from './shared/swiper-core.mjs';\n","import { a as getWindow, g as getDocument } from './ssr-window.esm.mjs';\nimport { a as elementParents, l as elementStyle, e as elementChildren, s as setCSSProperty, f as elementOuterSize, m as elementNextAll, o as elementPrevAll, h as getTranslate, p as animateCSSModeScroll, n as nextTick, d as now, q as extend, g as elementIndex, c as createElement, r as deleteProps } from './utils.mjs';\n\nlet support;\nfunction calcSupport() {\n const window = getWindow();\n const document = getDocument();\n return {\n smoothScroll: document.documentElement && document.documentElement.style && 'scrollBehavior' in document.documentElement.style,\n touch: !!('ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch)\n };\n}\nfunction getSupport() {\n if (!support) {\n support = calcSupport();\n }\n return support;\n}\n\nlet deviceCached;\nfunction calcDevice(_temp) {\n let {\n userAgent\n } = _temp === void 0 ? {} : _temp;\n const support = getSupport();\n const window = getWindow();\n const platform = window.navigator.platform;\n const ua = userAgent || window.navigator.userAgent;\n const device = {\n ios: false,\n android: false\n };\n const screenWidth = window.screen.width;\n const screenHeight = window.screen.height;\n const android = ua.match(/(Android);?[\\s\\/]+([\\d.]+)?/); // eslint-disable-line\n let ipad = ua.match(/(iPad).*OS\\s([\\d_]+)/);\n const ipod = ua.match(/(iPod)(.*OS\\s([\\d_]+))?/);\n const iphone = !ipad && ua.match(/(iPhone\\sOS|iOS)\\s([\\d_]+)/);\n const windows = platform === 'Win32';\n let macos = platform === 'MacIntel';\n\n // iPadOs 13 fix\n const iPadScreens = ['1024x1366', '1366x1024', '834x1194', '1194x834', '834x1112', '1112x834', '768x1024', '1024x768', '820x1180', '1180x820', '810x1080', '1080x810'];\n if (!ipad && macos && support.touch && iPadScreens.indexOf(`${screenWidth}x${screenHeight}`) >= 0) {\n ipad = ua.match(/(Version)\\/([\\d.]+)/);\n if (!ipad) ipad = [0, 1, '13_0_0'];\n macos = false;\n }\n\n // Android\n if (android && !windows) {\n device.os = 'android';\n device.android = true;\n }\n if (ipad || iphone || ipod) {\n device.os = 'ios';\n device.ios = true;\n }\n\n // Export object\n return device;\n}\nfunction getDevice(overrides) {\n if (overrides === void 0) {\n overrides = {};\n }\n if (!deviceCached) {\n deviceCached = calcDevice(overrides);\n }\n return deviceCached;\n}\n\nlet browser;\nfunction calcBrowser() {\n const window = getWindow();\n let needPerspectiveFix = false;\n function isSafari() {\n const ua = window.navigator.userAgent.toLowerCase();\n return ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0;\n }\n if (isSafari()) {\n const ua = String(window.navigator.userAgent);\n if (ua.includes('Version/')) {\n const [major, minor] = ua.split('Version/')[1].split(' ')[0].split('.').map(num => Number(num));\n needPerspectiveFix = major < 16 || major === 16 && minor < 2;\n }\n }\n return {\n isSafari: needPerspectiveFix || isSafari(),\n needPerspectiveFix,\n isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent)\n };\n}\nfunction getBrowser() {\n if (!browser) {\n browser = calcBrowser();\n }\n return browser;\n}\n\nfunction Resize(_ref) {\n let {\n swiper,\n on,\n emit\n } = _ref;\n const window = getWindow();\n let observer = null;\n let animationFrame = null;\n const resizeHandler = () => {\n if (!swiper || swiper.destroyed || !swiper.initialized) return;\n emit('beforeResize');\n emit('resize');\n };\n const createObserver = () => {\n if (!swiper || swiper.destroyed || !swiper.initialized) return;\n observer = new ResizeObserver(entries => {\n animationFrame = window.requestAnimationFrame(() => {\n const {\n width,\n height\n } = swiper;\n let newWidth = width;\n let newHeight = height;\n entries.forEach(_ref2 => {\n let {\n contentBoxSize,\n contentRect,\n target\n } = _ref2;\n if (target && target !== swiper.el) return;\n newWidth = contentRect ? contentRect.width : (contentBoxSize[0] || contentBoxSize).inlineSize;\n newHeight = contentRect ? contentRect.height : (contentBoxSize[0] || contentBoxSize).blockSize;\n });\n if (newWidth !== width || newHeight !== height) {\n resizeHandler();\n }\n });\n });\n observer.observe(swiper.el);\n };\n const removeObserver = () => {\n if (animationFrame) {\n window.cancelAnimationFrame(animationFrame);\n }\n if (observer && observer.unobserve && swiper.el) {\n observer.unobserve(swiper.el);\n observer = null;\n }\n };\n const orientationChangeHandler = () => {\n if (!swiper || swiper.destroyed || !swiper.initialized) return;\n emit('orientationchange');\n };\n on('init', () => {\n if (swiper.params.resizeObserver && typeof window.ResizeObserver !== 'undefined') {\n createObserver();\n return;\n }\n window.addEventListener('resize', resizeHandler);\n window.addEventListener('orientationchange', orientationChangeHandler);\n });\n on('destroy', () => {\n removeObserver();\n window.removeEventListener('resize', resizeHandler);\n window.removeEventListener('orientationchange', orientationChangeHandler);\n });\n}\n\nfunction Observer(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit\n } = _ref;\n const observers = [];\n const window = getWindow();\n const attach = function (target, options) {\n if (options === void 0) {\n options = {};\n }\n const ObserverFunc = window.MutationObserver || window.WebkitMutationObserver;\n const observer = new ObserverFunc(mutations => {\n // The observerUpdate event should only be triggered\n // once despite the number of mutations. Additional\n // triggers are redundant and are very costly\n if (swiper.__preventObserver__) return;\n if (mutations.length === 1) {\n emit('observerUpdate', mutations[0]);\n return;\n }\n const observerUpdate = function observerUpdate() {\n emit('observerUpdate', mutations[0]);\n };\n if (window.requestAnimationFrame) {\n window.requestAnimationFrame(observerUpdate);\n } else {\n window.setTimeout(observerUpdate, 0);\n }\n });\n observer.observe(target, {\n attributes: typeof options.attributes === 'undefined' ? true : options.attributes,\n childList: typeof options.childList === 'undefined' ? true : options.childList,\n characterData: typeof options.characterData === 'undefined' ? true : options.characterData\n });\n observers.push(observer);\n };\n const init = () => {\n if (!swiper.params.observer) return;\n if (swiper.params.observeParents) {\n const containerParents = elementParents(swiper.hostEl);\n for (let i = 0; i < containerParents.length; i += 1) {\n attach(containerParents[i]);\n }\n }\n // Observe container\n attach(swiper.hostEl, {\n childList: swiper.params.observeSlideChildren\n });\n\n // Observe wrapper\n attach(swiper.wrapperEl, {\n attributes: false\n });\n };\n const destroy = () => {\n observers.forEach(observer => {\n observer.disconnect();\n });\n observers.splice(0, observers.length);\n };\n extendParams({\n observer: false,\n observeParents: false,\n observeSlideChildren: false\n });\n on('init', init);\n on('destroy', destroy);\n}\n\n/* eslint-disable no-underscore-dangle */\n\nvar eventsEmitter = {\n on(events, handler, priority) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (typeof handler !== 'function') return self;\n const method = priority ? 'unshift' : 'push';\n events.split(' ').forEach(event => {\n if (!self.eventsListeners[event]) self.eventsListeners[event] = [];\n self.eventsListeners[event][method](handler);\n });\n return self;\n },\n once(events, handler, priority) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (typeof handler !== 'function') return self;\n function onceHandler() {\n self.off(events, onceHandler);\n if (onceHandler.__emitterProxy) {\n delete onceHandler.__emitterProxy;\n }\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n handler.apply(self, args);\n }\n onceHandler.__emitterProxy = handler;\n return self.on(events, onceHandler, priority);\n },\n onAny(handler, priority) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (typeof handler !== 'function') return self;\n const method = priority ? 'unshift' : 'push';\n if (self.eventsAnyListeners.indexOf(handler) < 0) {\n self.eventsAnyListeners[method](handler);\n }\n return self;\n },\n offAny(handler) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (!self.eventsAnyListeners) return self;\n const index = self.eventsAnyListeners.indexOf(handler);\n if (index >= 0) {\n self.eventsAnyListeners.splice(index, 1);\n }\n return self;\n },\n off(events, handler) {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (!self.eventsListeners) return self;\n events.split(' ').forEach(event => {\n if (typeof handler === 'undefined') {\n self.eventsListeners[event] = [];\n } else if (self.eventsListeners[event]) {\n self.eventsListeners[event].forEach((eventHandler, index) => {\n if (eventHandler === handler || eventHandler.__emitterProxy && eventHandler.__emitterProxy === handler) {\n self.eventsListeners[event].splice(index, 1);\n }\n });\n }\n });\n return self;\n },\n emit() {\n const self = this;\n if (!self.eventsListeners || self.destroyed) return self;\n if (!self.eventsListeners) return self;\n let events;\n let data;\n let context;\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n if (typeof args[0] === 'string' || Array.isArray(args[0])) {\n events = args[0];\n data = args.slice(1, args.length);\n context = self;\n } else {\n events = args[0].events;\n data = args[0].data;\n context = args[0].context || self;\n }\n data.unshift(context);\n const eventsArray = Array.isArray(events) ? events : events.split(' ');\n eventsArray.forEach(event => {\n if (self.eventsAnyListeners && self.eventsAnyListeners.length) {\n self.eventsAnyListeners.forEach(eventHandler => {\n eventHandler.apply(context, [event, ...data]);\n });\n }\n if (self.eventsListeners && self.eventsListeners[event]) {\n self.eventsListeners[event].forEach(eventHandler => {\n eventHandler.apply(context, data);\n });\n }\n });\n return self;\n }\n};\n\nfunction updateSize() {\n const swiper = this;\n let width;\n let height;\n const el = swiper.el;\n if (typeof swiper.params.width !== 'undefined' && swiper.params.width !== null) {\n width = swiper.params.width;\n } else {\n width = el.clientWidth;\n }\n if (typeof swiper.params.height !== 'undefined' && swiper.params.height !== null) {\n height = swiper.params.height;\n } else {\n height = el.clientHeight;\n }\n if (width === 0 && swiper.isHorizontal() || height === 0 && swiper.isVertical()) {\n return;\n }\n\n // Subtract paddings\n width = width - parseInt(elementStyle(el, 'padding-left') || 0, 10) - parseInt(elementStyle(el, 'padding-right') || 0, 10);\n height = height - parseInt(elementStyle(el, 'padding-top') || 0, 10) - parseInt(elementStyle(el, 'padding-bottom') || 0, 10);\n if (Number.isNaN(width)) width = 0;\n if (Number.isNaN(height)) height = 0;\n Object.assign(swiper, {\n width,\n height,\n size: swiper.isHorizontal() ? width : height\n });\n}\n\nfunction updateSlides() {\n const swiper = this;\n function getDirectionLabel(property) {\n if (swiper.isHorizontal()) {\n return property;\n }\n // prettier-ignore\n return {\n 'width': 'height',\n 'margin-top': 'margin-left',\n 'margin-bottom ': 'margin-right',\n 'margin-left': 'margin-top',\n 'margin-right': 'margin-bottom',\n 'padding-left': 'padding-top',\n 'padding-right': 'padding-bottom',\n 'marginRight': 'marginBottom'\n }[property];\n }\n function getDirectionPropertyValue(node, label) {\n return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0);\n }\n const params = swiper.params;\n const {\n wrapperEl,\n slidesEl,\n size: swiperSize,\n rtlTranslate: rtl,\n wrongRTL\n } = swiper;\n const isVirtual = swiper.virtual && params.virtual.enabled;\n const previousSlidesLength = isVirtual ? swiper.virtual.slides.length : swiper.slides.length;\n const slides = elementChildren(slidesEl, `.${swiper.params.slideClass}, swiper-slide`);\n const slidesLength = isVirtual ? swiper.virtual.slides.length : slides.length;\n let snapGrid = [];\n const slidesGrid = [];\n const slidesSizesGrid = [];\n let offsetBefore = params.slidesOffsetBefore;\n if (typeof offsetBefore === 'function') {\n offsetBefore = params.slidesOffsetBefore.call(swiper);\n }\n let offsetAfter = params.slidesOffsetAfter;\n if (typeof offsetAfter === 'function') {\n offsetAfter = params.slidesOffsetAfter.call(swiper);\n }\n const previousSnapGridLength = swiper.snapGrid.length;\n const previousSlidesGridLength = swiper.slidesGrid.length;\n let spaceBetween = params.spaceBetween;\n let slidePosition = -offsetBefore;\n let prevSlideSize = 0;\n let index = 0;\n if (typeof swiperSize === 'undefined') {\n return;\n }\n if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {\n spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiperSize;\n } else if (typeof spaceBetween === 'string') {\n spaceBetween = parseFloat(spaceBetween);\n }\n swiper.virtualSize = -spaceBetween;\n\n // reset margins\n slides.forEach(slideEl => {\n if (rtl) {\n slideEl.style.marginLeft = '';\n } else {\n slideEl.style.marginRight = '';\n }\n slideEl.style.marginBottom = '';\n slideEl.style.marginTop = '';\n });\n\n // reset cssMode offsets\n if (params.centeredSlides && params.cssMode) {\n setCSSProperty(wrapperEl, '--swiper-centered-offset-before', '');\n setCSSProperty(wrapperEl, '--swiper-centered-offset-after', '');\n }\n const gridEnabled = params.grid && params.grid.rows > 1 && swiper.grid;\n if (gridEnabled) {\n swiper.grid.initSlides(slidesLength);\n }\n\n // Calc slides\n let slideSize;\n const shouldResetSlideSize = params.slidesPerView === 'auto' && params.breakpoints && Object.keys(params.breakpoints).filter(key => {\n return typeof params.breakpoints[key].slidesPerView !== 'undefined';\n }).length > 0;\n for (let i = 0; i < slidesLength; i += 1) {\n slideSize = 0;\n let slide;\n if (slides[i]) slide = slides[i];\n if (gridEnabled) {\n swiper.grid.updateSlide(i, slide, slidesLength, getDirectionLabel);\n }\n if (slides[i] && elementStyle(slide, 'display') === 'none') continue; // eslint-disable-line\n\n if (params.slidesPerView === 'auto') {\n if (shouldResetSlideSize) {\n slides[i].style[getDirectionLabel('width')] = ``;\n }\n const slideStyles = getComputedStyle(slide);\n const currentTransform = slide.style.transform;\n const currentWebKitTransform = slide.style.webkitTransform;\n if (currentTransform) {\n slide.style.transform = 'none';\n }\n if (currentWebKitTransform) {\n slide.style.webkitTransform = 'none';\n }\n if (params.roundLengths) {\n slideSize = swiper.isHorizontal() ? elementOuterSize(slide, 'width', true) : elementOuterSize(slide, 'height', true);\n } else {\n // eslint-disable-next-line\n const width = getDirectionPropertyValue(slideStyles, 'width');\n const paddingLeft = getDirectionPropertyValue(slideStyles, 'padding-left');\n const paddingRight = getDirectionPropertyValue(slideStyles, 'padding-right');\n const marginLeft = getDirectionPropertyValue(slideStyles, 'margin-left');\n const marginRight = getDirectionPropertyValue(slideStyles, 'margin-right');\n const boxSizing = slideStyles.getPropertyValue('box-sizing');\n if (boxSizing && boxSizing === 'border-box') {\n slideSize = width + marginLeft + marginRight;\n } else {\n const {\n clientWidth,\n offsetWidth\n } = slide;\n slideSize = width + paddingLeft + paddingRight + marginLeft + marginRight + (offsetWidth - clientWidth);\n }\n }\n if (currentTransform) {\n slide.style.transform = currentTransform;\n }\n if (currentWebKitTransform) {\n slide.style.webkitTransform = currentWebKitTransform;\n }\n if (params.roundLengths) slideSize = Math.floor(slideSize);\n } else {\n slideSize = (swiperSize - (params.slidesPerView - 1) * spaceBetween) / params.slidesPerView;\n if (params.roundLengths) slideSize = Math.floor(slideSize);\n if (slides[i]) {\n slides[i].style[getDirectionLabel('width')] = `${slideSize}px`;\n }\n }\n if (slides[i]) {\n slides[i].swiperSlideSize = slideSize;\n }\n slidesSizesGrid.push(slideSize);\n if (params.centeredSlides) {\n slidePosition = slidePosition + slideSize / 2 + prevSlideSize / 2 + spaceBetween;\n if (prevSlideSize === 0 && i !== 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;\n if (i === 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;\n if (Math.abs(slidePosition) < 1 / 1000) slidePosition = 0;\n if (params.roundLengths) slidePosition = Math.floor(slidePosition);\n if (index % params.slidesPerGroup === 0) snapGrid.push(slidePosition);\n slidesGrid.push(slidePosition);\n } else {\n if (params.roundLengths) slidePosition = Math.floor(slidePosition);\n if ((index - Math.min(swiper.params.slidesPerGroupSkip, index)) % swiper.params.slidesPerGroup === 0) snapGrid.push(slidePosition);\n slidesGrid.push(slidePosition);\n slidePosition = slidePosition + slideSize + spaceBetween;\n }\n swiper.virtualSize += slideSize + spaceBetween;\n prevSlideSize = slideSize;\n index += 1;\n }\n swiper.virtualSize = Math.max(swiper.virtualSize, swiperSize) + offsetAfter;\n if (rtl && wrongRTL && (params.effect === 'slide' || params.effect === 'coverflow')) {\n wrapperEl.style.width = `${swiper.virtualSize + spaceBetween}px`;\n }\n if (params.setWrapperSize) {\n wrapperEl.style[getDirectionLabel('width')] = `${swiper.virtualSize + spaceBetween}px`;\n }\n if (gridEnabled) {\n swiper.grid.updateWrapperSize(slideSize, snapGrid, getDirectionLabel);\n }\n\n // Remove last grid elements depending on width\n if (!params.centeredSlides) {\n const newSlidesGrid = [];\n for (let i = 0; i < snapGrid.length; i += 1) {\n let slidesGridItem = snapGrid[i];\n if (params.roundLengths) slidesGridItem = Math.floor(slidesGridItem);\n if (snapGrid[i] <= swiper.virtualSize - swiperSize) {\n newSlidesGrid.push(slidesGridItem);\n }\n }\n snapGrid = newSlidesGrid;\n if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) > 1) {\n snapGrid.push(swiper.virtualSize - swiperSize);\n }\n }\n if (isVirtual && params.loop) {\n const size = slidesSizesGrid[0] + spaceBetween;\n if (params.slidesPerGroup > 1) {\n const groups = Math.ceil((swiper.virtual.slidesBefore + swiper.virtual.slidesAfter) / params.slidesPerGroup);\n const groupSize = size * params.slidesPerGroup;\n for (let i = 0; i < groups; i += 1) {\n snapGrid.push(snapGrid[snapGrid.length - 1] + groupSize);\n }\n }\n for (let i = 0; i < swiper.virtual.slidesBefore + swiper.virtual.slidesAfter; i += 1) {\n if (params.slidesPerGroup === 1) {\n snapGrid.push(snapGrid[snapGrid.length - 1] + size);\n }\n slidesGrid.push(slidesGrid[slidesGrid.length - 1] + size);\n swiper.virtualSize += size;\n }\n }\n if (snapGrid.length === 0) snapGrid = [0];\n if (spaceBetween !== 0) {\n const key = swiper.isHorizontal() && rtl ? 'marginLeft' : getDirectionLabel('marginRight');\n slides.filter((_, slideIndex) => {\n if (!params.cssMode || params.loop) return true;\n if (slideIndex === slides.length - 1) {\n return false;\n }\n return true;\n }).forEach(slideEl => {\n slideEl.style[key] = `${spaceBetween}px`;\n });\n }\n if (params.centeredSlides && params.centeredSlidesBounds) {\n let allSlidesSize = 0;\n slidesSizesGrid.forEach(slideSizeValue => {\n allSlidesSize += slideSizeValue + (spaceBetween || 0);\n });\n allSlidesSize -= spaceBetween;\n const maxSnap = allSlidesSize - swiperSize;\n snapGrid = snapGrid.map(snap => {\n if (snap <= 0) return -offsetBefore;\n if (snap > maxSnap) return maxSnap + offsetAfter;\n return snap;\n });\n }\n if (params.centerInsufficientSlides) {\n let allSlidesSize = 0;\n slidesSizesGrid.forEach(slideSizeValue => {\n allSlidesSize += slideSizeValue + (spaceBetween || 0);\n });\n allSlidesSize -= spaceBetween;\n if (allSlidesSize < swiperSize) {\n const allSlidesOffset = (swiperSize - allSlidesSize) / 2;\n snapGrid.forEach((snap, snapIndex) => {\n snapGrid[snapIndex] = snap - allSlidesOffset;\n });\n slidesGrid.forEach((snap, snapIndex) => {\n slidesGrid[snapIndex] = snap + allSlidesOffset;\n });\n }\n }\n Object.assign(swiper, {\n slides,\n snapGrid,\n slidesGrid,\n slidesSizesGrid\n });\n if (params.centeredSlides && params.cssMode && !params.centeredSlidesBounds) {\n setCSSProperty(wrapperEl, '--swiper-centered-offset-before', `${-snapGrid[0]}px`);\n setCSSProperty(wrapperEl, '--swiper-centered-offset-after', `${swiper.size / 2 - slidesSizesGrid[slidesSizesGrid.length - 1] / 2}px`);\n const addToSnapGrid = -swiper.snapGrid[0];\n const addToSlidesGrid = -swiper.slidesGrid[0];\n swiper.snapGrid = swiper.snapGrid.map(v => v + addToSnapGrid);\n swiper.slidesGrid = swiper.slidesGrid.map(v => v + addToSlidesGrid);\n }\n if (slidesLength !== previousSlidesLength) {\n swiper.emit('slidesLengthChange');\n }\n if (snapGrid.length !== previousSnapGridLength) {\n if (swiper.params.watchOverflow) swiper.checkOverflow();\n swiper.emit('snapGridLengthChange');\n }\n if (slidesGrid.length !== previousSlidesGridLength) {\n swiper.emit('slidesGridLengthChange');\n }\n if (params.watchSlidesProgress) {\n swiper.updateSlidesOffset();\n }\n if (!isVirtual && !params.cssMode && (params.effect === 'slide' || params.effect === 'fade')) {\n const backFaceHiddenClass = `${params.containerModifierClass}backface-hidden`;\n const hasClassBackfaceClassAdded = swiper.el.classList.contains(backFaceHiddenClass);\n if (slidesLength <= params.maxBackfaceHiddenSlides) {\n if (!hasClassBackfaceClassAdded) swiper.el.classList.add(backFaceHiddenClass);\n } else if (hasClassBackfaceClassAdded) {\n swiper.el.classList.remove(backFaceHiddenClass);\n }\n }\n}\n\nfunction updateAutoHeight(speed) {\n const swiper = this;\n const activeSlides = [];\n const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n let newHeight = 0;\n let i;\n if (typeof speed === 'number') {\n swiper.setTransition(speed);\n } else if (speed === true) {\n swiper.setTransition(swiper.params.speed);\n }\n const getSlideByIndex = index => {\n if (isVirtual) {\n return swiper.slides[swiper.getSlideIndexByData(index)];\n }\n return swiper.slides[index];\n };\n // Find slides currently in view\n if (swiper.params.slidesPerView !== 'auto' && swiper.params.slidesPerView > 1) {\n if (swiper.params.centeredSlides) {\n (swiper.visibleSlides || []).forEach(slide => {\n activeSlides.push(slide);\n });\n } else {\n for (i = 0; i < Math.ceil(swiper.params.slidesPerView); i += 1) {\n const index = swiper.activeIndex + i;\n if (index > swiper.slides.length && !isVirtual) break;\n activeSlides.push(getSlideByIndex(index));\n }\n }\n } else {\n activeSlides.push(getSlideByIndex(swiper.activeIndex));\n }\n\n // Find new height from highest slide in view\n for (i = 0; i < activeSlides.length; i += 1) {\n if (typeof activeSlides[i] !== 'undefined') {\n const height = activeSlides[i].offsetHeight;\n newHeight = height > newHeight ? height : newHeight;\n }\n }\n\n // Update Height\n if (newHeight || newHeight === 0) swiper.wrapperEl.style.height = `${newHeight}px`;\n}\n\nfunction updateSlidesOffset() {\n const swiper = this;\n const slides = swiper.slides;\n // eslint-disable-next-line\n const minusOffset = swiper.isElement ? swiper.isHorizontal() ? swiper.wrapperEl.offsetLeft : swiper.wrapperEl.offsetTop : 0;\n for (let i = 0; i < slides.length; i += 1) {\n slides[i].swiperSlideOffset = (swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop) - minusOffset - swiper.cssOverflowAdjustment();\n }\n}\n\nfunction updateSlidesProgress(translate) {\n if (translate === void 0) {\n translate = this && this.translate || 0;\n }\n const swiper = this;\n const params = swiper.params;\n const {\n slides,\n rtlTranslate: rtl,\n snapGrid\n } = swiper;\n if (slides.length === 0) return;\n if (typeof slides[0].swiperSlideOffset === 'undefined') swiper.updateSlidesOffset();\n let offsetCenter = -translate;\n if (rtl) offsetCenter = translate;\n\n // Visible Slides\n slides.forEach(slideEl => {\n slideEl.classList.remove(params.slideVisibleClass);\n });\n swiper.visibleSlidesIndexes = [];\n swiper.visibleSlides = [];\n let spaceBetween = params.spaceBetween;\n if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {\n spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiper.size;\n } else if (typeof spaceBetween === 'string') {\n spaceBetween = parseFloat(spaceBetween);\n }\n for (let i = 0; i < slides.length; i += 1) {\n const slide = slides[i];\n let slideOffset = slide.swiperSlideOffset;\n if (params.cssMode && params.centeredSlides) {\n slideOffset -= slides[0].swiperSlideOffset;\n }\n const slideProgress = (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);\n const originalSlideProgress = (offsetCenter - snapGrid[0] + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);\n const slideBefore = -(offsetCenter - slideOffset);\n const slideAfter = slideBefore + swiper.slidesSizesGrid[i];\n const isVisible = slideBefore >= 0 && slideBefore < swiper.size - 1 || slideAfter > 1 && slideAfter <= swiper.size || slideBefore <= 0 && slideAfter >= swiper.size;\n if (isVisible) {\n swiper.visibleSlides.push(slide);\n swiper.visibleSlidesIndexes.push(i);\n slides[i].classList.add(params.slideVisibleClass);\n }\n slide.progress = rtl ? -slideProgress : slideProgress;\n slide.originalProgress = rtl ? -originalSlideProgress : originalSlideProgress;\n }\n}\n\nfunction updateProgress(translate) {\n const swiper = this;\n if (typeof translate === 'undefined') {\n const multiplier = swiper.rtlTranslate ? -1 : 1;\n // eslint-disable-next-line\n translate = swiper && swiper.translate && swiper.translate * multiplier || 0;\n }\n const params = swiper.params;\n const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\n let {\n progress,\n isBeginning,\n isEnd,\n progressLoop\n } = swiper;\n const wasBeginning = isBeginning;\n const wasEnd = isEnd;\n if (translatesDiff === 0) {\n progress = 0;\n isBeginning = true;\n isEnd = true;\n } else {\n progress = (translate - swiper.minTranslate()) / translatesDiff;\n const isBeginningRounded = Math.abs(translate - swiper.minTranslate()) < 1;\n const isEndRounded = Math.abs(translate - swiper.maxTranslate()) < 1;\n isBeginning = isBeginningRounded || progress <= 0;\n isEnd = isEndRounded || progress >= 1;\n if (isBeginningRounded) progress = 0;\n if (isEndRounded) progress = 1;\n }\n if (params.loop) {\n const firstSlideIndex = swiper.getSlideIndexByData(0);\n const lastSlideIndex = swiper.getSlideIndexByData(swiper.slides.length - 1);\n const firstSlideTranslate = swiper.slidesGrid[firstSlideIndex];\n const lastSlideTranslate = swiper.slidesGrid[lastSlideIndex];\n const translateMax = swiper.slidesGrid[swiper.slidesGrid.length - 1];\n const translateAbs = Math.abs(translate);\n if (translateAbs >= firstSlideTranslate) {\n progressLoop = (translateAbs - firstSlideTranslate) / translateMax;\n } else {\n progressLoop = (translateAbs + translateMax - lastSlideTranslate) / translateMax;\n }\n if (progressLoop > 1) progressLoop -= 1;\n }\n Object.assign(swiper, {\n progress,\n progressLoop,\n isBeginning,\n isEnd\n });\n if (params.watchSlidesProgress || params.centeredSlides && params.autoHeight) swiper.updateSlidesProgress(translate);\n if (isBeginning && !wasBeginning) {\n swiper.emit('reachBeginning toEdge');\n }\n if (isEnd && !wasEnd) {\n swiper.emit('reachEnd toEdge');\n }\n if (wasBeginning && !isBeginning || wasEnd && !isEnd) {\n swiper.emit('fromEdge');\n }\n swiper.emit('progress', progress);\n}\n\nfunction updateSlidesClasses() {\n const swiper = this;\n const {\n slides,\n params,\n slidesEl,\n activeIndex\n } = swiper;\n const isVirtual = swiper.virtual && params.virtual.enabled;\n const getFilteredSlide = selector => {\n return elementChildren(slidesEl, `.${params.slideClass}${selector}, swiper-slide${selector}`)[0];\n };\n slides.forEach(slideEl => {\n slideEl.classList.remove(params.slideActiveClass, params.slideNextClass, params.slidePrevClass);\n });\n let activeSlide;\n if (isVirtual) {\n if (params.loop) {\n let slideIndex = activeIndex - swiper.virtual.slidesBefore;\n if (slideIndex < 0) slideIndex = swiper.virtual.slides.length + slideIndex;\n if (slideIndex >= swiper.virtual.slides.length) slideIndex -= swiper.virtual.slides.length;\n activeSlide = getFilteredSlide(`[data-swiper-slide-index=\"${slideIndex}\"]`);\n } else {\n activeSlide = getFilteredSlide(`[data-swiper-slide-index=\"${activeIndex}\"]`);\n }\n } else {\n activeSlide = slides[activeIndex];\n }\n if (activeSlide) {\n // Active classes\n activeSlide.classList.add(params.slideActiveClass);\n\n // Next Slide\n let nextSlide = elementNextAll(activeSlide, `.${params.slideClass}, swiper-slide`)[0];\n if (params.loop && !nextSlide) {\n nextSlide = slides[0];\n }\n if (nextSlide) {\n nextSlide.classList.add(params.slideNextClass);\n }\n // Prev Slide\n let prevSlide = elementPrevAll(activeSlide, `.${params.slideClass}, swiper-slide`)[0];\n if (params.loop && !prevSlide === 0) {\n prevSlide = slides[slides.length - 1];\n }\n if (prevSlide) {\n prevSlide.classList.add(params.slidePrevClass);\n }\n }\n swiper.emitSlidesClasses();\n}\n\nconst processLazyPreloader = (swiper, imageEl) => {\n if (!swiper || swiper.destroyed || !swiper.params) return;\n const slideSelector = () => swiper.isElement ? `swiper-slide` : `.${swiper.params.slideClass}`;\n const slideEl = imageEl.closest(slideSelector());\n if (slideEl) {\n let lazyEl = slideEl.querySelector(`.${swiper.params.lazyPreloaderClass}`);\n if (!lazyEl && swiper.isElement) {\n if (slideEl.shadowRoot) {\n lazyEl = slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`);\n } else {\n // init later\n requestAnimationFrame(() => {\n if (slideEl.shadowRoot) {\n lazyEl = slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`);\n if (lazyEl) lazyEl.remove();\n }\n });\n }\n }\n if (lazyEl) lazyEl.remove();\n }\n};\nconst unlazy = (swiper, index) => {\n if (!swiper.slides[index]) return;\n const imageEl = swiper.slides[index].querySelector('[loading=\"lazy\"]');\n if (imageEl) imageEl.removeAttribute('loading');\n};\nconst preload = swiper => {\n if (!swiper || swiper.destroyed || !swiper.params) return;\n let amount = swiper.params.lazyPreloadPrevNext;\n const len = swiper.slides.length;\n if (!len || !amount || amount < 0) return;\n amount = Math.min(amount, len);\n const slidesPerView = swiper.params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(swiper.params.slidesPerView);\n const activeIndex = swiper.activeIndex;\n if (swiper.params.grid && swiper.params.grid.rows > 1) {\n const activeColumn = activeIndex;\n const preloadColumns = [activeColumn - amount];\n preloadColumns.push(...Array.from({\n length: amount\n }).map((_, i) => {\n return activeColumn + slidesPerView + i;\n }));\n swiper.slides.forEach((slideEl, i) => {\n if (preloadColumns.includes(slideEl.column)) unlazy(swiper, i);\n });\n return;\n }\n const slideIndexLastInView = activeIndex + slidesPerView - 1;\n if (swiper.params.rewind || swiper.params.loop) {\n for (let i = activeIndex - amount; i <= slideIndexLastInView + amount; i += 1) {\n const realIndex = (i % len + len) % len;\n if (realIndex < activeIndex || realIndex > slideIndexLastInView) unlazy(swiper, realIndex);\n }\n } else {\n for (let i = Math.max(activeIndex - amount, 0); i <= Math.min(slideIndexLastInView + amount, len - 1); i += 1) {\n if (i !== activeIndex && (i > slideIndexLastInView || i < activeIndex)) {\n unlazy(swiper, i);\n }\n }\n }\n};\n\nfunction getActiveIndexByTranslate(swiper) {\n const {\n slidesGrid,\n params\n } = swiper;\n const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\n let activeIndex;\n for (let i = 0; i < slidesGrid.length; i += 1) {\n if (typeof slidesGrid[i + 1] !== 'undefined') {\n if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1] - (slidesGrid[i + 1] - slidesGrid[i]) / 2) {\n activeIndex = i;\n } else if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1]) {\n activeIndex = i + 1;\n }\n } else if (translate >= slidesGrid[i]) {\n activeIndex = i;\n }\n }\n // Normalize slideIndex\n if (params.normalizeSlideIndex) {\n if (activeIndex < 0 || typeof activeIndex === 'undefined') activeIndex = 0;\n }\n return activeIndex;\n}\nfunction updateActiveIndex(newActiveIndex) {\n const swiper = this;\n const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\n const {\n snapGrid,\n params,\n activeIndex: previousIndex,\n realIndex: previousRealIndex,\n snapIndex: previousSnapIndex\n } = swiper;\n let activeIndex = newActiveIndex;\n let snapIndex;\n const getVirtualRealIndex = aIndex => {\n let realIndex = aIndex - swiper.virtual.slidesBefore;\n if (realIndex < 0) {\n realIndex = swiper.virtual.slides.length + realIndex;\n }\n if (realIndex >= swiper.virtual.slides.length) {\n realIndex -= swiper.virtual.slides.length;\n }\n return realIndex;\n };\n if (typeof activeIndex === 'undefined') {\n activeIndex = getActiveIndexByTranslate(swiper);\n }\n if (snapGrid.indexOf(translate) >= 0) {\n snapIndex = snapGrid.indexOf(translate);\n } else {\n const skip = Math.min(params.slidesPerGroupSkip, activeIndex);\n snapIndex = skip + Math.floor((activeIndex - skip) / params.slidesPerGroup);\n }\n if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;\n if (activeIndex === previousIndex) {\n if (snapIndex !== previousSnapIndex) {\n swiper.snapIndex = snapIndex;\n swiper.emit('snapIndexChange');\n }\n if (swiper.params.loop && swiper.virtual && swiper.params.virtual.enabled) {\n swiper.realIndex = getVirtualRealIndex(activeIndex);\n }\n return;\n }\n // Get real index\n let realIndex;\n if (swiper.virtual && params.virtual.enabled && params.loop) {\n realIndex = getVirtualRealIndex(activeIndex);\n } else if (swiper.slides[activeIndex]) {\n realIndex = parseInt(swiper.slides[activeIndex].getAttribute('data-swiper-slide-index') || activeIndex, 10);\n } else {\n realIndex = activeIndex;\n }\n Object.assign(swiper, {\n previousSnapIndex,\n snapIndex,\n previousRealIndex,\n realIndex,\n previousIndex,\n activeIndex\n });\n if (swiper.initialized) {\n preload(swiper);\n }\n swiper.emit('activeIndexChange');\n swiper.emit('snapIndexChange');\n if (swiper.initialized || swiper.params.runCallbacksOnInit) {\n if (previousRealIndex !== realIndex) {\n swiper.emit('realIndexChange');\n }\n swiper.emit('slideChange');\n }\n}\n\nfunction updateClickedSlide(el, path) {\n const swiper = this;\n const params = swiper.params;\n let slide = el.closest(`.${params.slideClass}, swiper-slide`);\n if (!slide && swiper.isElement && path && path.length > 1 && path.includes(el)) {\n [...path.slice(path.indexOf(el) + 1, path.length)].forEach(pathEl => {\n if (!slide && pathEl.matches && pathEl.matches(`.${params.slideClass}, swiper-slide`)) {\n slide = pathEl;\n }\n });\n }\n let slideFound = false;\n let slideIndex;\n if (slide) {\n for (let i = 0; i < swiper.slides.length; i += 1) {\n if (swiper.slides[i] === slide) {\n slideFound = true;\n slideIndex = i;\n break;\n }\n }\n }\n if (slide && slideFound) {\n swiper.clickedSlide = slide;\n if (swiper.virtual && swiper.params.virtual.enabled) {\n swiper.clickedIndex = parseInt(slide.getAttribute('data-swiper-slide-index'), 10);\n } else {\n swiper.clickedIndex = slideIndex;\n }\n } else {\n swiper.clickedSlide = undefined;\n swiper.clickedIndex = undefined;\n return;\n }\n if (params.slideToClickedSlide && swiper.clickedIndex !== undefined && swiper.clickedIndex !== swiper.activeIndex) {\n swiper.slideToClickedSlide();\n }\n}\n\nvar update = {\n updateSize,\n updateSlides,\n updateAutoHeight,\n updateSlidesOffset,\n updateSlidesProgress,\n updateProgress,\n updateSlidesClasses,\n updateActiveIndex,\n updateClickedSlide\n};\n\nfunction getSwiperTranslate(axis) {\n if (axis === void 0) {\n axis = this.isHorizontal() ? 'x' : 'y';\n }\n const swiper = this;\n const {\n params,\n rtlTranslate: rtl,\n translate,\n wrapperEl\n } = swiper;\n if (params.virtualTranslate) {\n return rtl ? -translate : translate;\n }\n if (params.cssMode) {\n return translate;\n }\n let currentTranslate = getTranslate(wrapperEl, axis);\n currentTranslate += swiper.cssOverflowAdjustment();\n if (rtl) currentTranslate = -currentTranslate;\n return currentTranslate || 0;\n}\n\nfunction setTranslate(translate, byController) {\n const swiper = this;\n const {\n rtlTranslate: rtl,\n params,\n wrapperEl,\n progress\n } = swiper;\n let x = 0;\n let y = 0;\n const z = 0;\n if (swiper.isHorizontal()) {\n x = rtl ? -translate : translate;\n } else {\n y = translate;\n }\n if (params.roundLengths) {\n x = Math.floor(x);\n y = Math.floor(y);\n }\n swiper.previousTranslate = swiper.translate;\n swiper.translate = swiper.isHorizontal() ? x : y;\n if (params.cssMode) {\n wrapperEl[swiper.isHorizontal() ? 'scrollLeft' : 'scrollTop'] = swiper.isHorizontal() ? -x : -y;\n } else if (!params.virtualTranslate) {\n if (swiper.isHorizontal()) {\n x -= swiper.cssOverflowAdjustment();\n } else {\n y -= swiper.cssOverflowAdjustment();\n }\n wrapperEl.style.transform = `translate3d(${x}px, ${y}px, ${z}px)`;\n }\n\n // Check if we need to update progress\n let newProgress;\n const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\n if (translatesDiff === 0) {\n newProgress = 0;\n } else {\n newProgress = (translate - swiper.minTranslate()) / translatesDiff;\n }\n if (newProgress !== progress) {\n swiper.updateProgress(translate);\n }\n swiper.emit('setTranslate', swiper.translate, byController);\n}\n\nfunction minTranslate() {\n return -this.snapGrid[0];\n}\n\nfunction maxTranslate() {\n return -this.snapGrid[this.snapGrid.length - 1];\n}\n\nfunction translateTo(translate, speed, runCallbacks, translateBounds, internal) {\n if (translate === void 0) {\n translate = 0;\n }\n if (speed === void 0) {\n speed = this.params.speed;\n }\n if (runCallbacks === void 0) {\n runCallbacks = true;\n }\n if (translateBounds === void 0) {\n translateBounds = true;\n }\n const swiper = this;\n const {\n params,\n wrapperEl\n } = swiper;\n if (swiper.animating && params.preventInteractionOnTransition) {\n return false;\n }\n const minTranslate = swiper.minTranslate();\n const maxTranslate = swiper.maxTranslate();\n let newTranslate;\n if (translateBounds && translate > minTranslate) newTranslate = minTranslate;else if (translateBounds && translate < maxTranslate) newTranslate = maxTranslate;else newTranslate = translate;\n\n // Update progress\n swiper.updateProgress(newTranslate);\n if (params.cssMode) {\n const isH = swiper.isHorizontal();\n if (speed === 0) {\n wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = -newTranslate;\n } else {\n if (!swiper.support.smoothScroll) {\n animateCSSModeScroll({\n swiper,\n targetPosition: -newTranslate,\n side: isH ? 'left' : 'top'\n });\n return true;\n }\n wrapperEl.scrollTo({\n [isH ? 'left' : 'top']: -newTranslate,\n behavior: 'smooth'\n });\n }\n return true;\n }\n if (speed === 0) {\n swiper.setTransition(0);\n swiper.setTranslate(newTranslate);\n if (runCallbacks) {\n swiper.emit('beforeTransitionStart', speed, internal);\n swiper.emit('transitionEnd');\n }\n } else {\n swiper.setTransition(speed);\n swiper.setTranslate(newTranslate);\n if (runCallbacks) {\n swiper.emit('beforeTransitionStart', speed, internal);\n swiper.emit('transitionStart');\n }\n if (!swiper.animating) {\n swiper.animating = true;\n if (!swiper.onTranslateToWrapperTransitionEnd) {\n swiper.onTranslateToWrapperTransitionEnd = function transitionEnd(e) {\n if (!swiper || swiper.destroyed) return;\n if (e.target !== this) return;\n swiper.wrapperEl.removeEventListener('transitionend', swiper.onTranslateToWrapperTransitionEnd);\n swiper.onTranslateToWrapperTransitionEnd = null;\n delete swiper.onTranslateToWrapperTransitionEnd;\n if (runCallbacks) {\n swiper.emit('transitionEnd');\n }\n };\n }\n swiper.wrapperEl.addEventListener('transitionend', swiper.onTranslateToWrapperTransitionEnd);\n }\n }\n return true;\n}\n\nvar translate = {\n getTranslate: getSwiperTranslate,\n setTranslate,\n minTranslate,\n maxTranslate,\n translateTo\n};\n\nfunction setTransition(duration, byController) {\n const swiper = this;\n if (!swiper.params.cssMode) {\n swiper.wrapperEl.style.transitionDuration = `${duration}ms`;\n swiper.wrapperEl.style.transitionDelay = duration === 0 ? `0ms` : '';\n }\n swiper.emit('setTransition', duration, byController);\n}\n\nfunction transitionEmit(_ref) {\n let {\n swiper,\n runCallbacks,\n direction,\n step\n } = _ref;\n const {\n activeIndex,\n previousIndex\n } = swiper;\n let dir = direction;\n if (!dir) {\n if (activeIndex > previousIndex) dir = 'next';else if (activeIndex < previousIndex) dir = 'prev';else dir = 'reset';\n }\n swiper.emit(`transition${step}`);\n if (runCallbacks && activeIndex !== previousIndex) {\n if (dir === 'reset') {\n swiper.emit(`slideResetTransition${step}`);\n return;\n }\n swiper.emit(`slideChangeTransition${step}`);\n if (dir === 'next') {\n swiper.emit(`slideNextTransition${step}`);\n } else {\n swiper.emit(`slidePrevTransition${step}`);\n }\n }\n}\n\nfunction transitionStart(runCallbacks, direction) {\n if (runCallbacks === void 0) {\n runCallbacks = true;\n }\n const swiper = this;\n const {\n params\n } = swiper;\n if (params.cssMode) return;\n if (params.autoHeight) {\n swiper.updateAutoHeight();\n }\n transitionEmit({\n swiper,\n runCallbacks,\n direction,\n step: 'Start'\n });\n}\n\nfunction transitionEnd(runCallbacks, direction) {\n if (runCallbacks === void 0) {\n runCallbacks = true;\n }\n const swiper = this;\n const {\n params\n } = swiper;\n swiper.animating = false;\n if (params.cssMode) return;\n swiper.setTransition(0);\n transitionEmit({\n swiper,\n runCallbacks,\n direction,\n step: 'End'\n });\n}\n\nvar transition = {\n setTransition,\n transitionStart,\n transitionEnd\n};\n\nfunction slideTo(index, speed, runCallbacks, internal, initial) {\n if (index === void 0) {\n index = 0;\n }\n if (speed === void 0) {\n speed = this.params.speed;\n }\n if (runCallbacks === void 0) {\n runCallbacks = true;\n }\n if (typeof index === 'string') {\n index = parseInt(index, 10);\n }\n const swiper = this;\n let slideIndex = index;\n if (slideIndex < 0) slideIndex = 0;\n const {\n params,\n snapGrid,\n slidesGrid,\n previousIndex,\n activeIndex,\n rtlTranslate: rtl,\n wrapperEl,\n enabled\n } = swiper;\n if (swiper.animating && params.preventInteractionOnTransition || !enabled && !internal && !initial) {\n return false;\n }\n const skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);\n let snapIndex = skip + Math.floor((slideIndex - skip) / swiper.params.slidesPerGroup);\n if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;\n const translate = -snapGrid[snapIndex];\n // Normalize slideIndex\n if (params.normalizeSlideIndex) {\n for (let i = 0; i < slidesGrid.length; i += 1) {\n const normalizedTranslate = -Math.floor(translate * 100);\n const normalizedGrid = Math.floor(slidesGrid[i] * 100);\n const normalizedGridNext = Math.floor(slidesGrid[i + 1] * 100);\n if (typeof slidesGrid[i + 1] !== 'undefined') {\n if (normalizedTranslate >= normalizedGrid && normalizedTranslate < normalizedGridNext - (normalizedGridNext - normalizedGrid) / 2) {\n slideIndex = i;\n } else if (normalizedTranslate >= normalizedGrid && normalizedTranslate < normalizedGridNext) {\n slideIndex = i + 1;\n }\n } else if (normalizedTranslate >= normalizedGrid) {\n slideIndex = i;\n }\n }\n }\n // Directions locks\n if (swiper.initialized && slideIndex !== activeIndex) {\n if (!swiper.allowSlideNext && (rtl ? translate > swiper.translate && translate > swiper.minTranslate() : translate < swiper.translate && translate < swiper.minTranslate())) {\n return false;\n }\n if (!swiper.allowSlidePrev && translate > swiper.translate && translate > swiper.maxTranslate()) {\n if ((activeIndex || 0) !== slideIndex) {\n return false;\n }\n }\n }\n if (slideIndex !== (previousIndex || 0) && runCallbacks) {\n swiper.emit('beforeSlideChangeStart');\n }\n\n // Update progress\n swiper.updateProgress(translate);\n let direction;\n if (slideIndex > activeIndex) direction = 'next';else if (slideIndex < activeIndex) direction = 'prev';else direction = 'reset';\n\n // Update Index\n if (rtl && -translate === swiper.translate || !rtl && translate === swiper.translate) {\n swiper.updateActiveIndex(slideIndex);\n // Update Height\n if (params.autoHeight) {\n swiper.updateAutoHeight();\n }\n swiper.updateSlidesClasses();\n if (params.effect !== 'slide') {\n swiper.setTranslate(translate);\n }\n if (direction !== 'reset') {\n swiper.transitionStart(runCallbacks, direction);\n swiper.transitionEnd(runCallbacks, direction);\n }\n return false;\n }\n if (params.cssMode) {\n const isH = swiper.isHorizontal();\n const t = rtl ? translate : -translate;\n if (speed === 0) {\n const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n if (isVirtual) {\n swiper.wrapperEl.style.scrollSnapType = 'none';\n swiper._immediateVirtual = true;\n }\n if (isVirtual && !swiper._cssModeVirtualInitialSet && swiper.params.initialSlide > 0) {\n swiper._cssModeVirtualInitialSet = true;\n requestAnimationFrame(() => {\n wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = t;\n });\n } else {\n wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = t;\n }\n if (isVirtual) {\n requestAnimationFrame(() => {\n swiper.wrapperEl.style.scrollSnapType = '';\n swiper._immediateVirtual = false;\n });\n }\n } else {\n if (!swiper.support.smoothScroll) {\n animateCSSModeScroll({\n swiper,\n targetPosition: t,\n side: isH ? 'left' : 'top'\n });\n return true;\n }\n wrapperEl.scrollTo({\n [isH ? 'left' : 'top']: t,\n behavior: 'smooth'\n });\n }\n return true;\n }\n swiper.setTransition(speed);\n swiper.setTranslate(translate);\n swiper.updateActiveIndex(slideIndex);\n swiper.updateSlidesClasses();\n swiper.emit('beforeTransitionStart', speed, internal);\n swiper.transitionStart(runCallbacks, direction);\n if (speed === 0) {\n swiper.transitionEnd(runCallbacks, direction);\n } else if (!swiper.animating) {\n swiper.animating = true;\n if (!swiper.onSlideToWrapperTransitionEnd) {\n swiper.onSlideToWrapperTransitionEnd = function transitionEnd(e) {\n if (!swiper || swiper.destroyed) return;\n if (e.target !== this) return;\n swiper.wrapperEl.removeEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);\n swiper.onSlideToWrapperTransitionEnd = null;\n delete swiper.onSlideToWrapperTransitionEnd;\n swiper.transitionEnd(runCallbacks, direction);\n };\n }\n swiper.wrapperEl.addEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);\n }\n return true;\n}\n\nfunction slideToLoop(index, speed, runCallbacks, internal) {\n if (index === void 0) {\n index = 0;\n }\n if (speed === void 0) {\n speed = this.params.speed;\n }\n if (runCallbacks === void 0) {\n runCallbacks = true;\n }\n if (typeof index === 'string') {\n const indexAsNumber = parseInt(index, 10);\n index = indexAsNumber;\n }\n const swiper = this;\n let newIndex = index;\n if (swiper.params.loop) {\n if (swiper.virtual && swiper.params.virtual.enabled) {\n // eslint-disable-next-line\n newIndex = newIndex + swiper.virtual.slidesBefore;\n } else {\n newIndex = swiper.getSlideIndexByData(newIndex);\n }\n }\n return swiper.slideTo(newIndex, speed, runCallbacks, internal);\n}\n\n/* eslint no-unused-vars: \"off\" */\nfunction slideNext(speed, runCallbacks, internal) {\n if (speed === void 0) {\n speed = this.params.speed;\n }\n if (runCallbacks === void 0) {\n runCallbacks = true;\n }\n const swiper = this;\n const {\n enabled,\n params,\n animating\n } = swiper;\n if (!enabled) return swiper;\n let perGroup = params.slidesPerGroup;\n if (params.slidesPerView === 'auto' && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) {\n perGroup = Math.max(swiper.slidesPerViewDynamic('current', true), 1);\n }\n const increment = swiper.activeIndex < params.slidesPerGroupSkip ? 1 : perGroup;\n const isVirtual = swiper.virtual && params.virtual.enabled;\n if (params.loop) {\n if (animating && !isVirtual && params.loopPreventsSliding) return false;\n swiper.loopFix({\n direction: 'next'\n });\n // eslint-disable-next-line\n swiper._clientLeft = swiper.wrapperEl.clientLeft;\n if (swiper.activeIndex === swiper.slides.length - 1 && params.cssMode) {\n requestAnimationFrame(() => {\n swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);\n });\n return true;\n }\n }\n if (params.rewind && swiper.isEnd) {\n return swiper.slideTo(0, speed, runCallbacks, internal);\n }\n return swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);\n}\n\n/* eslint no-unused-vars: \"off\" */\nfunction slidePrev(speed, runCallbacks, internal) {\n if (speed === void 0) {\n speed = this.params.speed;\n }\n if (runCallbacks === void 0) {\n runCallbacks = true;\n }\n const swiper = this;\n const {\n params,\n snapGrid,\n slidesGrid,\n rtlTranslate,\n enabled,\n animating\n } = swiper;\n if (!enabled) return swiper;\n const isVirtual = swiper.virtual && params.virtual.enabled;\n if (params.loop) {\n if (animating && !isVirtual && params.loopPreventsSliding) return false;\n swiper.loopFix({\n direction: 'prev'\n });\n // eslint-disable-next-line\n swiper._clientLeft = swiper.wrapperEl.clientLeft;\n }\n const translate = rtlTranslate ? swiper.translate : -swiper.translate;\n function normalize(val) {\n if (val < 0) return -Math.floor(Math.abs(val));\n return Math.floor(val);\n }\n const normalizedTranslate = normalize(translate);\n const normalizedSnapGrid = snapGrid.map(val => normalize(val));\n let prevSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate) - 1];\n if (typeof prevSnap === 'undefined' && params.cssMode) {\n let prevSnapIndex;\n snapGrid.forEach((snap, snapIndex) => {\n if (normalizedTranslate >= snap) {\n // prevSnap = snap;\n prevSnapIndex = snapIndex;\n }\n });\n if (typeof prevSnapIndex !== 'undefined') {\n prevSnap = snapGrid[prevSnapIndex > 0 ? prevSnapIndex - 1 : prevSnapIndex];\n }\n }\n let prevIndex = 0;\n if (typeof prevSnap !== 'undefined') {\n prevIndex = slidesGrid.indexOf(prevSnap);\n if (prevIndex < 0) prevIndex = swiper.activeIndex - 1;\n if (params.slidesPerView === 'auto' && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) {\n prevIndex = prevIndex - swiper.slidesPerViewDynamic('previous', true) + 1;\n prevIndex = Math.max(prevIndex, 0);\n }\n }\n if (params.rewind && swiper.isBeginning) {\n const lastIndex = swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;\n return swiper.slideTo(lastIndex, speed, runCallbacks, internal);\n } else if (params.loop && swiper.activeIndex === 0 && params.cssMode) {\n requestAnimationFrame(() => {\n swiper.slideTo(prevIndex, speed, runCallbacks, internal);\n });\n return true;\n }\n return swiper.slideTo(prevIndex, speed, runCallbacks, internal);\n}\n\n/* eslint no-unused-vars: \"off\" */\nfunction slideReset(speed, runCallbacks, internal) {\n if (speed === void 0) {\n speed = this.params.speed;\n }\n if (runCallbacks === void 0) {\n runCallbacks = true;\n }\n const swiper = this;\n return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);\n}\n\n/* eslint no-unused-vars: \"off\" */\nfunction slideToClosest(speed, runCallbacks, internal, threshold) {\n if (speed === void 0) {\n speed = this.params.speed;\n }\n if (runCallbacks === void 0) {\n runCallbacks = true;\n }\n if (threshold === void 0) {\n threshold = 0.5;\n }\n const swiper = this;\n let index = swiper.activeIndex;\n const skip = Math.min(swiper.params.slidesPerGroupSkip, index);\n const snapIndex = skip + Math.floor((index - skip) / swiper.params.slidesPerGroup);\n const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\n if (translate >= swiper.snapGrid[snapIndex]) {\n // The current translate is on or after the current snap index, so the choice\n // is between the current index and the one after it.\n const currentSnap = swiper.snapGrid[snapIndex];\n const nextSnap = swiper.snapGrid[snapIndex + 1];\n if (translate - currentSnap > (nextSnap - currentSnap) * threshold) {\n index += swiper.params.slidesPerGroup;\n }\n } else {\n // The current translate is before the current snap index, so the choice\n // is between the current index and the one before it.\n const prevSnap = swiper.snapGrid[snapIndex - 1];\n const currentSnap = swiper.snapGrid[snapIndex];\n if (translate - prevSnap <= (currentSnap - prevSnap) * threshold) {\n index -= swiper.params.slidesPerGroup;\n }\n }\n index = Math.max(index, 0);\n index = Math.min(index, swiper.slidesGrid.length - 1);\n return swiper.slideTo(index, speed, runCallbacks, internal);\n}\n\nfunction slideToClickedSlide() {\n const swiper = this;\n const {\n params,\n slidesEl\n } = swiper;\n const slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : params.slidesPerView;\n let slideToIndex = swiper.clickedIndex;\n let realIndex;\n const slideSelector = swiper.isElement ? `swiper-slide` : `.${params.slideClass}`;\n if (params.loop) {\n if (swiper.animating) return;\n realIndex = parseInt(swiper.clickedSlide.getAttribute('data-swiper-slide-index'), 10);\n if (params.centeredSlides) {\n if (slideToIndex < swiper.loopedSlides - slidesPerView / 2 || slideToIndex > swiper.slides.length - swiper.loopedSlides + slidesPerView / 2) {\n swiper.loopFix();\n slideToIndex = swiper.getSlideIndex(elementChildren(slidesEl, `${slideSelector}[data-swiper-slide-index=\"${realIndex}\"]`)[0]);\n nextTick(() => {\n swiper.slideTo(slideToIndex);\n });\n } else {\n swiper.slideTo(slideToIndex);\n }\n } else if (slideToIndex > swiper.slides.length - slidesPerView) {\n swiper.loopFix();\n slideToIndex = swiper.getSlideIndex(elementChildren(slidesEl, `${slideSelector}[data-swiper-slide-index=\"${realIndex}\"]`)[0]);\n nextTick(() => {\n swiper.slideTo(slideToIndex);\n });\n } else {\n swiper.slideTo(slideToIndex);\n }\n } else {\n swiper.slideTo(slideToIndex);\n }\n}\n\nvar slide = {\n slideTo,\n slideToLoop,\n slideNext,\n slidePrev,\n slideReset,\n slideToClosest,\n slideToClickedSlide\n};\n\nfunction loopCreate(slideRealIndex) {\n const swiper = this;\n const {\n params,\n slidesEl\n } = swiper;\n if (!params.loop || swiper.virtual && swiper.params.virtual.enabled) return;\n const slides = elementChildren(slidesEl, `.${params.slideClass}, swiper-slide`);\n slides.forEach((el, index) => {\n el.setAttribute('data-swiper-slide-index', index);\n });\n swiper.loopFix({\n slideRealIndex,\n direction: params.centeredSlides ? undefined : 'next'\n });\n}\n\nfunction loopFix(_temp) {\n let {\n slideRealIndex,\n slideTo = true,\n direction,\n setTranslate,\n activeSlideIndex,\n byController,\n byMousewheel\n } = _temp === void 0 ? {} : _temp;\n const swiper = this;\n if (!swiper.params.loop) return;\n swiper.emit('beforeLoopFix');\n const {\n slides,\n allowSlidePrev,\n allowSlideNext,\n slidesEl,\n params\n } = swiper;\n swiper.allowSlidePrev = true;\n swiper.allowSlideNext = true;\n if (swiper.virtual && params.virtual.enabled) {\n if (slideTo) {\n if (!params.centeredSlides && swiper.snapIndex === 0) {\n swiper.slideTo(swiper.virtual.slides.length, 0, false, true);\n } else if (params.centeredSlides && swiper.snapIndex < params.slidesPerView) {\n swiper.slideTo(swiper.virtual.slides.length + swiper.snapIndex, 0, false, true);\n } else if (swiper.snapIndex === swiper.snapGrid.length - 1) {\n swiper.slideTo(swiper.virtual.slidesBefore, 0, false, true);\n }\n }\n swiper.allowSlidePrev = allowSlidePrev;\n swiper.allowSlideNext = allowSlideNext;\n swiper.emit('loopFix');\n return;\n }\n const slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(parseFloat(params.slidesPerView, 10));\n let loopedSlides = params.loopedSlides || slidesPerView;\n if (loopedSlides % params.slidesPerGroup !== 0) {\n loopedSlides += params.slidesPerGroup - loopedSlides % params.slidesPerGroup;\n }\n swiper.loopedSlides = loopedSlides;\n const prependSlidesIndexes = [];\n const appendSlidesIndexes = [];\n let activeIndex = swiper.activeIndex;\n if (typeof activeSlideIndex === 'undefined') {\n activeSlideIndex = swiper.getSlideIndex(swiper.slides.filter(el => el.classList.contains(params.slideActiveClass))[0]);\n } else {\n activeIndex = activeSlideIndex;\n }\n const isNext = direction === 'next' || !direction;\n const isPrev = direction === 'prev' || !direction;\n let slidesPrepended = 0;\n let slidesAppended = 0;\n // prepend last slides before start\n if (activeSlideIndex < loopedSlides) {\n slidesPrepended = Math.max(loopedSlides - activeSlideIndex, params.slidesPerGroup);\n for (let i = 0; i < loopedSlides - activeSlideIndex; i += 1) {\n const index = i - Math.floor(i / slides.length) * slides.length;\n prependSlidesIndexes.push(slides.length - index - 1);\n }\n } else if (activeSlideIndex /* + slidesPerView */ > swiper.slides.length - loopedSlides * 2) {\n slidesAppended = Math.max(activeSlideIndex - (swiper.slides.length - loopedSlides * 2), params.slidesPerGroup);\n for (let i = 0; i < slidesAppended; i += 1) {\n const index = i - Math.floor(i / slides.length) * slides.length;\n appendSlidesIndexes.push(index);\n }\n }\n if (isPrev) {\n prependSlidesIndexes.forEach(index => {\n swiper.slides[index].swiperLoopMoveDOM = true;\n slidesEl.prepend(swiper.slides[index]);\n swiper.slides[index].swiperLoopMoveDOM = false;\n });\n }\n if (isNext) {\n appendSlidesIndexes.forEach(index => {\n swiper.slides[index].swiperLoopMoveDOM = true;\n slidesEl.append(swiper.slides[index]);\n swiper.slides[index].swiperLoopMoveDOM = false;\n });\n }\n swiper.recalcSlides();\n if (params.slidesPerView === 'auto') {\n swiper.updateSlides();\n }\n if (params.watchSlidesProgress) {\n swiper.updateSlidesOffset();\n }\n if (slideTo) {\n if (prependSlidesIndexes.length > 0 && isPrev) {\n if (typeof slideRealIndex === 'undefined') {\n const currentSlideTranslate = swiper.slidesGrid[activeIndex];\n const newSlideTranslate = swiper.slidesGrid[activeIndex + slidesPrepended];\n const diff = newSlideTranslate - currentSlideTranslate;\n if (byMousewheel) {\n swiper.setTranslate(swiper.translate - diff);\n } else {\n swiper.slideTo(activeIndex + slidesPrepended, 0, false, true);\n if (setTranslate) {\n swiper.touches[swiper.isHorizontal() ? 'startX' : 'startY'] += diff;\n swiper.touchEventsData.currentTranslate = swiper.translate;\n }\n }\n } else {\n if (setTranslate) {\n swiper.slideToLoop(slideRealIndex, 0, false, true);\n swiper.touchEventsData.currentTranslate = swiper.translate;\n }\n }\n } else if (appendSlidesIndexes.length > 0 && isNext) {\n if (typeof slideRealIndex === 'undefined') {\n const currentSlideTranslate = swiper.slidesGrid[activeIndex];\n const newSlideTranslate = swiper.slidesGrid[activeIndex - slidesAppended];\n const diff = newSlideTranslate - currentSlideTranslate;\n if (byMousewheel) {\n swiper.setTranslate(swiper.translate - diff);\n } else {\n swiper.slideTo(activeIndex - slidesAppended, 0, false, true);\n if (setTranslate) {\n swiper.touches[swiper.isHorizontal() ? 'startX' : 'startY'] += diff;\n swiper.touchEventsData.currentTranslate = swiper.translate;\n }\n }\n } else {\n swiper.slideToLoop(slideRealIndex, 0, false, true);\n }\n }\n }\n swiper.allowSlidePrev = allowSlidePrev;\n swiper.allowSlideNext = allowSlideNext;\n if (swiper.controller && swiper.controller.control && !byController) {\n const loopParams = {\n slideRealIndex,\n direction,\n setTranslate,\n activeSlideIndex,\n byController: true\n };\n if (Array.isArray(swiper.controller.control)) {\n swiper.controller.control.forEach(c => {\n if (!c.destroyed && c.params.loop) c.loopFix({\n ...loopParams,\n slideTo: c.params.slidesPerView === params.slidesPerView ? slideTo : false\n });\n });\n } else if (swiper.controller.control instanceof swiper.constructor && swiper.controller.control.params.loop) {\n swiper.controller.control.loopFix({\n ...loopParams,\n slideTo: swiper.controller.control.params.slidesPerView === params.slidesPerView ? slideTo : false\n });\n }\n }\n swiper.emit('loopFix');\n}\n\nfunction loopDestroy() {\n const swiper = this;\n const {\n params,\n slidesEl\n } = swiper;\n if (!params.loop || swiper.virtual && swiper.params.virtual.enabled) return;\n swiper.recalcSlides();\n const newSlidesOrder = [];\n swiper.slides.forEach(slideEl => {\n const index = typeof slideEl.swiperSlideIndex === 'undefined' ? slideEl.getAttribute('data-swiper-slide-index') * 1 : slideEl.swiperSlideIndex;\n newSlidesOrder[index] = slideEl;\n });\n swiper.slides.forEach(slideEl => {\n slideEl.removeAttribute('data-swiper-slide-index');\n });\n newSlidesOrder.forEach(slideEl => {\n slidesEl.append(slideEl);\n });\n swiper.recalcSlides();\n swiper.slideTo(swiper.realIndex, 0);\n}\n\nvar loop = {\n loopCreate,\n loopFix,\n loopDestroy\n};\n\nfunction setGrabCursor(moving) {\n const swiper = this;\n if (!swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;\n const el = swiper.params.touchEventsTarget === 'container' ? swiper.el : swiper.wrapperEl;\n if (swiper.isElement) {\n swiper.__preventObserver__ = true;\n }\n el.style.cursor = 'move';\n el.style.cursor = moving ? 'grabbing' : 'grab';\n if (swiper.isElement) {\n requestAnimationFrame(() => {\n swiper.__preventObserver__ = false;\n });\n }\n}\n\nfunction unsetGrabCursor() {\n const swiper = this;\n if (swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) {\n return;\n }\n if (swiper.isElement) {\n swiper.__preventObserver__ = true;\n }\n swiper[swiper.params.touchEventsTarget === 'container' ? 'el' : 'wrapperEl'].style.cursor = '';\n if (swiper.isElement) {\n requestAnimationFrame(() => {\n swiper.__preventObserver__ = false;\n });\n }\n}\n\nvar grabCursor = {\n setGrabCursor,\n unsetGrabCursor\n};\n\n// Modified from https://stackoverflow.com/questions/54520554/custom-element-getrootnode-closest-function-crossing-multiple-parent-shadowd\nfunction closestElement(selector, base) {\n if (base === void 0) {\n base = this;\n }\n function __closestFrom(el) {\n if (!el || el === getDocument() || el === getWindow()) return null;\n if (el.assignedSlot) el = el.assignedSlot;\n const found = el.closest(selector);\n if (!found && !el.getRootNode) {\n return null;\n }\n return found || __closestFrom(el.getRootNode().host);\n }\n return __closestFrom(base);\n}\nfunction onTouchStart(event) {\n const swiper = this;\n const document = getDocument();\n const window = getWindow();\n const data = swiper.touchEventsData;\n data.evCache.push(event);\n const {\n params,\n touches,\n enabled\n } = swiper;\n if (!enabled) return;\n if (!params.simulateTouch && event.pointerType === 'mouse') return;\n if (swiper.animating && params.preventInteractionOnTransition) {\n return;\n }\n if (!swiper.animating && params.cssMode && params.loop) {\n swiper.loopFix();\n }\n let e = event;\n if (e.originalEvent) e = e.originalEvent;\n let targetEl = e.target;\n if (params.touchEventsTarget === 'wrapper') {\n if (!swiper.wrapperEl.contains(targetEl)) return;\n }\n if ('which' in e && e.which === 3) return;\n if ('button' in e && e.button > 0) return;\n if (data.isTouched && data.isMoved) return;\n\n // change target el for shadow root component\n const swipingClassHasValue = !!params.noSwipingClass && params.noSwipingClass !== '';\n // eslint-disable-next-line\n const eventPath = event.composedPath ? event.composedPath() : event.path;\n if (swipingClassHasValue && e.target && e.target.shadowRoot && eventPath) {\n targetEl = eventPath[0];\n }\n const noSwipingSelector = params.noSwipingSelector ? params.noSwipingSelector : `.${params.noSwipingClass}`;\n const isTargetShadow = !!(e.target && e.target.shadowRoot);\n\n // use closestElement for shadow root element to get the actual closest for nested shadow root element\n if (params.noSwiping && (isTargetShadow ? closestElement(noSwipingSelector, targetEl) : targetEl.closest(noSwipingSelector))) {\n swiper.allowClick = true;\n return;\n }\n if (params.swipeHandler) {\n if (!targetEl.closest(params.swipeHandler)) return;\n }\n touches.currentX = e.pageX;\n touches.currentY = e.pageY;\n const startX = touches.currentX;\n const startY = touches.currentY;\n\n // Do NOT start if iOS edge swipe is detected. Otherwise iOS app cannot swipe-to-go-back anymore\n\n const edgeSwipeDetection = params.edgeSwipeDetection || params.iOSEdgeSwipeDetection;\n const edgeSwipeThreshold = params.edgeSwipeThreshold || params.iOSEdgeSwipeThreshold;\n if (edgeSwipeDetection && (startX <= edgeSwipeThreshold || startX >= window.innerWidth - edgeSwipeThreshold)) {\n if (edgeSwipeDetection === 'prevent') {\n event.preventDefault();\n } else {\n return;\n }\n }\n Object.assign(data, {\n isTouched: true,\n isMoved: false,\n allowTouchCallbacks: true,\n isScrolling: undefined,\n startMoving: undefined\n });\n touches.startX = startX;\n touches.startY = startY;\n data.touchStartTime = now();\n swiper.allowClick = true;\n swiper.updateSize();\n swiper.swipeDirection = undefined;\n if (params.threshold > 0) data.allowThresholdMove = false;\n let preventDefault = true;\n if (targetEl.matches(data.focusableElements)) {\n preventDefault = false;\n if (targetEl.nodeName === 'SELECT') {\n data.isTouched = false;\n }\n }\n if (document.activeElement && document.activeElement.matches(data.focusableElements) && document.activeElement !== targetEl) {\n document.activeElement.blur();\n }\n const shouldPreventDefault = preventDefault && swiper.allowTouchMove && params.touchStartPreventDefault;\n if ((params.touchStartForcePreventDefault || shouldPreventDefault) && !targetEl.isContentEditable) {\n e.preventDefault();\n }\n if (params.freeMode && params.freeMode.enabled && swiper.freeMode && swiper.animating && !params.cssMode) {\n swiper.freeMode.onTouchStart();\n }\n swiper.emit('touchStart', e);\n}\n\nfunction onTouchMove(event) {\n const document = getDocument();\n const swiper = this;\n const data = swiper.touchEventsData;\n const {\n params,\n touches,\n rtlTranslate: rtl,\n enabled\n } = swiper;\n if (!enabled) return;\n if (!params.simulateTouch && event.pointerType === 'mouse') return;\n let e = event;\n if (e.originalEvent) e = e.originalEvent;\n if (!data.isTouched) {\n if (data.startMoving && data.isScrolling) {\n swiper.emit('touchMoveOpposite', e);\n }\n return;\n }\n const pointerIndex = data.evCache.findIndex(cachedEv => cachedEv.pointerId === e.pointerId);\n if (pointerIndex >= 0) data.evCache[pointerIndex] = e;\n const targetTouch = data.evCache.length > 1 ? data.evCache[0] : e;\n const pageX = targetTouch.pageX;\n const pageY = targetTouch.pageY;\n if (e.preventedByNestedSwiper) {\n touches.startX = pageX;\n touches.startY = pageY;\n return;\n }\n if (!swiper.allowTouchMove) {\n if (!e.target.matches(data.focusableElements)) {\n swiper.allowClick = false;\n }\n if (data.isTouched) {\n Object.assign(touches, {\n startX: pageX,\n startY: pageY,\n prevX: swiper.touches.currentX,\n prevY: swiper.touches.currentY,\n currentX: pageX,\n currentY: pageY\n });\n data.touchStartTime = now();\n }\n return;\n }\n if (params.touchReleaseOnEdges && !params.loop) {\n if (swiper.isVertical()) {\n // Vertical\n if (pageY < touches.startY && swiper.translate <= swiper.maxTranslate() || pageY > touches.startY && swiper.translate >= swiper.minTranslate()) {\n data.isTouched = false;\n data.isMoved = false;\n return;\n }\n } else if (pageX < touches.startX && swiper.translate <= swiper.maxTranslate() || pageX > touches.startX && swiper.translate >= swiper.minTranslate()) {\n return;\n }\n }\n if (document.activeElement) {\n if (e.target === document.activeElement && e.target.matches(data.focusableElements)) {\n data.isMoved = true;\n swiper.allowClick = false;\n return;\n }\n }\n if (data.allowTouchCallbacks) {\n swiper.emit('touchMove', e);\n }\n if (e.targetTouches && e.targetTouches.length > 1) return;\n touches.currentX = pageX;\n touches.currentY = pageY;\n const diffX = touches.currentX - touches.startX;\n const diffY = touches.currentY - touches.startY;\n if (swiper.params.threshold && Math.sqrt(diffX ** 2 + diffY ** 2) < swiper.params.threshold) return;\n if (typeof data.isScrolling === 'undefined') {\n let touchAngle;\n if (swiper.isHorizontal() && touches.currentY === touches.startY || swiper.isVertical() && touches.currentX === touches.startX) {\n data.isScrolling = false;\n } else {\n // eslint-disable-next-line\n if (diffX * diffX + diffY * diffY >= 25) {\n touchAngle = Math.atan2(Math.abs(diffY), Math.abs(diffX)) * 180 / Math.PI;\n data.isScrolling = swiper.isHorizontal() ? touchAngle > params.touchAngle : 90 - touchAngle > params.touchAngle;\n }\n }\n }\n if (data.isScrolling) {\n swiper.emit('touchMoveOpposite', e);\n }\n if (typeof data.startMoving === 'undefined') {\n if (touches.currentX !== touches.startX || touches.currentY !== touches.startY) {\n data.startMoving = true;\n }\n }\n if (data.isScrolling || swiper.zoom && swiper.params.zoom && swiper.params.zoom.enabled && data.evCache.length > 1) {\n data.isTouched = false;\n return;\n }\n if (!data.startMoving) {\n return;\n }\n swiper.allowClick = false;\n if (!params.cssMode && e.cancelable) {\n e.preventDefault();\n }\n if (params.touchMoveStopPropagation && !params.nested) {\n e.stopPropagation();\n }\n let diff = swiper.isHorizontal() ? diffX : diffY;\n let touchesDiff = swiper.isHorizontal() ? touches.currentX - touches.previousX : touches.currentY - touches.previousY;\n if (params.oneWayMovement) {\n diff = Math.abs(diff) * (rtl ? 1 : -1);\n touchesDiff = Math.abs(touchesDiff) * (rtl ? 1 : -1);\n }\n touches.diff = diff;\n diff *= params.touchRatio;\n if (rtl) {\n diff = -diff;\n touchesDiff = -touchesDiff;\n }\n const prevTouchesDirection = swiper.touchesDirection;\n swiper.swipeDirection = diff > 0 ? 'prev' : 'next';\n swiper.touchesDirection = touchesDiff > 0 ? 'prev' : 'next';\n const isLoop = swiper.params.loop && !params.cssMode;\n const allowLoopFix = swiper.swipeDirection === 'next' && swiper.allowSlideNext || swiper.swipeDirection === 'prev' && swiper.allowSlidePrev;\n if (!data.isMoved) {\n if (isLoop && allowLoopFix) {\n swiper.loopFix({\n direction: swiper.swipeDirection\n });\n }\n data.startTranslate = swiper.getTranslate();\n swiper.setTransition(0);\n if (swiper.animating) {\n const evt = new window.CustomEvent('transitionend', {\n bubbles: true,\n cancelable: true\n });\n swiper.wrapperEl.dispatchEvent(evt);\n }\n data.allowMomentumBounce = false;\n // Grab Cursor\n if (params.grabCursor && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {\n swiper.setGrabCursor(true);\n }\n swiper.emit('sliderFirstMove', e);\n }\n let loopFixed;\n if (data.isMoved && prevTouchesDirection !== swiper.touchesDirection && isLoop && allowLoopFix && Math.abs(diff) >= 1) {\n // need another loop fix\n swiper.loopFix({\n direction: swiper.swipeDirection,\n setTranslate: true\n });\n loopFixed = true;\n }\n swiper.emit('sliderMove', e);\n data.isMoved = true;\n data.currentTranslate = diff + data.startTranslate;\n let disableParentSwiper = true;\n let resistanceRatio = params.resistanceRatio;\n if (params.touchReleaseOnEdges) {\n resistanceRatio = 0;\n }\n if (diff > 0) {\n if (isLoop && allowLoopFix && !loopFixed && data.currentTranslate > (params.centeredSlides ? swiper.minTranslate() - swiper.size / 2 : swiper.minTranslate())) {\n swiper.loopFix({\n direction: 'prev',\n setTranslate: true,\n activeSlideIndex: 0\n });\n }\n if (data.currentTranslate > swiper.minTranslate()) {\n disableParentSwiper = false;\n if (params.resistance) {\n data.currentTranslate = swiper.minTranslate() - 1 + (-swiper.minTranslate() + data.startTranslate + diff) ** resistanceRatio;\n }\n }\n } else if (diff < 0) {\n if (isLoop && allowLoopFix && !loopFixed && data.currentTranslate < (params.centeredSlides ? swiper.maxTranslate() + swiper.size / 2 : swiper.maxTranslate())) {\n swiper.loopFix({\n direction: 'next',\n setTranslate: true,\n activeSlideIndex: swiper.slides.length - (params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(parseFloat(params.slidesPerView, 10)))\n });\n }\n if (data.currentTranslate < swiper.maxTranslate()) {\n disableParentSwiper = false;\n if (params.resistance) {\n data.currentTranslate = swiper.maxTranslate() + 1 - (swiper.maxTranslate() - data.startTranslate - diff) ** resistanceRatio;\n }\n }\n }\n if (disableParentSwiper) {\n e.preventedByNestedSwiper = true;\n }\n\n // Directions locks\n if (!swiper.allowSlideNext && swiper.swipeDirection === 'next' && data.currentTranslate < data.startTranslate) {\n data.currentTranslate = data.startTranslate;\n }\n if (!swiper.allowSlidePrev && swiper.swipeDirection === 'prev' && data.currentTranslate > data.startTranslate) {\n data.currentTranslate = data.startTranslate;\n }\n if (!swiper.allowSlidePrev && !swiper.allowSlideNext) {\n data.currentTranslate = data.startTranslate;\n }\n\n // Threshold\n if (params.threshold > 0) {\n if (Math.abs(diff) > params.threshold || data.allowThresholdMove) {\n if (!data.allowThresholdMove) {\n data.allowThresholdMove = true;\n touches.startX = touches.currentX;\n touches.startY = touches.currentY;\n data.currentTranslate = data.startTranslate;\n touches.diff = swiper.isHorizontal() ? touches.currentX - touches.startX : touches.currentY - touches.startY;\n return;\n }\n } else {\n data.currentTranslate = data.startTranslate;\n return;\n }\n }\n if (!params.followFinger || params.cssMode) return;\n\n // Update active index in free mode\n if (params.freeMode && params.freeMode.enabled && swiper.freeMode || params.watchSlidesProgress) {\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n if (params.freeMode && params.freeMode.enabled && swiper.freeMode) {\n swiper.freeMode.onTouchMove();\n }\n // Update progress\n swiper.updateProgress(data.currentTranslate);\n // Update translate\n swiper.setTranslate(data.currentTranslate);\n}\n\nfunction onTouchEnd(event) {\n const swiper = this;\n const data = swiper.touchEventsData;\n const pointerIndex = data.evCache.findIndex(cachedEv => cachedEv.pointerId === event.pointerId);\n if (pointerIndex >= 0) {\n data.evCache.splice(pointerIndex, 1);\n }\n if (['pointercancel', 'pointerout', 'pointerleave', 'contextmenu'].includes(event.type)) {\n const proceed = ['pointercancel', 'contextmenu'].includes(event.type) && (swiper.browser.isSafari || swiper.browser.isWebView);\n if (!proceed) {\n return;\n }\n }\n const {\n params,\n touches,\n rtlTranslate: rtl,\n slidesGrid,\n enabled\n } = swiper;\n if (!enabled) return;\n if (!params.simulateTouch && event.pointerType === 'mouse') return;\n let e = event;\n if (e.originalEvent) e = e.originalEvent;\n if (data.allowTouchCallbacks) {\n swiper.emit('touchEnd', e);\n }\n data.allowTouchCallbacks = false;\n if (!data.isTouched) {\n if (data.isMoved && params.grabCursor) {\n swiper.setGrabCursor(false);\n }\n data.isMoved = false;\n data.startMoving = false;\n return;\n }\n // Return Grab Cursor\n if (params.grabCursor && data.isMoved && data.isTouched && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {\n swiper.setGrabCursor(false);\n }\n\n // Time diff\n const touchEndTime = now();\n const timeDiff = touchEndTime - data.touchStartTime;\n\n // Tap, doubleTap, Click\n if (swiper.allowClick) {\n const pathTree = e.path || e.composedPath && e.composedPath();\n swiper.updateClickedSlide(pathTree && pathTree[0] || e.target, pathTree);\n swiper.emit('tap click', e);\n if (timeDiff < 300 && touchEndTime - data.lastClickTime < 300) {\n swiper.emit('doubleTap doubleClick', e);\n }\n }\n data.lastClickTime = now();\n nextTick(() => {\n if (!swiper.destroyed) swiper.allowClick = true;\n });\n if (!data.isTouched || !data.isMoved || !swiper.swipeDirection || touches.diff === 0 || data.currentTranslate === data.startTranslate) {\n data.isTouched = false;\n data.isMoved = false;\n data.startMoving = false;\n return;\n }\n data.isTouched = false;\n data.isMoved = false;\n data.startMoving = false;\n let currentPos;\n if (params.followFinger) {\n currentPos = rtl ? swiper.translate : -swiper.translate;\n } else {\n currentPos = -data.currentTranslate;\n }\n if (params.cssMode) {\n return;\n }\n if (params.freeMode && params.freeMode.enabled) {\n swiper.freeMode.onTouchEnd({\n currentPos\n });\n return;\n }\n\n // Find current slide\n let stopIndex = 0;\n let groupSize = swiper.slidesSizesGrid[0];\n for (let i = 0; i < slidesGrid.length; i += i < params.slidesPerGroupSkip ? 1 : params.slidesPerGroup) {\n const increment = i < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;\n if (typeof slidesGrid[i + increment] !== 'undefined') {\n if (currentPos >= slidesGrid[i] && currentPos < slidesGrid[i + increment]) {\n stopIndex = i;\n groupSize = slidesGrid[i + increment] - slidesGrid[i];\n }\n } else if (currentPos >= slidesGrid[i]) {\n stopIndex = i;\n groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];\n }\n }\n let rewindFirstIndex = null;\n let rewindLastIndex = null;\n if (params.rewind) {\n if (swiper.isBeginning) {\n rewindLastIndex = params.virtual && params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;\n } else if (swiper.isEnd) {\n rewindFirstIndex = 0;\n }\n }\n // Find current slide size\n const ratio = (currentPos - slidesGrid[stopIndex]) / groupSize;\n const increment = stopIndex < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;\n if (timeDiff > params.longSwipesMs) {\n // Long touches\n if (!params.longSwipes) {\n swiper.slideTo(swiper.activeIndex);\n return;\n }\n if (swiper.swipeDirection === 'next') {\n if (ratio >= params.longSwipesRatio) swiper.slideTo(params.rewind && swiper.isEnd ? rewindFirstIndex : stopIndex + increment);else swiper.slideTo(stopIndex);\n }\n if (swiper.swipeDirection === 'prev') {\n if (ratio > 1 - params.longSwipesRatio) {\n swiper.slideTo(stopIndex + increment);\n } else if (rewindLastIndex !== null && ratio < 0 && Math.abs(ratio) > params.longSwipesRatio) {\n swiper.slideTo(rewindLastIndex);\n } else {\n swiper.slideTo(stopIndex);\n }\n }\n } else {\n // Short swipes\n if (!params.shortSwipes) {\n swiper.slideTo(swiper.activeIndex);\n return;\n }\n const isNavButtonTarget = swiper.navigation && (e.target === swiper.navigation.nextEl || e.target === swiper.navigation.prevEl);\n if (!isNavButtonTarget) {\n if (swiper.swipeDirection === 'next') {\n swiper.slideTo(rewindFirstIndex !== null ? rewindFirstIndex : stopIndex + increment);\n }\n if (swiper.swipeDirection === 'prev') {\n swiper.slideTo(rewindLastIndex !== null ? rewindLastIndex : stopIndex);\n }\n } else if (e.target === swiper.navigation.nextEl) {\n swiper.slideTo(stopIndex + increment);\n } else {\n swiper.slideTo(stopIndex);\n }\n }\n}\n\nfunction onResize() {\n const swiper = this;\n const {\n params,\n el\n } = swiper;\n if (el && el.offsetWidth === 0) return;\n\n // Breakpoints\n if (params.breakpoints) {\n swiper.setBreakpoint();\n }\n\n // Save locks\n const {\n allowSlideNext,\n allowSlidePrev,\n snapGrid\n } = swiper;\n const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n\n // Disable locks on resize\n swiper.allowSlideNext = true;\n swiper.allowSlidePrev = true;\n swiper.updateSize();\n swiper.updateSlides();\n swiper.updateSlidesClasses();\n const isVirtualLoop = isVirtual && params.loop;\n if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !swiper.isBeginning && !swiper.params.centeredSlides && !isVirtualLoop) {\n swiper.slideTo(swiper.slides.length - 1, 0, false, true);\n } else {\n if (swiper.params.loop && !isVirtual) {\n swiper.slideToLoop(swiper.realIndex, 0, false, true);\n } else {\n swiper.slideTo(swiper.activeIndex, 0, false, true);\n }\n }\n if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {\n clearTimeout(swiper.autoplay.resizeTimeout);\n swiper.autoplay.resizeTimeout = setTimeout(() => {\n if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {\n swiper.autoplay.resume();\n }\n }, 500);\n }\n // Return locks after resize\n swiper.allowSlidePrev = allowSlidePrev;\n swiper.allowSlideNext = allowSlideNext;\n if (swiper.params.watchOverflow && snapGrid !== swiper.snapGrid) {\n swiper.checkOverflow();\n }\n}\n\nfunction onClick(e) {\n const swiper = this;\n if (!swiper.enabled) return;\n if (!swiper.allowClick) {\n if (swiper.params.preventClicks) e.preventDefault();\n if (swiper.params.preventClicksPropagation && swiper.animating) {\n e.stopPropagation();\n e.stopImmediatePropagation();\n }\n }\n}\n\nfunction onScroll() {\n const swiper = this;\n const {\n wrapperEl,\n rtlTranslate,\n enabled\n } = swiper;\n if (!enabled) return;\n swiper.previousTranslate = swiper.translate;\n if (swiper.isHorizontal()) {\n swiper.translate = -wrapperEl.scrollLeft;\n } else {\n swiper.translate = -wrapperEl.scrollTop;\n }\n // eslint-disable-next-line\n if (swiper.translate === 0) swiper.translate = 0;\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n let newProgress;\n const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\n if (translatesDiff === 0) {\n newProgress = 0;\n } else {\n newProgress = (swiper.translate - swiper.minTranslate()) / translatesDiff;\n }\n if (newProgress !== swiper.progress) {\n swiper.updateProgress(rtlTranslate ? -swiper.translate : swiper.translate);\n }\n swiper.emit('setTranslate', swiper.translate, false);\n}\n\nfunction onLoad(e) {\n const swiper = this;\n processLazyPreloader(swiper, e.target);\n if (swiper.params.cssMode || swiper.params.slidesPerView !== 'auto' && !swiper.params.autoHeight) {\n return;\n }\n swiper.update();\n}\n\nlet dummyEventAttached = false;\nfunction dummyEventListener() {}\nconst events = (swiper, method) => {\n const document = getDocument();\n const {\n params,\n el,\n wrapperEl,\n device\n } = swiper;\n const capture = !!params.nested;\n const domMethod = method === 'on' ? 'addEventListener' : 'removeEventListener';\n const swiperMethod = method;\n\n // Touch Events\n el[domMethod]('pointerdown', swiper.onTouchStart, {\n passive: false\n });\n document[domMethod]('pointermove', swiper.onTouchMove, {\n passive: false,\n capture\n });\n document[domMethod]('pointerup', swiper.onTouchEnd, {\n passive: true\n });\n document[domMethod]('pointercancel', swiper.onTouchEnd, {\n passive: true\n });\n document[domMethod]('pointerout', swiper.onTouchEnd, {\n passive: true\n });\n document[domMethod]('pointerleave', swiper.onTouchEnd, {\n passive: true\n });\n document[domMethod]('contextmenu', swiper.onTouchEnd, {\n passive: true\n });\n\n // Prevent Links Clicks\n if (params.preventClicks || params.preventClicksPropagation) {\n el[domMethod]('click', swiper.onClick, true);\n }\n if (params.cssMode) {\n wrapperEl[domMethod]('scroll', swiper.onScroll);\n }\n\n // Resize handler\n if (params.updateOnWindowResize) {\n swiper[swiperMethod](device.ios || device.android ? 'resize orientationchange observerUpdate' : 'resize observerUpdate', onResize, true);\n } else {\n swiper[swiperMethod]('observerUpdate', onResize, true);\n }\n\n // Images loader\n el[domMethod]('load', swiper.onLoad, {\n capture: true\n });\n};\nfunction attachEvents() {\n const swiper = this;\n const document = getDocument();\n const {\n params\n } = swiper;\n swiper.onTouchStart = onTouchStart.bind(swiper);\n swiper.onTouchMove = onTouchMove.bind(swiper);\n swiper.onTouchEnd = onTouchEnd.bind(swiper);\n if (params.cssMode) {\n swiper.onScroll = onScroll.bind(swiper);\n }\n swiper.onClick = onClick.bind(swiper);\n swiper.onLoad = onLoad.bind(swiper);\n if (!dummyEventAttached) {\n document.addEventListener('touchstart', dummyEventListener);\n dummyEventAttached = true;\n }\n events(swiper, 'on');\n}\nfunction detachEvents() {\n const swiper = this;\n events(swiper, 'off');\n}\nvar events$1 = {\n attachEvents,\n detachEvents\n};\n\nconst isGridEnabled = (swiper, params) => {\n return swiper.grid && params.grid && params.grid.rows > 1;\n};\nfunction setBreakpoint() {\n const swiper = this;\n const {\n realIndex,\n initialized,\n params,\n el\n } = swiper;\n const breakpoints = params.breakpoints;\n if (!breakpoints || breakpoints && Object.keys(breakpoints).length === 0) return;\n\n // Get breakpoint for window width and update parameters\n const breakpoint = swiper.getBreakpoint(breakpoints, swiper.params.breakpointsBase, swiper.el);\n if (!breakpoint || swiper.currentBreakpoint === breakpoint) return;\n const breakpointOnlyParams = breakpoint in breakpoints ? breakpoints[breakpoint] : undefined;\n const breakpointParams = breakpointOnlyParams || swiper.originalParams;\n const wasMultiRow = isGridEnabled(swiper, params);\n const isMultiRow = isGridEnabled(swiper, breakpointParams);\n const wasEnabled = params.enabled;\n if (wasMultiRow && !isMultiRow) {\n el.classList.remove(`${params.containerModifierClass}grid`, `${params.containerModifierClass}grid-column`);\n swiper.emitContainerClasses();\n } else if (!wasMultiRow && isMultiRow) {\n el.classList.add(`${params.containerModifierClass}grid`);\n if (breakpointParams.grid.fill && breakpointParams.grid.fill === 'column' || !breakpointParams.grid.fill && params.grid.fill === 'column') {\n el.classList.add(`${params.containerModifierClass}grid-column`);\n }\n swiper.emitContainerClasses();\n }\n\n // Toggle navigation, pagination, scrollbar\n ['navigation', 'pagination', 'scrollbar'].forEach(prop => {\n if (typeof breakpointParams[prop] === 'undefined') return;\n const wasModuleEnabled = params[prop] && params[prop].enabled;\n const isModuleEnabled = breakpointParams[prop] && breakpointParams[prop].enabled;\n if (wasModuleEnabled && !isModuleEnabled) {\n swiper[prop].disable();\n }\n if (!wasModuleEnabled && isModuleEnabled) {\n swiper[prop].enable();\n }\n });\n const directionChanged = breakpointParams.direction && breakpointParams.direction !== params.direction;\n const needsReLoop = params.loop && (breakpointParams.slidesPerView !== params.slidesPerView || directionChanged);\n const wasLoop = params.loop;\n if (directionChanged && initialized) {\n swiper.changeDirection();\n }\n extend(swiper.params, breakpointParams);\n const isEnabled = swiper.params.enabled;\n const hasLoop = swiper.params.loop;\n Object.assign(swiper, {\n allowTouchMove: swiper.params.allowTouchMove,\n allowSlideNext: swiper.params.allowSlideNext,\n allowSlidePrev: swiper.params.allowSlidePrev\n });\n if (wasEnabled && !isEnabled) {\n swiper.disable();\n } else if (!wasEnabled && isEnabled) {\n swiper.enable();\n }\n swiper.currentBreakpoint = breakpoint;\n swiper.emit('_beforeBreakpoint', breakpointParams);\n if (initialized) {\n if (needsReLoop) {\n swiper.loopDestroy();\n swiper.loopCreate(realIndex);\n swiper.updateSlides();\n } else if (!wasLoop && hasLoop) {\n swiper.loopCreate(realIndex);\n swiper.updateSlides();\n } else if (wasLoop && !hasLoop) {\n swiper.loopDestroy();\n }\n }\n swiper.emit('breakpoint', breakpointParams);\n}\n\nfunction getBreakpoint(breakpoints, base, containerEl) {\n if (base === void 0) {\n base = 'window';\n }\n if (!breakpoints || base === 'container' && !containerEl) return undefined;\n let breakpoint = false;\n const window = getWindow();\n const currentHeight = base === 'window' ? window.innerHeight : containerEl.clientHeight;\n const points = Object.keys(breakpoints).map(point => {\n if (typeof point === 'string' && point.indexOf('@') === 0) {\n const minRatio = parseFloat(point.substr(1));\n const value = currentHeight * minRatio;\n return {\n value,\n point\n };\n }\n return {\n value: point,\n point\n };\n });\n points.sort((a, b) => parseInt(a.value, 10) - parseInt(b.value, 10));\n for (let i = 0; i < points.length; i += 1) {\n const {\n point,\n value\n } = points[i];\n if (base === 'window') {\n if (window.matchMedia(`(min-width: ${value}px)`).matches) {\n breakpoint = point;\n }\n } else if (value <= containerEl.clientWidth) {\n breakpoint = point;\n }\n }\n return breakpoint || 'max';\n}\n\nvar breakpoints = {\n setBreakpoint,\n getBreakpoint\n};\n\nfunction prepareClasses(entries, prefix) {\n const resultClasses = [];\n entries.forEach(item => {\n if (typeof item === 'object') {\n Object.keys(item).forEach(classNames => {\n if (item[classNames]) {\n resultClasses.push(prefix + classNames);\n }\n });\n } else if (typeof item === 'string') {\n resultClasses.push(prefix + item);\n }\n });\n return resultClasses;\n}\nfunction addClasses() {\n const swiper = this;\n const {\n classNames,\n params,\n rtl,\n el,\n device\n } = swiper;\n // prettier-ignore\n const suffixes = prepareClasses(['initialized', params.direction, {\n 'free-mode': swiper.params.freeMode && params.freeMode.enabled\n }, {\n 'autoheight': params.autoHeight\n }, {\n 'rtl': rtl\n }, {\n 'grid': params.grid && params.grid.rows > 1\n }, {\n 'grid-column': params.grid && params.grid.rows > 1 && params.grid.fill === 'column'\n }, {\n 'android': device.android\n }, {\n 'ios': device.ios\n }, {\n 'css-mode': params.cssMode\n }, {\n 'centered': params.cssMode && params.centeredSlides\n }, {\n 'watch-progress': params.watchSlidesProgress\n }], params.containerModifierClass);\n classNames.push(...suffixes);\n el.classList.add(...classNames);\n swiper.emitContainerClasses();\n}\n\nfunction removeClasses() {\n const swiper = this;\n const {\n el,\n classNames\n } = swiper;\n el.classList.remove(...classNames);\n swiper.emitContainerClasses();\n}\n\nvar classes = {\n addClasses,\n removeClasses\n};\n\nfunction checkOverflow() {\n const swiper = this;\n const {\n isLocked: wasLocked,\n params\n } = swiper;\n const {\n slidesOffsetBefore\n } = params;\n if (slidesOffsetBefore) {\n const lastSlideIndex = swiper.slides.length - 1;\n const lastSlideRightEdge = swiper.slidesGrid[lastSlideIndex] + swiper.slidesSizesGrid[lastSlideIndex] + slidesOffsetBefore * 2;\n swiper.isLocked = swiper.size > lastSlideRightEdge;\n } else {\n swiper.isLocked = swiper.snapGrid.length === 1;\n }\n if (params.allowSlideNext === true) {\n swiper.allowSlideNext = !swiper.isLocked;\n }\n if (params.allowSlidePrev === true) {\n swiper.allowSlidePrev = !swiper.isLocked;\n }\n if (wasLocked && wasLocked !== swiper.isLocked) {\n swiper.isEnd = false;\n }\n if (wasLocked !== swiper.isLocked) {\n swiper.emit(swiper.isLocked ? 'lock' : 'unlock');\n }\n}\nvar checkOverflow$1 = {\n checkOverflow\n};\n\nvar defaults = {\n init: true,\n direction: 'horizontal',\n oneWayMovement: false,\n touchEventsTarget: 'wrapper',\n initialSlide: 0,\n speed: 300,\n cssMode: false,\n updateOnWindowResize: true,\n resizeObserver: true,\n nested: false,\n createElements: false,\n enabled: true,\n focusableElements: 'input, select, option, textarea, button, video, label',\n // Overrides\n width: null,\n height: null,\n //\n preventInteractionOnTransition: false,\n // ssr\n userAgent: null,\n url: null,\n // To support iOS's swipe-to-go-back gesture (when being used in-app).\n edgeSwipeDetection: false,\n edgeSwipeThreshold: 20,\n // Autoheight\n autoHeight: false,\n // Set wrapper width\n setWrapperSize: false,\n // Virtual Translate\n virtualTranslate: false,\n // Effects\n effect: 'slide',\n // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'\n\n // Breakpoints\n breakpoints: undefined,\n breakpointsBase: 'window',\n // Slides grid\n spaceBetween: 0,\n slidesPerView: 1,\n slidesPerGroup: 1,\n slidesPerGroupSkip: 0,\n slidesPerGroupAuto: false,\n centeredSlides: false,\n centeredSlidesBounds: false,\n slidesOffsetBefore: 0,\n // in px\n slidesOffsetAfter: 0,\n // in px\n normalizeSlideIndex: true,\n centerInsufficientSlides: false,\n // Disable swiper and hide navigation when container not overflow\n watchOverflow: true,\n // Round length\n roundLengths: false,\n // Touches\n touchRatio: 1,\n touchAngle: 45,\n simulateTouch: true,\n shortSwipes: true,\n longSwipes: true,\n longSwipesRatio: 0.5,\n longSwipesMs: 300,\n followFinger: true,\n allowTouchMove: true,\n threshold: 5,\n touchMoveStopPropagation: false,\n touchStartPreventDefault: true,\n touchStartForcePreventDefault: false,\n touchReleaseOnEdges: false,\n // Unique Navigation Elements\n uniqueNavElements: true,\n // Resistance\n resistance: true,\n resistanceRatio: 0.85,\n // Progress\n watchSlidesProgress: false,\n // Cursor\n grabCursor: false,\n // Clicks\n preventClicks: true,\n preventClicksPropagation: true,\n slideToClickedSlide: false,\n // loop\n loop: false,\n loopedSlides: null,\n loopPreventsSliding: true,\n // rewind\n rewind: false,\n // Swiping/no swiping\n allowSlidePrev: true,\n allowSlideNext: true,\n swipeHandler: null,\n // '.swipe-handler',\n noSwiping: true,\n noSwipingClass: 'swiper-no-swiping',\n noSwipingSelector: null,\n // Passive Listeners\n passiveListeners: true,\n maxBackfaceHiddenSlides: 10,\n // NS\n containerModifierClass: 'swiper-',\n // NEW\n slideClass: 'swiper-slide',\n slideActiveClass: 'swiper-slide-active',\n slideVisibleClass: 'swiper-slide-visible',\n slideNextClass: 'swiper-slide-next',\n slidePrevClass: 'swiper-slide-prev',\n wrapperClass: 'swiper-wrapper',\n lazyPreloaderClass: 'swiper-lazy-preloader',\n lazyPreloadPrevNext: 0,\n // Callbacks\n runCallbacksOnInit: true,\n // Internals\n _emitClasses: false\n};\n\nfunction moduleExtendParams(params, allModulesParams) {\n return function extendParams(obj) {\n if (obj === void 0) {\n obj = {};\n }\n const moduleParamName = Object.keys(obj)[0];\n const moduleParams = obj[moduleParamName];\n if (typeof moduleParams !== 'object' || moduleParams === null) {\n extend(allModulesParams, obj);\n return;\n }\n if (params[moduleParamName] === true) {\n params[moduleParamName] = {\n enabled: true\n };\n }\n if (moduleParamName === 'navigation' && params[moduleParamName] && params[moduleParamName].enabled && !params[moduleParamName].prevEl && !params[moduleParamName].nextEl) {\n params[moduleParamName].auto = true;\n }\n if (['pagination', 'scrollbar'].indexOf(moduleParamName) >= 0 && params[moduleParamName] && params[moduleParamName].enabled && !params[moduleParamName].el) {\n params[moduleParamName].auto = true;\n }\n if (!(moduleParamName in params && 'enabled' in moduleParams)) {\n extend(allModulesParams, obj);\n return;\n }\n if (typeof params[moduleParamName] === 'object' && !('enabled' in params[moduleParamName])) {\n params[moduleParamName].enabled = true;\n }\n if (!params[moduleParamName]) params[moduleParamName] = {\n enabled: false\n };\n extend(allModulesParams, obj);\n };\n}\n\n/* eslint no-param-reassign: \"off\" */\nconst prototypes = {\n eventsEmitter,\n update,\n translate,\n transition,\n slide,\n loop,\n grabCursor,\n events: events$1,\n breakpoints,\n checkOverflow: checkOverflow$1,\n classes\n};\nconst extendedDefaults = {};\nclass Swiper {\n constructor() {\n let el;\n let params;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (args.length === 1 && args[0].constructor && Object.prototype.toString.call(args[0]).slice(8, -1) === 'Object') {\n params = args[0];\n } else {\n [el, params] = args;\n }\n if (!params) params = {};\n params = extend({}, params);\n if (el && !params.el) params.el = el;\n const document = getDocument();\n if (params.el && typeof params.el === 'string' && document.querySelectorAll(params.el).length > 1) {\n const swipers = [];\n document.querySelectorAll(params.el).forEach(containerEl => {\n const newParams = extend({}, params, {\n el: containerEl\n });\n swipers.push(new Swiper(newParams));\n });\n // eslint-disable-next-line no-constructor-return\n return swipers;\n }\n\n // Swiper Instance\n const swiper = this;\n swiper.__swiper__ = true;\n swiper.support = getSupport();\n swiper.device = getDevice({\n userAgent: params.userAgent\n });\n swiper.browser = getBrowser();\n swiper.eventsListeners = {};\n swiper.eventsAnyListeners = [];\n swiper.modules = [...swiper.__modules__];\n if (params.modules && Array.isArray(params.modules)) {\n swiper.modules.push(...params.modules);\n }\n const allModulesParams = {};\n swiper.modules.forEach(mod => {\n mod({\n params,\n swiper,\n extendParams: moduleExtendParams(params, allModulesParams),\n on: swiper.on.bind(swiper),\n once: swiper.once.bind(swiper),\n off: swiper.off.bind(swiper),\n emit: swiper.emit.bind(swiper)\n });\n });\n\n // Extend defaults with modules params\n const swiperParams = extend({}, defaults, allModulesParams);\n\n // Extend defaults with passed params\n swiper.params = extend({}, swiperParams, extendedDefaults, params);\n swiper.originalParams = extend({}, swiper.params);\n swiper.passedParams = extend({}, params);\n\n // add event listeners\n if (swiper.params && swiper.params.on) {\n Object.keys(swiper.params.on).forEach(eventName => {\n swiper.on(eventName, swiper.params.on[eventName]);\n });\n }\n if (swiper.params && swiper.params.onAny) {\n swiper.onAny(swiper.params.onAny);\n }\n\n // Extend Swiper\n Object.assign(swiper, {\n enabled: swiper.params.enabled,\n el,\n // Classes\n classNames: [],\n // Slides\n slides: [],\n slidesGrid: [],\n snapGrid: [],\n slidesSizesGrid: [],\n // isDirection\n isHorizontal() {\n return swiper.params.direction === 'horizontal';\n },\n isVertical() {\n return swiper.params.direction === 'vertical';\n },\n // Indexes\n activeIndex: 0,\n realIndex: 0,\n //\n isBeginning: true,\n isEnd: false,\n // Props\n translate: 0,\n previousTranslate: 0,\n progress: 0,\n velocity: 0,\n animating: false,\n cssOverflowAdjustment() {\n // Returns 0 unless `translate` is > 2**23\n // Should be subtracted from css values to prevent overflow\n return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;\n },\n // Locks\n allowSlideNext: swiper.params.allowSlideNext,\n allowSlidePrev: swiper.params.allowSlidePrev,\n // Touch Events\n touchEventsData: {\n isTouched: undefined,\n isMoved: undefined,\n allowTouchCallbacks: undefined,\n touchStartTime: undefined,\n isScrolling: undefined,\n currentTranslate: undefined,\n startTranslate: undefined,\n allowThresholdMove: undefined,\n // Form elements to match\n focusableElements: swiper.params.focusableElements,\n // Last click time\n lastClickTime: 0,\n clickTimeout: undefined,\n // Velocities\n velocities: [],\n allowMomentumBounce: undefined,\n startMoving: undefined,\n evCache: []\n },\n // Clicks\n allowClick: true,\n // Touches\n allowTouchMove: swiper.params.allowTouchMove,\n touches: {\n startX: 0,\n startY: 0,\n currentX: 0,\n currentY: 0,\n diff: 0\n },\n // Images\n imagesToLoad: [],\n imagesLoaded: 0\n });\n swiper.emit('_swiper');\n\n // Init\n if (swiper.params.init) {\n swiper.init();\n }\n\n // Return app instance\n // eslint-disable-next-line no-constructor-return\n return swiper;\n }\n getSlideIndex(slideEl) {\n const {\n slidesEl,\n params\n } = this;\n const slides = elementChildren(slidesEl, `.${params.slideClass}, swiper-slide`);\n const firstSlideIndex = elementIndex(slides[0]);\n return elementIndex(slideEl) - firstSlideIndex;\n }\n getSlideIndexByData(index) {\n return this.getSlideIndex(this.slides.filter(slideEl => slideEl.getAttribute('data-swiper-slide-index') * 1 === index)[0]);\n }\n recalcSlides() {\n const swiper = this;\n const {\n slidesEl,\n params\n } = swiper;\n swiper.slides = elementChildren(slidesEl, `.${params.slideClass}, swiper-slide`);\n }\n enable() {\n const swiper = this;\n if (swiper.enabled) return;\n swiper.enabled = true;\n if (swiper.params.grabCursor) {\n swiper.setGrabCursor();\n }\n swiper.emit('enable');\n }\n disable() {\n const swiper = this;\n if (!swiper.enabled) return;\n swiper.enabled = false;\n if (swiper.params.grabCursor) {\n swiper.unsetGrabCursor();\n }\n swiper.emit('disable');\n }\n setProgress(progress, speed) {\n const swiper = this;\n progress = Math.min(Math.max(progress, 0), 1);\n const min = swiper.minTranslate();\n const max = swiper.maxTranslate();\n const current = (max - min) * progress + min;\n swiper.translateTo(current, typeof speed === 'undefined' ? 0 : speed);\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n emitContainerClasses() {\n const swiper = this;\n if (!swiper.params._emitClasses || !swiper.el) return;\n const cls = swiper.el.className.split(' ').filter(className => {\n return className.indexOf('swiper') === 0 || className.indexOf(swiper.params.containerModifierClass) === 0;\n });\n swiper.emit('_containerClasses', cls.join(' '));\n }\n getSlideClasses(slideEl) {\n const swiper = this;\n if (swiper.destroyed) return '';\n return slideEl.className.split(' ').filter(className => {\n return className.indexOf('swiper-slide') === 0 || className.indexOf(swiper.params.slideClass) === 0;\n }).join(' ');\n }\n emitSlidesClasses() {\n const swiper = this;\n if (!swiper.params._emitClasses || !swiper.el) return;\n const updates = [];\n swiper.slides.forEach(slideEl => {\n const classNames = swiper.getSlideClasses(slideEl);\n updates.push({\n slideEl,\n classNames\n });\n swiper.emit('_slideClass', slideEl, classNames);\n });\n swiper.emit('_slideClasses', updates);\n }\n slidesPerViewDynamic(view, exact) {\n if (view === void 0) {\n view = 'current';\n }\n if (exact === void 0) {\n exact = false;\n }\n const swiper = this;\n const {\n params,\n slides,\n slidesGrid,\n slidesSizesGrid,\n size: swiperSize,\n activeIndex\n } = swiper;\n let spv = 1;\n if (typeof params.slidesPerView === 'number') return params.slidesPerView;\n if (params.centeredSlides) {\n let slideSize = slides[activeIndex] ? slides[activeIndex].swiperSlideSize : 0;\n let breakLoop;\n for (let i = activeIndex + 1; i < slides.length; i += 1) {\n if (slides[i] && !breakLoop) {\n slideSize += slides[i].swiperSlideSize;\n spv += 1;\n if (slideSize > swiperSize) breakLoop = true;\n }\n }\n for (let i = activeIndex - 1; i >= 0; i -= 1) {\n if (slides[i] && !breakLoop) {\n slideSize += slides[i].swiperSlideSize;\n spv += 1;\n if (slideSize > swiperSize) breakLoop = true;\n }\n }\n } else {\n // eslint-disable-next-line\n if (view === 'current') {\n for (let i = activeIndex + 1; i < slides.length; i += 1) {\n const slideInView = exact ? slidesGrid[i] + slidesSizesGrid[i] - slidesGrid[activeIndex] < swiperSize : slidesGrid[i] - slidesGrid[activeIndex] < swiperSize;\n if (slideInView) {\n spv += 1;\n }\n }\n } else {\n // previous\n for (let i = activeIndex - 1; i >= 0; i -= 1) {\n const slideInView = slidesGrid[activeIndex] - slidesGrid[i] < swiperSize;\n if (slideInView) {\n spv += 1;\n }\n }\n }\n }\n return spv;\n }\n update() {\n const swiper = this;\n if (!swiper || swiper.destroyed) return;\n const {\n snapGrid,\n params\n } = swiper;\n // Breakpoints\n if (params.breakpoints) {\n swiper.setBreakpoint();\n }\n [...swiper.el.querySelectorAll('[loading=\"lazy\"]')].forEach(imageEl => {\n if (imageEl.complete) {\n processLazyPreloader(swiper, imageEl);\n }\n });\n swiper.updateSize();\n swiper.updateSlides();\n swiper.updateProgress();\n swiper.updateSlidesClasses();\n function setTranslate() {\n const translateValue = swiper.rtlTranslate ? swiper.translate * -1 : swiper.translate;\n const newTranslate = Math.min(Math.max(translateValue, swiper.maxTranslate()), swiper.minTranslate());\n swiper.setTranslate(newTranslate);\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n let translated;\n if (params.freeMode && params.freeMode.enabled && !params.cssMode) {\n setTranslate();\n if (params.autoHeight) {\n swiper.updateAutoHeight();\n }\n } else {\n if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !params.centeredSlides) {\n const slides = swiper.virtual && params.virtual.enabled ? swiper.virtual.slides : swiper.slides;\n translated = swiper.slideTo(slides.length - 1, 0, false, true);\n } else {\n translated = swiper.slideTo(swiper.activeIndex, 0, false, true);\n }\n if (!translated) {\n setTranslate();\n }\n }\n if (params.watchOverflow && snapGrid !== swiper.snapGrid) {\n swiper.checkOverflow();\n }\n swiper.emit('update');\n }\n changeDirection(newDirection, needUpdate) {\n if (needUpdate === void 0) {\n needUpdate = true;\n }\n const swiper = this;\n const currentDirection = swiper.params.direction;\n if (!newDirection) {\n // eslint-disable-next-line\n newDirection = currentDirection === 'horizontal' ? 'vertical' : 'horizontal';\n }\n if (newDirection === currentDirection || newDirection !== 'horizontal' && newDirection !== 'vertical') {\n return swiper;\n }\n swiper.el.classList.remove(`${swiper.params.containerModifierClass}${currentDirection}`);\n swiper.el.classList.add(`${swiper.params.containerModifierClass}${newDirection}`);\n swiper.emitContainerClasses();\n swiper.params.direction = newDirection;\n swiper.slides.forEach(slideEl => {\n if (newDirection === 'vertical') {\n slideEl.style.width = '';\n } else {\n slideEl.style.height = '';\n }\n });\n swiper.emit('changeDirection');\n if (needUpdate) swiper.update();\n return swiper;\n }\n changeLanguageDirection(direction) {\n const swiper = this;\n if (swiper.rtl && direction === 'rtl' || !swiper.rtl && direction === 'ltr') return;\n swiper.rtl = direction === 'rtl';\n swiper.rtlTranslate = swiper.params.direction === 'horizontal' && swiper.rtl;\n if (swiper.rtl) {\n swiper.el.classList.add(`${swiper.params.containerModifierClass}rtl`);\n swiper.el.dir = 'rtl';\n } else {\n swiper.el.classList.remove(`${swiper.params.containerModifierClass}rtl`);\n swiper.el.dir = 'ltr';\n }\n swiper.update();\n }\n mount(element) {\n const swiper = this;\n if (swiper.mounted) return true;\n\n // Find el\n let el = element || swiper.params.el;\n if (typeof el === 'string') {\n el = document.querySelector(el);\n }\n if (!el) {\n return false;\n }\n el.swiper = swiper;\n if (el.parentNode && el.parentNode.host && el.parentNode.host.nodeName === 'SWIPER-CONTAINER') {\n swiper.isElement = true;\n }\n const getWrapperSelector = () => {\n return `.${(swiper.params.wrapperClass || '').trim().split(' ').join('.')}`;\n };\n const getWrapper = () => {\n if (el && el.shadowRoot && el.shadowRoot.querySelector) {\n const res = el.shadowRoot.querySelector(getWrapperSelector());\n // Children needs to return slot items\n return res;\n }\n return elementChildren(el, getWrapperSelector())[0];\n };\n // Find Wrapper\n let wrapperEl = getWrapper();\n if (!wrapperEl && swiper.params.createElements) {\n wrapperEl = createElement('div', swiper.params.wrapperClass);\n el.append(wrapperEl);\n elementChildren(el, `.${swiper.params.slideClass}`).forEach(slideEl => {\n wrapperEl.append(slideEl);\n });\n }\n Object.assign(swiper, {\n el,\n wrapperEl,\n slidesEl: swiper.isElement && !el.parentNode.host.slideSlots ? el.parentNode.host : wrapperEl,\n hostEl: swiper.isElement ? el.parentNode.host : el,\n mounted: true,\n // RTL\n rtl: el.dir.toLowerCase() === 'rtl' || elementStyle(el, 'direction') === 'rtl',\n rtlTranslate: swiper.params.direction === 'horizontal' && (el.dir.toLowerCase() === 'rtl' || elementStyle(el, 'direction') === 'rtl'),\n wrongRTL: elementStyle(wrapperEl, 'display') === '-webkit-box'\n });\n return true;\n }\n init(el) {\n const swiper = this;\n if (swiper.initialized) return swiper;\n const mounted = swiper.mount(el);\n if (mounted === false) return swiper;\n swiper.emit('beforeInit');\n\n // Set breakpoint\n if (swiper.params.breakpoints) {\n swiper.setBreakpoint();\n }\n\n // Add Classes\n swiper.addClasses();\n\n // Update size\n swiper.updateSize();\n\n // Update slides\n swiper.updateSlides();\n if (swiper.params.watchOverflow) {\n swiper.checkOverflow();\n }\n\n // Set Grab Cursor\n if (swiper.params.grabCursor && swiper.enabled) {\n swiper.setGrabCursor();\n }\n\n // Slide To Initial Slide\n if (swiper.params.loop && swiper.virtual && swiper.params.virtual.enabled) {\n swiper.slideTo(swiper.params.initialSlide + swiper.virtual.slidesBefore, 0, swiper.params.runCallbacksOnInit, false, true);\n } else {\n swiper.slideTo(swiper.params.initialSlide, 0, swiper.params.runCallbacksOnInit, false, true);\n }\n\n // Create loop\n if (swiper.params.loop) {\n swiper.loopCreate();\n }\n\n // Attach events\n swiper.attachEvents();\n const lazyElements = [...swiper.el.querySelectorAll('[loading=\"lazy\"]')];\n if (swiper.isElement) {\n lazyElements.push(...swiper.hostEl.querySelectorAll('[loading=\"lazy\"]'));\n }\n lazyElements.forEach(imageEl => {\n if (imageEl.complete) {\n processLazyPreloader(swiper, imageEl);\n } else {\n imageEl.addEventListener('load', e => {\n processLazyPreloader(swiper, e.target);\n });\n }\n });\n preload(swiper);\n\n // Init Flag\n swiper.initialized = true;\n preload(swiper);\n\n // Emit\n swiper.emit('init');\n swiper.emit('afterInit');\n return swiper;\n }\n destroy(deleteInstance, cleanStyles) {\n if (deleteInstance === void 0) {\n deleteInstance = true;\n }\n if (cleanStyles === void 0) {\n cleanStyles = true;\n }\n const swiper = this;\n const {\n params,\n el,\n wrapperEl,\n slides\n } = swiper;\n if (typeof swiper.params === 'undefined' || swiper.destroyed) {\n return null;\n }\n swiper.emit('beforeDestroy');\n\n // Init Flag\n swiper.initialized = false;\n\n // Detach events\n swiper.detachEvents();\n\n // Destroy loop\n if (params.loop) {\n swiper.loopDestroy();\n }\n\n // Cleanup styles\n if (cleanStyles) {\n swiper.removeClasses();\n el.removeAttribute('style');\n wrapperEl.removeAttribute('style');\n if (slides && slides.length) {\n slides.forEach(slideEl => {\n slideEl.classList.remove(params.slideVisibleClass, params.slideActiveClass, params.slideNextClass, params.slidePrevClass);\n slideEl.removeAttribute('style');\n slideEl.removeAttribute('data-swiper-slide-index');\n });\n }\n }\n swiper.emit('destroy');\n\n // Detach emitter events\n Object.keys(swiper.eventsListeners).forEach(eventName => {\n swiper.off(eventName);\n });\n if (deleteInstance !== false) {\n swiper.el.swiper = null;\n deleteProps(swiper);\n }\n swiper.destroyed = true;\n return null;\n }\n static extendDefaults(newDefaults) {\n extend(extendedDefaults, newDefaults);\n }\n static get extendedDefaults() {\n return extendedDefaults;\n }\n static get defaults() {\n return defaults;\n }\n static installModule(mod) {\n if (!Swiper.prototype.__modules__) Swiper.prototype.__modules__ = [];\n const modules = Swiper.prototype.__modules__;\n if (typeof mod === 'function' && modules.indexOf(mod) < 0) {\n modules.push(mod);\n }\n }\n static use(module) {\n if (Array.isArray(module)) {\n module.forEach(m => Swiper.installModule(m));\n return Swiper;\n }\n Swiper.installModule(module);\n return Swiper;\n }\n}\nObject.keys(prototypes).forEach(prototypeGroup => {\n Object.keys(prototypes[prototypeGroup]).forEach(protoMethod => {\n Swiper.prototype[protoMethod] = prototypes[prototypeGroup][protoMethod];\n });\n});\nSwiper.use([Resize, Observer]);\n\nexport { Swiper as S, defaults as d };\n","/**\n * SSR Window 4.0.2\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2021, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: December 13, 2021\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target, src) {\n if (target === void 0) {\n target = {};\n }\n if (src === void 0) {\n src = {};\n }\n Object.keys(src).forEach(key => {\n if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\nconst ssrDocument = {\n body: {},\n addEventListener() {},\n removeEventListener() {},\n activeElement: {\n blur() {},\n nodeName: ''\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() {}\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() {},\n getElementsByTagName() {\n return [];\n }\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n }\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: ''\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n },\n history: {\n replaceState() {},\n pushState() {},\n go() {},\n back() {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() {},\n removeEventListener() {},\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n }\n };\n },\n Image() {},\n Date() {},\n screen: {},\n setTimeout() {},\n clearTimeout() {},\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n }\n};\nfunction getWindow() {\n const win = typeof window !== 'undefined' ? window : {};\n extend(win, ssrWindow);\n return win;\n}\n\nexport { getWindow as a, getDocument as g };\n","import { a as getWindow, g as getDocument } from './ssr-window.esm.mjs';\n\nfunction deleteProps(obj) {\n const object = obj;\n Object.keys(object).forEach(key => {\n try {\n object[key] = null;\n } catch (e) {\n // no getter for object\n }\n try {\n delete object[key];\n } catch (e) {\n // something got wrong\n }\n });\n}\nfunction nextTick(callback, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return setTimeout(callback, delay);\n}\nfunction now() {\n return Date.now();\n}\nfunction getComputedStyle(el) {\n const window = getWindow();\n let style;\n if (window.getComputedStyle) {\n style = window.getComputedStyle(el, null);\n }\n if (!style && el.currentStyle) {\n style = el.currentStyle;\n }\n if (!style) {\n style = el.style;\n }\n return style;\n}\nfunction getTranslate(el, axis) {\n if (axis === void 0) {\n axis = 'x';\n }\n const window = getWindow();\n let matrix;\n let curTransform;\n let transformMatrix;\n const curStyle = getComputedStyle(el);\n if (window.WebKitCSSMatrix) {\n curTransform = curStyle.transform || curStyle.webkitTransform;\n if (curTransform.split(',').length > 6) {\n curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');\n }\n // Some old versions of Webkit choke when 'none' is passed; pass\n // empty string instead in this case\n transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);\n } else {\n transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');\n matrix = transformMatrix.toString().split(',');\n }\n if (axis === 'x') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[4]);\n }\n if (axis === 'y') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[5]);\n }\n return curTransform || 0;\n}\nfunction isObject(o) {\n return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';\n}\nfunction isNode(node) {\n // eslint-disable-next-line\n if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {\n return node instanceof HTMLElement;\n }\n return node && (node.nodeType === 1 || node.nodeType === 11);\n}\nfunction extend() {\n const to = Object(arguments.length <= 0 ? undefined : arguments[0]);\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n for (let i = 1; i < arguments.length; i += 1) {\n const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];\n if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {\n const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);\n for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {\n const nextKey = keysArray[nextIndex];\n const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n to[nextKey] = {};\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n }\n return to;\n}\nfunction setCSSProperty(el, varName, varValue) {\n el.style.setProperty(varName, varValue);\n}\nfunction animateCSSModeScroll(_ref) {\n let {\n swiper,\n targetPosition,\n side\n } = _ref;\n const window = getWindow();\n const startPosition = -swiper.translate;\n let startTime = null;\n let time;\n const duration = swiper.params.speed;\n swiper.wrapperEl.style.scrollSnapType = 'none';\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n const dir = targetPosition > startPosition ? 'next' : 'prev';\n const isOutOfBound = (current, target) => {\n return dir === 'next' && current >= target || dir === 'prev' && current <= target;\n };\n const animate = () => {\n time = new Date().getTime();\n if (startTime === null) {\n startTime = time;\n }\n const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);\n const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;\n let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);\n if (isOutOfBound(currentPosition, targetPosition)) {\n currentPosition = targetPosition;\n }\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n if (isOutOfBound(currentPosition, targetPosition)) {\n swiper.wrapperEl.style.overflow = 'hidden';\n swiper.wrapperEl.style.scrollSnapType = '';\n setTimeout(() => {\n swiper.wrapperEl.style.overflow = '';\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n });\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n return;\n }\n swiper.cssModeFrameID = window.requestAnimationFrame(animate);\n };\n animate();\n}\nfunction getSlideTransformEl(slideEl) {\n return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform') || slideEl;\n}\nfunction elementChildren(element, selector) {\n if (selector === void 0) {\n selector = '';\n }\n return [...element.children].filter(el => el.matches(selector));\n}\nfunction createElement(tag, classes) {\n if (classes === void 0) {\n classes = [];\n }\n const el = document.createElement(tag);\n el.classList.add(...(Array.isArray(classes) ? classes : [classes]));\n return el;\n}\nfunction elementOffset(el) {\n const window = getWindow();\n const document = getDocument();\n const box = el.getBoundingClientRect();\n const body = document.body;\n const clientTop = el.clientTop || body.clientTop || 0;\n const clientLeft = el.clientLeft || body.clientLeft || 0;\n const scrollTop = el === window ? window.scrollY : el.scrollTop;\n const scrollLeft = el === window ? window.scrollX : el.scrollLeft;\n return {\n top: box.top + scrollTop - clientTop,\n left: box.left + scrollLeft - clientLeft\n };\n}\nfunction elementPrevAll(el, selector) {\n const prevEls = [];\n while (el.previousElementSibling) {\n const prev = el.previousElementSibling; // eslint-disable-line\n if (selector) {\n if (prev.matches(selector)) prevEls.push(prev);\n } else prevEls.push(prev);\n el = prev;\n }\n return prevEls;\n}\nfunction elementNextAll(el, selector) {\n const nextEls = [];\n while (el.nextElementSibling) {\n const next = el.nextElementSibling; // eslint-disable-line\n if (selector) {\n if (next.matches(selector)) nextEls.push(next);\n } else nextEls.push(next);\n el = next;\n }\n return nextEls;\n}\nfunction elementStyle(el, prop) {\n const window = getWindow();\n return window.getComputedStyle(el, null).getPropertyValue(prop);\n}\nfunction elementIndex(el) {\n let child = el;\n let i;\n if (child) {\n i = 0;\n // eslint-disable-next-line\n while ((child = child.previousSibling) !== null) {\n if (child.nodeType === 1) i += 1;\n }\n return i;\n }\n return undefined;\n}\nfunction elementParents(el, selector) {\n const parents = []; // eslint-disable-line\n let parent = el.parentElement; // eslint-disable-line\n while (parent) {\n if (selector) {\n if (parent.matches(selector)) parents.push(parent);\n } else {\n parents.push(parent);\n }\n parent = parent.parentElement;\n }\n return parents;\n}\nfunction elementTransitionEnd(el, callback) {\n function fireCallBack(e) {\n if (e.target !== el) return;\n callback.call(el, e);\n el.removeEventListener('transitionend', fireCallBack);\n }\n if (callback) {\n el.addEventListener('transitionend', fireCallBack);\n }\n}\nfunction elementOuterSize(el, size, includeMargins) {\n const window = getWindow();\n if (includeMargins) {\n return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));\n }\n return el.offsetWidth;\n}\n\nexport { elementParents as a, elementOffset as b, createElement as c, now as d, elementChildren as e, elementOuterSize as f, elementIndex as g, getTranslate as h, elementTransitionEnd as i, isObject as j, getSlideTransformEl as k, elementStyle as l, elementNextAll as m, nextTick as n, elementPrevAll as o, animateCSSModeScroll as p, extend as q, deleteProps as r, setCSSProperty as s };\n","export {default as Virtual} from './virtual.mjs';\nexport {default as Keyboard} from './keyboard.mjs';\nexport {default as Mousewheel} from './mousewheel.mjs';\nexport {default as Navigation} from './navigation.mjs';\nexport {default as Pagination} from './pagination.mjs';\nexport {default as Scrollbar} from './scrollbar.mjs';\nexport {default as Parallax} from './parallax.mjs';\nexport {default as Zoom} from './zoom.mjs';\nexport {default as Controller} from './controller.mjs';\nexport {default as A11y} from './a11y.mjs';\nexport {default as History} from './history.mjs';\nexport {default as HashNavigation} from './hash-navigation.mjs';\nexport {default as Autoplay} from './autoplay.mjs';\nexport {default as Thumbs} from './thumbs.mjs';\nexport {default as FreeMode} from './free-mode.mjs';\nexport {default as Grid} from './grid.mjs';\nexport {default as Manipulation} from './manipulation.mjs';\nexport {default as EffectFade} from './effect-fade.mjs';\nexport {default as EffectCube} from './effect-cube.mjs';\nexport {default as EffectFlip} from './effect-flip.mjs';\nexport {default as EffectCoverflow} from './effect-coverflow.mjs';\nexport {default as EffectCreative} from './effect-creative.mjs';\nexport {default as EffectCards} from './effect-cards.mjs';","import { g as getDocument } from '../shared/ssr-window.esm.mjs';\nimport { s as setCSSProperty, e as elementChildren, c as createElement } from '../shared/utils.mjs';\n\nfunction Virtual(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit\n } = _ref;\n extendParams({\n virtual: {\n enabled: false,\n slides: [],\n cache: true,\n renderSlide: null,\n renderExternal: null,\n renderExternalUpdate: true,\n addSlidesBefore: 0,\n addSlidesAfter: 0\n }\n });\n let cssModeTimeout;\n const document = getDocument();\n swiper.virtual = {\n cache: {},\n from: undefined,\n to: undefined,\n slides: [],\n offset: 0,\n slidesGrid: []\n };\n const tempDOM = document.createElement('div');\n function renderSlide(slide, index) {\n const params = swiper.params.virtual;\n if (params.cache && swiper.virtual.cache[index]) {\n return swiper.virtual.cache[index];\n }\n // eslint-disable-next-line\n let slideEl;\n if (params.renderSlide) {\n slideEl = params.renderSlide.call(swiper, slide, index);\n if (typeof slideEl === 'string') {\n tempDOM.innerHTML = slideEl;\n slideEl = tempDOM.children[0];\n }\n } else if (swiper.isElement) {\n slideEl = createElement('swiper-slide');\n } else {\n slideEl = createElement('div', swiper.params.slideClass);\n }\n slideEl.setAttribute('data-swiper-slide-index', index);\n if (!params.renderSlide) {\n slideEl.innerHTML = slide;\n }\n if (params.cache) {\n swiper.virtual.cache[index] = slideEl;\n }\n return slideEl;\n }\n function update(force) {\n const {\n slidesPerView,\n slidesPerGroup,\n centeredSlides,\n loop: isLoop\n } = swiper.params;\n const {\n addSlidesBefore,\n addSlidesAfter\n } = swiper.params.virtual;\n const {\n from: previousFrom,\n to: previousTo,\n slides,\n slidesGrid: previousSlidesGrid,\n offset: previousOffset\n } = swiper.virtual;\n if (!swiper.params.cssMode) {\n swiper.updateActiveIndex();\n }\n const activeIndex = swiper.activeIndex || 0;\n let offsetProp;\n if (swiper.rtlTranslate) offsetProp = 'right';else offsetProp = swiper.isHorizontal() ? 'left' : 'top';\n let slidesAfter;\n let slidesBefore;\n if (centeredSlides) {\n slidesAfter = Math.floor(slidesPerView / 2) + slidesPerGroup + addSlidesAfter;\n slidesBefore = Math.floor(slidesPerView / 2) + slidesPerGroup + addSlidesBefore;\n } else {\n slidesAfter = slidesPerView + (slidesPerGroup - 1) + addSlidesAfter;\n slidesBefore = (isLoop ? slidesPerView : slidesPerGroup) + addSlidesBefore;\n }\n let from = activeIndex - slidesBefore;\n let to = activeIndex + slidesAfter;\n if (!isLoop) {\n from = Math.max(from, 0);\n to = Math.min(to, slides.length - 1);\n }\n let offset = (swiper.slidesGrid[from] || 0) - (swiper.slidesGrid[0] || 0);\n if (isLoop && activeIndex >= slidesBefore) {\n from -= slidesBefore;\n if (!centeredSlides) offset += swiper.slidesGrid[0];\n } else if (isLoop && activeIndex < slidesBefore) {\n from = -slidesBefore;\n if (centeredSlides) offset += swiper.slidesGrid[0];\n }\n Object.assign(swiper.virtual, {\n from,\n to,\n offset,\n slidesGrid: swiper.slidesGrid,\n slidesBefore,\n slidesAfter\n });\n function onRendered() {\n swiper.updateSlides();\n swiper.updateProgress();\n swiper.updateSlidesClasses();\n emit('virtualUpdate');\n }\n if (previousFrom === from && previousTo === to && !force) {\n if (swiper.slidesGrid !== previousSlidesGrid && offset !== previousOffset) {\n swiper.slides.forEach(slideEl => {\n slideEl.style[offsetProp] = `${offset - Math.abs(swiper.cssOverflowAdjustment())}px`;\n });\n }\n swiper.updateProgress();\n emit('virtualUpdate');\n return;\n }\n if (swiper.params.virtual.renderExternal) {\n swiper.params.virtual.renderExternal.call(swiper, {\n offset,\n from,\n to,\n slides: function getSlides() {\n const slidesToRender = [];\n for (let i = from; i <= to; i += 1) {\n slidesToRender.push(slides[i]);\n }\n return slidesToRender;\n }()\n });\n if (swiper.params.virtual.renderExternalUpdate) {\n onRendered();\n } else {\n emit('virtualUpdate');\n }\n return;\n }\n const prependIndexes = [];\n const appendIndexes = [];\n const getSlideIndex = index => {\n let slideIndex = index;\n if (index < 0) {\n slideIndex = slides.length + index;\n } else if (slideIndex >= slides.length) {\n // eslint-disable-next-line\n slideIndex = slideIndex - slides.length;\n }\n return slideIndex;\n };\n if (force) {\n swiper.slides.filter(el => el.matches(`.${swiper.params.slideClass}, swiper-slide`)).forEach(slideEl => {\n slideEl.remove();\n });\n } else {\n for (let i = previousFrom; i <= previousTo; i += 1) {\n if (i < from || i > to) {\n const slideIndex = getSlideIndex(i);\n swiper.slides.filter(el => el.matches(`.${swiper.params.slideClass}[data-swiper-slide-index=\"${slideIndex}\"], swiper-slide[data-swiper-slide-index=\"${slideIndex}\"]`)).forEach(slideEl => {\n slideEl.remove();\n });\n }\n }\n }\n const loopFrom = isLoop ? -slides.length : 0;\n const loopTo = isLoop ? slides.length * 2 : slides.length;\n for (let i = loopFrom; i < loopTo; i += 1) {\n if (i >= from && i <= to) {\n const slideIndex = getSlideIndex(i);\n if (typeof previousTo === 'undefined' || force) {\n appendIndexes.push(slideIndex);\n } else {\n if (i > previousTo) appendIndexes.push(slideIndex);\n if (i < previousFrom) prependIndexes.push(slideIndex);\n }\n }\n }\n appendIndexes.forEach(index => {\n swiper.slidesEl.append(renderSlide(slides[index], index));\n });\n if (isLoop) {\n for (let i = prependIndexes.length - 1; i >= 0; i -= 1) {\n const index = prependIndexes[i];\n swiper.slidesEl.prepend(renderSlide(slides[index], index));\n }\n } else {\n prependIndexes.sort((a, b) => b - a);\n prependIndexes.forEach(index => {\n swiper.slidesEl.prepend(renderSlide(slides[index], index));\n });\n }\n elementChildren(swiper.slidesEl, '.swiper-slide, swiper-slide').forEach(slideEl => {\n slideEl.style[offsetProp] = `${offset - Math.abs(swiper.cssOverflowAdjustment())}px`;\n });\n onRendered();\n }\n function appendSlide(slides) {\n if (typeof slides === 'object' && 'length' in slides) {\n for (let i = 0; i < slides.length; i += 1) {\n if (slides[i]) swiper.virtual.slides.push(slides[i]);\n }\n } else {\n swiper.virtual.slides.push(slides);\n }\n update(true);\n }\n function prependSlide(slides) {\n const activeIndex = swiper.activeIndex;\n let newActiveIndex = activeIndex + 1;\n let numberOfNewSlides = 1;\n if (Array.isArray(slides)) {\n for (let i = 0; i < slides.length; i += 1) {\n if (slides[i]) swiper.virtual.slides.unshift(slides[i]);\n }\n newActiveIndex = activeIndex + slides.length;\n numberOfNewSlides = slides.length;\n } else {\n swiper.virtual.slides.unshift(slides);\n }\n if (swiper.params.virtual.cache) {\n const cache = swiper.virtual.cache;\n const newCache = {};\n Object.keys(cache).forEach(cachedIndex => {\n const cachedEl = cache[cachedIndex];\n const cachedElIndex = cachedEl.getAttribute('data-swiper-slide-index');\n if (cachedElIndex) {\n cachedEl.setAttribute('data-swiper-slide-index', parseInt(cachedElIndex, 10) + numberOfNewSlides);\n }\n newCache[parseInt(cachedIndex, 10) + numberOfNewSlides] = cachedEl;\n });\n swiper.virtual.cache = newCache;\n }\n update(true);\n swiper.slideTo(newActiveIndex, 0);\n }\n function removeSlide(slidesIndexes) {\n if (typeof slidesIndexes === 'undefined' || slidesIndexes === null) return;\n let activeIndex = swiper.activeIndex;\n if (Array.isArray(slidesIndexes)) {\n for (let i = slidesIndexes.length - 1; i >= 0; i -= 1) {\n if (swiper.params.virtual.cache) {\n delete swiper.virtual.cache[slidesIndexes[i]];\n // shift cache indexes\n Object.keys(swiper.virtual.cache).forEach(key => {\n if (key > slidesIndexes) {\n swiper.virtual.cache[key - 1] = swiper.virtual.cache[key];\n swiper.virtual.cache[key - 1].setAttribute('data-swiper-slide-index', key - 1);\n delete swiper.virtual.cache[key];\n }\n });\n }\n swiper.virtual.slides.splice(slidesIndexes[i], 1);\n if (slidesIndexes[i] < activeIndex) activeIndex -= 1;\n activeIndex = Math.max(activeIndex, 0);\n }\n } else {\n if (swiper.params.virtual.cache) {\n delete swiper.virtual.cache[slidesIndexes];\n // shift cache indexes\n Object.keys(swiper.virtual.cache).forEach(key => {\n if (key > slidesIndexes) {\n swiper.virtual.cache[key - 1] = swiper.virtual.cache[key];\n swiper.virtual.cache[key - 1].setAttribute('data-swiper-slide-index', key - 1);\n delete swiper.virtual.cache[key];\n }\n });\n }\n swiper.virtual.slides.splice(slidesIndexes, 1);\n if (slidesIndexes < activeIndex) activeIndex -= 1;\n activeIndex = Math.max(activeIndex, 0);\n }\n update(true);\n swiper.slideTo(activeIndex, 0);\n }\n function removeAllSlides() {\n swiper.virtual.slides = [];\n if (swiper.params.virtual.cache) {\n swiper.virtual.cache = {};\n }\n update(true);\n swiper.slideTo(0, 0);\n }\n on('beforeInit', () => {\n if (!swiper.params.virtual.enabled) return;\n let domSlidesAssigned;\n if (typeof swiper.passedParams.virtual.slides === 'undefined') {\n const slides = [...swiper.slidesEl.children].filter(el => el.matches(`.${swiper.params.slideClass}, swiper-slide`));\n if (slides && slides.length) {\n swiper.virtual.slides = [...slides];\n domSlidesAssigned = true;\n slides.forEach((slideEl, slideIndex) => {\n slideEl.setAttribute('data-swiper-slide-index', slideIndex);\n swiper.virtual.cache[slideIndex] = slideEl;\n slideEl.remove();\n });\n }\n }\n if (!domSlidesAssigned) {\n swiper.virtual.slides = swiper.params.virtual.slides;\n }\n swiper.classNames.push(`${swiper.params.containerModifierClass}virtual`);\n swiper.params.watchSlidesProgress = true;\n swiper.originalParams.watchSlidesProgress = true;\n update();\n });\n on('setTranslate', () => {\n if (!swiper.params.virtual.enabled) return;\n if (swiper.params.cssMode && !swiper._immediateVirtual) {\n clearTimeout(cssModeTimeout);\n cssModeTimeout = setTimeout(() => {\n update();\n }, 100);\n } else {\n update();\n }\n });\n on('init update resize', () => {\n if (!swiper.params.virtual.enabled) return;\n if (swiper.params.cssMode) {\n setCSSProperty(swiper.wrapperEl, '--swiper-virtual-size', `${swiper.virtualSize}px`);\n }\n });\n Object.assign(swiper.virtual, {\n appendSlide,\n prependSlide,\n removeSlide,\n removeAllSlides,\n update\n });\n}\n\nexport { Virtual as default };\n","import { g as getDocument, a as getWindow } from '../shared/ssr-window.esm.mjs';\nimport { a as elementParents, b as elementOffset } from '../shared/utils.mjs';\n\n/* eslint-disable consistent-return */\nfunction Keyboard(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit\n } = _ref;\n const document = getDocument();\n const window = getWindow();\n swiper.keyboard = {\n enabled: false\n };\n extendParams({\n keyboard: {\n enabled: false,\n onlyInViewport: true,\n pageUpDown: true\n }\n });\n function handle(event) {\n if (!swiper.enabled) return;\n const {\n rtlTranslate: rtl\n } = swiper;\n let e = event;\n if (e.originalEvent) e = e.originalEvent; // jquery fix\n const kc = e.keyCode || e.charCode;\n const pageUpDown = swiper.params.keyboard.pageUpDown;\n const isPageUp = pageUpDown && kc === 33;\n const isPageDown = pageUpDown && kc === 34;\n const isArrowLeft = kc === 37;\n const isArrowRight = kc === 39;\n const isArrowUp = kc === 38;\n const isArrowDown = kc === 40;\n // Directions locks\n if (!swiper.allowSlideNext && (swiper.isHorizontal() && isArrowRight || swiper.isVertical() && isArrowDown || isPageDown)) {\n return false;\n }\n if (!swiper.allowSlidePrev && (swiper.isHorizontal() && isArrowLeft || swiper.isVertical() && isArrowUp || isPageUp)) {\n return false;\n }\n if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) {\n return undefined;\n }\n if (document.activeElement && document.activeElement.nodeName && (document.activeElement.nodeName.toLowerCase() === 'input' || document.activeElement.nodeName.toLowerCase() === 'textarea')) {\n return undefined;\n }\n if (swiper.params.keyboard.onlyInViewport && (isPageUp || isPageDown || isArrowLeft || isArrowRight || isArrowUp || isArrowDown)) {\n let inView = false;\n // Check that swiper should be inside of visible area of window\n if (elementParents(swiper.el, `.${swiper.params.slideClass}, swiper-slide`).length > 0 && elementParents(swiper.el, `.${swiper.params.slideActiveClass}`).length === 0) {\n return undefined;\n }\n const el = swiper.el;\n const swiperWidth = el.clientWidth;\n const swiperHeight = el.clientHeight;\n const windowWidth = window.innerWidth;\n const windowHeight = window.innerHeight;\n const swiperOffset = elementOffset(el);\n if (rtl) swiperOffset.left -= el.scrollLeft;\n const swiperCoord = [[swiperOffset.left, swiperOffset.top], [swiperOffset.left + swiperWidth, swiperOffset.top], [swiperOffset.left, swiperOffset.top + swiperHeight], [swiperOffset.left + swiperWidth, swiperOffset.top + swiperHeight]];\n for (let i = 0; i < swiperCoord.length; i += 1) {\n const point = swiperCoord[i];\n if (point[0] >= 0 && point[0] <= windowWidth && point[1] >= 0 && point[1] <= windowHeight) {\n if (point[0] === 0 && point[1] === 0) continue; // eslint-disable-line\n inView = true;\n }\n }\n if (!inView) return undefined;\n }\n if (swiper.isHorizontal()) {\n if (isPageUp || isPageDown || isArrowLeft || isArrowRight) {\n if (e.preventDefault) e.preventDefault();else e.returnValue = false;\n }\n if ((isPageDown || isArrowRight) && !rtl || (isPageUp || isArrowLeft) && rtl) swiper.slideNext();\n if ((isPageUp || isArrowLeft) && !rtl || (isPageDown || isArrowRight) && rtl) swiper.slidePrev();\n } else {\n if (isPageUp || isPageDown || isArrowUp || isArrowDown) {\n if (e.preventDefault) e.preventDefault();else e.returnValue = false;\n }\n if (isPageDown || isArrowDown) swiper.slideNext();\n if (isPageUp || isArrowUp) swiper.slidePrev();\n }\n emit('keyPress', kc);\n return undefined;\n }\n function enable() {\n if (swiper.keyboard.enabled) return;\n document.addEventListener('keydown', handle);\n swiper.keyboard.enabled = true;\n }\n function disable() {\n if (!swiper.keyboard.enabled) return;\n document.removeEventListener('keydown', handle);\n swiper.keyboard.enabled = false;\n }\n on('init', () => {\n if (swiper.params.keyboard.enabled) {\n enable();\n }\n });\n on('destroy', () => {\n if (swiper.keyboard.enabled) {\n disable();\n }\n });\n Object.assign(swiper.keyboard, {\n enable,\n disable\n });\n}\n\nexport { Keyboard as default };\n","import { a as getWindow } from '../shared/ssr-window.esm.mjs';\nimport { n as nextTick, d as now } from '../shared/utils.mjs';\n\n/* eslint-disable consistent-return */\nfunction Mousewheel(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit\n } = _ref;\n const window = getWindow();\n extendParams({\n mousewheel: {\n enabled: false,\n releaseOnEdges: false,\n invert: false,\n forceToAxis: false,\n sensitivity: 1,\n eventsTarget: 'container',\n thresholdDelta: null,\n thresholdTime: null,\n noMousewheelClass: 'swiper-no-mousewheel'\n }\n });\n swiper.mousewheel = {\n enabled: false\n };\n let timeout;\n let lastScrollTime = now();\n let lastEventBeforeSnap;\n const recentWheelEvents = [];\n function normalize(e) {\n // Reasonable defaults\n const PIXEL_STEP = 10;\n const LINE_HEIGHT = 40;\n const PAGE_HEIGHT = 800;\n let sX = 0;\n let sY = 0; // spinX, spinY\n let pX = 0;\n let pY = 0; // pixelX, pixelY\n\n // Legacy\n if ('detail' in e) {\n sY = e.detail;\n }\n if ('wheelDelta' in e) {\n sY = -e.wheelDelta / 120;\n }\n if ('wheelDeltaY' in e) {\n sY = -e.wheelDeltaY / 120;\n }\n if ('wheelDeltaX' in e) {\n sX = -e.wheelDeltaX / 120;\n }\n\n // side scrolling on FF with DOMMouseScroll\n if ('axis' in e && e.axis === e.HORIZONTAL_AXIS) {\n sX = sY;\n sY = 0;\n }\n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n if ('deltaY' in e) {\n pY = e.deltaY;\n }\n if ('deltaX' in e) {\n pX = e.deltaX;\n }\n if (e.shiftKey && !pX) {\n // if user scrolls with shift he wants horizontal scroll\n pX = pY;\n pY = 0;\n }\n if ((pX || pY) && e.deltaMode) {\n if (e.deltaMode === 1) {\n // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else {\n // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n\n // Fall-back if spin cannot be determined\n if (pX && !sX) {\n sX = pX < 1 ? -1 : 1;\n }\n if (pY && !sY) {\n sY = pY < 1 ? -1 : 1;\n }\n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }\n function handleMouseEnter() {\n if (!swiper.enabled) return;\n swiper.mouseEntered = true;\n }\n function handleMouseLeave() {\n if (!swiper.enabled) return;\n swiper.mouseEntered = false;\n }\n function animateSlider(newEvent) {\n if (swiper.params.mousewheel.thresholdDelta && newEvent.delta < swiper.params.mousewheel.thresholdDelta) {\n // Prevent if delta of wheel scroll delta is below configured threshold\n return false;\n }\n if (swiper.params.mousewheel.thresholdTime && now() - lastScrollTime < swiper.params.mousewheel.thresholdTime) {\n // Prevent if time between scrolls is below configured threshold\n return false;\n }\n\n // If the movement is NOT big enough and\n // if the last time the user scrolled was too close to the current one (avoid continuously triggering the slider):\n // Don't go any further (avoid insignificant scroll movement).\n if (newEvent.delta >= 6 && now() - lastScrollTime < 60) {\n // Return false as a default\n return true;\n }\n // If user is scrolling towards the end:\n // If the slider hasn't hit the latest slide or\n // if the slider is a loop and\n // if the slider isn't moving right now:\n // Go to next slide and\n // emit a scroll event.\n // Else (the user is scrolling towards the beginning) and\n // if the slider hasn't hit the first slide or\n // if the slider is a loop and\n // if the slider isn't moving right now:\n // Go to prev slide and\n // emit a scroll event.\n if (newEvent.direction < 0) {\n if ((!swiper.isEnd || swiper.params.loop) && !swiper.animating) {\n swiper.slideNext();\n emit('scroll', newEvent.raw);\n }\n } else if ((!swiper.isBeginning || swiper.params.loop) && !swiper.animating) {\n swiper.slidePrev();\n emit('scroll', newEvent.raw);\n }\n // If you got here is because an animation has been triggered so store the current time\n lastScrollTime = new window.Date().getTime();\n // Return false as a default\n return false;\n }\n function releaseScroll(newEvent) {\n const params = swiper.params.mousewheel;\n if (newEvent.direction < 0) {\n if (swiper.isEnd && !swiper.params.loop && params.releaseOnEdges) {\n // Return true to animate scroll on edges\n return true;\n }\n } else if (swiper.isBeginning && !swiper.params.loop && params.releaseOnEdges) {\n // Return true to animate scroll on edges\n return true;\n }\n return false;\n }\n function handle(event) {\n let e = event;\n let disableParentSwiper = true;\n if (!swiper.enabled) return;\n\n // Ignore event if the target or its parents have the swiper-no-mousewheel class\n if (event.target.closest(`.${swiper.params.mousewheel.noMousewheelClass}`)) return;\n const params = swiper.params.mousewheel;\n if (swiper.params.cssMode) {\n e.preventDefault();\n }\n let targetEl = swiper.el;\n if (swiper.params.mousewheel.eventsTarget !== 'container') {\n targetEl = document.querySelector(swiper.params.mousewheel.eventsTarget);\n }\n const targetElContainsTarget = targetEl && targetEl.contains(e.target);\n if (!swiper.mouseEntered && !targetElContainsTarget && !params.releaseOnEdges) return true;\n if (e.originalEvent) e = e.originalEvent; // jquery fix\n let delta = 0;\n const rtlFactor = swiper.rtlTranslate ? -1 : 1;\n const data = normalize(e);\n if (params.forceToAxis) {\n if (swiper.isHorizontal()) {\n if (Math.abs(data.pixelX) > Math.abs(data.pixelY)) delta = -data.pixelX * rtlFactor;else return true;\n } else if (Math.abs(data.pixelY) > Math.abs(data.pixelX)) delta = -data.pixelY;else return true;\n } else {\n delta = Math.abs(data.pixelX) > Math.abs(data.pixelY) ? -data.pixelX * rtlFactor : -data.pixelY;\n }\n if (delta === 0) return true;\n if (params.invert) delta = -delta;\n\n // Get the scroll positions\n let positions = swiper.getTranslate() + delta * params.sensitivity;\n if (positions >= swiper.minTranslate()) positions = swiper.minTranslate();\n if (positions <= swiper.maxTranslate()) positions = swiper.maxTranslate();\n\n // When loop is true:\n // the disableParentSwiper will be true.\n // When loop is false:\n // if the scroll positions is not on edge,\n // then the disableParentSwiper will be true.\n // if the scroll on edge positions,\n // then the disableParentSwiper will be false.\n disableParentSwiper = swiper.params.loop ? true : !(positions === swiper.minTranslate() || positions === swiper.maxTranslate());\n if (disableParentSwiper && swiper.params.nested) e.stopPropagation();\n if (!swiper.params.freeMode || !swiper.params.freeMode.enabled) {\n // Register the new event in a variable which stores the relevant data\n const newEvent = {\n time: now(),\n delta: Math.abs(delta),\n direction: Math.sign(delta),\n raw: event\n };\n\n // Keep the most recent events\n if (recentWheelEvents.length >= 2) {\n recentWheelEvents.shift(); // only store the last N events\n }\n\n const prevEvent = recentWheelEvents.length ? recentWheelEvents[recentWheelEvents.length - 1] : undefined;\n recentWheelEvents.push(newEvent);\n\n // If there is at least one previous recorded event:\n // If direction has changed or\n // if the scroll is quicker than the previous one:\n // Animate the slider.\n // Else (this is the first time the wheel is moved):\n // Animate the slider.\n if (prevEvent) {\n if (newEvent.direction !== prevEvent.direction || newEvent.delta > prevEvent.delta || newEvent.time > prevEvent.time + 150) {\n animateSlider(newEvent);\n }\n } else {\n animateSlider(newEvent);\n }\n\n // If it's time to release the scroll:\n // Return now so you don't hit the preventDefault.\n if (releaseScroll(newEvent)) {\n return true;\n }\n } else {\n // Freemode or scrollContainer:\n\n // If we recently snapped after a momentum scroll, then ignore wheel events\n // to give time for the deceleration to finish. Stop ignoring after 500 msecs\n // or if it's a new scroll (larger delta or inverse sign as last event before\n // an end-of-momentum snap).\n const newEvent = {\n time: now(),\n delta: Math.abs(delta),\n direction: Math.sign(delta)\n };\n const ignoreWheelEvents = lastEventBeforeSnap && newEvent.time < lastEventBeforeSnap.time + 500 && newEvent.delta <= lastEventBeforeSnap.delta && newEvent.direction === lastEventBeforeSnap.direction;\n if (!ignoreWheelEvents) {\n lastEventBeforeSnap = undefined;\n let position = swiper.getTranslate() + delta * params.sensitivity;\n const wasBeginning = swiper.isBeginning;\n const wasEnd = swiper.isEnd;\n if (position >= swiper.minTranslate()) position = swiper.minTranslate();\n if (position <= swiper.maxTranslate()) position = swiper.maxTranslate();\n swiper.setTransition(0);\n swiper.setTranslate(position);\n swiper.updateProgress();\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n if (!wasBeginning && swiper.isBeginning || !wasEnd && swiper.isEnd) {\n swiper.updateSlidesClasses();\n }\n if (swiper.params.loop) {\n swiper.loopFix({\n direction: newEvent.direction < 0 ? 'next' : 'prev',\n byMousewheel: true\n });\n }\n if (swiper.params.freeMode.sticky) {\n // When wheel scrolling starts with sticky (aka snap) enabled, then detect\n // the end of a momentum scroll by storing recent (N=15?) wheel events.\n // 1. do all N events have decreasing or same (absolute value) delta?\n // 2. did all N events arrive in the last M (M=500?) msecs?\n // 3. does the earliest event have an (absolute value) delta that's\n // at least P (P=1?) larger than the most recent event's delta?\n // 4. does the latest event have a delta that's smaller than Q (Q=6?) pixels?\n // If 1-4 are \"yes\" then we're near the end of a momentum scroll deceleration.\n // Snap immediately and ignore remaining wheel events in this scroll.\n // See comment above for \"remaining wheel events in this scroll\" determination.\n // If 1-4 aren't satisfied, then wait to snap until 500ms after the last event.\n clearTimeout(timeout);\n timeout = undefined;\n if (recentWheelEvents.length >= 15) {\n recentWheelEvents.shift(); // only store the last N events\n }\n\n const prevEvent = recentWheelEvents.length ? recentWheelEvents[recentWheelEvents.length - 1] : undefined;\n const firstEvent = recentWheelEvents[0];\n recentWheelEvents.push(newEvent);\n if (prevEvent && (newEvent.delta > prevEvent.delta || newEvent.direction !== prevEvent.direction)) {\n // Increasing or reverse-sign delta means the user started scrolling again. Clear the wheel event log.\n recentWheelEvents.splice(0);\n } else if (recentWheelEvents.length >= 15 && newEvent.time - firstEvent.time < 500 && firstEvent.delta - newEvent.delta >= 1 && newEvent.delta <= 6) {\n // We're at the end of the deceleration of a momentum scroll, so there's no need\n // to wait for more events. Snap ASAP on the next tick.\n // Also, because there's some remaining momentum we'll bias the snap in the\n // direction of the ongoing scroll because it's better UX for the scroll to snap\n // in the same direction as the scroll instead of reversing to snap. Therefore,\n // if it's already scrolled more than 20% in the current direction, keep going.\n const snapToThreshold = delta > 0 ? 0.8 : 0.2;\n lastEventBeforeSnap = newEvent;\n recentWheelEvents.splice(0);\n timeout = nextTick(() => {\n swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);\n }, 0); // no delay; move on next tick\n }\n\n if (!timeout) {\n // if we get here, then we haven't detected the end of a momentum scroll, so\n // we'll consider a scroll \"complete\" when there haven't been any wheel events\n // for 500ms.\n timeout = nextTick(() => {\n const snapToThreshold = 0.5;\n lastEventBeforeSnap = newEvent;\n recentWheelEvents.splice(0);\n swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);\n }, 500);\n }\n }\n\n // Emit event\n if (!ignoreWheelEvents) emit('scroll', e);\n\n // Stop autoplay\n if (swiper.params.autoplay && swiper.params.autoplayDisableOnInteraction) swiper.autoplay.stop();\n // Return page scroll on edge positions\n if (params.releaseOnEdges && (position === swiper.minTranslate() || position === swiper.maxTranslate())) {\n return true;\n }\n }\n }\n if (e.preventDefault) e.preventDefault();else e.returnValue = false;\n return false;\n }\n function events(method) {\n let targetEl = swiper.el;\n if (swiper.params.mousewheel.eventsTarget !== 'container') {\n targetEl = document.querySelector(swiper.params.mousewheel.eventsTarget);\n }\n targetEl[method]('mouseenter', handleMouseEnter);\n targetEl[method]('mouseleave', handleMouseLeave);\n targetEl[method]('wheel', handle);\n }\n function enable() {\n if (swiper.params.cssMode) {\n swiper.wrapperEl.removeEventListener('wheel', handle);\n return true;\n }\n if (swiper.mousewheel.enabled) return false;\n events('addEventListener');\n swiper.mousewheel.enabled = true;\n return true;\n }\n function disable() {\n if (swiper.params.cssMode) {\n swiper.wrapperEl.addEventListener(event, handle);\n return true;\n }\n if (!swiper.mousewheel.enabled) return false;\n events('removeEventListener');\n swiper.mousewheel.enabled = false;\n return true;\n }\n on('init', () => {\n if (!swiper.params.mousewheel.enabled && swiper.params.cssMode) {\n disable();\n }\n if (swiper.params.mousewheel.enabled) enable();\n });\n on('destroy', () => {\n if (swiper.params.cssMode) {\n enable();\n }\n if (swiper.mousewheel.enabled) disable();\n });\n Object.assign(swiper.mousewheel, {\n enable,\n disable\n });\n}\n\nexport { Mousewheel as default };\n","import { c as createElementIfNotDefined } from '../shared/create-element-if-not-defined.mjs';\n\nfunction Navigation(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit\n } = _ref;\n extendParams({\n navigation: {\n nextEl: null,\n prevEl: null,\n hideOnClick: false,\n disabledClass: 'swiper-button-disabled',\n hiddenClass: 'swiper-button-hidden',\n lockClass: 'swiper-button-lock',\n navigationDisabledClass: 'swiper-navigation-disabled'\n }\n });\n swiper.navigation = {\n nextEl: null,\n prevEl: null\n };\n const makeElementsArray = el => (Array.isArray(el) ? el : [el]).filter(e => !!e);\n function getEl(el) {\n let res;\n if (el && typeof el === 'string' && swiper.isElement) {\n res = swiper.el.querySelector(el);\n if (res) return res;\n }\n if (el) {\n if (typeof el === 'string') res = [...document.querySelectorAll(el)];\n if (swiper.params.uniqueNavElements && typeof el === 'string' && res.length > 1 && swiper.el.querySelectorAll(el).length === 1) {\n res = swiper.el.querySelector(el);\n }\n }\n if (el && !res) return el;\n // if (Array.isArray(res) && res.length === 1) res = res[0];\n return res;\n }\n function toggleEl(el, disabled) {\n const params = swiper.params.navigation;\n el = makeElementsArray(el);\n el.forEach(subEl => {\n if (subEl) {\n subEl.classList[disabled ? 'add' : 'remove'](...params.disabledClass.split(' '));\n if (subEl.tagName === 'BUTTON') subEl.disabled = disabled;\n if (swiper.params.watchOverflow && swiper.enabled) {\n subEl.classList[swiper.isLocked ? 'add' : 'remove'](params.lockClass);\n }\n }\n });\n }\n function update() {\n // Update Navigation Buttons\n const {\n nextEl,\n prevEl\n } = swiper.navigation;\n if (swiper.params.loop) {\n toggleEl(prevEl, false);\n toggleEl(nextEl, false);\n return;\n }\n toggleEl(prevEl, swiper.isBeginning && !swiper.params.rewind);\n toggleEl(nextEl, swiper.isEnd && !swiper.params.rewind);\n }\n function onPrevClick(e) {\n e.preventDefault();\n if (swiper.isBeginning && !swiper.params.loop && !swiper.params.rewind) return;\n swiper.slidePrev();\n emit('navigationPrev');\n }\n function onNextClick(e) {\n e.preventDefault();\n if (swiper.isEnd && !swiper.params.loop && !swiper.params.rewind) return;\n swiper.slideNext();\n emit('navigationNext');\n }\n function init() {\n const params = swiper.params.navigation;\n swiper.params.navigation = createElementIfNotDefined(swiper, swiper.originalParams.navigation, swiper.params.navigation, {\n nextEl: 'swiper-button-next',\n prevEl: 'swiper-button-prev'\n });\n if (!(params.nextEl || params.prevEl)) return;\n let nextEl = getEl(params.nextEl);\n let prevEl = getEl(params.prevEl);\n Object.assign(swiper.navigation, {\n nextEl,\n prevEl\n });\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n const initButton = (el, dir) => {\n if (el) {\n el.addEventListener('click', dir === 'next' ? onNextClick : onPrevClick);\n }\n if (!swiper.enabled && el) {\n el.classList.add(...params.lockClass.split(' '));\n }\n };\n nextEl.forEach(el => initButton(el, 'next'));\n prevEl.forEach(el => initButton(el, 'prev'));\n }\n function destroy() {\n let {\n nextEl,\n prevEl\n } = swiper.navigation;\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n const destroyButton = (el, dir) => {\n el.removeEventListener('click', dir === 'next' ? onNextClick : onPrevClick);\n el.classList.remove(...swiper.params.navigation.disabledClass.split(' '));\n };\n nextEl.forEach(el => destroyButton(el, 'next'));\n prevEl.forEach(el => destroyButton(el, 'prev'));\n }\n on('init', () => {\n if (swiper.params.navigation.enabled === false) {\n // eslint-disable-next-line\n disable();\n } else {\n init();\n update();\n }\n });\n on('toEdge fromEdge lock unlock', () => {\n update();\n });\n on('destroy', () => {\n destroy();\n });\n on('enable disable', () => {\n let {\n nextEl,\n prevEl\n } = swiper.navigation;\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n if (swiper.enabled) {\n update();\n return;\n }\n [...nextEl, ...prevEl].filter(el => !!el).forEach(el => el.classList.add(swiper.params.navigation.lockClass));\n });\n on('click', (_s, e) => {\n let {\n nextEl,\n prevEl\n } = swiper.navigation;\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n const targetEl = e.target;\n if (swiper.params.navigation.hideOnClick && !prevEl.includes(targetEl) && !nextEl.includes(targetEl)) {\n if (swiper.pagination && swiper.params.pagination && swiper.params.pagination.clickable && (swiper.pagination.el === targetEl || swiper.pagination.el.contains(targetEl))) return;\n let isHidden;\n if (nextEl.length) {\n isHidden = nextEl[0].classList.contains(swiper.params.navigation.hiddenClass);\n } else if (prevEl.length) {\n isHidden = prevEl[0].classList.contains(swiper.params.navigation.hiddenClass);\n }\n if (isHidden === true) {\n emit('navigationShow');\n } else {\n emit('navigationHide');\n }\n [...nextEl, ...prevEl].filter(el => !!el).forEach(el => el.classList.toggle(swiper.params.navigation.hiddenClass));\n }\n });\n const enable = () => {\n swiper.el.classList.remove(...swiper.params.navigation.navigationDisabledClass.split(' '));\n init();\n update();\n };\n const disable = () => {\n swiper.el.classList.add(...swiper.params.navigation.navigationDisabledClass.split(' '));\n destroy();\n };\n Object.assign(swiper.navigation, {\n enable,\n disable,\n update,\n init,\n destroy\n });\n}\n\nexport { Navigation as default };\n","import { e as elementChildren, c as createElement } from './utils.mjs';\n\nfunction createElementIfNotDefined(swiper, originalParams, params, checkProps) {\n if (swiper.params.createElements) {\n Object.keys(checkProps).forEach(key => {\n if (!params[key] && params.auto === true) {\n let element = elementChildren(swiper.el, `.${checkProps[key]}`)[0];\n if (!element) {\n element = createElement('div', checkProps[key]);\n element.className = checkProps[key];\n swiper.el.append(element);\n }\n params[key] = element;\n originalParams[key] = element;\n }\n });\n }\n return params;\n}\n\nexport { createElementIfNotDefined as c };\n","import { c as classesToSelector } from '../shared/classes-to-selector.mjs';\nimport { c as createElementIfNotDefined } from '../shared/create-element-if-not-defined.mjs';\nimport { f as elementOuterSize, g as elementIndex, a as elementParents } from '../shared/utils.mjs';\n\nfunction Pagination(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit\n } = _ref;\n const pfx = 'swiper-pagination';\n extendParams({\n pagination: {\n el: null,\n bulletElement: 'span',\n clickable: false,\n hideOnClick: false,\n renderBullet: null,\n renderProgressbar: null,\n renderFraction: null,\n renderCustom: null,\n progressbarOpposite: false,\n type: 'bullets',\n // 'bullets' or 'progressbar' or 'fraction' or 'custom'\n dynamicBullets: false,\n dynamicMainBullets: 1,\n formatFractionCurrent: number => number,\n formatFractionTotal: number => number,\n bulletClass: `${pfx}-bullet`,\n bulletActiveClass: `${pfx}-bullet-active`,\n modifierClass: `${pfx}-`,\n currentClass: `${pfx}-current`,\n totalClass: `${pfx}-total`,\n hiddenClass: `${pfx}-hidden`,\n progressbarFillClass: `${pfx}-progressbar-fill`,\n progressbarOppositeClass: `${pfx}-progressbar-opposite`,\n clickableClass: `${pfx}-clickable`,\n lockClass: `${pfx}-lock`,\n horizontalClass: `${pfx}-horizontal`,\n verticalClass: `${pfx}-vertical`,\n paginationDisabledClass: `${pfx}-disabled`\n }\n });\n swiper.pagination = {\n el: null,\n bullets: []\n };\n let bulletSize;\n let dynamicBulletIndex = 0;\n const makeElementsArray = el => (Array.isArray(el) ? el : [el]).filter(e => !!e);\n function isPaginationDisabled() {\n return !swiper.params.pagination.el || !swiper.pagination.el || Array.isArray(swiper.pagination.el) && swiper.pagination.el.length === 0;\n }\n function setSideBullets(bulletEl, position) {\n const {\n bulletActiveClass\n } = swiper.params.pagination;\n if (!bulletEl) return;\n bulletEl = bulletEl[`${position === 'prev' ? 'previous' : 'next'}ElementSibling`];\n if (bulletEl) {\n bulletEl.classList.add(`${bulletActiveClass}-${position}`);\n bulletEl = bulletEl[`${position === 'prev' ? 'previous' : 'next'}ElementSibling`];\n if (bulletEl) {\n bulletEl.classList.add(`${bulletActiveClass}-${position}-${position}`);\n }\n }\n }\n function onBulletClick(e) {\n const bulletEl = e.target.closest(classesToSelector(swiper.params.pagination.bulletClass));\n if (!bulletEl) {\n return;\n }\n e.preventDefault();\n const index = elementIndex(bulletEl) * swiper.params.slidesPerGroup;\n if (swiper.params.loop) {\n if (swiper.realIndex === index) return;\n const realIndex = swiper.realIndex;\n const newSlideIndex = swiper.getSlideIndexByData(index);\n const currentSlideIndex = swiper.getSlideIndexByData(swiper.realIndex);\n const loopFix = dir => {\n const indexBeforeLoopFix = swiper.activeIndex;\n swiper.loopFix({\n direction: dir,\n activeSlideIndex: newSlideIndex,\n slideTo: false\n });\n const indexAfterFix = swiper.activeIndex;\n if (indexBeforeLoopFix === indexAfterFix) {\n swiper.slideToLoop(realIndex, 0, false, true);\n }\n };\n if (newSlideIndex > swiper.slides.length - swiper.loopedSlides) {\n loopFix(newSlideIndex > currentSlideIndex ? 'next' : 'prev');\n } else if (swiper.params.centeredSlides) {\n const slidesPerView = swiper.params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(parseFloat(swiper.params.slidesPerView, 10));\n if (newSlideIndex < Math.floor(slidesPerView / 2)) {\n loopFix('prev');\n }\n }\n swiper.slideToLoop(index);\n } else {\n swiper.slideTo(index);\n }\n }\n function update() {\n // Render || Update Pagination bullets/items\n const rtl = swiper.rtl;\n const params = swiper.params.pagination;\n if (isPaginationDisabled()) return;\n let el = swiper.pagination.el;\n el = makeElementsArray(el);\n // Current/Total\n let current;\n let previousIndex;\n const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\n const total = swiper.params.loop ? Math.ceil(slidesLength / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\n if (swiper.params.loop) {\n previousIndex = swiper.previousRealIndex || 0;\n current = swiper.params.slidesPerGroup > 1 ? Math.floor(swiper.realIndex / swiper.params.slidesPerGroup) : swiper.realIndex;\n } else if (typeof swiper.snapIndex !== 'undefined') {\n current = swiper.snapIndex;\n previousIndex = swiper.previousSnapIndex;\n } else {\n previousIndex = swiper.previousIndex || 0;\n current = swiper.activeIndex || 0;\n }\n // Types\n if (params.type === 'bullets' && swiper.pagination.bullets && swiper.pagination.bullets.length > 0) {\n const bullets = swiper.pagination.bullets;\n let firstIndex;\n let lastIndex;\n let midIndex;\n if (params.dynamicBullets) {\n bulletSize = elementOuterSize(bullets[0], swiper.isHorizontal() ? 'width' : 'height', true);\n el.forEach(subEl => {\n subEl.style[swiper.isHorizontal() ? 'width' : 'height'] = `${bulletSize * (params.dynamicMainBullets + 4)}px`;\n });\n if (params.dynamicMainBullets > 1 && previousIndex !== undefined) {\n dynamicBulletIndex += current - (previousIndex || 0);\n if (dynamicBulletIndex > params.dynamicMainBullets - 1) {\n dynamicBulletIndex = params.dynamicMainBullets - 1;\n } else if (dynamicBulletIndex < 0) {\n dynamicBulletIndex = 0;\n }\n }\n firstIndex = Math.max(current - dynamicBulletIndex, 0);\n lastIndex = firstIndex + (Math.min(bullets.length, params.dynamicMainBullets) - 1);\n midIndex = (lastIndex + firstIndex) / 2;\n }\n bullets.forEach(bulletEl => {\n const classesToRemove = [...['', '-next', '-next-next', '-prev', '-prev-prev', '-main'].map(suffix => `${params.bulletActiveClass}${suffix}`)].map(s => typeof s === 'string' && s.includes(' ') ? s.split(' ') : s).flat();\n bulletEl.classList.remove(...classesToRemove);\n });\n if (el.length > 1) {\n bullets.forEach(bullet => {\n const bulletIndex = elementIndex(bullet);\n if (bulletIndex === current) {\n bullet.classList.add(...params.bulletActiveClass.split(' '));\n } else if (swiper.isElement) {\n bullet.setAttribute('part', 'bullet');\n }\n if (params.dynamicBullets) {\n if (bulletIndex >= firstIndex && bulletIndex <= lastIndex) {\n bullet.classList.add(...`${params.bulletActiveClass}-main`.split(' '));\n }\n if (bulletIndex === firstIndex) {\n setSideBullets(bullet, 'prev');\n }\n if (bulletIndex === lastIndex) {\n setSideBullets(bullet, 'next');\n }\n }\n });\n } else {\n const bullet = bullets[current];\n if (bullet) {\n bullet.classList.add(...params.bulletActiveClass.split(' '));\n }\n if (swiper.isElement) {\n bullets.forEach((bulletEl, bulletIndex) => {\n bulletEl.setAttribute('part', bulletIndex === current ? 'bullet-active' : 'bullet');\n });\n }\n if (params.dynamicBullets) {\n const firstDisplayedBullet = bullets[firstIndex];\n const lastDisplayedBullet = bullets[lastIndex];\n for (let i = firstIndex; i <= lastIndex; i += 1) {\n if (bullets[i]) {\n bullets[i].classList.add(...`${params.bulletActiveClass}-main`.split(' '));\n }\n }\n setSideBullets(firstDisplayedBullet, 'prev');\n setSideBullets(lastDisplayedBullet, 'next');\n }\n }\n if (params.dynamicBullets) {\n const dynamicBulletsLength = Math.min(bullets.length, params.dynamicMainBullets + 4);\n const bulletsOffset = (bulletSize * dynamicBulletsLength - bulletSize) / 2 - midIndex * bulletSize;\n const offsetProp = rtl ? 'right' : 'left';\n bullets.forEach(bullet => {\n bullet.style[swiper.isHorizontal() ? offsetProp : 'top'] = `${bulletsOffset}px`;\n });\n }\n }\n el.forEach((subEl, subElIndex) => {\n if (params.type === 'fraction') {\n subEl.querySelectorAll(classesToSelector(params.currentClass)).forEach(fractionEl => {\n fractionEl.textContent = params.formatFractionCurrent(current + 1);\n });\n subEl.querySelectorAll(classesToSelector(params.totalClass)).forEach(totalEl => {\n totalEl.textContent = params.formatFractionTotal(total);\n });\n }\n if (params.type === 'progressbar') {\n let progressbarDirection;\n if (params.progressbarOpposite) {\n progressbarDirection = swiper.isHorizontal() ? 'vertical' : 'horizontal';\n } else {\n progressbarDirection = swiper.isHorizontal() ? 'horizontal' : 'vertical';\n }\n const scale = (current + 1) / total;\n let scaleX = 1;\n let scaleY = 1;\n if (progressbarDirection === 'horizontal') {\n scaleX = scale;\n } else {\n scaleY = scale;\n }\n subEl.querySelectorAll(classesToSelector(params.progressbarFillClass)).forEach(progressEl => {\n progressEl.style.transform = `translate3d(0,0,0) scaleX(${scaleX}) scaleY(${scaleY})`;\n progressEl.style.transitionDuration = `${swiper.params.speed}ms`;\n });\n }\n if (params.type === 'custom' && params.renderCustom) {\n subEl.innerHTML = params.renderCustom(swiper, current + 1, total);\n if (subElIndex === 0) emit('paginationRender', subEl);\n } else {\n if (subElIndex === 0) emit('paginationRender', subEl);\n emit('paginationUpdate', subEl);\n }\n if (swiper.params.watchOverflow && swiper.enabled) {\n subEl.classList[swiper.isLocked ? 'add' : 'remove'](params.lockClass);\n }\n });\n }\n function render() {\n // Render Container\n const params = swiper.params.pagination;\n if (isPaginationDisabled()) return;\n const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\n let el = swiper.pagination.el;\n el = makeElementsArray(el);\n let paginationHTML = '';\n if (params.type === 'bullets') {\n let numberOfBullets = swiper.params.loop ? Math.ceil(slidesLength / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\n if (swiper.params.freeMode && swiper.params.freeMode.enabled && numberOfBullets > slidesLength) {\n numberOfBullets = slidesLength;\n }\n for (let i = 0; i < numberOfBullets; i += 1) {\n if (params.renderBullet) {\n paginationHTML += params.renderBullet.call(swiper, i, params.bulletClass);\n } else {\n // prettier-ignore\n paginationHTML += `<${params.bulletElement} ${swiper.isElement ? 'part=\"bullet\"' : ''} class=\"${params.bulletClass}\">`;\n }\n }\n }\n if (params.type === 'fraction') {\n if (params.renderFraction) {\n paginationHTML = params.renderFraction.call(swiper, params.currentClass, params.totalClass);\n } else {\n paginationHTML = `` + ' / ' + ``;\n }\n }\n if (params.type === 'progressbar') {\n if (params.renderProgressbar) {\n paginationHTML = params.renderProgressbar.call(swiper, params.progressbarFillClass);\n } else {\n paginationHTML = ``;\n }\n }\n swiper.pagination.bullets = [];\n el.forEach(subEl => {\n if (params.type !== 'custom') {\n subEl.innerHTML = paginationHTML || '';\n }\n if (params.type === 'bullets') {\n swiper.pagination.bullets.push(...subEl.querySelectorAll(classesToSelector(params.bulletClass)));\n }\n });\n if (params.type !== 'custom') {\n emit('paginationRender', el[0]);\n }\n }\n function init() {\n swiper.params.pagination = createElementIfNotDefined(swiper, swiper.originalParams.pagination, swiper.params.pagination, {\n el: 'swiper-pagination'\n });\n const params = swiper.params.pagination;\n if (!params.el) return;\n let el;\n if (typeof params.el === 'string' && swiper.isElement) {\n el = swiper.el.querySelector(params.el);\n }\n if (!el && typeof params.el === 'string') {\n el = [...document.querySelectorAll(params.el)];\n }\n if (!el) {\n el = params.el;\n }\n if (!el || el.length === 0) return;\n if (swiper.params.uniqueNavElements && typeof params.el === 'string' && Array.isArray(el) && el.length > 1) {\n el = [...swiper.el.querySelectorAll(params.el)];\n // check if it belongs to another nested Swiper\n if (el.length > 1) {\n el = el.filter(subEl => {\n if (elementParents(subEl, '.swiper')[0] !== swiper.el) return false;\n return true;\n })[0];\n }\n }\n if (Array.isArray(el) && el.length === 1) el = el[0];\n Object.assign(swiper.pagination, {\n el\n });\n el = makeElementsArray(el);\n el.forEach(subEl => {\n if (params.type === 'bullets' && params.clickable) {\n subEl.classList.add(...(params.clickableClass || '').split(' '));\n }\n subEl.classList.add(params.modifierClass + params.type);\n subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n if (params.type === 'bullets' && params.dynamicBullets) {\n subEl.classList.add(`${params.modifierClass}${params.type}-dynamic`);\n dynamicBulletIndex = 0;\n if (params.dynamicMainBullets < 1) {\n params.dynamicMainBullets = 1;\n }\n }\n if (params.type === 'progressbar' && params.progressbarOpposite) {\n subEl.classList.add(params.progressbarOppositeClass);\n }\n if (params.clickable) {\n subEl.addEventListener('click', onBulletClick);\n }\n if (!swiper.enabled) {\n subEl.classList.add(params.lockClass);\n }\n });\n }\n function destroy() {\n const params = swiper.params.pagination;\n if (isPaginationDisabled()) return;\n let el = swiper.pagination.el;\n if (el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.classList.remove(params.hiddenClass);\n subEl.classList.remove(params.modifierClass + params.type);\n subEl.classList.remove(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n if (params.clickable) {\n subEl.classList.remove(...(params.clickableClass || '').split(' '));\n subEl.removeEventListener('click', onBulletClick);\n }\n });\n }\n if (swiper.pagination.bullets) swiper.pagination.bullets.forEach(subEl => subEl.classList.remove(...params.bulletActiveClass.split(' ')));\n }\n on('changeDirection', () => {\n if (!swiper.pagination || !swiper.pagination.el) return;\n const params = swiper.params.pagination;\n let {\n el\n } = swiper.pagination;\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.classList.remove(params.horizontalClass, params.verticalClass);\n subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n });\n });\n on('init', () => {\n if (swiper.params.pagination.enabled === false) {\n // eslint-disable-next-line\n disable();\n } else {\n init();\n render();\n update();\n }\n });\n on('activeIndexChange', () => {\n if (typeof swiper.snapIndex === 'undefined') {\n update();\n }\n });\n on('snapIndexChange', () => {\n update();\n });\n on('snapGridLengthChange', () => {\n render();\n update();\n });\n on('destroy', () => {\n destroy();\n });\n on('enable disable', () => {\n let {\n el\n } = swiper.pagination;\n if (el) {\n el = makeElementsArray(el);\n el.forEach(subEl => subEl.classList[swiper.enabled ? 'remove' : 'add'](swiper.params.pagination.lockClass));\n }\n });\n on('lock unlock', () => {\n update();\n });\n on('click', (_s, e) => {\n const targetEl = e.target;\n const el = makeElementsArray(swiper.pagination.el);\n if (swiper.params.pagination.el && swiper.params.pagination.hideOnClick && el && el.length > 0 && !targetEl.classList.contains(swiper.params.pagination.bulletClass)) {\n if (swiper.navigation && (swiper.navigation.nextEl && targetEl === swiper.navigation.nextEl || swiper.navigation.prevEl && targetEl === swiper.navigation.prevEl)) return;\n const isHidden = el[0].classList.contains(swiper.params.pagination.hiddenClass);\n if (isHidden === true) {\n emit('paginationShow');\n } else {\n emit('paginationHide');\n }\n el.forEach(subEl => subEl.classList.toggle(swiper.params.pagination.hiddenClass));\n }\n });\n const enable = () => {\n swiper.el.classList.remove(swiper.params.pagination.paginationDisabledClass);\n let {\n el\n } = swiper.pagination;\n if (el) {\n el = makeElementsArray(el);\n el.forEach(subEl => subEl.classList.remove(swiper.params.pagination.paginationDisabledClass));\n }\n init();\n render();\n update();\n };\n const disable = () => {\n swiper.el.classList.add(swiper.params.pagination.paginationDisabledClass);\n let {\n el\n } = swiper.pagination;\n if (el) {\n el = makeElementsArray(el);\n el.forEach(subEl => subEl.classList.add(swiper.params.pagination.paginationDisabledClass));\n }\n destroy();\n };\n Object.assign(swiper.pagination, {\n enable,\n disable,\n render,\n update,\n init,\n destroy\n });\n}\n\nexport { Pagination as default };\n","function classesToSelector(classes) {\n if (classes === void 0) {\n classes = '';\n }\n return `.${classes.trim().replace(/([\\.:!+\\/])/g, '\\\\$1') // eslint-disable-line\n .replace(/ /g, '.')}`;\n}\n\nexport { classesToSelector as c };\n","import { g as getDocument } from '../shared/ssr-window.esm.mjs';\nimport { c as createElement, n as nextTick, b as elementOffset } from '../shared/utils.mjs';\nimport { c as createElementIfNotDefined } from '../shared/create-element-if-not-defined.mjs';\n\nfunction Scrollbar(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit\n } = _ref;\n const document = getDocument();\n let isTouched = false;\n let timeout = null;\n let dragTimeout = null;\n let dragStartPos;\n let dragSize;\n let trackSize;\n let divider;\n extendParams({\n scrollbar: {\n el: null,\n dragSize: 'auto',\n hide: false,\n draggable: false,\n snapOnRelease: true,\n lockClass: 'swiper-scrollbar-lock',\n dragClass: 'swiper-scrollbar-drag',\n scrollbarDisabledClass: 'swiper-scrollbar-disabled',\n horizontalClass: `swiper-scrollbar-horizontal`,\n verticalClass: `swiper-scrollbar-vertical`\n }\n });\n swiper.scrollbar = {\n el: null,\n dragEl: null\n };\n function setTranslate() {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n const {\n scrollbar,\n rtlTranslate: rtl\n } = swiper;\n const {\n dragEl,\n el\n } = scrollbar;\n const params = swiper.params.scrollbar;\n const progress = swiper.params.loop ? swiper.progressLoop : swiper.progress;\n let newSize = dragSize;\n let newPos = (trackSize - dragSize) * progress;\n if (rtl) {\n newPos = -newPos;\n if (newPos > 0) {\n newSize = dragSize - newPos;\n newPos = 0;\n } else if (-newPos + dragSize > trackSize) {\n newSize = trackSize + newPos;\n }\n } else if (newPos < 0) {\n newSize = dragSize + newPos;\n newPos = 0;\n } else if (newPos + dragSize > trackSize) {\n newSize = trackSize - newPos;\n }\n if (swiper.isHorizontal()) {\n dragEl.style.transform = `translate3d(${newPos}px, 0, 0)`;\n dragEl.style.width = `${newSize}px`;\n } else {\n dragEl.style.transform = `translate3d(0px, ${newPos}px, 0)`;\n dragEl.style.height = `${newSize}px`;\n }\n if (params.hide) {\n clearTimeout(timeout);\n el.style.opacity = 1;\n timeout = setTimeout(() => {\n el.style.opacity = 0;\n el.style.transitionDuration = '400ms';\n }, 1000);\n }\n }\n function setTransition(duration) {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n swiper.scrollbar.dragEl.style.transitionDuration = `${duration}ms`;\n }\n function updateSize() {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n const {\n scrollbar\n } = swiper;\n const {\n dragEl,\n el\n } = scrollbar;\n dragEl.style.width = '';\n dragEl.style.height = '';\n trackSize = swiper.isHorizontal() ? el.offsetWidth : el.offsetHeight;\n divider = swiper.size / (swiper.virtualSize + swiper.params.slidesOffsetBefore - (swiper.params.centeredSlides ? swiper.snapGrid[0] : 0));\n if (swiper.params.scrollbar.dragSize === 'auto') {\n dragSize = trackSize * divider;\n } else {\n dragSize = parseInt(swiper.params.scrollbar.dragSize, 10);\n }\n if (swiper.isHorizontal()) {\n dragEl.style.width = `${dragSize}px`;\n } else {\n dragEl.style.height = `${dragSize}px`;\n }\n if (divider >= 1) {\n el.style.display = 'none';\n } else {\n el.style.display = '';\n }\n if (swiper.params.scrollbar.hide) {\n el.style.opacity = 0;\n }\n if (swiper.params.watchOverflow && swiper.enabled) {\n scrollbar.el.classList[swiper.isLocked ? 'add' : 'remove'](swiper.params.scrollbar.lockClass);\n }\n }\n function getPointerPosition(e) {\n return swiper.isHorizontal() ? e.clientX : e.clientY;\n }\n function setDragPosition(e) {\n const {\n scrollbar,\n rtlTranslate: rtl\n } = swiper;\n const {\n el\n } = scrollbar;\n let positionRatio;\n positionRatio = (getPointerPosition(e) - elementOffset(el)[swiper.isHorizontal() ? 'left' : 'top'] - (dragStartPos !== null ? dragStartPos : dragSize / 2)) / (trackSize - dragSize);\n positionRatio = Math.max(Math.min(positionRatio, 1), 0);\n if (rtl) {\n positionRatio = 1 - positionRatio;\n }\n const position = swiper.minTranslate() + (swiper.maxTranslate() - swiper.minTranslate()) * positionRatio;\n swiper.updateProgress(position);\n swiper.setTranslate(position);\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n function onDragStart(e) {\n const params = swiper.params.scrollbar;\n const {\n scrollbar,\n wrapperEl\n } = swiper;\n const {\n el,\n dragEl\n } = scrollbar;\n isTouched = true;\n dragStartPos = e.target === dragEl ? getPointerPosition(e) - e.target.getBoundingClientRect()[swiper.isHorizontal() ? 'left' : 'top'] : null;\n e.preventDefault();\n e.stopPropagation();\n wrapperEl.style.transitionDuration = '100ms';\n dragEl.style.transitionDuration = '100ms';\n setDragPosition(e);\n clearTimeout(dragTimeout);\n el.style.transitionDuration = '0ms';\n if (params.hide) {\n el.style.opacity = 1;\n }\n if (swiper.params.cssMode) {\n swiper.wrapperEl.style['scroll-snap-type'] = 'none';\n }\n emit('scrollbarDragStart', e);\n }\n function onDragMove(e) {\n const {\n scrollbar,\n wrapperEl\n } = swiper;\n const {\n el,\n dragEl\n } = scrollbar;\n if (!isTouched) return;\n if (e.preventDefault) e.preventDefault();else e.returnValue = false;\n setDragPosition(e);\n wrapperEl.style.transitionDuration = '0ms';\n el.style.transitionDuration = '0ms';\n dragEl.style.transitionDuration = '0ms';\n emit('scrollbarDragMove', e);\n }\n function onDragEnd(e) {\n const params = swiper.params.scrollbar;\n const {\n scrollbar,\n wrapperEl\n } = swiper;\n const {\n el\n } = scrollbar;\n if (!isTouched) return;\n isTouched = false;\n if (swiper.params.cssMode) {\n swiper.wrapperEl.style['scroll-snap-type'] = '';\n wrapperEl.style.transitionDuration = '';\n }\n if (params.hide) {\n clearTimeout(dragTimeout);\n dragTimeout = nextTick(() => {\n el.style.opacity = 0;\n el.style.transitionDuration = '400ms';\n }, 1000);\n }\n emit('scrollbarDragEnd', e);\n if (params.snapOnRelease) {\n swiper.slideToClosest();\n }\n }\n function events(method) {\n const {\n scrollbar,\n params\n } = swiper;\n const el = scrollbar.el;\n if (!el) return;\n const target = el;\n const activeListener = params.passiveListeners ? {\n passive: false,\n capture: false\n } : false;\n const passiveListener = params.passiveListeners ? {\n passive: true,\n capture: false\n } : false;\n if (!target) return;\n const eventMethod = method === 'on' ? 'addEventListener' : 'removeEventListener';\n target[eventMethod]('pointerdown', onDragStart, activeListener);\n document[eventMethod]('pointermove', onDragMove, activeListener);\n document[eventMethod]('pointerup', onDragEnd, passiveListener);\n }\n function enableDraggable() {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n events('on');\n }\n function disableDraggable() {\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n events('off');\n }\n function init() {\n const {\n scrollbar,\n el: swiperEl\n } = swiper;\n swiper.params.scrollbar = createElementIfNotDefined(swiper, swiper.originalParams.scrollbar, swiper.params.scrollbar, {\n el: 'swiper-scrollbar'\n });\n const params = swiper.params.scrollbar;\n if (!params.el) return;\n let el;\n if (typeof params.el === 'string' && swiper.isElement) {\n el = swiper.el.querySelector(params.el);\n }\n if (!el && typeof params.el === 'string') {\n el = document.querySelectorAll(params.el);\n } else if (!el) {\n el = params.el;\n }\n if (swiper.params.uniqueNavElements && typeof params.el === 'string' && el.length > 1 && swiperEl.querySelectorAll(params.el).length === 1) {\n el = swiperEl.querySelector(params.el);\n }\n if (el.length > 0) el = el[0];\n el.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n let dragEl;\n if (el) {\n dragEl = el.querySelector(`.${swiper.params.scrollbar.dragClass}`);\n if (!dragEl) {\n dragEl = createElement('div', swiper.params.scrollbar.dragClass);\n el.append(dragEl);\n }\n }\n Object.assign(scrollbar, {\n el,\n dragEl\n });\n if (params.draggable) {\n enableDraggable();\n }\n if (el) {\n el.classList[swiper.enabled ? 'remove' : 'add'](swiper.params.scrollbar.lockClass);\n }\n }\n function destroy() {\n const params = swiper.params.scrollbar;\n const el = swiper.scrollbar.el;\n if (el) {\n el.classList.remove(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n }\n disableDraggable();\n }\n on('init', () => {\n if (swiper.params.scrollbar.enabled === false) {\n // eslint-disable-next-line\n disable();\n } else {\n init();\n updateSize();\n setTranslate();\n }\n });\n on('update resize observerUpdate lock unlock', () => {\n updateSize();\n });\n on('setTranslate', () => {\n setTranslate();\n });\n on('setTransition', (_s, duration) => {\n setTransition(duration);\n });\n on('enable disable', () => {\n const {\n el\n } = swiper.scrollbar;\n if (el) {\n el.classList[swiper.enabled ? 'remove' : 'add'](swiper.params.scrollbar.lockClass);\n }\n });\n on('destroy', () => {\n destroy();\n });\n const enable = () => {\n swiper.el.classList.remove(swiper.params.scrollbar.scrollbarDisabledClass);\n if (swiper.scrollbar.el) {\n swiper.scrollbar.el.classList.remove(swiper.params.scrollbar.scrollbarDisabledClass);\n }\n init();\n updateSize();\n setTranslate();\n };\n const disable = () => {\n swiper.el.classList.add(swiper.params.scrollbar.scrollbarDisabledClass);\n if (swiper.scrollbar.el) {\n swiper.scrollbar.el.classList.add(swiper.params.scrollbar.scrollbarDisabledClass);\n }\n destroy();\n };\n Object.assign(swiper.scrollbar, {\n enable,\n disable,\n updateSize,\n setTranslate,\n init,\n destroy\n });\n}\n\nexport { Scrollbar as default };\n","import { e as elementChildren } from '../shared/utils.mjs';\n\nfunction Parallax(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n parallax: {\n enabled: false\n }\n });\n const elementsSelector = '[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]';\n const setTransform = (el, progress) => {\n const {\n rtl\n } = swiper;\n const rtlFactor = rtl ? -1 : 1;\n const p = el.getAttribute('data-swiper-parallax') || '0';\n let x = el.getAttribute('data-swiper-parallax-x');\n let y = el.getAttribute('data-swiper-parallax-y');\n const scale = el.getAttribute('data-swiper-parallax-scale');\n const opacity = el.getAttribute('data-swiper-parallax-opacity');\n const rotate = el.getAttribute('data-swiper-parallax-rotate');\n if (x || y) {\n x = x || '0';\n y = y || '0';\n } else if (swiper.isHorizontal()) {\n x = p;\n y = '0';\n } else {\n y = p;\n x = '0';\n }\n if (x.indexOf('%') >= 0) {\n x = `${parseInt(x, 10) * progress * rtlFactor}%`;\n } else {\n x = `${x * progress * rtlFactor}px`;\n }\n if (y.indexOf('%') >= 0) {\n y = `${parseInt(y, 10) * progress}%`;\n } else {\n y = `${y * progress}px`;\n }\n if (typeof opacity !== 'undefined' && opacity !== null) {\n const currentOpacity = opacity - (opacity - 1) * (1 - Math.abs(progress));\n el.style.opacity = currentOpacity;\n }\n let transform = `translate3d(${x}, ${y}, 0px)`;\n if (typeof scale !== 'undefined' && scale !== null) {\n const currentScale = scale - (scale - 1) * (1 - Math.abs(progress));\n transform += ` scale(${currentScale})`;\n }\n if (rotate && typeof rotate !== 'undefined' && rotate !== null) {\n const currentRotate = rotate * progress * -1;\n transform += ` rotate(${currentRotate}deg)`;\n }\n el.style.transform = transform;\n };\n const setTranslate = () => {\n const {\n el,\n slides,\n progress,\n snapGrid,\n isElement\n } = swiper;\n const elements = elementChildren(el, elementsSelector);\n if (swiper.isElement) {\n elements.push(...elementChildren(swiper.hostEl, elementsSelector));\n }\n elements.forEach(subEl => {\n setTransform(subEl, progress);\n });\n slides.forEach((slideEl, slideIndex) => {\n let slideProgress = slideEl.progress;\n if (swiper.params.slidesPerGroup > 1 && swiper.params.slidesPerView !== 'auto') {\n slideProgress += Math.ceil(slideIndex / 2) - progress * (snapGrid.length - 1);\n }\n slideProgress = Math.min(Math.max(slideProgress, -1), 1);\n slideEl.querySelectorAll(`${elementsSelector}, [data-swiper-parallax-rotate]`).forEach(subEl => {\n setTransform(subEl, slideProgress);\n });\n });\n };\n const setTransition = function (duration) {\n if (duration === void 0) {\n duration = swiper.params.speed;\n }\n const {\n el,\n hostEl\n } = swiper;\n const elements = [...el.querySelectorAll(elementsSelector)];\n if (swiper.isElement) {\n elements.push(...hostEl.querySelectorAll(elementsSelector));\n }\n elements.forEach(parallaxEl => {\n let parallaxDuration = parseInt(parallaxEl.getAttribute('data-swiper-parallax-duration'), 10) || duration;\n if (duration === 0) parallaxDuration = 0;\n parallaxEl.style.transitionDuration = `${parallaxDuration}ms`;\n });\n };\n on('beforeInit', () => {\n if (!swiper.params.parallax.enabled) return;\n swiper.params.watchSlidesProgress = true;\n swiper.originalParams.watchSlidesProgress = true;\n });\n on('init', () => {\n if (!swiper.params.parallax.enabled) return;\n setTranslate();\n });\n on('setTranslate', () => {\n if (!swiper.params.parallax.enabled) return;\n setTranslate();\n });\n on('setTransition', (_swiper, duration) => {\n if (!swiper.params.parallax.enabled) return;\n setTransition(duration);\n });\n}\n\nexport { Parallax as default };\n","import { a as getWindow } from '../shared/ssr-window.esm.mjs';\nimport { e as elementChildren, a as elementParents, b as elementOffset, h as getTranslate } from '../shared/utils.mjs';\n\nfunction Zoom(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit\n } = _ref;\n const window = getWindow();\n extendParams({\n zoom: {\n enabled: false,\n maxRatio: 3,\n minRatio: 1,\n toggle: true,\n containerClass: 'swiper-zoom-container',\n zoomedSlideClass: 'swiper-slide-zoomed'\n }\n });\n swiper.zoom = {\n enabled: false\n };\n let currentScale = 1;\n let isScaling = false;\n let fakeGestureTouched;\n let fakeGestureMoved;\n const evCache = [];\n const gesture = {\n originX: 0,\n originY: 0,\n slideEl: undefined,\n slideWidth: undefined,\n slideHeight: undefined,\n imageEl: undefined,\n imageWrapEl: undefined,\n maxRatio: 3\n };\n const image = {\n isTouched: undefined,\n isMoved: undefined,\n currentX: undefined,\n currentY: undefined,\n minX: undefined,\n minY: undefined,\n maxX: undefined,\n maxY: undefined,\n width: undefined,\n height: undefined,\n startX: undefined,\n startY: undefined,\n touchesStart: {},\n touchesCurrent: {}\n };\n const velocity = {\n x: undefined,\n y: undefined,\n prevPositionX: undefined,\n prevPositionY: undefined,\n prevTime: undefined\n };\n let scale = 1;\n Object.defineProperty(swiper.zoom, 'scale', {\n get() {\n return scale;\n },\n set(value) {\n if (scale !== value) {\n const imageEl = gesture.imageEl;\n const slideEl = gesture.slideEl;\n emit('zoomChange', value, imageEl, slideEl);\n }\n scale = value;\n }\n });\n function getDistanceBetweenTouches() {\n if (evCache.length < 2) return 1;\n const x1 = evCache[0].pageX;\n const y1 = evCache[0].pageY;\n const x2 = evCache[1].pageX;\n const y2 = evCache[1].pageY;\n const distance = Math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2);\n return distance;\n }\n function getScaleOrigin() {\n if (evCache.length < 2) return {\n x: null,\n y: null\n };\n const box = gesture.imageEl.getBoundingClientRect();\n return [(evCache[0].pageX + (evCache[1].pageX - evCache[0].pageX) / 2 - box.x - window.scrollX) / currentScale, (evCache[0].pageY + (evCache[1].pageY - evCache[0].pageY) / 2 - box.y - window.scrollY) / currentScale];\n }\n function getSlideSelector() {\n return swiper.isElement ? `swiper-slide` : `.${swiper.params.slideClass}`;\n }\n function eventWithinSlide(e) {\n const slideSelector = getSlideSelector();\n if (e.target.matches(slideSelector)) return true;\n if (swiper.slides.filter(slideEl => slideEl.contains(e.target)).length > 0) return true;\n return false;\n }\n function eventWithinZoomContainer(e) {\n const selector = `.${swiper.params.zoom.containerClass}`;\n if (e.target.matches(selector)) return true;\n if ([...swiper.hostEl.querySelectorAll(selector)].filter(containerEl => containerEl.contains(e.target)).length > 0) return true;\n return false;\n }\n\n // Events\n function onGestureStart(e) {\n if (e.pointerType === 'mouse') {\n evCache.splice(0, evCache.length);\n }\n if (!eventWithinSlide(e)) return;\n const params = swiper.params.zoom;\n fakeGestureTouched = false;\n fakeGestureMoved = false;\n evCache.push(e);\n if (evCache.length < 2) {\n return;\n }\n fakeGestureTouched = true;\n gesture.scaleStart = getDistanceBetweenTouches();\n if (!gesture.slideEl) {\n gesture.slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);\n if (!gesture.slideEl) gesture.slideEl = swiper.slides[swiper.activeIndex];\n let imageEl = gesture.slideEl.querySelector(`.${params.containerClass}`);\n if (imageEl) {\n imageEl = imageEl.querySelectorAll('picture, img, svg, canvas, .swiper-zoom-target')[0];\n }\n gesture.imageEl = imageEl;\n if (imageEl) {\n gesture.imageWrapEl = elementParents(gesture.imageEl, `.${params.containerClass}`)[0];\n } else {\n gesture.imageWrapEl = undefined;\n }\n if (!gesture.imageWrapEl) {\n gesture.imageEl = undefined;\n return;\n }\n gesture.maxRatio = gesture.imageWrapEl.getAttribute('data-swiper-zoom') || params.maxRatio;\n }\n if (gesture.imageEl) {\n const [originX, originY] = getScaleOrigin();\n gesture.originX = originX;\n gesture.originY = originY;\n gesture.imageEl.style.transitionDuration = '0ms';\n }\n isScaling = true;\n }\n function onGestureChange(e) {\n if (!eventWithinSlide(e)) return;\n const params = swiper.params.zoom;\n const zoom = swiper.zoom;\n const pointerIndex = evCache.findIndex(cachedEv => cachedEv.pointerId === e.pointerId);\n if (pointerIndex >= 0) evCache[pointerIndex] = e;\n if (evCache.length < 2) {\n return;\n }\n fakeGestureMoved = true;\n gesture.scaleMove = getDistanceBetweenTouches();\n if (!gesture.imageEl) {\n return;\n }\n zoom.scale = gesture.scaleMove / gesture.scaleStart * currentScale;\n if (zoom.scale > gesture.maxRatio) {\n zoom.scale = gesture.maxRatio - 1 + (zoom.scale - gesture.maxRatio + 1) ** 0.5;\n }\n if (zoom.scale < params.minRatio) {\n zoom.scale = params.minRatio + 1 - (params.minRatio - zoom.scale + 1) ** 0.5;\n }\n gesture.imageEl.style.transform = `translate3d(0,0,0) scale(${zoom.scale})`;\n }\n function onGestureEnd(e) {\n if (!eventWithinSlide(e)) return;\n if (e.pointerType === 'mouse' && e.type === 'pointerout') return;\n const params = swiper.params.zoom;\n const zoom = swiper.zoom;\n const pointerIndex = evCache.findIndex(cachedEv => cachedEv.pointerId === e.pointerId);\n if (pointerIndex >= 0) evCache.splice(pointerIndex, 1);\n if (!fakeGestureTouched || !fakeGestureMoved) {\n return;\n }\n fakeGestureTouched = false;\n fakeGestureMoved = false;\n if (!gesture.imageEl) return;\n zoom.scale = Math.max(Math.min(zoom.scale, gesture.maxRatio), params.minRatio);\n gesture.imageEl.style.transitionDuration = `${swiper.params.speed}ms`;\n gesture.imageEl.style.transform = `translate3d(0,0,0) scale(${zoom.scale})`;\n currentScale = zoom.scale;\n isScaling = false;\n if (zoom.scale > 1 && gesture.slideEl) {\n gesture.slideEl.classList.add(`${params.zoomedSlideClass}`);\n } else if (zoom.scale <= 1 && gesture.slideEl) {\n gesture.slideEl.classList.remove(`${params.zoomedSlideClass}`);\n }\n if (zoom.scale === 1) {\n gesture.originX = 0;\n gesture.originY = 0;\n gesture.slideEl = undefined;\n }\n }\n function onTouchStart(e) {\n const device = swiper.device;\n if (!gesture.imageEl) return;\n if (image.isTouched) return;\n if (device.android && e.cancelable) e.preventDefault();\n image.isTouched = true;\n const event = evCache.length > 0 ? evCache[0] : e;\n image.touchesStart.x = event.pageX;\n image.touchesStart.y = event.pageY;\n }\n function onTouchMove(e) {\n if (!eventWithinSlide(e) || !eventWithinZoomContainer(e)) return;\n const zoom = swiper.zoom;\n if (!gesture.imageEl) return;\n if (!image.isTouched || !gesture.slideEl) return;\n if (!image.isMoved) {\n image.width = gesture.imageEl.offsetWidth;\n image.height = gesture.imageEl.offsetHeight;\n image.startX = getTranslate(gesture.imageWrapEl, 'x') || 0;\n image.startY = getTranslate(gesture.imageWrapEl, 'y') || 0;\n gesture.slideWidth = gesture.slideEl.offsetWidth;\n gesture.slideHeight = gesture.slideEl.offsetHeight;\n gesture.imageWrapEl.style.transitionDuration = '0ms';\n }\n // Define if we need image drag\n const scaledWidth = image.width * zoom.scale;\n const scaledHeight = image.height * zoom.scale;\n if (scaledWidth < gesture.slideWidth && scaledHeight < gesture.slideHeight) return;\n image.minX = Math.min(gesture.slideWidth / 2 - scaledWidth / 2, 0);\n image.maxX = -image.minX;\n image.minY = Math.min(gesture.slideHeight / 2 - scaledHeight / 2, 0);\n image.maxY = -image.minY;\n image.touchesCurrent.x = evCache.length > 0 ? evCache[0].pageX : e.pageX;\n image.touchesCurrent.y = evCache.length > 0 ? evCache[0].pageY : e.pageY;\n const touchesDiff = Math.max(Math.abs(image.touchesCurrent.x - image.touchesStart.x), Math.abs(image.touchesCurrent.y - image.touchesStart.y));\n if (touchesDiff > 5) {\n swiper.allowClick = false;\n }\n if (!image.isMoved && !isScaling) {\n if (swiper.isHorizontal() && (Math.floor(image.minX) === Math.floor(image.startX) && image.touchesCurrent.x < image.touchesStart.x || Math.floor(image.maxX) === Math.floor(image.startX) && image.touchesCurrent.x > image.touchesStart.x)) {\n image.isTouched = false;\n return;\n }\n if (!swiper.isHorizontal() && (Math.floor(image.minY) === Math.floor(image.startY) && image.touchesCurrent.y < image.touchesStart.y || Math.floor(image.maxY) === Math.floor(image.startY) && image.touchesCurrent.y > image.touchesStart.y)) {\n image.isTouched = false;\n return;\n }\n }\n if (e.cancelable) {\n e.preventDefault();\n }\n e.stopPropagation();\n image.isMoved = true;\n const scaleRatio = (zoom.scale - currentScale) / (gesture.maxRatio - swiper.params.zoom.minRatio);\n const {\n originX,\n originY\n } = gesture;\n image.currentX = image.touchesCurrent.x - image.touchesStart.x + image.startX + scaleRatio * (image.width - originX * 2);\n image.currentY = image.touchesCurrent.y - image.touchesStart.y + image.startY + scaleRatio * (image.height - originY * 2);\n if (image.currentX < image.minX) {\n image.currentX = image.minX + 1 - (image.minX - image.currentX + 1) ** 0.8;\n }\n if (image.currentX > image.maxX) {\n image.currentX = image.maxX - 1 + (image.currentX - image.maxX + 1) ** 0.8;\n }\n if (image.currentY < image.minY) {\n image.currentY = image.minY + 1 - (image.minY - image.currentY + 1) ** 0.8;\n }\n if (image.currentY > image.maxY) {\n image.currentY = image.maxY - 1 + (image.currentY - image.maxY + 1) ** 0.8;\n }\n\n // Velocity\n if (!velocity.prevPositionX) velocity.prevPositionX = image.touchesCurrent.x;\n if (!velocity.prevPositionY) velocity.prevPositionY = image.touchesCurrent.y;\n if (!velocity.prevTime) velocity.prevTime = Date.now();\n velocity.x = (image.touchesCurrent.x - velocity.prevPositionX) / (Date.now() - velocity.prevTime) / 2;\n velocity.y = (image.touchesCurrent.y - velocity.prevPositionY) / (Date.now() - velocity.prevTime) / 2;\n if (Math.abs(image.touchesCurrent.x - velocity.prevPositionX) < 2) velocity.x = 0;\n if (Math.abs(image.touchesCurrent.y - velocity.prevPositionY) < 2) velocity.y = 0;\n velocity.prevPositionX = image.touchesCurrent.x;\n velocity.prevPositionY = image.touchesCurrent.y;\n velocity.prevTime = Date.now();\n gesture.imageWrapEl.style.transform = `translate3d(${image.currentX}px, ${image.currentY}px,0)`;\n }\n function onTouchEnd() {\n const zoom = swiper.zoom;\n if (!gesture.imageEl) return;\n if (!image.isTouched || !image.isMoved) {\n image.isTouched = false;\n image.isMoved = false;\n return;\n }\n image.isTouched = false;\n image.isMoved = false;\n let momentumDurationX = 300;\n let momentumDurationY = 300;\n const momentumDistanceX = velocity.x * momentumDurationX;\n const newPositionX = image.currentX + momentumDistanceX;\n const momentumDistanceY = velocity.y * momentumDurationY;\n const newPositionY = image.currentY + momentumDistanceY;\n\n // Fix duration\n if (velocity.x !== 0) momentumDurationX = Math.abs((newPositionX - image.currentX) / velocity.x);\n if (velocity.y !== 0) momentumDurationY = Math.abs((newPositionY - image.currentY) / velocity.y);\n const momentumDuration = Math.max(momentumDurationX, momentumDurationY);\n image.currentX = newPositionX;\n image.currentY = newPositionY;\n // Define if we need image drag\n const scaledWidth = image.width * zoom.scale;\n const scaledHeight = image.height * zoom.scale;\n image.minX = Math.min(gesture.slideWidth / 2 - scaledWidth / 2, 0);\n image.maxX = -image.minX;\n image.minY = Math.min(gesture.slideHeight / 2 - scaledHeight / 2, 0);\n image.maxY = -image.minY;\n image.currentX = Math.max(Math.min(image.currentX, image.maxX), image.minX);\n image.currentY = Math.max(Math.min(image.currentY, image.maxY), image.minY);\n gesture.imageWrapEl.style.transitionDuration = `${momentumDuration}ms`;\n gesture.imageWrapEl.style.transform = `translate3d(${image.currentX}px, ${image.currentY}px,0)`;\n }\n function onTransitionEnd() {\n const zoom = swiper.zoom;\n if (gesture.slideEl && swiper.activeIndex !== swiper.slides.indexOf(gesture.slideEl)) {\n if (gesture.imageEl) {\n gesture.imageEl.style.transform = 'translate3d(0,0,0) scale(1)';\n }\n if (gesture.imageWrapEl) {\n gesture.imageWrapEl.style.transform = 'translate3d(0,0,0)';\n }\n gesture.slideEl.classList.remove(`${swiper.params.zoom.zoomedSlideClass}`);\n zoom.scale = 1;\n currentScale = 1;\n gesture.slideEl = undefined;\n gesture.imageEl = undefined;\n gesture.imageWrapEl = undefined;\n gesture.originX = 0;\n gesture.originY = 0;\n }\n }\n function zoomIn(e) {\n const zoom = swiper.zoom;\n const params = swiper.params.zoom;\n if (!gesture.slideEl) {\n if (e && e.target) {\n gesture.slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);\n }\n if (!gesture.slideEl) {\n if (swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual) {\n gesture.slideEl = elementChildren(swiper.slidesEl, `.${swiper.params.slideActiveClass}`)[0];\n } else {\n gesture.slideEl = swiper.slides[swiper.activeIndex];\n }\n }\n let imageEl = gesture.slideEl.querySelector(`.${params.containerClass}`);\n if (imageEl) {\n imageEl = imageEl.querySelectorAll('picture, img, svg, canvas, .swiper-zoom-target')[0];\n }\n gesture.imageEl = imageEl;\n if (imageEl) {\n gesture.imageWrapEl = elementParents(gesture.imageEl, `.${params.containerClass}`)[0];\n } else {\n gesture.imageWrapEl = undefined;\n }\n }\n if (!gesture.imageEl || !gesture.imageWrapEl) return;\n if (swiper.params.cssMode) {\n swiper.wrapperEl.style.overflow = 'hidden';\n swiper.wrapperEl.style.touchAction = 'none';\n }\n gesture.slideEl.classList.add(`${params.zoomedSlideClass}`);\n let touchX;\n let touchY;\n let offsetX;\n let offsetY;\n let diffX;\n let diffY;\n let translateX;\n let translateY;\n let imageWidth;\n let imageHeight;\n let scaledWidth;\n let scaledHeight;\n let translateMinX;\n let translateMinY;\n let translateMaxX;\n let translateMaxY;\n let slideWidth;\n let slideHeight;\n if (typeof image.touchesStart.x === 'undefined' && e) {\n touchX = e.pageX;\n touchY = e.pageY;\n } else {\n touchX = image.touchesStart.x;\n touchY = image.touchesStart.y;\n }\n const forceZoomRatio = typeof e === 'number' ? e : null;\n if (currentScale === 1 && forceZoomRatio) {\n touchX = undefined;\n touchY = undefined;\n }\n zoom.scale = forceZoomRatio || gesture.imageWrapEl.getAttribute('data-swiper-zoom') || params.maxRatio;\n currentScale = forceZoomRatio || gesture.imageWrapEl.getAttribute('data-swiper-zoom') || params.maxRatio;\n if (e && !(currentScale === 1 && forceZoomRatio)) {\n slideWidth = gesture.slideEl.offsetWidth;\n slideHeight = gesture.slideEl.offsetHeight;\n offsetX = elementOffset(gesture.slideEl).left + window.scrollX;\n offsetY = elementOffset(gesture.slideEl).top + window.scrollY;\n diffX = offsetX + slideWidth / 2 - touchX;\n diffY = offsetY + slideHeight / 2 - touchY;\n imageWidth = gesture.imageEl.offsetWidth;\n imageHeight = gesture.imageEl.offsetHeight;\n scaledWidth = imageWidth * zoom.scale;\n scaledHeight = imageHeight * zoom.scale;\n translateMinX = Math.min(slideWidth / 2 - scaledWidth / 2, 0);\n translateMinY = Math.min(slideHeight / 2 - scaledHeight / 2, 0);\n translateMaxX = -translateMinX;\n translateMaxY = -translateMinY;\n translateX = diffX * zoom.scale;\n translateY = diffY * zoom.scale;\n if (translateX < translateMinX) {\n translateX = translateMinX;\n }\n if (translateX > translateMaxX) {\n translateX = translateMaxX;\n }\n if (translateY < translateMinY) {\n translateY = translateMinY;\n }\n if (translateY > translateMaxY) {\n translateY = translateMaxY;\n }\n } else {\n translateX = 0;\n translateY = 0;\n }\n if (forceZoomRatio && zoom.scale === 1) {\n gesture.originX = 0;\n gesture.originY = 0;\n }\n gesture.imageWrapEl.style.transitionDuration = '300ms';\n gesture.imageWrapEl.style.transform = `translate3d(${translateX}px, ${translateY}px,0)`;\n gesture.imageEl.style.transitionDuration = '300ms';\n gesture.imageEl.style.transform = `translate3d(0,0,0) scale(${zoom.scale})`;\n }\n function zoomOut() {\n const zoom = swiper.zoom;\n const params = swiper.params.zoom;\n if (!gesture.slideEl) {\n if (swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual) {\n gesture.slideEl = elementChildren(swiper.slidesEl, `.${swiper.params.slideActiveClass}`)[0];\n } else {\n gesture.slideEl = swiper.slides[swiper.activeIndex];\n }\n let imageEl = gesture.slideEl.querySelector(`.${params.containerClass}`);\n if (imageEl) {\n imageEl = imageEl.querySelectorAll('picture, img, svg, canvas, .swiper-zoom-target')[0];\n }\n gesture.imageEl = imageEl;\n if (imageEl) {\n gesture.imageWrapEl = elementParents(gesture.imageEl, `.${params.containerClass}`)[0];\n } else {\n gesture.imageWrapEl = undefined;\n }\n }\n if (!gesture.imageEl || !gesture.imageWrapEl) return;\n if (swiper.params.cssMode) {\n swiper.wrapperEl.style.overflow = '';\n swiper.wrapperEl.style.touchAction = '';\n }\n zoom.scale = 1;\n currentScale = 1;\n gesture.imageWrapEl.style.transitionDuration = '300ms';\n gesture.imageWrapEl.style.transform = 'translate3d(0,0,0)';\n gesture.imageEl.style.transitionDuration = '300ms';\n gesture.imageEl.style.transform = 'translate3d(0,0,0) scale(1)';\n gesture.slideEl.classList.remove(`${params.zoomedSlideClass}`);\n gesture.slideEl = undefined;\n gesture.originX = 0;\n gesture.originY = 0;\n }\n\n // Toggle Zoom\n function zoomToggle(e) {\n const zoom = swiper.zoom;\n if (zoom.scale && zoom.scale !== 1) {\n // Zoom Out\n zoomOut();\n } else {\n // Zoom In\n zoomIn(e);\n }\n }\n function getListeners() {\n const passiveListener = swiper.params.passiveListeners ? {\n passive: true,\n capture: false\n } : false;\n const activeListenerWithCapture = swiper.params.passiveListeners ? {\n passive: false,\n capture: true\n } : true;\n return {\n passiveListener,\n activeListenerWithCapture\n };\n }\n\n // Attach/Detach Events\n function enable() {\n const zoom = swiper.zoom;\n if (zoom.enabled) return;\n zoom.enabled = true;\n const {\n passiveListener,\n activeListenerWithCapture\n } = getListeners();\n\n // Scale image\n swiper.wrapperEl.addEventListener('pointerdown', onGestureStart, passiveListener);\n swiper.wrapperEl.addEventListener('pointermove', onGestureChange, activeListenerWithCapture);\n ['pointerup', 'pointercancel', 'pointerout'].forEach(eventName => {\n swiper.wrapperEl.addEventListener(eventName, onGestureEnd, passiveListener);\n });\n\n // Move image\n swiper.wrapperEl.addEventListener('pointermove', onTouchMove, activeListenerWithCapture);\n }\n function disable() {\n const zoom = swiper.zoom;\n if (!zoom.enabled) return;\n zoom.enabled = false;\n const {\n passiveListener,\n activeListenerWithCapture\n } = getListeners();\n\n // Scale image\n swiper.wrapperEl.removeEventListener('pointerdown', onGestureStart, passiveListener);\n swiper.wrapperEl.removeEventListener('pointermove', onGestureChange, activeListenerWithCapture);\n ['pointerup', 'pointercancel', 'pointerout'].forEach(eventName => {\n swiper.wrapperEl.removeEventListener(eventName, onGestureEnd, passiveListener);\n });\n\n // Move image\n swiper.wrapperEl.removeEventListener('pointermove', onTouchMove, activeListenerWithCapture);\n }\n on('init', () => {\n if (swiper.params.zoom.enabled) {\n enable();\n }\n });\n on('destroy', () => {\n disable();\n });\n on('touchStart', (_s, e) => {\n if (!swiper.zoom.enabled) return;\n onTouchStart(e);\n });\n on('touchEnd', (_s, e) => {\n if (!swiper.zoom.enabled) return;\n onTouchEnd();\n });\n on('doubleTap', (_s, e) => {\n if (!swiper.animating && swiper.params.zoom.enabled && swiper.zoom.enabled && swiper.params.zoom.toggle) {\n zoomToggle(e);\n }\n });\n on('transitionEnd', () => {\n if (swiper.zoom.enabled && swiper.params.zoom.enabled) {\n onTransitionEnd();\n }\n });\n on('slideChange', () => {\n if (swiper.zoom.enabled && swiper.params.zoom.enabled && swiper.params.cssMode) {\n onTransitionEnd();\n }\n });\n Object.assign(swiper.zoom, {\n enable,\n disable,\n in: zoomIn,\n out: zoomOut,\n toggle: zoomToggle\n });\n}\n\nexport { Zoom as default };\n","import { n as nextTick, i as elementTransitionEnd } from '../shared/utils.mjs';\n\n/* eslint no-bitwise: [\"error\", { \"allow\": [\">>\"] }] */\nfunction Controller(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n controller: {\n control: undefined,\n inverse: false,\n by: 'slide' // or 'container'\n }\n });\n\n swiper.controller = {\n control: undefined\n };\n function LinearSpline(x, y) {\n const binarySearch = function search() {\n let maxIndex;\n let minIndex;\n let guess;\n return (array, val) => {\n minIndex = -1;\n maxIndex = array.length;\n while (maxIndex - minIndex > 1) {\n guess = maxIndex + minIndex >> 1;\n if (array[guess] <= val) {\n minIndex = guess;\n } else {\n maxIndex = guess;\n }\n }\n return maxIndex;\n };\n }();\n this.x = x;\n this.y = y;\n this.lastIndex = x.length - 1;\n // Given an x value (x2), return the expected y2 value:\n // (x1,y1) is the known point before given value,\n // (x3,y3) is the known point after given value.\n let i1;\n let i3;\n this.interpolate = function interpolate(x2) {\n if (!x2) return 0;\n\n // Get the indexes of x1 and x3 (the array indexes before and after given x2):\n i3 = binarySearch(this.x, x2);\n i1 = i3 - 1;\n\n // We have our indexes i1 & i3, so we can calculate already:\n // y2 := ((x2−x1) × (y3−y1)) ÷ (x3−x1) + y1\n return (x2 - this.x[i1]) * (this.y[i3] - this.y[i1]) / (this.x[i3] - this.x[i1]) + this.y[i1];\n };\n return this;\n }\n function getInterpolateFunction(c) {\n swiper.controller.spline = swiper.params.loop ? new LinearSpline(swiper.slidesGrid, c.slidesGrid) : new LinearSpline(swiper.snapGrid, c.snapGrid);\n }\n function setTranslate(_t, byController) {\n const controlled = swiper.controller.control;\n let multiplier;\n let controlledTranslate;\n const Swiper = swiper.constructor;\n function setControlledTranslate(c) {\n if (c.destroyed) return;\n\n // this will create an Interpolate function based on the snapGrids\n // x is the Grid of the scrolled scroller and y will be the controlled scroller\n // it makes sense to create this only once and recall it for the interpolation\n // the function does a lot of value caching for performance\n const translate = swiper.rtlTranslate ? -swiper.translate : swiper.translate;\n if (swiper.params.controller.by === 'slide') {\n getInterpolateFunction(c);\n // i am not sure why the values have to be multiplicated this way, tried to invert the snapGrid\n // but it did not work out\n controlledTranslate = -swiper.controller.spline.interpolate(-translate);\n }\n if (!controlledTranslate || swiper.params.controller.by === 'container') {\n multiplier = (c.maxTranslate() - c.minTranslate()) / (swiper.maxTranslate() - swiper.minTranslate());\n if (Number.isNaN(multiplier) || !Number.isFinite(multiplier)) {\n multiplier = 1;\n }\n controlledTranslate = (translate - swiper.minTranslate()) * multiplier + c.minTranslate();\n }\n if (swiper.params.controller.inverse) {\n controlledTranslate = c.maxTranslate() - controlledTranslate;\n }\n c.updateProgress(controlledTranslate);\n c.setTranslate(controlledTranslate, swiper);\n c.updateActiveIndex();\n c.updateSlidesClasses();\n }\n if (Array.isArray(controlled)) {\n for (let i = 0; i < controlled.length; i += 1) {\n if (controlled[i] !== byController && controlled[i] instanceof Swiper) {\n setControlledTranslate(controlled[i]);\n }\n }\n } else if (controlled instanceof Swiper && byController !== controlled) {\n setControlledTranslate(controlled);\n }\n }\n function setTransition(duration, byController) {\n const Swiper = swiper.constructor;\n const controlled = swiper.controller.control;\n let i;\n function setControlledTransition(c) {\n if (c.destroyed) return;\n c.setTransition(duration, swiper);\n if (duration !== 0) {\n c.transitionStart();\n if (c.params.autoHeight) {\n nextTick(() => {\n c.updateAutoHeight();\n });\n }\n elementTransitionEnd(c.wrapperEl, () => {\n if (!controlled) return;\n c.transitionEnd();\n });\n }\n }\n if (Array.isArray(controlled)) {\n for (i = 0; i < controlled.length; i += 1) {\n if (controlled[i] !== byController && controlled[i] instanceof Swiper) {\n setControlledTransition(controlled[i]);\n }\n }\n } else if (controlled instanceof Swiper && byController !== controlled) {\n setControlledTransition(controlled);\n }\n }\n function removeSpline() {\n if (!swiper.controller.control) return;\n if (swiper.controller.spline) {\n swiper.controller.spline = undefined;\n delete swiper.controller.spline;\n }\n }\n on('beforeInit', () => {\n if (typeof window !== 'undefined' && (\n // eslint-disable-line\n typeof swiper.params.controller.control === 'string' || swiper.params.controller.control instanceof HTMLElement)) {\n const controlElement = document.querySelector(swiper.params.controller.control);\n if (controlElement && controlElement.swiper) {\n swiper.controller.control = controlElement.swiper;\n } else if (controlElement) {\n const onControllerSwiper = e => {\n swiper.controller.control = e.detail[0];\n swiper.update();\n controlElement.removeEventListener('init', onControllerSwiper);\n };\n controlElement.addEventListener('init', onControllerSwiper);\n }\n return;\n }\n swiper.controller.control = swiper.params.controller.control;\n });\n on('update', () => {\n removeSpline();\n });\n on('resize', () => {\n removeSpline();\n });\n on('observerUpdate', () => {\n removeSpline();\n });\n on('setTranslate', (_s, translate, byController) => {\n if (!swiper.controller.control || swiper.controller.control.destroyed) return;\n swiper.controller.setTranslate(translate, byController);\n });\n on('setTransition', (_s, duration, byController) => {\n if (!swiper.controller.control || swiper.controller.control.destroyed) return;\n swiper.controller.setTransition(duration, byController);\n });\n Object.assign(swiper.controller, {\n setTranslate,\n setTransition\n });\n}\n\nexport { Controller as default };\n","import { c as classesToSelector } from '../shared/classes-to-selector.mjs';\nimport { c as createElement, g as elementIndex } from '../shared/utils.mjs';\n\nfunction A11y(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n a11y: {\n enabled: true,\n notificationClass: 'swiper-notification',\n prevSlideMessage: 'Previous slide',\n nextSlideMessage: 'Next slide',\n firstSlideMessage: 'This is the first slide',\n lastSlideMessage: 'This is the last slide',\n paginationBulletMessage: 'Go to slide {{index}}',\n slideLabelMessage: '{{index}} / {{slidesLength}}',\n containerMessage: null,\n containerRoleDescriptionMessage: null,\n itemRoleDescriptionMessage: null,\n slideRole: 'group',\n id: null\n }\n });\n swiper.a11y = {\n clicked: false\n };\n let liveRegion = null;\n function notify(message) {\n const notification = liveRegion;\n if (notification.length === 0) return;\n notification.innerHTML = '';\n notification.innerHTML = message;\n }\n const makeElementsArray = el => (Array.isArray(el) ? el : [el]).filter(e => !!e);\n function getRandomNumber(size) {\n if (size === void 0) {\n size = 16;\n }\n const randomChar = () => Math.round(16 * Math.random()).toString(16);\n return 'x'.repeat(size).replace(/x/g, randomChar);\n }\n function makeElFocusable(el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('tabIndex', '0');\n });\n }\n function makeElNotFocusable(el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('tabIndex', '-1');\n });\n }\n function addElRole(el, role) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('role', role);\n });\n }\n function addElRoleDescription(el, description) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-roledescription', description);\n });\n }\n function addElControls(el, controls) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-controls', controls);\n });\n }\n function addElLabel(el, label) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-label', label);\n });\n }\n function addElId(el, id) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('id', id);\n });\n }\n function addElLive(el, live) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-live', live);\n });\n }\n function disableEl(el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-disabled', true);\n });\n }\n function enableEl(el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-disabled', false);\n });\n }\n function onEnterOrSpaceKey(e) {\n if (e.keyCode !== 13 && e.keyCode !== 32) return;\n const params = swiper.params.a11y;\n const targetEl = e.target;\n if (swiper.pagination && swiper.pagination.el && (targetEl === swiper.pagination.el || swiper.pagination.el.contains(e.target))) {\n if (!e.target.matches(classesToSelector(swiper.params.pagination.bulletClass))) return;\n }\n if (swiper.navigation && swiper.navigation.nextEl && targetEl === swiper.navigation.nextEl) {\n if (!(swiper.isEnd && !swiper.params.loop)) {\n swiper.slideNext();\n }\n if (swiper.isEnd) {\n notify(params.lastSlideMessage);\n } else {\n notify(params.nextSlideMessage);\n }\n }\n if (swiper.navigation && swiper.navigation.prevEl && targetEl === swiper.navigation.prevEl) {\n if (!(swiper.isBeginning && !swiper.params.loop)) {\n swiper.slidePrev();\n }\n if (swiper.isBeginning) {\n notify(params.firstSlideMessage);\n } else {\n notify(params.prevSlideMessage);\n }\n }\n if (swiper.pagination && targetEl.matches(classesToSelector(swiper.params.pagination.bulletClass))) {\n targetEl.click();\n }\n }\n function updateNavigation() {\n if (swiper.params.loop || swiper.params.rewind || !swiper.navigation) return;\n const {\n nextEl,\n prevEl\n } = swiper.navigation;\n if (prevEl) {\n if (swiper.isBeginning) {\n disableEl(prevEl);\n makeElNotFocusable(prevEl);\n } else {\n enableEl(prevEl);\n makeElFocusable(prevEl);\n }\n }\n if (nextEl) {\n if (swiper.isEnd) {\n disableEl(nextEl);\n makeElNotFocusable(nextEl);\n } else {\n enableEl(nextEl);\n makeElFocusable(nextEl);\n }\n }\n }\n function hasPagination() {\n return swiper.pagination && swiper.pagination.bullets && swiper.pagination.bullets.length;\n }\n function hasClickablePagination() {\n return hasPagination() && swiper.params.pagination.clickable;\n }\n function updatePagination() {\n const params = swiper.params.a11y;\n if (!hasPagination()) return;\n swiper.pagination.bullets.forEach(bulletEl => {\n if (swiper.params.pagination.clickable) {\n makeElFocusable(bulletEl);\n if (!swiper.params.pagination.renderBullet) {\n addElRole(bulletEl, 'button');\n addElLabel(bulletEl, params.paginationBulletMessage.replace(/\\{\\{index\\}\\}/, elementIndex(bulletEl) + 1));\n }\n }\n if (bulletEl.matches(classesToSelector(swiper.params.pagination.bulletActiveClass))) {\n bulletEl.setAttribute('aria-current', 'true');\n } else {\n bulletEl.removeAttribute('aria-current');\n }\n });\n }\n const initNavEl = (el, wrapperId, message) => {\n makeElFocusable(el);\n if (el.tagName !== 'BUTTON') {\n addElRole(el, 'button');\n el.addEventListener('keydown', onEnterOrSpaceKey);\n }\n addElLabel(el, message);\n addElControls(el, wrapperId);\n };\n const handlePointerDown = () => {\n swiper.a11y.clicked = true;\n };\n const handlePointerUp = () => {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n if (!swiper.destroyed) {\n swiper.a11y.clicked = false;\n }\n });\n });\n };\n const handleFocus = e => {\n if (swiper.a11y.clicked) return;\n const slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);\n if (!slideEl || !swiper.slides.includes(slideEl)) return;\n const isActive = swiper.slides.indexOf(slideEl) === swiper.activeIndex;\n const isVisible = swiper.params.watchSlidesProgress && swiper.visibleSlides && swiper.visibleSlides.includes(slideEl);\n if (isActive || isVisible) return;\n if (e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents) return;\n if (swiper.isHorizontal()) {\n swiper.el.scrollLeft = 0;\n } else {\n swiper.el.scrollTop = 0;\n }\n swiper.slideTo(swiper.slides.indexOf(slideEl), 0);\n };\n const initSlides = () => {\n const params = swiper.params.a11y;\n if (params.itemRoleDescriptionMessage) {\n addElRoleDescription(swiper.slides, params.itemRoleDescriptionMessage);\n }\n if (params.slideRole) {\n addElRole(swiper.slides, params.slideRole);\n }\n const slidesLength = swiper.slides.length;\n if (params.slideLabelMessage) {\n swiper.slides.forEach((slideEl, index) => {\n const slideIndex = swiper.params.loop ? parseInt(slideEl.getAttribute('data-swiper-slide-index'), 10) : index;\n const ariaLabelMessage = params.slideLabelMessage.replace(/\\{\\{index\\}\\}/, slideIndex + 1).replace(/\\{\\{slidesLength\\}\\}/, slidesLength);\n addElLabel(slideEl, ariaLabelMessage);\n });\n }\n };\n const init = () => {\n const params = swiper.params.a11y;\n swiper.el.append(liveRegion);\n\n // Container\n const containerEl = swiper.el;\n if (params.containerRoleDescriptionMessage) {\n addElRoleDescription(containerEl, params.containerRoleDescriptionMessage);\n }\n if (params.containerMessage) {\n addElLabel(containerEl, params.containerMessage);\n }\n\n // Wrapper\n const wrapperEl = swiper.wrapperEl;\n const wrapperId = params.id || wrapperEl.getAttribute('id') || `swiper-wrapper-${getRandomNumber(16)}`;\n const live = swiper.params.autoplay && swiper.params.autoplay.enabled ? 'off' : 'polite';\n addElId(wrapperEl, wrapperId);\n addElLive(wrapperEl, live);\n\n // Slide\n initSlides();\n\n // Navigation\n let {\n nextEl,\n prevEl\n } = swiper.navigation ? swiper.navigation : {};\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n if (nextEl) {\n nextEl.forEach(el => initNavEl(el, wrapperId, params.nextSlideMessage));\n }\n if (prevEl) {\n prevEl.forEach(el => initNavEl(el, wrapperId, params.prevSlideMessage));\n }\n\n // Pagination\n if (hasClickablePagination()) {\n const paginationEl = Array.isArray(swiper.pagination.el) ? swiper.pagination.el : [swiper.pagination.el];\n paginationEl.forEach(el => {\n el.addEventListener('keydown', onEnterOrSpaceKey);\n });\n }\n\n // Tab focus\n swiper.el.addEventListener('focus', handleFocus, true);\n swiper.el.addEventListener('pointerdown', handlePointerDown, true);\n swiper.el.addEventListener('pointerup', handlePointerUp, true);\n };\n function destroy() {\n if (liveRegion) liveRegion.remove();\n let {\n nextEl,\n prevEl\n } = swiper.navigation ? swiper.navigation : {};\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n if (nextEl) {\n nextEl.forEach(el => el.removeEventListener('keydown', onEnterOrSpaceKey));\n }\n if (prevEl) {\n prevEl.forEach(el => el.removeEventListener('keydown', onEnterOrSpaceKey));\n }\n\n // Pagination\n if (hasClickablePagination()) {\n const paginationEl = Array.isArray(swiper.pagination.el) ? swiper.pagination.el : [swiper.pagination.el];\n paginationEl.forEach(el => {\n el.removeEventListener('keydown', onEnterOrSpaceKey);\n });\n }\n\n // Tab focus\n swiper.el.removeEventListener('focus', handleFocus, true);\n swiper.el.removeEventListener('pointerdown', handlePointerDown, true);\n swiper.el.removeEventListener('pointerup', handlePointerUp, true);\n }\n on('beforeInit', () => {\n liveRegion = createElement('span', swiper.params.a11y.notificationClass);\n liveRegion.setAttribute('aria-live', 'assertive');\n liveRegion.setAttribute('aria-atomic', 'true');\n });\n on('afterInit', () => {\n if (!swiper.params.a11y.enabled) return;\n init();\n });\n on('slidesLengthChange snapGridLengthChange slidesGridLengthChange', () => {\n if (!swiper.params.a11y.enabled) return;\n initSlides();\n });\n on('fromEdge toEdge afterInit lock unlock', () => {\n if (!swiper.params.a11y.enabled) return;\n updateNavigation();\n });\n on('paginationUpdate', () => {\n if (!swiper.params.a11y.enabled) return;\n updatePagination();\n });\n on('destroy', () => {\n if (!swiper.params.a11y.enabled) return;\n destroy();\n });\n}\n\nexport { A11y as default };\n","import { a as getWindow } from '../shared/ssr-window.esm.mjs';\n\nfunction History(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n history: {\n enabled: false,\n root: '',\n replaceState: false,\n key: 'slides',\n keepQuery: false\n }\n });\n let initialized = false;\n let paths = {};\n const slugify = text => {\n return text.toString().replace(/\\s+/g, '-').replace(/[^\\w-]+/g, '').replace(/--+/g, '-').replace(/^-+/, '').replace(/-+$/, '');\n };\n const getPathValues = urlOverride => {\n const window = getWindow();\n let location;\n if (urlOverride) {\n location = new URL(urlOverride);\n } else {\n location = window.location;\n }\n const pathArray = location.pathname.slice(1).split('/').filter(part => part !== '');\n const total = pathArray.length;\n const key = pathArray[total - 2];\n const value = pathArray[total - 1];\n return {\n key,\n value\n };\n };\n const setHistory = (key, index) => {\n const window = getWindow();\n if (!initialized || !swiper.params.history.enabled) return;\n let location;\n if (swiper.params.url) {\n location = new URL(swiper.params.url);\n } else {\n location = window.location;\n }\n const slide = swiper.slides[index];\n let value = slugify(slide.getAttribute('data-history'));\n if (swiper.params.history.root.length > 0) {\n let root = swiper.params.history.root;\n if (root[root.length - 1] === '/') root = root.slice(0, root.length - 1);\n value = `${root}/${key ? `${key}/` : ''}${value}`;\n } else if (!location.pathname.includes(key)) {\n value = `${key ? `${key}/` : ''}${value}`;\n }\n if (swiper.params.history.keepQuery) {\n value += location.search;\n }\n const currentState = window.history.state;\n if (currentState && currentState.value === value) {\n return;\n }\n if (swiper.params.history.replaceState) {\n window.history.replaceState({\n value\n }, null, value);\n } else {\n window.history.pushState({\n value\n }, null, value);\n }\n };\n const scrollToSlide = (speed, value, runCallbacks) => {\n if (value) {\n for (let i = 0, length = swiper.slides.length; i < length; i += 1) {\n const slide = swiper.slides[i];\n const slideHistory = slugify(slide.getAttribute('data-history'));\n if (slideHistory === value) {\n const index = swiper.getSlideIndex(slide);\n swiper.slideTo(index, speed, runCallbacks);\n }\n }\n } else {\n swiper.slideTo(0, speed, runCallbacks);\n }\n };\n const setHistoryPopState = () => {\n paths = getPathValues(swiper.params.url);\n scrollToSlide(swiper.params.speed, paths.value, false);\n };\n const init = () => {\n const window = getWindow();\n if (!swiper.params.history) return;\n if (!window.history || !window.history.pushState) {\n swiper.params.history.enabled = false;\n swiper.params.hashNavigation.enabled = true;\n return;\n }\n initialized = true;\n paths = getPathValues(swiper.params.url);\n if (!paths.key && !paths.value) {\n if (!swiper.params.history.replaceState) {\n window.addEventListener('popstate', setHistoryPopState);\n }\n return;\n }\n scrollToSlide(0, paths.value, swiper.params.runCallbacksOnInit);\n if (!swiper.params.history.replaceState) {\n window.addEventListener('popstate', setHistoryPopState);\n }\n };\n const destroy = () => {\n const window = getWindow();\n if (!swiper.params.history.replaceState) {\n window.removeEventListener('popstate', setHistoryPopState);\n }\n };\n on('init', () => {\n if (swiper.params.history.enabled) {\n init();\n }\n });\n on('destroy', () => {\n if (swiper.params.history.enabled) {\n destroy();\n }\n });\n on('transitionEnd _freeModeNoMomentumRelease', () => {\n if (initialized) {\n setHistory(swiper.params.history.key, swiper.activeIndex);\n }\n });\n on('slideChange', () => {\n if (initialized && swiper.params.cssMode) {\n setHistory(swiper.params.history.key, swiper.activeIndex);\n }\n });\n}\n\nexport { History as default };\n","import { g as getDocument, a as getWindow } from '../shared/ssr-window.esm.mjs';\nimport { e as elementChildren } from '../shared/utils.mjs';\n\nfunction HashNavigation(_ref) {\n let {\n swiper,\n extendParams,\n emit,\n on\n } = _ref;\n let initialized = false;\n const document = getDocument();\n const window = getWindow();\n extendParams({\n hashNavigation: {\n enabled: false,\n replaceState: false,\n watchState: false,\n getSlideIndex(_s, hash) {\n if (swiper.virtual && swiper.params.virtual.enabled) {\n const slideWithHash = swiper.slides.filter(slideEl => slideEl.getAttribute('data-hash') === hash)[0];\n if (!slideWithHash) return 0;\n const index = parseInt(slideWithHash.getAttribute('data-swiper-slide-index'), 10);\n return index;\n }\n return swiper.getSlideIndex(elementChildren(swiper.slidesEl, `.${swiper.params.slideClass}[data-hash=\"${hash}\"], swiper-slide[data-hash=\"${hash}\"]`)[0]);\n }\n }\n });\n const onHashChange = () => {\n emit('hashChange');\n const newHash = document.location.hash.replace('#', '');\n const activeSlideEl = swiper.virtual && swiper.params.virtual.enabled ? swiper.slidesEl.querySelector(`[data-swiper-slide-index=\"${swiper.activeIndex}\"]`) : swiper.slides[swiper.activeIndex];\n const activeSlideHash = activeSlideEl ? activeSlideEl.getAttribute('data-hash') : '';\n if (newHash !== activeSlideHash) {\n const newIndex = swiper.params.hashNavigation.getSlideIndex(swiper, newHash);\n if (typeof newIndex === 'undefined' || Number.isNaN(newIndex)) return;\n swiper.slideTo(newIndex);\n }\n };\n const setHash = () => {\n if (!initialized || !swiper.params.hashNavigation.enabled) return;\n const activeSlideEl = swiper.virtual && swiper.params.virtual.enabled ? swiper.slidesEl.querySelector(`[data-swiper-slide-index=\"${swiper.activeIndex}\"]`) : swiper.slides[swiper.activeIndex];\n const activeSlideHash = activeSlideEl ? activeSlideEl.getAttribute('data-hash') || activeSlideEl.getAttribute('data-history') : '';\n if (swiper.params.hashNavigation.replaceState && window.history && window.history.replaceState) {\n window.history.replaceState(null, null, `#${activeSlideHash}` || '');\n emit('hashSet');\n } else {\n document.location.hash = activeSlideHash || '';\n emit('hashSet');\n }\n };\n const init = () => {\n if (!swiper.params.hashNavigation.enabled || swiper.params.history && swiper.params.history.enabled) return;\n initialized = true;\n const hash = document.location.hash.replace('#', '');\n if (hash) {\n const speed = 0;\n const index = swiper.params.hashNavigation.getSlideIndex(swiper, hash);\n swiper.slideTo(index || 0, speed, swiper.params.runCallbacksOnInit, true);\n }\n if (swiper.params.hashNavigation.watchState) {\n window.addEventListener('hashchange', onHashChange);\n }\n };\n const destroy = () => {\n if (swiper.params.hashNavigation.watchState) {\n window.removeEventListener('hashchange', onHashChange);\n }\n };\n on('init', () => {\n if (swiper.params.hashNavigation.enabled) {\n init();\n }\n });\n on('destroy', () => {\n if (swiper.params.hashNavigation.enabled) {\n destroy();\n }\n });\n on('transitionEnd _freeModeNoMomentumRelease', () => {\n if (initialized) {\n setHash();\n }\n });\n on('slideChange', () => {\n if (initialized && swiper.params.cssMode) {\n setHash();\n }\n });\n}\n\nexport { HashNavigation as default };\n","import { g as getDocument } from '../shared/ssr-window.esm.mjs';\n\n/* eslint no-underscore-dangle: \"off\" */\n/* eslint no-use-before-define: \"off\" */\nfunction Autoplay(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit,\n params\n } = _ref;\n swiper.autoplay = {\n running: false,\n paused: false,\n timeLeft: 0\n };\n extendParams({\n autoplay: {\n enabled: false,\n delay: 3000,\n waitForTransition: true,\n disableOnInteraction: true,\n stopOnLastSlide: false,\n reverseDirection: false,\n pauseOnMouseEnter: false\n }\n });\n let timeout;\n let raf;\n let autoplayDelayTotal = params && params.autoplay ? params.autoplay.delay : 3000;\n let autoplayDelayCurrent = params && params.autoplay ? params.autoplay.delay : 3000;\n let autoplayTimeLeft;\n let autoplayStartTime = new Date().getTime;\n let wasPaused;\n let isTouched;\n let pausedByTouch;\n let touchStartTimeout;\n let slideChanged;\n let pausedByInteraction;\n function onTransitionEnd(e) {\n if (!swiper || swiper.destroyed || !swiper.wrapperEl) return;\n if (e.target !== swiper.wrapperEl) return;\n swiper.wrapperEl.removeEventListener('transitionend', onTransitionEnd);\n resume();\n }\n const calcTimeLeft = () => {\n if (swiper.destroyed || !swiper.autoplay.running) return;\n if (swiper.autoplay.paused) {\n wasPaused = true;\n } else if (wasPaused) {\n autoplayDelayCurrent = autoplayTimeLeft;\n wasPaused = false;\n }\n const timeLeft = swiper.autoplay.paused ? autoplayTimeLeft : autoplayStartTime + autoplayDelayCurrent - new Date().getTime();\n swiper.autoplay.timeLeft = timeLeft;\n emit('autoplayTimeLeft', timeLeft, timeLeft / autoplayDelayTotal);\n raf = requestAnimationFrame(() => {\n calcTimeLeft();\n });\n };\n const getSlideDelay = () => {\n let activeSlideEl;\n if (swiper.virtual && swiper.params.virtual.enabled) {\n activeSlideEl = swiper.slides.filter(slideEl => slideEl.classList.contains('swiper-slide-active'))[0];\n } else {\n activeSlideEl = swiper.slides[swiper.activeIndex];\n }\n if (!activeSlideEl) return undefined;\n const currentSlideDelay = parseInt(activeSlideEl.getAttribute('data-swiper-autoplay'), 10);\n return currentSlideDelay;\n };\n const run = delayForce => {\n if (swiper.destroyed || !swiper.autoplay.running) return;\n cancelAnimationFrame(raf);\n calcTimeLeft();\n let delay = typeof delayForce === 'undefined' ? swiper.params.autoplay.delay : delayForce;\n autoplayDelayTotal = swiper.params.autoplay.delay;\n autoplayDelayCurrent = swiper.params.autoplay.delay;\n const currentSlideDelay = getSlideDelay();\n if (!Number.isNaN(currentSlideDelay) && currentSlideDelay > 0 && typeof delayForce === 'undefined') {\n delay = currentSlideDelay;\n autoplayDelayTotal = currentSlideDelay;\n autoplayDelayCurrent = currentSlideDelay;\n }\n autoplayTimeLeft = delay;\n const speed = swiper.params.speed;\n const proceed = () => {\n if (!swiper || swiper.destroyed) return;\n if (swiper.params.autoplay.reverseDirection) {\n if (!swiper.isBeginning || swiper.params.loop || swiper.params.rewind) {\n swiper.slidePrev(speed, true, true);\n emit('autoplay');\n } else if (!swiper.params.autoplay.stopOnLastSlide) {\n swiper.slideTo(swiper.slides.length - 1, speed, true, true);\n emit('autoplay');\n }\n } else {\n if (!swiper.isEnd || swiper.params.loop || swiper.params.rewind) {\n swiper.slideNext(speed, true, true);\n emit('autoplay');\n } else if (!swiper.params.autoplay.stopOnLastSlide) {\n swiper.slideTo(0, speed, true, true);\n emit('autoplay');\n }\n }\n if (swiper.params.cssMode) {\n autoplayStartTime = new Date().getTime();\n requestAnimationFrame(() => {\n run();\n });\n }\n };\n if (delay > 0) {\n clearTimeout(timeout);\n timeout = setTimeout(() => {\n proceed();\n }, delay);\n } else {\n requestAnimationFrame(() => {\n proceed();\n });\n }\n\n // eslint-disable-next-line\n return delay;\n };\n const start = () => {\n swiper.autoplay.running = true;\n run();\n emit('autoplayStart');\n };\n const stop = () => {\n swiper.autoplay.running = false;\n clearTimeout(timeout);\n cancelAnimationFrame(raf);\n emit('autoplayStop');\n };\n const pause = (internal, reset) => {\n if (swiper.destroyed || !swiper.autoplay.running) return;\n clearTimeout(timeout);\n if (!internal) {\n pausedByInteraction = true;\n }\n const proceed = () => {\n emit('autoplayPause');\n if (swiper.params.autoplay.waitForTransition) {\n swiper.wrapperEl.addEventListener('transitionend', onTransitionEnd);\n } else {\n resume();\n }\n };\n swiper.autoplay.paused = true;\n if (reset) {\n if (slideChanged) {\n autoplayTimeLeft = swiper.params.autoplay.delay;\n }\n slideChanged = false;\n proceed();\n return;\n }\n const delay = autoplayTimeLeft || swiper.params.autoplay.delay;\n autoplayTimeLeft = delay - (new Date().getTime() - autoplayStartTime);\n if (swiper.isEnd && autoplayTimeLeft < 0 && !swiper.params.loop) return;\n if (autoplayTimeLeft < 0) autoplayTimeLeft = 0;\n proceed();\n };\n const resume = () => {\n if (swiper.isEnd && autoplayTimeLeft < 0 && !swiper.params.loop || swiper.destroyed || !swiper.autoplay.running) return;\n autoplayStartTime = new Date().getTime();\n if (pausedByInteraction) {\n pausedByInteraction = false;\n run(autoplayTimeLeft);\n } else {\n run();\n }\n swiper.autoplay.paused = false;\n emit('autoplayResume');\n };\n const onVisibilityChange = () => {\n if (swiper.destroyed || !swiper.autoplay.running) return;\n const document = getDocument();\n if (document.visibilityState === 'hidden') {\n pausedByInteraction = true;\n pause(true);\n }\n if (document.visibilityState === 'visible') {\n resume();\n }\n };\n const onPointerEnter = e => {\n if (e.pointerType !== 'mouse') return;\n pausedByInteraction = true;\n if (swiper.animating || swiper.autoplay.paused) return;\n pause(true);\n };\n const onPointerLeave = e => {\n if (e.pointerType !== 'mouse') return;\n if (swiper.autoplay.paused) {\n resume();\n }\n };\n const attachMouseEvents = () => {\n if (swiper.params.autoplay.pauseOnMouseEnter) {\n swiper.el.addEventListener('pointerenter', onPointerEnter);\n swiper.el.addEventListener('pointerleave', onPointerLeave);\n }\n };\n const detachMouseEvents = () => {\n swiper.el.removeEventListener('pointerenter', onPointerEnter);\n swiper.el.removeEventListener('pointerleave', onPointerLeave);\n };\n const attachDocumentEvents = () => {\n const document = getDocument();\n document.addEventListener('visibilitychange', onVisibilityChange);\n };\n const detachDocumentEvents = () => {\n const document = getDocument();\n document.removeEventListener('visibilitychange', onVisibilityChange);\n };\n on('init', () => {\n if (swiper.params.autoplay.enabled) {\n attachMouseEvents();\n attachDocumentEvents();\n autoplayStartTime = new Date().getTime();\n start();\n }\n });\n on('destroy', () => {\n detachMouseEvents();\n detachDocumentEvents();\n if (swiper.autoplay.running) {\n stop();\n }\n });\n on('beforeTransitionStart', (_s, speed, internal) => {\n if (swiper.destroyed || !swiper.autoplay.running) return;\n if (internal || !swiper.params.autoplay.disableOnInteraction) {\n pause(true, true);\n } else {\n stop();\n }\n });\n on('sliderFirstMove', () => {\n if (swiper.destroyed || !swiper.autoplay.running) return;\n if (swiper.params.autoplay.disableOnInteraction) {\n stop();\n return;\n }\n isTouched = true;\n pausedByTouch = false;\n pausedByInteraction = false;\n touchStartTimeout = setTimeout(() => {\n pausedByInteraction = true;\n pausedByTouch = true;\n pause(true);\n }, 200);\n });\n on('touchEnd', () => {\n if (swiper.destroyed || !swiper.autoplay.running || !isTouched) return;\n clearTimeout(touchStartTimeout);\n clearTimeout(timeout);\n if (swiper.params.autoplay.disableOnInteraction) {\n pausedByTouch = false;\n isTouched = false;\n return;\n }\n if (pausedByTouch && swiper.params.cssMode) resume();\n pausedByTouch = false;\n isTouched = false;\n });\n on('slideChange', () => {\n if (swiper.destroyed || !swiper.autoplay.running) return;\n slideChanged = true;\n });\n Object.assign(swiper.autoplay, {\n start,\n stop,\n pause,\n resume\n });\n}\n\nexport { Autoplay as default };\n","import { g as getDocument } from '../shared/ssr-window.esm.mjs';\nimport { j as isObject, e as elementChildren } from '../shared/utils.mjs';\n\nfunction Thumb(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n thumbs: {\n swiper: null,\n multipleActiveThumbs: true,\n autoScrollOffset: 0,\n slideThumbActiveClass: 'swiper-slide-thumb-active',\n thumbsContainerClass: 'swiper-thumbs'\n }\n });\n let initialized = false;\n let swiperCreated = false;\n swiper.thumbs = {\n swiper: null\n };\n function onThumbClick() {\n const thumbsSwiper = swiper.thumbs.swiper;\n if (!thumbsSwiper || thumbsSwiper.destroyed) return;\n const clickedIndex = thumbsSwiper.clickedIndex;\n const clickedSlide = thumbsSwiper.clickedSlide;\n if (clickedSlide && clickedSlide.classList.contains(swiper.params.thumbs.slideThumbActiveClass)) return;\n if (typeof clickedIndex === 'undefined' || clickedIndex === null) return;\n let slideToIndex;\n if (thumbsSwiper.params.loop) {\n slideToIndex = parseInt(thumbsSwiper.clickedSlide.getAttribute('data-swiper-slide-index'), 10);\n } else {\n slideToIndex = clickedIndex;\n }\n if (swiper.params.loop) {\n swiper.slideToLoop(slideToIndex);\n } else {\n swiper.slideTo(slideToIndex);\n }\n }\n function init() {\n const {\n thumbs: thumbsParams\n } = swiper.params;\n if (initialized) return false;\n initialized = true;\n const SwiperClass = swiper.constructor;\n if (thumbsParams.swiper instanceof SwiperClass) {\n swiper.thumbs.swiper = thumbsParams.swiper;\n Object.assign(swiper.thumbs.swiper.originalParams, {\n watchSlidesProgress: true,\n slideToClickedSlide: false\n });\n Object.assign(swiper.thumbs.swiper.params, {\n watchSlidesProgress: true,\n slideToClickedSlide: false\n });\n swiper.thumbs.swiper.update();\n } else if (isObject(thumbsParams.swiper)) {\n const thumbsSwiperParams = Object.assign({}, thumbsParams.swiper);\n Object.assign(thumbsSwiperParams, {\n watchSlidesProgress: true,\n slideToClickedSlide: false\n });\n swiper.thumbs.swiper = new SwiperClass(thumbsSwiperParams);\n swiperCreated = true;\n }\n swiper.thumbs.swiper.el.classList.add(swiper.params.thumbs.thumbsContainerClass);\n swiper.thumbs.swiper.on('tap', onThumbClick);\n return true;\n }\n function update(initial) {\n const thumbsSwiper = swiper.thumbs.swiper;\n if (!thumbsSwiper || thumbsSwiper.destroyed) return;\n const slidesPerView = thumbsSwiper.params.slidesPerView === 'auto' ? thumbsSwiper.slidesPerViewDynamic() : thumbsSwiper.params.slidesPerView;\n\n // Activate thumbs\n let thumbsToActivate = 1;\n const thumbActiveClass = swiper.params.thumbs.slideThumbActiveClass;\n if (swiper.params.slidesPerView > 1 && !swiper.params.centeredSlides) {\n thumbsToActivate = swiper.params.slidesPerView;\n }\n if (!swiper.params.thumbs.multipleActiveThumbs) {\n thumbsToActivate = 1;\n }\n thumbsToActivate = Math.floor(thumbsToActivate);\n thumbsSwiper.slides.forEach(slideEl => slideEl.classList.remove(thumbActiveClass));\n if (thumbsSwiper.params.loop || thumbsSwiper.params.virtual && thumbsSwiper.params.virtual.enabled) {\n for (let i = 0; i < thumbsToActivate; i += 1) {\n elementChildren(thumbsSwiper.slidesEl, `[data-swiper-slide-index=\"${swiper.realIndex + i}\"]`).forEach(slideEl => {\n slideEl.classList.add(thumbActiveClass);\n });\n }\n } else {\n for (let i = 0; i < thumbsToActivate; i += 1) {\n if (thumbsSwiper.slides[swiper.realIndex + i]) {\n thumbsSwiper.slides[swiper.realIndex + i].classList.add(thumbActiveClass);\n }\n }\n }\n const autoScrollOffset = swiper.params.thumbs.autoScrollOffset;\n const useOffset = autoScrollOffset && !thumbsSwiper.params.loop;\n if (swiper.realIndex !== thumbsSwiper.realIndex || useOffset) {\n const currentThumbsIndex = thumbsSwiper.activeIndex;\n let newThumbsIndex;\n let direction;\n if (thumbsSwiper.params.loop) {\n const newThumbsSlide = thumbsSwiper.slides.filter(slideEl => slideEl.getAttribute('data-swiper-slide-index') === `${swiper.realIndex}`)[0];\n newThumbsIndex = thumbsSwiper.slides.indexOf(newThumbsSlide);\n direction = swiper.activeIndex > swiper.previousIndex ? 'next' : 'prev';\n } else {\n newThumbsIndex = swiper.realIndex;\n direction = newThumbsIndex > swiper.previousIndex ? 'next' : 'prev';\n }\n if (useOffset) {\n newThumbsIndex += direction === 'next' ? autoScrollOffset : -1 * autoScrollOffset;\n }\n if (thumbsSwiper.visibleSlidesIndexes && thumbsSwiper.visibleSlidesIndexes.indexOf(newThumbsIndex) < 0) {\n if (thumbsSwiper.params.centeredSlides) {\n if (newThumbsIndex > currentThumbsIndex) {\n newThumbsIndex = newThumbsIndex - Math.floor(slidesPerView / 2) + 1;\n } else {\n newThumbsIndex = newThumbsIndex + Math.floor(slidesPerView / 2) - 1;\n }\n } else if (newThumbsIndex > currentThumbsIndex && thumbsSwiper.params.slidesPerGroup === 1) ;\n thumbsSwiper.slideTo(newThumbsIndex, initial ? 0 : undefined);\n }\n }\n }\n on('beforeInit', () => {\n const {\n thumbs\n } = swiper.params;\n if (!thumbs || !thumbs.swiper) return;\n if (typeof thumbs.swiper === 'string' || thumbs.swiper instanceof HTMLElement) {\n const document = getDocument();\n const getThumbsElementAndInit = () => {\n const thumbsElement = typeof thumbs.swiper === 'string' ? document.querySelector(thumbs.swiper) : thumbs.swiper;\n if (thumbsElement && thumbsElement.swiper) {\n thumbs.swiper = thumbsElement.swiper;\n init();\n update(true);\n } else if (thumbsElement) {\n const onThumbsSwiper = e => {\n thumbs.swiper = e.detail[0];\n thumbsElement.removeEventListener('init', onThumbsSwiper);\n init();\n update(true);\n thumbs.swiper.update();\n swiper.update();\n };\n thumbsElement.addEventListener('init', onThumbsSwiper);\n }\n return thumbsElement;\n };\n const watchForThumbsToAppear = () => {\n if (swiper.destroyed) return;\n const thumbsElement = getThumbsElementAndInit();\n if (!thumbsElement) {\n requestAnimationFrame(watchForThumbsToAppear);\n }\n };\n requestAnimationFrame(watchForThumbsToAppear);\n } else {\n init();\n update(true);\n }\n });\n on('slideChange update resize observerUpdate', () => {\n update();\n });\n on('setTransition', (_s, duration) => {\n const thumbsSwiper = swiper.thumbs.swiper;\n if (!thumbsSwiper || thumbsSwiper.destroyed) return;\n thumbsSwiper.setTransition(duration);\n });\n on('beforeDestroy', () => {\n const thumbsSwiper = swiper.thumbs.swiper;\n if (!thumbsSwiper || thumbsSwiper.destroyed) return;\n if (swiperCreated) {\n thumbsSwiper.destroy();\n }\n });\n Object.assign(swiper.thumbs, {\n init,\n update\n });\n}\n\nexport { Thumb as default };\n","import { d as now, i as elementTransitionEnd } from '../shared/utils.mjs';\n\nfunction freeMode(_ref) {\n let {\n swiper,\n extendParams,\n emit,\n once\n } = _ref;\n extendParams({\n freeMode: {\n enabled: false,\n momentum: true,\n momentumRatio: 1,\n momentumBounce: true,\n momentumBounceRatio: 1,\n momentumVelocityRatio: 1,\n sticky: false,\n minimumVelocity: 0.02\n }\n });\n function onTouchStart() {\n if (swiper.params.cssMode) return;\n const translate = swiper.getTranslate();\n swiper.setTranslate(translate);\n swiper.setTransition(0);\n swiper.touchEventsData.velocities.length = 0;\n swiper.freeMode.onTouchEnd({\n currentPos: swiper.rtl ? swiper.translate : -swiper.translate\n });\n }\n function onTouchMove() {\n if (swiper.params.cssMode) return;\n const {\n touchEventsData: data,\n touches\n } = swiper;\n // Velocity\n if (data.velocities.length === 0) {\n data.velocities.push({\n position: touches[swiper.isHorizontal() ? 'startX' : 'startY'],\n time: data.touchStartTime\n });\n }\n data.velocities.push({\n position: touches[swiper.isHorizontal() ? 'currentX' : 'currentY'],\n time: now()\n });\n }\n function onTouchEnd(_ref2) {\n let {\n currentPos\n } = _ref2;\n if (swiper.params.cssMode) return;\n const {\n params,\n wrapperEl,\n rtlTranslate: rtl,\n snapGrid,\n touchEventsData: data\n } = swiper;\n // Time diff\n const touchEndTime = now();\n const timeDiff = touchEndTime - data.touchStartTime;\n if (currentPos < -swiper.minTranslate()) {\n swiper.slideTo(swiper.activeIndex);\n return;\n }\n if (currentPos > -swiper.maxTranslate()) {\n if (swiper.slides.length < snapGrid.length) {\n swiper.slideTo(snapGrid.length - 1);\n } else {\n swiper.slideTo(swiper.slides.length - 1);\n }\n return;\n }\n if (params.freeMode.momentum) {\n if (data.velocities.length > 1) {\n const lastMoveEvent = data.velocities.pop();\n const velocityEvent = data.velocities.pop();\n const distance = lastMoveEvent.position - velocityEvent.position;\n const time = lastMoveEvent.time - velocityEvent.time;\n swiper.velocity = distance / time;\n swiper.velocity /= 2;\n if (Math.abs(swiper.velocity) < params.freeMode.minimumVelocity) {\n swiper.velocity = 0;\n }\n // this implies that the user stopped moving a finger then released.\n // There would be no events with distance zero, so the last event is stale.\n if (time > 150 || now() - lastMoveEvent.time > 300) {\n swiper.velocity = 0;\n }\n } else {\n swiper.velocity = 0;\n }\n swiper.velocity *= params.freeMode.momentumVelocityRatio;\n data.velocities.length = 0;\n let momentumDuration = 1000 * params.freeMode.momentumRatio;\n const momentumDistance = swiper.velocity * momentumDuration;\n let newPosition = swiper.translate + momentumDistance;\n if (rtl) newPosition = -newPosition;\n let doBounce = false;\n let afterBouncePosition;\n const bounceAmount = Math.abs(swiper.velocity) * 20 * params.freeMode.momentumBounceRatio;\n let needsLoopFix;\n if (newPosition < swiper.maxTranslate()) {\n if (params.freeMode.momentumBounce) {\n if (newPosition + swiper.maxTranslate() < -bounceAmount) {\n newPosition = swiper.maxTranslate() - bounceAmount;\n }\n afterBouncePosition = swiper.maxTranslate();\n doBounce = true;\n data.allowMomentumBounce = true;\n } else {\n newPosition = swiper.maxTranslate();\n }\n if (params.loop && params.centeredSlides) needsLoopFix = true;\n } else if (newPosition > swiper.minTranslate()) {\n if (params.freeMode.momentumBounce) {\n if (newPosition - swiper.minTranslate() > bounceAmount) {\n newPosition = swiper.minTranslate() + bounceAmount;\n }\n afterBouncePosition = swiper.minTranslate();\n doBounce = true;\n data.allowMomentumBounce = true;\n } else {\n newPosition = swiper.minTranslate();\n }\n if (params.loop && params.centeredSlides) needsLoopFix = true;\n } else if (params.freeMode.sticky) {\n let nextSlide;\n for (let j = 0; j < snapGrid.length; j += 1) {\n if (snapGrid[j] > -newPosition) {\n nextSlide = j;\n break;\n }\n }\n if (Math.abs(snapGrid[nextSlide] - newPosition) < Math.abs(snapGrid[nextSlide - 1] - newPosition) || swiper.swipeDirection === 'next') {\n newPosition = snapGrid[nextSlide];\n } else {\n newPosition = snapGrid[nextSlide - 1];\n }\n newPosition = -newPosition;\n }\n if (needsLoopFix) {\n once('transitionEnd', () => {\n swiper.loopFix();\n });\n }\n // Fix duration\n if (swiper.velocity !== 0) {\n if (rtl) {\n momentumDuration = Math.abs((-newPosition - swiper.translate) / swiper.velocity);\n } else {\n momentumDuration = Math.abs((newPosition - swiper.translate) / swiper.velocity);\n }\n if (params.freeMode.sticky) {\n // If freeMode.sticky is active and the user ends a swipe with a slow-velocity\n // event, then durations can be 20+ seconds to slide one (or zero!) slides.\n // It's easy to see this when simulating touch with mouse events. To fix this,\n // limit single-slide swipes to the default slide duration. This also has the\n // nice side effect of matching slide speed if the user stopped moving before\n // lifting finger or mouse vs. moving slowly before lifting the finger/mouse.\n // For faster swipes, also apply limits (albeit higher ones).\n const moveDistance = Math.abs((rtl ? -newPosition : newPosition) - swiper.translate);\n const currentSlideSize = swiper.slidesSizesGrid[swiper.activeIndex];\n if (moveDistance < currentSlideSize) {\n momentumDuration = params.speed;\n } else if (moveDistance < 2 * currentSlideSize) {\n momentumDuration = params.speed * 1.5;\n } else {\n momentumDuration = params.speed * 2.5;\n }\n }\n } else if (params.freeMode.sticky) {\n swiper.slideToClosest();\n return;\n }\n if (params.freeMode.momentumBounce && doBounce) {\n swiper.updateProgress(afterBouncePosition);\n swiper.setTransition(momentumDuration);\n swiper.setTranslate(newPosition);\n swiper.transitionStart(true, swiper.swipeDirection);\n swiper.animating = true;\n elementTransitionEnd(wrapperEl, () => {\n if (!swiper || swiper.destroyed || !data.allowMomentumBounce) return;\n emit('momentumBounce');\n swiper.setTransition(params.speed);\n setTimeout(() => {\n swiper.setTranslate(afterBouncePosition);\n elementTransitionEnd(wrapperEl, () => {\n if (!swiper || swiper.destroyed) return;\n swiper.transitionEnd();\n });\n }, 0);\n });\n } else if (swiper.velocity) {\n emit('_freeModeNoMomentumRelease');\n swiper.updateProgress(newPosition);\n swiper.setTransition(momentumDuration);\n swiper.setTranslate(newPosition);\n swiper.transitionStart(true, swiper.swipeDirection);\n if (!swiper.animating) {\n swiper.animating = true;\n elementTransitionEnd(wrapperEl, () => {\n if (!swiper || swiper.destroyed) return;\n swiper.transitionEnd();\n });\n }\n } else {\n swiper.updateProgress(newPosition);\n }\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n } else if (params.freeMode.sticky) {\n swiper.slideToClosest();\n return;\n } else if (params.freeMode) {\n emit('_freeModeNoMomentumRelease');\n }\n if (!params.freeMode.momentum || timeDiff >= params.longSwipesMs) {\n swiper.updateProgress();\n swiper.updateActiveIndex();\n swiper.updateSlidesClasses();\n }\n }\n Object.assign(swiper, {\n freeMode: {\n onTouchStart,\n onTouchMove,\n onTouchEnd\n }\n });\n}\n\nexport { freeMode as default };\n","function Grid(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n grid: {\n rows: 1,\n fill: 'column'\n }\n });\n let slidesNumberEvenToRows;\n let slidesPerRow;\n let numFullColumns;\n let wasMultiRow;\n const getSpaceBetween = () => {\n let spaceBetween = swiper.params.spaceBetween;\n if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {\n spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiper.size;\n } else if (typeof spaceBetween === 'string') {\n spaceBetween = parseFloat(spaceBetween);\n }\n return spaceBetween;\n };\n const initSlides = slidesLength => {\n const {\n slidesPerView\n } = swiper.params;\n const {\n rows,\n fill\n } = swiper.params.grid;\n numFullColumns = Math.floor(slidesLength / rows);\n if (Math.floor(slidesLength / rows) === slidesLength / rows) {\n slidesNumberEvenToRows = slidesLength;\n } else {\n slidesNumberEvenToRows = Math.ceil(slidesLength / rows) * rows;\n }\n if (slidesPerView !== 'auto' && fill === 'row') {\n slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, slidesPerView * rows);\n }\n slidesPerRow = slidesNumberEvenToRows / rows;\n };\n const updateSlide = (i, slide, slidesLength, getDirectionLabel) => {\n const {\n slidesPerGroup\n } = swiper.params;\n const spaceBetween = getSpaceBetween();\n const {\n rows,\n fill\n } = swiper.params.grid;\n // Set slides order\n let newSlideOrderIndex;\n let column;\n let row;\n if (fill === 'row' && slidesPerGroup > 1) {\n const groupIndex = Math.floor(i / (slidesPerGroup * rows));\n const slideIndexInGroup = i - rows * slidesPerGroup * groupIndex;\n const columnsInGroup = groupIndex === 0 ? slidesPerGroup : Math.min(Math.ceil((slidesLength - groupIndex * rows * slidesPerGroup) / rows), slidesPerGroup);\n row = Math.floor(slideIndexInGroup / columnsInGroup);\n column = slideIndexInGroup - row * columnsInGroup + groupIndex * slidesPerGroup;\n newSlideOrderIndex = column + row * slidesNumberEvenToRows / rows;\n slide.style.order = newSlideOrderIndex;\n } else if (fill === 'column') {\n column = Math.floor(i / rows);\n row = i - column * rows;\n if (column > numFullColumns || column === numFullColumns && row === rows - 1) {\n row += 1;\n if (row >= rows) {\n row = 0;\n column += 1;\n }\n }\n } else {\n row = Math.floor(i / slidesPerRow);\n column = i - row * slidesPerRow;\n }\n slide.row = row;\n slide.column = column;\n slide.style[getDirectionLabel('margin-top')] = row !== 0 ? spaceBetween && `${spaceBetween}px` : '';\n };\n const updateWrapperSize = (slideSize, snapGrid, getDirectionLabel) => {\n const {\n centeredSlides,\n roundLengths\n } = swiper.params;\n const spaceBetween = getSpaceBetween();\n const {\n rows\n } = swiper.params.grid;\n swiper.virtualSize = (slideSize + spaceBetween) * slidesNumberEvenToRows;\n swiper.virtualSize = Math.ceil(swiper.virtualSize / rows) - spaceBetween;\n swiper.wrapperEl.style[getDirectionLabel('width')] = `${swiper.virtualSize + spaceBetween}px`;\n if (centeredSlides) {\n const newSlidesGrid = [];\n for (let i = 0; i < snapGrid.length; i += 1) {\n let slidesGridItem = snapGrid[i];\n if (roundLengths) slidesGridItem = Math.floor(slidesGridItem);\n if (snapGrid[i] < swiper.virtualSize + snapGrid[0]) newSlidesGrid.push(slidesGridItem);\n }\n snapGrid.splice(0, snapGrid.length);\n snapGrid.push(...newSlidesGrid);\n }\n };\n const onInit = () => {\n wasMultiRow = swiper.params.grid && swiper.params.grid.rows > 1;\n };\n const onUpdate = () => {\n const {\n params,\n el\n } = swiper;\n const isMultiRow = params.grid && params.grid.rows > 1;\n if (wasMultiRow && !isMultiRow) {\n el.classList.remove(`${params.containerModifierClass}grid`, `${params.containerModifierClass}grid-column`);\n numFullColumns = 1;\n swiper.emitContainerClasses();\n } else if (!wasMultiRow && isMultiRow) {\n el.classList.add(`${params.containerModifierClass}grid`);\n if (params.grid.fill === 'column') {\n el.classList.add(`${params.containerModifierClass}grid-column`);\n }\n swiper.emitContainerClasses();\n }\n wasMultiRow = isMultiRow;\n };\n on('init', onInit);\n on('update', onUpdate);\n swiper.grid = {\n initSlides,\n updateSlide,\n updateWrapperSize\n };\n}\n\nexport { Grid as default };\n","function appendSlide(slides) {\n const swiper = this;\n const {\n params,\n slidesEl\n } = swiper;\n if (params.loop) {\n swiper.loopDestroy();\n }\n const appendElement = slideEl => {\n if (typeof slideEl === 'string') {\n const tempDOM = document.createElement('div');\n tempDOM.innerHTML = slideEl;\n slidesEl.append(tempDOM.children[0]);\n tempDOM.innerHTML = '';\n } else {\n slidesEl.append(slideEl);\n }\n };\n if (typeof slides === 'object' && 'length' in slides) {\n for (let i = 0; i < slides.length; i += 1) {\n if (slides[i]) appendElement(slides[i]);\n }\n } else {\n appendElement(slides);\n }\n swiper.recalcSlides();\n if (params.loop) {\n swiper.loopCreate();\n }\n if (!params.observer || swiper.isElement) {\n swiper.update();\n }\n}\n\nfunction prependSlide(slides) {\n const swiper = this;\n const {\n params,\n activeIndex,\n slidesEl\n } = swiper;\n if (params.loop) {\n swiper.loopDestroy();\n }\n let newActiveIndex = activeIndex + 1;\n const prependElement = slideEl => {\n if (typeof slideEl === 'string') {\n const tempDOM = document.createElement('div');\n tempDOM.innerHTML = slideEl;\n slidesEl.prepend(tempDOM.children[0]);\n tempDOM.innerHTML = '';\n } else {\n slidesEl.prepend(slideEl);\n }\n };\n if (typeof slides === 'object' && 'length' in slides) {\n for (let i = 0; i < slides.length; i += 1) {\n if (slides[i]) prependElement(slides[i]);\n }\n newActiveIndex = activeIndex + slides.length;\n } else {\n prependElement(slides);\n }\n swiper.recalcSlides();\n if (params.loop) {\n swiper.loopCreate();\n }\n if (!params.observer || swiper.isElement) {\n swiper.update();\n }\n swiper.slideTo(newActiveIndex, 0, false);\n}\n\nfunction addSlide(index, slides) {\n const swiper = this;\n const {\n params,\n activeIndex,\n slidesEl\n } = swiper;\n let activeIndexBuffer = activeIndex;\n if (params.loop) {\n activeIndexBuffer -= swiper.loopedSlides;\n swiper.loopDestroy();\n swiper.recalcSlides();\n }\n const baseLength = swiper.slides.length;\n if (index <= 0) {\n swiper.prependSlide(slides);\n return;\n }\n if (index >= baseLength) {\n swiper.appendSlide(slides);\n return;\n }\n let newActiveIndex = activeIndexBuffer > index ? activeIndexBuffer + 1 : activeIndexBuffer;\n const slidesBuffer = [];\n for (let i = baseLength - 1; i >= index; i -= 1) {\n const currentSlide = swiper.slides[i];\n currentSlide.remove();\n slidesBuffer.unshift(currentSlide);\n }\n if (typeof slides === 'object' && 'length' in slides) {\n for (let i = 0; i < slides.length; i += 1) {\n if (slides[i]) slidesEl.append(slides[i]);\n }\n newActiveIndex = activeIndexBuffer > index ? activeIndexBuffer + slides.length : activeIndexBuffer;\n } else {\n slidesEl.append(slides);\n }\n for (let i = 0; i < slidesBuffer.length; i += 1) {\n slidesEl.append(slidesBuffer[i]);\n }\n swiper.recalcSlides();\n if (params.loop) {\n swiper.loopCreate();\n }\n if (!params.observer || swiper.isElement) {\n swiper.update();\n }\n if (params.loop) {\n swiper.slideTo(newActiveIndex + swiper.loopedSlides, 0, false);\n } else {\n swiper.slideTo(newActiveIndex, 0, false);\n }\n}\n\nfunction removeSlide(slidesIndexes) {\n const swiper = this;\n const {\n params,\n activeIndex\n } = swiper;\n let activeIndexBuffer = activeIndex;\n if (params.loop) {\n activeIndexBuffer -= swiper.loopedSlides;\n swiper.loopDestroy();\n }\n let newActiveIndex = activeIndexBuffer;\n let indexToRemove;\n if (typeof slidesIndexes === 'object' && 'length' in slidesIndexes) {\n for (let i = 0; i < slidesIndexes.length; i += 1) {\n indexToRemove = slidesIndexes[i];\n if (swiper.slides[indexToRemove]) swiper.slides[indexToRemove].remove();\n if (indexToRemove < newActiveIndex) newActiveIndex -= 1;\n }\n newActiveIndex = Math.max(newActiveIndex, 0);\n } else {\n indexToRemove = slidesIndexes;\n if (swiper.slides[indexToRemove]) swiper.slides[indexToRemove].remove();\n if (indexToRemove < newActiveIndex) newActiveIndex -= 1;\n newActiveIndex = Math.max(newActiveIndex, 0);\n }\n swiper.recalcSlides();\n if (params.loop) {\n swiper.loopCreate();\n }\n if (!params.observer || swiper.isElement) {\n swiper.update();\n }\n if (params.loop) {\n swiper.slideTo(newActiveIndex + swiper.loopedSlides, 0, false);\n } else {\n swiper.slideTo(newActiveIndex, 0, false);\n }\n}\n\nfunction removeAllSlides() {\n const swiper = this;\n const slidesIndexes = [];\n for (let i = 0; i < swiper.slides.length; i += 1) {\n slidesIndexes.push(i);\n }\n swiper.removeSlide(slidesIndexes);\n}\n\nfunction Manipulation(_ref) {\n let {\n swiper\n } = _ref;\n Object.assign(swiper, {\n appendSlide: appendSlide.bind(swiper),\n prependSlide: prependSlide.bind(swiper),\n addSlide: addSlide.bind(swiper),\n removeSlide: removeSlide.bind(swiper),\n removeAllSlides: removeAllSlides.bind(swiper)\n });\n}\n\nexport { Manipulation as default };\n","import { e as effectInit } from '../shared/effect-init.mjs';\nimport { e as effectTarget } from '../shared/effect-target.mjs';\nimport { e as effectVirtualTransitionEnd } from '../shared/effect-virtual-transition-end.mjs';\nimport { k as getSlideTransformEl } from '../shared/utils.mjs';\n\nfunction EffectFade(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n fadeEffect: {\n crossFade: false\n }\n });\n const setTranslate = () => {\n const {\n slides\n } = swiper;\n const params = swiper.params.fadeEffect;\n for (let i = 0; i < slides.length; i += 1) {\n const slideEl = swiper.slides[i];\n const offset = slideEl.swiperSlideOffset;\n let tx = -offset;\n if (!swiper.params.virtualTranslate) tx -= swiper.translate;\n let ty = 0;\n if (!swiper.isHorizontal()) {\n ty = tx;\n tx = 0;\n }\n const slideOpacity = swiper.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(slideEl.progress), 0) : 1 + Math.min(Math.max(slideEl.progress, -1), 0);\n const targetEl = effectTarget(params, slideEl);\n targetEl.style.opacity = slideOpacity;\n targetEl.style.transform = `translate3d(${tx}px, ${ty}px, 0px)`;\n }\n };\n const setTransition = duration => {\n const transformElements = swiper.slides.map(slideEl => getSlideTransformEl(slideEl));\n transformElements.forEach(el => {\n el.style.transitionDuration = `${duration}ms`;\n });\n effectVirtualTransitionEnd({\n swiper,\n duration,\n transformElements,\n allSlides: true\n });\n };\n effectInit({\n effect: 'fade',\n swiper,\n on,\n setTranslate,\n setTransition,\n overwriteParams: () => ({\n slidesPerView: 1,\n slidesPerGroup: 1,\n watchSlidesProgress: true,\n spaceBetween: 0,\n virtualTranslate: !swiper.params.cssMode\n })\n });\n}\n\nexport { EffectFade as default };\n","function effectInit(params) {\n const {\n effect,\n swiper,\n on,\n setTranslate,\n setTransition,\n overwriteParams,\n perspective,\n recreateShadows,\n getEffectParams\n } = params;\n on('beforeInit', () => {\n if (swiper.params.effect !== effect) return;\n swiper.classNames.push(`${swiper.params.containerModifierClass}${effect}`);\n if (perspective && perspective()) {\n swiper.classNames.push(`${swiper.params.containerModifierClass}3d`);\n }\n const overwriteParamsResult = overwriteParams ? overwriteParams() : {};\n Object.assign(swiper.params, overwriteParamsResult);\n Object.assign(swiper.originalParams, overwriteParamsResult);\n });\n on('setTranslate', () => {\n if (swiper.params.effect !== effect) return;\n setTranslate();\n });\n on('setTransition', (_s, duration) => {\n if (swiper.params.effect !== effect) return;\n setTransition(duration);\n });\n on('transitionEnd', () => {\n if (swiper.params.effect !== effect) return;\n if (recreateShadows) {\n if (!getEffectParams || !getEffectParams().slideShadows) return;\n // remove shadows\n swiper.slides.forEach(slideEl => {\n slideEl.querySelectorAll('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').forEach(shadowEl => shadowEl.remove());\n });\n // create new one\n recreateShadows();\n }\n });\n let requireUpdateOnVirtual;\n on('virtualUpdate', () => {\n if (swiper.params.effect !== effect) return;\n if (!swiper.slides.length) {\n requireUpdateOnVirtual = true;\n }\n requestAnimationFrame(() => {\n if (requireUpdateOnVirtual && swiper.slides && swiper.slides.length) {\n setTranslate();\n requireUpdateOnVirtual = false;\n }\n });\n });\n}\n\nexport { effectInit as e };\n","import { k as getSlideTransformEl } from './utils.mjs';\n\nfunction effectTarget(effectParams, slideEl) {\n const transformEl = getSlideTransformEl(slideEl);\n if (transformEl !== slideEl) {\n transformEl.style.backfaceVisibility = 'hidden';\n transformEl.style['-webkit-backface-visibility'] = 'hidden';\n }\n return transformEl;\n}\n\nexport { effectTarget as e };\n","import { i as elementTransitionEnd } from './utils.mjs';\n\nfunction effectVirtualTransitionEnd(_ref) {\n let {\n swiper,\n duration,\n transformElements,\n allSlides\n } = _ref;\n const {\n activeIndex\n } = swiper;\n const getSlide = el => {\n if (!el.parentElement) {\n // assume shadow root\n const slide = swiper.slides.filter(slideEl => slideEl.shadowRoot && slideEl.shadowRoot === el.parentNode)[0];\n return slide;\n }\n return el.parentElement;\n };\n if (swiper.params.virtualTranslate && duration !== 0) {\n let eventTriggered = false;\n let transitionEndTarget;\n if (allSlides) {\n transitionEndTarget = transformElements;\n } else {\n transitionEndTarget = transformElements.filter(transformEl => {\n const el = transformEl.classList.contains('swiper-slide-transform') ? getSlide(transformEl) : transformEl;\n return swiper.getSlideIndex(el) === activeIndex;\n });\n }\n transitionEndTarget.forEach(el => {\n elementTransitionEnd(el, () => {\n if (eventTriggered) return;\n if (!swiper || swiper.destroyed) return;\n eventTriggered = true;\n swiper.animating = false;\n const evt = new window.CustomEvent('transitionend', {\n bubbles: true,\n cancelable: true\n });\n swiper.wrapperEl.dispatchEvent(evt);\n });\n });\n }\n}\n\nexport { effectVirtualTransitionEnd as e };\n","import { e as effectInit } from '../shared/effect-init.mjs';\nimport { c as createElement } from '../shared/utils.mjs';\n\nfunction EffectCube(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n cubeEffect: {\n slideShadows: true,\n shadow: true,\n shadowOffset: 20,\n shadowScale: 0.94\n }\n });\n const createSlideShadows = (slideEl, progress, isHorizontal) => {\n let shadowBefore = isHorizontal ? slideEl.querySelector('.swiper-slide-shadow-left') : slideEl.querySelector('.swiper-slide-shadow-top');\n let shadowAfter = isHorizontal ? slideEl.querySelector('.swiper-slide-shadow-right') : slideEl.querySelector('.swiper-slide-shadow-bottom');\n if (!shadowBefore) {\n shadowBefore = createElement('div', `swiper-slide-shadow-cube swiper-slide-shadow-${isHorizontal ? 'left' : 'top'}`.split(' '));\n slideEl.append(shadowBefore);\n }\n if (!shadowAfter) {\n shadowAfter = createElement('div', `swiper-slide-shadow-cube swiper-slide-shadow-${isHorizontal ? 'right' : 'bottom'}`.split(' '));\n slideEl.append(shadowAfter);\n }\n if (shadowBefore) shadowBefore.style.opacity = Math.max(-progress, 0);\n if (shadowAfter) shadowAfter.style.opacity = Math.max(progress, 0);\n };\n const recreateShadows = () => {\n // create new ones\n const isHorizontal = swiper.isHorizontal();\n swiper.slides.forEach(slideEl => {\n const progress = Math.max(Math.min(slideEl.progress, 1), -1);\n createSlideShadows(slideEl, progress, isHorizontal);\n });\n };\n const setTranslate = () => {\n const {\n el,\n wrapperEl,\n slides,\n width: swiperWidth,\n height: swiperHeight,\n rtlTranslate: rtl,\n size: swiperSize,\n browser\n } = swiper;\n const params = swiper.params.cubeEffect;\n const isHorizontal = swiper.isHorizontal();\n const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n let wrapperRotate = 0;\n let cubeShadowEl;\n if (params.shadow) {\n if (isHorizontal) {\n cubeShadowEl = swiper.wrapperEl.querySelector('.swiper-cube-shadow');\n if (!cubeShadowEl) {\n cubeShadowEl = createElement('div', 'swiper-cube-shadow');\n swiper.wrapperEl.append(cubeShadowEl);\n }\n cubeShadowEl.style.height = `${swiperWidth}px`;\n } else {\n cubeShadowEl = el.querySelector('.swiper-cube-shadow');\n if (!cubeShadowEl) {\n cubeShadowEl = createElement('div', 'swiper-cube-shadow');\n el.append(cubeShadowEl);\n }\n }\n }\n for (let i = 0; i < slides.length; i += 1) {\n const slideEl = slides[i];\n let slideIndex = i;\n if (isVirtual) {\n slideIndex = parseInt(slideEl.getAttribute('data-swiper-slide-index'), 10);\n }\n let slideAngle = slideIndex * 90;\n let round = Math.floor(slideAngle / 360);\n if (rtl) {\n slideAngle = -slideAngle;\n round = Math.floor(-slideAngle / 360);\n }\n const progress = Math.max(Math.min(slideEl.progress, 1), -1);\n let tx = 0;\n let ty = 0;\n let tz = 0;\n if (slideIndex % 4 === 0) {\n tx = -round * 4 * swiperSize;\n tz = 0;\n } else if ((slideIndex - 1) % 4 === 0) {\n tx = 0;\n tz = -round * 4 * swiperSize;\n } else if ((slideIndex - 2) % 4 === 0) {\n tx = swiperSize + round * 4 * swiperSize;\n tz = swiperSize;\n } else if ((slideIndex - 3) % 4 === 0) {\n tx = -swiperSize;\n tz = 3 * swiperSize + swiperSize * 4 * round;\n }\n if (rtl) {\n tx = -tx;\n }\n if (!isHorizontal) {\n ty = tx;\n tx = 0;\n }\n const transform = `rotateX(${isHorizontal ? 0 : -slideAngle}deg) rotateY(${isHorizontal ? slideAngle : 0}deg) translate3d(${tx}px, ${ty}px, ${tz}px)`;\n if (progress <= 1 && progress > -1) {\n wrapperRotate = slideIndex * 90 + progress * 90;\n if (rtl) wrapperRotate = -slideIndex * 90 - progress * 90;\n }\n slideEl.style.transform = transform;\n if (params.slideShadows) {\n createSlideShadows(slideEl, progress, isHorizontal);\n }\n }\n wrapperEl.style.transformOrigin = `50% 50% -${swiperSize / 2}px`;\n wrapperEl.style['-webkit-transform-origin'] = `50% 50% -${swiperSize / 2}px`;\n if (params.shadow) {\n if (isHorizontal) {\n cubeShadowEl.style.transform = `translate3d(0px, ${swiperWidth / 2 + params.shadowOffset}px, ${-swiperWidth / 2}px) rotateX(90deg) rotateZ(0deg) scale(${params.shadowScale})`;\n } else {\n const shadowAngle = Math.abs(wrapperRotate) - Math.floor(Math.abs(wrapperRotate) / 90) * 90;\n const multiplier = 1.5 - (Math.sin(shadowAngle * 2 * Math.PI / 360) / 2 + Math.cos(shadowAngle * 2 * Math.PI / 360) / 2);\n const scale1 = params.shadowScale;\n const scale2 = params.shadowScale / multiplier;\n const offset = params.shadowOffset;\n cubeShadowEl.style.transform = `scale3d(${scale1}, 1, ${scale2}) translate3d(0px, ${swiperHeight / 2 + offset}px, ${-swiperHeight / 2 / scale2}px) rotateX(-90deg)`;\n }\n }\n const zFactor = (browser.isSafari || browser.isWebView) && browser.needPerspectiveFix ? -swiperSize / 2 : 0;\n wrapperEl.style.transform = `translate3d(0px,0,${zFactor}px) rotateX(${swiper.isHorizontal() ? 0 : wrapperRotate}deg) rotateY(${swiper.isHorizontal() ? -wrapperRotate : 0}deg)`;\n wrapperEl.style.setProperty('--swiper-cube-translate-z', `${zFactor}px`);\n };\n const setTransition = duration => {\n const {\n el,\n slides\n } = swiper;\n slides.forEach(slideEl => {\n slideEl.style.transitionDuration = `${duration}ms`;\n slideEl.querySelectorAll('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').forEach(subEl => {\n subEl.style.transitionDuration = `${duration}ms`;\n });\n });\n if (swiper.params.cubeEffect.shadow && !swiper.isHorizontal()) {\n const shadowEl = el.querySelector('.swiper-cube-shadow');\n if (shadowEl) shadowEl.style.transitionDuration = `${duration}ms`;\n }\n };\n effectInit({\n effect: 'cube',\n swiper,\n on,\n setTranslate,\n setTransition,\n recreateShadows,\n getEffectParams: () => swiper.params.cubeEffect,\n perspective: () => true,\n overwriteParams: () => ({\n slidesPerView: 1,\n slidesPerGroup: 1,\n watchSlidesProgress: true,\n resistanceRatio: 0,\n spaceBetween: 0,\n centeredSlides: false,\n virtualTranslate: true\n })\n });\n}\n\nexport { EffectCube as default };\n","import { c as createShadow } from '../shared/create-shadow.mjs';\nimport { e as effectInit } from '../shared/effect-init.mjs';\nimport { e as effectTarget } from '../shared/effect-target.mjs';\nimport { e as effectVirtualTransitionEnd } from '../shared/effect-virtual-transition-end.mjs';\nimport { k as getSlideTransformEl } from '../shared/utils.mjs';\n\nfunction EffectFlip(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n flipEffect: {\n slideShadows: true,\n limitRotation: true\n }\n });\n const createSlideShadows = (slideEl, progress) => {\n let shadowBefore = swiper.isHorizontal() ? slideEl.querySelector('.swiper-slide-shadow-left') : slideEl.querySelector('.swiper-slide-shadow-top');\n let shadowAfter = swiper.isHorizontal() ? slideEl.querySelector('.swiper-slide-shadow-right') : slideEl.querySelector('.swiper-slide-shadow-bottom');\n if (!shadowBefore) {\n shadowBefore = createShadow('flip', slideEl, swiper.isHorizontal() ? 'left' : 'top');\n }\n if (!shadowAfter) {\n shadowAfter = createShadow('flip', slideEl, swiper.isHorizontal() ? 'right' : 'bottom');\n }\n if (shadowBefore) shadowBefore.style.opacity = Math.max(-progress, 0);\n if (shadowAfter) shadowAfter.style.opacity = Math.max(progress, 0);\n };\n const recreateShadows = () => {\n // Set shadows\n swiper.params.flipEffect;\n swiper.slides.forEach(slideEl => {\n let progress = slideEl.progress;\n if (swiper.params.flipEffect.limitRotation) {\n progress = Math.max(Math.min(slideEl.progress, 1), -1);\n }\n createSlideShadows(slideEl, progress);\n });\n };\n const setTranslate = () => {\n const {\n slides,\n rtlTranslate: rtl\n } = swiper;\n const params = swiper.params.flipEffect;\n for (let i = 0; i < slides.length; i += 1) {\n const slideEl = slides[i];\n let progress = slideEl.progress;\n if (swiper.params.flipEffect.limitRotation) {\n progress = Math.max(Math.min(slideEl.progress, 1), -1);\n }\n const offset = slideEl.swiperSlideOffset;\n const rotate = -180 * progress;\n let rotateY = rotate;\n let rotateX = 0;\n let tx = swiper.params.cssMode ? -offset - swiper.translate : -offset;\n let ty = 0;\n if (!swiper.isHorizontal()) {\n ty = tx;\n tx = 0;\n rotateX = -rotateY;\n rotateY = 0;\n } else if (rtl) {\n rotateY = -rotateY;\n }\n slideEl.style.zIndex = -Math.abs(Math.round(progress)) + slides.length;\n if (params.slideShadows) {\n createSlideShadows(slideEl, progress);\n }\n const transform = `translate3d(${tx}px, ${ty}px, 0px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;\n const targetEl = effectTarget(params, slideEl);\n targetEl.style.transform = transform;\n }\n };\n const setTransition = duration => {\n const transformElements = swiper.slides.map(slideEl => getSlideTransformEl(slideEl));\n transformElements.forEach(el => {\n el.style.transitionDuration = `${duration}ms`;\n el.querySelectorAll('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').forEach(shadowEl => {\n shadowEl.style.transitionDuration = `${duration}ms`;\n });\n });\n effectVirtualTransitionEnd({\n swiper,\n duration,\n transformElements\n });\n };\n effectInit({\n effect: 'flip',\n swiper,\n on,\n setTranslate,\n setTransition,\n recreateShadows,\n getEffectParams: () => swiper.params.flipEffect,\n perspective: () => true,\n overwriteParams: () => ({\n slidesPerView: 1,\n slidesPerGroup: 1,\n watchSlidesProgress: true,\n spaceBetween: 0,\n virtualTranslate: !swiper.params.cssMode\n })\n });\n}\n\nexport { EffectFlip as default };\n","import { k as getSlideTransformEl, c as createElement } from './utils.mjs';\n\nfunction createShadow(suffix, slideEl, side) {\n const shadowClass = `swiper-slide-shadow${side ? `-${side}` : ''}${suffix ? ` swiper-slide-shadow-${suffix}` : ''}`;\n const shadowContainer = getSlideTransformEl(slideEl);\n let shadowEl = shadowContainer.querySelector(`.${shadowClass.split(' ').join('.')}`);\n if (!shadowEl) {\n shadowEl = createElement('div', shadowClass.split(' '));\n shadowContainer.append(shadowEl);\n }\n return shadowEl;\n}\n\nexport { createShadow as c };\n","import { c as createShadow } from '../shared/create-shadow.mjs';\nimport { e as effectInit } from '../shared/effect-init.mjs';\nimport { e as effectTarget } from '../shared/effect-target.mjs';\nimport { k as getSlideTransformEl } from '../shared/utils.mjs';\n\nfunction EffectCoverflow(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n coverflowEffect: {\n rotate: 50,\n stretch: 0,\n depth: 100,\n scale: 1,\n modifier: 1,\n slideShadows: true\n }\n });\n const setTranslate = () => {\n const {\n width: swiperWidth,\n height: swiperHeight,\n slides,\n slidesSizesGrid\n } = swiper;\n const params = swiper.params.coverflowEffect;\n const isHorizontal = swiper.isHorizontal();\n const transform = swiper.translate;\n const center = isHorizontal ? -transform + swiperWidth / 2 : -transform + swiperHeight / 2;\n const rotate = isHorizontal ? params.rotate : -params.rotate;\n const translate = params.depth;\n // Each slide offset from center\n for (let i = 0, length = slides.length; i < length; i += 1) {\n const slideEl = slides[i];\n const slideSize = slidesSizesGrid[i];\n const slideOffset = slideEl.swiperSlideOffset;\n const centerOffset = (center - slideOffset - slideSize / 2) / slideSize;\n const offsetMultiplier = typeof params.modifier === 'function' ? params.modifier(centerOffset) : centerOffset * params.modifier;\n let rotateY = isHorizontal ? rotate * offsetMultiplier : 0;\n let rotateX = isHorizontal ? 0 : rotate * offsetMultiplier;\n // var rotateZ = 0\n let translateZ = -translate * Math.abs(offsetMultiplier);\n let stretch = params.stretch;\n // Allow percentage to make a relative stretch for responsive sliders\n if (typeof stretch === 'string' && stretch.indexOf('%') !== -1) {\n stretch = parseFloat(params.stretch) / 100 * slideSize;\n }\n let translateY = isHorizontal ? 0 : stretch * offsetMultiplier;\n let translateX = isHorizontal ? stretch * offsetMultiplier : 0;\n let scale = 1 - (1 - params.scale) * Math.abs(offsetMultiplier);\n\n // Fix for ultra small values\n if (Math.abs(translateX) < 0.001) translateX = 0;\n if (Math.abs(translateY) < 0.001) translateY = 0;\n if (Math.abs(translateZ) < 0.001) translateZ = 0;\n if (Math.abs(rotateY) < 0.001) rotateY = 0;\n if (Math.abs(rotateX) < 0.001) rotateX = 0;\n if (Math.abs(scale) < 0.001) scale = 0;\n const slideTransform = `translate3d(${translateX}px,${translateY}px,${translateZ}px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale(${scale})`;\n const targetEl = effectTarget(params, slideEl);\n targetEl.style.transform = slideTransform;\n slideEl.style.zIndex = -Math.abs(Math.round(offsetMultiplier)) + 1;\n if (params.slideShadows) {\n // Set shadows\n let shadowBeforeEl = isHorizontal ? slideEl.querySelector('.swiper-slide-shadow-left') : slideEl.querySelector('.swiper-slide-shadow-top');\n let shadowAfterEl = isHorizontal ? slideEl.querySelector('.swiper-slide-shadow-right') : slideEl.querySelector('.swiper-slide-shadow-bottom');\n if (!shadowBeforeEl) {\n shadowBeforeEl = createShadow('coverflow', slideEl, isHorizontal ? 'left' : 'top');\n }\n if (!shadowAfterEl) {\n shadowAfterEl = createShadow('coverflow', slideEl, isHorizontal ? 'right' : 'bottom');\n }\n if (shadowBeforeEl) shadowBeforeEl.style.opacity = offsetMultiplier > 0 ? offsetMultiplier : 0;\n if (shadowAfterEl) shadowAfterEl.style.opacity = -offsetMultiplier > 0 ? -offsetMultiplier : 0;\n }\n }\n };\n const setTransition = duration => {\n const transformElements = swiper.slides.map(slideEl => getSlideTransformEl(slideEl));\n transformElements.forEach(el => {\n el.style.transitionDuration = `${duration}ms`;\n el.querySelectorAll('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').forEach(shadowEl => {\n shadowEl.style.transitionDuration = `${duration}ms`;\n });\n });\n };\n effectInit({\n effect: 'coverflow',\n swiper,\n on,\n setTranslate,\n setTransition,\n perspective: () => true,\n overwriteParams: () => ({\n watchSlidesProgress: true\n })\n });\n}\n\nexport { EffectCoverflow as default };\n","import { c as createShadow } from '../shared/create-shadow.mjs';\nimport { e as effectInit } from '../shared/effect-init.mjs';\nimport { e as effectTarget } from '../shared/effect-target.mjs';\nimport { e as effectVirtualTransitionEnd } from '../shared/effect-virtual-transition-end.mjs';\nimport { k as getSlideTransformEl } from '../shared/utils.mjs';\n\nfunction EffectCreative(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n creativeEffect: {\n limitProgress: 1,\n shadowPerProgress: false,\n progressMultiplier: 1,\n perspective: true,\n prev: {\n translate: [0, 0, 0],\n rotate: [0, 0, 0],\n opacity: 1,\n scale: 1\n },\n next: {\n translate: [0, 0, 0],\n rotate: [0, 0, 0],\n opacity: 1,\n scale: 1\n }\n }\n });\n const getTranslateValue = value => {\n if (typeof value === 'string') return value;\n return `${value}px`;\n };\n const setTranslate = () => {\n const {\n slides,\n wrapperEl,\n slidesSizesGrid\n } = swiper;\n const params = swiper.params.creativeEffect;\n const {\n progressMultiplier: multiplier\n } = params;\n const isCenteredSlides = swiper.params.centeredSlides;\n if (isCenteredSlides) {\n const margin = slidesSizesGrid[0] / 2 - swiper.params.slidesOffsetBefore || 0;\n wrapperEl.style.transform = `translateX(calc(50% - ${margin}px))`;\n }\n for (let i = 0; i < slides.length; i += 1) {\n const slideEl = slides[i];\n const slideProgress = slideEl.progress;\n const progress = Math.min(Math.max(slideEl.progress, -params.limitProgress), params.limitProgress);\n let originalProgress = progress;\n if (!isCenteredSlides) {\n originalProgress = Math.min(Math.max(slideEl.originalProgress, -params.limitProgress), params.limitProgress);\n }\n const offset = slideEl.swiperSlideOffset;\n const t = [swiper.params.cssMode ? -offset - swiper.translate : -offset, 0, 0];\n const r = [0, 0, 0];\n let custom = false;\n if (!swiper.isHorizontal()) {\n t[1] = t[0];\n t[0] = 0;\n }\n let data = {\n translate: [0, 0, 0],\n rotate: [0, 0, 0],\n scale: 1,\n opacity: 1\n };\n if (progress < 0) {\n data = params.next;\n custom = true;\n } else if (progress > 0) {\n data = params.prev;\n custom = true;\n }\n // set translate\n t.forEach((value, index) => {\n t[index] = `calc(${value}px + (${getTranslateValue(data.translate[index])} * ${Math.abs(progress * multiplier)}))`;\n });\n // set rotates\n r.forEach((value, index) => {\n r[index] = data.rotate[index] * Math.abs(progress * multiplier);\n });\n slideEl.style.zIndex = -Math.abs(Math.round(slideProgress)) + slides.length;\n const translateString = t.join(', ');\n const rotateString = `rotateX(${r[0]}deg) rotateY(${r[1]}deg) rotateZ(${r[2]}deg)`;\n const scaleString = originalProgress < 0 ? `scale(${1 + (1 - data.scale) * originalProgress * multiplier})` : `scale(${1 - (1 - data.scale) * originalProgress * multiplier})`;\n const opacityString = originalProgress < 0 ? 1 + (1 - data.opacity) * originalProgress * multiplier : 1 - (1 - data.opacity) * originalProgress * multiplier;\n const transform = `translate3d(${translateString}) ${rotateString} ${scaleString}`;\n\n // Set shadows\n if (custom && data.shadow || !custom) {\n let shadowEl = slideEl.querySelector('.swiper-slide-shadow');\n if (!shadowEl && data.shadow) {\n shadowEl = createShadow('creative', slideEl);\n }\n if (shadowEl) {\n const shadowOpacity = params.shadowPerProgress ? progress * (1 / params.limitProgress) : progress;\n shadowEl.style.opacity = Math.min(Math.max(Math.abs(shadowOpacity), 0), 1);\n }\n }\n const targetEl = effectTarget(params, slideEl);\n targetEl.style.transform = transform;\n targetEl.style.opacity = opacityString;\n if (data.origin) {\n targetEl.style.transformOrigin = data.origin;\n }\n }\n };\n const setTransition = duration => {\n const transformElements = swiper.slides.map(slideEl => getSlideTransformEl(slideEl));\n transformElements.forEach(el => {\n el.style.transitionDuration = `${duration}ms`;\n el.querySelectorAll('.swiper-slide-shadow').forEach(shadowEl => {\n shadowEl.style.transitionDuration = `${duration}ms`;\n });\n });\n effectVirtualTransitionEnd({\n swiper,\n duration,\n transformElements,\n allSlides: true\n });\n };\n effectInit({\n effect: 'creative',\n swiper,\n on,\n setTranslate,\n setTransition,\n perspective: () => swiper.params.creativeEffect.perspective,\n overwriteParams: () => ({\n watchSlidesProgress: true,\n virtualTranslate: !swiper.params.cssMode\n })\n });\n}\n\nexport { EffectCreative as default };\n","import { c as createShadow } from '../shared/create-shadow.mjs';\nimport { e as effectInit } from '../shared/effect-init.mjs';\nimport { e as effectTarget } from '../shared/effect-target.mjs';\nimport { e as effectVirtualTransitionEnd } from '../shared/effect-virtual-transition-end.mjs';\nimport { k as getSlideTransformEl } from '../shared/utils.mjs';\n\nfunction EffectCards(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n cardsEffect: {\n slideShadows: true,\n rotate: true,\n perSlideRotate: 2,\n perSlideOffset: 8\n }\n });\n const setTranslate = () => {\n const {\n slides,\n activeIndex,\n rtlTranslate: rtl\n } = swiper;\n const params = swiper.params.cardsEffect;\n const {\n startTranslate,\n isTouched\n } = swiper.touchEventsData;\n const currentTranslate = rtl ? -swiper.translate : swiper.translate;\n for (let i = 0; i < slides.length; i += 1) {\n const slideEl = slides[i];\n const slideProgress = slideEl.progress;\n const progress = Math.min(Math.max(slideProgress, -4), 4);\n let offset = slideEl.swiperSlideOffset;\n if (swiper.params.centeredSlides && !swiper.params.cssMode) {\n swiper.wrapperEl.style.transform = `translateX(${swiper.minTranslate()}px)`;\n }\n if (swiper.params.centeredSlides && swiper.params.cssMode) {\n offset -= slides[0].swiperSlideOffset;\n }\n let tX = swiper.params.cssMode ? -offset - swiper.translate : -offset;\n let tY = 0;\n const tZ = -100 * Math.abs(progress);\n let scale = 1;\n let rotate = -params.perSlideRotate * progress;\n let tXAdd = params.perSlideOffset - Math.abs(progress) * 0.75;\n const slideIndex = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.from + i : i;\n const isSwipeToNext = (slideIndex === activeIndex || slideIndex === activeIndex - 1) && progress > 0 && progress < 1 && (isTouched || swiper.params.cssMode) && currentTranslate < startTranslate;\n const isSwipeToPrev = (slideIndex === activeIndex || slideIndex === activeIndex + 1) && progress < 0 && progress > -1 && (isTouched || swiper.params.cssMode) && currentTranslate > startTranslate;\n if (isSwipeToNext || isSwipeToPrev) {\n const subProgress = (1 - Math.abs((Math.abs(progress) - 0.5) / 0.5)) ** 0.5;\n rotate += -28 * progress * subProgress;\n scale += -0.5 * subProgress;\n tXAdd += 96 * subProgress;\n tY = `${-25 * subProgress * Math.abs(progress)}%`;\n }\n if (progress < 0) {\n // next\n tX = `calc(${tX}px ${rtl ? '-' : '+'} (${tXAdd * Math.abs(progress)}%))`;\n } else if (progress > 0) {\n // prev\n tX = `calc(${tX}px ${rtl ? '-' : '+'} (-${tXAdd * Math.abs(progress)}%))`;\n } else {\n tX = `${tX}px`;\n }\n if (!swiper.isHorizontal()) {\n const prevY = tY;\n tY = tX;\n tX = prevY;\n }\n const scaleString = progress < 0 ? `${1 + (1 - scale) * progress}` : `${1 - (1 - scale) * progress}`;\n\n /* eslint-disable */\n const transform = `\n translate3d(${tX}, ${tY}, ${tZ}px)\n rotateZ(${params.rotate ? rtl ? -rotate : rotate : 0}deg)\n scale(${scaleString})\n `;\n /* eslint-enable */\n\n if (params.slideShadows) {\n // Set shadows\n let shadowEl = slideEl.querySelector('.swiper-slide-shadow');\n if (!shadowEl) {\n shadowEl = createShadow('cards', slideEl);\n }\n if (shadowEl) shadowEl.style.opacity = Math.min(Math.max((Math.abs(progress) - 0.5) / 0.5, 0), 1);\n }\n slideEl.style.zIndex = -Math.abs(Math.round(slideProgress)) + slides.length;\n const targetEl = effectTarget(params, slideEl);\n targetEl.style.transform = transform;\n }\n };\n const setTransition = duration => {\n const transformElements = swiper.slides.map(slideEl => getSlideTransformEl(slideEl));\n transformElements.forEach(el => {\n el.style.transitionDuration = `${duration}ms`;\n el.querySelectorAll('.swiper-slide-shadow').forEach(shadowEl => {\n shadowEl.style.transitionDuration = `${duration}ms`;\n });\n });\n effectVirtualTransitionEnd({\n swiper,\n duration,\n transformElements\n });\n };\n effectInit({\n effect: 'cards',\n swiper,\n on,\n setTranslate,\n setTransition,\n perspective: () => true,\n overwriteParams: () => ({\n watchSlidesProgress: true,\n virtualTranslate: !swiper.params.cssMode\n })\n });\n}\n\nexport { EffectCards as default };\n","import { gsap, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ, TweenLite, TimelineLite, TimelineMax } from \"./gsap-core.js\";\nimport { CSSPlugin } from \"./CSSPlugin.js\";\nvar gsapWithCSS = gsap.registerPlugin(CSSPlugin) || gsap,\n // to protect from tree shaking\nTweenMaxWithCSS = gsapWithCSS.core.Tween;\nexport { gsapWithCSS as gsap, gsapWithCSS as default, CSSPlugin, TweenMaxWithCSS as TweenMax, TweenLite, TimelineMax, TimelineLite, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ };","function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/*!\n * GSAP 3.11.5\n * https://greensock.com\n *\n * @license Copyright 2008-2023, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nvar _config = {\n autoSleep: 120,\n force3D: \"auto\",\n nullTargetWarn: 1,\n units: {\n lineHeight: \"\"\n }\n},\n _defaults = {\n duration: .5,\n overwrite: false,\n delay: 0\n},\n _suppressOverwrites,\n _reverting,\n _context,\n _bigNum = 1e8,\n _tinyNum = 1 / _bigNum,\n _2PI = Math.PI * 2,\n _HALF_PI = _2PI / 4,\n _gsID = 0,\n _sqrt = Math.sqrt,\n _cos = Math.cos,\n _sin = Math.sin,\n _isString = function _isString(value) {\n return typeof value === \"string\";\n},\n _isFunction = function _isFunction(value) {\n return typeof value === \"function\";\n},\n _isNumber = function _isNumber(value) {\n return typeof value === \"number\";\n},\n _isUndefined = function _isUndefined(value) {\n return typeof value === \"undefined\";\n},\n _isObject = function _isObject(value) {\n return typeof value === \"object\";\n},\n _isNotFalse = function _isNotFalse(value) {\n return value !== false;\n},\n _windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n},\n _isFuncOrString = function _isFuncOrString(value) {\n return _isFunction(value) || _isString(value);\n},\n _isTypedArray = typeof ArrayBuffer === \"function\" && ArrayBuffer.isView || function () {},\n // note: IE10 has ArrayBuffer, but NOT ArrayBuffer.isView().\n_isArray = Array.isArray,\n _strictNumExp = /(?:-?\\.?\\d|\\.)+/gi,\n //only numbers (including negatives and decimals) but NOT relative values.\n_numExp = /[-+=.]*\\d+[.e\\-+]*\\d*[e\\-+]*\\d*/g,\n //finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.\n_numWithUnitExp = /[-+=.]*\\d+[.e-]*\\d*[a-z%]*/g,\n _complexStringNumExp = /[-+=.]*\\d+\\.?\\d*(?:e-|e\\+)?\\d*/gi,\n //duplicate so that while we're looping through matches from exec(), it doesn't contaminate the lastIndex of _numExp which we use to search for colors too.\n_relExp = /[+-]=-?[.\\d]+/,\n _delimitedValueExp = /[^,'\"\\[\\]\\s]+/gi,\n // previously /[#\\-+.]*\\b[a-z\\d\\-=+%.]+/gi but didn't catch special characters.\n_unitExp = /^[+\\-=e\\s\\d]*\\d+[.\\d]*([a-z]*|%)\\s*$/i,\n _globalTimeline,\n _win,\n _coreInitted,\n _doc,\n _globals = {},\n _installScope = {},\n _coreReady,\n _install = function _install(scope) {\n return (_installScope = _merge(scope, _globals)) && gsap;\n},\n _missingPlugin = function _missingPlugin(property, value) {\n return console.warn(\"Invalid property\", property, \"set to\", value, \"Missing plugin? gsap.registerPlugin()\");\n},\n _warn = function _warn(message, suppress) {\n return !suppress && console.warn(message);\n},\n _addGlobal = function _addGlobal(name, obj) {\n return name && (_globals[name] = obj) && _installScope && (_installScope[name] = obj) || _globals;\n},\n _emptyFunc = function _emptyFunc() {\n return 0;\n},\n _startAtRevertConfig = {\n suppressEvents: true,\n isStart: true,\n kill: false\n},\n _revertConfigNoKill = {\n suppressEvents: true,\n kill: false\n},\n _revertConfig = {\n suppressEvents: true\n},\n _reservedProps = {},\n _lazyTweens = [],\n _lazyLookup = {},\n _lastRenderedFrame,\n _plugins = {},\n _effects = {},\n _nextGCFrame = 30,\n _harnessPlugins = [],\n _callbackNames = \"\",\n _harness = function _harness(targets) {\n var target = targets[0],\n harnessPlugin,\n i;\n _isObject(target) || _isFunction(target) || (targets = [targets]);\n\n if (!(harnessPlugin = (target._gsap || {}).harness)) {\n // find the first target with a harness. We assume targets passed into an animation will be of similar type, meaning the same kind of harness can be used for them all (performance optimization)\n i = _harnessPlugins.length;\n\n while (i-- && !_harnessPlugins[i].targetTest(target)) {}\n\n harnessPlugin = _harnessPlugins[i];\n }\n\n i = targets.length;\n\n while (i--) {\n targets[i] && (targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin))) || targets.splice(i, 1);\n }\n\n return targets;\n},\n _getCache = function _getCache(target) {\n return target._gsap || _harness(toArray(target))[0]._gsap;\n},\n _getProperty = function _getProperty(target, property, v) {\n return (v = target[property]) && _isFunction(v) ? target[property]() : _isUndefined(v) && target.getAttribute && target.getAttribute(property) || v;\n},\n _forEachName = function _forEachName(names, func) {\n return (names = names.split(\",\")).forEach(func) || names;\n},\n //split a comma-delimited list of names into an array, then run a forEach() function and return the split array (this is just a way to consolidate/shorten some code).\n_round = function _round(value) {\n return Math.round(value * 100000) / 100000 || 0;\n},\n _roundPrecise = function _roundPrecise(value) {\n return Math.round(value * 10000000) / 10000000 || 0;\n},\n // increased precision mostly for timing values.\n_parseRelative = function _parseRelative(start, value) {\n var operator = value.charAt(0),\n end = parseFloat(value.substr(2));\n start = parseFloat(start);\n return operator === \"+\" ? start + end : operator === \"-\" ? start - end : operator === \"*\" ? start * end : start / end;\n},\n _arrayContainsAny = function _arrayContainsAny(toSearch, toFind) {\n //searches one array to find matches for any of the items in the toFind array. As soon as one is found, it returns true. It does NOT return all the matches; it's simply a boolean search.\n var l = toFind.length,\n i = 0;\n\n for (; toSearch.indexOf(toFind[i]) < 0 && ++i < l;) {}\n\n return i < l;\n},\n _lazyRender = function _lazyRender() {\n var l = _lazyTweens.length,\n a = _lazyTweens.slice(0),\n i,\n tween;\n\n _lazyLookup = {};\n _lazyTweens.length = 0;\n\n for (i = 0; i < l; i++) {\n tween = a[i];\n tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);\n }\n},\n _lazySafeRender = function _lazySafeRender(animation, time, suppressEvents, force) {\n _lazyTweens.length && !_reverting && _lazyRender();\n animation.render(time, suppressEvents, force || _reverting && time < 0 && (animation._initted || animation._startAt));\n _lazyTweens.length && !_reverting && _lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.\n},\n _numericIfPossible = function _numericIfPossible(value) {\n var n = parseFloat(value);\n return (n || n === 0) && (value + \"\").match(_delimitedValueExp).length < 2 ? n : _isString(value) ? value.trim() : value;\n},\n _passThrough = function _passThrough(p) {\n return p;\n},\n _setDefaults = function _setDefaults(obj, defaults) {\n for (var p in defaults) {\n p in obj || (obj[p] = defaults[p]);\n }\n\n return obj;\n},\n _setKeyframeDefaults = function _setKeyframeDefaults(excludeDuration) {\n return function (obj, defaults) {\n for (var p in defaults) {\n p in obj || p === \"duration\" && excludeDuration || p === \"ease\" || (obj[p] = defaults[p]);\n }\n };\n},\n _merge = function _merge(base, toMerge) {\n for (var p in toMerge) {\n base[p] = toMerge[p];\n }\n\n return base;\n},\n _mergeDeep = function _mergeDeep(base, toMerge) {\n for (var p in toMerge) {\n p !== \"__proto__\" && p !== \"constructor\" && p !== \"prototype\" && (base[p] = _isObject(toMerge[p]) ? _mergeDeep(base[p] || (base[p] = {}), toMerge[p]) : toMerge[p]);\n }\n\n return base;\n},\n _copyExcluding = function _copyExcluding(obj, excluding) {\n var copy = {},\n p;\n\n for (p in obj) {\n p in excluding || (copy[p] = obj[p]);\n }\n\n return copy;\n},\n _inheritDefaults = function _inheritDefaults(vars) {\n var parent = vars.parent || _globalTimeline,\n func = vars.keyframes ? _setKeyframeDefaults(_isArray(vars.keyframes)) : _setDefaults;\n\n if (_isNotFalse(vars.inherit)) {\n while (parent) {\n func(vars, parent.vars.defaults);\n parent = parent.parent || parent._dp;\n }\n }\n\n return vars;\n},\n _arraysMatch = function _arraysMatch(a1, a2) {\n var i = a1.length,\n match = i === a2.length;\n\n while (match && i-- && a1[i] === a2[i]) {}\n\n return i < 0;\n},\n _addLinkedListItem = function _addLinkedListItem(parent, child, firstProp, lastProp, sortBy) {\n if (firstProp === void 0) {\n firstProp = \"_first\";\n }\n\n if (lastProp === void 0) {\n lastProp = \"_last\";\n }\n\n var prev = parent[lastProp],\n t;\n\n if (sortBy) {\n t = child[sortBy];\n\n while (prev && prev[sortBy] > t) {\n prev = prev._prev;\n }\n }\n\n if (prev) {\n child._next = prev._next;\n prev._next = child;\n } else {\n child._next = parent[firstProp];\n parent[firstProp] = child;\n }\n\n if (child._next) {\n child._next._prev = child;\n } else {\n parent[lastProp] = child;\n }\n\n child._prev = prev;\n child.parent = child._dp = parent;\n return child;\n},\n _removeLinkedListItem = function _removeLinkedListItem(parent, child, firstProp, lastProp) {\n if (firstProp === void 0) {\n firstProp = \"_first\";\n }\n\n if (lastProp === void 0) {\n lastProp = \"_last\";\n }\n\n var prev = child._prev,\n next = child._next;\n\n if (prev) {\n prev._next = next;\n } else if (parent[firstProp] === child) {\n parent[firstProp] = next;\n }\n\n if (next) {\n next._prev = prev;\n } else if (parent[lastProp] === child) {\n parent[lastProp] = prev;\n }\n\n child._next = child._prev = child.parent = null; // don't delete the _dp just so we can revert if necessary. But parent should be null to indicate the item isn't in a linked list.\n},\n _removeFromParent = function _removeFromParent(child, onlyIfParentHasAutoRemove) {\n child.parent && (!onlyIfParentHasAutoRemove || child.parent.autoRemoveChildren) && child.parent.remove(child);\n child._act = 0;\n},\n _uncache = function _uncache(animation, child) {\n if (animation && (!child || child._end > animation._dur || child._start < 0)) {\n // performance optimization: if a child animation is passed in we should only uncache if that child EXTENDS the animation (its end time is beyond the end)\n var a = animation;\n\n while (a) {\n a._dirty = 1;\n a = a.parent;\n }\n }\n\n return animation;\n},\n _recacheAncestors = function _recacheAncestors(animation) {\n var parent = animation.parent;\n\n while (parent && parent.parent) {\n //sometimes we must force a re-sort of all children and update the duration/totalDuration of all ancestor timelines immediately in case, for example, in the middle of a render loop, one tween alters another tween's timeScale which shoves its startTime before 0, forcing the parent timeline to shift around and shiftChildren() which could affect that next tween's render (startTime). Doesn't matter for the root timeline though.\n parent._dirty = 1;\n parent.totalDuration();\n parent = parent.parent;\n }\n\n return animation;\n},\n _rewindStartAt = function _rewindStartAt(tween, totalTime, suppressEvents, force) {\n return tween._startAt && (_reverting ? tween._startAt.revert(_revertConfigNoKill) : tween.vars.immediateRender && !tween.vars.autoRevert || tween._startAt.render(totalTime, true, force));\n},\n _hasNoPausedAncestors = function _hasNoPausedAncestors(animation) {\n return !animation || animation._ts && _hasNoPausedAncestors(animation.parent);\n},\n _elapsedCycleDuration = function _elapsedCycleDuration(animation) {\n return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;\n},\n // feed in the totalTime and cycleDuration and it'll return the cycle (iteration minus 1) and if the playhead is exactly at the very END, it will NOT bump up to the next cycle.\n_animationCycle = function _animationCycle(tTime, cycleDuration) {\n var whole = Math.floor(tTime /= cycleDuration);\n return tTime && whole === tTime ? whole - 1 : whole;\n},\n _parentToChildTotalTime = function _parentToChildTotalTime(parentTime, child) {\n return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);\n},\n _setEnd = function _setEnd(animation) {\n return animation._end = _roundPrecise(animation._start + (animation._tDur / Math.abs(animation._ts || animation._rts || _tinyNum) || 0));\n},\n _alignPlayhead = function _alignPlayhead(animation, totalTime) {\n // adjusts the animation's _start and _end according to the provided totalTime (only if the parent's smoothChildTiming is true and the animation isn't paused). It doesn't do any rendering or forcing things back into parent timelines, etc. - that's what totalTime() is for.\n var parent = animation._dp;\n\n if (parent && parent.smoothChildTiming && animation._ts) {\n animation._start = _roundPrecise(parent._time - (animation._ts > 0 ? totalTime / animation._ts : ((animation._dirty ? animation.totalDuration() : animation._tDur) - totalTime) / -animation._ts));\n\n _setEnd(animation);\n\n parent._dirty || _uncache(parent, animation); //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.\n }\n\n return animation;\n},\n\n/*\n_totalTimeToTime = (clampedTotalTime, duration, repeat, repeatDelay, yoyo) => {\n\tlet cycleDuration = duration + repeatDelay,\n\t\ttime = _round(clampedTotalTime % cycleDuration);\n\tif (time > duration) {\n\t\ttime = duration;\n\t}\n\treturn (yoyo && (~~(clampedTotalTime / cycleDuration) & 1)) ? duration - time : time;\n},\n*/\n_postAddChecks = function _postAddChecks(timeline, child) {\n var t;\n\n if (child._time || child._initted && !child._dur) {\n //in case, for example, the _start is moved on a tween that has already rendered. Imagine it's at its end state, then the startTime is moved WAY later (after the end of this timeline), it should render at its beginning.\n t = _parentToChildTotalTime(timeline.rawTime(), child);\n\n if (!child._dur || _clamp(0, child.totalDuration(), t) - child._tTime > _tinyNum) {\n child.render(t, true);\n }\n } //if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.\n\n\n if (_uncache(timeline, child)._dp && timeline._initted && timeline._time >= timeline._dur && timeline._ts) {\n //in case any of the ancestors had completed but should now be enabled...\n if (timeline._dur < timeline.duration()) {\n t = timeline;\n\n while (t._dp) {\n t.rawTime() >= 0 && t.totalTime(t._tTime); //moves the timeline (shifts its startTime) if necessary, and also enables it. If it's currently zero, though, it may not be scheduled to render until later so there's no need to force it to align with the current playhead position. Only move to catch up with the playhead.\n\n t = t._dp;\n }\n }\n\n timeline._zTime = -_tinyNum; // helps ensure that the next render() will be forced (crossingStart = true in render()), even if the duration hasn't changed (we're adding a child which would need to get rendered). Definitely an edge case. Note: we MUST do this AFTER the loop above where the totalTime() might trigger a render() because this _addToTimeline() method gets called from the Animation constructor, BEFORE tweens even record their targets, etc. so we wouldn't want things to get triggered in the wrong order.\n }\n},\n _addToTimeline = function _addToTimeline(timeline, child, position, skipChecks) {\n child.parent && _removeFromParent(child);\n child._start = _roundPrecise((_isNumber(position) ? position : position || timeline !== _globalTimeline ? _parsePosition(timeline, position, child) : timeline._time) + child._delay);\n child._end = _roundPrecise(child._start + (child.totalDuration() / Math.abs(child.timeScale()) || 0));\n\n _addLinkedListItem(timeline, child, \"_first\", \"_last\", timeline._sort ? \"_start\" : 0);\n\n _isFromOrFromStart(child) || (timeline._recent = child);\n skipChecks || _postAddChecks(timeline, child);\n timeline._ts < 0 && _alignPlayhead(timeline, timeline._tTime); // if the timeline is reversed and the new child makes it longer, we may need to adjust the parent's _start (push it back)\n\n return timeline;\n},\n _scrollTrigger = function _scrollTrigger(animation, trigger) {\n return (_globals.ScrollTrigger || _missingPlugin(\"scrollTrigger\", trigger)) && _globals.ScrollTrigger.create(trigger, animation);\n},\n _attemptInitTween = function _attemptInitTween(tween, time, force, suppressEvents, tTime) {\n _initTween(tween, time, tTime);\n\n if (!tween._initted) {\n return 1;\n }\n\n if (!force && tween._pt && !_reverting && (tween._dur && tween.vars.lazy !== false || !tween._dur && tween.vars.lazy) && _lastRenderedFrame !== _ticker.frame) {\n _lazyTweens.push(tween);\n\n tween._lazy = [tTime, suppressEvents];\n return 1;\n }\n},\n _parentPlayheadIsBeforeStart = function _parentPlayheadIsBeforeStart(_ref) {\n var parent = _ref.parent;\n return parent && parent._ts && parent._initted && !parent._lock && (parent.rawTime() < 0 || _parentPlayheadIsBeforeStart(parent));\n},\n // check parent's _lock because when a timeline repeats/yoyos and does its artificial wrapping, we shouldn't force the ratio back to 0\n_isFromOrFromStart = function _isFromOrFromStart(_ref2) {\n var data = _ref2.data;\n return data === \"isFromStart\" || data === \"isStart\";\n},\n _renderZeroDurationTween = function _renderZeroDurationTween(tween, totalTime, suppressEvents, force) {\n var prevRatio = tween.ratio,\n ratio = totalTime < 0 || !totalTime && (!tween._start && _parentPlayheadIsBeforeStart(tween) && !(!tween._initted && _isFromOrFromStart(tween)) || (tween._ts < 0 || tween._dp._ts < 0) && !_isFromOrFromStart(tween)) ? 0 : 1,\n // if the tween or its parent is reversed and the totalTime is 0, we should go to a ratio of 0. Edge case: if a from() or fromTo() stagger tween is placed later in a timeline, the \"startAt\" zero-duration tween could initially render at a time when the parent timeline's playhead is technically BEFORE where this tween is, so make sure that any \"from\" and \"fromTo\" startAt tweens are rendered the first time at a ratio of 1.\n repeatDelay = tween._rDelay,\n tTime = 0,\n pt,\n iteration,\n prevIteration;\n\n if (repeatDelay && tween._repeat) {\n // in case there's a zero-duration tween that has a repeat with a repeatDelay\n tTime = _clamp(0, tween._tDur, totalTime);\n iteration = _animationCycle(tTime, repeatDelay);\n tween._yoyo && iteration & 1 && (ratio = 1 - ratio);\n\n if (iteration !== _animationCycle(tween._tTime, repeatDelay)) {\n // if iteration changed\n prevRatio = 1 - ratio;\n tween.vars.repeatRefresh && tween._initted && tween.invalidate();\n }\n }\n\n if (ratio !== prevRatio || _reverting || force || tween._zTime === _tinyNum || !totalTime && tween._zTime) {\n if (!tween._initted && _attemptInitTween(tween, totalTime, force, suppressEvents, tTime)) {\n // if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.\n return;\n }\n\n prevIteration = tween._zTime;\n tween._zTime = totalTime || (suppressEvents ? _tinyNum : 0); // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\n suppressEvents || (suppressEvents = totalTime && !prevIteration); // if it was rendered previously at exactly 0 (_zTime) and now the playhead is moving away, DON'T fire callbacks otherwise they'll seem like duplicates.\n\n tween.ratio = ratio;\n tween._from && (ratio = 1 - ratio);\n tween._time = 0;\n tween._tTime = tTime;\n pt = tween._pt;\n\n while (pt) {\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n\n totalTime < 0 && _rewindStartAt(tween, totalTime, suppressEvents, true);\n tween._onUpdate && !suppressEvents && _callback(tween, \"onUpdate\");\n tTime && tween._repeat && !suppressEvents && tween.parent && _callback(tween, \"onRepeat\");\n\n if ((totalTime >= tween._tDur || totalTime < 0) && tween.ratio === ratio) {\n ratio && _removeFromParent(tween, 1);\n\n if (!suppressEvents && !_reverting) {\n _callback(tween, ratio ? \"onComplete\" : \"onReverseComplete\", true);\n\n tween._prom && tween._prom();\n }\n }\n } else if (!tween._zTime) {\n tween._zTime = totalTime;\n }\n},\n _findNextPauseTween = function _findNextPauseTween(animation, prevTime, time) {\n var child;\n\n if (time > prevTime) {\n child = animation._first;\n\n while (child && child._start <= time) {\n if (child.data === \"isPause\" && child._start > prevTime) {\n return child;\n }\n\n child = child._next;\n }\n } else {\n child = animation._last;\n\n while (child && child._start >= time) {\n if (child.data === \"isPause\" && child._start < prevTime) {\n return child;\n }\n\n child = child._prev;\n }\n }\n},\n _setDuration = function _setDuration(animation, duration, skipUncache, leavePlayhead) {\n var repeat = animation._repeat,\n dur = _roundPrecise(duration) || 0,\n totalProgress = animation._tTime / animation._tDur;\n totalProgress && !leavePlayhead && (animation._time *= dur / animation._dur);\n animation._dur = dur;\n animation._tDur = !repeat ? dur : repeat < 0 ? 1e10 : _roundPrecise(dur * (repeat + 1) + animation._rDelay * repeat);\n totalProgress > 0 && !leavePlayhead && _alignPlayhead(animation, animation._tTime = animation._tDur * totalProgress);\n animation.parent && _setEnd(animation);\n skipUncache || _uncache(animation.parent, animation);\n return animation;\n},\n _onUpdateTotalDuration = function _onUpdateTotalDuration(animation) {\n return animation instanceof Timeline ? _uncache(animation) : _setDuration(animation, animation._dur);\n},\n _zeroPosition = {\n _start: 0,\n endTime: _emptyFunc,\n totalDuration: _emptyFunc\n},\n _parsePosition = function _parsePosition(animation, position, percentAnimation) {\n var labels = animation.labels,\n recent = animation._recent || _zeroPosition,\n clippedDuration = animation.duration() >= _bigNum ? recent.endTime(false) : animation._dur,\n //in case there's a child that infinitely repeats, users almost never intend for the insertion point of a new child to be based on a SUPER long value like that so we clip it and assume the most recently-added child's endTime should be used instead.\n i,\n offset,\n isPercent;\n\n if (_isString(position) && (isNaN(position) || position in labels)) {\n //if the string is a number like \"1\", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).\n offset = position.charAt(0);\n isPercent = position.substr(-1) === \"%\";\n i = position.indexOf(\"=\");\n\n if (offset === \"<\" || offset === \">\") {\n i >= 0 && (position = position.replace(/=/, \"\"));\n return (offset === \"<\" ? recent._start : recent.endTime(recent._repeat >= 0)) + (parseFloat(position.substr(1)) || 0) * (isPercent ? (i < 0 ? recent : percentAnimation).totalDuration() / 100 : 1);\n }\n\n if (i < 0) {\n position in labels || (labels[position] = clippedDuration);\n return labels[position];\n }\n\n offset = parseFloat(position.charAt(i - 1) + position.substr(i + 1));\n\n if (isPercent && percentAnimation) {\n offset = offset / 100 * (_isArray(percentAnimation) ? percentAnimation[0] : percentAnimation).totalDuration();\n }\n\n return i > 1 ? _parsePosition(animation, position.substr(0, i - 1), percentAnimation) + offset : clippedDuration + offset;\n }\n\n return position == null ? clippedDuration : +position;\n},\n _createTweenType = function _createTweenType(type, params, timeline) {\n var isLegacy = _isNumber(params[1]),\n varsIndex = (isLegacy ? 2 : 1) + (type < 2 ? 0 : 1),\n vars = params[varsIndex],\n irVars,\n parent;\n\n isLegacy && (vars.duration = params[1]);\n vars.parent = timeline;\n\n if (type) {\n irVars = vars;\n parent = timeline;\n\n while (parent && !(\"immediateRender\" in irVars)) {\n // inheritance hasn't happened yet, but someone may have set a default in an ancestor timeline. We could do vars.immediateRender = _isNotFalse(_inheritDefaults(vars).immediateRender) but that'd exact a slight performance penalty because _inheritDefaults() also runs in the Tween constructor. We're paying a small kb price here to gain speed.\n irVars = parent.vars.defaults || {};\n parent = _isNotFalse(parent.vars.inherit) && parent.parent;\n }\n\n vars.immediateRender = _isNotFalse(irVars.immediateRender);\n type < 2 ? vars.runBackwards = 1 : vars.startAt = params[varsIndex - 1]; // \"from\" vars\n }\n\n return new Tween(params[0], vars, params[varsIndex + 1]);\n},\n _conditionalReturn = function _conditionalReturn(value, func) {\n return value || value === 0 ? func(value) : func;\n},\n _clamp = function _clamp(min, max, value) {\n return value < min ? min : value > max ? max : value;\n},\n getUnit = function getUnit(value, v) {\n return !_isString(value) || !(v = _unitExp.exec(value)) ? \"\" : v[1];\n},\n // note: protect against padded numbers as strings, like \"100.100\". That shouldn't return \"00\" as the unit. If it's numeric, return no unit.\nclamp = function clamp(min, max, value) {\n return _conditionalReturn(value, function (v) {\n return _clamp(min, max, v);\n });\n},\n _slice = [].slice,\n _isArrayLike = function _isArrayLike(value, nonEmpty) {\n return value && _isObject(value) && \"length\" in value && (!nonEmpty && !value.length || value.length - 1 in value && _isObject(value[0])) && !value.nodeType && value !== _win;\n},\n _flatten = function _flatten(ar, leaveStrings, accumulator) {\n if (accumulator === void 0) {\n accumulator = [];\n }\n\n return ar.forEach(function (value) {\n var _accumulator;\n\n return _isString(value) && !leaveStrings || _isArrayLike(value, 1) ? (_accumulator = accumulator).push.apply(_accumulator, toArray(value)) : accumulator.push(value);\n }) || accumulator;\n},\n //takes any value and returns an array. If it's a string (and leaveStrings isn't true), it'll use document.querySelectorAll() and convert that to an array. It'll also accept iterables like jQuery objects.\ntoArray = function toArray(value, scope, leaveStrings) {\n return _context && !scope && _context.selector ? _context.selector(value) : _isString(value) && !leaveStrings && (_coreInitted || !_wake()) ? _slice.call((scope || _doc).querySelectorAll(value), 0) : _isArray(value) ? _flatten(value, leaveStrings) : _isArrayLike(value) ? _slice.call(value, 0) : value ? [value] : [];\n},\n selector = function selector(value) {\n value = toArray(value)[0] || _warn(\"Invalid scope\") || {};\n return function (v) {\n var el = value.current || value.nativeElement || value;\n return toArray(v, el.querySelectorAll ? el : el === value ? _warn(\"Invalid scope\") || _doc.createElement(\"div\") : value);\n };\n},\n shuffle = function shuffle(a) {\n return a.sort(function () {\n return .5 - Math.random();\n });\n},\n // alternative that's a bit faster and more reliably diverse but bigger: for (let j, v, i = a.length; i; j = Math.floor(Math.random() * i), v = a[--i], a[i] = a[j], a[j] = v); return a;\n//for distributing values across an array. Can accept a number, a function or (most commonly) a function which can contain the following properties: {base, amount, from, ease, grid, axis, length, each}. Returns a function that expects the following parameters: index, target, array. Recognizes the following\ndistribute = function distribute(v) {\n if (_isFunction(v)) {\n return v;\n }\n\n var vars = _isObject(v) ? v : {\n each: v\n },\n //n:1 is just to indicate v was a number; we leverage that later to set v according to the length we get. If a number is passed in, we treat it like the old stagger value where 0.1, for example, would mean that things would be distributed with 0.1 between each element in the array rather than a total \"amount\" that's chunked out among them all.\n ease = _parseEase(vars.ease),\n from = vars.from || 0,\n base = parseFloat(vars.base) || 0,\n cache = {},\n isDecimal = from > 0 && from < 1,\n ratios = isNaN(from) || isDecimal,\n axis = vars.axis,\n ratioX = from,\n ratioY = from;\n\n if (_isString(from)) {\n ratioX = ratioY = {\n center: .5,\n edges: .5,\n end: 1\n }[from] || 0;\n } else if (!isDecimal && ratios) {\n ratioX = from[0];\n ratioY = from[1];\n }\n\n return function (i, target, a) {\n var l = (a || vars).length,\n distances = cache[l],\n originX,\n originY,\n x,\n y,\n d,\n j,\n max,\n min,\n wrapAt;\n\n if (!distances) {\n wrapAt = vars.grid === \"auto\" ? 0 : (vars.grid || [1, _bigNum])[1];\n\n if (!wrapAt) {\n max = -_bigNum;\n\n while (max < (max = a[wrapAt++].getBoundingClientRect().left) && wrapAt < l) {}\n\n wrapAt--;\n }\n\n distances = cache[l] = [];\n originX = ratios ? Math.min(wrapAt, l) * ratioX - .5 : from % wrapAt;\n originY = wrapAt === _bigNum ? 0 : ratios ? l * ratioY / wrapAt - .5 : from / wrapAt | 0;\n max = 0;\n min = _bigNum;\n\n for (j = 0; j < l; j++) {\n x = j % wrapAt - originX;\n y = originY - (j / wrapAt | 0);\n distances[j] = d = !axis ? _sqrt(x * x + y * y) : Math.abs(axis === \"y\" ? y : x);\n d > max && (max = d);\n d < min && (min = d);\n }\n\n from === \"random\" && shuffle(distances);\n distances.max = max - min;\n distances.min = min;\n distances.v = l = (parseFloat(vars.amount) || parseFloat(vars.each) * (wrapAt > l ? l - 1 : !axis ? Math.max(wrapAt, l / wrapAt) : axis === \"y\" ? l / wrapAt : wrapAt) || 0) * (from === \"edges\" ? -1 : 1);\n distances.b = l < 0 ? base - l : base;\n distances.u = getUnit(vars.amount || vars.each) || 0; //unit\n\n ease = ease && l < 0 ? _invertEase(ease) : ease;\n }\n\n l = (distances[i] - distances.min) / distances.max || 0;\n return _roundPrecise(distances.b + (ease ? ease(l) : l) * distances.v) + distances.u; //round in order to work around floating point errors\n };\n},\n _roundModifier = function _roundModifier(v) {\n //pass in 0.1 get a function that'll round to the nearest tenth, or 5 to round to the closest 5, or 0.001 to the closest 1000th, etc.\n var p = Math.pow(10, ((v + \"\").split(\".\")[1] || \"\").length); //to avoid floating point math errors (like 24 * 0.1 == 2.4000000000000004), we chop off at a specific number of decimal places (much faster than toFixed())\n\n return function (raw) {\n var n = _roundPrecise(Math.round(parseFloat(raw) / v) * v * p);\n\n return (n - n % 1) / p + (_isNumber(raw) ? 0 : getUnit(raw)); // n - n % 1 replaces Math.floor() in order to handle negative values properly. For example, Math.floor(-150.00000000000003) is 151!\n };\n},\n snap = function snap(snapTo, value) {\n var isArray = _isArray(snapTo),\n radius,\n is2D;\n\n if (!isArray && _isObject(snapTo)) {\n radius = isArray = snapTo.radius || _bigNum;\n\n if (snapTo.values) {\n snapTo = toArray(snapTo.values);\n\n if (is2D = !_isNumber(snapTo[0])) {\n radius *= radius; //performance optimization so we don't have to Math.sqrt() in the loop.\n }\n } else {\n snapTo = _roundModifier(snapTo.increment);\n }\n }\n\n return _conditionalReturn(value, !isArray ? _roundModifier(snapTo) : _isFunction(snapTo) ? function (raw) {\n is2D = snapTo(raw);\n return Math.abs(is2D - raw) <= radius ? is2D : raw;\n } : function (raw) {\n var x = parseFloat(is2D ? raw.x : raw),\n y = parseFloat(is2D ? raw.y : 0),\n min = _bigNum,\n closest = 0,\n i = snapTo.length,\n dx,\n dy;\n\n while (i--) {\n if (is2D) {\n dx = snapTo[i].x - x;\n dy = snapTo[i].y - y;\n dx = dx * dx + dy * dy;\n } else {\n dx = Math.abs(snapTo[i] - x);\n }\n\n if (dx < min) {\n min = dx;\n closest = i;\n }\n }\n\n closest = !radius || min <= radius ? snapTo[closest] : raw;\n return is2D || closest === raw || _isNumber(raw) ? closest : closest + getUnit(raw);\n });\n},\n random = function random(min, max, roundingIncrement, returnFunction) {\n return _conditionalReturn(_isArray(min) ? !max : roundingIncrement === true ? !!(roundingIncrement = 0) : !returnFunction, function () {\n return _isArray(min) ? min[~~(Math.random() * min.length)] : (roundingIncrement = roundingIncrement || 1e-5) && (returnFunction = roundingIncrement < 1 ? Math.pow(10, (roundingIncrement + \"\").length - 2) : 1) && Math.floor(Math.round((min - roundingIncrement / 2 + Math.random() * (max - min + roundingIncrement * .99)) / roundingIncrement) * roundingIncrement * returnFunction) / returnFunction;\n });\n},\n pipe = function pipe() {\n for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {\n functions[_key] = arguments[_key];\n }\n\n return function (value) {\n return functions.reduce(function (v, f) {\n return f(v);\n }, value);\n };\n},\n unitize = function unitize(func, unit) {\n return function (value) {\n return func(parseFloat(value)) + (unit || getUnit(value));\n };\n},\n normalize = function normalize(min, max, value) {\n return mapRange(min, max, 0, 1, value);\n},\n _wrapArray = function _wrapArray(a, wrapper, value) {\n return _conditionalReturn(value, function (index) {\n return a[~~wrapper(index)];\n });\n},\n wrap = function wrap(min, max, value) {\n // NOTE: wrap() CANNOT be an arrow function! A very odd compiling bug causes problems (unrelated to GSAP).\n var range = max - min;\n return _isArray(min) ? _wrapArray(min, wrap(0, min.length), max) : _conditionalReturn(value, function (value) {\n return (range + (value - min) % range) % range + min;\n });\n},\n wrapYoyo = function wrapYoyo(min, max, value) {\n var range = max - min,\n total = range * 2;\n return _isArray(min) ? _wrapArray(min, wrapYoyo(0, min.length - 1), max) : _conditionalReturn(value, function (value) {\n value = (total + (value - min) % total) % total || 0;\n return min + (value > range ? total - value : value);\n });\n},\n _replaceRandom = function _replaceRandom(value) {\n //replaces all occurrences of random(...) in a string with the calculated random value. can be a range like random(-100, 100, 5) or an array like random([0, 100, 500])\n var prev = 0,\n s = \"\",\n i,\n nums,\n end,\n isArray;\n\n while (~(i = value.indexOf(\"random(\", prev))) {\n end = value.indexOf(\")\", i);\n isArray = value.charAt(i + 7) === \"[\";\n nums = value.substr(i + 7, end - i - 7).match(isArray ? _delimitedValueExp : _strictNumExp);\n s += value.substr(prev, i - prev) + random(isArray ? nums : +nums[0], isArray ? 0 : +nums[1], +nums[2] || 1e-5);\n prev = end + 1;\n }\n\n return s + value.substr(prev, value.length - prev);\n},\n mapRange = function mapRange(inMin, inMax, outMin, outMax, value) {\n var inRange = inMax - inMin,\n outRange = outMax - outMin;\n return _conditionalReturn(value, function (value) {\n return outMin + ((value - inMin) / inRange * outRange || 0);\n });\n},\n interpolate = function interpolate(start, end, progress, mutate) {\n var func = isNaN(start + end) ? 0 : function (p) {\n return (1 - p) * start + p * end;\n };\n\n if (!func) {\n var isString = _isString(start),\n master = {},\n p,\n i,\n interpolators,\n l,\n il;\n\n progress === true && (mutate = 1) && (progress = null);\n\n if (isString) {\n start = {\n p: start\n };\n end = {\n p: end\n };\n } else if (_isArray(start) && !_isArray(end)) {\n interpolators = [];\n l = start.length;\n il = l - 2;\n\n for (i = 1; i < l; i++) {\n interpolators.push(interpolate(start[i - 1], start[i])); //build the interpolators up front as a performance optimization so that when the function is called many times, it can just reuse them.\n }\n\n l--;\n\n func = function func(p) {\n p *= l;\n var i = Math.min(il, ~~p);\n return interpolators[i](p - i);\n };\n\n progress = end;\n } else if (!mutate) {\n start = _merge(_isArray(start) ? [] : {}, start);\n }\n\n if (!interpolators) {\n for (p in end) {\n _addPropTween.call(master, start, p, \"get\", end[p]);\n }\n\n func = function func(p) {\n return _renderPropTweens(p, master) || (isString ? start.p : start);\n };\n }\n }\n\n return _conditionalReturn(progress, func);\n},\n _getLabelInDirection = function _getLabelInDirection(timeline, fromTime, backward) {\n //used for nextLabel() and previousLabel()\n var labels = timeline.labels,\n min = _bigNum,\n p,\n distance,\n label;\n\n for (p in labels) {\n distance = labels[p] - fromTime;\n\n if (distance < 0 === !!backward && distance && min > (distance = Math.abs(distance))) {\n label = p;\n min = distance;\n }\n }\n\n return label;\n},\n _callback = function _callback(animation, type, executeLazyFirst) {\n var v = animation.vars,\n callback = v[type],\n prevContext = _context,\n context = animation._ctx,\n params,\n scope,\n result;\n\n if (!callback) {\n return;\n }\n\n params = v[type + \"Params\"];\n scope = v.callbackScope || animation;\n executeLazyFirst && _lazyTweens.length && _lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.\n\n context && (_context = context);\n result = params ? callback.apply(scope, params) : callback.call(scope);\n _context = prevContext;\n return result;\n},\n _interrupt = function _interrupt(animation) {\n _removeFromParent(animation);\n\n animation.scrollTrigger && animation.scrollTrigger.kill(!!_reverting);\n animation.progress() < 1 && _callback(animation, \"onInterrupt\");\n return animation;\n},\n _quickTween,\n _registerPluginQueue = [],\n _createPlugin = function _createPlugin(config) {\n if (!_windowExists()) {\n _registerPluginQueue.push(config);\n\n return;\n }\n\n config = !config.name && config[\"default\"] || config; //UMD packaging wraps things oddly, so for example MotionPathHelper becomes {MotionPathHelper:MotionPathHelper, default:MotionPathHelper}.\n\n var name = config.name,\n isFunc = _isFunction(config),\n Plugin = name && !isFunc && config.init ? function () {\n this._props = [];\n } : config,\n //in case someone passes in an object that's not a plugin, like CustomEase\n instanceDefaults = {\n init: _emptyFunc,\n render: _renderPropTweens,\n add: _addPropTween,\n kill: _killPropTweensOf,\n modifier: _addPluginModifier,\n rawVars: 0\n },\n statics = {\n targetTest: 0,\n get: 0,\n getSetter: _getSetter,\n aliases: {},\n register: 0\n };\n\n _wake();\n\n if (config !== Plugin) {\n if (_plugins[name]) {\n return;\n }\n\n _setDefaults(Plugin, _setDefaults(_copyExcluding(config, instanceDefaults), statics)); //static methods\n\n\n _merge(Plugin.prototype, _merge(instanceDefaults, _copyExcluding(config, statics))); //instance methods\n\n\n _plugins[Plugin.prop = name] = Plugin;\n\n if (config.targetTest) {\n _harnessPlugins.push(Plugin);\n\n _reservedProps[name] = 1;\n }\n\n name = (name === \"css\" ? \"CSS\" : name.charAt(0).toUpperCase() + name.substr(1)) + \"Plugin\"; //for the global name. \"motionPath\" should become MotionPathPlugin\n }\n\n _addGlobal(name, Plugin);\n\n config.register && config.register(gsap, Plugin, PropTween);\n},\n\n/*\n * --------------------------------------------------------------------------------------\n * COLORS\n * --------------------------------------------------------------------------------------\n */\n_255 = 255,\n _colorLookup = {\n aqua: [0, _255, _255],\n lime: [0, _255, 0],\n silver: [192, 192, 192],\n black: [0, 0, 0],\n maroon: [128, 0, 0],\n teal: [0, 128, 128],\n blue: [0, 0, _255],\n navy: [0, 0, 128],\n white: [_255, _255, _255],\n olive: [128, 128, 0],\n yellow: [_255, _255, 0],\n orange: [_255, 165, 0],\n gray: [128, 128, 128],\n purple: [128, 0, 128],\n green: [0, 128, 0],\n red: [_255, 0, 0],\n pink: [_255, 192, 203],\n cyan: [0, _255, _255],\n transparent: [_255, _255, _255, 0]\n},\n // possible future idea to replace the hard-coded color name values - put this in the ticker.wake() where we set the _doc:\n// let ctx = _doc.createElement(\"canvas\").getContext(\"2d\");\n// _forEachName(\"aqua,lime,silver,black,maroon,teal,blue,navy,white,olive,yellow,orange,gray,purple,green,red,pink,cyan\", color => {ctx.fillStyle = color; _colorLookup[color] = splitColor(ctx.fillStyle)});\n_hue = function _hue(h, m1, m2) {\n h += h < 0 ? 1 : h > 1 ? -1 : 0;\n return (h * 6 < 1 ? m1 + (m2 - m1) * h * 6 : h < .5 ? m2 : h * 3 < 2 ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1) * _255 + .5 | 0;\n},\n splitColor = function splitColor(v, toHSL, forceAlpha) {\n var a = !v ? _colorLookup.black : _isNumber(v) ? [v >> 16, v >> 8 & _255, v & _255] : 0,\n r,\n g,\n b,\n h,\n s,\n l,\n max,\n min,\n d,\n wasHSL;\n\n if (!a) {\n if (v.substr(-1) === \",\") {\n //sometimes a trailing comma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:\"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)\" - in this example \"blue,\" has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.\n v = v.substr(0, v.length - 1);\n }\n\n if (_colorLookup[v]) {\n a = _colorLookup[v];\n } else if (v.charAt(0) === \"#\") {\n if (v.length < 6) {\n //for shorthand like #9F0 or #9F0F (could have alpha)\n r = v.charAt(1);\n g = v.charAt(2);\n b = v.charAt(3);\n v = \"#\" + r + r + g + g + b + b + (v.length === 5 ? v.charAt(4) + v.charAt(4) : \"\");\n }\n\n if (v.length === 9) {\n // hex with alpha, like #fd5e53ff\n a = parseInt(v.substr(1, 6), 16);\n return [a >> 16, a >> 8 & _255, a & _255, parseInt(v.substr(7), 16) / 255];\n }\n\n v = parseInt(v.substr(1), 16);\n a = [v >> 16, v >> 8 & _255, v & _255];\n } else if (v.substr(0, 3) === \"hsl\") {\n a = wasHSL = v.match(_strictNumExp);\n\n if (!toHSL) {\n h = +a[0] % 360 / 360;\n s = +a[1] / 100;\n l = +a[2] / 100;\n g = l <= .5 ? l * (s + 1) : l + s - l * s;\n r = l * 2 - g;\n a.length > 3 && (a[3] *= 1); //cast as number\n\n a[0] = _hue(h + 1 / 3, r, g);\n a[1] = _hue(h, r, g);\n a[2] = _hue(h - 1 / 3, r, g);\n } else if (~v.indexOf(\"=\")) {\n //if relative values are found, just return the raw strings with the relative prefixes in place.\n a = v.match(_numExp);\n forceAlpha && a.length < 4 && (a[3] = 1);\n return a;\n }\n } else {\n a = v.match(_strictNumExp) || _colorLookup.transparent;\n }\n\n a = a.map(Number);\n }\n\n if (toHSL && !wasHSL) {\n r = a[0] / _255;\n g = a[1] / _255;\n b = a[2] / _255;\n max = Math.max(r, g, b);\n min = Math.min(r, g, b);\n l = (max + min) / 2;\n\n if (max === min) {\n h = s = 0;\n } else {\n d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n h = max === r ? (g - b) / d + (g < b ? 6 : 0) : max === g ? (b - r) / d + 2 : (r - g) / d + 4;\n h *= 60;\n }\n\n a[0] = ~~(h + .5);\n a[1] = ~~(s * 100 + .5);\n a[2] = ~~(l * 100 + .5);\n }\n\n forceAlpha && a.length < 4 && (a[3] = 1);\n return a;\n},\n _colorOrderData = function _colorOrderData(v) {\n // strips out the colors from the string, finds all the numeric slots (with units) and returns an array of those. The Array also has a \"c\" property which is an Array of the index values where the colors belong. This is to help work around issues where there's a mis-matched order of color/numeric data like drop-shadow(#f00 0px 1px 2px) and drop-shadow(0x 1px 2px #f00). This is basically a helper function used in _formatColors()\n var values = [],\n c = [],\n i = -1;\n v.split(_colorExp).forEach(function (v) {\n var a = v.match(_numWithUnitExp) || [];\n values.push.apply(values, a);\n c.push(i += a.length + 1);\n });\n values.c = c;\n return values;\n},\n _formatColors = function _formatColors(s, toHSL, orderMatchData) {\n var result = \"\",\n colors = (s + result).match(_colorExp),\n type = toHSL ? \"hsla(\" : \"rgba(\",\n i = 0,\n c,\n shell,\n d,\n l;\n\n if (!colors) {\n return s;\n }\n\n colors = colors.map(function (color) {\n return (color = splitColor(color, toHSL, 1)) && type + (toHSL ? color[0] + \",\" + color[1] + \"%,\" + color[2] + \"%,\" + color[3] : color.join(\",\")) + \")\";\n });\n\n if (orderMatchData) {\n d = _colorOrderData(s);\n c = orderMatchData.c;\n\n if (c.join(result) !== d.c.join(result)) {\n shell = s.replace(_colorExp, \"1\").split(_numWithUnitExp);\n l = shell.length - 1;\n\n for (; i < l; i++) {\n result += shell[i] + (~c.indexOf(i) ? colors.shift() || type + \"0,0,0,0)\" : (d.length ? d : colors.length ? colors : orderMatchData).shift());\n }\n }\n }\n\n if (!shell) {\n shell = s.split(_colorExp);\n l = shell.length - 1;\n\n for (; i < l; i++) {\n result += shell[i] + colors[i];\n }\n }\n\n return result + shell[l];\n},\n _colorExp = function () {\n var s = \"(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3,4}){1,2}\\\\b\",\n //we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.,\n p;\n\n for (p in _colorLookup) {\n s += \"|\" + p + \"\\\\b\";\n }\n\n return new RegExp(s + \")\", \"gi\");\n}(),\n _hslExp = /hsl[a]?\\(/,\n _colorStringFilter = function _colorStringFilter(a) {\n var combined = a.join(\" \"),\n toHSL;\n _colorExp.lastIndex = 0;\n\n if (_colorExp.test(combined)) {\n toHSL = _hslExp.test(combined);\n a[1] = _formatColors(a[1], toHSL);\n a[0] = _formatColors(a[0], toHSL, _colorOrderData(a[1])); // make sure the order of numbers/colors match with the END value.\n\n return true;\n }\n},\n\n/*\n * --------------------------------------------------------------------------------------\n * TICKER\n * --------------------------------------------------------------------------------------\n */\n_tickerActive,\n _ticker = function () {\n var _getTime = Date.now,\n _lagThreshold = 500,\n _adjustedLag = 33,\n _startTime = _getTime(),\n _lastUpdate = _startTime,\n _gap = 1000 / 240,\n _nextTime = _gap,\n _listeners = [],\n _id,\n _req,\n _raf,\n _self,\n _delta,\n _i,\n _tick = function _tick(v) {\n var elapsed = _getTime() - _lastUpdate,\n manual = v === true,\n overlap,\n dispatch,\n time,\n frame;\n\n elapsed > _lagThreshold && (_startTime += elapsed - _adjustedLag);\n _lastUpdate += elapsed;\n time = _lastUpdate - _startTime;\n overlap = time - _nextTime;\n\n if (overlap > 0 || manual) {\n frame = ++_self.frame;\n _delta = time - _self.time * 1000;\n _self.time = time = time / 1000;\n _nextTime += overlap + (overlap >= _gap ? 4 : _gap - overlap);\n dispatch = 1;\n }\n\n manual || (_id = _req(_tick)); //make sure the request is made before we dispatch the \"tick\" event so that timing is maintained. Otherwise, if processing the \"tick\" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.\n\n if (dispatch) {\n for (_i = 0; _i < _listeners.length; _i++) {\n // use _i and check _listeners.length instead of a variable because a listener could get removed during the loop, and if that happens to an element less than the current index, it'd throw things off in the loop.\n _listeners[_i](time, _delta, frame, v);\n }\n }\n };\n\n _self = {\n time: 0,\n frame: 0,\n tick: function tick() {\n _tick(true);\n },\n deltaRatio: function deltaRatio(fps) {\n return _delta / (1000 / (fps || 60));\n },\n wake: function wake() {\n if (_coreReady) {\n if (!_coreInitted && _windowExists()) {\n _win = _coreInitted = window;\n _doc = _win.document || {};\n _globals.gsap = gsap;\n (_win.gsapVersions || (_win.gsapVersions = [])).push(gsap.version);\n\n _install(_installScope || _win.GreenSockGlobals || !_win.gsap && _win || {});\n\n _raf = _win.requestAnimationFrame;\n\n _registerPluginQueue.forEach(_createPlugin);\n }\n\n _id && _self.sleep();\n\n _req = _raf || function (f) {\n return setTimeout(f, _nextTime - _self.time * 1000 + 1 | 0);\n };\n\n _tickerActive = 1;\n\n _tick(2);\n }\n },\n sleep: function sleep() {\n (_raf ? _win.cancelAnimationFrame : clearTimeout)(_id);\n _tickerActive = 0;\n _req = _emptyFunc;\n },\n lagSmoothing: function lagSmoothing(threshold, adjustedLag) {\n _lagThreshold = threshold || Infinity; // zero should be interpreted as basically unlimited\n\n _adjustedLag = Math.min(adjustedLag || 33, _lagThreshold);\n },\n fps: function fps(_fps) {\n _gap = 1000 / (_fps || 240);\n _nextTime = _self.time * 1000 + _gap;\n },\n add: function add(callback, once, prioritize) {\n var func = once ? function (t, d, f, v) {\n callback(t, d, f, v);\n\n _self.remove(func);\n } : callback;\n\n _self.remove(callback);\n\n _listeners[prioritize ? \"unshift\" : \"push\"](func);\n\n _wake();\n\n return func;\n },\n remove: function remove(callback, i) {\n ~(i = _listeners.indexOf(callback)) && _listeners.splice(i, 1) && _i >= i && _i--;\n },\n _listeners: _listeners\n };\n return _self;\n}(),\n _wake = function _wake() {\n return !_tickerActive && _ticker.wake();\n},\n //also ensures the core classes are initialized.\n\n/*\n* -------------------------------------------------\n* EASING\n* -------------------------------------------------\n*/\n_easeMap = {},\n _customEaseExp = /^[\\d.\\-M][\\d.\\-,\\s]/,\n _quotesExp = /[\"']/g,\n _parseObjectInString = function _parseObjectInString(value) {\n //takes a string like \"{wiggles:10, type:anticipate})\" and turns it into a real object. Notice it ends in \")\" and includes the {} wrappers. This is because we only use this function for parsing ease configs and prioritized optimization rather than reusability.\n var obj = {},\n split = value.substr(1, value.length - 3).split(\":\"),\n key = split[0],\n i = 1,\n l = split.length,\n index,\n val,\n parsedVal;\n\n for (; i < l; i++) {\n val = split[i];\n index = i !== l - 1 ? val.lastIndexOf(\",\") : val.length;\n parsedVal = val.substr(0, index);\n obj[key] = isNaN(parsedVal) ? parsedVal.replace(_quotesExp, \"\").trim() : +parsedVal;\n key = val.substr(index + 1).trim();\n }\n\n return obj;\n},\n _valueInParentheses = function _valueInParentheses(value) {\n var open = value.indexOf(\"(\") + 1,\n close = value.indexOf(\")\"),\n nested = value.indexOf(\"(\", open);\n return value.substring(open, ~nested && nested < close ? value.indexOf(\")\", close + 1) : close);\n},\n _configEaseFromString = function _configEaseFromString(name) {\n //name can be a string like \"elastic.out(1,0.5)\", and pass in _easeMap as obj and it'll parse it out and call the actual function like _easeMap.Elastic.easeOut.config(1,0.5). It will also parse custom ease strings as long as CustomEase is loaded and registered (internally as _easeMap._CE).\n var split = (name + \"\").split(\"(\"),\n ease = _easeMap[split[0]];\n return ease && split.length > 1 && ease.config ? ease.config.apply(null, ~name.indexOf(\"{\") ? [_parseObjectInString(split[1])] : _valueInParentheses(name).split(\",\").map(_numericIfPossible)) : _easeMap._CE && _customEaseExp.test(name) ? _easeMap._CE(\"\", name) : ease;\n},\n _invertEase = function _invertEase(ease) {\n return function (p) {\n return 1 - ease(1 - p);\n };\n},\n // allow yoyoEase to be set in children and have those affected when the parent/ancestor timeline yoyos.\n_propagateYoyoEase = function _propagateYoyoEase(timeline, isYoyo) {\n var child = timeline._first,\n ease;\n\n while (child) {\n if (child instanceof Timeline) {\n _propagateYoyoEase(child, isYoyo);\n } else if (child.vars.yoyoEase && (!child._yoyo || !child._repeat) && child._yoyo !== isYoyo) {\n if (child.timeline) {\n _propagateYoyoEase(child.timeline, isYoyo);\n } else {\n ease = child._ease;\n child._ease = child._yEase;\n child._yEase = ease;\n child._yoyo = isYoyo;\n }\n }\n\n child = child._next;\n }\n},\n _parseEase = function _parseEase(ease, defaultEase) {\n return !ease ? defaultEase : (_isFunction(ease) ? ease : _easeMap[ease] || _configEaseFromString(ease)) || defaultEase;\n},\n _insertEase = function _insertEase(names, easeIn, easeOut, easeInOut) {\n if (easeOut === void 0) {\n easeOut = function easeOut(p) {\n return 1 - easeIn(1 - p);\n };\n }\n\n if (easeInOut === void 0) {\n easeInOut = function easeInOut(p) {\n return p < .5 ? easeIn(p * 2) / 2 : 1 - easeIn((1 - p) * 2) / 2;\n };\n }\n\n var ease = {\n easeIn: easeIn,\n easeOut: easeOut,\n easeInOut: easeInOut\n },\n lowercaseName;\n\n _forEachName(names, function (name) {\n _easeMap[name] = _globals[name] = ease;\n _easeMap[lowercaseName = name.toLowerCase()] = easeOut;\n\n for (var p in ease) {\n _easeMap[lowercaseName + (p === \"easeIn\" ? \".in\" : p === \"easeOut\" ? \".out\" : \".inOut\")] = _easeMap[name + \".\" + p] = ease[p];\n }\n });\n\n return ease;\n},\n _easeInOutFromOut = function _easeInOutFromOut(easeOut) {\n return function (p) {\n return p < .5 ? (1 - easeOut(1 - p * 2)) / 2 : .5 + easeOut((p - .5) * 2) / 2;\n };\n},\n _configElastic = function _configElastic(type, amplitude, period) {\n var p1 = amplitude >= 1 ? amplitude : 1,\n //note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1.\n p2 = (period || (type ? .3 : .45)) / (amplitude < 1 ? amplitude : 1),\n p3 = p2 / _2PI * (Math.asin(1 / p1) || 0),\n easeOut = function easeOut(p) {\n return p === 1 ? 1 : p1 * Math.pow(2, -10 * p) * _sin((p - p3) * p2) + 1;\n },\n ease = type === \"out\" ? easeOut : type === \"in\" ? function (p) {\n return 1 - easeOut(1 - p);\n } : _easeInOutFromOut(easeOut);\n\n p2 = _2PI / p2; //precalculate to optimize\n\n ease.config = function (amplitude, period) {\n return _configElastic(type, amplitude, period);\n };\n\n return ease;\n},\n _configBack = function _configBack(type, overshoot) {\n if (overshoot === void 0) {\n overshoot = 1.70158;\n }\n\n var easeOut = function easeOut(p) {\n return p ? --p * p * ((overshoot + 1) * p + overshoot) + 1 : 0;\n },\n ease = type === \"out\" ? easeOut : type === \"in\" ? function (p) {\n return 1 - easeOut(1 - p);\n } : _easeInOutFromOut(easeOut);\n\n ease.config = function (overshoot) {\n return _configBack(type, overshoot);\n };\n\n return ease;\n}; // a cheaper (kb and cpu) but more mild way to get a parameterized weighted ease by feeding in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n// _weightedEase = ratio => {\n// \tlet y = 0.5 + ratio / 2;\n// \treturn p => (2 * (1 - p) * p * y + p * p);\n// },\n// a stronger (but more expensive kb/cpu) parameterized weighted ease that lets you feed in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n// _weightedEaseStrong = ratio => {\n// \tratio = .5 + ratio / 2;\n// \tlet o = 1 / 3 * (ratio < .5 ? ratio : 1 - ratio),\n// \t\tb = ratio - o,\n// \t\tc = ratio + o;\n// \treturn p => p === 1 ? p : 3 * b * (1 - p) * (1 - p) * p + 3 * c * (1 - p) * p * p + p * p * p;\n// };\n\n\n_forEachName(\"Linear,Quad,Cubic,Quart,Quint,Strong\", function (name, i) {\n var power = i < 5 ? i + 1 : i;\n\n _insertEase(name + \",Power\" + (power - 1), i ? function (p) {\n return Math.pow(p, power);\n } : function (p) {\n return p;\n }, function (p) {\n return 1 - Math.pow(1 - p, power);\n }, function (p) {\n return p < .5 ? Math.pow(p * 2, power) / 2 : 1 - Math.pow((1 - p) * 2, power) / 2;\n });\n});\n\n_easeMap.Linear.easeNone = _easeMap.none = _easeMap.Linear.easeIn;\n\n_insertEase(\"Elastic\", _configElastic(\"in\"), _configElastic(\"out\"), _configElastic());\n\n(function (n, c) {\n var n1 = 1 / c,\n n2 = 2 * n1,\n n3 = 2.5 * n1,\n easeOut = function easeOut(p) {\n return p < n1 ? n * p * p : p < n2 ? n * Math.pow(p - 1.5 / c, 2) + .75 : p < n3 ? n * (p -= 2.25 / c) * p + .9375 : n * Math.pow(p - 2.625 / c, 2) + .984375;\n };\n\n _insertEase(\"Bounce\", function (p) {\n return 1 - easeOut(1 - p);\n }, easeOut);\n})(7.5625, 2.75);\n\n_insertEase(\"Expo\", function (p) {\n return p ? Math.pow(2, 10 * (p - 1)) : 0;\n});\n\n_insertEase(\"Circ\", function (p) {\n return -(_sqrt(1 - p * p) - 1);\n});\n\n_insertEase(\"Sine\", function (p) {\n return p === 1 ? 1 : -_cos(p * _HALF_PI) + 1;\n});\n\n_insertEase(\"Back\", _configBack(\"in\"), _configBack(\"out\"), _configBack());\n\n_easeMap.SteppedEase = _easeMap.steps = _globals.SteppedEase = {\n config: function config(steps, immediateStart) {\n if (steps === void 0) {\n steps = 1;\n }\n\n var p1 = 1 / steps,\n p2 = steps + (immediateStart ? 0 : 1),\n p3 = immediateStart ? 1 : 0,\n max = 1 - _tinyNum;\n return function (p) {\n return ((p2 * _clamp(0, max, p) | 0) + p3) * p1;\n };\n }\n};\n_defaults.ease = _easeMap[\"quad.out\"];\n\n_forEachName(\"onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt\", function (name) {\n return _callbackNames += name + \",\" + name + \"Params,\";\n});\n/*\n * --------------------------------------------------------------------------------------\n * CACHE\n * --------------------------------------------------------------------------------------\n */\n\n\nexport var GSCache = function GSCache(target, harness) {\n this.id = _gsID++;\n target._gsap = this;\n this.target = target;\n this.harness = harness;\n this.get = harness ? harness.get : _getProperty;\n this.set = harness ? harness.getSetter : _getSetter;\n};\n/*\n * --------------------------------------------------------------------------------------\n * ANIMATION\n * --------------------------------------------------------------------------------------\n */\n\nexport var Animation = /*#__PURE__*/function () {\n function Animation(vars) {\n this.vars = vars;\n this._delay = +vars.delay || 0;\n\n if (this._repeat = vars.repeat === Infinity ? -2 : vars.repeat || 0) {\n // TODO: repeat: Infinity on a timeline's children must flag that timeline internally and affect its totalDuration, otherwise it'll stop in the negative direction when reaching the start.\n this._rDelay = vars.repeatDelay || 0;\n this._yoyo = !!vars.yoyo || !!vars.yoyoEase;\n }\n\n this._ts = 1;\n\n _setDuration(this, +vars.duration, 1, 1);\n\n this.data = vars.data;\n\n if (_context) {\n this._ctx = _context;\n\n _context.data.push(this);\n }\n\n _tickerActive || _ticker.wake();\n }\n\n var _proto = Animation.prototype;\n\n _proto.delay = function delay(value) {\n if (value || value === 0) {\n this.parent && this.parent.smoothChildTiming && this.startTime(this._start + value - this._delay);\n this._delay = value;\n return this;\n }\n\n return this._delay;\n };\n\n _proto.duration = function duration(value) {\n return arguments.length ? this.totalDuration(this._repeat > 0 ? value + (value + this._rDelay) * this._repeat : value) : this.totalDuration() && this._dur;\n };\n\n _proto.totalDuration = function totalDuration(value) {\n if (!arguments.length) {\n return this._tDur;\n }\n\n this._dirty = 0;\n return _setDuration(this, this._repeat < 0 ? value : (value - this._repeat * this._rDelay) / (this._repeat + 1));\n };\n\n _proto.totalTime = function totalTime(_totalTime, suppressEvents) {\n _wake();\n\n if (!arguments.length) {\n return this._tTime;\n }\n\n var parent = this._dp;\n\n if (parent && parent.smoothChildTiming && this._ts) {\n _alignPlayhead(this, _totalTime);\n\n !parent._dp || parent.parent || _postAddChecks(parent, this); // edge case: if this is a child of a timeline that already completed, for example, we must re-activate the parent.\n //in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The start of that child would get pushed out, but one of the ancestors may have completed.\n\n while (parent && parent.parent) {\n if (parent.parent._time !== parent._start + (parent._ts >= 0 ? parent._tTime / parent._ts : (parent.totalDuration() - parent._tTime) / -parent._ts)) {\n parent.totalTime(parent._tTime, true);\n }\n\n parent = parent.parent;\n }\n\n if (!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && _totalTime < this._tDur || this._ts < 0 && _totalTime > 0 || !this._tDur && !_totalTime)) {\n //if the animation doesn't have a parent, put it back into its last parent (recorded as _dp for exactly cases like this). Limit to parents with autoRemoveChildren (like globalTimeline) so that if the user manually removes an animation from a timeline and then alters its playhead, it doesn't get added back in.\n _addToTimeline(this._dp, this, this._start - this._delay);\n }\n }\n\n if (this._tTime !== _totalTime || !this._dur && !suppressEvents || this._initted && Math.abs(this._zTime) === _tinyNum || !_totalTime && !this._initted && (this.add || this._ptLookup)) {\n // check for _ptLookup on a Tween instance to ensure it has actually finished being instantiated, otherwise if this.reverse() gets called in the Animation constructor, it could trigger a render() here even though the _targets weren't populated, thus when _init() is called there won't be any PropTweens (it'll act like the tween is non-functional)\n this._ts || (this._pTime = _totalTime); // otherwise, if an animation is paused, then the playhead is moved back to zero, then resumed, it'd revert back to the original time at the pause\n //if (!this._lock) { // avoid endless recursion (not sure we need this yet or if it's worth the performance hit)\n // this._lock = 1;\n\n _lazySafeRender(this, _totalTime, suppressEvents); // this._lock = 0;\n //}\n\n }\n\n return this;\n };\n\n _proto.time = function time(value, suppressEvents) {\n return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time; // note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!\n };\n\n _proto.totalProgress = function totalProgress(value, suppressEvents) {\n return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.ratio;\n };\n\n _proto.progress = function progress(value, suppressEvents) {\n return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? Math.min(1, this._time / this._dur) : this.ratio;\n };\n\n _proto.iteration = function iteration(value, suppressEvents) {\n var cycleDuration = this.duration() + this._rDelay;\n\n return arguments.length ? this.totalTime(this._time + (value - 1) * cycleDuration, suppressEvents) : this._repeat ? _animationCycle(this._tTime, cycleDuration) + 1 : 1;\n } // potential future addition:\n // isPlayingBackwards() {\n // \tlet animation = this,\n // \t\torientation = 1; // 1 = forward, -1 = backward\n // \twhile (animation) {\n // \t\torientation *= animation.reversed() || (animation.repeat() && !(animation.iteration() & 1)) ? -1 : 1;\n // \t\tanimation = animation.parent;\n // \t}\n // \treturn orientation < 0;\n // }\n ;\n\n _proto.timeScale = function timeScale(value) {\n if (!arguments.length) {\n return this._rts === -_tinyNum ? 0 : this._rts; // recorded timeScale. Special case: if someone calls reverse() on an animation with timeScale of 0, we assign it -_tinyNum to remember it's reversed.\n }\n\n if (this._rts === value) {\n return this;\n }\n\n var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime; // make sure to do the parentToChildTotalTime() BEFORE setting the new _ts because the old one must be used in that calculation.\n // future addition? Up side: fast and minimal file size. Down side: only works on this animation; if a timeline is reversed, for example, its childrens' onReverse wouldn't get called.\n //(+value < 0 && this._rts >= 0) && _callback(this, \"onReverse\", true);\n // prioritize rendering where the parent's playhead lines up instead of this._tTime because there could be a tween that's animating another tween's timeScale in the same rendering loop (same parent), thus if the timeScale tween renders first, it would alter _start BEFORE _tTime was set on that tick (in the rendering loop), effectively freezing it until the timeScale tween finishes.\n\n this._rts = +value || 0;\n this._ts = this._ps || value === -_tinyNum ? 0 : this._rts; // _ts is the functional timeScale which would be 0 if the animation is paused.\n\n this.totalTime(_clamp(-Math.abs(this._delay), this._tDur, tTime), true);\n\n _setEnd(this); // if parent.smoothChildTiming was false, the end time didn't get updated in the _alignPlayhead() method, so do it here.\n\n\n return _recacheAncestors(this);\n };\n\n _proto.paused = function paused(value) {\n if (!arguments.length) {\n return this._ps;\n }\n\n if (this._ps !== value) {\n this._ps = value;\n\n if (value) {\n this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()); // if the pause occurs during the delay phase, make sure that's factored in when resuming.\n\n this._ts = this._act = 0; // _ts is the functional timeScale, so a paused tween would effectively have a timeScale of 0. We record the \"real\" timeScale as _rts (recorded time scale)\n } else {\n _wake();\n\n this._ts = this._rts; //only defer to _pTime (pauseTime) if tTime is zero. Remember, someone could pause() an animation, then scrub the playhead and resume(). If the parent doesn't have smoothChildTiming, we render at the rawTime() because the startTime won't get updated.\n\n this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== _tinyNum && (this._tTime -= _tinyNum)); // edge case: animation.progress(1).pause().play() wouldn't render again because the playhead is already at the end, but the call to totalTime() below will add it back to its parent...and not remove it again (since removing only happens upon rendering at a new time). Offsetting the _tTime slightly is done simply to cause the final render in totalTime() that'll pop it off its timeline (if autoRemoveChildren is true, of course). Check to make sure _zTime isn't -_tinyNum to avoid an edge case where the playhead is pushed to the end but INSIDE a tween/callback, the timeline itself is paused thus halting rendering and leaving a few unrendered. When resuming, it wouldn't render those otherwise.\n }\n }\n\n return this;\n };\n\n _proto.startTime = function startTime(value) {\n if (arguments.length) {\n this._start = value;\n var parent = this.parent || this._dp;\n parent && (parent._sort || !this.parent) && _addToTimeline(parent, this, value - this._delay);\n return this;\n }\n\n return this._start;\n };\n\n _proto.endTime = function endTime(includeRepeats) {\n return this._start + (_isNotFalse(includeRepeats) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);\n };\n\n _proto.rawTime = function rawTime(wrapRepeats) {\n var parent = this.parent || this._dp; // _dp = detached parent\n\n return !parent ? this._tTime : wrapRepeats && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : !this._ts ? this._tTime : _parentToChildTotalTime(parent.rawTime(wrapRepeats), this);\n };\n\n _proto.revert = function revert(config) {\n if (config === void 0) {\n config = _revertConfig;\n }\n\n var prevIsReverting = _reverting;\n _reverting = config;\n\n if (this._initted || this._startAt) {\n this.timeline && this.timeline.revert(config);\n this.totalTime(-0.01, config.suppressEvents);\n }\n\n this.data !== \"nested\" && config.kill !== false && this.kill();\n _reverting = prevIsReverting;\n return this;\n };\n\n _proto.globalTime = function globalTime(rawTime) {\n var animation = this,\n time = arguments.length ? rawTime : animation.rawTime();\n\n while (animation) {\n time = animation._start + time / (animation._ts || 1);\n animation = animation._dp;\n }\n\n return !this.parent && this._sat ? this._sat.vars.immediateRender ? -1 : this._sat.globalTime(rawTime) : time; // the _startAt tweens for .fromTo() and .from() that have immediateRender should always be FIRST in the timeline (important for context.revert()). \"_sat\" stands for _startAtTween, referring to the parent tween that created the _startAt. We must discern if that tween had immediateRender so that we can know whether or not to prioritize it in revert().\n };\n\n _proto.repeat = function repeat(value) {\n if (arguments.length) {\n this._repeat = value === Infinity ? -2 : value;\n return _onUpdateTotalDuration(this);\n }\n\n return this._repeat === -2 ? Infinity : this._repeat;\n };\n\n _proto.repeatDelay = function repeatDelay(value) {\n if (arguments.length) {\n var time = this._time;\n this._rDelay = value;\n\n _onUpdateTotalDuration(this);\n\n return time ? this.time(time) : this;\n }\n\n return this._rDelay;\n };\n\n _proto.yoyo = function yoyo(value) {\n if (arguments.length) {\n this._yoyo = value;\n return this;\n }\n\n return this._yoyo;\n };\n\n _proto.seek = function seek(position, suppressEvents) {\n return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));\n };\n\n _proto.restart = function restart(includeDelay, suppressEvents) {\n return this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));\n };\n\n _proto.play = function play(from, suppressEvents) {\n from != null && this.seek(from, suppressEvents);\n return this.reversed(false).paused(false);\n };\n\n _proto.reverse = function reverse(from, suppressEvents) {\n from != null && this.seek(from || this.totalDuration(), suppressEvents);\n return this.reversed(true).paused(false);\n };\n\n _proto.pause = function pause(atTime, suppressEvents) {\n atTime != null && this.seek(atTime, suppressEvents);\n return this.paused(true);\n };\n\n _proto.resume = function resume() {\n return this.paused(false);\n };\n\n _proto.reversed = function reversed(value) {\n if (arguments.length) {\n !!value !== this.reversed() && this.timeScale(-this._rts || (value ? -_tinyNum : 0)); // in case timeScale is zero, reversing would have no effect so we use _tinyNum.\n\n return this;\n }\n\n return this._rts < 0;\n };\n\n _proto.invalidate = function invalidate() {\n this._initted = this._act = 0;\n this._zTime = -_tinyNum;\n return this;\n };\n\n _proto.isActive = function isActive() {\n var parent = this.parent || this._dp,\n start = this._start,\n rawTime;\n return !!(!parent || this._ts && this._initted && parent.isActive() && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum);\n };\n\n _proto.eventCallback = function eventCallback(type, callback, params) {\n var vars = this.vars;\n\n if (arguments.length > 1) {\n if (!callback) {\n delete vars[type];\n } else {\n vars[type] = callback;\n params && (vars[type + \"Params\"] = params);\n type === \"onUpdate\" && (this._onUpdate = callback);\n }\n\n return this;\n }\n\n return vars[type];\n };\n\n _proto.then = function then(onFulfilled) {\n var self = this;\n return new Promise(function (resolve) {\n var f = _isFunction(onFulfilled) ? onFulfilled : _passThrough,\n _resolve = function _resolve() {\n var _then = self.then;\n self.then = null; // temporarily null the then() method to avoid an infinite loop (see https://github.com/greensock/GSAP/issues/322)\n\n _isFunction(f) && (f = f(self)) && (f.then || f === self) && (self.then = _then);\n resolve(f);\n self.then = _then;\n };\n\n if (self._initted && self.totalProgress() === 1 && self._ts >= 0 || !self._tTime && self._ts < 0) {\n _resolve();\n } else {\n self._prom = _resolve;\n }\n });\n };\n\n _proto.kill = function kill() {\n _interrupt(this);\n };\n\n return Animation;\n}();\n\n_setDefaults(Animation.prototype, {\n _time: 0,\n _start: 0,\n _end: 0,\n _tTime: 0,\n _tDur: 0,\n _dirty: 0,\n _repeat: 0,\n _yoyo: false,\n parent: null,\n _initted: false,\n _rDelay: 0,\n _ts: 1,\n _dp: 0,\n ratio: 0,\n _zTime: -_tinyNum,\n _prom: 0,\n _ps: false,\n _rts: 1\n});\n/*\n * -------------------------------------------------\n * TIMELINE\n * -------------------------------------------------\n */\n\n\nexport var Timeline = /*#__PURE__*/function (_Animation) {\n _inheritsLoose(Timeline, _Animation);\n\n function Timeline(vars, position) {\n var _this;\n\n if (vars === void 0) {\n vars = {};\n }\n\n _this = _Animation.call(this, vars) || this;\n _this.labels = {};\n _this.smoothChildTiming = !!vars.smoothChildTiming;\n _this.autoRemoveChildren = !!vars.autoRemoveChildren;\n _this._sort = _isNotFalse(vars.sortChildren);\n _globalTimeline && _addToTimeline(vars.parent || _globalTimeline, _assertThisInitialized(_this), position);\n vars.reversed && _this.reverse();\n vars.paused && _this.paused(true);\n vars.scrollTrigger && _scrollTrigger(_assertThisInitialized(_this), vars.scrollTrigger);\n return _this;\n }\n\n var _proto2 = Timeline.prototype;\n\n _proto2.to = function to(targets, vars, position) {\n _createTweenType(0, arguments, this);\n\n return this;\n };\n\n _proto2.from = function from(targets, vars, position) {\n _createTweenType(1, arguments, this);\n\n return this;\n };\n\n _proto2.fromTo = function fromTo(targets, fromVars, toVars, position) {\n _createTweenType(2, arguments, this);\n\n return this;\n };\n\n _proto2.set = function set(targets, vars, position) {\n vars.duration = 0;\n vars.parent = this;\n _inheritDefaults(vars).repeatDelay || (vars.repeat = 0);\n vars.immediateRender = !!vars.immediateRender;\n new Tween(targets, vars, _parsePosition(this, position), 1);\n return this;\n };\n\n _proto2.call = function call(callback, params, position) {\n return _addToTimeline(this, Tween.delayedCall(0, callback, params), position);\n } //ONLY for backward compatibility! Maybe delete?\n ;\n\n _proto2.staggerTo = function staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n vars.duration = duration;\n vars.stagger = vars.stagger || stagger;\n vars.onComplete = onCompleteAll;\n vars.onCompleteParams = onCompleteAllParams;\n vars.parent = this;\n new Tween(targets, vars, _parsePosition(this, position));\n return this;\n };\n\n _proto2.staggerFrom = function staggerFrom(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n vars.runBackwards = 1;\n _inheritDefaults(vars).immediateRender = _isNotFalse(vars.immediateRender);\n return this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams);\n };\n\n _proto2.staggerFromTo = function staggerFromTo(targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams) {\n toVars.startAt = fromVars;\n _inheritDefaults(toVars).immediateRender = _isNotFalse(toVars.immediateRender);\n return this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams);\n };\n\n _proto2.render = function render(totalTime, suppressEvents, force) {\n var prevTime = this._time,\n tDur = this._dirty ? this.totalDuration() : this._tDur,\n dur = this._dur,\n tTime = totalTime <= 0 ? 0 : _roundPrecise(totalTime),\n // if a paused timeline is resumed (or its _start is updated for another reason...which rounds it), that could result in the playhead shifting a **tiny** amount and a zero-duration child at that spot may get rendered at a different ratio, like its totalTime in render() may be 1e-17 instead of 0, for example.\n crossingStart = this._zTime < 0 !== totalTime < 0 && (this._initted || !dur),\n time,\n child,\n next,\n iteration,\n cycleDuration,\n prevPaused,\n pauseTween,\n timeScale,\n prevStart,\n prevIteration,\n yoyo,\n isYoyo;\n this !== _globalTimeline && tTime > tDur && totalTime >= 0 && (tTime = tDur);\n\n if (tTime !== this._tTime || force || crossingStart) {\n if (prevTime !== this._time && dur) {\n //if totalDuration() finds a child with a negative startTime and smoothChildTiming is true, things get shifted around internally so we need to adjust the time accordingly. For example, if a tween starts at -30 we must shift EVERYTHING forward 30 seconds and move this timeline's startTime backward by 30 seconds so that things align with the playhead (no jump).\n tTime += this._time - prevTime;\n totalTime += this._time - prevTime;\n }\n\n time = tTime;\n prevStart = this._start;\n timeScale = this._ts;\n prevPaused = !timeScale;\n\n if (crossingStart) {\n dur || (prevTime = this._zTime); //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\n (totalTime || !suppressEvents) && (this._zTime = totalTime);\n }\n\n if (this._repeat) {\n //adjust the time for repeats and yoyos\n yoyo = this._yoyo;\n cycleDuration = dur + this._rDelay;\n\n if (this._repeat < -1 && totalTime < 0) {\n return this.totalTime(cycleDuration * 100 + totalTime, suppressEvents, force);\n }\n\n time = _roundPrecise(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\n if (tTime === tDur) {\n // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n iteration = this._repeat;\n time = dur;\n } else {\n iteration = ~~(tTime / cycleDuration);\n\n if (iteration && iteration === tTime / cycleDuration) {\n time = dur;\n iteration--;\n }\n\n time > dur && (time = dur);\n }\n\n prevIteration = _animationCycle(this._tTime, cycleDuration);\n !prevTime && this._tTime && prevIteration !== iteration && this._tTime - prevIteration * cycleDuration - this._dur <= 0 && (prevIteration = iteration); // edge case - if someone does addPause() at the very beginning of a repeating timeline, that pause is technically at the same spot as the end which causes this._time to get set to 0 when the totalTime would normally place the playhead at the end. See https://greensock.com/forums/topic/23823-closing-nav-animation-not-working-on-ie-and-iphone-6-maybe-other-older-browser/?tab=comments#comment-113005 also, this._tTime - prevIteration * cycleDuration - this._dur <= 0 just checks to make sure it wasn't previously in the \"repeatDelay\" portion\n\n if (yoyo && iteration & 1) {\n time = dur - time;\n isYoyo = 1;\n }\n /*\n make sure children at the end/beginning of the timeline are rendered properly. If, for example,\n a 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which\n would get translated to 2.8 seconds if the timeline yoyos or 0.2 seconds if it just repeats), there\n could be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So\n we need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must\n ensure that zero-duration tweens at the very beginning or end of the Timeline work.\n */\n\n\n if (iteration !== prevIteration && !this._lock) {\n var rewinding = yoyo && prevIteration & 1,\n doesWrap = rewinding === (yoyo && iteration & 1);\n iteration < prevIteration && (rewinding = !rewinding);\n prevTime = rewinding ? 0 : dur;\n this._lock = 1;\n this.render(prevTime || (isYoyo ? 0 : _roundPrecise(iteration * cycleDuration)), suppressEvents, !dur)._lock = 0;\n this._tTime = tTime; // if a user gets the iteration() inside the onRepeat, for example, it should be accurate.\n\n !suppressEvents && this.parent && _callback(this, \"onRepeat\");\n this.vars.repeatRefresh && !isYoyo && (this.invalidate()._lock = 1);\n\n if (prevTime && prevTime !== this._time || prevPaused !== !this._ts || this.vars.onRepeat && !this.parent && !this._act) {\n // if prevTime is 0 and we render at the very end, _time will be the end, thus won't match. So in this edge case, prevTime won't match _time but that's okay. If it gets killed in the onRepeat, eject as well.\n return this;\n }\n\n dur = this._dur; // in case the duration changed in the onRepeat\n\n tDur = this._tDur;\n\n if (doesWrap) {\n this._lock = 2;\n prevTime = rewinding ? dur : -0.0001;\n this.render(prevTime, true);\n this.vars.repeatRefresh && !isYoyo && this.invalidate();\n }\n\n this._lock = 0;\n\n if (!this._ts && !prevPaused) {\n return this;\n } //in order for yoyoEase to work properly when there's a stagger, we must swap out the ease in each sub-tween.\n\n\n _propagateYoyoEase(this, isYoyo);\n }\n }\n\n if (this._hasPause && !this._forcing && this._lock < 2) {\n pauseTween = _findNextPauseTween(this, _roundPrecise(prevTime), _roundPrecise(time));\n\n if (pauseTween) {\n tTime -= time - (time = pauseTween._start);\n }\n }\n\n this._tTime = tTime;\n this._time = time;\n this._act = !timeScale; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\n if (!this._initted) {\n this._onUpdate = this.vars.onUpdate;\n this._initted = 1;\n this._zTime = totalTime;\n prevTime = 0; // upon init, the playhead should always go forward; someone could invalidate() a completed timeline and then if they restart(), that would make child tweens render in reverse order which could lock in the wrong starting values if they build on each other, like tl.to(obj, {x: 100}).to(obj, {x: 0}).\n }\n\n if (!prevTime && time && !suppressEvents && !iteration) {\n _callback(this, \"onStart\");\n\n if (this._tTime !== tTime) {\n // in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.\n return this;\n }\n }\n\n if (time >= prevTime && totalTime >= 0) {\n child = this._first;\n\n while (child) {\n next = child._next;\n\n if ((child._act || time >= child._start) && child._ts && pauseTween !== child) {\n if (child.parent !== this) {\n // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n return this.render(totalTime, suppressEvents, force);\n }\n\n child.render(child._ts > 0 ? (time - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (time - child._start) * child._ts, suppressEvents, force);\n\n if (time !== this._time || !this._ts && !prevPaused) {\n //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n pauseTween = 0;\n next && (tTime += this._zTime = -_tinyNum); // it didn't finish rendering, so flag zTime as negative so that so that the next time render() is called it'll be forced (to render any remaining children)\n\n break;\n }\n }\n\n child = next;\n }\n } else {\n child = this._last;\n var adjustedTime = totalTime < 0 ? totalTime : time; //when the playhead goes backward beyond the start of this timeline, we must pass that information down to the child animations so that zero-duration tweens know whether to render their starting or ending values.\n\n while (child) {\n next = child._prev;\n\n if ((child._act || adjustedTime <= child._end) && child._ts && pauseTween !== child) {\n if (child.parent !== this) {\n // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n return this.render(totalTime, suppressEvents, force);\n }\n\n child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting && (child._initted || child._startAt)); // if reverting, we should always force renders of initted tweens (but remember that .fromTo() or .from() may have a _startAt but not _initted yet). If, for example, a .fromTo() tween with a stagger (which creates an internal timeline) gets reverted BEFORE some of its child tweens render for the first time, it may not properly trigger them to revert.\n\n if (time !== this._time || !this._ts && !prevPaused) {\n //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n pauseTween = 0;\n next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum); // it didn't finish rendering, so adjust zTime so that so that the next time render() is called it'll be forced (to render any remaining children)\n\n break;\n }\n }\n\n child = next;\n }\n }\n\n if (pauseTween && !suppressEvents) {\n this.pause();\n pauseTween.render(time >= prevTime ? 0 : -_tinyNum)._zTime = time >= prevTime ? 1 : -1;\n\n if (this._ts) {\n //the callback resumed playback! So since we may have held back the playhead due to where the pause is positioned, go ahead and jump to where it's SUPPOSED to be (if no pause happened).\n this._start = prevStart; //if the pause was at an earlier time and the user resumed in the callback, it could reposition the timeline (changing its startTime), throwing things off slightly, so we make sure the _start doesn't shift.\n\n _setEnd(this);\n\n return this.render(totalTime, suppressEvents, force);\n }\n }\n\n this._onUpdate && !suppressEvents && _callback(this, \"onUpdate\", true);\n if (tTime === tDur && this._tTime >= this.totalDuration() || !tTime && prevTime) if (prevStart === this._start || Math.abs(timeScale) !== Math.abs(this._ts)) if (!this._lock) {\n // remember, a child's callback may alter this timeline's playhead or timeScale which is why we need to add some of these checks.\n (totalTime || !dur) && (tTime === tDur && this._ts > 0 || !tTime && this._ts < 0) && _removeFromParent(this, 1); // don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n\n if (!suppressEvents && !(totalTime < 0 && !prevTime) && (tTime || prevTime || !tDur)) {\n _callback(this, tTime === tDur && totalTime >= 0 ? \"onComplete\" : \"onReverseComplete\", true);\n\n this._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n }\n }\n }\n\n return this;\n };\n\n _proto2.add = function add(child, position) {\n var _this2 = this;\n\n _isNumber(position) || (position = _parsePosition(this, position, child));\n\n if (!(child instanceof Animation)) {\n if (_isArray(child)) {\n child.forEach(function (obj) {\n return _this2.add(obj, position);\n });\n return this;\n }\n\n if (_isString(child)) {\n return this.addLabel(child, position);\n }\n\n if (_isFunction(child)) {\n child = Tween.delayedCall(0, child);\n } else {\n return this;\n }\n }\n\n return this !== child ? _addToTimeline(this, child, position) : this; //don't allow a timeline to be added to itself as a child!\n };\n\n _proto2.getChildren = function getChildren(nested, tweens, timelines, ignoreBeforeTime) {\n if (nested === void 0) {\n nested = true;\n }\n\n if (tweens === void 0) {\n tweens = true;\n }\n\n if (timelines === void 0) {\n timelines = true;\n }\n\n if (ignoreBeforeTime === void 0) {\n ignoreBeforeTime = -_bigNum;\n }\n\n var a = [],\n child = this._first;\n\n while (child) {\n if (child._start >= ignoreBeforeTime) {\n if (child instanceof Tween) {\n tweens && a.push(child);\n } else {\n timelines && a.push(child);\n nested && a.push.apply(a, child.getChildren(true, tweens, timelines));\n }\n }\n\n child = child._next;\n }\n\n return a;\n };\n\n _proto2.getById = function getById(id) {\n var animations = this.getChildren(1, 1, 1),\n i = animations.length;\n\n while (i--) {\n if (animations[i].vars.id === id) {\n return animations[i];\n }\n }\n };\n\n _proto2.remove = function remove(child) {\n if (_isString(child)) {\n return this.removeLabel(child);\n }\n\n if (_isFunction(child)) {\n return this.killTweensOf(child);\n }\n\n _removeLinkedListItem(this, child);\n\n if (child === this._recent) {\n this._recent = this._last;\n }\n\n return _uncache(this);\n };\n\n _proto2.totalTime = function totalTime(_totalTime2, suppressEvents) {\n if (!arguments.length) {\n return this._tTime;\n }\n\n this._forcing = 1;\n\n if (!this._dp && this._ts) {\n //special case for the global timeline (or any other that has no parent or detached parent).\n this._start = _roundPrecise(_ticker.time - (this._ts > 0 ? _totalTime2 / this._ts : (this.totalDuration() - _totalTime2) / -this._ts));\n }\n\n _Animation.prototype.totalTime.call(this, _totalTime2, suppressEvents);\n\n this._forcing = 0;\n return this;\n };\n\n _proto2.addLabel = function addLabel(label, position) {\n this.labels[label] = _parsePosition(this, position);\n return this;\n };\n\n _proto2.removeLabel = function removeLabel(label) {\n delete this.labels[label];\n return this;\n };\n\n _proto2.addPause = function addPause(position, callback, params) {\n var t = Tween.delayedCall(0, callback || _emptyFunc, params);\n t.data = \"isPause\";\n this._hasPause = 1;\n return _addToTimeline(this, t, _parsePosition(this, position));\n };\n\n _proto2.removePause = function removePause(position) {\n var child = this._first;\n position = _parsePosition(this, position);\n\n while (child) {\n if (child._start === position && child.data === \"isPause\") {\n _removeFromParent(child);\n }\n\n child = child._next;\n }\n };\n\n _proto2.killTweensOf = function killTweensOf(targets, props, onlyActive) {\n var tweens = this.getTweensOf(targets, onlyActive),\n i = tweens.length;\n\n while (i--) {\n _overwritingTween !== tweens[i] && tweens[i].kill(targets, props);\n }\n\n return this;\n };\n\n _proto2.getTweensOf = function getTweensOf(targets, onlyActive) {\n var a = [],\n parsedTargets = toArray(targets),\n child = this._first,\n isGlobalTime = _isNumber(onlyActive),\n // a number is interpreted as a global time. If the animation spans\n children;\n\n while (child) {\n if (child instanceof Tween) {\n if (_arrayContainsAny(child._targets, parsedTargets) && (isGlobalTime ? (!_overwritingTween || child._initted && child._ts) && child.globalTime(0) <= onlyActive && child.globalTime(child.totalDuration()) > onlyActive : !onlyActive || child.isActive())) {\n // note: if this is for overwriting, it should only be for tweens that aren't paused and are initted.\n a.push(child);\n }\n } else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) {\n a.push.apply(a, children);\n }\n\n child = child._next;\n }\n\n return a;\n } // potential future feature - targets() on timelines\n // targets() {\n // \tlet result = [];\n // \tthis.getChildren(true, true, false).forEach(t => result.push(...t.targets()));\n // \treturn result.filter((v, i) => result.indexOf(v) === i);\n // }\n ;\n\n _proto2.tweenTo = function tweenTo(position, vars) {\n vars = vars || {};\n\n var tl = this,\n endTime = _parsePosition(tl, position),\n _vars = vars,\n startAt = _vars.startAt,\n _onStart = _vars.onStart,\n onStartParams = _vars.onStartParams,\n immediateRender = _vars.immediateRender,\n initted,\n tween = Tween.to(tl, _setDefaults({\n ease: vars.ease || \"none\",\n lazy: false,\n immediateRender: false,\n time: endTime,\n overwrite: \"auto\",\n duration: vars.duration || Math.abs((endTime - (startAt && \"time\" in startAt ? startAt.time : tl._time)) / tl.timeScale()) || _tinyNum,\n onStart: function onStart() {\n tl.pause();\n\n if (!initted) {\n var duration = vars.duration || Math.abs((endTime - (startAt && \"time\" in startAt ? startAt.time : tl._time)) / tl.timeScale());\n tween._dur !== duration && _setDuration(tween, duration, 0, 1).render(tween._time, true, true);\n initted = 1;\n }\n\n _onStart && _onStart.apply(tween, onStartParams || []); //in case the user had an onStart in the vars - we don't want to overwrite it.\n }\n }, vars));\n\n return immediateRender ? tween.render(0) : tween;\n };\n\n _proto2.tweenFromTo = function tweenFromTo(fromPosition, toPosition, vars) {\n return this.tweenTo(toPosition, _setDefaults({\n startAt: {\n time: _parsePosition(this, fromPosition)\n }\n }, vars));\n };\n\n _proto2.recent = function recent() {\n return this._recent;\n };\n\n _proto2.nextLabel = function nextLabel(afterTime) {\n if (afterTime === void 0) {\n afterTime = this._time;\n }\n\n return _getLabelInDirection(this, _parsePosition(this, afterTime));\n };\n\n _proto2.previousLabel = function previousLabel(beforeTime) {\n if (beforeTime === void 0) {\n beforeTime = this._time;\n }\n\n return _getLabelInDirection(this, _parsePosition(this, beforeTime), 1);\n };\n\n _proto2.currentLabel = function currentLabel(value) {\n return arguments.length ? this.seek(value, true) : this.previousLabel(this._time + _tinyNum);\n };\n\n _proto2.shiftChildren = function shiftChildren(amount, adjustLabels, ignoreBeforeTime) {\n if (ignoreBeforeTime === void 0) {\n ignoreBeforeTime = 0;\n }\n\n var child = this._first,\n labels = this.labels,\n p;\n\n while (child) {\n if (child._start >= ignoreBeforeTime) {\n child._start += amount;\n child._end += amount;\n }\n\n child = child._next;\n }\n\n if (adjustLabels) {\n for (p in labels) {\n if (labels[p] >= ignoreBeforeTime) {\n labels[p] += amount;\n }\n }\n }\n\n return _uncache(this);\n };\n\n _proto2.invalidate = function invalidate(soft) {\n var child = this._first;\n this._lock = 0;\n\n while (child) {\n child.invalidate(soft);\n child = child._next;\n }\n\n return _Animation.prototype.invalidate.call(this, soft);\n };\n\n _proto2.clear = function clear(includeLabels) {\n if (includeLabels === void 0) {\n includeLabels = true;\n }\n\n var child = this._first,\n next;\n\n while (child) {\n next = child._next;\n this.remove(child);\n child = next;\n }\n\n this._dp && (this._time = this._tTime = this._pTime = 0);\n includeLabels && (this.labels = {});\n return _uncache(this);\n };\n\n _proto2.totalDuration = function totalDuration(value) {\n var max = 0,\n self = this,\n child = self._last,\n prevStart = _bigNum,\n prev,\n start,\n parent;\n\n if (arguments.length) {\n return self.timeScale((self._repeat < 0 ? self.duration() : self.totalDuration()) / (self.reversed() ? -value : value));\n }\n\n if (self._dirty) {\n parent = self.parent;\n\n while (child) {\n prev = child._prev; //record it here in case the tween changes position in the sequence...\n\n child._dirty && child.totalDuration(); //could change the tween._startTime, so make sure the animation's cache is clean before analyzing it.\n\n start = child._start;\n\n if (start > prevStart && self._sort && child._ts && !self._lock) {\n //in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence\n self._lock = 1; //prevent endless recursive calls - there are methods that get triggered that check duration/totalDuration when we add().\n\n _addToTimeline(self, child, start - child._delay, 1)._lock = 0;\n } else {\n prevStart = start;\n }\n\n if (start < 0 && child._ts) {\n //children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.\n max -= start;\n\n if (!parent && !self._dp || parent && parent.smoothChildTiming) {\n self._start += start / self._ts;\n self._time -= start;\n self._tTime -= start;\n }\n\n self.shiftChildren(-start, false, -1e999);\n prevStart = 0;\n }\n\n child._end > max && child._ts && (max = child._end);\n child = prev;\n }\n\n _setDuration(self, self === _globalTimeline && self._time > max ? self._time : max, 1, 1);\n\n self._dirty = 0;\n }\n\n return self._tDur;\n };\n\n Timeline.updateRoot = function updateRoot(time) {\n if (_globalTimeline._ts) {\n _lazySafeRender(_globalTimeline, _parentToChildTotalTime(time, _globalTimeline));\n\n _lastRenderedFrame = _ticker.frame;\n }\n\n if (_ticker.frame >= _nextGCFrame) {\n _nextGCFrame += _config.autoSleep || 120;\n var child = _globalTimeline._first;\n if (!child || !child._ts) if (_config.autoSleep && _ticker._listeners.length < 2) {\n while (child && !child._ts) {\n child = child._next;\n }\n\n child || _ticker.sleep();\n }\n }\n };\n\n return Timeline;\n}(Animation);\n\n_setDefaults(Timeline.prototype, {\n _lock: 0,\n _hasPause: 0,\n _forcing: 0\n});\n\nvar _addComplexStringPropTween = function _addComplexStringPropTween(target, prop, start, end, setter, stringFilter, funcParam) {\n //note: we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n var pt = new PropTween(this._pt, target, prop, 0, 1, _renderComplexString, null, setter),\n index = 0,\n matchIndex = 0,\n result,\n startNums,\n color,\n endNum,\n chunk,\n startNum,\n hasRandom,\n a;\n pt.b = start;\n pt.e = end;\n start += \"\"; //ensure values are strings\n\n end += \"\";\n\n if (hasRandom = ~end.indexOf(\"random(\")) {\n end = _replaceRandom(end);\n }\n\n if (stringFilter) {\n a = [start, end];\n stringFilter(a, target, prop); //pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n\n start = a[0];\n end = a[1];\n }\n\n startNums = start.match(_complexStringNumExp) || [];\n\n while (result = _complexStringNumExp.exec(end)) {\n endNum = result[0];\n chunk = end.substring(index, result.index);\n\n if (color) {\n color = (color + 1) % 5;\n } else if (chunk.substr(-5) === \"rgba(\") {\n color = 1;\n }\n\n if (endNum !== startNums[matchIndex++]) {\n startNum = parseFloat(startNums[matchIndex - 1]) || 0; //these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\n pt._pt = {\n _next: pt._pt,\n p: chunk || matchIndex === 1 ? chunk : \",\",\n //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n s: startNum,\n c: endNum.charAt(1) === \"=\" ? _parseRelative(startNum, endNum) - startNum : parseFloat(endNum) - startNum,\n m: color && color < 4 ? Math.round : 0\n };\n index = _complexStringNumExp.lastIndex;\n }\n }\n\n pt.c = index < end.length ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n\n pt.fp = funcParam;\n\n if (_relExp.test(end) || hasRandom) {\n pt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n }\n\n this._pt = pt; //start the linked list with this new PropTween. Remember, we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\n return pt;\n},\n _addPropTween = function _addPropTween(target, prop, start, end, index, targets, modifier, stringFilter, funcParam, optional) {\n _isFunction(end) && (end = end(index || 0, target, targets));\n var currentValue = target[prop],\n parsedStart = start !== \"get\" ? start : !_isFunction(currentValue) ? currentValue : funcParam ? target[prop.indexOf(\"set\") || !_isFunction(target[\"get\" + prop.substr(3)]) ? prop : \"get\" + prop.substr(3)](funcParam) : target[prop](),\n setter = !_isFunction(currentValue) ? _setterPlain : funcParam ? _setterFuncWithParam : _setterFunc,\n pt;\n\n if (_isString(end)) {\n if (~end.indexOf(\"random(\")) {\n end = _replaceRandom(end);\n }\n\n if (end.charAt(1) === \"=\") {\n pt = _parseRelative(parsedStart, end) + (getUnit(parsedStart) || 0);\n\n if (pt || pt === 0) {\n // to avoid isNaN, like if someone passes in a value like \"!= whatever\"\n end = pt;\n }\n }\n }\n\n if (!optional || parsedStart !== end || _forceAllPropTweens) {\n if (!isNaN(parsedStart * end) && end !== \"\") {\n // fun fact: any number multiplied by \"\" is evaluated as the number 0!\n pt = new PropTween(this._pt, target, prop, +parsedStart || 0, end - (parsedStart || 0), typeof currentValue === \"boolean\" ? _renderBoolean : _renderPlain, 0, setter);\n funcParam && (pt.fp = funcParam);\n modifier && pt.modifier(modifier, this, target);\n return this._pt = pt;\n }\n\n !currentValue && !(prop in target) && _missingPlugin(prop, end);\n return _addComplexStringPropTween.call(this, target, prop, parsedStart, end, setter, stringFilter || _config.stringFilter, funcParam);\n }\n},\n //creates a copy of the vars object and processes any function-based values (putting the resulting values directly into the copy) as well as strings with \"random()\" in them. It does NOT process relative values.\n_processVars = function _processVars(vars, index, target, targets, tween) {\n _isFunction(vars) && (vars = _parseFuncOrString(vars, tween, index, target, targets));\n\n if (!_isObject(vars) || vars.style && vars.nodeType || _isArray(vars) || _isTypedArray(vars)) {\n return _isString(vars) ? _parseFuncOrString(vars, tween, index, target, targets) : vars;\n }\n\n var copy = {},\n p;\n\n for (p in vars) {\n copy[p] = _parseFuncOrString(vars[p], tween, index, target, targets);\n }\n\n return copy;\n},\n _checkPlugin = function _checkPlugin(property, vars, tween, index, target, targets) {\n var plugin, pt, ptLookup, i;\n\n if (_plugins[property] && (plugin = new _plugins[property]()).init(target, plugin.rawVars ? vars[property] : _processVars(vars[property], index, target, targets, tween), tween, index, targets) !== false) {\n tween._pt = pt = new PropTween(tween._pt, target, property, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\n if (tween !== _quickTween) {\n ptLookup = tween._ptLookup[tween._targets.indexOf(target)]; //note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.\n\n i = plugin._props.length;\n\n while (i--) {\n ptLookup[plugin._props[i]] = pt;\n }\n }\n }\n\n return plugin;\n},\n _overwritingTween,\n //store a reference temporarily so we can avoid overwriting itself.\n_forceAllPropTweens,\n _initTween = function _initTween(tween, time, tTime) {\n var vars = tween.vars,\n ease = vars.ease,\n startAt = vars.startAt,\n immediateRender = vars.immediateRender,\n lazy = vars.lazy,\n onUpdate = vars.onUpdate,\n onUpdateParams = vars.onUpdateParams,\n callbackScope = vars.callbackScope,\n runBackwards = vars.runBackwards,\n yoyoEase = vars.yoyoEase,\n keyframes = vars.keyframes,\n autoRevert = vars.autoRevert,\n dur = tween._dur,\n prevStartAt = tween._startAt,\n targets = tween._targets,\n parent = tween.parent,\n fullTargets = parent && parent.data === \"nested\" ? parent.vars.targets : targets,\n autoOverwrite = tween._overwrite === \"auto\" && !_suppressOverwrites,\n tl = tween.timeline,\n cleanVars,\n i,\n p,\n pt,\n target,\n hasPriority,\n gsData,\n harness,\n plugin,\n ptLookup,\n index,\n harnessVars,\n overwritten;\n tl && (!keyframes || !ease) && (ease = \"none\");\n tween._ease = _parseEase(ease, _defaults.ease);\n tween._yEase = yoyoEase ? _invertEase(_parseEase(yoyoEase === true ? ease : yoyoEase, _defaults.ease)) : 0;\n\n if (yoyoEase && tween._yoyo && !tween._repeat) {\n //there must have been a parent timeline with yoyo:true that is currently in its yoyo phase, so flip the eases.\n yoyoEase = tween._yEase;\n tween._yEase = tween._ease;\n tween._ease = yoyoEase;\n }\n\n tween._from = !tl && !!vars.runBackwards; //nested timelines should never run backwards - the backwards-ness is in the child tweens.\n\n if (!tl || keyframes && !vars.stagger) {\n //if there's an internal timeline, skip all the parsing because we passed that task down the chain.\n harness = targets[0] ? _getCache(targets[0]).harness : 0;\n harnessVars = harness && vars[harness.prop]; //someone may need to specify CSS-specific values AND non-CSS values, like if the element has an \"x\" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.\n\n cleanVars = _copyExcluding(vars, _reservedProps);\n\n if (prevStartAt) {\n prevStartAt._zTime < 0 && prevStartAt.progress(1); // in case it's a lazy startAt that hasn't rendered yet.\n\n time < 0 && runBackwards && immediateRender && !autoRevert ? prevStartAt.render(-1, true) : prevStartAt.revert(runBackwards && dur ? _revertConfigNoKill : _startAtRevertConfig); // if it's a \"startAt\" (not \"from()\" or runBackwards: true), we only need to do a shallow revert (keep transforms cached in CSSPlugin)\n // don't just _removeFromParent(prevStartAt.render(-1, true)) because that'll leave inline styles. We're creating a new _startAt for \"startAt\" tweens that re-capture things to ensure that if the pre-tween values changed since the tween was created, they're recorded.\n\n prevStartAt._lazy = 0;\n }\n\n if (startAt) {\n _removeFromParent(tween._startAt = Tween.set(targets, _setDefaults({\n data: \"isStart\",\n overwrite: false,\n parent: parent,\n immediateRender: true,\n lazy: !prevStartAt && _isNotFalse(lazy),\n startAt: null,\n delay: 0,\n onUpdate: onUpdate,\n onUpdateParams: onUpdateParams,\n callbackScope: callbackScope,\n stagger: 0\n }, startAt))); //copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, from, to).fromTo(e, to, from);\n\n\n tween._startAt._dp = 0; // don't allow it to get put back into root timeline! Like when revert() is called and totalTime() gets set.\n\n tween._startAt._sat = tween; // used in globalTime(). _sat stands for _startAtTween\n\n time < 0 && (_reverting || !immediateRender && !autoRevert) && tween._startAt.revert(_revertConfigNoKill); // rare edge case, like if a render is forced in the negative direction of a non-initted tween.\n\n if (immediateRender) {\n if (dur && time <= 0 && tTime <= 0) {\n // check tTime here because in the case of a yoyo tween whose playhead gets pushed to the end like tween.progress(1), we should allow it through so that the onComplete gets fired properly.\n time && (tween._zTime = time);\n return; //we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a Timeline, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.\n }\n }\n } else if (runBackwards && dur) {\n //from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)\n if (!prevStartAt) {\n time && (immediateRender = false); //in rare cases (like if a from() tween runs and then is invalidate()-ed), immediateRender could be true but the initial forced-render gets skipped, so there's no need to force the render in this context when the _time is greater than 0\n\n p = _setDefaults({\n overwrite: false,\n data: \"isFromStart\",\n //we tag the tween with as \"isFromStart\" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a \"from()\" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:\"height\", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.\n lazy: immediateRender && !prevStartAt && _isNotFalse(lazy),\n immediateRender: immediateRender,\n //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)\n stagger: 0,\n parent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(\".class\", {y:gsap.utils.wrap([-100,100])})\n\n }, cleanVars);\n harnessVars && (p[harness.prop] = harnessVars); // in case someone does something like .from(..., {css:{}})\n\n _removeFromParent(tween._startAt = Tween.set(targets, p));\n\n tween._startAt._dp = 0; // don't allow it to get put back into root timeline!\n\n tween._startAt._sat = tween; // used in globalTime()\n\n time < 0 && (_reverting ? tween._startAt.revert(_revertConfigNoKill) : tween._startAt.render(-1, true));\n tween._zTime = time;\n\n if (!immediateRender) {\n _initTween(tween._startAt, _tinyNum, _tinyNum); //ensures that the initial values are recorded\n\n } else if (!time) {\n return;\n }\n }\n }\n\n tween._pt = tween._ptCache = 0;\n lazy = dur && _isNotFalse(lazy) || lazy && !dur;\n\n for (i = 0; i < targets.length; i++) {\n target = targets[i];\n gsData = target._gsap || _harness(targets)[i]._gsap;\n tween._ptLookup[i] = ptLookup = {};\n _lazyLookup[gsData.id] && _lazyTweens.length && _lazyRender(); //if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)\n\n index = fullTargets === targets ? i : fullTargets.indexOf(target);\n\n if (harness && (plugin = new harness()).init(target, harnessVars || cleanVars, tween, index, fullTargets) !== false) {\n tween._pt = pt = new PropTween(tween._pt, target, plugin.name, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\n plugin._props.forEach(function (name) {\n ptLookup[name] = pt;\n });\n\n plugin.priority && (hasPriority = 1);\n }\n\n if (!harness || harnessVars) {\n for (p in cleanVars) {\n if (_plugins[p] && (plugin = _checkPlugin(p, cleanVars, tween, index, target, fullTargets))) {\n plugin.priority && (hasPriority = 1);\n } else {\n ptLookup[p] = pt = _addPropTween.call(tween, target, p, \"get\", cleanVars[p], index, fullTargets, 0, vars.stringFilter);\n }\n }\n }\n\n tween._op && tween._op[i] && tween.kill(target, tween._op[i]);\n\n if (autoOverwrite && tween._pt) {\n _overwritingTween = tween;\n\n _globalTimeline.killTweensOf(target, ptLookup, tween.globalTime(time)); // make sure the overwriting doesn't overwrite THIS tween!!!\n\n\n overwritten = !tween.parent;\n _overwritingTween = 0;\n }\n\n tween._pt && lazy && (_lazyLookup[gsData.id] = 1);\n }\n\n hasPriority && _sortPropTweensByPriority(tween);\n tween._onInit && tween._onInit(tween); //plugins like RoundProps must wait until ALL of the PropTweens are instantiated. In the plugin's init() function, it sets the _onInit on the tween instance. May not be pretty/intuitive, but it's fast and keeps file size down.\n }\n\n tween._onUpdate = onUpdate;\n tween._initted = (!tween._op || tween._pt) && !overwritten; // if overwrittenProps resulted in the entire tween being killed, do NOT flag it as initted or else it may render for one tick.\n\n keyframes && time <= 0 && tl.render(_bigNum, true, true); // if there's a 0% keyframe, it'll render in the \"before\" state for any staggered/delayed animations thus when the following tween initializes, it'll use the \"before\" state instead of the \"after\" state as the initial values.\n},\n _updatePropTweens = function _updatePropTweens(tween, property, value, start, startIsRelative, ratio, time) {\n var ptCache = (tween._pt && tween._ptCache || (tween._ptCache = {}))[property],\n pt,\n rootPT,\n lookup,\n i;\n\n if (!ptCache) {\n ptCache = tween._ptCache[property] = [];\n lookup = tween._ptLookup;\n i = tween._targets.length;\n\n while (i--) {\n pt = lookup[i][property];\n\n if (pt && pt.d && pt.d._pt) {\n // it's a plugin, so find the nested PropTween\n pt = pt.d._pt;\n\n while (pt && pt.p !== property && pt.fp !== property) {\n // \"fp\" is functionParam for things like setting CSS variables which require .setProperty(\"--var-name\", value)\n pt = pt._next;\n }\n }\n\n if (!pt) {\n // there is no PropTween associated with that property, so we must FORCE one to be created and ditch out of this\n // if the tween has other properties that already rendered at new positions, we'd normally have to rewind to put them back like tween.render(0, true) before forcing an _initTween(), but that can create another edge case like tweening a timeline's progress would trigger onUpdates to fire which could move other things around. It's better to just inform users that .resetTo() should ONLY be used for tweens that already have that property. For example, you can't gsap.to(...{ y: 0 }) and then tween.restTo(\"x\", 200) for example.\n _forceAllPropTweens = 1; // otherwise, when we _addPropTween() and it finds no change between the start and end values, it skips creating a PropTween (for efficiency...why tween when there's no difference?) but in this case we NEED that PropTween created so we can edit it.\n\n tween.vars[property] = \"+=0\";\n\n _initTween(tween, time);\n\n _forceAllPropTweens = 0;\n return 1;\n }\n\n ptCache.push(pt);\n }\n }\n\n i = ptCache.length;\n\n while (i--) {\n rootPT = ptCache[i];\n pt = rootPT._pt || rootPT; // complex values may have nested PropTweens. We only accommodate the FIRST value.\n\n pt.s = (start || start === 0) && !startIsRelative ? start : pt.s + (start || 0) + ratio * pt.c;\n pt.c = value - pt.s;\n rootPT.e && (rootPT.e = _round(value) + getUnit(rootPT.e)); // mainly for CSSPlugin (end value)\n\n rootPT.b && (rootPT.b = pt.s + getUnit(rootPT.b)); // (beginning value)\n }\n},\n _addAliasesToVars = function _addAliasesToVars(targets, vars) {\n var harness = targets[0] ? _getCache(targets[0]).harness : 0,\n propertyAliases = harness && harness.aliases,\n copy,\n p,\n i,\n aliases;\n\n if (!propertyAliases) {\n return vars;\n }\n\n copy = _merge({}, vars);\n\n for (p in propertyAliases) {\n if (p in copy) {\n aliases = propertyAliases[p].split(\",\");\n i = aliases.length;\n\n while (i--) {\n copy[aliases[i]] = copy[p];\n }\n }\n }\n\n return copy;\n},\n // parses multiple formats, like {\"0%\": {x: 100}, {\"50%\": {x: -20}} and { x: {\"0%\": 100, \"50%\": -20} }, and an \"ease\" can be set on any object. We populate an \"allProps\" object with an Array for each property, like {x: [{}, {}], y:[{}, {}]} with data for each property tween. The objects have a \"t\" (time), \"v\", (value), and \"e\" (ease) property. This allows us to piece together a timeline later.\n_parseKeyframe = function _parseKeyframe(prop, obj, allProps, easeEach) {\n var ease = obj.ease || easeEach || \"power1.inOut\",\n p,\n a;\n\n if (_isArray(obj)) {\n a = allProps[prop] || (allProps[prop] = []); // t = time (out of 100), v = value, e = ease\n\n obj.forEach(function (value, i) {\n return a.push({\n t: i / (obj.length - 1) * 100,\n v: value,\n e: ease\n });\n });\n } else {\n for (p in obj) {\n a = allProps[p] || (allProps[p] = []);\n p === \"ease\" || a.push({\n t: parseFloat(prop),\n v: obj[p],\n e: ease\n });\n }\n }\n},\n _parseFuncOrString = function _parseFuncOrString(value, tween, i, target, targets) {\n return _isFunction(value) ? value.call(tween, i, target, targets) : _isString(value) && ~value.indexOf(\"random(\") ? _replaceRandom(value) : value;\n},\n _staggerTweenProps = _callbackNames + \"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert\",\n _staggerPropsToSkip = {};\n\n_forEachName(_staggerTweenProps + \",id,stagger,delay,duration,paused,scrollTrigger\", function (name) {\n return _staggerPropsToSkip[name] = 1;\n});\n/*\n * --------------------------------------------------------------------------------------\n * TWEEN\n * --------------------------------------------------------------------------------------\n */\n\n\nexport var Tween = /*#__PURE__*/function (_Animation2) {\n _inheritsLoose(Tween, _Animation2);\n\n function Tween(targets, vars, position, skipInherit) {\n var _this3;\n\n if (typeof vars === \"number\") {\n position.duration = vars;\n vars = position;\n position = null;\n }\n\n _this3 = _Animation2.call(this, skipInherit ? vars : _inheritDefaults(vars)) || this;\n var _this3$vars = _this3.vars,\n duration = _this3$vars.duration,\n delay = _this3$vars.delay,\n immediateRender = _this3$vars.immediateRender,\n stagger = _this3$vars.stagger,\n overwrite = _this3$vars.overwrite,\n keyframes = _this3$vars.keyframes,\n defaults = _this3$vars.defaults,\n scrollTrigger = _this3$vars.scrollTrigger,\n yoyoEase = _this3$vars.yoyoEase,\n parent = vars.parent || _globalTimeline,\n parsedTargets = (_isArray(targets) || _isTypedArray(targets) ? _isNumber(targets[0]) : \"length\" in vars) ? [targets] : toArray(targets),\n tl,\n i,\n copy,\n l,\n p,\n curTarget,\n staggerFunc,\n staggerVarsToMerge;\n _this3._targets = parsedTargets.length ? _harness(parsedTargets) : _warn(\"GSAP target \" + targets + \" not found. https://greensock.com\", !_config.nullTargetWarn) || [];\n _this3._ptLookup = []; //PropTween lookup. An array containing an object for each target, having keys for each tweening property\n\n _this3._overwrite = overwrite;\n\n if (keyframes || stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {\n vars = _this3.vars;\n tl = _this3.timeline = new Timeline({\n data: \"nested\",\n defaults: defaults || {},\n targets: parent && parent.data === \"nested\" ? parent.vars.targets : parsedTargets\n }); // we need to store the targets because for staggers and keyframes, we end up creating an individual tween for each but function-based values need to know the index and the whole Array of targets.\n\n tl.kill();\n tl.parent = tl._dp = _assertThisInitialized(_this3);\n tl._start = 0;\n\n if (stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {\n l = parsedTargets.length;\n staggerFunc = stagger && distribute(stagger);\n\n if (_isObject(stagger)) {\n //users can pass in callbacks like onStart/onComplete in the stagger object. These should fire with each individual tween.\n for (p in stagger) {\n if (~_staggerTweenProps.indexOf(p)) {\n staggerVarsToMerge || (staggerVarsToMerge = {});\n staggerVarsToMerge[p] = stagger[p];\n }\n }\n }\n\n for (i = 0; i < l; i++) {\n copy = _copyExcluding(vars, _staggerPropsToSkip);\n copy.stagger = 0;\n yoyoEase && (copy.yoyoEase = yoyoEase);\n staggerVarsToMerge && _merge(copy, staggerVarsToMerge);\n curTarget = parsedTargets[i]; //don't just copy duration or delay because if they're a string or function, we'd end up in an infinite loop because _isFuncOrString() would evaluate as true in the child tweens, entering this loop, etc. So we parse the value straight from vars and default to 0.\n\n copy.duration = +_parseFuncOrString(duration, _assertThisInitialized(_this3), i, curTarget, parsedTargets);\n copy.delay = (+_parseFuncOrString(delay, _assertThisInitialized(_this3), i, curTarget, parsedTargets) || 0) - _this3._delay;\n\n if (!stagger && l === 1 && copy.delay) {\n // if someone does delay:\"random(1, 5)\", repeat:-1, for example, the delay shouldn't be inside the repeat.\n _this3._delay = delay = copy.delay;\n _this3._start += delay;\n copy.delay = 0;\n }\n\n tl.to(curTarget, copy, staggerFunc ? staggerFunc(i, curTarget, parsedTargets) : 0);\n tl._ease = _easeMap.none;\n }\n\n tl.duration() ? duration = delay = 0 : _this3.timeline = 0; // if the timeline's duration is 0, we don't need a timeline internally!\n } else if (keyframes) {\n _inheritDefaults(_setDefaults(tl.vars.defaults, {\n ease: \"none\"\n }));\n\n tl._ease = _parseEase(keyframes.ease || vars.ease || \"none\");\n var time = 0,\n a,\n kf,\n v;\n\n if (_isArray(keyframes)) {\n keyframes.forEach(function (frame) {\n return tl.to(parsedTargets, frame, \">\");\n });\n tl.duration(); // to ensure tl._dur is cached because we tap into it for performance purposes in the render() method.\n } else {\n copy = {};\n\n for (p in keyframes) {\n p === \"ease\" || p === \"easeEach\" || _parseKeyframe(p, keyframes[p], copy, keyframes.easeEach);\n }\n\n for (p in copy) {\n a = copy[p].sort(function (a, b) {\n return a.t - b.t;\n });\n time = 0;\n\n for (i = 0; i < a.length; i++) {\n kf = a[i];\n v = {\n ease: kf.e,\n duration: (kf.t - (i ? a[i - 1].t : 0)) / 100 * duration\n };\n v[p] = kf.v;\n tl.to(parsedTargets, v, time);\n time += v.duration;\n }\n }\n\n tl.duration() < duration && tl.to({}, {\n duration: duration - tl.duration()\n }); // in case keyframes didn't go to 100%\n }\n }\n\n duration || _this3.duration(duration = tl.duration());\n } else {\n _this3.timeline = 0; //speed optimization, faster lookups (no going up the prototype chain)\n }\n\n if (overwrite === true && !_suppressOverwrites) {\n _overwritingTween = _assertThisInitialized(_this3);\n\n _globalTimeline.killTweensOf(parsedTargets);\n\n _overwritingTween = 0;\n }\n\n _addToTimeline(parent, _assertThisInitialized(_this3), position);\n\n vars.reversed && _this3.reverse();\n vars.paused && _this3.paused(true);\n\n if (immediateRender || !duration && !keyframes && _this3._start === _roundPrecise(parent._time) && _isNotFalse(immediateRender) && _hasNoPausedAncestors(_assertThisInitialized(_this3)) && parent.data !== \"nested\") {\n _this3._tTime = -_tinyNum; //forces a render without having to set the render() \"force\" parameter to true because we want to allow lazying by default (using the \"force\" parameter always forces an immediate full render)\n\n _this3.render(Math.max(0, -delay) || 0); //in case delay is negative\n\n }\n\n scrollTrigger && _scrollTrigger(_assertThisInitialized(_this3), scrollTrigger);\n return _this3;\n }\n\n var _proto3 = Tween.prototype;\n\n _proto3.render = function render(totalTime, suppressEvents, force) {\n var prevTime = this._time,\n tDur = this._tDur,\n dur = this._dur,\n isNegative = totalTime < 0,\n tTime = totalTime > tDur - _tinyNum && !isNegative ? tDur : totalTime < _tinyNum ? 0 : totalTime,\n time,\n pt,\n iteration,\n cycleDuration,\n prevIteration,\n isYoyo,\n ratio,\n timeline,\n yoyoEase;\n\n if (!dur) {\n _renderZeroDurationTween(this, totalTime, suppressEvents, force);\n } else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {\n //this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)\n time = tTime;\n timeline = this.timeline;\n\n if (this._repeat) {\n //adjust the time for repeats and yoyos\n cycleDuration = dur + this._rDelay;\n\n if (this._repeat < -1 && isNegative) {\n return this.totalTime(cycleDuration * 100 + totalTime, suppressEvents, force);\n }\n\n time = _roundPrecise(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\n if (tTime === tDur) {\n // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n iteration = this._repeat;\n time = dur;\n } else {\n iteration = ~~(tTime / cycleDuration);\n\n if (iteration && iteration === tTime / cycleDuration) {\n time = dur;\n iteration--;\n }\n\n time > dur && (time = dur);\n }\n\n isYoyo = this._yoyo && iteration & 1;\n\n if (isYoyo) {\n yoyoEase = this._yEase;\n time = dur - time;\n }\n\n prevIteration = _animationCycle(this._tTime, cycleDuration);\n\n if (time === prevTime && !force && this._initted) {\n //could be during the repeatDelay part. No need to render and fire callbacks.\n this._tTime = tTime;\n return this;\n }\n\n if (iteration !== prevIteration) {\n timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo); //repeatRefresh functionality\n\n if (this.vars.repeatRefresh && !isYoyo && !this._lock) {\n this._lock = force = 1; //force, otherwise if lazy is true, the _attemptInitTween() will return and we'll jump out and get caught bouncing on each tick.\n\n this.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;\n }\n }\n }\n\n if (!this._initted) {\n if (_attemptInitTween(this, isNegative ? totalTime : time, force, suppressEvents, tTime)) {\n this._tTime = 0; // in constructor if immediateRender is true, we set _tTime to -_tinyNum to have the playhead cross the starting point but we can't leave _tTime as a negative number.\n\n return this;\n }\n\n if (prevTime !== this._time) {\n // rare edge case - during initialization, an onUpdate in the _startAt (.fromTo()) might force this tween to render at a different spot in which case we should ditch this render() call so that it doesn't revert the values.\n return this;\n }\n\n if (dur !== this._dur) {\n // while initting, a plugin like InertiaPlugin might alter the duration, so rerun from the start to ensure everything renders as it should.\n return this.render(totalTime, suppressEvents, force);\n }\n }\n\n this._tTime = tTime;\n this._time = time;\n\n if (!this._act && this._ts) {\n this._act = 1; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\n this._lazy = 0;\n }\n\n this.ratio = ratio = (yoyoEase || this._ease)(time / dur);\n\n if (this._from) {\n this.ratio = ratio = 1 - ratio;\n }\n\n if (time && !prevTime && !suppressEvents && !iteration) {\n _callback(this, \"onStart\");\n\n if (this._tTime !== tTime) {\n // in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.\n return this;\n }\n }\n\n pt = this._pt;\n\n while (pt) {\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n\n timeline && timeline.render(totalTime < 0 ? totalTime : !time && isYoyo ? -_tinyNum : timeline._dur * timeline._ease(time / this._dur), suppressEvents, force) || this._startAt && (this._zTime = totalTime);\n\n if (this._onUpdate && !suppressEvents) {\n isNegative && _rewindStartAt(this, totalTime, suppressEvents, force); //note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.\n\n _callback(this, \"onUpdate\");\n }\n\n this._repeat && iteration !== prevIteration && this.vars.onRepeat && !suppressEvents && this.parent && _callback(this, \"onRepeat\");\n\n if ((tTime === this._tDur || !tTime) && this._tTime === tTime) {\n isNegative && !this._onUpdate && _rewindStartAt(this, totalTime, true, true);\n (totalTime || !dur) && (tTime === this._tDur && this._ts > 0 || !tTime && this._ts < 0) && _removeFromParent(this, 1); // don't remove if we're rendering at exactly a time of 0, as there could be autoRevert values that should get set on the next tick (if the playhead goes backward beyond the startTime, negative totalTime). Don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n\n if (!suppressEvents && !(isNegative && !prevTime) && (tTime || prevTime || isYoyo)) {\n // if prevTime and tTime are zero, we shouldn't fire the onReverseComplete. This could happen if you gsap.to(... {paused:true}).play();\n _callback(this, tTime === tDur ? \"onComplete\" : \"onReverseComplete\", true);\n\n this._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n }\n }\n }\n\n return this;\n };\n\n _proto3.targets = function targets() {\n return this._targets;\n };\n\n _proto3.invalidate = function invalidate(soft) {\n // \"soft\" gives us a way to clear out everything EXCEPT the recorded pre-\"from\" portion of from() tweens. Otherwise, for example, if you tween.progress(1).render(0, true true).invalidate(), the \"from\" values would persist and then on the next render, the from() tweens would initialize and the current value would match the \"from\" values, thus animate from the same value to the same value (no animation). We tap into this in ScrollTrigger's refresh() where we must push a tween to completion and then back again but honor its init state in case the tween is dependent on another tween further up on the page.\n (!soft || !this.vars.runBackwards) && (this._startAt = 0);\n this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0;\n this._ptLookup = [];\n this.timeline && this.timeline.invalidate(soft);\n return _Animation2.prototype.invalidate.call(this, soft);\n };\n\n _proto3.resetTo = function resetTo(property, value, start, startIsRelative) {\n _tickerActive || _ticker.wake();\n this._ts || this.play();\n var time = Math.min(this._dur, (this._dp._time - this._start) * this._ts),\n ratio;\n this._initted || _initTween(this, time);\n ratio = this._ease(time / this._dur); // don't just get tween.ratio because it may not have rendered yet.\n // possible future addition to allow an object with multiple values to update, like tween.resetTo({x: 100, y: 200}); At this point, it doesn't seem worth the added kb given the fact that most users will likely opt for the convenient gsap.quickTo() way of interacting with this method.\n // if (_isObject(property)) { // performance optimization\n // \tfor (p in property) {\n // \t\tif (_updatePropTweens(this, p, property[p], value ? value[p] : null, start, ratio, time)) {\n // \t\t\treturn this.resetTo(property, value, start, startIsRelative); // if a PropTween wasn't found for the property, it'll get forced with a re-initialization so we need to jump out and start over again.\n // \t\t}\n // \t}\n // } else {\n\n if (_updatePropTweens(this, property, value, start, startIsRelative, ratio, time)) {\n return this.resetTo(property, value, start, startIsRelative); // if a PropTween wasn't found for the property, it'll get forced with a re-initialization so we need to jump out and start over again.\n } //}\n\n\n _alignPlayhead(this, 0);\n\n this.parent || _addLinkedListItem(this._dp, this, \"_first\", \"_last\", this._dp._sort ? \"_start\" : 0);\n return this.render(0);\n };\n\n _proto3.kill = function kill(targets, vars) {\n if (vars === void 0) {\n vars = \"all\";\n }\n\n if (!targets && (!vars || vars === \"all\")) {\n this._lazy = this._pt = 0;\n return this.parent ? _interrupt(this) : this;\n }\n\n if (this.timeline) {\n var tDur = this.timeline.totalDuration();\n this.timeline.killTweensOf(targets, vars, _overwritingTween && _overwritingTween.vars.overwrite !== true)._first || _interrupt(this); // if nothing is left tweening, interrupt.\n\n this.parent && tDur !== this.timeline.totalDuration() && _setDuration(this, this._dur * this.timeline._tDur / tDur, 0, 1); // if a nested tween is killed that changes the duration, it should affect this tween's duration. We must use the ratio, though, because sometimes the internal timeline is stretched like for keyframes where they don't all add up to whatever the parent tween's duration was set to.\n\n return this;\n }\n\n var parsedTargets = this._targets,\n killingTargets = targets ? toArray(targets) : parsedTargets,\n propTweenLookup = this._ptLookup,\n firstPT = this._pt,\n overwrittenProps,\n curLookup,\n curOverwriteProps,\n props,\n p,\n pt,\n i;\n\n if ((!vars || vars === \"all\") && _arraysMatch(parsedTargets, killingTargets)) {\n vars === \"all\" && (this._pt = 0);\n return _interrupt(this);\n }\n\n overwrittenProps = this._op = this._op || [];\n\n if (vars !== \"all\") {\n //so people can pass in a comma-delimited list of property names\n if (_isString(vars)) {\n p = {};\n\n _forEachName(vars, function (name) {\n return p[name] = 1;\n });\n\n vars = p;\n }\n\n vars = _addAliasesToVars(parsedTargets, vars);\n }\n\n i = parsedTargets.length;\n\n while (i--) {\n if (~killingTargets.indexOf(parsedTargets[i])) {\n curLookup = propTweenLookup[i];\n\n if (vars === \"all\") {\n overwrittenProps[i] = vars;\n props = curLookup;\n curOverwriteProps = {};\n } else {\n curOverwriteProps = overwrittenProps[i] = overwrittenProps[i] || {};\n props = vars;\n }\n\n for (p in props) {\n pt = curLookup && curLookup[p];\n\n if (pt) {\n if (!(\"kill\" in pt.d) || pt.d.kill(p) === true) {\n _removeLinkedListItem(this, pt, \"_pt\");\n }\n\n delete curLookup[p];\n }\n\n if (curOverwriteProps !== \"all\") {\n curOverwriteProps[p] = 1;\n }\n }\n }\n }\n\n this._initted && !this._pt && firstPT && _interrupt(this); //if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.\n\n return this;\n };\n\n Tween.to = function to(targets, vars) {\n return new Tween(targets, vars, arguments[2]);\n };\n\n Tween.from = function from(targets, vars) {\n return _createTweenType(1, arguments);\n };\n\n Tween.delayedCall = function delayedCall(delay, callback, params, scope) {\n return new Tween(callback, 0, {\n immediateRender: false,\n lazy: false,\n overwrite: false,\n delay: delay,\n onComplete: callback,\n onReverseComplete: callback,\n onCompleteParams: params,\n onReverseCompleteParams: params,\n callbackScope: scope\n }); // we must use onReverseComplete too for things like timeline.add(() => {...}) which should be triggered in BOTH directions (forward and reverse)\n };\n\n Tween.fromTo = function fromTo(targets, fromVars, toVars) {\n return _createTweenType(2, arguments);\n };\n\n Tween.set = function set(targets, vars) {\n vars.duration = 0;\n vars.repeatDelay || (vars.repeat = 0);\n return new Tween(targets, vars);\n };\n\n Tween.killTweensOf = function killTweensOf(targets, props, onlyActive) {\n return _globalTimeline.killTweensOf(targets, props, onlyActive);\n };\n\n return Tween;\n}(Animation);\n\n_setDefaults(Tween.prototype, {\n _targets: [],\n _lazy: 0,\n _startAt: 0,\n _op: 0,\n _onInit: 0\n}); //add the pertinent timeline methods to Tween instances so that users can chain conveniently and create a timeline automatically. (removed due to concerns that it'd ultimately add to more confusion especially for beginners)\n// _forEachName(\"to,from,fromTo,set,call,add,addLabel,addPause\", name => {\n// \tTween.prototype[name] = function() {\n// \t\tlet tl = new Timeline();\n// \t\treturn _addToTimeline(tl, this)[name].apply(tl, toArray(arguments));\n// \t}\n// });\n//for backward compatibility. Leverage the timeline calls.\n\n\n_forEachName(\"staggerTo,staggerFrom,staggerFromTo\", function (name) {\n Tween[name] = function () {\n var tl = new Timeline(),\n params = _slice.call(arguments, 0);\n\n params.splice(name === \"staggerFromTo\" ? 5 : 4, 0, 0);\n return tl[name].apply(tl, params);\n };\n});\n/*\n * --------------------------------------------------------------------------------------\n * PROPTWEEN\n * --------------------------------------------------------------------------------------\n */\n\n\nvar _setterPlain = function _setterPlain(target, property, value) {\n return target[property] = value;\n},\n _setterFunc = function _setterFunc(target, property, value) {\n return target[property](value);\n},\n _setterFuncWithParam = function _setterFuncWithParam(target, property, value, data) {\n return target[property](data.fp, value);\n},\n _setterAttribute = function _setterAttribute(target, property, value) {\n return target.setAttribute(property, value);\n},\n _getSetter = function _getSetter(target, property) {\n return _isFunction(target[property]) ? _setterFunc : _isUndefined(target[property]) && target.setAttribute ? _setterAttribute : _setterPlain;\n},\n _renderPlain = function _renderPlain(ratio, data) {\n return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 1000000) / 1000000, data);\n},\n _renderBoolean = function _renderBoolean(ratio, data) {\n return data.set(data.t, data.p, !!(data.s + data.c * ratio), data);\n},\n _renderComplexString = function _renderComplexString(ratio, data) {\n var pt = data._pt,\n s = \"\";\n\n if (!ratio && data.b) {\n //b = beginning string\n s = data.b;\n } else if (ratio === 1 && data.e) {\n //e = ending string\n s = data.e;\n } else {\n while (pt) {\n s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : Math.round((pt.s + pt.c * ratio) * 10000) / 10000) + s; //we use the \"p\" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.\n\n pt = pt._next;\n }\n\n s += data.c; //we use the \"c\" of the PropTween to store the final chunk of non-numeric text.\n }\n\n data.set(data.t, data.p, s, data);\n},\n _renderPropTweens = function _renderPropTweens(ratio, data) {\n var pt = data._pt;\n\n while (pt) {\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n},\n _addPluginModifier = function _addPluginModifier(modifier, tween, target, property) {\n var pt = this._pt,\n next;\n\n while (pt) {\n next = pt._next;\n pt.p === property && pt.modifier(modifier, tween, target);\n pt = next;\n }\n},\n _killPropTweensOf = function _killPropTweensOf(property) {\n var pt = this._pt,\n hasNonDependentRemaining,\n next;\n\n while (pt) {\n next = pt._next;\n\n if (pt.p === property && !pt.op || pt.op === property) {\n _removeLinkedListItem(this, pt, \"_pt\");\n } else if (!pt.dep) {\n hasNonDependentRemaining = 1;\n }\n\n pt = next;\n }\n\n return !hasNonDependentRemaining;\n},\n _setterWithModifier = function _setterWithModifier(target, property, value, data) {\n data.mSet(target, property, data.m.call(data.tween, value, data.mt), data);\n},\n _sortPropTweensByPriority = function _sortPropTweensByPriority(parent) {\n var pt = parent._pt,\n next,\n pt2,\n first,\n last; //sorts the PropTween linked list in order of priority because some plugins need to do their work after ALL of the PropTweens were created (like RoundPropsPlugin and ModifiersPlugin)\n\n while (pt) {\n next = pt._next;\n pt2 = first;\n\n while (pt2 && pt2.pr > pt.pr) {\n pt2 = pt2._next;\n }\n\n if (pt._prev = pt2 ? pt2._prev : last) {\n pt._prev._next = pt;\n } else {\n first = pt;\n }\n\n if (pt._next = pt2) {\n pt2._prev = pt;\n } else {\n last = pt;\n }\n\n pt = next;\n }\n\n parent._pt = first;\n}; //PropTween key: t = target, p = prop, r = renderer, d = data, s = start, c = change, op = overwriteProperty (ONLY populated when it's different than p), pr = priority, _next/_prev for the linked list siblings, set = setter, m = modifier, mSet = modifierSetter (the original setter, before a modifier was added)\n\n\nexport var PropTween = /*#__PURE__*/function () {\n function PropTween(next, target, prop, start, change, renderer, data, setter, priority) {\n this.t = target;\n this.s = start;\n this.c = change;\n this.p = prop;\n this.r = renderer || _renderPlain;\n this.d = data || this;\n this.set = setter || _setterPlain;\n this.pr = priority || 0;\n this._next = next;\n\n if (next) {\n next._prev = this;\n }\n }\n\n var _proto4 = PropTween.prototype;\n\n _proto4.modifier = function modifier(func, tween, target) {\n this.mSet = this.mSet || this.set; //in case it was already set (a PropTween can only have one modifier)\n\n this.set = _setterWithModifier;\n this.m = func;\n this.mt = target; //modifier target\n\n this.tween = tween;\n };\n\n return PropTween;\n}(); //Initialization tasks\n\n_forEachName(_callbackNames + \"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger\", function (name) {\n return _reservedProps[name] = 1;\n});\n\n_globals.TweenMax = _globals.TweenLite = Tween;\n_globals.TimelineLite = _globals.TimelineMax = Timeline;\n_globalTimeline = new Timeline({\n sortChildren: false,\n defaults: _defaults,\n autoRemoveChildren: true,\n id: \"root\",\n smoothChildTiming: true\n});\n_config.stringFilter = _colorStringFilter;\n\nvar _media = [],\n _listeners = {},\n _emptyArray = [],\n _lastMediaTime = 0,\n _dispatch = function _dispatch(type) {\n return (_listeners[type] || _emptyArray).map(function (f) {\n return f();\n });\n},\n _onMediaChange = function _onMediaChange() {\n var time = Date.now(),\n matches = [];\n\n if (time - _lastMediaTime > 2) {\n _dispatch(\"matchMediaInit\");\n\n _media.forEach(function (c) {\n var queries = c.queries,\n conditions = c.conditions,\n match,\n p,\n anyMatch,\n toggled;\n\n for (p in queries) {\n match = _win.matchMedia(queries[p]).matches; // Firefox doesn't update the \"matches\" property of the MediaQueryList object correctly - it only does so as it calls its change handler - so we must re-create a media query here to ensure it's accurate.\n\n match && (anyMatch = 1);\n\n if (match !== conditions[p]) {\n conditions[p] = match;\n toggled = 1;\n }\n }\n\n if (toggled) {\n c.revert();\n anyMatch && matches.push(c);\n }\n });\n\n _dispatch(\"matchMediaRevert\");\n\n matches.forEach(function (c) {\n return c.onMatch(c);\n });\n _lastMediaTime = time;\n\n _dispatch(\"matchMedia\");\n }\n};\n\nvar Context = /*#__PURE__*/function () {\n function Context(func, scope) {\n this.selector = scope && selector(scope);\n this.data = [];\n this._r = []; // returned/cleanup functions\n\n this.isReverted = false;\n func && this.add(func);\n }\n\n var _proto5 = Context.prototype;\n\n _proto5.add = function add(name, func, scope) {\n // possible future addition if we need the ability to add() an animation to a context and for whatever reason cannot create that animation inside of a context.add(() => {...}) function.\n // if (name && _isFunction(name.revert)) {\n // \tthis.data.push(name);\n // \treturn (name._ctx = this);\n // }\n if (_isFunction(name)) {\n scope = func;\n func = name;\n name = _isFunction;\n }\n\n var self = this,\n f = function f() {\n var prev = _context,\n prevSelector = self.selector,\n result;\n prev && prev !== self && prev.data.push(self);\n scope && (self.selector = selector(scope));\n _context = self;\n result = func.apply(self, arguments);\n _isFunction(result) && self._r.push(result);\n _context = prev;\n self.selector = prevSelector;\n self.isReverted = false;\n return result;\n };\n\n self.last = f;\n return name === _isFunction ? f(self) : name ? self[name] = f : f;\n };\n\n _proto5.ignore = function ignore(func) {\n var prev = _context;\n _context = null;\n func(this);\n _context = prev;\n };\n\n _proto5.getTweens = function getTweens() {\n var a = [];\n this.data.forEach(function (e) {\n return e instanceof Context ? a.push.apply(a, e.getTweens()) : e instanceof Tween && !(e.parent && e.parent.data === \"nested\") && a.push(e);\n });\n return a;\n };\n\n _proto5.clear = function clear() {\n this._r.length = this.data.length = 0;\n };\n\n _proto5.kill = function kill(revert, matchMedia) {\n var _this4 = this;\n\n if (revert) {\n var tweens = this.getTweens();\n this.data.forEach(function (t) {\n // Flip plugin tweens are very different in that they should actually be pushed to their end. The plugin replaces the timeline's .revert() method to do exactly that. But we also need to remove any of those nested tweens inside the flip timeline so that they don't get individually reverted.\n if (t.data === \"isFlip\") {\n t.revert();\n t.getChildren(true, true, false).forEach(function (tween) {\n return tweens.splice(tweens.indexOf(tween), 1);\n });\n }\n }); // save as an object so that we can cache the globalTime for each tween to optimize performance during the sort\n\n tweens.map(function (t) {\n return {\n g: t.globalTime(0),\n t: t\n };\n }).sort(function (a, b) {\n return b.g - a.g || -1;\n }).forEach(function (o) {\n return o.t.revert(revert);\n }); // note: all of the _startAt tweens should be reverted in reverse order that they were created, and they'll all have the same globalTime (-1) so the \" || -1\" in the sort keeps the order properly.\n\n this.data.forEach(function (e) {\n return !(e instanceof Animation) && e.revert && e.revert(revert);\n });\n\n this._r.forEach(function (f) {\n return f(revert, _this4);\n });\n\n this.isReverted = true;\n } else {\n this.data.forEach(function (e) {\n return e.kill && e.kill();\n });\n }\n\n this.clear();\n\n if (matchMedia) {\n var i = _media.indexOf(this);\n\n !!~i && _media.splice(i, 1);\n }\n };\n\n _proto5.revert = function revert(config) {\n this.kill(config || {});\n };\n\n return Context;\n}();\n\nvar MatchMedia = /*#__PURE__*/function () {\n function MatchMedia(scope) {\n this.contexts = [];\n this.scope = scope;\n }\n\n var _proto6 = MatchMedia.prototype;\n\n _proto6.add = function add(conditions, func, scope) {\n _isObject(conditions) || (conditions = {\n matches: conditions\n });\n var context = new Context(0, scope || this.scope),\n cond = context.conditions = {},\n mq,\n p,\n active;\n this.contexts.push(context);\n func = context.add(\"onMatch\", func);\n context.queries = conditions;\n\n for (p in conditions) {\n if (p === \"all\") {\n active = 1;\n } else {\n mq = _win.matchMedia(conditions[p]);\n\n if (mq) {\n _media.indexOf(context) < 0 && _media.push(context);\n (cond[p] = mq.matches) && (active = 1);\n mq.addListener ? mq.addListener(_onMediaChange) : mq.addEventListener(\"change\", _onMediaChange);\n }\n }\n }\n\n active && func(context);\n return this;\n } // refresh() {\n // \tlet time = _lastMediaTime,\n // \t\tmedia = _media;\n // \t_lastMediaTime = -1;\n // \t_media = this.contexts;\n // \t_onMediaChange();\n // \t_lastMediaTime = time;\n // \t_media = media;\n // }\n ;\n\n _proto6.revert = function revert(config) {\n this.kill(config || {});\n };\n\n _proto6.kill = function kill(revert) {\n this.contexts.forEach(function (c) {\n return c.kill(revert, true);\n });\n };\n\n return MatchMedia;\n}();\n/*\n * --------------------------------------------------------------------------------------\n * GSAP\n * --------------------------------------------------------------------------------------\n */\n\n\nvar _gsap = {\n registerPlugin: function registerPlugin() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n args.forEach(function (config) {\n return _createPlugin(config);\n });\n },\n timeline: function timeline(vars) {\n return new Timeline(vars);\n },\n getTweensOf: function getTweensOf(targets, onlyActive) {\n return _globalTimeline.getTweensOf(targets, onlyActive);\n },\n getProperty: function getProperty(target, property, unit, uncache) {\n _isString(target) && (target = toArray(target)[0]); //in case selector text or an array is passed in\n\n var getter = _getCache(target || {}).get,\n format = unit ? _passThrough : _numericIfPossible;\n\n unit === \"native\" && (unit = \"\");\n return !target ? target : !property ? function (property, unit, uncache) {\n return format((_plugins[property] && _plugins[property].get || getter)(target, property, unit, uncache));\n } : format((_plugins[property] && _plugins[property].get || getter)(target, property, unit, uncache));\n },\n quickSetter: function quickSetter(target, property, unit) {\n target = toArray(target);\n\n if (target.length > 1) {\n var setters = target.map(function (t) {\n return gsap.quickSetter(t, property, unit);\n }),\n l = setters.length;\n return function (value) {\n var i = l;\n\n while (i--) {\n setters[i](value);\n }\n };\n }\n\n target = target[0] || {};\n\n var Plugin = _plugins[property],\n cache = _getCache(target),\n p = cache.harness && (cache.harness.aliases || {})[property] || property,\n // in case it's an alias, like \"rotate\" for \"rotation\".\n setter = Plugin ? function (value) {\n var p = new Plugin();\n _quickTween._pt = 0;\n p.init(target, unit ? value + unit : value, _quickTween, 0, [target]);\n p.render(1, p);\n _quickTween._pt && _renderPropTweens(1, _quickTween);\n } : cache.set(target, p);\n\n return Plugin ? setter : function (value) {\n return setter(target, p, unit ? value + unit : value, cache, 1);\n };\n },\n quickTo: function quickTo(target, property, vars) {\n var _merge2;\n\n var tween = gsap.to(target, _merge((_merge2 = {}, _merge2[property] = \"+=0.1\", _merge2.paused = true, _merge2), vars || {})),\n func = function func(value, start, startIsRelative) {\n return tween.resetTo(property, value, start, startIsRelative);\n };\n\n func.tween = tween;\n return func;\n },\n isTweening: function isTweening(targets) {\n return _globalTimeline.getTweensOf(targets, true).length > 0;\n },\n defaults: function defaults(value) {\n value && value.ease && (value.ease = _parseEase(value.ease, _defaults.ease));\n return _mergeDeep(_defaults, value || {});\n },\n config: function config(value) {\n return _mergeDeep(_config, value || {});\n },\n registerEffect: function registerEffect(_ref3) {\n var name = _ref3.name,\n effect = _ref3.effect,\n plugins = _ref3.plugins,\n defaults = _ref3.defaults,\n extendTimeline = _ref3.extendTimeline;\n (plugins || \"\").split(\",\").forEach(function (pluginName) {\n return pluginName && !_plugins[pluginName] && !_globals[pluginName] && _warn(name + \" effect requires \" + pluginName + \" plugin.\");\n });\n\n _effects[name] = function (targets, vars, tl) {\n return effect(toArray(targets), _setDefaults(vars || {}, defaults), tl);\n };\n\n if (extendTimeline) {\n Timeline.prototype[name] = function (targets, vars, position) {\n return this.add(_effects[name](targets, _isObject(vars) ? vars : (position = vars) && {}, this), position);\n };\n }\n },\n registerEase: function registerEase(name, ease) {\n _easeMap[name] = _parseEase(ease);\n },\n parseEase: function parseEase(ease, defaultEase) {\n return arguments.length ? _parseEase(ease, defaultEase) : _easeMap;\n },\n getById: function getById(id) {\n return _globalTimeline.getById(id);\n },\n exportRoot: function exportRoot(vars, includeDelayedCalls) {\n if (vars === void 0) {\n vars = {};\n }\n\n var tl = new Timeline(vars),\n child,\n next;\n tl.smoothChildTiming = _isNotFalse(vars.smoothChildTiming);\n\n _globalTimeline.remove(tl);\n\n tl._dp = 0; //otherwise it'll get re-activated when adding children and be re-introduced into _globalTimeline's linked list (then added to itself).\n\n tl._time = tl._tTime = _globalTimeline._time;\n child = _globalTimeline._first;\n\n while (child) {\n next = child._next;\n\n if (includeDelayedCalls || !(!child._dur && child instanceof Tween && child.vars.onComplete === child._targets[0])) {\n _addToTimeline(tl, child, child._start - child._delay);\n }\n\n child = next;\n }\n\n _addToTimeline(_globalTimeline, tl, 0);\n\n return tl;\n },\n context: function context(func, scope) {\n return func ? new Context(func, scope) : _context;\n },\n matchMedia: function matchMedia(scope) {\n return new MatchMedia(scope);\n },\n matchMediaRefresh: function matchMediaRefresh() {\n return _media.forEach(function (c) {\n var cond = c.conditions,\n found,\n p;\n\n for (p in cond) {\n if (cond[p]) {\n cond[p] = false;\n found = 1;\n }\n }\n\n found && c.revert();\n }) || _onMediaChange();\n },\n addEventListener: function addEventListener(type, callback) {\n var a = _listeners[type] || (_listeners[type] = []);\n ~a.indexOf(callback) || a.push(callback);\n },\n removeEventListener: function removeEventListener(type, callback) {\n var a = _listeners[type],\n i = a && a.indexOf(callback);\n i >= 0 && a.splice(i, 1);\n },\n utils: {\n wrap: wrap,\n wrapYoyo: wrapYoyo,\n distribute: distribute,\n random: random,\n snap: snap,\n normalize: normalize,\n getUnit: getUnit,\n clamp: clamp,\n splitColor: splitColor,\n toArray: toArray,\n selector: selector,\n mapRange: mapRange,\n pipe: pipe,\n unitize: unitize,\n interpolate: interpolate,\n shuffle: shuffle\n },\n install: _install,\n effects: _effects,\n ticker: _ticker,\n updateRoot: Timeline.updateRoot,\n plugins: _plugins,\n globalTimeline: _globalTimeline,\n core: {\n PropTween: PropTween,\n globals: _addGlobal,\n Tween: Tween,\n Timeline: Timeline,\n Animation: Animation,\n getCache: _getCache,\n _removeLinkedListItem: _removeLinkedListItem,\n reverting: function reverting() {\n return _reverting;\n },\n context: function context(toAdd) {\n if (toAdd && _context) {\n _context.data.push(toAdd);\n\n toAdd._ctx = _context;\n }\n\n return _context;\n },\n suppressOverwrites: function suppressOverwrites(value) {\n return _suppressOverwrites = value;\n }\n }\n};\n\n_forEachName(\"to,from,fromTo,delayedCall,set,killTweensOf\", function (name) {\n return _gsap[name] = Tween[name];\n});\n\n_ticker.add(Timeline.updateRoot);\n\n_quickTween = _gsap.to({}, {\n duration: 0\n}); // ---- EXTRA PLUGINS --------------------------------------------------------\n\nvar _getPluginPropTween = function _getPluginPropTween(plugin, prop) {\n var pt = plugin._pt;\n\n while (pt && pt.p !== prop && pt.op !== prop && pt.fp !== prop) {\n pt = pt._next;\n }\n\n return pt;\n},\n _addModifiers = function _addModifiers(tween, modifiers) {\n var targets = tween._targets,\n p,\n i,\n pt;\n\n for (p in modifiers) {\n i = targets.length;\n\n while (i--) {\n pt = tween._ptLookup[i][p];\n\n if (pt && (pt = pt.d)) {\n if (pt._pt) {\n // is a plugin\n pt = _getPluginPropTween(pt, p);\n }\n\n pt && pt.modifier && pt.modifier(modifiers[p], tween, targets[i], p);\n }\n }\n }\n},\n _buildModifierPlugin = function _buildModifierPlugin(name, modifier) {\n return {\n name: name,\n rawVars: 1,\n //don't pre-process function-based values or \"random()\" strings.\n init: function init(target, vars, tween) {\n tween._onInit = function (tween) {\n var temp, p;\n\n if (_isString(vars)) {\n temp = {};\n\n _forEachName(vars, function (name) {\n return temp[name] = 1;\n }); //if the user passes in a comma-delimited list of property names to roundProps, like \"x,y\", we round to whole numbers.\n\n\n vars = temp;\n }\n\n if (modifier) {\n temp = {};\n\n for (p in vars) {\n temp[p] = modifier(vars[p]);\n }\n\n vars = temp;\n }\n\n _addModifiers(tween, vars);\n };\n }\n };\n}; //register core plugins\n\n\nexport var gsap = _gsap.registerPlugin({\n name: \"attr\",\n init: function init(target, vars, tween, index, targets) {\n var p, pt, v;\n this.tween = tween;\n\n for (p in vars) {\n v = target.getAttribute(p) || \"\";\n pt = this.add(target, \"setAttribute\", (v || 0) + \"\", vars[p], index, targets, 0, 0, p);\n pt.op = p;\n pt.b = v; // record the beginning value so we can revert()\n\n this._props.push(p);\n }\n },\n render: function render(ratio, data) {\n var pt = data._pt;\n\n while (pt) {\n _reverting ? pt.set(pt.t, pt.p, pt.b, pt) : pt.r(ratio, pt.d); // if reverting, go back to the original (pt.b)\n\n pt = pt._next;\n }\n }\n}, {\n name: \"endArray\",\n init: function init(target, value) {\n var i = value.length;\n\n while (i--) {\n this.add(target, i, target[i] || 0, value[i], 0, 0, 0, 0, 0, 1);\n }\n }\n}, _buildModifierPlugin(\"roundProps\", _roundModifier), _buildModifierPlugin(\"modifiers\"), _buildModifierPlugin(\"snap\", snap)) || _gsap; //to prevent the core plugins from being dropped via aggressive tree shaking, we must include them in the variable declaration in this way.\n\nTween.version = Timeline.version = gsap.version = \"3.11.5\";\n_coreReady = 1;\n_windowExists() && _wake();\nvar Power0 = _easeMap.Power0,\n Power1 = _easeMap.Power1,\n Power2 = _easeMap.Power2,\n Power3 = _easeMap.Power3,\n Power4 = _easeMap.Power4,\n Linear = _easeMap.Linear,\n Quad = _easeMap.Quad,\n Cubic = _easeMap.Cubic,\n Quart = _easeMap.Quart,\n Quint = _easeMap.Quint,\n Strong = _easeMap.Strong,\n Elastic = _easeMap.Elastic,\n Back = _easeMap.Back,\n SteppedEase = _easeMap.SteppedEase,\n Bounce = _easeMap.Bounce,\n Sine = _easeMap.Sine,\n Expo = _easeMap.Expo,\n Circ = _easeMap.Circ;\nexport { Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ };\nexport { Tween as TweenMax, Tween as TweenLite, Timeline as TimelineMax, Timeline as TimelineLite, gsap as default, wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, selector, mapRange, pipe, unitize, interpolate, shuffle }; //export some internal methods/orojects for use in CSSPlugin so that we can externalize that file and allow custom builds that exclude it.\n\nexport { _getProperty, _numExp, _numWithUnitExp, _isString, _isUndefined, _renderComplexString, _relExp, _setDefaults, _removeLinkedListItem, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _replaceRandom, _checkPlugin, _plugins, _ticker, _config, _roundModifier, _round, _missingPlugin, _getSetter, _getCache, _colorExp, _parseRelative };","/*!\n * CSSPlugin 3.11.5\n * https://greensock.com\n *\n * Copyright 2008-2023, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nimport { gsap, _getProperty, _numExp, _numWithUnitExp, getUnit, _isString, _isUndefined, _renderComplexString, _relExp, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _checkPlugin, _replaceRandom, _plugins, GSCache, PropTween, _config, _ticker, _round, _missingPlugin, _getSetter, _getCache, _colorExp, _parseRelative, _setDefaults, _removeLinkedListItem //for the commented-out className feature.\n} from \"./gsap-core.js\";\n\nvar _win,\n _doc,\n _docElement,\n _pluginInitted,\n _tempDiv,\n _tempDivStyler,\n _recentSetterPlugin,\n _reverting,\n _windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n},\n _transformProps = {},\n _RAD2DEG = 180 / Math.PI,\n _DEG2RAD = Math.PI / 180,\n _atan2 = Math.atan2,\n _bigNum = 1e8,\n _capsExp = /([A-Z])/g,\n _horizontalExp = /(left|right|width|margin|padding|x)/i,\n _complexExp = /[\\s,\\(]\\S/,\n _propertyAliases = {\n autoAlpha: \"opacity,visibility\",\n scale: \"scaleX,scaleY\",\n alpha: \"opacity\"\n},\n _renderCSSProp = function _renderCSSProp(ratio, data) {\n return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);\n},\n _renderPropWithEnd = function _renderPropWithEnd(ratio, data) {\n return data.set(data.t, data.p, ratio === 1 ? data.e : Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);\n},\n _renderCSSPropWithBeginning = function _renderCSSPropWithBeginning(ratio, data) {\n return data.set(data.t, data.p, ratio ? Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u : data.b, data);\n},\n //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)\n_renderRoundedCSSProp = function _renderRoundedCSSProp(ratio, data) {\n var value = data.s + data.c * ratio;\n data.set(data.t, data.p, ~~(value + (value < 0 ? -.5 : .5)) + data.u, data);\n},\n _renderNonTweeningValue = function _renderNonTweeningValue(ratio, data) {\n return data.set(data.t, data.p, ratio ? data.e : data.b, data);\n},\n _renderNonTweeningValueOnlyAtEnd = function _renderNonTweeningValueOnlyAtEnd(ratio, data) {\n return data.set(data.t, data.p, ratio !== 1 ? data.b : data.e, data);\n},\n _setterCSSStyle = function _setterCSSStyle(target, property, value) {\n return target.style[property] = value;\n},\n _setterCSSProp = function _setterCSSProp(target, property, value) {\n return target.style.setProperty(property, value);\n},\n _setterTransform = function _setterTransform(target, property, value) {\n return target._gsap[property] = value;\n},\n _setterScale = function _setterScale(target, property, value) {\n return target._gsap.scaleX = target._gsap.scaleY = value;\n},\n _setterScaleWithRender = function _setterScaleWithRender(target, property, value, data, ratio) {\n var cache = target._gsap;\n cache.scaleX = cache.scaleY = value;\n cache.renderTransform(ratio, cache);\n},\n _setterTransformWithRender = function _setterTransformWithRender(target, property, value, data, ratio) {\n var cache = target._gsap;\n cache[property] = value;\n cache.renderTransform(ratio, cache);\n},\n _transformProp = \"transform\",\n _transformOriginProp = _transformProp + \"Origin\",\n _saveStyle = function _saveStyle(property, isNotCSS) {\n var _this = this;\n\n var target = this.target,\n style = target.style;\n\n if (property in _transformProps) {\n this.tfm = this.tfm || {};\n\n if (property !== \"transform\") {\n property = _propertyAliases[property] || property;\n ~property.indexOf(\",\") ? property.split(\",\").forEach(function (a) {\n return _this.tfm[a] = _get(target, a);\n }) : this.tfm[property] = target._gsap.x ? target._gsap[property] : _get(target, property); // note: scale would map to \"scaleX,scaleY\", thus we loop and apply them both.\n } else {\n return _propertyAliases.transform.split(\",\").forEach(function (p) {\n return _saveStyle.call(_this, p, isNotCSS);\n });\n }\n\n if (this.props.indexOf(_transformProp) >= 0) {\n return;\n }\n\n if (target._gsap.svg) {\n this.svgo = target.getAttribute(\"data-svg-origin\");\n this.props.push(_transformOriginProp, isNotCSS, \"\");\n }\n\n property = _transformProp;\n }\n\n (style || isNotCSS) && this.props.push(property, isNotCSS, style[property]);\n},\n _removeIndependentTransforms = function _removeIndependentTransforms(style) {\n if (style.translate) {\n style.removeProperty(\"translate\");\n style.removeProperty(\"scale\");\n style.removeProperty(\"rotate\");\n }\n},\n _revertStyle = function _revertStyle() {\n var props = this.props,\n target = this.target,\n style = target.style,\n cache = target._gsap,\n i,\n p;\n\n for (i = 0; i < props.length; i += 3) {\n // stored like this: property, isNotCSS, value\n props[i + 1] ? target[props[i]] = props[i + 2] : props[i + 2] ? style[props[i]] = props[i + 2] : style.removeProperty(props[i].substr(0, 2) === \"--\" ? props[i] : props[i].replace(_capsExp, \"-$1\").toLowerCase());\n }\n\n if (this.tfm) {\n for (p in this.tfm) {\n cache[p] = this.tfm[p];\n }\n\n if (cache.svg) {\n cache.renderTransform();\n target.setAttribute(\"data-svg-origin\", this.svgo || \"\");\n }\n\n i = _reverting();\n\n if ((!i || !i.isStart) && !style[_transformProp]) {\n _removeIndependentTransforms(style);\n\n cache.uncache = 1; // if it's a startAt that's being reverted in the _initTween() of the core, we don't need to uncache transforms. This is purely a performance optimization.\n }\n }\n},\n _getStyleSaver = function _getStyleSaver(target, properties) {\n var saver = {\n target: target,\n props: [],\n revert: _revertStyle,\n save: _saveStyle\n };\n target._gsap || gsap.core.getCache(target); // just make sure there's a _gsap cache defined because we read from it in _saveStyle() and it's more efficient to just check it here once.\n\n properties && properties.split(\",\").forEach(function (p) {\n return saver.save(p);\n });\n return saver;\n},\n _supports3D,\n _createElement = function _createElement(type, ns) {\n var e = _doc.createElementNS ? _doc.createElementNS((ns || \"http://www.w3.org/1999/xhtml\").replace(/^https/, \"http\"), type) : _doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making \"style\" inaccessible.\n\n return e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://greensock.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).\n},\n _getComputedProperty = function _getComputedProperty(target, property, skipPrefixFallback) {\n var cs = getComputedStyle(target);\n return cs[property] || cs.getPropertyValue(property.replace(_capsExp, \"-$1\").toLowerCase()) || cs.getPropertyValue(property) || !skipPrefixFallback && _getComputedProperty(target, _checkPropPrefix(property) || property, 1) || \"\"; //css variables may not need caps swapped out for dashes and lowercase.\n},\n _prefixes = \"O,Moz,ms,Ms,Webkit\".split(\",\"),\n _checkPropPrefix = function _checkPropPrefix(property, element, preferPrefix) {\n var e = element || _tempDiv,\n s = e.style,\n i = 5;\n\n if (property in s && !preferPrefix) {\n return property;\n }\n\n property = property.charAt(0).toUpperCase() + property.substr(1);\n\n while (i-- && !(_prefixes[i] + property in s)) {}\n\n return i < 0 ? null : (i === 3 ? \"ms\" : i >= 0 ? _prefixes[i] : \"\") + property;\n},\n _initCore = function _initCore() {\n if (_windowExists() && window.document) {\n _win = window;\n _doc = _win.document;\n _docElement = _doc.documentElement;\n _tempDiv = _createElement(\"div\") || {\n style: {}\n };\n _tempDivStyler = _createElement(\"div\");\n _transformProp = _checkPropPrefix(_transformProp);\n _transformOriginProp = _transformProp + \"Origin\";\n _tempDiv.style.cssText = \"border-width:0;line-height:0;position:absolute;padding:0\"; //make sure to override certain properties that may contaminate measurements, in case the user has overreaching style sheets.\n\n _supports3D = !!_checkPropPrefix(\"perspective\");\n _reverting = gsap.core.reverting;\n _pluginInitted = 1;\n }\n},\n _getBBoxHack = function _getBBoxHack(swapIfPossible) {\n //works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a element and/or . We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).\n var svg = _createElement(\"svg\", this.ownerSVGElement && this.ownerSVGElement.getAttribute(\"xmlns\") || \"http://www.w3.org/2000/svg\"),\n oldParent = this.parentNode,\n oldSibling = this.nextSibling,\n oldCSS = this.style.cssText,\n bbox;\n\n _docElement.appendChild(svg);\n\n svg.appendChild(this);\n this.style.display = \"block\";\n\n if (swapIfPossible) {\n try {\n bbox = this.getBBox();\n this._gsapBBox = this.getBBox; //store the original\n\n this.getBBox = _getBBoxHack;\n } catch (e) {}\n } else if (this._gsapBBox) {\n bbox = this._gsapBBox();\n }\n\n if (oldParent) {\n if (oldSibling) {\n oldParent.insertBefore(this, oldSibling);\n } else {\n oldParent.appendChild(this);\n }\n }\n\n _docElement.removeChild(svg);\n\n this.style.cssText = oldCSS;\n return bbox;\n},\n _getAttributeFallbacks = function _getAttributeFallbacks(target, attributesArray) {\n var i = attributesArray.length;\n\n while (i--) {\n if (target.hasAttribute(attributesArray[i])) {\n return target.getAttribute(attributesArray[i]);\n }\n }\n},\n _getBBox = function _getBBox(target) {\n var bounds;\n\n try {\n bounds = target.getBBox(); //Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a or ). https://bugzilla.mozilla.org/show_bug.cgi?id=612118\n } catch (error) {\n bounds = _getBBoxHack.call(target, true);\n }\n\n bounds && (bounds.width || bounds.height) || target.getBBox === _getBBoxHack || (bounds = _getBBoxHack.call(target, true)); //some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.\n\n return bounds && !bounds.width && !bounds.x && !bounds.y ? {\n x: +_getAttributeFallbacks(target, [\"x\", \"cx\", \"x1\"]) || 0,\n y: +_getAttributeFallbacks(target, [\"y\", \"cy\", \"y1\"]) || 0,\n width: 0,\n height: 0\n } : bounds;\n},\n _isSVG = function _isSVG(e) {\n return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && _getBBox(e));\n},\n //reports if the element is an SVG on which getBBox() actually works\n_removeProperty = function _removeProperty(target, property) {\n if (property) {\n var style = target.style;\n\n if (property in _transformProps && property !== _transformOriginProp) {\n property = _transformProp;\n }\n\n if (style.removeProperty) {\n if (property.substr(0, 2) === \"ms\" || property.substr(0, 6) === \"webkit\") {\n //Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be \"ms-transform\" instead of \"-ms-transform\" for IE9, for example)\n property = \"-\" + property;\n }\n\n style.removeProperty(property.replace(_capsExp, \"-$1\").toLowerCase());\n } else {\n //note: old versions of IE use \"removeAttribute()\" instead of \"removeProperty()\"\n style.removeAttribute(property);\n }\n }\n},\n _addNonTweeningPT = function _addNonTweeningPT(plugin, target, property, beginning, end, onlySetAtEnd) {\n var pt = new PropTween(plugin._pt, target, property, 0, 1, onlySetAtEnd ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue);\n plugin._pt = pt;\n pt.b = beginning;\n pt.e = end;\n\n plugin._props.push(property);\n\n return pt;\n},\n _nonConvertibleUnits = {\n deg: 1,\n rad: 1,\n turn: 1\n},\n _nonStandardLayouts = {\n grid: 1,\n flex: 1\n},\n //takes a single value like 20px and converts it to the unit specified, like \"%\", returning only the numeric amount.\n_convertToUnit = function _convertToUnit(target, property, value, unit) {\n var curValue = parseFloat(value) || 0,\n curUnit = (value + \"\").trim().substr((curValue + \"\").length) || \"px\",\n // some browsers leave extra whitespace at the beginning of CSS variables, hence the need to trim()\n style = _tempDiv.style,\n horizontal = _horizontalExp.test(property),\n isRootSVG = target.tagName.toLowerCase() === \"svg\",\n measureProperty = (isRootSVG ? \"client\" : \"offset\") + (horizontal ? \"Width\" : \"Height\"),\n amount = 100,\n toPixels = unit === \"px\",\n toPercent = unit === \"%\",\n px,\n parent,\n cache,\n isSVG;\n\n if (unit === curUnit || !curValue || _nonConvertibleUnits[unit] || _nonConvertibleUnits[curUnit]) {\n return curValue;\n }\n\n curUnit !== \"px\" && !toPixels && (curValue = _convertToUnit(target, property, value, \"px\"));\n isSVG = target.getCTM && _isSVG(target);\n\n if ((toPercent || curUnit === \"%\") && (_transformProps[property] || ~property.indexOf(\"adius\"))) {\n px = isSVG ? target.getBBox()[horizontal ? \"width\" : \"height\"] : target[measureProperty];\n return _round(toPercent ? curValue / px * amount : curValue / 100 * px);\n }\n\n style[horizontal ? \"width\" : \"height\"] = amount + (toPixels ? curUnit : unit);\n parent = ~property.indexOf(\"adius\") || unit === \"em\" && target.appendChild && !isRootSVG ? target : target.parentNode;\n\n if (isSVG) {\n parent = (target.ownerSVGElement || {}).parentNode;\n }\n\n if (!parent || parent === _doc || !parent.appendChild) {\n parent = _doc.body;\n }\n\n cache = parent._gsap;\n\n if (cache && toPercent && cache.width && horizontal && cache.time === _ticker.time && !cache.uncache) {\n return _round(curValue / cache.width * amount);\n } else {\n (toPercent || curUnit === \"%\") && !_nonStandardLayouts[_getComputedProperty(parent, \"display\")] && (style.position = _getComputedProperty(target, \"position\"));\n parent === target && (style.position = \"static\"); // like for borderRadius, if it's a % we must have it relative to the target itself but that may not have position: relative or position: absolute in which case it'd go up the chain until it finds its offsetParent (bad). position: static protects against that.\n\n parent.appendChild(_tempDiv);\n px = _tempDiv[measureProperty];\n parent.removeChild(_tempDiv);\n style.position = \"absolute\";\n\n if (horizontal && toPercent) {\n cache = _getCache(parent);\n cache.time = _ticker.time;\n cache.width = parent[measureProperty];\n }\n }\n\n return _round(toPixels ? px * curValue / amount : px && curValue ? amount / px * curValue : 0);\n},\n _get = function _get(target, property, unit, uncache) {\n var value;\n _pluginInitted || _initCore();\n\n if (property in _propertyAliases && property !== \"transform\") {\n property = _propertyAliases[property];\n\n if (~property.indexOf(\",\")) {\n property = property.split(\",\")[0];\n }\n }\n\n if (_transformProps[property] && property !== \"transform\") {\n value = _parseTransform(target, uncache);\n value = property !== \"transformOrigin\" ? value[property] : value.svg ? value.origin : _firstTwoOnly(_getComputedProperty(target, _transformOriginProp)) + \" \" + value.zOrigin + \"px\";\n } else {\n value = target.style[property];\n\n if (!value || value === \"auto\" || uncache || ~(value + \"\").indexOf(\"calc(\")) {\n value = _specialProps[property] && _specialProps[property](target, property, unit) || _getComputedProperty(target, property) || _getProperty(target, property) || (property === \"opacity\" ? 1 : 0); // note: some browsers, like Firefox, don't report borderRadius correctly! Instead, it only reports every corner like borderTopLeftRadius\n }\n }\n\n return unit && !~(value + \"\").trim().indexOf(\" \") ? _convertToUnit(target, property, value, unit) + unit : value;\n},\n _tweenComplexCSSString = function _tweenComplexCSSString(target, prop, start, end) {\n // note: we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n if (!start || start === \"none\") {\n // some browsers like Safari actually PREFER the prefixed property and mis-report the unprefixed value like clipPath (BUG). In other words, even though clipPath exists in the style (\"clipPath\" in target.style) and it's set in the CSS properly (along with -webkit-clip-path), Safari reports clipPath as \"none\" whereas WebkitClipPath reports accurately like \"ellipse(100% 0% at 50% 0%)\", so in this case we must SWITCH to using the prefixed property instead. See https://greensock.com/forums/topic/18310-clippath-doesnt-work-on-ios/\n var p = _checkPropPrefix(prop, target, 1),\n s = p && _getComputedProperty(target, p, 1);\n\n if (s && s !== start) {\n prop = p;\n start = s;\n } else if (prop === \"borderColor\") {\n start = _getComputedProperty(target, \"borderTopColor\"); // Firefox bug: always reports \"borderColor\" as \"\", so we must fall back to borderTopColor. See https://greensock.com/forums/topic/24583-how-to-return-colors-that-i-had-after-reverse/\n }\n }\n\n var pt = new PropTween(this._pt, target.style, prop, 0, 1, _renderComplexString),\n index = 0,\n matchIndex = 0,\n a,\n result,\n startValues,\n startNum,\n color,\n startValue,\n endValue,\n endNum,\n chunk,\n endUnit,\n startUnit,\n endValues;\n pt.b = start;\n pt.e = end;\n start += \"\"; // ensure values are strings\n\n end += \"\";\n\n if (end === \"auto\") {\n target.style[prop] = end;\n end = _getComputedProperty(target, prop) || end;\n target.style[prop] = start;\n }\n\n a = [start, end];\n\n _colorStringFilter(a); // pass an array with the starting and ending values and let the filter do whatever it needs to the values. If colors are found, it returns true and then we must match where the color shows up order-wise because for things like boxShadow, sometimes the browser provides the computed values with the color FIRST, but the user provides it with the color LAST, so flip them if necessary. Same for drop-shadow().\n\n\n start = a[0];\n end = a[1];\n startValues = start.match(_numWithUnitExp) || [];\n endValues = end.match(_numWithUnitExp) || [];\n\n if (endValues.length) {\n while (result = _numWithUnitExp.exec(end)) {\n endValue = result[0];\n chunk = end.substring(index, result.index);\n\n if (color) {\n color = (color + 1) % 5;\n } else if (chunk.substr(-5) === \"rgba(\" || chunk.substr(-5) === \"hsla(\") {\n color = 1;\n }\n\n if (endValue !== (startValue = startValues[matchIndex++] || \"\")) {\n startNum = parseFloat(startValue) || 0;\n startUnit = startValue.substr((startNum + \"\").length);\n endValue.charAt(1) === \"=\" && (endValue = _parseRelative(startNum, endValue) + startUnit);\n endNum = parseFloat(endValue);\n endUnit = endValue.substr((endNum + \"\").length);\n index = _numWithUnitExp.lastIndex - endUnit.length;\n\n if (!endUnit) {\n //if something like \"perspective:300\" is passed in and we must add a unit to the end\n endUnit = endUnit || _config.units[prop] || startUnit;\n\n if (index === end.length) {\n end += endUnit;\n pt.e += endUnit;\n }\n }\n\n if (startUnit !== endUnit) {\n startNum = _convertToUnit(target, prop, startValue, endUnit) || 0;\n } // these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\n\n pt._pt = {\n _next: pt._pt,\n p: chunk || matchIndex === 1 ? chunk : \",\",\n //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n s: startNum,\n c: endNum - startNum,\n m: color && color < 4 || prop === \"zIndex\" ? Math.round : 0\n };\n }\n }\n\n pt.c = index < end.length ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n } else {\n pt.r = prop === \"display\" && end === \"none\" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;\n }\n\n _relExp.test(end) && (pt.e = 0); //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n\n this._pt = pt; //start the linked list with this new PropTween. Remember, we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within another plugin too, thus \"this\" would refer to the plugin.\n\n return pt;\n},\n _keywordToPercent = {\n top: \"0%\",\n bottom: \"100%\",\n left: \"0%\",\n right: \"100%\",\n center: \"50%\"\n},\n _convertKeywordsToPercentages = function _convertKeywordsToPercentages(value) {\n var split = value.split(\" \"),\n x = split[0],\n y = split[1] || \"50%\";\n\n if (x === \"top\" || x === \"bottom\" || y === \"left\" || y === \"right\") {\n //the user provided them in the wrong order, so flip them\n value = x;\n x = y;\n y = value;\n }\n\n split[0] = _keywordToPercent[x] || x;\n split[1] = _keywordToPercent[y] || y;\n return split.join(\" \");\n},\n _renderClearProps = function _renderClearProps(ratio, data) {\n if (data.tween && data.tween._time === data.tween._dur) {\n var target = data.t,\n style = target.style,\n props = data.u,\n cache = target._gsap,\n prop,\n clearTransforms,\n i;\n\n if (props === \"all\" || props === true) {\n style.cssText = \"\";\n clearTransforms = 1;\n } else {\n props = props.split(\",\");\n i = props.length;\n\n while (--i > -1) {\n prop = props[i];\n\n if (_transformProps[prop]) {\n clearTransforms = 1;\n prop = prop === \"transformOrigin\" ? _transformOriginProp : _transformProp;\n }\n\n _removeProperty(target, prop);\n }\n }\n\n if (clearTransforms) {\n _removeProperty(target, _transformProp);\n\n if (cache) {\n cache.svg && target.removeAttribute(\"transform\");\n\n _parseTransform(target, 1); // force all the cached values back to \"normal\"/identity, otherwise if there's another tween that's already set to render transforms on this element, it could display the wrong values.\n\n\n cache.uncache = 1;\n\n _removeIndependentTransforms(style);\n }\n }\n }\n},\n // note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.\n_specialProps = {\n clearProps: function clearProps(plugin, target, property, endValue, tween) {\n if (tween.data !== \"isFromStart\") {\n var pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);\n pt.u = endValue;\n pt.pr = -10;\n pt.tween = tween;\n\n plugin._props.push(property);\n\n return 1;\n }\n }\n /* className feature (about 0.4kb gzipped).\n , className(plugin, target, property, endValue, tween) {\n \tlet _renderClassName = (ratio, data) => {\n \t\t\tdata.css.render(ratio, data.css);\n \t\t\tif (!ratio || ratio === 1) {\n \t\t\t\tlet inline = data.rmv,\n \t\t\t\t\ttarget = data.t,\n \t\t\t\t\tp;\n \t\t\t\ttarget.setAttribute(\"class\", ratio ? data.e : data.b);\n \t\t\t\tfor (p in inline) {\n \t\t\t\t\t_removeProperty(target, p);\n \t\t\t\t}\n \t\t\t}\n \t\t},\n \t\t_getAllStyles = (target) => {\n \t\t\tlet styles = {},\n \t\t\t\tcomputed = getComputedStyle(target),\n \t\t\t\tp;\n \t\t\tfor (p in computed) {\n \t\t\t\tif (isNaN(p) && p !== \"cssText\" && p !== \"length\") {\n \t\t\t\t\tstyles[p] = computed[p];\n \t\t\t\t}\n \t\t\t}\n \t\t\t_setDefaults(styles, _parseTransform(target, 1));\n \t\t\treturn styles;\n \t\t},\n \t\tstartClassList = target.getAttribute(\"class\"),\n \t\tstyle = target.style,\n \t\tcssText = style.cssText,\n \t\tcache = target._gsap,\n \t\tclassPT = cache.classPT,\n \t\tinlineToRemoveAtEnd = {},\n \t\tdata = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== \"=\") ? endValue : startClassList.replace(new RegExp(\"(?:\\\\s|^)\" + endValue.substr(2) + \"(?![\\\\w-])\"), \"\") + ((endValue.charAt(0) === \"+\") ? \" \" + endValue.substr(2) : \"\")},\n \t\tchangingVars = {},\n \t\tstartVars = _getAllStyles(target),\n \t\ttransformRelated = /(transform|perspective)/i,\n \t\tendVars, p;\n \tif (classPT) {\n \t\tclassPT.r(1, classPT.d);\n \t\t_removeLinkedListItem(classPT.d.plugin, classPT, \"_pt\");\n \t}\n \ttarget.setAttribute(\"class\", data.e);\n \tendVars = _getAllStyles(target, true);\n \ttarget.setAttribute(\"class\", startClassList);\n \tfor (p in endVars) {\n \t\tif (endVars[p] !== startVars[p] && !transformRelated.test(p)) {\n \t\t\tchangingVars[p] = endVars[p];\n \t\t\tif (!style[p] && style[p] !== \"0\") {\n \t\t\t\tinlineToRemoveAtEnd[p] = 1;\n \t\t\t}\n \t\t}\n \t}\n \tcache.classPT = plugin._pt = new PropTween(plugin._pt, target, \"className\", 0, 0, _renderClassName, data, 0, -11);\n \tif (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://greensock.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.\n \t\tstyle.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).\n \t}\n \t_parseTransform(target, true); //to clear the caching of transforms\n \tdata.css = new gsap.plugins.css();\n \tdata.css.init(target, changingVars, tween);\n \tplugin._props.push(...data.css._props);\n \treturn 1;\n }\n */\n\n},\n\n/*\n * --------------------------------------------------------------------------------------\n * TRANSFORMS\n * --------------------------------------------------------------------------------------\n */\n_identity2DMatrix = [1, 0, 0, 1, 0, 0],\n _rotationalProperties = {},\n _isNullTransform = function _isNullTransform(value) {\n return value === \"matrix(1, 0, 0, 1, 0, 0)\" || value === \"none\" || !value;\n},\n _getComputedTransformMatrixAsArray = function _getComputedTransformMatrixAsArray(target) {\n var matrixString = _getComputedProperty(target, _transformProp);\n\n return _isNullTransform(matrixString) ? _identity2DMatrix : matrixString.substr(7).match(_numExp).map(_round);\n},\n _getMatrix = function _getMatrix(target, force2D) {\n var cache = target._gsap || _getCache(target),\n style = target.style,\n matrix = _getComputedTransformMatrixAsArray(target),\n parent,\n nextSibling,\n temp,\n addedToDOM;\n\n if (cache.svg && target.getAttribute(\"transform\")) {\n temp = target.transform.baseVal.consolidate().matrix; //ensures that even complex values like \"translate(50,60) rotate(135,0,0)\" are parsed because it mashes it into a matrix.\n\n matrix = [temp.a, temp.b, temp.c, temp.d, temp.e, temp.f];\n return matrix.join(\",\") === \"1,0,0,1,0,0\" ? _identity2DMatrix : matrix;\n } else if (matrix === _identity2DMatrix && !target.offsetParent && target !== _docElement && !cache.svg) {\n //note: if offsetParent is null, that means the element isn't in the normal document flow, like if it has display:none or one of its ancestors has display:none). Firefox returns null for getComputedStyle() if the element is in an iframe that has display:none. https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n //browsers don't report transforms accurately unless the element is in the DOM and has a display value that's not \"none\". Firefox and Microsoft browsers have a partial bug where they'll report transforms even if display:none BUT not any percentage-based values like translate(-50%, 8px) will be reported as if it's translate(0, 8px).\n temp = style.display;\n style.display = \"block\";\n parent = target.parentNode;\n\n if (!parent || !target.offsetParent) {\n // note: in 3.3.0 we switched target.offsetParent to _doc.body.contains(target) to avoid [sometimes unnecessary] MutationObserver calls but that wasn't adequate because there are edge cases where nested position: fixed elements need to get reparented to accurately sense transforms. See https://github.com/greensock/GSAP/issues/388 and https://github.com/greensock/GSAP/issues/375\n addedToDOM = 1; //flag\n\n nextSibling = target.nextElementSibling;\n\n _docElement.appendChild(target); //we must add it to the DOM in order to get values properly\n\n }\n\n matrix = _getComputedTransformMatrixAsArray(target);\n temp ? style.display = temp : _removeProperty(target, \"display\");\n\n if (addedToDOM) {\n nextSibling ? parent.insertBefore(target, nextSibling) : parent ? parent.appendChild(target) : _docElement.removeChild(target);\n }\n }\n\n return force2D && matrix.length > 6 ? [matrix[0], matrix[1], matrix[4], matrix[5], matrix[12], matrix[13]] : matrix;\n},\n _applySVGOrigin = function _applySVGOrigin(target, origin, originIsAbsolute, smooth, matrixArray, pluginToAddPropTweensTo) {\n var cache = target._gsap,\n matrix = matrixArray || _getMatrix(target, true),\n xOriginOld = cache.xOrigin || 0,\n yOriginOld = cache.yOrigin || 0,\n xOffsetOld = cache.xOffset || 0,\n yOffsetOld = cache.yOffset || 0,\n a = matrix[0],\n b = matrix[1],\n c = matrix[2],\n d = matrix[3],\n tx = matrix[4],\n ty = matrix[5],\n originSplit = origin.split(\" \"),\n xOrigin = parseFloat(originSplit[0]) || 0,\n yOrigin = parseFloat(originSplit[1]) || 0,\n bounds,\n determinant,\n x,\n y;\n\n if (!originIsAbsolute) {\n bounds = _getBBox(target);\n xOrigin = bounds.x + (~originSplit[0].indexOf(\"%\") ? xOrigin / 100 * bounds.width : xOrigin);\n yOrigin = bounds.y + (~(originSplit[1] || originSplit[0]).indexOf(\"%\") ? yOrigin / 100 * bounds.height : yOrigin);\n } else if (matrix !== _identity2DMatrix && (determinant = a * d - b * c)) {\n //if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.\n x = xOrigin * (d / determinant) + yOrigin * (-c / determinant) + (c * ty - d * tx) / determinant;\n y = xOrigin * (-b / determinant) + yOrigin * (a / determinant) - (a * ty - b * tx) / determinant;\n xOrigin = x;\n yOrigin = y;\n }\n\n if (smooth || smooth !== false && cache.smooth) {\n tx = xOrigin - xOriginOld;\n ty = yOrigin - yOriginOld;\n cache.xOffset = xOffsetOld + (tx * a + ty * c) - tx;\n cache.yOffset = yOffsetOld + (tx * b + ty * d) - ty;\n } else {\n cache.xOffset = cache.yOffset = 0;\n }\n\n cache.xOrigin = xOrigin;\n cache.yOrigin = yOrigin;\n cache.smooth = !!smooth;\n cache.origin = origin;\n cache.originIsAbsolute = !!originIsAbsolute;\n target.style[_transformOriginProp] = \"0px 0px\"; //otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).\n\n if (pluginToAddPropTweensTo) {\n _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOrigin\", xOriginOld, xOrigin);\n\n _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOrigin\", yOriginOld, yOrigin);\n\n _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOffset\", xOffsetOld, cache.xOffset);\n\n _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOffset\", yOffsetOld, cache.yOffset);\n }\n\n target.setAttribute(\"data-svg-origin\", xOrigin + \" \" + yOrigin);\n},\n _parseTransform = function _parseTransform(target, uncache) {\n var cache = target._gsap || new GSCache(target);\n\n if (\"x\" in cache && !uncache && !cache.uncache) {\n return cache;\n }\n\n var style = target.style,\n invertedScaleX = cache.scaleX < 0,\n px = \"px\",\n deg = \"deg\",\n cs = getComputedStyle(target),\n origin = _getComputedProperty(target, _transformOriginProp) || \"0\",\n x,\n y,\n z,\n scaleX,\n scaleY,\n rotation,\n rotationX,\n rotationY,\n skewX,\n skewY,\n perspective,\n xOrigin,\n yOrigin,\n matrix,\n angle,\n cos,\n sin,\n a,\n b,\n c,\n d,\n a12,\n a22,\n t1,\n t2,\n t3,\n a13,\n a23,\n a33,\n a42,\n a43,\n a32;\n x = y = z = rotation = rotationX = rotationY = skewX = skewY = perspective = 0;\n scaleX = scaleY = 1;\n cache.svg = !!(target.getCTM && _isSVG(target));\n\n if (cs.translate) {\n // accommodate independent transforms by combining them into normal ones.\n if (cs.translate !== \"none\" || cs.scale !== \"none\" || cs.rotate !== \"none\") {\n style[_transformProp] = (cs.translate !== \"none\" ? \"translate3d(\" + (cs.translate + \" 0 0\").split(\" \").slice(0, 3).join(\", \") + \") \" : \"\") + (cs.rotate !== \"none\" ? \"rotate(\" + cs.rotate + \") \" : \"\") + (cs.scale !== \"none\" ? \"scale(\" + cs.scale.split(\" \").join(\",\") + \") \" : \"\") + (cs[_transformProp] !== \"none\" ? cs[_transformProp] : \"\");\n }\n\n style.scale = style.rotate = style.translate = \"none\";\n }\n\n matrix = _getMatrix(target, cache.svg);\n\n if (cache.svg) {\n if (cache.uncache) {\n // if cache.uncache is true (and maybe if origin is 0,0), we need to set element.style.transformOrigin = (cache.xOrigin - bbox.x) + \"px \" + (cache.yOrigin - bbox.y) + \"px\". Previously we let the data-svg-origin stay instead, but when introducing revert(), it complicated things.\n t2 = target.getBBox();\n origin = cache.xOrigin - t2.x + \"px \" + (cache.yOrigin - t2.y) + \"px\";\n t1 = \"\";\n } else {\n t1 = !uncache && target.getAttribute(\"data-svg-origin\"); // Remember, to work around browser inconsistencies we always force SVG elements' transformOrigin to 0,0 and offset the translation accordingly.\n }\n\n _applySVGOrigin(target, t1 || origin, !!t1 || cache.originIsAbsolute, cache.smooth !== false, matrix);\n }\n\n xOrigin = cache.xOrigin || 0;\n yOrigin = cache.yOrigin || 0;\n\n if (matrix !== _identity2DMatrix) {\n a = matrix[0]; //a11\n\n b = matrix[1]; //a21\n\n c = matrix[2]; //a31\n\n d = matrix[3]; //a41\n\n x = a12 = matrix[4];\n y = a22 = matrix[5]; //2D matrix\n\n if (matrix.length === 6) {\n scaleX = Math.sqrt(a * a + b * b);\n scaleY = Math.sqrt(d * d + c * c);\n rotation = a || b ? _atan2(b, a) * _RAD2DEG : 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).\n\n skewX = c || d ? _atan2(c, d) * _RAD2DEG + rotation : 0;\n skewX && (scaleY *= Math.abs(Math.cos(skewX * _DEG2RAD)));\n\n if (cache.svg) {\n x -= xOrigin - (xOrigin * a + yOrigin * c);\n y -= yOrigin - (xOrigin * b + yOrigin * d);\n } //3D matrix\n\n } else {\n a32 = matrix[6];\n a42 = matrix[7];\n a13 = matrix[8];\n a23 = matrix[9];\n a33 = matrix[10];\n a43 = matrix[11];\n x = matrix[12];\n y = matrix[13];\n z = matrix[14];\n angle = _atan2(a32, a33);\n rotationX = angle * _RAD2DEG; //rotationX\n\n if (angle) {\n cos = Math.cos(-angle);\n sin = Math.sin(-angle);\n t1 = a12 * cos + a13 * sin;\n t2 = a22 * cos + a23 * sin;\n t3 = a32 * cos + a33 * sin;\n a13 = a12 * -sin + a13 * cos;\n a23 = a22 * -sin + a23 * cos;\n a33 = a32 * -sin + a33 * cos;\n a43 = a42 * -sin + a43 * cos;\n a12 = t1;\n a22 = t2;\n a32 = t3;\n } //rotationY\n\n\n angle = _atan2(-c, a33);\n rotationY = angle * _RAD2DEG;\n\n if (angle) {\n cos = Math.cos(-angle);\n sin = Math.sin(-angle);\n t1 = a * cos - a13 * sin;\n t2 = b * cos - a23 * sin;\n t3 = c * cos - a33 * sin;\n a43 = d * sin + a43 * cos;\n a = t1;\n b = t2;\n c = t3;\n } //rotationZ\n\n\n angle = _atan2(b, a);\n rotation = angle * _RAD2DEG;\n\n if (angle) {\n cos = Math.cos(angle);\n sin = Math.sin(angle);\n t1 = a * cos + b * sin;\n t2 = a12 * cos + a22 * sin;\n b = b * cos - a * sin;\n a22 = a22 * cos - a12 * sin;\n a = t1;\n a12 = t2;\n }\n\n if (rotationX && Math.abs(rotationX) + Math.abs(rotation) > 359.9) {\n //when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.\n rotationX = rotation = 0;\n rotationY = 180 - rotationY;\n }\n\n scaleX = _round(Math.sqrt(a * a + b * b + c * c));\n scaleY = _round(Math.sqrt(a22 * a22 + a32 * a32));\n angle = _atan2(a12, a22);\n skewX = Math.abs(angle) > 0.0002 ? angle * _RAD2DEG : 0;\n perspective = a43 ? 1 / (a43 < 0 ? -a43 : a43) : 0;\n }\n\n if (cache.svg) {\n //sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).\n t1 = target.getAttribute(\"transform\");\n cache.forceCSS = target.setAttribute(\"transform\", \"\") || !_isNullTransform(_getComputedProperty(target, _transformProp));\n t1 && target.setAttribute(\"transform\", t1);\n }\n }\n\n if (Math.abs(skewX) > 90 && Math.abs(skewX) < 270) {\n if (invertedScaleX) {\n scaleX *= -1;\n skewX += rotation <= 0 ? 180 : -180;\n rotation += rotation <= 0 ? 180 : -180;\n } else {\n scaleY *= -1;\n skewX += skewX <= 0 ? 180 : -180;\n }\n }\n\n uncache = uncache || cache.uncache;\n cache.x = x - ((cache.xPercent = x && (!uncache && cache.xPercent || (Math.round(target.offsetWidth / 2) === Math.round(-x) ? -50 : 0))) ? target.offsetWidth * cache.xPercent / 100 : 0) + px;\n cache.y = y - ((cache.yPercent = y && (!uncache && cache.yPercent || (Math.round(target.offsetHeight / 2) === Math.round(-y) ? -50 : 0))) ? target.offsetHeight * cache.yPercent / 100 : 0) + px;\n cache.z = z + px;\n cache.scaleX = _round(scaleX);\n cache.scaleY = _round(scaleY);\n cache.rotation = _round(rotation) + deg;\n cache.rotationX = _round(rotationX) + deg;\n cache.rotationY = _round(rotationY) + deg;\n cache.skewX = skewX + deg;\n cache.skewY = skewY + deg;\n cache.transformPerspective = perspective + px;\n\n if (cache.zOrigin = parseFloat(origin.split(\" \")[2]) || 0) {\n style[_transformOriginProp] = _firstTwoOnly(origin);\n }\n\n cache.xOffset = cache.yOffset = 0;\n cache.force3D = _config.force3D;\n cache.renderTransform = cache.svg ? _renderSVGTransforms : _supports3D ? _renderCSSTransforms : _renderNon3DTransforms;\n cache.uncache = 0;\n return cache;\n},\n _firstTwoOnly = function _firstTwoOnly(value) {\n return (value = value.split(\" \"))[0] + \" \" + value[1];\n},\n //for handling transformOrigin values, stripping out the 3rd dimension\n_addPxTranslate = function _addPxTranslate(target, start, value) {\n var unit = getUnit(start);\n return _round(parseFloat(start) + parseFloat(_convertToUnit(target, \"x\", value + \"px\", unit))) + unit;\n},\n _renderNon3DTransforms = function _renderNon3DTransforms(ratio, cache) {\n cache.z = \"0px\";\n cache.rotationY = cache.rotationX = \"0deg\";\n cache.force3D = 0;\n\n _renderCSSTransforms(ratio, cache);\n},\n _zeroDeg = \"0deg\",\n _zeroPx = \"0px\",\n _endParenthesis = \") \",\n _renderCSSTransforms = function _renderCSSTransforms(ratio, cache) {\n var _ref = cache || this,\n xPercent = _ref.xPercent,\n yPercent = _ref.yPercent,\n x = _ref.x,\n y = _ref.y,\n z = _ref.z,\n rotation = _ref.rotation,\n rotationY = _ref.rotationY,\n rotationX = _ref.rotationX,\n skewX = _ref.skewX,\n skewY = _ref.skewY,\n scaleX = _ref.scaleX,\n scaleY = _ref.scaleY,\n transformPerspective = _ref.transformPerspective,\n force3D = _ref.force3D,\n target = _ref.target,\n zOrigin = _ref.zOrigin,\n transforms = \"\",\n use3D = force3D === \"auto\" && ratio && ratio !== 1 || force3D === true; // Safari has a bug that causes it not to render 3D transform-origin values properly, so we force the z origin to 0, record it in the cache, and then do the math here to offset the translate values accordingly (basically do the 3D transform-origin part manually)\n\n\n if (zOrigin && (rotationX !== _zeroDeg || rotationY !== _zeroDeg)) {\n var angle = parseFloat(rotationY) * _DEG2RAD,\n a13 = Math.sin(angle),\n a33 = Math.cos(angle),\n cos;\n\n angle = parseFloat(rotationX) * _DEG2RAD;\n cos = Math.cos(angle);\n x = _addPxTranslate(target, x, a13 * cos * -zOrigin);\n y = _addPxTranslate(target, y, -Math.sin(angle) * -zOrigin);\n z = _addPxTranslate(target, z, a33 * cos * -zOrigin + zOrigin);\n }\n\n if (transformPerspective !== _zeroPx) {\n transforms += \"perspective(\" + transformPerspective + _endParenthesis;\n }\n\n if (xPercent || yPercent) {\n transforms += \"translate(\" + xPercent + \"%, \" + yPercent + \"%) \";\n }\n\n if (use3D || x !== _zeroPx || y !== _zeroPx || z !== _zeroPx) {\n transforms += z !== _zeroPx || use3D ? \"translate3d(\" + x + \", \" + y + \", \" + z + \") \" : \"translate(\" + x + \", \" + y + _endParenthesis;\n }\n\n if (rotation !== _zeroDeg) {\n transforms += \"rotate(\" + rotation + _endParenthesis;\n }\n\n if (rotationY !== _zeroDeg) {\n transforms += \"rotateY(\" + rotationY + _endParenthesis;\n }\n\n if (rotationX !== _zeroDeg) {\n transforms += \"rotateX(\" + rotationX + _endParenthesis;\n }\n\n if (skewX !== _zeroDeg || skewY !== _zeroDeg) {\n transforms += \"skew(\" + skewX + \", \" + skewY + _endParenthesis;\n }\n\n if (scaleX !== 1 || scaleY !== 1) {\n transforms += \"scale(\" + scaleX + \", \" + scaleY + _endParenthesis;\n }\n\n target.style[_transformProp] = transforms || \"translate(0, 0)\";\n},\n _renderSVGTransforms = function _renderSVGTransforms(ratio, cache) {\n var _ref2 = cache || this,\n xPercent = _ref2.xPercent,\n yPercent = _ref2.yPercent,\n x = _ref2.x,\n y = _ref2.y,\n rotation = _ref2.rotation,\n skewX = _ref2.skewX,\n skewY = _ref2.skewY,\n scaleX = _ref2.scaleX,\n scaleY = _ref2.scaleY,\n target = _ref2.target,\n xOrigin = _ref2.xOrigin,\n yOrigin = _ref2.yOrigin,\n xOffset = _ref2.xOffset,\n yOffset = _ref2.yOffset,\n forceCSS = _ref2.forceCSS,\n tx = parseFloat(x),\n ty = parseFloat(y),\n a11,\n a21,\n a12,\n a22,\n temp;\n\n rotation = parseFloat(rotation);\n skewX = parseFloat(skewX);\n skewY = parseFloat(skewY);\n\n if (skewY) {\n //for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.\n skewY = parseFloat(skewY);\n skewX += skewY;\n rotation += skewY;\n }\n\n if (rotation || skewX) {\n rotation *= _DEG2RAD;\n skewX *= _DEG2RAD;\n a11 = Math.cos(rotation) * scaleX;\n a21 = Math.sin(rotation) * scaleX;\n a12 = Math.sin(rotation - skewX) * -scaleY;\n a22 = Math.cos(rotation - skewX) * scaleY;\n\n if (skewX) {\n skewY *= _DEG2RAD;\n temp = Math.tan(skewX - skewY);\n temp = Math.sqrt(1 + temp * temp);\n a12 *= temp;\n a22 *= temp;\n\n if (skewY) {\n temp = Math.tan(skewY);\n temp = Math.sqrt(1 + temp * temp);\n a11 *= temp;\n a21 *= temp;\n }\n }\n\n a11 = _round(a11);\n a21 = _round(a21);\n a12 = _round(a12);\n a22 = _round(a22);\n } else {\n a11 = scaleX;\n a22 = scaleY;\n a21 = a12 = 0;\n }\n\n if (tx && !~(x + \"\").indexOf(\"px\") || ty && !~(y + \"\").indexOf(\"px\")) {\n tx = _convertToUnit(target, \"x\", x, \"px\");\n ty = _convertToUnit(target, \"y\", y, \"px\");\n }\n\n if (xOrigin || yOrigin || xOffset || yOffset) {\n tx = _round(tx + xOrigin - (xOrigin * a11 + yOrigin * a12) + xOffset);\n ty = _round(ty + yOrigin - (xOrigin * a21 + yOrigin * a22) + yOffset);\n }\n\n if (xPercent || yPercent) {\n //The SVG spec doesn't support percentage-based translation in the \"transform\" attribute, so we merge it into the translation to simulate it.\n temp = target.getBBox();\n tx = _round(tx + xPercent / 100 * temp.width);\n ty = _round(ty + yPercent / 100 * temp.height);\n }\n\n temp = \"matrix(\" + a11 + \",\" + a21 + \",\" + a12 + \",\" + a22 + \",\" + tx + \",\" + ty + \")\";\n target.setAttribute(\"transform\", temp);\n forceCSS && (target.style[_transformProp] = temp); //some browsers prioritize CSS transforms over the transform attribute. When we sense that the user has CSS transforms applied, we must overwrite them this way (otherwise some browser simply won't render the transform attribute changes!)\n},\n _addRotationalPropTween = function _addRotationalPropTween(plugin, target, property, startNum, endValue) {\n var cap = 360,\n isString = _isString(endValue),\n endNum = parseFloat(endValue) * (isString && ~endValue.indexOf(\"rad\") ? _RAD2DEG : 1),\n change = endNum - startNum,\n finalValue = startNum + change + \"deg\",\n direction,\n pt;\n\n if (isString) {\n direction = endValue.split(\"_\")[1];\n\n if (direction === \"short\") {\n change %= cap;\n\n if (change !== change % (cap / 2)) {\n change += change < 0 ? cap : -cap;\n }\n }\n\n if (direction === \"cw\" && change < 0) {\n change = (change + cap * _bigNum) % cap - ~~(change / cap) * cap;\n } else if (direction === \"ccw\" && change > 0) {\n change = (change - cap * _bigNum) % cap - ~~(change / cap) * cap;\n }\n }\n\n plugin._pt = pt = new PropTween(plugin._pt, target, property, startNum, change, _renderPropWithEnd);\n pt.e = finalValue;\n pt.u = \"deg\";\n\n plugin._props.push(property);\n\n return pt;\n},\n _assign = function _assign(target, source) {\n // Internet Explorer doesn't have Object.assign(), so we recreate it here.\n for (var p in source) {\n target[p] = source[p];\n }\n\n return target;\n},\n _addRawTransformPTs = function _addRawTransformPTs(plugin, transforms, target) {\n //for handling cases where someone passes in a whole transform string, like transform: \"scale(2, 3) rotate(20deg) translateY(30em)\"\n var startCache = _assign({}, target._gsap),\n exclude = \"perspective,force3D,transformOrigin,svgOrigin\",\n style = target.style,\n endCache,\n p,\n startValue,\n endValue,\n startNum,\n endNum,\n startUnit,\n endUnit;\n\n if (startCache.svg) {\n startValue = target.getAttribute(\"transform\");\n target.setAttribute(\"transform\", \"\");\n style[_transformProp] = transforms;\n endCache = _parseTransform(target, 1);\n\n _removeProperty(target, _transformProp);\n\n target.setAttribute(\"transform\", startValue);\n } else {\n startValue = getComputedStyle(target)[_transformProp];\n style[_transformProp] = transforms;\n endCache = _parseTransform(target, 1);\n style[_transformProp] = startValue;\n }\n\n for (p in _transformProps) {\n startValue = startCache[p];\n endValue = endCache[p];\n\n if (startValue !== endValue && exclude.indexOf(p) < 0) {\n //tweening to no perspective gives very unintuitive results - just keep the same perspective in that case.\n startUnit = getUnit(startValue);\n endUnit = getUnit(endValue);\n startNum = startUnit !== endUnit ? _convertToUnit(target, p, startValue, endUnit) : parseFloat(startValue);\n endNum = parseFloat(endValue);\n plugin._pt = new PropTween(plugin._pt, endCache, p, startNum, endNum - startNum, _renderCSSProp);\n plugin._pt.u = endUnit || 0;\n\n plugin._props.push(p);\n }\n }\n\n _assign(endCache, startCache);\n}; // handle splitting apart padding, margin, borderWidth, and borderRadius into their 4 components. Firefox, for example, won't report borderRadius correctly - it will only do borderTopLeftRadius and the other corners. We also want to handle paddingTop, marginLeft, borderRightWidth, etc.\n\n\n_forEachName(\"padding,margin,Width,Radius\", function (name, index) {\n var t = \"Top\",\n r = \"Right\",\n b = \"Bottom\",\n l = \"Left\",\n props = (index < 3 ? [t, r, b, l] : [t + l, t + r, b + r, b + l]).map(function (side) {\n return index < 2 ? name + side : \"border\" + side + name;\n });\n\n _specialProps[index > 1 ? \"border\" + name : name] = function (plugin, target, property, endValue, tween) {\n var a, vars;\n\n if (arguments.length < 4) {\n // getter, passed target, property, and unit (from _get())\n a = props.map(function (prop) {\n return _get(plugin, prop, property);\n });\n vars = a.join(\" \");\n return vars.split(a[0]).length === 5 ? a[0] : vars;\n }\n\n a = (endValue + \"\").split(\" \");\n vars = {};\n props.forEach(function (prop, i) {\n return vars[prop] = a[i] = a[i] || a[(i - 1) / 2 | 0];\n });\n plugin.init(target, vars, tween);\n };\n});\n\nexport var CSSPlugin = {\n name: \"css\",\n register: _initCore,\n targetTest: function targetTest(target) {\n return target.style && target.nodeType;\n },\n init: function init(target, vars, tween, index, targets) {\n var props = this._props,\n style = target.style,\n startAt = tween.vars.startAt,\n startValue,\n endValue,\n endNum,\n startNum,\n type,\n specialProp,\n p,\n startUnit,\n endUnit,\n relative,\n isTransformRelated,\n transformPropTween,\n cache,\n smooth,\n hasPriority,\n inlineProps;\n _pluginInitted || _initCore(); // we may call init() multiple times on the same plugin instance, like when adding special properties, so make sure we don't overwrite the revert data or inlineProps\n\n this.styles = this.styles || _getStyleSaver(target);\n inlineProps = this.styles.props;\n this.tween = tween;\n\n for (p in vars) {\n if (p === \"autoRound\") {\n continue;\n }\n\n endValue = vars[p];\n\n if (_plugins[p] && _checkPlugin(p, vars, tween, index, target, targets)) {\n // plugins\n continue;\n }\n\n type = typeof endValue;\n specialProp = _specialProps[p];\n\n if (type === \"function\") {\n endValue = endValue.call(tween, index, target, targets);\n type = typeof endValue;\n }\n\n if (type === \"string\" && ~endValue.indexOf(\"random(\")) {\n endValue = _replaceRandom(endValue);\n }\n\n if (specialProp) {\n specialProp(this, target, p, endValue, tween) && (hasPriority = 1);\n } else if (p.substr(0, 2) === \"--\") {\n //CSS variable\n startValue = (getComputedStyle(target).getPropertyValue(p) + \"\").trim();\n endValue += \"\";\n _colorExp.lastIndex = 0;\n\n if (!_colorExp.test(startValue)) {\n // colors don't have units\n startUnit = getUnit(startValue);\n endUnit = getUnit(endValue);\n }\n\n endUnit ? startUnit !== endUnit && (startValue = _convertToUnit(target, p, startValue, endUnit) + endUnit) : startUnit && (endValue += startUnit);\n this.add(style, \"setProperty\", startValue, endValue, index, targets, 0, 0, p);\n props.push(p);\n inlineProps.push(p, 0, style[p]);\n } else if (type !== \"undefined\") {\n if (startAt && p in startAt) {\n // in case someone hard-codes a complex value as the start, like top: \"calc(2vh / 2)\". Without this, it'd use the computed value (always in px)\n startValue = typeof startAt[p] === \"function\" ? startAt[p].call(tween, index, target, targets) : startAt[p];\n _isString(startValue) && ~startValue.indexOf(\"random(\") && (startValue = _replaceRandom(startValue));\n getUnit(startValue + \"\") || (startValue += _config.units[p] || getUnit(_get(target, p)) || \"\"); // for cases when someone passes in a unitless value like {x: 100}; if we try setting translate(100, 0px) it won't work.\n\n (startValue + \"\").charAt(1) === \"=\" && (startValue = _get(target, p)); // can't work with relative values\n } else {\n startValue = _get(target, p);\n }\n\n startNum = parseFloat(startValue);\n relative = type === \"string\" && endValue.charAt(1) === \"=\" && endValue.substr(0, 2);\n relative && (endValue = endValue.substr(2));\n endNum = parseFloat(endValue);\n\n if (p in _propertyAliases) {\n if (p === \"autoAlpha\") {\n //special case where we control the visibility along with opacity. We still allow the opacity value to pass through and get tweened.\n if (startNum === 1 && _get(target, \"visibility\") === \"hidden\" && endNum) {\n //if visibility is initially set to \"hidden\", we should interpret that as intent to make opacity 0 (a convenience)\n startNum = 0;\n }\n\n inlineProps.push(\"visibility\", 0, style.visibility);\n\n _addNonTweeningPT(this, style, \"visibility\", startNum ? \"inherit\" : \"hidden\", endNum ? \"inherit\" : \"hidden\", !endNum);\n }\n\n if (p !== \"scale\" && p !== \"transform\") {\n p = _propertyAliases[p];\n ~p.indexOf(\",\") && (p = p.split(\",\")[0]);\n }\n }\n\n isTransformRelated = p in _transformProps; //--- TRANSFORM-RELATED ---\n\n if (isTransformRelated) {\n this.styles.save(p);\n\n if (!transformPropTween) {\n cache = target._gsap;\n cache.renderTransform && !vars.parseTransform || _parseTransform(target, vars.parseTransform); // if, for example, gsap.set(... {transform:\"translateX(50vw)\"}), the _get() call doesn't parse the transform, thus cache.renderTransform won't be set yet so force the parsing of the transform here.\n\n smooth = vars.smoothOrigin !== false && cache.smooth;\n transformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache, 0, -1); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)\n\n transformPropTween.dep = 1; //flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.\n }\n\n if (p === \"scale\") {\n this._pt = new PropTween(this._pt, cache, \"scaleY\", cache.scaleY, (relative ? _parseRelative(cache.scaleY, relative + endNum) : endNum) - cache.scaleY || 0, _renderCSSProp);\n this._pt.u = 0;\n props.push(\"scaleY\", p);\n p += \"X\";\n } else if (p === \"transformOrigin\") {\n inlineProps.push(_transformOriginProp, 0, style[_transformOriginProp]);\n endValue = _convertKeywordsToPercentages(endValue); //in case something like \"left top\" or \"bottom right\" is passed in. Convert to percentages.\n\n if (cache.svg) {\n _applySVGOrigin(target, endValue, 0, smooth, 0, this);\n } else {\n endUnit = parseFloat(endValue.split(\" \")[2]) || 0; //handle the zOrigin separately!\n\n endUnit !== cache.zOrigin && _addNonTweeningPT(this, cache, \"zOrigin\", cache.zOrigin, endUnit);\n\n _addNonTweeningPT(this, style, p, _firstTwoOnly(startValue), _firstTwoOnly(endValue));\n }\n\n continue;\n } else if (p === \"svgOrigin\") {\n _applySVGOrigin(target, endValue, 1, smooth, 0, this);\n\n continue;\n } else if (p in _rotationalProperties) {\n _addRotationalPropTween(this, cache, p, startNum, relative ? _parseRelative(startNum, relative + endValue) : endValue);\n\n continue;\n } else if (p === \"smoothOrigin\") {\n _addNonTweeningPT(this, cache, \"smooth\", cache.smooth, endValue);\n\n continue;\n } else if (p === \"force3D\") {\n cache[p] = endValue;\n continue;\n } else if (p === \"transform\") {\n _addRawTransformPTs(this, endValue, target);\n\n continue;\n }\n } else if (!(p in style)) {\n p = _checkPropPrefix(p) || p;\n }\n\n if (isTransformRelated || (endNum || endNum === 0) && (startNum || startNum === 0) && !_complexExp.test(endValue) && p in style) {\n startUnit = (startValue + \"\").substr((startNum + \"\").length);\n endNum || (endNum = 0); // protect against NaN\n\n endUnit = getUnit(endValue) || (p in _config.units ? _config.units[p] : startUnit);\n startUnit !== endUnit && (startNum = _convertToUnit(target, p, startValue, endUnit));\n this._pt = new PropTween(this._pt, isTransformRelated ? cache : style, p, startNum, (relative ? _parseRelative(startNum, relative + endNum) : endNum) - startNum, !isTransformRelated && (endUnit === \"px\" || p === \"zIndex\") && vars.autoRound !== false ? _renderRoundedCSSProp : _renderCSSProp);\n this._pt.u = endUnit || 0;\n\n if (startUnit !== endUnit && endUnit !== \"%\") {\n //when the tween goes all the way back to the beginning, we need to revert it to the OLD/ORIGINAL value (with those units). We record that as a \"b\" (beginning) property and point to a render method that handles that. (performance optimization)\n this._pt.b = startValue;\n this._pt.r = _renderCSSPropWithBeginning;\n }\n } else if (!(p in style)) {\n if (p in target) {\n //maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.\n this.add(target, p, startValue || target[p], relative ? relative + endValue : endValue, index, targets);\n } else if (p !== \"parseTransform\") {\n _missingPlugin(p, endValue);\n\n continue;\n }\n } else {\n _tweenComplexCSSString.call(this, target, p, startValue, relative ? relative + endValue : endValue);\n }\n\n isTransformRelated || (p in style ? inlineProps.push(p, 0, style[p]) : inlineProps.push(p, 1, startValue || target[p]));\n props.push(p);\n }\n }\n\n hasPriority && _sortPropTweensByPriority(this);\n },\n render: function render(ratio, data) {\n if (data.tween._time || !_reverting()) {\n var pt = data._pt;\n\n while (pt) {\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n } else {\n data.styles.revert();\n }\n },\n get: _get,\n aliases: _propertyAliases,\n getSetter: function getSetter(target, property, plugin) {\n //returns a setter function that accepts target, property, value and applies it accordingly. Remember, properties like \"x\" aren't as simple as target.style.property = value because they've got to be applied to a proxy object and then merged into a transform string in a renderer.\n var p = _propertyAliases[property];\n p && p.indexOf(\",\") < 0 && (property = p);\n return property in _transformProps && property !== _transformOriginProp && (target._gsap.x || _get(target, \"x\")) ? plugin && _recentSetterPlugin === plugin ? property === \"scale\" ? _setterScale : _setterTransform : (_recentSetterPlugin = plugin || {}) && (property === \"scale\" ? _setterScaleWithRender : _setterTransformWithRender) : target.style && !_isUndefined(target.style[property]) ? _setterCSSStyle : ~property.indexOf(\"-\") ? _setterCSSProp : _getSetter(target, property);\n },\n core: {\n _removeProperty: _removeProperty,\n _getMatrix: _getMatrix\n }\n};\ngsap.utils.checkPrefix = _checkPropPrefix;\ngsap.core.getStyleSaver = _getStyleSaver;\n\n(function (positionAndScale, rotation, others, aliases) {\n var all = _forEachName(positionAndScale + \",\" + rotation + \",\" + others, function (name) {\n _transformProps[name] = 1;\n });\n\n _forEachName(rotation, function (name) {\n _config.units[name] = \"deg\";\n _rotationalProperties[name] = 1;\n });\n\n _propertyAliases[all[13]] = positionAndScale + \",\" + rotation;\n\n _forEachName(aliases, function (name) {\n var split = name.split(\":\");\n _propertyAliases[split[1]] = all[split[0]];\n });\n})(\"x,y,z,scale,scaleX,scaleY,xPercent,yPercent\", \"rotation,rotationX,rotationY,skewX,skewY\", \"transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective\", \"0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY\");\n\n_forEachName(\"x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective\", function (name) {\n _config.units[name] = \"px\";\n});\n\ngsap.registerPlugin(CSSPlugin);\nexport { CSSPlugin as default, _getBBox, _createElement, _checkPropPrefix as checkPrefix };","/*!\n * ScrollTrigger 3.11.5\n * https://greensock.com\n *\n * @license Copyright 2008-2023, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nimport { Observer, _getTarget, _vertical, _horizontal, _scrollers, _proxies, _getScrollFunc, _getProxyProp, _getVelocityProp } from \"./Observer.js\";\n\nvar gsap,\n _coreInitted,\n _win,\n _doc,\n _docEl,\n _body,\n _root,\n _resizeDelay,\n _toArray,\n _clamp,\n _time2,\n _syncInterval,\n _refreshing,\n _pointerIsDown,\n _transformProp,\n _i,\n _prevWidth,\n _prevHeight,\n _autoRefresh,\n _sort,\n _suppressOverwrites,\n _ignoreResize,\n _normalizer,\n _ignoreMobileResize,\n _baseScreenHeight,\n _baseScreenWidth,\n _fixIOSBug,\n _context,\n _scrollRestoration,\n _limitCallbacks,\n // if true, we'll only trigger callbacks if the active state toggles, so if you scroll immediately past both the start and end positions of a ScrollTrigger (thus inactive to inactive), neither its onEnter nor onLeave will be called. This is useful during startup.\n_startup = 1,\n _getTime = Date.now,\n _time1 = _getTime(),\n _lastScrollTime = 0,\n _enabled = 0,\n _rafBugFix = function _rafBugFix() {\n return _enabled && requestAnimationFrame(_rafBugFix);\n},\n // in some browsers (like Firefox), screen repaints weren't consistent unless we had SOMETHING queued up in requestAnimationFrame()! So this just creates a super simple loop to keep it alive and smooth out repaints.\n_pointerDownHandler = function _pointerDownHandler() {\n return _pointerIsDown = 1;\n},\n _pointerUpHandler = function _pointerUpHandler() {\n return _pointerIsDown = 0;\n},\n _passThrough = function _passThrough(v) {\n return v;\n},\n _round = function _round(value) {\n return Math.round(value * 100000) / 100000 || 0;\n},\n _windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n},\n _getGSAP = function _getGSAP() {\n return gsap || _windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap;\n},\n _isViewport = function _isViewport(e) {\n return !!~_root.indexOf(e);\n},\n _getBoundsFunc = function _getBoundsFunc(element) {\n return _getProxyProp(element, \"getBoundingClientRect\") || (_isViewport(element) ? function () {\n _winOffsets.width = _win.innerWidth;\n _winOffsets.height = _win.innerHeight;\n return _winOffsets;\n } : function () {\n return _getBounds(element);\n });\n},\n _getSizeFunc = function _getSizeFunc(scroller, isViewport, _ref) {\n var d = _ref.d,\n d2 = _ref.d2,\n a = _ref.a;\n return (a = _getProxyProp(scroller, \"getBoundingClientRect\")) ? function () {\n return a()[d];\n } : function () {\n return (isViewport ? _win[\"inner\" + d2] : scroller[\"client\" + d2]) || 0;\n };\n},\n _getOffsetsFunc = function _getOffsetsFunc(element, isViewport) {\n return !isViewport || ~_proxies.indexOf(element) ? _getBoundsFunc(element) : function () {\n return _winOffsets;\n };\n},\n _maxScroll = function _maxScroll(element, _ref2) {\n var s = _ref2.s,\n d2 = _ref2.d2,\n d = _ref2.d,\n a = _ref2.a;\n return Math.max(0, (s = \"scroll\" + d2) && (a = _getProxyProp(element, s)) ? a() - _getBoundsFunc(element)()[d] : _isViewport(element) ? (_docEl[s] || _body[s]) - (_win[\"inner\" + d2] || _docEl[\"client\" + d2] || _body[\"client\" + d2]) : element[s] - element[\"offset\" + d2]);\n},\n _iterateAutoRefresh = function _iterateAutoRefresh(func, events) {\n for (var i = 0; i < _autoRefresh.length; i += 3) {\n (!events || ~events.indexOf(_autoRefresh[i + 1])) && func(_autoRefresh[i], _autoRefresh[i + 1], _autoRefresh[i + 2]);\n }\n},\n _isString = function _isString(value) {\n return typeof value === \"string\";\n},\n _isFunction = function _isFunction(value) {\n return typeof value === \"function\";\n},\n _isNumber = function _isNumber(value) {\n return typeof value === \"number\";\n},\n _isObject = function _isObject(value) {\n return typeof value === \"object\";\n},\n _callIfFunc = function _callIfFunc(value) {\n return _isFunction(value) && value();\n},\n _combineFunc = function _combineFunc(f1, f2) {\n return function () {\n var result1 = _callIfFunc(f1),\n result2 = _callIfFunc(f2);\n\n return function () {\n _callIfFunc(result1);\n\n _callIfFunc(result2);\n };\n };\n},\n _endAnimation = function _endAnimation(animation, reversed, pause) {\n return animation && animation.progress(reversed ? 0 : 1) && pause && animation.pause();\n},\n _callback = function _callback(self, func) {\n if (self.enabled) {\n var result = func(self);\n result && result.totalTime && (self.callbackAnimation = result);\n }\n},\n _abs = Math.abs,\n _scrollLeft = \"scrollLeft\",\n _scrollTop = \"scrollTop\",\n _left = \"left\",\n _top = \"top\",\n _right = \"right\",\n _bottom = \"bottom\",\n _width = \"width\",\n _height = \"height\",\n _Right = \"Right\",\n _Left = \"Left\",\n _Top = \"Top\",\n _Bottom = \"Bottom\",\n _padding = \"padding\",\n _margin = \"margin\",\n _Width = \"Width\",\n _Height = \"Height\",\n _px = \"px\",\n _getComputedStyle = function _getComputedStyle(element) {\n return _win.getComputedStyle(element);\n},\n _makePositionable = function _makePositionable(element) {\n // if the element already has position: absolute or fixed, leave that, otherwise make it position: relative\n var position = _getComputedStyle(element).position;\n\n element.style.position = position === \"absolute\" || position === \"fixed\" ? position : \"relative\";\n},\n _setDefaults = function _setDefaults(obj, defaults) {\n for (var p in defaults) {\n p in obj || (obj[p] = defaults[p]);\n }\n\n return obj;\n},\n _getBounds = function _getBounds(element, withoutTransforms) {\n var tween = withoutTransforms && _getComputedStyle(element)[_transformProp] !== \"matrix(1, 0, 0, 1, 0, 0)\" && gsap.to(element, {\n x: 0,\n y: 0,\n xPercent: 0,\n yPercent: 0,\n rotation: 0,\n rotationX: 0,\n rotationY: 0,\n scale: 1,\n skewX: 0,\n skewY: 0\n }).progress(1),\n bounds = element.getBoundingClientRect();\n tween && tween.progress(0).kill();\n return bounds;\n},\n _getSize = function _getSize(element, _ref3) {\n var d2 = _ref3.d2;\n return element[\"offset\" + d2] || element[\"client\" + d2] || 0;\n},\n _getLabelRatioArray = function _getLabelRatioArray(timeline) {\n var a = [],\n labels = timeline.labels,\n duration = timeline.duration(),\n p;\n\n for (p in labels) {\n a.push(labels[p] / duration);\n }\n\n return a;\n},\n _getClosestLabel = function _getClosestLabel(animation) {\n return function (value) {\n return gsap.utils.snap(_getLabelRatioArray(animation), value);\n };\n},\n _snapDirectional = function _snapDirectional(snapIncrementOrArray) {\n var snap = gsap.utils.snap(snapIncrementOrArray),\n a = Array.isArray(snapIncrementOrArray) && snapIncrementOrArray.slice(0).sort(function (a, b) {\n return a - b;\n });\n return a ? function (value, direction, threshold) {\n if (threshold === void 0) {\n threshold = 1e-3;\n }\n\n var i;\n\n if (!direction) {\n return snap(value);\n }\n\n if (direction > 0) {\n value -= threshold; // to avoid rounding errors. If we're too strict, it might snap forward, then immediately again, and again.\n\n for (i = 0; i < a.length; i++) {\n if (a[i] >= value) {\n return a[i];\n }\n }\n\n return a[i - 1];\n } else {\n i = a.length;\n value += threshold;\n\n while (i--) {\n if (a[i] <= value) {\n return a[i];\n }\n }\n }\n\n return a[0];\n } : function (value, direction, threshold) {\n if (threshold === void 0) {\n threshold = 1e-3;\n }\n\n var snapped = snap(value);\n return !direction || Math.abs(snapped - value) < threshold || snapped - value < 0 === direction < 0 ? snapped : snap(direction < 0 ? value - snapIncrementOrArray : value + snapIncrementOrArray);\n };\n},\n _getLabelAtDirection = function _getLabelAtDirection(timeline) {\n return function (value, st) {\n return _snapDirectional(_getLabelRatioArray(timeline))(value, st.direction);\n };\n},\n _multiListener = function _multiListener(func, element, types, callback) {\n return types.split(\",\").forEach(function (type) {\n return func(element, type, callback);\n });\n},\n _addListener = function _addListener(element, type, func, nonPassive, capture) {\n return element.addEventListener(type, func, {\n passive: !nonPassive,\n capture: !!capture\n });\n},\n _removeListener = function _removeListener(element, type, func, capture) {\n return element.removeEventListener(type, func, !!capture);\n},\n _wheelListener = function _wheelListener(func, el, scrollFunc) {\n scrollFunc = scrollFunc && scrollFunc.wheelHandler;\n\n if (scrollFunc) {\n func(el, \"wheel\", scrollFunc);\n func(el, \"touchmove\", scrollFunc);\n }\n},\n _markerDefaults = {\n startColor: \"green\",\n endColor: \"red\",\n indent: 0,\n fontSize: \"16px\",\n fontWeight: \"normal\"\n},\n _defaults = {\n toggleActions: \"play\",\n anticipatePin: 0\n},\n _keywords = {\n top: 0,\n left: 0,\n center: 0.5,\n bottom: 1,\n right: 1\n},\n _offsetToPx = function _offsetToPx(value, size) {\n if (_isString(value)) {\n var eqIndex = value.indexOf(\"=\"),\n relative = ~eqIndex ? +(value.charAt(eqIndex - 1) + 1) * parseFloat(value.substr(eqIndex + 1)) : 0;\n\n if (~eqIndex) {\n value.indexOf(\"%\") > eqIndex && (relative *= size / 100);\n value = value.substr(0, eqIndex - 1);\n }\n\n value = relative + (value in _keywords ? _keywords[value] * size : ~value.indexOf(\"%\") ? parseFloat(value) * size / 100 : parseFloat(value) || 0);\n }\n\n return value;\n},\n _createMarker = function _createMarker(type, name, container, direction, _ref4, offset, matchWidthEl, containerAnimation) {\n var startColor = _ref4.startColor,\n endColor = _ref4.endColor,\n fontSize = _ref4.fontSize,\n indent = _ref4.indent,\n fontWeight = _ref4.fontWeight;\n\n var e = _doc.createElement(\"div\"),\n useFixedPosition = _isViewport(container) || _getProxyProp(container, \"pinType\") === \"fixed\",\n isScroller = type.indexOf(\"scroller\") !== -1,\n parent = useFixedPosition ? _body : container,\n isStart = type.indexOf(\"start\") !== -1,\n color = isStart ? startColor : endColor,\n css = \"border-color:\" + color + \";font-size:\" + fontSize + \";color:\" + color + \";font-weight:\" + fontWeight + \";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;\";\n\n css += \"position:\" + ((isScroller || containerAnimation) && useFixedPosition ? \"fixed;\" : \"absolute;\");\n (isScroller || containerAnimation || !useFixedPosition) && (css += (direction === _vertical ? _right : _bottom) + \":\" + (offset + parseFloat(indent)) + \"px;\");\n matchWidthEl && (css += \"box-sizing:border-box;text-align:left;width:\" + matchWidthEl.offsetWidth + \"px;\");\n e._isStart = isStart;\n e.setAttribute(\"class\", \"gsap-marker-\" + type + (name ? \" marker-\" + name : \"\"));\n e.style.cssText = css;\n e.innerText = name || name === 0 ? type + \"-\" + name : type;\n parent.children[0] ? parent.insertBefore(e, parent.children[0]) : parent.appendChild(e);\n e._offset = e[\"offset\" + direction.op.d2];\n\n _positionMarker(e, 0, direction, isStart);\n\n return e;\n},\n _positionMarker = function _positionMarker(marker, start, direction, flipped) {\n var vars = {\n display: \"block\"\n },\n side = direction[flipped ? \"os2\" : \"p2\"],\n oppositeSide = direction[flipped ? \"p2\" : \"os2\"];\n marker._isFlipped = flipped;\n vars[direction.a + \"Percent\"] = flipped ? -100 : 0;\n vars[direction.a] = flipped ? \"1px\" : 0;\n vars[\"border\" + side + _Width] = 1;\n vars[\"border\" + oppositeSide + _Width] = 0;\n vars[direction.p] = start + \"px\";\n gsap.set(marker, vars);\n},\n _triggers = [],\n _ids = {},\n _rafID,\n _sync = function _sync() {\n return _getTime() - _lastScrollTime > 34 && (_rafID || (_rafID = requestAnimationFrame(_updateAll)));\n},\n _onScroll = function _onScroll() {\n // previously, we tried to optimize performance by batching/deferring to the next requestAnimationFrame(), but discovered that Safari has a few bugs that make this unworkable (especially on iOS). See https://codepen.io/GreenSock/pen/16c435b12ef09c38125204818e7b45fc?editors=0010 and https://codepen.io/GreenSock/pen/JjOxYpQ/3dd65ccec5a60f1d862c355d84d14562?editors=0010 and https://codepen.io/GreenSock/pen/ExbrPNa/087cef197dc35445a0951e8935c41503?editors=0010\n if (!_normalizer || !_normalizer.isPressed || _normalizer.startX > _body.clientWidth) {\n // if the user is dragging the scrollbar, allow it.\n _scrollers.cache++;\n\n if (_normalizer) {\n _rafID || (_rafID = requestAnimationFrame(_updateAll));\n } else {\n _updateAll(); // Safari in particular (on desktop) NEEDS the immediate update rather than waiting for a requestAnimationFrame() whereas iOS seems to benefit from waiting for the requestAnimationFrame() tick, at least when normalizing. See https://codepen.io/GreenSock/pen/qBYozqO?editors=0110\n\n }\n\n _lastScrollTime || _dispatch(\"scrollStart\");\n _lastScrollTime = _getTime();\n }\n},\n _setBaseDimensions = function _setBaseDimensions() {\n _baseScreenWidth = _win.innerWidth;\n _baseScreenHeight = _win.innerHeight;\n},\n _onResize = function _onResize() {\n _scrollers.cache++;\n !_refreshing && !_ignoreResize && !_doc.fullscreenElement && !_doc.webkitFullscreenElement && (!_ignoreMobileResize || _baseScreenWidth !== _win.innerWidth || Math.abs(_win.innerHeight - _baseScreenHeight) > _win.innerHeight * 0.25) && _resizeDelay.restart(true);\n},\n // ignore resizes triggered by refresh()\n_listeners = {},\n _emptyArray = [],\n _softRefresh = function _softRefresh() {\n return _removeListener(ScrollTrigger, \"scrollEnd\", _softRefresh) || _refreshAll(true);\n},\n _dispatch = function _dispatch(type) {\n return _listeners[type] && _listeners[type].map(function (f) {\n return f();\n }) || _emptyArray;\n},\n _savedStyles = [],\n // when ScrollTrigger.saveStyles() is called, the inline styles are recorded in this Array in a sequential format like [element, cssText, gsCache, media]. This keeps it very memory-efficient and fast to iterate through.\n_revertRecorded = function _revertRecorded(media) {\n for (var i = 0; i < _savedStyles.length; i += 5) {\n if (!media || _savedStyles[i + 4] && _savedStyles[i + 4].query === media) {\n _savedStyles[i].style.cssText = _savedStyles[i + 1];\n _savedStyles[i].getBBox && _savedStyles[i].setAttribute(\"transform\", _savedStyles[i + 2] || \"\");\n _savedStyles[i + 3].uncache = 1;\n }\n }\n},\n _revertAll = function _revertAll(kill, media) {\n var trigger;\n\n for (_i = 0; _i < _triggers.length; _i++) {\n trigger = _triggers[_i];\n\n if (trigger && (!media || trigger._ctx === media)) {\n if (kill) {\n trigger.kill(1);\n } else {\n trigger.revert(true, true);\n }\n }\n }\n\n media && _revertRecorded(media);\n media || _dispatch(\"revert\");\n},\n _clearScrollMemory = function _clearScrollMemory(scrollRestoration, force) {\n // zero-out all the recorded scroll positions. Don't use _triggers because if, for example, .matchMedia() is used to create some ScrollTriggers and then the user resizes and it removes ALL ScrollTriggers, and then go back to a size where there are ScrollTriggers, it would have kept the position(s) saved from the initial state.\n _scrollers.cache++;\n (force || !_refreshingAll) && _scrollers.forEach(function (obj) {\n return _isFunction(obj) && obj.cacheID++ && (obj.rec = 0);\n });\n _isString(scrollRestoration) && (_win.history.scrollRestoration = _scrollRestoration = scrollRestoration);\n},\n _refreshingAll,\n _refreshID = 0,\n _queueRefreshID,\n _queueRefreshAll = function _queueRefreshAll() {\n // we don't want to call _refreshAll() every time we create a new ScrollTrigger (for performance reasons) - it's better to batch them. Some frameworks dynamically load content and we can't rely on the window's \"load\" or \"DOMContentLoaded\" events to trigger it.\n if (_queueRefreshID !== _refreshID) {\n var id = _queueRefreshID = _refreshID;\n requestAnimationFrame(function () {\n return id === _refreshID && _refreshAll(true);\n });\n }\n},\n _refreshAll = function _refreshAll(force, skipRevert) {\n if (_lastScrollTime && !force) {\n _addListener(ScrollTrigger, \"scrollEnd\", _softRefresh);\n\n return;\n }\n\n _refreshingAll = ScrollTrigger.isRefreshing = true;\n\n _scrollers.forEach(function (obj) {\n return _isFunction(obj) && obj.cacheID++ && (obj.rec = obj());\n }); // force the clearing of the cache because some browsers take a little while to dispatch the \"scroll\" event and the user may have changed the scroll position and then called ScrollTrigger.refresh() right away\n\n\n var refreshInits = _dispatch(\"refreshInit\");\n\n _sort && ScrollTrigger.sort();\n skipRevert || _revertAll();\n\n _scrollers.forEach(function (obj) {\n if (_isFunction(obj)) {\n obj.smooth && (obj.target.style.scrollBehavior = \"auto\"); // smooth scrolling interferes\n\n obj(0);\n }\n });\n\n _triggers.slice(0).forEach(function (t) {\n return t.refresh();\n }); // don't loop with _i because during a refresh() someone could call ScrollTrigger.update() which would iterate through _i resulting in a skip.\n\n\n _triggers.forEach(function (t, i) {\n // nested pins (pinnedContainer) with pinSpacing may expand the container, so we must accommodate that here.\n if (t._subPinOffset && t.pin) {\n var prop = t.vars.horizontal ? \"offsetWidth\" : \"offsetHeight\",\n original = t.pin[prop];\n t.revert(true, 1);\n t.adjustPinSpacing(t.pin[prop] - original);\n t.refresh();\n }\n });\n\n _triggers.forEach(function (t) {\n return t.vars.end === \"max\" && t.setPositions(t.start, Math.max(t.start + 1, _maxScroll(t.scroller, t._dir)));\n }); // the scroller's max scroll position may change after all the ScrollTriggers refreshed (like pinning could push it down), so we need to loop back and correct any with end: \"max\".\n\n\n refreshInits.forEach(function (result) {\n return result && result.render && result.render(-1);\n }); // if the onRefreshInit() returns an animation (typically a gsap.set()), revert it. This makes it easy to put things in a certain spot before refreshing for measurement purposes, and then put things back.\n\n _scrollers.forEach(function (obj) {\n if (_isFunction(obj)) {\n obj.smooth && requestAnimationFrame(function () {\n return obj.target.style.scrollBehavior = \"smooth\";\n });\n obj.rec && obj(obj.rec);\n }\n });\n\n _clearScrollMemory(_scrollRestoration, 1);\n\n _resizeDelay.pause();\n\n _refreshID++;\n _refreshingAll = 2;\n\n _updateAll(2);\n\n _triggers.forEach(function (t) {\n return _isFunction(t.vars.onRefresh) && t.vars.onRefresh(t);\n });\n\n _refreshingAll = ScrollTrigger.isRefreshing = false;\n\n _dispatch(\"refresh\");\n},\n _lastScroll = 0,\n _direction = 1,\n _primary,\n _updateAll = function _updateAll(force) {\n if (!_refreshingAll || force === 2) {\n ScrollTrigger.isUpdating = true;\n _primary && _primary.update(0); // ScrollSmoother uses refreshPriority -9999 to become the primary that gets updated before all others because it affects the scroll position.\n\n var l = _triggers.length,\n time = _getTime(),\n recordVelocity = time - _time1 >= 50,\n scroll = l && _triggers[0].scroll();\n\n _direction = _lastScroll > scroll ? -1 : 1;\n _refreshingAll || (_lastScroll = scroll);\n\n if (recordVelocity) {\n if (_lastScrollTime && !_pointerIsDown && time - _lastScrollTime > 200) {\n _lastScrollTime = 0;\n\n _dispatch(\"scrollEnd\");\n }\n\n _time2 = _time1;\n _time1 = time;\n }\n\n if (_direction < 0) {\n _i = l;\n\n while (_i-- > 0) {\n _triggers[_i] && _triggers[_i].update(0, recordVelocity);\n }\n\n _direction = 1;\n } else {\n for (_i = 0; _i < l; _i++) {\n _triggers[_i] && _triggers[_i].update(0, recordVelocity);\n }\n }\n\n ScrollTrigger.isUpdating = false;\n }\n\n _rafID = 0;\n},\n _propNamesToCopy = [_left, _top, _bottom, _right, _margin + _Bottom, _margin + _Right, _margin + _Top, _margin + _Left, \"display\", \"flexShrink\", \"float\", \"zIndex\", \"gridColumnStart\", \"gridColumnEnd\", \"gridRowStart\", \"gridRowEnd\", \"gridArea\", \"justifySelf\", \"alignSelf\", \"placeSelf\", \"order\"],\n _stateProps = _propNamesToCopy.concat([_width, _height, \"boxSizing\", \"max\" + _Width, \"max\" + _Height, \"position\", _margin, _padding, _padding + _Top, _padding + _Right, _padding + _Bottom, _padding + _Left]),\n _swapPinOut = function _swapPinOut(pin, spacer, state) {\n _setState(state);\n\n var cache = pin._gsap;\n\n if (cache.spacerIsNative) {\n _setState(cache.spacerState);\n } else if (pin._gsap.swappedIn) {\n var parent = spacer.parentNode;\n\n if (parent) {\n parent.insertBefore(pin, spacer);\n parent.removeChild(spacer);\n }\n }\n\n pin._gsap.swappedIn = false;\n},\n _swapPinIn = function _swapPinIn(pin, spacer, cs, spacerState) {\n if (!pin._gsap.swappedIn) {\n var i = _propNamesToCopy.length,\n spacerStyle = spacer.style,\n pinStyle = pin.style,\n p;\n\n while (i--) {\n p = _propNamesToCopy[i];\n spacerStyle[p] = cs[p];\n }\n\n spacerStyle.position = cs.position === \"absolute\" ? \"absolute\" : \"relative\";\n cs.display === \"inline\" && (spacerStyle.display = \"inline-block\");\n pinStyle[_bottom] = pinStyle[_right] = \"auto\";\n spacerStyle.flexBasis = cs.flexBasis || \"auto\";\n spacerStyle.overflow = \"visible\";\n spacerStyle.boxSizing = \"border-box\";\n spacerStyle[_width] = _getSize(pin, _horizontal) + _px;\n spacerStyle[_height] = _getSize(pin, _vertical) + _px;\n spacerStyle[_padding] = pinStyle[_margin] = pinStyle[_top] = pinStyle[_left] = \"0\";\n\n _setState(spacerState);\n\n pinStyle[_width] = pinStyle[\"max\" + _Width] = cs[_width];\n pinStyle[_height] = pinStyle[\"max\" + _Height] = cs[_height];\n pinStyle[_padding] = cs[_padding];\n\n if (pin.parentNode !== spacer) {\n pin.parentNode.insertBefore(spacer, pin);\n spacer.appendChild(pin);\n }\n\n pin._gsap.swappedIn = true;\n }\n},\n _capsExp = /([A-Z])/g,\n _setState = function _setState(state) {\n if (state) {\n var style = state.t.style,\n l = state.length,\n i = 0,\n p,\n value;\n (state.t._gsap || gsap.core.getCache(state.t)).uncache = 1; // otherwise transforms may be off\n\n for (; i < l; i += 2) {\n value = state[i + 1];\n p = state[i];\n\n if (value) {\n style[p] = value;\n } else if (style[p]) {\n style.removeProperty(p.replace(_capsExp, \"-$1\").toLowerCase());\n }\n }\n }\n},\n _getState = function _getState(element) {\n // returns an Array with alternating values like [property, value, property, value] and a \"t\" property pointing to the target (element). Makes it fast and cheap.\n var l = _stateProps.length,\n style = element.style,\n state = [],\n i = 0;\n\n for (; i < l; i++) {\n state.push(_stateProps[i], style[_stateProps[i]]);\n }\n\n state.t = element;\n return state;\n},\n _copyState = function _copyState(state, override, omitOffsets) {\n var result = [],\n l = state.length,\n i = omitOffsets ? 8 : 0,\n // skip top, left, right, bottom if omitOffsets is true\n p;\n\n for (; i < l; i += 2) {\n p = state[i];\n result.push(p, p in override ? override[p] : state[i + 1]);\n }\n\n result.t = state.t;\n return result;\n},\n _winOffsets = {\n left: 0,\n top: 0\n},\n // // potential future feature (?) Allow users to calculate where a trigger hits (scroll position) like getScrollPosition(\"#id\", \"top bottom\")\n// _getScrollPosition = (trigger, position, {scroller, containerAnimation, horizontal}) => {\n// \tscroller = _getTarget(scroller || _win);\n// \tlet direction = horizontal ? _horizontal : _vertical,\n// \t\tisViewport = _isViewport(scroller);\n// \t_getSizeFunc(scroller, isViewport, direction);\n// \treturn _parsePosition(position, _getTarget(trigger), _getSizeFunc(scroller, isViewport, direction)(), direction, _getScrollFunc(scroller, direction)(), 0, 0, 0, _getOffsetsFunc(scroller, isViewport)(), isViewport ? 0 : parseFloat(_getComputedStyle(scroller)[\"border\" + direction.p2 + _Width]) || 0, 0, containerAnimation ? containerAnimation.duration() : _maxScroll(scroller), containerAnimation);\n// },\n_parsePosition = function _parsePosition(value, trigger, scrollerSize, direction, scroll, marker, markerScroller, self, scrollerBounds, borderWidth, useFixedPosition, scrollerMax, containerAnimation) {\n _isFunction(value) && (value = value(self));\n\n if (_isString(value) && value.substr(0, 3) === \"max\") {\n value = scrollerMax + (value.charAt(4) === \"=\" ? _offsetToPx(\"0\" + value.substr(3), scrollerSize) : 0);\n }\n\n var time = containerAnimation ? containerAnimation.time() : 0,\n p1,\n p2,\n element;\n containerAnimation && containerAnimation.seek(0);\n\n if (!_isNumber(value)) {\n _isFunction(trigger) && (trigger = trigger(self));\n var offsets = (value || \"0\").split(\" \"),\n bounds,\n localOffset,\n globalOffset,\n display;\n element = _getTarget(trigger) || _body;\n bounds = _getBounds(element) || {};\n\n if ((!bounds || !bounds.left && !bounds.top) && _getComputedStyle(element).display === \"none\") {\n // if display is \"none\", it won't report getBoundingClientRect() properly\n display = element.style.display;\n element.style.display = \"block\";\n bounds = _getBounds(element);\n display ? element.style.display = display : element.style.removeProperty(\"display\");\n }\n\n localOffset = _offsetToPx(offsets[0], bounds[direction.d]);\n globalOffset = _offsetToPx(offsets[1] || \"0\", scrollerSize);\n value = bounds[direction.p] - scrollerBounds[direction.p] - borderWidth + localOffset + scroll - globalOffset;\n markerScroller && _positionMarker(markerScroller, globalOffset, direction, scrollerSize - globalOffset < 20 || markerScroller._isStart && globalOffset > 20);\n scrollerSize -= scrollerSize - globalOffset; // adjust for the marker\n } else {\n containerAnimation && (value = gsap.utils.mapRange(containerAnimation.scrollTrigger.start, containerAnimation.scrollTrigger.end, 0, scrollerMax, value));\n markerScroller && _positionMarker(markerScroller, scrollerSize, direction, true);\n }\n\n if (marker) {\n var position = value + scrollerSize,\n isStart = marker._isStart;\n p1 = \"scroll\" + direction.d2;\n\n _positionMarker(marker, position, direction, isStart && position > 20 || !isStart && (useFixedPosition ? Math.max(_body[p1], _docEl[p1]) : marker.parentNode[p1]) <= position + 1);\n\n if (useFixedPosition) {\n scrollerBounds = _getBounds(markerScroller);\n useFixedPosition && (marker.style[direction.op.p] = scrollerBounds[direction.op.p] - direction.op.m - marker._offset + _px);\n }\n }\n\n if (containerAnimation && element) {\n p1 = _getBounds(element);\n containerAnimation.seek(scrollerMax);\n p2 = _getBounds(element);\n containerAnimation._caScrollDist = p1[direction.p] - p2[direction.p];\n value = value / containerAnimation._caScrollDist * scrollerMax;\n }\n\n containerAnimation && containerAnimation.seek(time);\n return containerAnimation ? value : Math.round(value);\n},\n _prefixExp = /(webkit|moz|length|cssText|inset)/i,\n _reparent = function _reparent(element, parent, top, left) {\n if (element.parentNode !== parent) {\n var style = element.style,\n p,\n cs;\n\n if (parent === _body) {\n element._stOrig = style.cssText; // record original inline styles so we can revert them later\n\n cs = _getComputedStyle(element);\n\n for (p in cs) {\n // must copy all relevant styles to ensure that nothing changes visually when we reparent to the . Skip the vendor prefixed ones.\n if (!+p && !_prefixExp.test(p) && cs[p] && typeof style[p] === \"string\" && p !== \"0\") {\n style[p] = cs[p];\n }\n }\n\n style.top = top;\n style.left = left;\n } else {\n style.cssText = element._stOrig;\n }\n\n gsap.core.getCache(element).uncache = 1;\n parent.appendChild(element);\n }\n},\n _interruptionTracker = function _interruptionTracker(getValueFunc, initialValue, onInterrupt) {\n var last1 = initialValue,\n last2 = last1;\n return function (value) {\n var current = Math.round(getValueFunc()); // round because in some [very uncommon] Windows environments, scroll can get reported with decimals even though it was set without.\n\n if (current !== last1 && current !== last2 && Math.abs(current - last1) > 3 && Math.abs(current - last2) > 3) {\n // if the user scrolls, kill the tween. iOS Safari intermittently misreports the scroll position, it may be the most recently-set one or the one before that! When Safari is zoomed (CMD-+), it often misreports as 1 pixel off too! So if we set the scroll position to 125, for example, it'll actually report it as 124.\n value = current;\n onInterrupt && onInterrupt();\n }\n\n last2 = last1;\n last1 = value;\n return value;\n };\n},\n // _mergeAnimations = animations => {\n// \tlet tl = gsap.timeline({smoothChildTiming: true}).startTime(Math.min(...animations.map(a => a.globalTime(0))));\n// \tanimations.forEach(a => {let time = a.totalTime(); tl.add(a); a.totalTime(time); });\n// \ttl.smoothChildTiming = false;\n// \treturn tl;\n// },\n// returns a function that can be used to tween the scroll position in the direction provided, and when doing so it'll add a .tween property to the FUNCTION itself, and remove it when the tween completes or gets killed. This gives us a way to have multiple ScrollTriggers use a central function for any given scroller and see if there's a scroll tween running (which would affect if/how things get updated)\n_getTweenCreator = function _getTweenCreator(scroller, direction) {\n var getScroll = _getScrollFunc(scroller, direction),\n prop = \"_scroll\" + direction.p2,\n // add a tweenable property to the scroller that's a getter/setter function, like _scrollTop or _scrollLeft. This way, if someone does gsap.killTweensOf(scroller) it'll kill the scroll tween.\n lastScroll1,\n lastScroll2,\n getTween = function getTween(scrollTo, vars, initialValue, change1, change2) {\n var tween = getTween.tween,\n onComplete = vars.onComplete,\n modifiers = {};\n initialValue = initialValue || getScroll();\n\n var checkForInterruption = _interruptionTracker(getScroll, initialValue, function () {\n tween.kill();\n getTween.tween = 0;\n });\n\n change2 = change1 && change2 || 0; // if change1 is 0, we set that to the difference and ignore change2. Otherwise, there would be a compound effect.\n\n change1 = change1 || scrollTo - initialValue;\n tween && tween.kill();\n lastScroll1 = Math.round(initialValue);\n vars[prop] = scrollTo;\n vars.modifiers = modifiers;\n\n modifiers[prop] = function () {\n return checkForInterruption(initialValue + change1 * tween.ratio + change2 * tween.ratio * tween.ratio);\n };\n\n vars.onUpdate = function () {\n _scrollers.cache++;\n\n _updateAll();\n };\n\n vars.onComplete = function () {\n getTween.tween = 0;\n onComplete && onComplete.call(tween);\n };\n\n tween = getTween.tween = gsap.to(scroller, vars);\n return tween;\n };\n\n scroller[prop] = getScroll;\n\n getScroll.wheelHandler = function () {\n return getTween.tween && getTween.tween.kill() && (getTween.tween = 0);\n };\n\n _addListener(scroller, \"wheel\", getScroll.wheelHandler); // Windows machines handle mousewheel scrolling in chunks (like \"3 lines per scroll\") meaning the typical strategy for cancelling the scroll isn't as sensitive. It's much more likely to match one of the previous 2 scroll event positions. So we kill any snapping as soon as there's a wheel event.\n\n\n ScrollTrigger.isTouch && _addListener(scroller, \"touchmove\", getScroll.wheelHandler);\n return getTween;\n};\n\nexport var ScrollTrigger = /*#__PURE__*/function () {\n function ScrollTrigger(vars, animation) {\n _coreInitted || ScrollTrigger.register(gsap) || console.warn(\"Please gsap.registerPlugin(ScrollTrigger)\");\n this.init(vars, animation);\n }\n\n var _proto = ScrollTrigger.prototype;\n\n _proto.init = function init(vars, animation) {\n this.progress = this.start = 0;\n this.vars && this.kill(true, true); // in case it's being initted again\n\n if (!_enabled) {\n this.update = this.refresh = this.kill = _passThrough;\n return;\n }\n\n vars = _setDefaults(_isString(vars) || _isNumber(vars) || vars.nodeType ? {\n trigger: vars\n } : vars, _defaults);\n\n var _vars = vars,\n onUpdate = _vars.onUpdate,\n toggleClass = _vars.toggleClass,\n id = _vars.id,\n onToggle = _vars.onToggle,\n onRefresh = _vars.onRefresh,\n scrub = _vars.scrub,\n trigger = _vars.trigger,\n pin = _vars.pin,\n pinSpacing = _vars.pinSpacing,\n invalidateOnRefresh = _vars.invalidateOnRefresh,\n anticipatePin = _vars.anticipatePin,\n onScrubComplete = _vars.onScrubComplete,\n onSnapComplete = _vars.onSnapComplete,\n once = _vars.once,\n snap = _vars.snap,\n pinReparent = _vars.pinReparent,\n pinSpacer = _vars.pinSpacer,\n containerAnimation = _vars.containerAnimation,\n fastScrollEnd = _vars.fastScrollEnd,\n preventOverlaps = _vars.preventOverlaps,\n direction = vars.horizontal || vars.containerAnimation && vars.horizontal !== false ? _horizontal : _vertical,\n isToggle = !scrub && scrub !== 0,\n scroller = _getTarget(vars.scroller || _win),\n scrollerCache = gsap.core.getCache(scroller),\n isViewport = _isViewport(scroller),\n useFixedPosition = (\"pinType\" in vars ? vars.pinType : _getProxyProp(scroller, \"pinType\") || isViewport && \"fixed\") === \"fixed\",\n callbacks = [vars.onEnter, vars.onLeave, vars.onEnterBack, vars.onLeaveBack],\n toggleActions = isToggle && vars.toggleActions.split(\" \"),\n markers = \"markers\" in vars ? vars.markers : _defaults.markers,\n borderWidth = isViewport ? 0 : parseFloat(_getComputedStyle(scroller)[\"border\" + direction.p2 + _Width]) || 0,\n self = this,\n onRefreshInit = vars.onRefreshInit && function () {\n return vars.onRefreshInit(self);\n },\n getScrollerSize = _getSizeFunc(scroller, isViewport, direction),\n getScrollerOffsets = _getOffsetsFunc(scroller, isViewport),\n lastSnap = 0,\n lastRefresh = 0,\n scrollFunc = _getScrollFunc(scroller, direction),\n tweenTo,\n pinCache,\n snapFunc,\n scroll1,\n scroll2,\n start,\n end,\n markerStart,\n markerEnd,\n markerStartTrigger,\n markerEndTrigger,\n markerVars,\n change,\n pinOriginalState,\n pinActiveState,\n pinState,\n spacer,\n offset,\n pinGetter,\n pinSetter,\n pinStart,\n pinChange,\n spacingStart,\n spacerState,\n markerStartSetter,\n pinMoves,\n markerEndSetter,\n cs,\n snap1,\n snap2,\n scrubTween,\n scrubSmooth,\n snapDurClamp,\n snapDelayedCall,\n prevProgress,\n prevScroll,\n prevAnimProgress,\n caMarkerSetter,\n customRevertReturn;\n\n _context(self);\n\n self._dir = direction;\n anticipatePin *= 45;\n self.scroller = scroller;\n self.scroll = containerAnimation ? containerAnimation.time.bind(containerAnimation) : scrollFunc;\n scroll1 = scrollFunc();\n self.vars = vars;\n animation = animation || vars.animation;\n\n if (\"refreshPriority\" in vars) {\n _sort = 1;\n vars.refreshPriority === -9999 && (_primary = self); // used by ScrollSmoother\n }\n\n scrollerCache.tweenScroll = scrollerCache.tweenScroll || {\n top: _getTweenCreator(scroller, _vertical),\n left: _getTweenCreator(scroller, _horizontal)\n };\n self.tweenTo = tweenTo = scrollerCache.tweenScroll[direction.p];\n\n self.scrubDuration = function (value) {\n scrubSmooth = _isNumber(value) && value;\n\n if (!scrubSmooth) {\n scrubTween && scrubTween.progress(1).kill();\n scrubTween = 0;\n } else {\n scrubTween ? scrubTween.duration(value) : scrubTween = gsap.to(animation, {\n ease: \"expo\",\n totalProgress: \"+=0.001\",\n duration: scrubSmooth,\n paused: true,\n onComplete: function onComplete() {\n return onScrubComplete && onScrubComplete(self);\n }\n });\n }\n };\n\n if (animation) {\n animation.vars.lazy = false;\n animation._initted || animation.vars.immediateRender !== false && vars.immediateRender !== false && animation.duration() && animation.render(0, true, true);\n self.animation = animation.pause();\n animation.scrollTrigger = self;\n self.scrubDuration(scrub);\n scrubTween && scrubTween.resetTo && scrubTween.resetTo(\"totalProgress\", 0); // otherwise the initial scrub progress value would start at 0.001 which normally is no big deal, but for containerAnimation it can be noticeable since the range is so tiny.\n\n snap1 = 0;\n id || (id = animation.vars.id);\n }\n\n _triggers.push(self);\n\n if (snap) {\n // TODO: potential idea: use legitimate CSS scroll snapping by pushing invisible elements into the DOM that serve as snap positions, and toggle the document.scrollingElement.style.scrollSnapType onToggle. See https://codepen.io/GreenSock/pen/JjLrgWM for a quick proof of concept.\n if (!_isObject(snap) || snap.push) {\n snap = {\n snapTo: snap\n };\n }\n\n \"scrollBehavior\" in _body.style && gsap.set(isViewport ? [_body, _docEl] : scroller, {\n scrollBehavior: \"auto\"\n }); // smooth scrolling doesn't work with snap.\n\n _scrollers.forEach(function (o) {\n return _isFunction(o) && o.target === (isViewport ? _doc.scrollingElement || _docEl : scroller) && (o.smooth = false);\n }); // note: set smooth to false on both the vertical and horizontal scroll getters/setters\n\n\n snapFunc = _isFunction(snap.snapTo) ? snap.snapTo : snap.snapTo === \"labels\" ? _getClosestLabel(animation) : snap.snapTo === \"labelsDirectional\" ? _getLabelAtDirection(animation) : snap.directional !== false ? function (value, st) {\n return _snapDirectional(snap.snapTo)(value, _getTime() - lastRefresh < 500 ? 0 : st.direction);\n } : gsap.utils.snap(snap.snapTo);\n snapDurClamp = snap.duration || {\n min: 0.1,\n max: 2\n };\n snapDurClamp = _isObject(snapDurClamp) ? _clamp(snapDurClamp.min, snapDurClamp.max) : _clamp(snapDurClamp, snapDurClamp);\n snapDelayedCall = gsap.delayedCall(snap.delay || scrubSmooth / 2 || 0.1, function () {\n var scroll = scrollFunc(),\n refreshedRecently = _getTime() - lastRefresh < 500,\n tween = tweenTo.tween;\n\n if ((refreshedRecently || Math.abs(self.getVelocity()) < 10) && !tween && !_pointerIsDown && lastSnap !== scroll) {\n var progress = (scroll - start) / change,\n totalProgress = animation && !isToggle ? animation.totalProgress() : progress,\n velocity = refreshedRecently ? 0 : (totalProgress - snap2) / (_getTime() - _time2) * 1000 || 0,\n change1 = gsap.utils.clamp(-progress, 1 - progress, _abs(velocity / 2) * velocity / 0.185),\n naturalEnd = progress + (snap.inertia === false ? 0 : change1),\n endValue = _clamp(0, 1, snapFunc(naturalEnd, self)),\n endScroll = Math.round(start + endValue * change),\n _snap = snap,\n onStart = _snap.onStart,\n _onInterrupt = _snap.onInterrupt,\n _onComplete = _snap.onComplete;\n\n if (scroll <= end && scroll >= start && endScroll !== scroll) {\n if (tween && !tween._initted && tween.data <= _abs(endScroll - scroll)) {\n // there's an overlapping snap! So we must figure out which one is closer and let that tween live.\n return;\n }\n\n if (snap.inertia === false) {\n change1 = endValue - progress;\n }\n\n tweenTo(endScroll, {\n duration: snapDurClamp(_abs(Math.max(_abs(naturalEnd - totalProgress), _abs(endValue - totalProgress)) * 0.185 / velocity / 0.05 || 0)),\n ease: snap.ease || \"power3\",\n data: _abs(endScroll - scroll),\n // record the distance so that if another snap tween occurs (conflict) we can prioritize the closest snap.\n onInterrupt: function onInterrupt() {\n return snapDelayedCall.restart(true) && _onInterrupt && _onInterrupt(self);\n },\n onComplete: function onComplete() {\n self.update();\n lastSnap = scrollFunc();\n snap1 = snap2 = animation && !isToggle ? animation.totalProgress() : self.progress;\n onSnapComplete && onSnapComplete(self);\n _onComplete && _onComplete(self);\n }\n }, scroll, change1 * change, endScroll - scroll - change1 * change);\n onStart && onStart(self, tweenTo.tween);\n }\n } else if (self.isActive && lastSnap !== scroll) {\n snapDelayedCall.restart(true);\n }\n }).pause();\n }\n\n id && (_ids[id] = self);\n trigger = self.trigger = _getTarget(trigger || pin); // if a trigger has some kind of scroll-related effect applied that could contaminate the \"y\" or \"x\" position (like a ScrollSmoother effect), we needed a way to temporarily revert it, so we use the stRevert property of the gsCache. It can return another function that we'll call at the end so it can return to its normal state.\n\n customRevertReturn = trigger && trigger._gsap && trigger._gsap.stRevert;\n customRevertReturn && (customRevertReturn = customRevertReturn(self));\n pin = pin === true ? trigger : _getTarget(pin);\n _isString(toggleClass) && (toggleClass = {\n targets: trigger,\n className: toggleClass\n });\n\n if (pin) {\n pinSpacing === false || pinSpacing === _margin || (pinSpacing = !pinSpacing && pin.parentNode && pin.parentNode.style && _getComputedStyle(pin.parentNode).display === \"flex\" ? false : _padding); // if the parent is display: flex, don't apply pinSpacing by default. We should check that pin.parentNode is an element (not shadow dom window)\n\n self.pin = pin;\n pinCache = gsap.core.getCache(pin);\n\n if (!pinCache.spacer) {\n // record the spacer and pinOriginalState on the cache in case someone tries pinning the same element with MULTIPLE ScrollTriggers - we don't want to have multiple spacers or record the \"original\" pin state after it has already been affected by another ScrollTrigger.\n if (pinSpacer) {\n pinSpacer = _getTarget(pinSpacer);\n pinSpacer && !pinSpacer.nodeType && (pinSpacer = pinSpacer.current || pinSpacer.nativeElement); // for React & Angular\n\n pinCache.spacerIsNative = !!pinSpacer;\n pinSpacer && (pinCache.spacerState = _getState(pinSpacer));\n }\n\n pinCache.spacer = spacer = pinSpacer || _doc.createElement(\"div\");\n spacer.classList.add(\"pin-spacer\");\n id && spacer.classList.add(\"pin-spacer-\" + id);\n pinCache.pinState = pinOriginalState = _getState(pin);\n } else {\n pinOriginalState = pinCache.pinState;\n }\n\n vars.force3D !== false && gsap.set(pin, {\n force3D: true\n });\n self.spacer = spacer = pinCache.spacer;\n cs = _getComputedStyle(pin);\n spacingStart = cs[pinSpacing + direction.os2];\n pinGetter = gsap.getProperty(pin);\n pinSetter = gsap.quickSetter(pin, direction.a, _px); // pin.firstChild && !_maxScroll(pin, direction) && (pin.style.overflow = \"hidden\"); // protects from collapsing margins, but can have unintended consequences as demonstrated here: https://codepen.io/GreenSock/pen/1e42c7a73bfa409d2cf1e184e7a4248d so it was removed in favor of just telling people to set up their CSS to avoid the collapsing margins (overflow: hidden | auto is just one option. Another is border-top: 1px solid transparent).\n\n _swapPinIn(pin, spacer, cs);\n\n pinState = _getState(pin);\n }\n\n if (markers) {\n markerVars = _isObject(markers) ? _setDefaults(markers, _markerDefaults) : _markerDefaults;\n markerStartTrigger = _createMarker(\"scroller-start\", id, scroller, direction, markerVars, 0);\n markerEndTrigger = _createMarker(\"scroller-end\", id, scroller, direction, markerVars, 0, markerStartTrigger);\n offset = markerStartTrigger[\"offset\" + direction.op.d2];\n\n var content = _getTarget(_getProxyProp(scroller, \"content\") || scroller);\n\n markerStart = this.markerStart = _createMarker(\"start\", id, content, direction, markerVars, offset, 0, containerAnimation);\n markerEnd = this.markerEnd = _createMarker(\"end\", id, content, direction, markerVars, offset, 0, containerAnimation);\n containerAnimation && (caMarkerSetter = gsap.quickSetter([markerStart, markerEnd], direction.a, _px));\n\n if (!useFixedPosition && !(_proxies.length && _getProxyProp(scroller, \"fixedMarkers\") === true)) {\n _makePositionable(isViewport ? _body : scroller);\n\n gsap.set([markerStartTrigger, markerEndTrigger], {\n force3D: true\n });\n markerStartSetter = gsap.quickSetter(markerStartTrigger, direction.a, _px);\n markerEndSetter = gsap.quickSetter(markerEndTrigger, direction.a, _px);\n }\n }\n\n if (containerAnimation) {\n var oldOnUpdate = containerAnimation.vars.onUpdate,\n oldParams = containerAnimation.vars.onUpdateParams;\n containerAnimation.eventCallback(\"onUpdate\", function () {\n self.update(0, 0, 1);\n oldOnUpdate && oldOnUpdate.apply(containerAnimation, oldParams || []);\n });\n }\n\n self.previous = function () {\n return _triggers[_triggers.indexOf(self) - 1];\n };\n\n self.next = function () {\n return _triggers[_triggers.indexOf(self) + 1];\n };\n\n self.revert = function (revert, temp) {\n if (!temp) {\n return self.kill(true);\n } // for compatibility with gsap.context() and gsap.matchMedia() which call revert()\n\n\n var r = revert !== false || !self.enabled,\n prevRefreshing = _refreshing;\n\n if (r !== self.isReverted) {\n if (r) {\n // if (!self.scroll.rec && (_refreshing || _refreshingAll)) {\n // \tself.scroll.rec = scrollFunc();\n // \t_refreshingAll && scrollFunc(0);\n // }\n prevScroll = Math.max(scrollFunc(), self.scroll.rec || 0); // record the scroll so we can revert later (repositioning/pinning things can affect scroll position). In the static refresh() method, we first record all the scroll positions as a reference.\n\n prevProgress = self.progress;\n prevAnimProgress = animation && animation.progress();\n }\n\n markerStart && [markerStart, markerEnd, markerStartTrigger, markerEndTrigger].forEach(function (m) {\n return m.style.display = r ? \"none\" : \"block\";\n });\n\n if (r) {\n _refreshing = self;\n self.update(r); // make sure the pin is back in its original position so that all the measurements are correct. do this BEFORE swapping the pin out\n }\n\n if (pin && (!pinReparent || !self.isActive)) {\n if (r) {\n _swapPinOut(pin, spacer, pinOriginalState);\n } else {\n _swapPinIn(pin, spacer, _getComputedStyle(pin), spacerState);\n }\n }\n\n r || self.update(r); // when we're restoring, the update should run AFTER swapping the pin into its pin-spacer.\n\n _refreshing = prevRefreshing; // restore. We set it to true during the update() so that things fire properly in there.\n\n self.isReverted = r;\n }\n };\n\n self.refresh = function (soft, force) {\n if ((_refreshing || !self.enabled) && !force) {\n return;\n }\n\n if (pin && soft && _lastScrollTime) {\n _addListener(ScrollTrigger, \"scrollEnd\", _softRefresh);\n\n return;\n }\n\n !_refreshingAll && onRefreshInit && onRefreshInit(self);\n _refreshing = self;\n lastRefresh = _getTime();\n\n if (tweenTo.tween) {\n tweenTo.tween.kill();\n tweenTo.tween = 0;\n }\n\n scrubTween && scrubTween.pause();\n invalidateOnRefresh && animation && animation.revert({\n kill: false\n }).invalidate();\n self.isReverted || self.revert(true, true);\n self._subPinOffset = false; // we'll set this to true in the sub-pins if we find any\n\n var size = getScrollerSize(),\n scrollerBounds = getScrollerOffsets(),\n max = containerAnimation ? containerAnimation.duration() : _maxScroll(scroller, direction),\n isFirstRefresh = change <= 0.01,\n offset = 0,\n otherPinOffset = 0,\n parsedEnd = vars.end,\n parsedEndTrigger = vars.endTrigger || trigger,\n parsedStart = vars.start || (vars.start === 0 || !trigger ? 0 : pin ? \"0 0\" : \"0 100%\"),\n pinnedContainer = self.pinnedContainer = vars.pinnedContainer && _getTarget(vars.pinnedContainer),\n triggerIndex = trigger && Math.max(0, _triggers.indexOf(self)) || 0,\n i = triggerIndex,\n cs,\n bounds,\n scroll,\n isVertical,\n override,\n curTrigger,\n curPin,\n oppositeScroll,\n initted,\n revertedPins,\n forcedOverflow;\n\n while (i--) {\n // user might try to pin the same element more than once, so we must find any prior triggers with the same pin, revert them, and determine how long they're pinning so that we can offset things appropriately. Make sure we revert from last to first so that things \"rewind\" properly.\n curTrigger = _triggers[i];\n curTrigger.end || curTrigger.refresh(0, 1) || (_refreshing = self); // if it's a timeline-based trigger that hasn't been fully initialized yet because it's waiting for 1 tick, just force the refresh() here, otherwise if it contains a pin that's supposed to affect other ScrollTriggers further down the page, they won't be adjusted properly.\n\n curPin = curTrigger.pin;\n\n if (curPin && (curPin === trigger || curPin === pin || curPin === pinnedContainer) && !curTrigger.isReverted) {\n revertedPins || (revertedPins = []);\n revertedPins.unshift(curTrigger); // we'll revert from first to last to make sure things reach their end state properly\n\n curTrigger.revert(true, true);\n }\n\n if (curTrigger !== _triggers[i]) {\n // in case it got removed.\n triggerIndex--;\n i--;\n }\n }\n\n _isFunction(parsedStart) && (parsedStart = parsedStart(self));\n start = _parsePosition(parsedStart, trigger, size, direction, scrollFunc(), markerStart, markerStartTrigger, self, scrollerBounds, borderWidth, useFixedPosition, max, containerAnimation) || (pin ? -0.001 : 0);\n _isFunction(parsedEnd) && (parsedEnd = parsedEnd(self));\n\n if (_isString(parsedEnd) && !parsedEnd.indexOf(\"+=\")) {\n if (~parsedEnd.indexOf(\" \")) {\n parsedEnd = (_isString(parsedStart) ? parsedStart.split(\" \")[0] : \"\") + parsedEnd;\n } else {\n offset = _offsetToPx(parsedEnd.substr(2), size);\n parsedEnd = _isString(parsedStart) ? parsedStart : (containerAnimation ? gsap.utils.mapRange(0, containerAnimation.duration(), containerAnimation.scrollTrigger.start, containerAnimation.scrollTrigger.end, start) : start) + offset; // _parsePosition won't factor in the offset if the start is a number, so do it here.\n\n parsedEndTrigger = trigger;\n }\n }\n\n end = Math.max(start, _parsePosition(parsedEnd || (parsedEndTrigger ? \"100% 0\" : max), parsedEndTrigger, size, direction, scrollFunc() + offset, markerEnd, markerEndTrigger, self, scrollerBounds, borderWidth, useFixedPosition, max, containerAnimation)) || -0.001;\n change = end - start || (start -= 0.01) && 0.001;\n offset = 0;\n i = triggerIndex;\n\n while (i--) {\n curTrigger = _triggers[i];\n curPin = curTrigger.pin;\n\n if (curPin && curTrigger.start - curTrigger._pinPush <= start && !containerAnimation && curTrigger.end > 0) {\n cs = curTrigger.end - curTrigger.start;\n\n if ((curPin === trigger && curTrigger.start - curTrigger._pinPush < start || curPin === pinnedContainer) && !_isNumber(parsedStart)) {\n // numeric start values shouldn't be offset at all - treat them as absolute\n offset += cs * (1 - curTrigger.progress);\n }\n\n curPin === pin && (otherPinOffset += cs);\n }\n }\n\n start += offset;\n end += offset;\n\n if (isFirstRefresh) {\n // on the very first refresh(), the prevProgress couldn't have been accurate yet because the start/end were never calculated, so we set it here. Before 3.11.5, it could lead to an inaccurate scroll position restoration with snapping.\n prevProgress = gsap.utils.clamp(0, 1, gsap.utils.normalize(start, end, prevScroll));\n }\n\n self._pinPush = otherPinOffset;\n\n if (markerStart && offset) {\n // offset the markers if necessary\n cs = {};\n cs[direction.a] = \"+=\" + offset;\n pinnedContainer && (cs[direction.p] = \"-=\" + scrollFunc());\n gsap.set([markerStart, markerEnd], cs);\n }\n\n if (pin) {\n cs = _getComputedStyle(pin);\n isVertical = direction === _vertical;\n scroll = scrollFunc(); // recalculate because the triggers can affect the scroll\n\n pinStart = parseFloat(pinGetter(direction.a)) + otherPinOffset;\n\n if (!max && end > 1) {\n // makes sure the scroller has a scrollbar, otherwise if something has width: 100%, for example, it would be too big (exclude the scrollbar). See https://greensock.com/forums/topic/25182-scrolltrigger-width-of-page-increase-where-markers-are-set-to-false/\n forcedOverflow = (isViewport ? _doc.scrollingElement || _docEl : scroller).style;\n forcedOverflow = {\n style: forcedOverflow,\n value: forcedOverflow[\"overflow\" + direction.a.toUpperCase()]\n };\n forcedOverflow.style[\"overflow\" + direction.a.toUpperCase()] = \"scroll\";\n }\n\n _swapPinIn(pin, spacer, cs);\n\n pinState = _getState(pin); // transforms will interfere with the top/left/right/bottom placement, so remove them temporarily. getBoundingClientRect() factors in transforms.\n\n bounds = _getBounds(pin, true);\n oppositeScroll = useFixedPosition && _getScrollFunc(scroller, isVertical ? _horizontal : _vertical)();\n\n if (pinSpacing) {\n spacerState = [pinSpacing + direction.os2, change + otherPinOffset + _px];\n spacerState.t = spacer;\n i = pinSpacing === _padding ? _getSize(pin, direction) + change + otherPinOffset : 0;\n i && spacerState.push(direction.d, i + _px); // for box-sizing: border-box (must include padding).\n\n _setState(spacerState);\n\n if (pinnedContainer) {\n // in ScrollTrigger.refresh(), we need to re-evaluate the pinContainer's size because this pinSpacing may stretch it out, but we can't just add the exact distance because depending on layout, it may not push things down or it may only do so partially.\n _triggers.forEach(function (t) {\n if (t.pin === pinnedContainer && t.vars.pinSpacing !== false) {\n t._subPinOffset = true;\n }\n });\n }\n\n useFixedPosition && scrollFunc(prevScroll);\n }\n\n if (useFixedPosition) {\n override = {\n top: bounds.top + (isVertical ? scroll - start : oppositeScroll) + _px,\n left: bounds.left + (isVertical ? oppositeScroll : scroll - start) + _px,\n boxSizing: \"border-box\",\n position: \"fixed\"\n };\n override[_width] = override[\"max\" + _Width] = Math.ceil(bounds.width) + _px;\n override[_height] = override[\"max\" + _Height] = Math.ceil(bounds.height) + _px;\n override[_margin] = override[_margin + _Top] = override[_margin + _Right] = override[_margin + _Bottom] = override[_margin + _Left] = \"0\";\n override[_padding] = cs[_padding];\n override[_padding + _Top] = cs[_padding + _Top];\n override[_padding + _Right] = cs[_padding + _Right];\n override[_padding + _Bottom] = cs[_padding + _Bottom];\n override[_padding + _Left] = cs[_padding + _Left];\n pinActiveState = _copyState(pinOriginalState, override, pinReparent);\n _refreshingAll && scrollFunc(0);\n }\n\n if (animation) {\n // the animation might be affecting the transform, so we must jump to the end, check the value, and compensate accordingly. Otherwise, when it becomes unpinned, the pinSetter() will get set to a value that doesn't include whatever the animation did.\n initted = animation._initted; // if not, we must invalidate() after this step, otherwise it could lock in starting values prematurely.\n\n _suppressOverwrites(1);\n\n animation.render(animation.duration(), true, true);\n pinChange = pinGetter(direction.a) - pinStart + change + otherPinOffset;\n pinMoves = Math.abs(change - pinChange) > 1;\n useFixedPosition && pinMoves && pinActiveState.splice(pinActiveState.length - 2, 2); // transform is the last property/value set in the state Array. Since the animation is controlling that, we should omit it.\n\n animation.render(0, true, true);\n initted || animation.invalidate(true);\n animation.parent || animation.totalTime(animation.totalTime()); // if, for example, a toggleAction called play() and then refresh() happens and when we render(1) above, it would cause the animation to complete and get removed from its parent, so this makes sure it gets put back in.\n\n _suppressOverwrites(0);\n } else {\n pinChange = change;\n }\n\n forcedOverflow && (forcedOverflow.value ? forcedOverflow.style[\"overflow\" + direction.a.toUpperCase()] = forcedOverflow.value : forcedOverflow.style.removeProperty(\"overflow-\" + direction.a));\n } else if (trigger && scrollFunc() && !containerAnimation) {\n // it may be INSIDE a pinned element, so walk up the tree and look for any elements with _pinOffset to compensate because anything with pinSpacing that's already scrolled would throw off the measurements in getBoundingClientRect()\n bounds = trigger.parentNode;\n\n while (bounds && bounds !== _body) {\n if (bounds._pinOffset) {\n start -= bounds._pinOffset;\n end -= bounds._pinOffset;\n }\n\n bounds = bounds.parentNode;\n }\n }\n\n revertedPins && revertedPins.forEach(function (t) {\n return t.revert(false, true);\n });\n self.start = start;\n self.end = end;\n scroll1 = scroll2 = _refreshingAll ? prevScroll : scrollFunc(); // reset velocity\n\n if (!containerAnimation && !_refreshingAll) {\n scroll1 < prevScroll && scrollFunc(prevScroll);\n self.scroll.rec = 0;\n }\n\n self.revert(false, true);\n\n if (snapDelayedCall) {\n lastSnap = -1;\n self.isActive && scrollFunc(start + change * prevProgress); // just so snapping gets re-enabled, clear out any recorded last value\n\n snapDelayedCall.restart(true);\n }\n\n _refreshing = 0;\n animation && isToggle && (animation._initted || prevAnimProgress) && animation.progress() !== prevAnimProgress && animation.progress(prevAnimProgress, true).render(animation.time(), true, true); // must force a re-render because if saveStyles() was used on the target(s), the styles could have been wiped out during the refresh().\n\n if (isFirstRefresh || prevProgress !== self.progress || containerAnimation) {\n // ensures that the direction is set properly (when refreshing, progress is set back to 0 initially, then back again to wherever it needs to be) and that callbacks are triggered.\n animation && !isToggle && animation.totalProgress(containerAnimation && start < -0.001 && !prevProgress ? gsap.utils.normalize(start, end, 0) : prevProgress, true); // to avoid issues where animation callbacks like onStart aren't triggered.\n\n self.progress = (scroll1 - start) / change === prevProgress ? 0 : prevProgress;\n }\n\n pin && pinSpacing && (spacer._pinOffset = Math.round(self.progress * pinChange));\n scrubTween && scrubTween.invalidate();\n onRefresh && !_refreshingAll && onRefresh(self); // when refreshing all, we do extra work to correct pinnedContainer sizes and ensure things don't exceed the maxScroll, so we should do all the refreshes at the end after all that work so that the start/end values are corrected.\n };\n\n self.getVelocity = function () {\n return (scrollFunc() - scroll2) / (_getTime() - _time2) * 1000 || 0;\n };\n\n self.endAnimation = function () {\n _endAnimation(self.callbackAnimation);\n\n if (animation) {\n scrubTween ? scrubTween.progress(1) : !animation.paused() ? _endAnimation(animation, animation.reversed()) : isToggle || _endAnimation(animation, self.direction < 0, 1);\n }\n };\n\n self.labelToScroll = function (label) {\n return animation && animation.labels && (start || self.refresh() || start) + animation.labels[label] / animation.duration() * change || 0;\n };\n\n self.getTrailing = function (name) {\n var i = _triggers.indexOf(self),\n a = self.direction > 0 ? _triggers.slice(0, i).reverse() : _triggers.slice(i + 1);\n\n return (_isString(name) ? a.filter(function (t) {\n return t.vars.preventOverlaps === name;\n }) : a).filter(function (t) {\n return self.direction > 0 ? t.end <= start : t.start >= end;\n });\n };\n\n self.update = function (reset, recordVelocity, forceFake) {\n if (containerAnimation && !forceFake && !reset) {\n return;\n }\n\n var scroll = _refreshingAll === true ? prevScroll : self.scroll(),\n p = reset ? 0 : (scroll - start) / change,\n clipped = p < 0 ? 0 : p > 1 ? 1 : p || 0,\n prevProgress = self.progress,\n isActive,\n wasActive,\n toggleState,\n action,\n stateChanged,\n toggled,\n isAtMax,\n isTakingAction;\n\n if (recordVelocity) {\n scroll2 = scroll1;\n scroll1 = containerAnimation ? scrollFunc() : scroll;\n\n if (snap) {\n snap2 = snap1;\n snap1 = animation && !isToggle ? animation.totalProgress() : clipped;\n }\n } // anticipate the pinning a few ticks ahead of time based on velocity to avoid a visual glitch due to the fact that most browsers do scrolling on a separate thread (not synced with requestAnimationFrame).\n\n\n anticipatePin && !clipped && pin && !_refreshing && !_startup && _lastScrollTime && start < scroll + (scroll - scroll2) / (_getTime() - _time2) * anticipatePin && (clipped = 0.0001);\n\n if (clipped !== prevProgress && self.enabled) {\n isActive = self.isActive = !!clipped && clipped < 1;\n wasActive = !!prevProgress && prevProgress < 1;\n toggled = isActive !== wasActive;\n stateChanged = toggled || !!clipped !== !!prevProgress; // could go from start all the way to end, thus it didn't toggle but it did change state in a sense (may need to fire a callback)\n\n self.direction = clipped > prevProgress ? 1 : -1;\n self.progress = clipped;\n\n if (stateChanged && !_refreshing) {\n toggleState = clipped && !prevProgress ? 0 : clipped === 1 ? 1 : prevProgress === 1 ? 2 : 3; // 0 = enter, 1 = leave, 2 = enterBack, 3 = leaveBack (we prioritize the FIRST encounter, thus if you scroll really fast past the onEnter and onLeave in one tick, it'd prioritize onEnter.\n\n if (isToggle) {\n action = !toggled && toggleActions[toggleState + 1] !== \"none\" && toggleActions[toggleState + 1] || toggleActions[toggleState]; // if it didn't toggle, that means it shot right past and since we prioritize the \"enter\" action, we should switch to the \"leave\" in this case (but only if one is defined)\n\n isTakingAction = animation && (action === \"complete\" || action === \"reset\" || action in animation);\n }\n }\n\n preventOverlaps && (toggled || isTakingAction) && (isTakingAction || scrub || !animation) && (_isFunction(preventOverlaps) ? preventOverlaps(self) : self.getTrailing(preventOverlaps).forEach(function (t) {\n return t.endAnimation();\n }));\n\n if (!isToggle) {\n if (scrubTween && !_refreshing && !_startup) {\n scrubTween._dp._time - scrubTween._start !== scrubTween._time && scrubTween.render(scrubTween._dp._time - scrubTween._start); // if there's a scrub on both the container animation and this one (or a ScrollSmoother), the update order would cause this one not to have rendered yet, so it wouldn't make any progress before we .restart() it heading toward the new progress so it'd appear stuck thus we force a render here.\n\n if (scrubTween.resetTo) {\n scrubTween.resetTo(\"totalProgress\", clipped, animation._tTime / animation._tDur);\n } else {\n // legacy support (courtesy), before 3.10.0\n scrubTween.vars.totalProgress = clipped;\n scrubTween.invalidate().restart();\n }\n } else if (animation) {\n animation.totalProgress(clipped, !!_refreshing);\n }\n }\n\n if (pin) {\n reset && pinSpacing && (spacer.style[pinSpacing + direction.os2] = spacingStart);\n\n if (!useFixedPosition) {\n pinSetter(_round(pinStart + pinChange * clipped));\n } else if (stateChanged) {\n isAtMax = !reset && clipped > prevProgress && end + 1 > scroll && scroll + 1 >= _maxScroll(scroller, direction); // if it's at the VERY end of the page, don't switch away from position: fixed because it's pointless and it could cause a brief flash when the user scrolls back up (when it gets pinned again)\n\n if (pinReparent) {\n if (!reset && (isActive || isAtMax)) {\n var bounds = _getBounds(pin, true),\n _offset = scroll - start;\n\n _reparent(pin, _body, bounds.top + (direction === _vertical ? _offset : 0) + _px, bounds.left + (direction === _vertical ? 0 : _offset) + _px);\n } else {\n _reparent(pin, spacer);\n }\n }\n\n _setState(isActive || isAtMax ? pinActiveState : pinState);\n\n pinMoves && clipped < 1 && isActive || pinSetter(pinStart + (clipped === 1 && !isAtMax ? pinChange : 0));\n }\n }\n\n snap && !tweenTo.tween && !_refreshing && !_startup && snapDelayedCall.restart(true);\n toggleClass && (toggled || once && clipped && (clipped < 1 || !_limitCallbacks)) && _toArray(toggleClass.targets).forEach(function (el) {\n return el.classList[isActive || once ? \"add\" : \"remove\"](toggleClass.className);\n }); // classes could affect positioning, so do it even if reset or refreshing is true.\n\n onUpdate && !isToggle && !reset && onUpdate(self);\n\n if (stateChanged && !_refreshing) {\n if (isToggle) {\n if (isTakingAction) {\n if (action === \"complete\") {\n animation.pause().totalProgress(1);\n } else if (action === \"reset\") {\n animation.restart(true).pause();\n } else if (action === \"restart\") {\n animation.restart(true);\n } else {\n animation[action]();\n }\n }\n\n onUpdate && onUpdate(self);\n }\n\n if (toggled || !_limitCallbacks) {\n // on startup, the page could be scrolled and we don't want to fire callbacks that didn't toggle. For example onEnter shouldn't fire if the ScrollTrigger isn't actually entered.\n onToggle && toggled && _callback(self, onToggle);\n callbacks[toggleState] && _callback(self, callbacks[toggleState]);\n once && (clipped === 1 ? self.kill(false, 1) : callbacks[toggleState] = 0); // a callback shouldn't be called again if once is true.\n\n if (!toggled) {\n // it's possible to go completely past, like from before the start to after the end (or vice-versa) in which case BOTH callbacks should be fired in that order\n toggleState = clipped === 1 ? 1 : 3;\n callbacks[toggleState] && _callback(self, callbacks[toggleState]);\n }\n }\n\n if (fastScrollEnd && !isActive && Math.abs(self.getVelocity()) > (_isNumber(fastScrollEnd) ? fastScrollEnd : 2500)) {\n _endAnimation(self.callbackAnimation);\n\n scrubTween ? scrubTween.progress(1) : _endAnimation(animation, action === \"reverse\" ? 1 : !clipped, 1);\n }\n } else if (isToggle && onUpdate && !_refreshing) {\n onUpdate(self);\n }\n } // update absolutely-positioned markers (only if the scroller isn't the viewport)\n\n\n if (markerEndSetter) {\n var n = containerAnimation ? scroll / containerAnimation.duration() * (containerAnimation._caScrollDist || 0) : scroll;\n markerStartSetter(n + (markerStartTrigger._isFlipped ? 1 : 0));\n markerEndSetter(n);\n }\n\n caMarkerSetter && caMarkerSetter(-scroll / containerAnimation.duration() * (containerAnimation._caScrollDist || 0));\n };\n\n self.enable = function (reset, refresh) {\n if (!self.enabled) {\n self.enabled = true;\n\n _addListener(scroller, \"resize\", _onResize);\n\n _addListener(isViewport ? _doc : scroller, \"scroll\", _onScroll);\n\n onRefreshInit && _addListener(ScrollTrigger, \"refreshInit\", onRefreshInit);\n\n if (reset !== false) {\n self.progress = prevProgress = 0;\n scroll1 = scroll2 = lastSnap = scrollFunc();\n }\n\n refresh !== false && self.refresh();\n }\n };\n\n self.getTween = function (snap) {\n return snap && tweenTo ? tweenTo.tween : scrubTween;\n };\n\n self.setPositions = function (newStart, newEnd) {\n // doesn't persist after refresh()! Intended to be a way to override values that were set during refresh(), like you could set it in onRefresh()\n if (pin) {\n pinStart += newStart - start;\n pinChange += newEnd - newStart - change;\n pinSpacing === _padding && self.adjustPinSpacing(newEnd - newStart - change);\n }\n\n self.start = start = newStart;\n self.end = end = newEnd;\n change = newEnd - newStart;\n self.update();\n };\n\n self.adjustPinSpacing = function (amount) {\n if (spacerState && amount) {\n var i = spacerState.indexOf(direction.d) + 1;\n spacerState[i] = parseFloat(spacerState[i]) + amount + _px;\n spacerState[1] = parseFloat(spacerState[1]) + amount + _px;\n\n _setState(spacerState);\n }\n };\n\n self.disable = function (reset, allowAnimation) {\n if (self.enabled) {\n reset !== false && self.revert(true, true);\n self.enabled = self.isActive = false;\n allowAnimation || scrubTween && scrubTween.pause();\n prevScroll = 0;\n pinCache && (pinCache.uncache = 1);\n onRefreshInit && _removeListener(ScrollTrigger, \"refreshInit\", onRefreshInit);\n\n if (snapDelayedCall) {\n snapDelayedCall.pause();\n tweenTo.tween && tweenTo.tween.kill() && (tweenTo.tween = 0);\n }\n\n if (!isViewport) {\n var i = _triggers.length;\n\n while (i--) {\n if (_triggers[i].scroller === scroller && _triggers[i] !== self) {\n return; //don't remove the listeners if there are still other triggers referencing it.\n }\n }\n\n _removeListener(scroller, \"resize\", _onResize);\n\n _removeListener(scroller, \"scroll\", _onScroll);\n }\n }\n };\n\n self.kill = function (revert, allowAnimation) {\n self.disable(revert, allowAnimation);\n scrubTween && !allowAnimation && scrubTween.kill();\n id && delete _ids[id];\n\n var i = _triggers.indexOf(self);\n\n i >= 0 && _triggers.splice(i, 1);\n i === _i && _direction > 0 && _i--; // if we're in the middle of a refresh() or update(), splicing would cause skips in the index, so adjust...\n // if no other ScrollTrigger instances of the same scroller are found, wipe out any recorded scroll position. Otherwise, in a single page application, for example, it could maintain scroll position when it really shouldn't.\n\n i = 0;\n\n _triggers.forEach(function (t) {\n return t.scroller === self.scroller && (i = 1);\n });\n\n i || _refreshingAll || (self.scroll.rec = 0);\n\n if (animation) {\n animation.scrollTrigger = null;\n revert && animation.revert({\n kill: false\n });\n allowAnimation || animation.kill();\n }\n\n markerStart && [markerStart, markerEnd, markerStartTrigger, markerEndTrigger].forEach(function (m) {\n return m.parentNode && m.parentNode.removeChild(m);\n });\n _primary === self && (_primary = 0);\n\n if (pin) {\n pinCache && (pinCache.uncache = 1);\n i = 0;\n\n _triggers.forEach(function (t) {\n return t.pin === pin && i++;\n });\n\n i || (pinCache.spacer = 0); // if there aren't any more ScrollTriggers with the same pin, remove the spacer, otherwise it could be contaminated with old/stale values if the user re-creates a ScrollTrigger for the same element.\n }\n\n vars.onKill && vars.onKill(self);\n };\n\n self.enable(false, false);\n customRevertReturn && customRevertReturn(self);\n !animation || !animation.add || change ? self.refresh() : gsap.delayedCall(0.01, function () {\n return start || end || self.refresh();\n }) && (change = 0.01) && (start = end = 0); // if the animation is a timeline, it may not have been populated yet, so it wouldn't render at the proper place on the first refresh(), thus we should schedule one for the next tick. If \"change\" is defined, we know it must be re-enabling, thus we can refresh() right away.\n\n pin && _queueRefreshAll(); // pinning could affect the positions of other things, so make sure we queue a full refresh()\n };\n\n ScrollTrigger.register = function register(core) {\n if (!_coreInitted) {\n gsap = core || _getGSAP();\n _windowExists() && window.document && ScrollTrigger.enable();\n _coreInitted = _enabled;\n }\n\n return _coreInitted;\n };\n\n ScrollTrigger.defaults = function defaults(config) {\n if (config) {\n for (var p in config) {\n _defaults[p] = config[p];\n }\n }\n\n return _defaults;\n };\n\n ScrollTrigger.disable = function disable(reset, kill) {\n _enabled = 0;\n\n _triggers.forEach(function (trigger) {\n return trigger[kill ? \"kill\" : \"disable\"](reset);\n });\n\n _removeListener(_win, \"wheel\", _onScroll);\n\n _removeListener(_doc, \"scroll\", _onScroll);\n\n clearInterval(_syncInterval);\n\n _removeListener(_doc, \"touchcancel\", _passThrough);\n\n _removeListener(_body, \"touchstart\", _passThrough);\n\n _multiListener(_removeListener, _doc, \"pointerdown,touchstart,mousedown\", _pointerDownHandler);\n\n _multiListener(_removeListener, _doc, \"pointerup,touchend,mouseup\", _pointerUpHandler);\n\n _resizeDelay.kill();\n\n _iterateAutoRefresh(_removeListener);\n\n for (var i = 0; i < _scrollers.length; i += 3) {\n _wheelListener(_removeListener, _scrollers[i], _scrollers[i + 1]);\n\n _wheelListener(_removeListener, _scrollers[i], _scrollers[i + 2]);\n }\n };\n\n ScrollTrigger.enable = function enable() {\n _win = window;\n _doc = document;\n _docEl = _doc.documentElement;\n _body = _doc.body;\n\n if (gsap) {\n _toArray = gsap.utils.toArray;\n _clamp = gsap.utils.clamp;\n _context = gsap.core.context || _passThrough;\n _suppressOverwrites = gsap.core.suppressOverwrites || _passThrough;\n _scrollRestoration = _win.history.scrollRestoration || \"auto\";\n _lastScroll = _win.pageYOffset;\n gsap.core.globals(\"ScrollTrigger\", ScrollTrigger); // must register the global manually because in Internet Explorer, functions (classes) don't have a \"name\" property.\n\n if (_body) {\n _enabled = 1;\n\n _rafBugFix();\n\n Observer.register(gsap); // isTouch is 0 if no touch, 1 if ONLY touch, and 2 if it can accommodate touch but also other types like mouse/pointer.\n\n ScrollTrigger.isTouch = Observer.isTouch;\n _fixIOSBug = Observer.isTouch && /(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent); // since 2017, iOS has had a bug that causes event.clientX/Y to be inaccurate when a scroll occurs, thus we must alternate ignoring every other touchmove event to work around it. See https://bugs.webkit.org/show_bug.cgi?id=181954 and https://codepen.io/GreenSock/pen/ExbrPNa/087cef197dc35445a0951e8935c41503\n\n _addListener(_win, \"wheel\", _onScroll); // mostly for 3rd party smooth scrolling libraries.\n\n\n _root = [_win, _doc, _docEl, _body];\n\n if (gsap.matchMedia) {\n ScrollTrigger.matchMedia = function (vars) {\n var mm = gsap.matchMedia(),\n p;\n\n for (p in vars) {\n mm.add(p, vars[p]);\n }\n\n return mm;\n };\n\n gsap.addEventListener(\"matchMediaInit\", function () {\n return _revertAll();\n });\n gsap.addEventListener(\"matchMediaRevert\", function () {\n return _revertRecorded();\n });\n gsap.addEventListener(\"matchMedia\", function () {\n _refreshAll(0, 1);\n\n _dispatch(\"matchMedia\");\n });\n gsap.matchMedia(\"(orientation: portrait)\", function () {\n // when orientation changes, we should take new base measurements for the ignoreMobileResize feature.\n _setBaseDimensions();\n\n return _setBaseDimensions;\n });\n } else {\n console.warn(\"Requires GSAP 3.11.0 or later\");\n }\n\n _setBaseDimensions();\n\n _addListener(_doc, \"scroll\", _onScroll); // some browsers (like Chrome), the window stops dispatching scroll events on the window if you scroll really fast, but it's consistent on the document!\n\n\n var bodyStyle = _body.style,\n border = bodyStyle.borderTopStyle,\n AnimationProto = gsap.core.Animation.prototype,\n bounds,\n i;\n AnimationProto.revert || Object.defineProperty(AnimationProto, \"revert\", {\n value: function value() {\n return this.time(-0.01, true);\n }\n }); // only for backwards compatibility (Animation.revert() was added after 3.10.4)\n\n bodyStyle.borderTopStyle = \"solid\"; // works around an issue where a margin of a child element could throw off the bounds of the _body, making it seem like there's a margin when there actually isn't. The border ensures that the bounds are accurate.\n\n bounds = _getBounds(_body);\n _vertical.m = Math.round(bounds.top + _vertical.sc()) || 0; // accommodate the offset of the caused by margins and/or padding\n\n _horizontal.m = Math.round(bounds.left + _horizontal.sc()) || 0;\n border ? bodyStyle.borderTopStyle = border : bodyStyle.removeProperty(\"border-top-style\"); // TODO: (?) maybe move to leveraging the velocity mechanism in Observer and skip intervals.\n\n _syncInterval = setInterval(_sync, 250);\n gsap.delayedCall(0.5, function () {\n return _startup = 0;\n });\n\n _addListener(_doc, \"touchcancel\", _passThrough); // some older Android devices intermittently stop dispatching \"touchmove\" events if we don't listen for \"touchcancel\" on the document.\n\n\n _addListener(_body, \"touchstart\", _passThrough); //works around Safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/\n\n\n _multiListener(_addListener, _doc, \"pointerdown,touchstart,mousedown\", _pointerDownHandler);\n\n _multiListener(_addListener, _doc, \"pointerup,touchend,mouseup\", _pointerUpHandler);\n\n _transformProp = gsap.utils.checkPrefix(\"transform\");\n\n _stateProps.push(_transformProp);\n\n _coreInitted = _getTime();\n _resizeDelay = gsap.delayedCall(0.2, _refreshAll).pause();\n _autoRefresh = [_doc, \"visibilitychange\", function () {\n var w = _win.innerWidth,\n h = _win.innerHeight;\n\n if (_doc.hidden) {\n _prevWidth = w;\n _prevHeight = h;\n } else if (_prevWidth !== w || _prevHeight !== h) {\n _onResize();\n }\n }, _doc, \"DOMContentLoaded\", _refreshAll, _win, \"load\", _refreshAll, _win, \"resize\", _onResize];\n\n _iterateAutoRefresh(_addListener);\n\n _triggers.forEach(function (trigger) {\n return trigger.enable(0, 1);\n });\n\n for (i = 0; i < _scrollers.length; i += 3) {\n _wheelListener(_removeListener, _scrollers[i], _scrollers[i + 1]);\n\n _wheelListener(_removeListener, _scrollers[i], _scrollers[i + 2]);\n }\n }\n }\n };\n\n ScrollTrigger.config = function config(vars) {\n \"limitCallbacks\" in vars && (_limitCallbacks = !!vars.limitCallbacks);\n var ms = vars.syncInterval;\n ms && clearInterval(_syncInterval) || (_syncInterval = ms) && setInterval(_sync, ms);\n \"ignoreMobileResize\" in vars && (_ignoreMobileResize = ScrollTrigger.isTouch === 1 && vars.ignoreMobileResize);\n\n if (\"autoRefreshEvents\" in vars) {\n _iterateAutoRefresh(_removeListener) || _iterateAutoRefresh(_addListener, vars.autoRefreshEvents || \"none\");\n _ignoreResize = (vars.autoRefreshEvents + \"\").indexOf(\"resize\") === -1;\n }\n };\n\n ScrollTrigger.scrollerProxy = function scrollerProxy(target, vars) {\n var t = _getTarget(target),\n i = _scrollers.indexOf(t),\n isViewport = _isViewport(t);\n\n if (~i) {\n _scrollers.splice(i, isViewport ? 6 : 2);\n }\n\n if (vars) {\n isViewport ? _proxies.unshift(_win, vars, _body, vars, _docEl, vars) : _proxies.unshift(t, vars);\n }\n };\n\n ScrollTrigger.clearMatchMedia = function clearMatchMedia(query) {\n _triggers.forEach(function (t) {\n return t._ctx && t._ctx.query === query && t._ctx.kill(true, true);\n });\n };\n\n ScrollTrigger.isInViewport = function isInViewport(element, ratio, horizontal) {\n var bounds = (_isString(element) ? _getTarget(element) : element).getBoundingClientRect(),\n offset = bounds[horizontal ? _width : _height] * ratio || 0;\n return horizontal ? bounds.right - offset > 0 && bounds.left + offset < _win.innerWidth : bounds.bottom - offset > 0 && bounds.top + offset < _win.innerHeight;\n };\n\n ScrollTrigger.positionInViewport = function positionInViewport(element, referencePoint, horizontal) {\n _isString(element) && (element = _getTarget(element));\n var bounds = element.getBoundingClientRect(),\n size = bounds[horizontal ? _width : _height],\n offset = referencePoint == null ? size / 2 : referencePoint in _keywords ? _keywords[referencePoint] * size : ~referencePoint.indexOf(\"%\") ? parseFloat(referencePoint) * size / 100 : parseFloat(referencePoint) || 0;\n return horizontal ? (bounds.left + offset) / _win.innerWidth : (bounds.top + offset) / _win.innerHeight;\n };\n\n ScrollTrigger.killAll = function killAll(allowListeners) {\n _triggers.slice(0).forEach(function (t) {\n return t.vars.id !== \"ScrollSmoother\" && t.kill();\n });\n\n if (allowListeners !== true) {\n var listeners = _listeners.killAll || [];\n _listeners = {};\n listeners.forEach(function (f) {\n return f();\n });\n }\n };\n\n return ScrollTrigger;\n}();\nScrollTrigger.version = \"3.11.5\";\n\nScrollTrigger.saveStyles = function (targets) {\n return targets ? _toArray(targets).forEach(function (target) {\n // saved styles are recorded in a consecutive alternating Array, like [element, cssText, transform attribute, cache, matchMedia, ...]\n if (target && target.style) {\n var i = _savedStyles.indexOf(target);\n\n i >= 0 && _savedStyles.splice(i, 5);\n\n _savedStyles.push(target, target.style.cssText, target.getBBox && target.getAttribute(\"transform\"), gsap.core.getCache(target), _context());\n }\n }) : _savedStyles;\n};\n\nScrollTrigger.revert = function (soft, media) {\n return _revertAll(!soft, media);\n};\n\nScrollTrigger.create = function (vars, animation) {\n return new ScrollTrigger(vars, animation);\n};\n\nScrollTrigger.refresh = function (safe) {\n return safe ? _onResize() : (_coreInitted || ScrollTrigger.register()) && _refreshAll(true);\n};\n\nScrollTrigger.update = function (force) {\n return ++_scrollers.cache && _updateAll(force === true ? 2 : 0);\n};\n\nScrollTrigger.clearScrollMemory = _clearScrollMemory;\n\nScrollTrigger.maxScroll = function (element, horizontal) {\n return _maxScroll(element, horizontal ? _horizontal : _vertical);\n};\n\nScrollTrigger.getScrollFunc = function (element, horizontal) {\n return _getScrollFunc(_getTarget(element), horizontal ? _horizontal : _vertical);\n};\n\nScrollTrigger.getById = function (id) {\n return _ids[id];\n};\n\nScrollTrigger.getAll = function () {\n return _triggers.filter(function (t) {\n return t.vars.id !== \"ScrollSmoother\";\n });\n}; // it's common for people to ScrollTrigger.getAll(t => t.kill()) on page routes, for example, and we don't want it to ruin smooth scrolling by killing the main ScrollSmoother one.\n\n\nScrollTrigger.isScrolling = function () {\n return !!_lastScrollTime;\n};\n\nScrollTrigger.snapDirectional = _snapDirectional;\n\nScrollTrigger.addEventListener = function (type, callback) {\n var a = _listeners[type] || (_listeners[type] = []);\n ~a.indexOf(callback) || a.push(callback);\n};\n\nScrollTrigger.removeEventListener = function (type, callback) {\n var a = _listeners[type],\n i = a && a.indexOf(callback);\n i >= 0 && a.splice(i, 1);\n};\n\nScrollTrigger.batch = function (targets, vars) {\n var result = [],\n varsCopy = {},\n interval = vars.interval || 0.016,\n batchMax = vars.batchMax || 1e9,\n proxyCallback = function proxyCallback(type, callback) {\n var elements = [],\n triggers = [],\n delay = gsap.delayedCall(interval, function () {\n callback(elements, triggers);\n elements = [];\n triggers = [];\n }).pause();\n return function (self) {\n elements.length || delay.restart(true);\n elements.push(self.trigger);\n triggers.push(self);\n batchMax <= elements.length && delay.progress(1);\n };\n },\n p;\n\n for (p in vars) {\n varsCopy[p] = p.substr(0, 2) === \"on\" && _isFunction(vars[p]) && p !== \"onRefreshInit\" ? proxyCallback(p, vars[p]) : vars[p];\n }\n\n if (_isFunction(batchMax)) {\n batchMax = batchMax();\n\n _addListener(ScrollTrigger, \"refresh\", function () {\n return batchMax = vars.batchMax();\n });\n }\n\n _toArray(targets).forEach(function (target) {\n var config = {};\n\n for (p in varsCopy) {\n config[p] = varsCopy[p];\n }\n\n config.trigger = target;\n result.push(ScrollTrigger.create(config));\n });\n\n return result;\n}; // to reduce file size. clamps the scroll and also returns a duration multiplier so that if the scroll gets chopped shorter, the duration gets curtailed as well (otherwise if you're very close to the top of the page, for example, and swipe up really fast, it'll suddenly slow down and take a long time to reach the top).\n\n\nvar _clampScrollAndGetDurationMultiplier = function _clampScrollAndGetDurationMultiplier(scrollFunc, current, end, max) {\n current > max ? scrollFunc(max) : current < 0 && scrollFunc(0);\n return end > max ? (max - current) / (end - current) : end < 0 ? current / (current - end) : 1;\n},\n _allowNativePanning = function _allowNativePanning(target, direction) {\n if (direction === true) {\n target.style.removeProperty(\"touch-action\");\n } else {\n target.style.touchAction = direction === true ? \"auto\" : direction ? \"pan-\" + direction + (Observer.isTouch ? \" pinch-zoom\" : \"\") : \"none\"; // note: Firefox doesn't support it pinch-zoom properly, at least in addition to a pan-x or pan-y.\n }\n\n target === _docEl && _allowNativePanning(_body, direction);\n},\n _overflow = {\n auto: 1,\n scroll: 1\n},\n _nestedScroll = function _nestedScroll(_ref5) {\n var event = _ref5.event,\n target = _ref5.target,\n axis = _ref5.axis;\n\n var node = (event.changedTouches ? event.changedTouches[0] : event).target,\n cache = node._gsap || gsap.core.getCache(node),\n time = _getTime(),\n cs;\n\n if (!cache._isScrollT || time - cache._isScrollT > 2000) {\n // cache for 2 seconds to improve performance.\n while (node && node !== _body && (node.scrollHeight <= node.clientHeight && node.scrollWidth <= node.clientWidth || !(_overflow[(cs = _getComputedStyle(node)).overflowY] || _overflow[cs.overflowX]))) {\n node = node.parentNode;\n }\n\n cache._isScroll = node && node !== target && !_isViewport(node) && (_overflow[(cs = _getComputedStyle(node)).overflowY] || _overflow[cs.overflowX]);\n cache._isScrollT = time;\n }\n\n if (cache._isScroll || axis === \"x\") {\n event.stopPropagation();\n event._gsapAllow = true;\n }\n},\n // capture events on scrollable elements INSIDE the and allow those by calling stopPropagation() when we find a scrollable ancestor\n_inputObserver = function _inputObserver(target, type, inputs, nested) {\n return Observer.create({\n target: target,\n capture: true,\n debounce: false,\n lockAxis: true,\n type: type,\n onWheel: nested = nested && _nestedScroll,\n onPress: nested,\n onDrag: nested,\n onScroll: nested,\n onEnable: function onEnable() {\n return inputs && _addListener(_doc, Observer.eventTypes[0], _captureInputs, false, true);\n },\n onDisable: function onDisable() {\n return _removeListener(_doc, Observer.eventTypes[0], _captureInputs, true);\n }\n });\n},\n _inputExp = /(input|label|select|textarea)/i,\n _inputIsFocused,\n _captureInputs = function _captureInputs(e) {\n var isInput = _inputExp.test(e.target.tagName);\n\n if (isInput || _inputIsFocused) {\n e._gsapAllow = true;\n _inputIsFocused = isInput;\n }\n},\n _getScrollNormalizer = function _getScrollNormalizer(vars) {\n _isObject(vars) || (vars = {});\n vars.preventDefault = vars.isNormalizer = vars.allowClicks = true;\n vars.type || (vars.type = \"wheel,touch\");\n vars.debounce = !!vars.debounce;\n vars.id = vars.id || \"normalizer\";\n\n var _vars2 = vars,\n normalizeScrollX = _vars2.normalizeScrollX,\n momentum = _vars2.momentum,\n allowNestedScroll = _vars2.allowNestedScroll,\n onRelease = _vars2.onRelease,\n self,\n maxY,\n target = _getTarget(vars.target) || _docEl,\n smoother = gsap.core.globals().ScrollSmoother,\n smootherInstance = smoother && smoother.get(),\n content = _fixIOSBug && (vars.content && _getTarget(vars.content) || smootherInstance && vars.content !== false && !smootherInstance.smooth() && smootherInstance.content()),\n scrollFuncY = _getScrollFunc(target, _vertical),\n scrollFuncX = _getScrollFunc(target, _horizontal),\n scale = 1,\n initialScale = (Observer.isTouch && _win.visualViewport ? _win.visualViewport.scale * _win.visualViewport.width : _win.outerWidth) / _win.innerWidth,\n wheelRefresh = 0,\n resolveMomentumDuration = _isFunction(momentum) ? function () {\n return momentum(self);\n } : function () {\n return momentum || 2.8;\n },\n lastRefreshID,\n skipTouchMove,\n inputObserver = _inputObserver(target, vars.type, true, allowNestedScroll),\n resumeTouchMove = function resumeTouchMove() {\n return skipTouchMove = false;\n },\n scrollClampX = _passThrough,\n scrollClampY = _passThrough,\n updateClamps = function updateClamps() {\n maxY = _maxScroll(target, _vertical);\n scrollClampY = _clamp(_fixIOSBug ? 1 : 0, maxY);\n normalizeScrollX && (scrollClampX = _clamp(0, _maxScroll(target, _horizontal)));\n lastRefreshID = _refreshID;\n },\n removeContentOffset = function removeContentOffset() {\n content._gsap.y = _round(parseFloat(content._gsap.y) + scrollFuncY.offset) + \"px\";\n content.style.transform = \"matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, \" + parseFloat(content._gsap.y) + \", 0, 1)\";\n scrollFuncY.offset = scrollFuncY.cacheID = 0;\n },\n ignoreDrag = function ignoreDrag() {\n if (skipTouchMove) {\n requestAnimationFrame(resumeTouchMove);\n\n var offset = _round(self.deltaY / 2),\n scroll = scrollClampY(scrollFuncY.v - offset);\n\n if (content && scroll !== scrollFuncY.v + scrollFuncY.offset) {\n scrollFuncY.offset = scroll - scrollFuncY.v;\n\n var y = _round((parseFloat(content && content._gsap.y) || 0) - scrollFuncY.offset);\n\n content.style.transform = \"matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, \" + y + \", 0, 1)\";\n content._gsap.y = y + \"px\";\n scrollFuncY.cacheID = _scrollers.cache;\n\n _updateAll();\n }\n\n return true;\n }\n\n scrollFuncY.offset && removeContentOffset();\n skipTouchMove = true;\n },\n tween,\n startScrollX,\n startScrollY,\n onStopDelayedCall,\n onResize = function onResize() {\n // if the window resizes, like on an iPhone which Apple FORCES the address bar to show/hide even if we event.preventDefault(), it may be scrolling too far now that the address bar is showing, so we must dynamically adjust the momentum tween.\n updateClamps();\n\n if (tween.isActive() && tween.vars.scrollY > maxY) {\n scrollFuncY() > maxY ? tween.progress(1) && scrollFuncY(maxY) : tween.resetTo(\"scrollY\", maxY);\n }\n };\n\n content && gsap.set(content, {\n y: \"+=0\"\n }); // to ensure there's a cache (element._gsap)\n\n vars.ignoreCheck = function (e) {\n return _fixIOSBug && e.type === \"touchmove\" && ignoreDrag(e) || scale > 1.05 && e.type !== \"touchstart\" || self.isGesturing || e.touches && e.touches.length > 1;\n };\n\n vars.onPress = function () {\n skipTouchMove = false;\n var prevScale = scale;\n scale = _round((_win.visualViewport && _win.visualViewport.scale || 1) / initialScale);\n tween.pause();\n prevScale !== scale && _allowNativePanning(target, scale > 1.01 ? true : normalizeScrollX ? false : \"x\");\n startScrollX = scrollFuncX();\n startScrollY = scrollFuncY();\n updateClamps();\n lastRefreshID = _refreshID;\n };\n\n vars.onRelease = vars.onGestureStart = function (self, wasDragging) {\n scrollFuncY.offset && removeContentOffset();\n\n if (!wasDragging) {\n onStopDelayedCall.restart(true);\n } else {\n _scrollers.cache++; // make sure we're pulling the non-cached value\n // alternate algorithm: durX = Math.min(6, Math.abs(self.velocityX / 800)),\tdur = Math.max(durX, Math.min(6, Math.abs(self.velocityY / 800))); dur = dur * (0.4 + (1 - _power4In(dur / 6)) * 0.6)) * (momentumSpeed || 1)\n\n var dur = resolveMomentumDuration(),\n currentScroll,\n endScroll;\n\n if (normalizeScrollX) {\n currentScroll = scrollFuncX();\n endScroll = currentScroll + dur * 0.05 * -self.velocityX / 0.227; // the constant .227 is from power4(0.05). velocity is inverted because scrolling goes in the opposite direction.\n\n dur *= _clampScrollAndGetDurationMultiplier(scrollFuncX, currentScroll, endScroll, _maxScroll(target, _horizontal));\n tween.vars.scrollX = scrollClampX(endScroll);\n }\n\n currentScroll = scrollFuncY();\n endScroll = currentScroll + dur * 0.05 * -self.velocityY / 0.227; // the constant .227 is from power4(0.05)\n\n dur *= _clampScrollAndGetDurationMultiplier(scrollFuncY, currentScroll, endScroll, _maxScroll(target, _vertical));\n tween.vars.scrollY = scrollClampY(endScroll);\n tween.invalidate().duration(dur).play(0.01);\n\n if (_fixIOSBug && tween.vars.scrollY >= maxY || currentScroll >= maxY - 1) {\n // iOS bug: it'll show the address bar but NOT fire the window \"resize\" event until the animation is done but we must protect against overshoot so we leverage an onUpdate to do so.\n gsap.to({}, {\n onUpdate: onResize,\n duration: dur\n });\n }\n }\n\n onRelease && onRelease(self);\n };\n\n vars.onWheel = function () {\n tween._ts && tween.pause();\n\n if (_getTime() - wheelRefresh > 1000) {\n // after 1 second, refresh the clamps otherwise that'll only happen when ScrollTrigger.refresh() is called or for touch-scrolling.\n lastRefreshID = 0;\n wheelRefresh = _getTime();\n }\n };\n\n vars.onChange = function (self, dx, dy, xArray, yArray) {\n _refreshID !== lastRefreshID && updateClamps();\n dx && normalizeScrollX && scrollFuncX(scrollClampX(xArray[2] === dx ? startScrollX + (self.startX - self.x) : scrollFuncX() + dx - xArray[1])); // for more precision, we track pointer/touch movement from the start, otherwise it'll drift.\n\n if (dy) {\n scrollFuncY.offset && removeContentOffset();\n var isTouch = yArray[2] === dy,\n y = isTouch ? startScrollY + self.startY - self.y : scrollFuncY() + dy - yArray[1],\n yClamped = scrollClampY(y);\n isTouch && y !== yClamped && (startScrollY += yClamped - y);\n scrollFuncY(yClamped);\n }\n\n (dy || dx) && _updateAll();\n };\n\n vars.onEnable = function () {\n _allowNativePanning(target, normalizeScrollX ? false : \"x\");\n\n ScrollTrigger.addEventListener(\"refresh\", onResize);\n\n _addListener(_win, \"resize\", onResize);\n\n if (scrollFuncY.smooth) {\n scrollFuncY.target.style.scrollBehavior = \"auto\";\n scrollFuncY.smooth = scrollFuncX.smooth = false;\n }\n\n inputObserver.enable();\n };\n\n vars.onDisable = function () {\n _allowNativePanning(target, true);\n\n _removeListener(_win, \"resize\", onResize);\n\n ScrollTrigger.removeEventListener(\"refresh\", onResize);\n inputObserver.kill();\n };\n\n vars.lockAxis = vars.lockAxis !== false;\n self = new Observer(vars);\n self.iOS = _fixIOSBug; // used in the Observer getCachedScroll() function to work around an iOS bug that wreaks havoc with TouchEvent.clientY if we allow scroll to go all the way back to 0.\n\n _fixIOSBug && !scrollFuncY() && scrollFuncY(1); // iOS bug causes event.clientY values to freak out (wildly inaccurate) if the scroll position is exactly 0.\n\n _fixIOSBug && gsap.ticker.add(_passThrough); // prevent the ticker from sleeping\n\n onStopDelayedCall = self._dc;\n tween = gsap.to(self, {\n ease: \"power4\",\n paused: true,\n scrollX: normalizeScrollX ? \"+=0.1\" : \"+=0\",\n scrollY: \"+=0.1\",\n modifiers: {\n scrollY: _interruptionTracker(scrollFuncY, scrollFuncY(), function () {\n return tween.pause();\n })\n },\n onUpdate: _updateAll,\n onComplete: onStopDelayedCall.vars.onComplete\n }); // we need the modifier to sense if the scroll position is altered outside of the momentum tween (like with a scrollTo tween) so we can pause() it to prevent conflicts.\n\n return self;\n};\n\nScrollTrigger.sort = function (func) {\n return _triggers.sort(func || function (a, b) {\n return (a.vars.refreshPriority || 0) * -1e6 + a.start - (b.start + (b.vars.refreshPriority || 0) * -1e6);\n });\n};\n\nScrollTrigger.observe = function (vars) {\n return new Observer(vars);\n};\n\nScrollTrigger.normalizeScroll = function (vars) {\n if (typeof vars === \"undefined\") {\n return _normalizer;\n }\n\n if (vars === true && _normalizer) {\n return _normalizer.enable();\n }\n\n if (vars === false) {\n return _normalizer && _normalizer.kill();\n }\n\n var normalizer = vars instanceof Observer ? vars : _getScrollNormalizer(vars);\n _normalizer && _normalizer.target === normalizer.target && _normalizer.kill();\n _isViewport(normalizer.target) && (_normalizer = normalizer);\n return normalizer;\n};\n\nScrollTrigger.core = {\n // smaller file size way to leverage in ScrollSmoother and Observer\n _getVelocityProp: _getVelocityProp,\n _inputObserver: _inputObserver,\n _scrollers: _scrollers,\n _proxies: _proxies,\n bridge: {\n // when normalizeScroll sets the scroll position (ss = setScroll)\n ss: function ss() {\n _lastScrollTime || _dispatch(\"scrollStart\");\n _lastScrollTime = _getTime();\n },\n // a way to get the _refreshing value in Observer\n ref: function ref() {\n return _refreshing;\n }\n }\n};\n_getGSAP() && gsap.registerPlugin(ScrollTrigger);\nexport { ScrollTrigger as default };","function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*!\n * Observer 3.11.5\n * https://greensock.com\n *\n * @license Copyright 2008-2023, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nvar gsap,\n _coreInitted,\n _clamp,\n _win,\n _doc,\n _docEl,\n _body,\n _isTouch,\n _pointerType,\n ScrollTrigger,\n _root,\n _normalizer,\n _eventTypes,\n _context,\n _getGSAP = function _getGSAP() {\n return gsap || typeof window !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap;\n},\n _passThrough = function _passThrough(p) {\n return p;\n},\n _startup = 1,\n _observers = [],\n _scrollers = [],\n _proxies = [],\n _getTime = Date.now,\n _bridge = function _bridge(name, value) {\n return value;\n},\n _integrate = function _integrate() {\n var core = ScrollTrigger.core,\n data = core.bridge || {},\n scrollers = core._scrollers,\n proxies = core._proxies;\n scrollers.push.apply(scrollers, _scrollers);\n proxies.push.apply(proxies, _proxies);\n _scrollers = scrollers;\n _proxies = proxies;\n\n _bridge = function _bridge(name, value) {\n return data[name](value);\n };\n},\n _getProxyProp = function _getProxyProp(element, property) {\n return ~_proxies.indexOf(element) && _proxies[_proxies.indexOf(element) + 1][property];\n},\n _isViewport = function _isViewport(el) {\n return !!~_root.indexOf(el);\n},\n _addListener = function _addListener(element, type, func, nonPassive, capture) {\n return element.addEventListener(type, func, {\n passive: !nonPassive,\n capture: !!capture\n });\n},\n _removeListener = function _removeListener(element, type, func, capture) {\n return element.removeEventListener(type, func, !!capture);\n},\n _scrollLeft = \"scrollLeft\",\n _scrollTop = \"scrollTop\",\n _onScroll = function _onScroll() {\n return _normalizer && _normalizer.isPressed || _scrollers.cache++;\n},\n _scrollCacheFunc = function _scrollCacheFunc(f, doNotCache) {\n var cachingFunc = function cachingFunc(value) {\n // since reading the scrollTop/scrollLeft/pageOffsetY/pageOffsetX can trigger a layout, this function allows us to cache the value so it only gets read fresh after a \"scroll\" event fires (or while we're refreshing because that can lengthen the page and alter the scroll position). when \"soft\" is true, that means don't actually set the scroll, but cache the new value instead (useful in ScrollSmoother)\n if (value || value === 0) {\n _startup && (_win.history.scrollRestoration = \"manual\"); // otherwise the new position will get overwritten by the browser onload.\n\n var isNormalizing = _normalizer && _normalizer.isPressed;\n value = cachingFunc.v = Math.round(value) || (_normalizer && _normalizer.iOS ? 1 : 0); //TODO: iOS Bug: if you allow it to go to 0, Safari can start to report super strange (wildly inaccurate) touch positions!\n\n f(value);\n cachingFunc.cacheID = _scrollers.cache;\n isNormalizing && _bridge(\"ss\", value); // set scroll (notify ScrollTrigger so it can dispatch a \"scrollStart\" event if necessary\n } else if (doNotCache || _scrollers.cache !== cachingFunc.cacheID || _bridge(\"ref\")) {\n cachingFunc.cacheID = _scrollers.cache;\n cachingFunc.v = f();\n }\n\n return cachingFunc.v + cachingFunc.offset;\n };\n\n cachingFunc.offset = 0;\n return f && cachingFunc;\n},\n _horizontal = {\n s: _scrollLeft,\n p: \"left\",\n p2: \"Left\",\n os: \"right\",\n os2: \"Right\",\n d: \"width\",\n d2: \"Width\",\n a: \"x\",\n sc: _scrollCacheFunc(function (value) {\n return arguments.length ? _win.scrollTo(value, _vertical.sc()) : _win.pageXOffset || _doc[_scrollLeft] || _docEl[_scrollLeft] || _body[_scrollLeft] || 0;\n })\n},\n _vertical = {\n s: _scrollTop,\n p: \"top\",\n p2: \"Top\",\n os: \"bottom\",\n os2: \"Bottom\",\n d: \"height\",\n d2: \"Height\",\n a: \"y\",\n op: _horizontal,\n sc: _scrollCacheFunc(function (value) {\n return arguments.length ? _win.scrollTo(_horizontal.sc(), value) : _win.pageYOffset || _doc[_scrollTop] || _docEl[_scrollTop] || _body[_scrollTop] || 0;\n })\n},\n _getTarget = function _getTarget(t) {\n return gsap.utils.toArray(t)[0] || (typeof t === \"string\" && gsap.config().nullTargetWarn !== false ? console.warn(\"Element not found:\", t) : null);\n},\n _getScrollFunc = function _getScrollFunc(element, _ref) {\n var s = _ref.s,\n sc = _ref.sc;\n // we store the scroller functions in an alternating sequenced Array like [element, verticalScrollFunc, horizontalScrollFunc, ...] so that we can minimize memory, maximize performance, and we also record the last position as a \".rec\" property in order to revert to that after refreshing to ensure things don't shift around.\n _isViewport(element) && (element = _doc.scrollingElement || _docEl);\n\n var i = _scrollers.indexOf(element),\n offset = sc === _vertical.sc ? 1 : 2;\n\n !~i && (i = _scrollers.push(element) - 1);\n _scrollers[i + offset] || element.addEventListener(\"scroll\", _onScroll); // clear the cache when a scroll occurs\n\n var prev = _scrollers[i + offset],\n func = prev || (_scrollers[i + offset] = _scrollCacheFunc(_getProxyProp(element, s), true) || (_isViewport(element) ? sc : _scrollCacheFunc(function (value) {\n return arguments.length ? element[s] = value : element[s];\n })));\n func.target = element;\n prev || (func.smooth = gsap.getProperty(element, \"scrollBehavior\") === \"smooth\"); // only set it the first time (don't reset every time a scrollFunc is requested because perhaps it happens during a refresh() when it's disabled in ScrollTrigger.\n\n return func;\n},\n _getVelocityProp = function _getVelocityProp(value, minTimeRefresh, useDelta) {\n var v1 = value,\n v2 = value,\n t1 = _getTime(),\n t2 = t1,\n min = minTimeRefresh || 50,\n dropToZeroTime = Math.max(500, min * 3),\n update = function update(value, force) {\n var t = _getTime();\n\n if (force || t - t1 > min) {\n v2 = v1;\n v1 = value;\n t2 = t1;\n t1 = t;\n } else if (useDelta) {\n v1 += value;\n } else {\n // not totally necessary, but makes it a bit more accurate by adjusting the v1 value according to the new slope. This way we're not just ignoring the incoming data. Removing for now because it doesn't seem to make much practical difference and it's probably not worth the kb.\n v1 = v2 + (value - v2) / (t - t2) * (t1 - t2);\n }\n },\n reset = function reset() {\n v2 = v1 = useDelta ? 0 : v1;\n t2 = t1 = 0;\n },\n getVelocity = function getVelocity(latestValue) {\n var tOld = t2,\n vOld = v2,\n t = _getTime();\n\n (latestValue || latestValue === 0) && latestValue !== v1 && update(latestValue);\n return t1 === t2 || t - t2 > dropToZeroTime ? 0 : (v1 + (useDelta ? vOld : -vOld)) / ((useDelta ? t : t1) - tOld) * 1000;\n };\n\n return {\n update: update,\n reset: reset,\n getVelocity: getVelocity\n };\n},\n _getEvent = function _getEvent(e, preventDefault) {\n preventDefault && !e._gsapAllow && e.preventDefault();\n return e.changedTouches ? e.changedTouches[0] : e;\n},\n _getAbsoluteMax = function _getAbsoluteMax(a) {\n var max = Math.max.apply(Math, a),\n min = Math.min.apply(Math, a);\n return Math.abs(max) >= Math.abs(min) ? max : min;\n},\n _setScrollTrigger = function _setScrollTrigger() {\n ScrollTrigger = gsap.core.globals().ScrollTrigger;\n ScrollTrigger && ScrollTrigger.core && _integrate();\n},\n _initCore = function _initCore(core) {\n gsap = core || _getGSAP();\n\n if (gsap && typeof document !== \"undefined\" && document.body) {\n _win = window;\n _doc = document;\n _docEl = _doc.documentElement;\n _body = _doc.body;\n _root = [_win, _doc, _docEl, _body];\n _clamp = gsap.utils.clamp;\n\n _context = gsap.core.context || function () {};\n\n _pointerType = \"onpointerenter\" in _body ? \"pointer\" : \"mouse\"; // isTouch is 0 if no touch, 1 if ONLY touch, and 2 if it can accommodate touch but also other types like mouse/pointer.\n\n _isTouch = Observer.isTouch = _win.matchMedia && _win.matchMedia(\"(hover: none), (pointer: coarse)\").matches ? 1 : \"ontouchstart\" in _win || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0 ? 2 : 0;\n _eventTypes = Observer.eventTypes = (\"ontouchstart\" in _docEl ? \"touchstart,touchmove,touchcancel,touchend\" : !(\"onpointerdown\" in _docEl) ? \"mousedown,mousemove,mouseup,mouseup\" : \"pointerdown,pointermove,pointercancel,pointerup\").split(\",\");\n setTimeout(function () {\n return _startup = 0;\n }, 500);\n\n _setScrollTrigger();\n\n _coreInitted = 1;\n }\n\n return _coreInitted;\n};\n\n_horizontal.op = _vertical;\n_scrollers.cache = 0;\nexport var Observer = /*#__PURE__*/function () {\n function Observer(vars) {\n this.init(vars);\n }\n\n var _proto = Observer.prototype;\n\n _proto.init = function init(vars) {\n _coreInitted || _initCore(gsap) || console.warn(\"Please gsap.registerPlugin(Observer)\");\n ScrollTrigger || _setScrollTrigger();\n var tolerance = vars.tolerance,\n dragMinimum = vars.dragMinimum,\n type = vars.type,\n target = vars.target,\n lineHeight = vars.lineHeight,\n debounce = vars.debounce,\n preventDefault = vars.preventDefault,\n onStop = vars.onStop,\n onStopDelay = vars.onStopDelay,\n ignore = vars.ignore,\n wheelSpeed = vars.wheelSpeed,\n event = vars.event,\n onDragStart = vars.onDragStart,\n onDragEnd = vars.onDragEnd,\n onDrag = vars.onDrag,\n onPress = vars.onPress,\n onRelease = vars.onRelease,\n onRight = vars.onRight,\n onLeft = vars.onLeft,\n onUp = vars.onUp,\n onDown = vars.onDown,\n onChangeX = vars.onChangeX,\n onChangeY = vars.onChangeY,\n onChange = vars.onChange,\n onToggleX = vars.onToggleX,\n onToggleY = vars.onToggleY,\n onHover = vars.onHover,\n onHoverEnd = vars.onHoverEnd,\n onMove = vars.onMove,\n ignoreCheck = vars.ignoreCheck,\n isNormalizer = vars.isNormalizer,\n onGestureStart = vars.onGestureStart,\n onGestureEnd = vars.onGestureEnd,\n onWheel = vars.onWheel,\n onEnable = vars.onEnable,\n onDisable = vars.onDisable,\n onClick = vars.onClick,\n scrollSpeed = vars.scrollSpeed,\n capture = vars.capture,\n allowClicks = vars.allowClicks,\n lockAxis = vars.lockAxis,\n onLockAxis = vars.onLockAxis;\n this.target = target = _getTarget(target) || _docEl;\n this.vars = vars;\n ignore && (ignore = gsap.utils.toArray(ignore));\n tolerance = tolerance || 1e-9;\n dragMinimum = dragMinimum || 0;\n wheelSpeed = wheelSpeed || 1;\n scrollSpeed = scrollSpeed || 1;\n type = type || \"wheel,touch,pointer\";\n debounce = debounce !== false;\n lineHeight || (lineHeight = parseFloat(_win.getComputedStyle(_body).lineHeight) || 22); // note: browser may report \"normal\", so default to 22.\n\n var id,\n onStopDelayedCall,\n dragged,\n moved,\n wheeled,\n locked,\n axis,\n self = this,\n prevDeltaX = 0,\n prevDeltaY = 0,\n scrollFuncX = _getScrollFunc(target, _horizontal),\n scrollFuncY = _getScrollFunc(target, _vertical),\n scrollX = scrollFuncX(),\n scrollY = scrollFuncY(),\n limitToTouch = ~type.indexOf(\"touch\") && !~type.indexOf(\"pointer\") && _eventTypes[0] === \"pointerdown\",\n // for devices that accommodate mouse events and touch events, we need to distinguish.\n isViewport = _isViewport(target),\n ownerDoc = target.ownerDocument || _doc,\n deltaX = [0, 0, 0],\n // wheel, scroll, pointer/touch\n deltaY = [0, 0, 0],\n onClickTime = 0,\n clickCapture = function clickCapture() {\n return onClickTime = _getTime();\n },\n _ignoreCheck = function _ignoreCheck(e, isPointerOrTouch) {\n return (self.event = e) && ignore && ~ignore.indexOf(e.target) || isPointerOrTouch && limitToTouch && e.pointerType !== \"touch\" || ignoreCheck && ignoreCheck(e, isPointerOrTouch);\n },\n onStopFunc = function onStopFunc() {\n self._vx.reset();\n\n self._vy.reset();\n\n onStopDelayedCall.pause();\n onStop && onStop(self);\n },\n update = function update() {\n var dx = self.deltaX = _getAbsoluteMax(deltaX),\n dy = self.deltaY = _getAbsoluteMax(deltaY),\n changedX = Math.abs(dx) >= tolerance,\n changedY = Math.abs(dy) >= tolerance;\n\n onChange && (changedX || changedY) && onChange(self, dx, dy, deltaX, deltaY); // in ScrollTrigger.normalizeScroll(), we need to know if it was touch/pointer so we need access to the deltaX/deltaY Arrays before we clear them out.\n\n if (changedX) {\n onRight && self.deltaX > 0 && onRight(self);\n onLeft && self.deltaX < 0 && onLeft(self);\n onChangeX && onChangeX(self);\n onToggleX && self.deltaX < 0 !== prevDeltaX < 0 && onToggleX(self);\n prevDeltaX = self.deltaX;\n deltaX[0] = deltaX[1] = deltaX[2] = 0;\n }\n\n if (changedY) {\n onDown && self.deltaY > 0 && onDown(self);\n onUp && self.deltaY < 0 && onUp(self);\n onChangeY && onChangeY(self);\n onToggleY && self.deltaY < 0 !== prevDeltaY < 0 && onToggleY(self);\n prevDeltaY = self.deltaY;\n deltaY[0] = deltaY[1] = deltaY[2] = 0;\n }\n\n if (moved || dragged) {\n onMove && onMove(self);\n\n if (dragged) {\n onDrag(self);\n dragged = false;\n }\n\n moved = false;\n }\n\n locked && !(locked = false) && onLockAxis && onLockAxis(self);\n\n if (wheeled) {\n onWheel(self);\n wheeled = false;\n }\n\n id = 0;\n },\n onDelta = function onDelta(x, y, index) {\n deltaX[index] += x;\n deltaY[index] += y;\n\n self._vx.update(x);\n\n self._vy.update(y);\n\n debounce ? id || (id = requestAnimationFrame(update)) : update();\n },\n onTouchOrPointerDelta = function onTouchOrPointerDelta(x, y) {\n if (lockAxis && !axis) {\n self.axis = axis = Math.abs(x) > Math.abs(y) ? \"x\" : \"y\";\n locked = true;\n }\n\n if (axis !== \"y\") {\n deltaX[2] += x;\n\n self._vx.update(x, true); // update the velocity as frequently as possible instead of in the debounced function so that very quick touch-scrolls (flicks) feel natural. If it's the mouse/touch/pointer, force it so that we get snappy/accurate momentum scroll.\n\n }\n\n if (axis !== \"x\") {\n deltaY[2] += y;\n\n self._vy.update(y, true);\n }\n\n debounce ? id || (id = requestAnimationFrame(update)) : update();\n },\n _onDrag = function _onDrag(e) {\n if (_ignoreCheck(e, 1)) {\n return;\n }\n\n e = _getEvent(e, preventDefault);\n var x = e.clientX,\n y = e.clientY,\n dx = x - self.x,\n dy = y - self.y,\n isDragging = self.isDragging;\n self.x = x;\n self.y = y;\n\n if (isDragging || Math.abs(self.startX - x) >= dragMinimum || Math.abs(self.startY - y) >= dragMinimum) {\n onDrag && (dragged = true);\n isDragging || (self.isDragging = true);\n onTouchOrPointerDelta(dx, dy);\n isDragging || onDragStart && onDragStart(self);\n }\n },\n _onPress = self.onPress = function (e) {\n if (_ignoreCheck(e, 1) || e && e.button) {\n return;\n }\n\n self.axis = axis = null;\n onStopDelayedCall.pause();\n self.isPressed = true;\n e = _getEvent(e); // note: may need to preventDefault(?) Won't side-scroll on iOS Safari if we do, though.\n\n prevDeltaX = prevDeltaY = 0;\n self.startX = self.x = e.clientX;\n self.startY = self.y = e.clientY;\n\n self._vx.reset(); // otherwise the t2 may be stale if the user touches and flicks super fast and releases in less than 2 requestAnimationFrame ticks, causing velocity to be 0.\n\n\n self._vy.reset();\n\n _addListener(isNormalizer ? target : ownerDoc, _eventTypes[1], _onDrag, preventDefault, true);\n\n self.deltaX = self.deltaY = 0;\n onPress && onPress(self);\n },\n _onRelease = self.onRelease = function (e) {\n if (_ignoreCheck(e, 1)) {\n return;\n }\n\n _removeListener(isNormalizer ? target : ownerDoc, _eventTypes[1], _onDrag, true);\n\n var isTrackingDrag = !isNaN(self.y - self.startY),\n wasDragging = self.isDragging && (Math.abs(self.x - self.startX) > 3 || Math.abs(self.y - self.startY) > 3),\n // some touch devices need some wiggle room in terms of sensing clicks - the finger may move a few pixels.\n eventData = _getEvent(e);\n\n if (!wasDragging && isTrackingDrag) {\n self._vx.reset();\n\n self._vy.reset();\n\n if (preventDefault && allowClicks) {\n gsap.delayedCall(0.08, function () {\n // some browsers (like Firefox) won't trust script-generated clicks, so if the user tries to click on a video to play it, for example, it simply won't work. Since a regular \"click\" event will most likely be generated anyway (one that has its isTrusted flag set to true), we must slightly delay our script-generated click so that the \"real\"/trusted one is prioritized. Remember, when there are duplicate events in quick succession, we suppress all but the first one. Some browsers don't even trigger the \"real\" one at all, so our synthetic one is a safety valve that ensures that no matter what, a click event does get dispatched.\n if (_getTime() - onClickTime > 300 && !e.defaultPrevented) {\n if (e.target.click) {\n //some browsers (like mobile Safari) don't properly trigger the click event\n e.target.click();\n } else if (ownerDoc.createEvent) {\n var syntheticEvent = ownerDoc.createEvent(\"MouseEvents\");\n syntheticEvent.initMouseEvent(\"click\", true, true, _win, 1, eventData.screenX, eventData.screenY, eventData.clientX, eventData.clientY, false, false, false, false, 0, null);\n e.target.dispatchEvent(syntheticEvent);\n }\n }\n });\n }\n }\n\n self.isDragging = self.isGesturing = self.isPressed = false;\n onStop && !isNormalizer && onStopDelayedCall.restart(true);\n onDragEnd && wasDragging && onDragEnd(self);\n onRelease && onRelease(self, wasDragging);\n },\n _onGestureStart = function _onGestureStart(e) {\n return e.touches && e.touches.length > 1 && (self.isGesturing = true) && onGestureStart(e, self.isDragging);\n },\n _onGestureEnd = function _onGestureEnd() {\n return (self.isGesturing = false) || onGestureEnd(self);\n },\n onScroll = function onScroll(e) {\n if (_ignoreCheck(e)) {\n return;\n }\n\n var x = scrollFuncX(),\n y = scrollFuncY();\n onDelta((x - scrollX) * scrollSpeed, (y - scrollY) * scrollSpeed, 1);\n scrollX = x;\n scrollY = y;\n onStop && onStopDelayedCall.restart(true);\n },\n _onWheel = function _onWheel(e) {\n if (_ignoreCheck(e)) {\n return;\n }\n\n e = _getEvent(e, preventDefault);\n onWheel && (wheeled = true);\n var multiplier = (e.deltaMode === 1 ? lineHeight : e.deltaMode === 2 ? _win.innerHeight : 1) * wheelSpeed;\n onDelta(e.deltaX * multiplier, e.deltaY * multiplier, 0);\n onStop && !isNormalizer && onStopDelayedCall.restart(true);\n },\n _onMove = function _onMove(e) {\n if (_ignoreCheck(e)) {\n return;\n }\n\n var x = e.clientX,\n y = e.clientY,\n dx = x - self.x,\n dy = y - self.y;\n self.x = x;\n self.y = y;\n moved = true;\n (dx || dy) && onTouchOrPointerDelta(dx, dy);\n },\n _onHover = function _onHover(e) {\n self.event = e;\n onHover(self);\n },\n _onHoverEnd = function _onHoverEnd(e) {\n self.event = e;\n onHoverEnd(self);\n },\n _onClick = function _onClick(e) {\n return _ignoreCheck(e) || _getEvent(e, preventDefault) && onClick(self);\n };\n\n onStopDelayedCall = self._dc = gsap.delayedCall(onStopDelay || 0.25, onStopFunc).pause();\n self.deltaX = self.deltaY = 0;\n self._vx = _getVelocityProp(0, 50, true);\n self._vy = _getVelocityProp(0, 50, true);\n self.scrollX = scrollFuncX;\n self.scrollY = scrollFuncY;\n self.isDragging = self.isGesturing = self.isPressed = false;\n\n _context(this);\n\n self.enable = function (e) {\n if (!self.isEnabled) {\n _addListener(isViewport ? ownerDoc : target, \"scroll\", _onScroll);\n\n type.indexOf(\"scroll\") >= 0 && _addListener(isViewport ? ownerDoc : target, \"scroll\", onScroll, preventDefault, capture);\n type.indexOf(\"wheel\") >= 0 && _addListener(target, \"wheel\", _onWheel, preventDefault, capture);\n\n if (type.indexOf(\"touch\") >= 0 && _isTouch || type.indexOf(\"pointer\") >= 0) {\n _addListener(target, _eventTypes[0], _onPress, preventDefault, capture);\n\n _addListener(ownerDoc, _eventTypes[2], _onRelease);\n\n _addListener(ownerDoc, _eventTypes[3], _onRelease);\n\n allowClicks && _addListener(target, \"click\", clickCapture, false, true);\n onClick && _addListener(target, \"click\", _onClick);\n onGestureStart && _addListener(ownerDoc, \"gesturestart\", _onGestureStart);\n onGestureEnd && _addListener(ownerDoc, \"gestureend\", _onGestureEnd);\n onHover && _addListener(target, _pointerType + \"enter\", _onHover);\n onHoverEnd && _addListener(target, _pointerType + \"leave\", _onHoverEnd);\n onMove && _addListener(target, _pointerType + \"move\", _onMove);\n }\n\n self.isEnabled = true;\n e && e.type && _onPress(e);\n onEnable && onEnable(self);\n }\n\n return self;\n };\n\n self.disable = function () {\n if (self.isEnabled) {\n // only remove the _onScroll listener if there aren't any others that rely on the functionality.\n _observers.filter(function (o) {\n return o !== self && _isViewport(o.target);\n }).length || _removeListener(isViewport ? ownerDoc : target, \"scroll\", _onScroll);\n\n if (self.isPressed) {\n self._vx.reset();\n\n self._vy.reset();\n\n _removeListener(isNormalizer ? target : ownerDoc, _eventTypes[1], _onDrag, true);\n }\n\n _removeListener(isViewport ? ownerDoc : target, \"scroll\", onScroll, capture);\n\n _removeListener(target, \"wheel\", _onWheel, capture);\n\n _removeListener(target, _eventTypes[0], _onPress, capture);\n\n _removeListener(ownerDoc, _eventTypes[2], _onRelease);\n\n _removeListener(ownerDoc, _eventTypes[3], _onRelease);\n\n _removeListener(target, \"click\", clickCapture, true);\n\n _removeListener(target, \"click\", _onClick);\n\n _removeListener(ownerDoc, \"gesturestart\", _onGestureStart);\n\n _removeListener(ownerDoc, \"gestureend\", _onGestureEnd);\n\n _removeListener(target, _pointerType + \"enter\", _onHover);\n\n _removeListener(target, _pointerType + \"leave\", _onHoverEnd);\n\n _removeListener(target, _pointerType + \"move\", _onMove);\n\n self.isEnabled = self.isPressed = self.isDragging = false;\n onDisable && onDisable(self);\n }\n };\n\n self.kill = self.revert = function () {\n self.disable();\n\n var i = _observers.indexOf(self);\n\n i >= 0 && _observers.splice(i, 1);\n _normalizer === self && (_normalizer = 0);\n };\n\n _observers.push(self);\n\n isNormalizer && _isViewport(target) && (_normalizer = self);\n self.enable(event);\n };\n\n _createClass(Observer, [{\n key: \"velocityX\",\n get: function get() {\n return this._vx.getVelocity();\n }\n }, {\n key: \"velocityY\",\n get: function get() {\n return this._vy.getVelocity();\n }\n }]);\n\n return Observer;\n}();\nObserver.version = \"3.11.5\";\n\nObserver.create = function (vars) {\n return new Observer(vars);\n};\n\nObserver.register = _initCore;\n\nObserver.getAll = function () {\n return _observers.slice();\n};\n\nObserver.getById = function (id) {\n return _observers.filter(function (o) {\n return o.vars.id === id;\n })[0];\n};\n\n_getGSAP() && gsap.registerPlugin(Observer);\nexport { Observer as default, _isViewport, _scrollers, _getScrollFunc, _getProxyProp, _proxies, _getVelocityProp, _vertical, _horizontal, _getTarget };"],"names":["$1262f2e38e280703$var$support","$1262f2e38e280703$var$deviceCached","$1262f2e38e280703$var$browser","$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","$parcel$global","globalThis","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","$58bccef0763c0847$export$2e2bcd8739ae039","$cZqAW","$luwGm","$58bccef0763c0847$var$HSDataTable","default","constructor","el","options","events","document","querySelector","columnDefs","Array","from","querySelectorAll","forEach","th","ind","classList","contains","push","targets","orderable","data","getAttribute","dataOptions","JSON","parse","concatOptions","searching","lengthChange","order","table","search","pageEntities","paging","pagingPrev","pagingNext","pagingPages","info","infoFrom","infoTo","infoLength","rowSelectingOptions","rowSelectingAll","selectAllSelector","rowSelectingIndividual","individualSelector","pageLength","parseInt","value","maxPagesToShow","isRowSelecting","pageBtnClasses","pagingOptions","createCollection","window","$hsDataTableCollection","initTable","initSearch","initPageEntities","initPaging","initPagingPrev","initPagingNext","buildPagingPages","initInfo","initRowSelecting","dataTable","DataTable","triggerChangeEventToRow","on","updateSelectAllCheckbox","updateInfo","updatePaging","addEventListener","debounce","evt","onSearchInput","target","val","draw","onEntitiesChange","entities","page","len","initInfoFrom","initInfoTo","initInfoLength","start","innerText","end","recordsTotal","hidePagingIfSinglePage","pages","add","style","display","remove","onPrevClick","disablePagingArrow","statement","setAttribute","removeAttribute","onNextClick","length","totalRecords","rows","count","totalPages","Math","ceil","currentPage","startPage","max","floor","endPage","min","innerHTML","buildPagingPage","appendChild","htmlToElement","i","counter","pageEl","classToClassList","onPageClick","append","onSelectAllChange","isChecked","checked","visibleRows","nodes","checkbox","searchRelatedItems","getInstance","isInstance","elInCollection","find","element","autoInit","elC","jQuery","console","error","HSDataTable","$e494cc9890f5ca06$export$70f24959ef00553b","$e494cc9890f5ca06$export$11a826c585352eb8","$e494cc9890f5ca06$export$315f1f5a8da35a59","$e494cc9890f5ca06$export$fedb369cb70207f1","$e494cc9890f5ca06$export$363474031fa64020","$e494cc9890f5ca06$export$d27a746b95b8b6f0","$e494cc9890f5ca06$export$e3db11022a3681e4","$e494cc9890f5ca06$export$5da71380ac3cd382","$e494cc9890f5ca06$export$82366544b9d4ab15","$e494cc9890f5ca06$export$61fc7d43ac8f84b0","$e494cc9890f5ca06$export$635e15bbd66f01ea","$e494cc9890f5ca06$export$24d4b3961cffb4db","$e494cc9890f5ca06$export$c5c738da9ba7f9f","$e494cc9890f5ca06$export$a73398b198c9e798","$e494cc9890f5ca06$export$23c7272ae11663ba","string","prop","getComputedStyle","getPropertyValue","replace","targetClass","c","includes","match","test","navigator","platform","maxTouchPoints","parent","child","children","toggle","preferredPosition","space","wrapper","referenceRect","getBoundingClientRect","wrapperRect","viewportHeight","innerHeight","spaceAbove","top","spaceBelow","bottom","minimumSpaceRequired","clientHeight","HTMLInputElement","HTMLTextAreaElement","HTMLSelectElement","computedStyle","parentElement","func","timeout","timer","args","clearTimeout","setTimeout","apply","undefined","payload","event","CustomEvent","detail","bubbles","cancelable","composed","dispatchEvent","callback","handleEvent","removeEventListener","transitionDuration","transitionProperty","hasTransition","parseFloat","html","template","createElement","trim","content","firstChild","classes","splitter","action","classesToArray","split","cl","historyIndex","addHistory","index","existsInHistory","clearHistory","$f34571785c0cdb5a$export$2e2bcd8739ae039","collection","fireEvent","hasOwnProperty","cb","$6d576ebd5d6900ba$export$2e2bcd8739ae039","Dropzone","autoDiscover","$6d576ebd5d6900ba$var$HSFileUpload","extensions","previewTemplate","_","merge","icon","class","xls","doc","zip","singleton","clickable","previewsContainer","addRemoveLinks","autoHideTrigger","$hsFileUploadCollection","initDropzone","clear","pseudoTriggers","dropzone","file","onAddFile","onRemoveFile","progress","onUploadProgress","onComplete","onclick","files","removeAllFiles","click","previewElement","reloadButton","removeFile","preventDefault","stopPropagation","tempFileInput","type","input","newFile","dzNewFile","status","ADDED","accepted","addFile","previewAccepted","fileInfo","splitFileName","name","fileName","fileExt","fileSize","fileIcon","trigger","preview","textContent","extension","formatFileSize","size","setIcon","progressBar","progressBarPane","progressBarValue","currentProgress","width","ext","createIcon","toFixed","dotIndex","lastIndexOf","substring","HSFileUpload","$5f48515a1ac16095$export$2e2bcd8739ae039","$5f48515a1ac16095$var$HSRangeSlider","cssClasses","noUiSlider","processClasses","formattedValue","values","isArray","format","updateValues","to","mergedClasses","keys","key","$hsRangeSliderCollection","formatter","thousandsSeparatorAndDecimalPointsFormatter","integerFormatter","prefix","postfix","prefixOrPostfixFormatter","create","disabled","setDisabled","formatValue","result","round","tooltips","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","HSRangeSlider","$f48d59abfdbd8930$var$HSCopyMarkup","targetSelector","wrapperSelector","limit","items","$hsCopyMarkupCollection","setTarget","setWrapper","addPredefinedItems","copy","hasAttribute","copiedElement","cloneNode","addToItems","dispatch","filter","item","deleteItemButton","before","delete","indexOf","splice","HSCopyMarkup","$a86d1961e40cbdd1$var$HSAccordion","update","$hsAccordionCollection","hide","show","group","isAlwaysOpened","currentlyOpened","ariaExpanded","height","scrollHeight","afterTransition","closest","map","treeView","selectable","_el","toggleSelected","root","HSAccordion","$ef84b720836c77d7$export$1a1f61c9c4dd9df0","auto","right","left","$ef84b720836c77d7$export$ab14482922808af8","$ef84b720836c77d7$export$8c1058a58d2daf41","$ef84b720836c77d7$export$717c92bf60493a1c","$ef84b720836c77d7$export$3ea3ef3aa4c9fb07","$ef84b720836c77d7$export$426e07cd0772984d","xs","sm","md","lg","xl","$7d82f08a580c5533$var$HSCarousel","currentIndex","loadingClasses","dotsItemClasses","isAutoHeight","isAutoPlay","isCentered","isDraggable","isInfiniteLoop","isRTL","isSnap","hasSnapSpacers","speed","updateDelay","slidesQty","loadingClassesRemove","loadingClassesAdd","afterLoadingClassesAdd","container","inner","slides","prev","next","dots","infoTotal","infoCurrent","sliderWidth","isDragging","dragStartX","initialTranslateX","touchX","resizeContainer","resizeContainerWidth","setIsSnap","containerRect","containerCenter","closestElement","closestElementIndex","closestDistance","Infinity","childRect","innerContainerRect","childCenter","distance","abs","findIndex","setIndex","setCurrentDot","$hsCarouselCollection","calculateWidth","initDragHandling","goToPrev","resetTimer","setTimer","goToNext","initDots","buildInfo","addCurrentClass","addDisabledClass","autoPlay","isScrolling","changedTouches","screenX","detectDirection","observeResize","scrollableElement","handleDragStart","bind","passive","handleDragMove","handleDragEnd","getTranslateXValue","transformMatrix","transform","matrixValues","translateX","isNaN","removeClickEventWhileDragging","getEventX","currentX","deltaX","newTranslateX","setTranslate","newTranslateXFunc","calcWidth","getCurrentSlidesQty","containerWidth","itemWidth","centeredOffset","limitStart","limitEnd","currentTranslateX","closestIndex","calculateTransform","MouseEvent","clientX","touches","windowWidth","body","clientWidth","currentRes","buildSnapSpacers","existingBefore","existingAfter","spacerWidth","after","prepend","setDots","buildDots","singleDot","buildSingleDot","dotsItems","dot","targetIndex","singleDotEvents","goToCurrentDot","containerScrollLeft","scrollLeft","containerScrollTop","scrollTop","containerHeight","itemRect","itemLeft","itemRight","itemTop","itemBottom","scrollTo","behavior","setInfoTotal","setInfoCurrent","goTo","resizeObserver","ResizeObserver","entries","entry","newWidth","contentRect","recalculateWidth","observe","itemsQty","slide","maxIndex","toggleDotActive","setElementToDisabled","tagName","unsetElementToDisabled","gapValue","statementPrev","statementNext","scrollWidth","setInterval","clearInterval","currentIdx","totalSlideWidth","scrollBy","maxScrollLeft","HSCarousel","$e0d3a37d788d765e$var$HSCollapse","contentId","dataset","hsCollapse","animationInProcess","$hsCollapseCollection","hideAllMegaMenuItems","HSCollapse","$679ae2f22a56cb31$var$HSComboBox","gap","viewport","preventVisibility","apiUrl","apiDataPart","apiQuery","apiSearchQuery","apiHeaders","apiGroupField","outputItemTemplate","outputEmptyTemplate","outputLoaderTemplate","groupingType","groupingTitleTemplate","tabsWrapperTemplate","preventSelection","preventAutoPosition","isOpenOnFocus","output","itemsWrapper","tabs","toggleClose","toggleOpen","outputPlaceholder","selected","isOpened","isCurrent","selectedGroup","$hsComboBoxCollection","build","buildInput","setGroups","buildItems","recalculateDirection","buildToggle","buildToggleClose","buildToggleOpen","setResultAndRender","_value","setResults","itemsFromJson","open","role","tabIndex","ariaOrientation","itemsFromHtml","resultItems","hasVisibleItems","destroyOutputPlaceholder","buildOutputPlaceholder","isItemExists","obj","some","groupField","params","elI","equality","isTextExists","lowerCased","toLowerCase","isTextExistsAny","valuesBySelector","reduce","acc","cur","buildOutputLoader","outputLoader","position","zIndex","destroyOutputLoader","query","searchQuery","url","res","fetch","json","setApiGroups","groupTabsRender","jsonItemsRender","groups","title","newItems","newItem","hideIfEmpty","attributes","attr","valueFrom","close","setSelectedByValue","appendItemsToWrapper","setCurrent","sortItems","sort","i1","i2","a","b","itemRender","plainRender","tabsScroll","tabsWrapper","insertBefore","tabDef","selectedTab","setItemsVisibility","tab","groupDefaultRender","f","setValue","g","setValueAndOpen","setValueAndClear","marginTop","marginBottom","isEnoughSpace","evtTarget","closeCurrentlyOpened","accessibility","getPreparedItems","isReversed","preparedItems","reverse","setHighlighted","current","focus","metaKey","onEscape","stopImmediatePropagation","onArrow","onStartEnd","onEnter","blur","isArrowUp","currentItem","currentInd","isStart","opened","isParentOrElementHidden","link","location","assign","HSComboBox","$6985093033570817$export$2e2bcd8739ae039","node","toString","ownerDocument","defaultView","$69730206aa270d41$export$45a5e7f76e0caa8d","OwnElement","Element","$69730206aa270d41$export$1b3bfaa9684536aa","HTMLElement","$69730206aa270d41$export$af51f0f06c0f328a","ShadowRoot","$3711db8b00de96df$export$8960430cfd85939f","$3711db8b00de96df$export$96ec731ed4dcb222","$3711db8b00de96df$export$2077e0241d6afd3c","$6de7caa8ee90d63c$export$2e2bcd8739ae039","uaData","userAgentData","brands","brand","version","join","userAgent","$bef5ff765617d084$export$2e2bcd8739ae039","$2ef6a598263dba8e$export$2e2bcd8739ae039","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","offsetWidth","offsetHeight","visualViewport","_ref","addVisualOffsets","x","offsetLeft","y","offsetTop","$39a9a96b6f99add9$export$2e2bcd8739ae039","win","pageXOffset","pageYOffset","$04a691b7a330df44$export$2e2bcd8739ae039","nodeName","$0d1d9daad62fa952$export$2e2bcd8739ae039","documentElement","$60124eceeef28a28$export$2e2bcd8739ae039","$cbd21d1454570861$export$2e2bcd8739ae039","$12881c0013479a14$export$2e2bcd8739ae039","_getComputedStyle","overflow","overflowX","overflowY","$9effe2b32f662e4a$export$2e2bcd8739ae039","$773048fc1d2aa7ee$export$2e2bcd8739ae039","assignedSlot","parentNode","host","$90b72ed15edfd54a$export$2e2bcd8739ae039","list","_element$ownerDocumen","scrollParent","$2cddda83e3357241$export$2e2bcd8739ae039","isBody","concat","updatedList","$42fc94c94931c781$var$getTrueOffsetParent","offsetParent","$42fc94c94931c781$export$2e2bcd8739ae039","$42fc94c94931c781$var$getContainingBlock","isFirefox","isIE","elementCss","currentNode","css","perspective","contain","willChange","$1472b89a65155de2$export$40e543e69a8b3fbb","$1472b89a65155de2$export$79ffe56a765070d2","$1472b89a65155de2$export$eabcd2c8791e7bf4","$1472b89a65155de2$export$dfb5619354ba860","$1472b89a65155de2$export$aec2ce47c367b8c3","$1472b89a65155de2$export$b3571188c770cc5a","$1472b89a65155de2$export$d7b7311ec04a3e8f","$1472b89a65155de2$export$ae5ab1c730825774","$1472b89a65155de2$export$368f9a87e87fa4e1","placement","$1472b89a65155de2$export$803cd8101b6c182b","$1472b89a65155de2$export$d087d3878fdf71d5","$60bdf67e43f5dfcb$var$DEFAULT_OPTIONS","modifiers","strategy","$60bdf67e43f5dfcb$var$areValidElements","_len","arguments","_key","$e7d7845625089588$var$passive","$c6075629d0814627$export$2e2bcd8739ae039","$5553ed9c2ee225e3$export$2e2bcd8739ae039","$ba9a98a4204389e3$export$2e2bcd8739ae039","$9a8b7e877fbba4f3$export$2e2bcd8739ae039","offsets","reference","basePlacement","variation","commonX","commonY","mainAxis","$45d468ca92a1d24b$var$unsetSides","$45d468ca92a1d24b$export$378fa78a8fea596f","_ref2","dpr","_Object$assign2","_Object$assign","popper","popperRect","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","devicePixelRatio","$aaefa8315f14c8e2$var$hash","$aaefa8315f14c8e2$export$2e2bcd8739ae039","matched","$37f85a49ff946cb6$var$hash","$37f85a49ff946cb6$export$2e2bcd8739ae039","$8f3b5a3db2e59cbc$export$2e2bcd8739ae039","rootNode","getRootNode","isSameNode","$d5700acdd3ba9a3c$export$2e2bcd8739ae039","rect","$449799046a13d100$var$getClientRectFromMixedType","clippingParent","winScroll","layoutViewport","clientTop","clientLeft","direction","$bcb51404109b5184$export$2e2bcd8739ae039","$2c6bd604be4c867e$export$2e2bcd8739ae039","paddingObject","$c88039fe47959ef5$export$2e2bcd8739ae039","hashMap","$c24a1421ba2f823c$export$2e2bcd8739ae039","state","boundary","clippingParents","clipperElement","firstClippingParent","clippingRect","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","padding","rects","elements","clippingClientRect","contextElement","canEscapeClipping","accRect","referenceClientRect","popperOffsets","popperClientRect","elementClientRect","overflowOffsets","offsetData","modifiersData","offset","multiply","axis","$95428a5e75015184$export$f28d906d67a997f3","$69d8d7bda7717b01$var$getSideOffsets","preventedOffsets","$69d8d7bda7717b01$var$isAnySideFullyClipped","side","$288fbeb449f53487$export$8f7491d57c8f97a9","defaultModifiers","_generatorOptions$def","_generatorOptions","enabled","phase","fn","effect","instance","_options$scroll","scroll","_options$resize","resize","scrollParents","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","styles","arrow","initialStyles","margin","styleProperties","property","attribute","requires","_options$offset","invertDistance","skidding","_data$state$placement","_skip","_options$mainAxis","checkMainAxis","_options$altAxis","altAxis","checkAltAxis","specifiedFallbackPlacements","fallbackPlacements","_options$flipVariatio","flipVariations","allowedAutoPlacements","preferredPlacement","isBasePlacement","$cf1ba1dd94205465$var$getExpandedFallbackPlacements","oppositePlacement","placements","_options$allowedAutoP","allowedPlacements","overflows","checksMap","Map","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","isVertical","mainVariationSide","altVariationSide","checks","every","check","numberOfChecks","_loop","_i","fittingPlacement","slice","_ret","reset","requiresIfExists","_options$tether","tether","_options$tetherOffset","tetherOffset","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowElement","arrowRect","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","arrowOffsetParent","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","_state$modifiersData$","minProp","maxProp","endDiff","startDiff","clientSize","center","centerOffset","_options$element","preventOverflow","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","defaultOptions","_generatorOptions$def2","pending","orderedModifiers","effectCleanupFns","isDestroyed","setOptions","setOptionsAction","merged","visited","cleanupModifierEffects","existing","Set","modifier","has","dep","depModifier","m","_ref3$options","cleanupFn","forceUpdate","_state$elements","isOffsetParentAnElement","offsetParentIsScaled","_state$orderedModifie","_state$orderedModifie2","Promise","resolve","then","destroy","onFirstUpdate","$30ff3bc5863c48e0$var$HSDropdown","closers","menu","eventMode","getClassProperty","closeMode","$hsDropdownCollection","buildMenu","buildClosers","isIOS","isIpadOS","onMouseEnterHandler","onMouseLeaveHandler","resizeHandler","onClickHandler","_popper","forceClearState","destroyPopper","inset","absoluteStrategyModifiers","flip","isAnimated","clearAfterClose","prevWidth","innerWidth","history","menuSearchHistory","onFirstLetter","dropdown","preparedLinks","links","getCurrentInd","charAt","getClassPropertyAlt","HSDropdown","$92991b515617ed92$var$HSInputNumber","increment","decrement","checkIsNumberAndConvert","hsInputNumber","step","minInputValue","maxInputValue","$hsInputNumberCollection","cleanedValue","cleanAndExtractNumber","inputValue","cleanedArray","decimalFound","char","number","buildIncrement","buildDecrement","changeValue","disableButtons","Number","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","incrementedResult","decrementedResult","defaultResult","enableButtons","mode","HSInputNumber","$c4799b0513ab5e85$var$HSOverlay","hiddenClass","emulateScrollbarSpace","isClosePrev","backdropClasses","backdropExtraClasses","moveOverlayToBody","openNextOverlay","autoHide","overlayId","overlay","initContainer","isCloseWhenClickInside","stringToBoolean","isTabAccessibilityLimited","isLayoutAffect","hasAutofocus","hasAbilityToCloseOnBackdropClick","autoCloseBreakpoint","autoClose","isFinite","openedBreakpoint","animationTarget","$hsOverlayCollection","setOpened","hideAuto","time","checkTimer","buildBackdrop","overlayClasses","overlayZIndex","backdropId","backdrop","closeOnBackdrop","disableBackdrop","startsWith","destroyBackdrop","focusElement","getScrollbarSize","div","scrollbarSize","removeChild","openedOverlays","toggles","disabledScroll","paddingRight","forceClose","closeFn","breakpoint","focusableElements","notHiddenFocusableElements","basicCheck","onTab","focused","focusedIndex","nextIndex","$c4799b0513ab5e85$var$autoCloseResizeFn","overlays","$c4799b0513ab5e85$var$moveOverlayToBodyResizeFn","resolution","initPlace","newPlace","isDirectChild","$c4799b0513ab5e85$var$setOpenedResizeFn","$c4799b0513ab5e85$var$setBackdropZIndexResizeFn","backdropZIndex","HSOverlay","$b63c0d64c21290f7$var$HSPinInput","currentValue","fill","placeholders","availableCharsRE","RegExp","$hsPinInputCollection","buildInputItems","onFocusIn","onInput","onPaste","onKeydown","onFocusOut","checkIfNumber","autoFillAll","text","Event","setCurrentValue","toggleCompleted","originalValue","activeElement","clipboardData","getData","HSPinInput","$2fa3b3495cc39359$var$HSRemoveElement","removeTargetId","removeTarget","removeTargetAnimationClass","$hsRemoveElementCollection","HSRemoveElement","$ad11e0e273662123$var$HSScrollspy","activeSection","sections","scrollableId","scrollable","$hsScrollspyCollection","section","globalOffset","userOffset","scrollableParentOffset","String","topOffset","parentLink","targetId","view","scrollFn","replaceState","beforeScroll","HSScrollspy","$d6d8a1cc6d2c85b9$var$HSSelect","optionId","placeholder","hasSearch","preventSearchFocus","Boolean","isMultiple","isDisabled","selectedItems","apiOptions","apiSearchQueryKey","apiFieldsMap","apiIconTag","wrapperClasses","toggleTag","toggleClasses","toggleSeparators","betweenItemsAndCounter","toggleCountText","toggleCountTextMinItems","toggleCountTextMode","tagsItemTemplate","tagsItemClasses","tagsInputId","tagsInputClasses","dropdownTag","dropdownClasses","dropdownDirectionClasses","dropdownSpace","dropdownPlacement","dropdownScope","searchTemplate","searchWrapperTemplate","searchWrapperClasses","searchId","searchLimit","isSearchDirectMatch","searchClasses","searchPlaceholder","searchNoResultTemplate","searchNoResultText","searchNoResultClasses","optionTemplate","optionTag","optionClasses","extraMarkup","descriptionClasses","iconClasses","isAddTagOnEnter","selectOptions","remoteOptions","tagsInputHelper","clearSelections","toggleTextWrapper","stringFromValue","unselectMultipleItems","selectMultipleItems","setToggleTitle","setToggleIcon","selectSingleItem","$hsSelectCollection","selectedOptions","buildWrapper","buildTags","buildDropdown","buildExtraMarkup","tagsInput","appendMarkup","markup","clickHandle","toggleFn","newEl","getItemByValue","img","src","titleText","buildTagsInput","setTagsItems","reassignTagsInputPlaceholder","calculateInputWidth","buildTagsItem","searchOptions","addSelectOption","buildOption","resetTagsInputField","adjustInputWidth","buildSearch","props","optionsFromRemoteData","buildPopper","Popper","createPopper","popperInstance","updateDropdownWidth","searchWrapper","remoteSearch","descriptionWrapper","option","titleWrapper","iconWrapper","description","onSelectOption","setNewValue","buildOptionFromRemoteData","alert","buildOptionsFromRemoteData","rest","buildOriginalOption","sortElements","apiRequest","log","req","selector","isASelected","isBSelected","newIds","restOptions","pseudoOptions","dataId","destroyOriginalOption","destroyOption","stringify","buildTagsInputHelper","fontSize","fontFamily","fontWeight","letterSpacing","visibility","whiteSpace","inputPadding","paddingLeft","inputBorder","borderLeftWidth","borderRightWidth","maxWidth","intersection","triggerChangeEventForNativeSelect","selectChangeEvent","removeSelectOption","hasOption","stringFromValueBasic","nItems","stringFromValueRemoteData","dataValue","selectedOption","selectedItem","countLimit","searchNoResult","hasItems","optionVal","toLocaleLowerCase","regexSafeVal","regex","directMatch","cleanedOptionVal","condition","eraseToggleIcon","eraseToggleTitle","addOption","removeOption","shiftKey","preparedOptions","select","previousSibling","HSSelect","$ca72921c6baabde0$var$HSStepper","isCompleted","totalSteps","navItems","contentItems","$hsStepperCollection","buildNav","buildContent","buildButtons","setTotalSteps","getUncompletedSteps","inIncludedSkipped","isSkip","addNavItem","buildNavItem","setCurrentNavItem","handleNavItemClick","isFinal","isOptional","isProcessed","hasError","setCurrentNavItemActions","unsetCurrentNavItemActions","getNavItem","setProcessedNavItemActions","setErrorNavItemActions","setCurrentContentItem","checkForTheFirstStep","addContentItem","buildContentItem","finalContentItem","otherContentItems","setCurrentContentItemActions","unsetCurrentContentItemActions","hideAllContentItems","disableAll","currentNavItem","disableNavItemActions","enableNavItemActions","backBtn","nextBtn","skipBtn","completeStepBtn","finishBtn","resetBtn","buildBackButton","buildNextButton","buildSkipButton","buildCompleteStepButton","buildFinishButton","buildResetButton","handleBackButtonClick","currentContentItem","showSkipButton","showFinishButton","showCompleteStepButton","removeOptionalClasses","changeTextAndDisableCompleteButtonIfStepCompleted","setToDisabled","setToNonDisabled","unsetProcessedNavItemActions","handleNextButtonClick","infinite","nonCompletedSteps","handleSkipButtonClick","setSkipItem","targetNavItem","targetContentItem","setSkipItemActions","completeStepBtnDefaultText","handleCompleteStepButtonClick","completedText","setCompleteItem","setCompleteItemActions","setCompleted","handleFinishButtonClick","unsetCompleted","uncompletedSteps","uncompletedOrSkipSteps","currentNavItemEl","handleResetButtonClick","setProcessedNavItem","unsetProcessedNavItem","setErrorNavItem","HSStepper","$2cda32f4cf75835b$var$HSStrongPassword","strength","passedRules","hints","stripClasses","minLength","popoverSpace","checksExclude","availableChecks","specialCharactersSet","$hsStrongPasswordCollection","buildStrips","buildHints","setStrength","newStrip","weakness","rules","rule","ruleValue","buildWeakness","buildRules","checkStrength","setWeaknessText","setRulesText","weaknessText","weaknessTextToJson","checkIfPassed","togglePopover","popover","regexps","lowercase","uppercase","numbers","isRulePassed","uncheck","hideStrips","qty","HSStrongPassword","$c9620caaf893c52f$var$HSTabs","extraToggleId","extraToggle","currentContentId","currentContent","prevContentId","prevContent","$hsTabsCollection","change","ariaSelected","targetInCollection","isOpposite","focusedInd","HSTabs","$0879d3d9a278de7e$var$HSTextareaAutoHeight","defaultHeight","$hsTextareaAutoHeightCollection","setAutoHeight","isParentHidden","callbackAccordingToType","textareaSetHeight","checkIfOneLine","parentType","collapseId","HSTextareaAutoHeight","$4ef230b80928ed4d$var$HSThemeSwitch","theme","localStorage","getItem","themeSet","$hsThemeSwitchCollection","setAppearance","setResetStyles","head","addSystemThemeObserver","matchMedia","matches","removeSystemThemeObserver","isSaveToLocalStorage","isSetDispatchEvent","resetStyles","setItem","toggleObserveSystemTheme","switchTheme","HSThemeSwitch","$e826521c98ea9aeb$var$HSToggleCount","duration","$hsToggleCountCollection","countUp","countDown","animate","startTimestamp","timestamp","requestAnimationFrame","HSToggleCount","$009472fb1980a140$var$HSTogglePassword","ids","isShown","eventType","isFormElement","$hsTogglePasswordCollection","getMultipleToggles","togglesInCollection","HSTogglePassword","$b9c4451e4a0a64db$var$HSTooltip","preventPopper","$hsTooltipCollection","enter","leave","handle","HSTooltip","$49e1f82ac0afa4ee$var$HSTreeView","controlBy","autoSelectChildren","isIndeterminate","$hsTreeViewCollection","initItems","concatData","path","getPath","isSelected","controlByCheckbox","controlByButton","unselectItem","selectItem","control","isDir","selectChildren","toggleParent","exception","getSelectedItems","selectedElement","changeItemProp","initialItemData","currentItemData","indeterminate","hasUnchecked","checkedItems","dataI","HSTreeView","$1C6E2","$iIPEy","$dQG8S","$229012a49ff0ba35$export$c863840a8dc6e11d","$77dda7c950b06739$var$HSStaticMethods","cleanCollection","$0868fe5596dee114$var$isObject","$0868fe5596dee114$var$extend","HSStaticMethods","$0868fe5596dee114$var$ssrDocument","getElementById","createEvent","initEvent","childNodes","getElementsByTagName","createElementNS","importNode","hash","hostname","href","origin","pathname","protocol","$0868fe5596dee114$export$39b482c5e57630a8","$0868fe5596dee114$var$ssrWindow","pushState","go","back","Image","Date","screen","cancelAnimationFrame","$0868fe5596dee114$export$407448d2b89b1813","$f97f33853a605dba$export$7ccc53e8f1e7dfc5","delay","$f97f33853a605dba$export$4368d992c4eafac0","now","$f97f33853a605dba$export$35e795649ee09318","o","prototype","$f97f33853a605dba$export$9e5f44173e64f162","noExtend","nextSource","nodeType","keysArray","nextKey","desc","getOwnPropertyDescriptor","__swiper__","$f97f33853a605dba$export$2408f22a0fab9ae5","varName","varValue","setProperty","$f97f33853a605dba$export$ffb5f4729a158638","swiper","targetPosition","window1","startPosition","translate","startTime","wrapperEl","scrollSnapType","cssModeFrameID","dir","isOutOfBound","getTime","easeProgress","cos","PI","currentPosition","$f97f33853a605dba$export$342063e11d6c3cad","slideEl","shadowRoot","$f97f33853a605dba$export$f1e1789686576879","$f97f33853a605dba$export$db3b6bfb95261072","tag","$f97f33853a605dba$export$882b5998b3b9117c","$f97f33853a605dba$export$39b482c5e57630a8","$f97f33853a605dba$export$407448d2b89b1813","parents","$f97f33853a605dba$export$2d1720544b23b823","includeMargins","$1262f2e38e280703$var$getSupport","$1262f2e38e280703$var$calcSupport","document1","smoothScroll","touch","DocumentTouch","$1262f2e38e280703$var$processLazyPreloader","imageEl","destroyed","isElement","slideClass","lazyEl","lazyPreloaderClass","$1262f2e38e280703$var$unlazy","$1262f2e38e280703$var$preload","amount","lazyPreloadPrevNext","slidesPerView","slidesPerViewDynamic","activeIndex","grid","preloadColumns","activeColumn","column","slideIndexLastInView","rewind","loop","realIndex","$1262f2e38e280703$var$transitionEmit","runCallbacks","previousIndex","emit","$1262f2e38e280703$var$onTouchStart","touchEventsData","evCache","simulateTouch","pointerType","animating","preventInteractionOnTransition","cssMode","loopFix","originalEvent","targetEl","touchEventsTarget","which","button","isTouched","isMoved","swipingClassHasValue","noSwipingClass","eventPath","composedPath","noSwipingSelector","isTargetShadow","noSwiping","$1262f2e38e280703$var$closestElement","base","__closestFrom","found","allowClick","swipeHandler","pageX","currentY","pageY","startX","startY","edgeSwipeDetection","iOSEdgeSwipeDetection","edgeSwipeThreshold","iOSEdgeSwipeThreshold","allowTouchCallbacks","startMoving","touchStartTime","updateSize","swipeDirection","threshold","allowThresholdMove","shouldPreventDefault","allowTouchMove","touchStartPreventDefault","touchStartForcePreventDefault","isContentEditable","freeMode","onTouchStart","$1262f2e38e280703$var$onTouchMove","loopFixed","rtlTranslate","rtl","pointerIndex","cachedEv","pointerId","targetTouch","preventedByNestedSwiper","prevX","prevY","touchReleaseOnEdges","maxTranslate","minTranslate","targetTouches","diffX","diffY","sqrt","touchAngle","isHorizontal","atan2","zoom","touchMoveStopPropagation","nested","diff","touchesDiff","previousX","previousY","oneWayMovement","touchRatio","prevTouchesDirection","touchesDirection","isLoop","allowLoopFix","allowSlideNext","allowSlidePrev","startTranslate","getTranslate","setTransition","allowMomentumBounce","grabCursor","setGrabCursor","currentTranslate","disableParentSwiper","resistanceRatio","centeredSlides","activeSlideIndex","resistance","followFinger","watchSlidesProgress","updateActiveIndex","updateSlidesClasses","onTouchMove","updateProgress","$1262f2e38e280703$var$onTouchEnd","currentPos","proceed","browser","isSafari","isWebView","slidesGrid","touchEndTime","timeDiff","pathTree","updateClickedSlide","lastClickTime","onTouchEnd","stopIndex","groupSize","slidesSizesGrid","slidesPerGroupSkip","slidesPerGroup","rewindFirstIndex","rewindLastIndex","isBeginning","virtual","isEnd","ratio","longSwipesMs","longSwipes","slideTo","longSwipesRatio","shortSwipes","isNavButtonTarget","navigation","nextEl","prevEl","$1262f2e38e280703$var$onResize","breakpoints","setBreakpoint","snapGrid","isVirtual","updateSlides","isVirtualLoop","slideToLoop","autoplay","running","paused","resizeTimeout","resume","watchOverflow","checkOverflow","$1262f2e38e280703$var$onClick","preventClicks","preventClicksPropagation","$1262f2e38e280703$var$onScroll","previousTranslate","translatesDiff","$1262f2e38e280703$var$onLoad","autoHeight","$1262f2e38e280703$var$dummyEventAttached","$1262f2e38e280703$var$dummyEventListener","$1262f2e38e280703$var$events","method","device","capture","domMethod","onClick","onScroll","updateOnWindowResize","ios","android","onLoad","$1262f2e38e280703$var$isGridEnabled","$1262f2e38e280703$export$4368d992c4eafac0","initialSlide","createElements","setWrapperSize","virtualTranslate","breakpointsBase","spaceBetween","slidesPerGroupAuto","centeredSlidesBounds","slidesOffsetBefore","slidesOffsetAfter","normalizeSlideIndex","centerInsufficientSlides","roundLengths","uniqueNavElements","slideToClickedSlide","loopedSlides","loopPreventsSliding","passiveListeners","maxBackfaceHiddenSlides","containerModifierClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","runCallbacksOnInit","_emitClasses","$1262f2e38e280703$var$prototypes","eventsEmitter","handler","priority","self","eventsListeners","once","onceHandler","off","__emitterProxy","onAny","eventsAnyListeners","offAny","eventHandler","context","_len2","_key2","unshift","eventsArray","slideSize","getDirectionLabel","getDirectionPropertyValue","label","slidesEl","swiperSize","wrongRTL","previousSlidesLength","slidesLength","offsetBefore","offsetAfter","previousSnapGridLength","previousSlidesGridLength","slidePosition","prevSlideSize","virtualSize","marginLeft","marginRight","gridEnabled","initSlides","shouldResetSlideSize","updateSlide","slideStyles","currentTransform","currentWebKitTransform","webkitTransform","boxSizing","swiperSlideSize","updateWrapperSize","newSlidesGrid","slidesGridItem","slidesBefore","slidesAfter","slideIndex","allSlidesSize","slideSizeValue","maxSnap","snap","allSlidesOffset","snapIndex","addToSnapGrid","addToSlidesGrid","updateSlidesOffset","backFaceHiddenClass","hasClassBackfaceClassAdded","updateAutoHeight","activeSlides","newHeight","getSlideByIndex","getSlideIndexByData","visibleSlides","minusOffset","swiperSlideOffset","cssOverflowAdjustment","updateSlidesProgress","offsetCenter","visibleSlidesIndexes","slideOffset","slideProgress","originalSlideProgress","slideBefore","slideAfter","isVisible","originalProgress","multiplier","progressLoop","wasBeginning","wasEnd","isBeginningRounded","isEndRounded","firstSlideIndex","lastSlideIndex","firstSlideTranslate","lastSlideTranslate","translateMax","translateAbs","activeSlide","getFilteredSlide","nextSlide","nextEls","nextElementSibling","prevSlide","prevEls","previousElementSibling","emitSlidesClasses","newActiveIndex","previousRealIndex","previousSnapIndex","getVirtualRealIndex","aIndex","$1262f2e38e280703$var$getActiveIndexByTranslate","skip","initialized","pathEl","slideFound","clickedSlide","clickedIndex","matrix","curTransform","curStyle","$f97f33853a605dba$var$getComputedStyle","currentStyle","WebKitCSSMatrix","MozTransform","OTransform","MsTransform","msTransform","m41","m42","byController","translateTo","translateBounds","internal","newTranslate","isH","support","onTranslateToWrapperTransitionEnd","transition","transitionDelay","transitionStart","transitionEnd","initial","normalizedTranslate","normalizedGrid","normalizedGridNext","t","_immediateVirtual","_cssModeVirtualInitialSet","onSlideToWrapperTransitionEnd","indexAsNumber","newIndex","slideNext","perGroup","_clientLeft","slidePrev","normalize","normalizedSnapGrid","prevSnap","prevSnapIndex","prevIndex","lastIndex","slideReset","slideToClosest","currentSnap","nextSnap","slideToIndex","slideSelector","getSlideIndex","loopCreate","slideRealIndex","_temp","byMousewheel","prependSlidesIndexes","appendSlidesIndexes","isNext","isPrev","slidesPrepended","slidesAppended","swiperLoopMoveDOM","recalcSlides","currentSlideTranslate","newSlideTranslate","controller","loopParams","loopDestroy","newSlidesOrder","swiperSlideIndex","moving","isLocked","__preventObserver__","cursor","unsetGrabCursor","attachEvents","detachEvents","getBreakpoint","currentBreakpoint","breakpointOnlyParams","breakpointParams","originalParams","wasMultiRow","isMultiRow","wasEnabled","emitContainerClasses","wasModuleEnabled","isModuleEnabled","disable","enable","directionChanged","needsReLoop","wasLoop","changeDirection","isEnabled","hasLoop","containerEl","currentHeight","points","point","minRatio","substr","wasLocked","lastSlideRightEdge","addClasses","classNames","suffixes","$1262f2e38e280703$var$prepareClasses","resultClasses","removeClasses","$1262f2e38e280703$var$extendedDefaults","$1262f2e38e280703$export$25ce5a424b770e84","overrides","swipers","newParams","$1262f2e38e280703$var$calcDevice","ua","screenWidth","screenHeight","ipad","ipod","iphone","macos","iPadScreens","os","$1262f2e38e280703$var$calcBrowser","needPerspectiveFix","major","minor","num","modules","__modules__","allModulesParams","mod","extendParams","moduleParamName","moduleParams","swiperParams","passedParams","eventName","velocity","trunc","clickTimeout","velocities","imagesToLoad","imagesLoaded","setProgress","cls","className","getSlideClasses","updates","exact","spv","breakLoop","slideInView","translated","translateValue","complete","newDirection","needUpdate","currentDirection","changeLanguageDirection","mount","mounted","getWrapperSelector","getWrapper","slideSlots","hostEl","lazyElements","deleteInstance","cleanStyles","object","extendDefaults","newDefaults","extendedDefaults","defaults","installModule","use","$306a0aea613e7477$export$db3b6bfb95261072","checkProps","$dc75855670d5bebb$export$2e2bcd8739ae039","hideOnClick","disabledClass","lockClass","navigationDisabledClass","makeElementsArray","getEl","toggleEl","subEl","initButton","destroyButton","_s","isHidden","pagination","$129272ba76d8b432$export$db3b6bfb95261072","$ccf162aef171d9ed$export$2e2bcd8739ae039","raf","autoplayTimeLeft","wasPaused","pausedByTouch","touchStartTimeout","slideChanged","pausedByInteraction","timeLeft","waitForTransition","disableOnInteraction","stopOnLastSlide","reverseDirection","pauseOnMouseEnter","autoplayDelayTotal","autoplayDelayCurrent","autoplayStartTime","onTransitionEnd","calcTimeLeft","getSlideDelay","activeSlideEl","currentSlideDelay","run","delayForce","stop","pause","onVisibilityChange","visibilityState","onPointerEnter","onPointerLeave","attachMouseEvents","detachMouseEvents","attachDocumentEvents","detachDocumentEvents","$ddd0c2ed1384f58e$export$2e2bcd8739ae039","slidesNumberEvenToRows","slidesPerRow","numFullColumns","getSpaceBetween","newSlideOrderIndex","row","groupIndex","slideIndexInGroup","columnsInGroup","$1aaae3023eb523a1$export$2e2bcd8739ae039","fadeEffect","crossFade","requireUpdateOnVirtual","overwriteParams","recreateShadows","getEffectParams","overwriteParamsResult","slideShadows","shadowEl","tx","ty","slideOpacity","effectParams","transformEl","backfaceVisibility","opacity","transformElements","allSlides","getSlide","eventTriggered","transitionEndTarget","fireCallBack","$21bb7f0d2894673a$var$_assertThisInitialized","ReferenceError","$21bb7f0d2894673a$var$_inheritsLoose","subClass","superClass","__proto__","prototypeGroup","protoMethod","observer","animationFrame","createObserver","contentBoxSize","inlineSize","blockSize","removeObserver","unobserve","orientationChangeHandler","observers","attach","ObserverFunc","MutationObserver","WebkitMutationObserver","mutations","observerUpdate","childList","characterData","observeParents","observeSlideChildren","containerParents","disconnect","_id","_req","_raf","_self","_delta","_getTime","_lagThreshold","_adjustedLag","_startTime","_lastUpdate","_gap","_nextTime","_listeners","_tick","$21bb7f0d2894673a$var$_suppressOverwrites","$21bb7f0d2894673a$var$_reverting","$21bb7f0d2894673a$var$_context","$21bb7f0d2894673a$var$_globalTimeline","$21bb7f0d2894673a$var$_win","$21bb7f0d2894673a$var$_coreInitted","$21bb7f0d2894673a$var$_doc","$21bb7f0d2894673a$var$_coreReady","$21bb7f0d2894673a$var$_lastRenderedFrame","$21bb7f0d2894673a$var$_quickTween","$21bb7f0d2894673a$var$_tickerActive","$21bb7f0d2894673a$export$4922bee768729a77","autoSleep","force3D","nullTargetWarn","units","lineHeight","$21bb7f0d2894673a$var$_defaults","overwrite","$21bb7f0d2894673a$var$_2PI","$21bb7f0d2894673a$var$_HALF_PI","$21bb7f0d2894673a$var$_gsID","$21bb7f0d2894673a$var$_sqrt","$21bb7f0d2894673a$var$_cos","$21bb7f0d2894673a$var$_sin","sin","$21bb7f0d2894673a$export$f664476fd67145ca","$21bb7f0d2894673a$var$_isFunction","$21bb7f0d2894673a$var$_isNumber","$21bb7f0d2894673a$export$a8178c063a9fd3a1","$21bb7f0d2894673a$var$_isObject","$21bb7f0d2894673a$var$_isNotFalse","$21bb7f0d2894673a$var$_windowExists","$21bb7f0d2894673a$var$_isFuncOrString","$21bb7f0d2894673a$var$_isTypedArray","ArrayBuffer","isView","$21bb7f0d2894673a$var$_isArray","$21bb7f0d2894673a$var$_strictNumExp","$21bb7f0d2894673a$export$b9d44bb6523120d6","$21bb7f0d2894673a$export$65c88bbd597e7b0a","$21bb7f0d2894673a$var$_complexStringNumExp","$21bb7f0d2894673a$export$5a680e28b0b61bc","$21bb7f0d2894673a$var$_delimitedValueExp","$21bb7f0d2894673a$var$_unitExp","$21bb7f0d2894673a$var$_globals","$21bb7f0d2894673a$var$_installScope","$21bb7f0d2894673a$var$_install","scope","$21bb7f0d2894673a$var$_merge","$21bb7f0d2894673a$export$99ee26438460406a","$21bb7f0d2894673a$export$7fb54635790b59a5","warn","$21bb7f0d2894673a$var$_warn","message","suppress","$21bb7f0d2894673a$var$_addGlobal","$21bb7f0d2894673a$var$_emptyFunc","$21bb7f0d2894673a$var$_startAtRevertConfig","suppressEvents","kill","$21bb7f0d2894673a$var$_revertConfigNoKill","$21bb7f0d2894673a$var$_revertConfig","$21bb7f0d2894673a$var$_reservedProps","$21bb7f0d2894673a$var$_lazyTweens","$21bb7f0d2894673a$var$_lazyLookup","$21bb7f0d2894673a$export$d305d8ec5d7c26b8","$21bb7f0d2894673a$var$_effects","$21bb7f0d2894673a$var$_nextGCFrame","$21bb7f0d2894673a$var$_harnessPlugins","$21bb7f0d2894673a$var$_callbackNames","$21bb7f0d2894673a$var$_harness","harnessPlugin","_gsap","harness","targetTest","$21bb7f0d2894673a$export$cf10981d5419cad5","$21bb7f0d2894673a$export$8b9be379d2de2a39","$21bb7f0d2894673a$export$45b10814cc054894","$21bb7f0d2894673a$export$51d6bbe898aef1f9","$21bb7f0d2894673a$export$f9000b814859f126","names","$21bb7f0d2894673a$export$9c8d725d65e13f94","$21bb7f0d2894673a$var$_roundPrecise","$21bb7f0d2894673a$export$dac762bc6301b560","operator","$21bb7f0d2894673a$var$_arrayContainsAny","toSearch","toFind","l","$21bb7f0d2894673a$var$_lazyRender","tween","_lazy","render","$21bb7f0d2894673a$var$_lazySafeRender","animation","force","_initted","_startAt","$21bb7f0d2894673a$var$_numericIfPossible","$21bb7f0d2894673a$var$_passThrough","p","$21bb7f0d2894673a$export$dc2b19673bb53610","toMerge","$21bb7f0d2894673a$var$_mergeDeep","_mergeDeep","$21bb7f0d2894673a$var$_copyExcluding","excluding","$21bb7f0d2894673a$var$_inheritDefaults","vars","excludeDuration","keyframes","inherit","_dp","$21bb7f0d2894673a$var$_arraysMatch","a1","a2","$21bb7f0d2894673a$var$_addLinkedListItem","firstProp","lastProp","sortBy","_prev","_next","$21bb7f0d2894673a$export$cd008aa6cd8844e3","$21bb7f0d2894673a$var$_removeFromParent","onlyIfParentHasAutoRemove","autoRemoveChildren","_act","$21bb7f0d2894673a$var$_uncache","_end","_dur","_start","_dirty","$21bb7f0d2894673a$var$_recacheAncestors","totalDuration","$21bb7f0d2894673a$var$_rewindStartAt","totalTime","revert","immediateRender","autoRevert","$21bb7f0d2894673a$var$_elapsedCycleDuration","_repeat","$21bb7f0d2894673a$var$_animationCycle","_tTime","_rDelay","tTime","cycleDuration","whole","$21bb7f0d2894673a$var$_parentToChildTotalTime","parentTime","_ts","_tDur","$21bb7f0d2894673a$var$_setEnd","_rts","$21bb7f0d2894673a$var$_alignPlayhead","smoothChildTiming","_time","$21bb7f0d2894673a$var$_postAddChecks","timeline","rawTime","$21bb7f0d2894673a$var$_clamp","_zTime","$21bb7f0d2894673a$var$_addToTimeline","skipChecks","$21bb7f0d2894673a$var$_parsePosition","_delay","timeScale","_sort","$21bb7f0d2894673a$var$_isFromOrFromStart","_recent","$21bb7f0d2894673a$var$_scrollTrigger","ScrollTrigger","$21bb7f0d2894673a$var$_attemptInitTween","$21bb7f0d2894673a$var$_initTween","_pt","lazy","$21bb7f0d2894673a$export$762ed8fbedb691e3","frame","$21bb7f0d2894673a$var$_parentPlayheadIsBeforeStart","_parentPlayheadIsBeforeStart","_lock","$21bb7f0d2894673a$var$_renderZeroDurationTween","pt","iteration","prevIteration","prevRatio","repeatDelay","_yoyo","repeatRefresh","invalidate","_from","r","d","_onUpdate","$21bb7f0d2894673a$var$_callback","_prom","$21bb7f0d2894673a$var$_findNextPauseTween","prevTime","_first","_last","$21bb7f0d2894673a$var$_setDuration","skipUncache","leavePlayhead","repeat","dur","totalProgress","$21bb7f0d2894673a$var$_onUpdateTotalDuration","$21bb7f0d2894673a$export$e6a97ba2cae5bb94","$21bb7f0d2894673a$var$_zeroPosition","endTime","_parsePosition","percentAnimation","isPercent","labels","recent","clippedDuration","$21bb7f0d2894673a$var$_createTweenType","irVars","isLegacy","varsIndex","runBackwards","startAt","$21bb7f0d2894673a$export$208a41d6b4e37b97","$21bb7f0d2894673a$var$_conditionalReturn","$21bb7f0d2894673a$export$65f2564e9a9b9222","exec","$21bb7f0d2894673a$var$_slice","$21bb7f0d2894673a$var$_isArrayLike","nonEmpty","leaveStrings","accumulator","$21bb7f0d2894673a$var$_wake","ar","_accumulator","$21bb7f0d2894673a$export$aea217a45095ce11","nativeElement","$21bb7f0d2894673a$export$448332262467e042","random","$21bb7f0d2894673a$export$f02a9ddbe4480f19","each","ease","$21bb7f0d2894673a$var$_parseEase","cache","isDecimal","ratios","ratioX","ratioY","edges","originX","originY","j","wrapAt","distances","u","$21bb7f0d2894673a$var$_invertEase","$21bb7f0d2894673a$export$dd12390e6b265a17","pow","raw","$21bb7f0d2894673a$export$51a0620f7a28532b","snapTo","radius","is2D","dx","dy","$21bb7f0d2894673a$export$4385e60b38654f68","roundingIncrement","returnFunction","$21bb7f0d2894673a$var$_wrapArray","$21bb7f0d2894673a$export$d5962a97e3cde94d","nums","$21bb7f0d2894673a$export$f65a7599bbc6b121","inMin","inMax","outMin","outMax","inRange","outRange","$21bb7f0d2894673a$var$_getLabelInDirection","fromTime","backward","executeLazyFirst","prevContext","_ctx","callbackScope","$21bb7f0d2894673a$var$_interrupt","scrollTrigger","$21bb7f0d2894673a$var$_registerPluginQueue","$21bb7f0d2894673a$var$_createPlugin","config","isFunc","Plugin","_props","instanceDefaults","$21bb7f0d2894673a$var$_renderPropTweens","$21bb7f0d2894673a$var$_addPropTween","$21bb7f0d2894673a$var$_killPropTweensOf","$21bb7f0d2894673a$var$_addPluginModifier","rawVars","statics","getSetter","$21bb7f0d2894673a$export$d60fbc1e0278aaf0","aliases","toUpperCase","$21bb7f0d2894673a$export$3a67f7f44b1e838a","$21bb7f0d2894673a$var$_colorLookup","aqua","lime","silver","black","maroon","teal","blue","navy","white","olive","yellow","orange","gray","purple","green","red","pink","cyan","transparent","$21bb7f0d2894673a$var$_hue","h","m1","m2","$21bb7f0d2894673a$export$73d6f35be992df24","toHSL","forceAlpha","wasHSL","$21bb7f0d2894673a$var$_colorOrderData","$21bb7f0d2894673a$export$dd733e62515be2bd","$21bb7f0d2894673a$var$_formatColors","orderMatchData","shell","colors","color","shift","$21bb7f0d2894673a$var$_hslExp","$21bb7f0d2894673a$export$7eb2e5eb5eeb96a4","combined","overlap","elapsed","manual","tick","deltaRatio","fps","wake","gsap","gsapVersions","GreenSockGlobals","sleep","lagSmoothing","adjustedLag","_fps","prioritize","$21bb7f0d2894673a$var$_easeMap","$21bb7f0d2894673a$var$_customEaseExp","$21bb7f0d2894673a$var$_quotesExp","$21bb7f0d2894673a$var$_parseObjectInString","parsedVal","$21bb7f0d2894673a$var$_valueInParentheses","$21bb7f0d2894673a$var$_configEaseFromString","_CE","$21bb7f0d2894673a$var$_propagateYoyoEase","_propagateYoyoEase","isYoyo","yoyoEase","_ease","_yEase","defaultEase","$21bb7f0d2894673a$var$_insertEase","easeIn","easeOut","easeInOut","lowercaseName","$21bb7f0d2894673a$var$_easeInOutFromOut","$21bb7f0d2894673a$var$_configElastic","_configElastic","amplitude","period","p1","p2","p3","asin","$21bb7f0d2894673a$var$_configBack","_configBack","overshoot","power","Linear","easeNone","none","n2","n1","n3","SteppedEase","steps","immediateStart","$21bb7f0d2894673a$export$c35d437ae5945fcd","Animation","yoyo","_proto","_totalTime","_ptLookup","_pTime","_ps","includeRepeats","wrapRepeats","prevIsReverting","globalTime","_sat","seek","restart","includeDelay","play","reversed","atTime","isActive","eventCallback","onFulfilled","_resolve","_then","_Animation","Timeline","_this","sortChildren","_proto2","fromTo","fromVars","toVars","delayedCall","staggerTo","stagger","onCompleteAll","onCompleteAllParams","onCompleteParams","staggerFrom","staggerFromTo","prevPaused","pauseTween","prevStart","tDur","crossingStart","rewinding","doesWrap","onRepeat","_hasPause","_forcing","onUpdate","adjustedTime","_this2","addLabel","getChildren","tweens","timelines","ignoreBeforeTime","getById","animations","removeLabel","killTweensOf","_totalTime2","addPause","removePause","onlyActive","getTweensOf","$21bb7f0d2894673a$var$_overwritingTween","parsedTargets","isGlobalTime","_targets","tweenTo","initted","tl","_vars","_onStart","onStart","onStartParams","tweenFromTo","fromPosition","toPosition","nextLabel","afterTime","previousLabel","beforeTime","currentLabel","shiftChildren","adjustLabels","soft","includeLabels","updateRoot","$21bb7f0d2894673a$var$_forceAllPropTweens","$21bb7f0d2894673a$var$_addComplexStringPropTween","setter","stringFilter","funcParam","startNums","endNum","chunk","startNum","hasRandom","$21bb7f0d2894673a$export$c5bc8e04394ecb2","matchIndex","fp","optional","parsedStart","$21bb7f0d2894673a$var$_setterFuncWithParam","$21bb7f0d2894673a$var$_setterFunc","$21bb7f0d2894673a$var$_setterPlain","$21bb7f0d2894673a$var$_renderBoolean","$21bb7f0d2894673a$var$_renderPlain","$21bb7f0d2894673a$var$_processVars","$21bb7f0d2894673a$var$_parseFuncOrString","$21bb7f0d2894673a$export$5c457b74208010cf","plugin","ptLookup","_initTween","cleanVars","hasPriority","gsData","harnessVars","overwritten","onUpdateParams","prevStartAt","fullTargets","autoOverwrite","_overwrite","_ptCache","_op","$21bb7f0d2894673a$export$eed5824f53346d57","_onInit","$21bb7f0d2894673a$var$_updatePropTweens","startIsRelative","rootPT","lookup","ptCache","$21bb7f0d2894673a$var$_addAliasesToVars","propertyAliases","$21bb7f0d2894673a$var$_parseKeyframe","allProps","easeEach","$21bb7f0d2894673a$var$_staggerTweenProps","$21bb7f0d2894673a$var$_staggerPropsToSkip","_Animation2","Tween","skipInherit","_this3","curTarget","staggerFunc","staggerVarsToMerge","_this3$vars","kf","$21bb7f0d2894673a$var$_hasNoPausedAncestors","_hasNoPausedAncestors","_proto3","isNegative","resetTo","overwrittenProps","curLookup","curOverwriteProps","killingTargets","propTweenLookup","firstPT","onReverseComplete","onReverseCompleteParams","$21bb7f0d2894673a$var$_setterAttribute","hasNonDependentRemaining","op","$21bb7f0d2894673a$var$_setterWithModifier","mSet","mt","pt2","first","last","pr","PropTween","renderer","_proto4","TweenMax","TweenLite","TimelineLite","TimelineMax","$21bb7f0d2894673a$var$_media","$21bb7f0d2894673a$var$_listeners","$21bb7f0d2894673a$var$_emptyArray","$21bb7f0d2894673a$var$_lastMediaTime","$21bb7f0d2894673a$var$_dispatch","$21bb7f0d2894673a$var$_onMediaChange","anyMatch","toggled","queries","conditions","onMatch","$21bb7f0d2894673a$var$Context","Context","_r","isReverted","_proto5","prevSelector","ignore","getTweens","_this4","$21bb7f0d2894673a$var$MatchMedia","MatchMedia","contexts","_proto6","mq","active","cond","addListener","$21bb7f0d2894673a$var$_gsap","registerPlugin","getProperty","unit","uncache","getter","quickSetter","setters","quickTo","_merge2","isTweening","registerEffect","plugins","extendTimeline","pluginName","registerEase","parseEase","exportRoot","includeDelayedCalls","matchMediaRefresh","utils","wrap","range","wrapYoyo","total","distribute","getUnit","clamp","splitColor","toArray","mapRange","pipe","functions","unitize","interpolate","mutate","interpolators","il","isString","master","shuffle","install","effects","ticker","globalTimeline","core","globals","getCache","_removeLinkedListItem","reverting","toAdd","suppressOverwrites","$21bb7f0d2894673a$var$_getPluginPropTween","$21bb7f0d2894673a$var$_addModifiers","$21bb7f0d2894673a$var$_buildModifierPlugin","temp","Power0","Power1","Power2","Power3","Power4","Quad","Cubic","Quart","Quint","Strong","Elastic","Back","Bounce","Sine","Expo","Circ","$0cdfc2eaac330c87$var$_doc","$0cdfc2eaac330c87$var$_docElement","$0cdfc2eaac330c87$var$_pluginInitted","$0cdfc2eaac330c87$var$_tempDiv","$0cdfc2eaac330c87$var$_recentSetterPlugin","$0cdfc2eaac330c87$var$_reverting","$0cdfc2eaac330c87$var$_supports3D","$0cdfc2eaac330c87$var$_transformProps","$0cdfc2eaac330c87$var$_RAD2DEG","$0cdfc2eaac330c87$var$_DEG2RAD","$0cdfc2eaac330c87$var$_atan2","$0cdfc2eaac330c87$var$_capsExp","$0cdfc2eaac330c87$var$_horizontalExp","$0cdfc2eaac330c87$var$_complexExp","$0cdfc2eaac330c87$var$_propertyAliases","autoAlpha","scale","alpha","$0cdfc2eaac330c87$var$_renderCSSProp","$0cdfc2eaac330c87$var$_renderPropWithEnd","$0cdfc2eaac330c87$var$_renderCSSPropWithBeginning","$0cdfc2eaac330c87$var$_renderRoundedCSSProp","$0cdfc2eaac330c87$var$_renderNonTweeningValue","$0cdfc2eaac330c87$var$_renderNonTweeningValueOnlyAtEnd","$0cdfc2eaac330c87$var$_setterCSSStyle","$0cdfc2eaac330c87$var$_setterCSSProp","$0cdfc2eaac330c87$var$_setterTransform","$0cdfc2eaac330c87$var$_setterScale","$0cdfc2eaac330c87$var$_setterScaleWithRender","renderTransform","$0cdfc2eaac330c87$var$_setterTransformWithRender","$0cdfc2eaac330c87$var$_transformProp","$0cdfc2eaac330c87$var$_transformOriginProp","$0cdfc2eaac330c87$var$_saveStyle","_saveStyle","isNotCSS","tfm","$0cdfc2eaac330c87$var$_get","svg","svgo","$0cdfc2eaac330c87$var$_removeIndependentTransforms","removeProperty","$0cdfc2eaac330c87$var$_revertStyle","$0cdfc2eaac330c87$var$_getStyleSaver","properties","saver","save","$0cdfc2eaac330c87$export$a232bb0480ae674a","ns","$0cdfc2eaac330c87$var$_getComputedProperty","_getComputedProperty","skipPrefixFallback","cs","$0cdfc2eaac330c87$export$8cbef5dd49a09c8b","$0cdfc2eaac330c87$var$_prefixes","preferPrefix","$0cdfc2eaac330c87$var$_initCore","$0cdfc2eaac330c87$var$_win","cssText","$0cdfc2eaac330c87$var$_getBBoxHack","_getBBoxHack","swapIfPossible","bbox","ownerSVGElement","oldParent","oldSibling","nextSibling","oldCSS","getBBox","_gsapBBox","$0cdfc2eaac330c87$var$_getAttributeFallbacks","attributesArray","$0cdfc2eaac330c87$export$41bc7c2d1e04f11b","bounds","$0cdfc2eaac330c87$var$_isSVG","getCTM","$0cdfc2eaac330c87$var$_removeProperty","$0cdfc2eaac330c87$var$_addNonTweeningPT","beginning","onlySetAtEnd","$0cdfc2eaac330c87$var$_nonConvertibleUnits","deg","rad","turn","$0cdfc2eaac330c87$var$_nonStandardLayouts","flex","$0cdfc2eaac330c87$var$_convertToUnit","_convertToUnit","px","isSVG","curValue","curUnit","horizontal","isRootSVG","measureProperty","toPixels","toPercent","$0cdfc2eaac330c87$var$_parseTransform","$0cdfc2eaac330c87$var$_firstTwoOnly","zOrigin","$0cdfc2eaac330c87$var$_specialProps","$0cdfc2eaac330c87$var$_tweenComplexCSSString","startValues","startValue","endValue","endUnit","startUnit","endValues","$0cdfc2eaac330c87$var$_keywordToPercent","$0cdfc2eaac330c87$var$_convertKeywordsToPercentages","$0cdfc2eaac330c87$var$_renderClearProps","clearTransforms","clearProps","$0cdfc2eaac330c87$var$_identity2DMatrix","$0cdfc2eaac330c87$var$_rotationalProperties","$0cdfc2eaac330c87$var$_isNullTransform","$0cdfc2eaac330c87$var$_getComputedTransformMatrixAsArray","matrixString","$0cdfc2eaac330c87$var$_getMatrix","force2D","addedToDOM","baseVal","consolidate","$0cdfc2eaac330c87$var$_applySVGOrigin","originIsAbsolute","smooth","matrixArray","pluginToAddPropTweensTo","determinant","xOriginOld","xOrigin","yOriginOld","yOrigin","xOffsetOld","xOffset","yOffsetOld","yOffset","originSplit","z","rotation","rotationX","rotationY","skewX","skewY","angle","a12","a22","t1","t2","t3","a13","a23","a33","a42","a43","a32","invertedScaleX","rotate","forceCSS","xPercent","yPercent","transformPerspective","$0cdfc2eaac330c87$var$_renderSVGTransforms","$0cdfc2eaac330c87$var$_renderCSSTransforms","$0cdfc2eaac330c87$var$_renderNon3DTransforms","$0cdfc2eaac330c87$var$_addPxTranslate","$0cdfc2eaac330c87$var$_zeroDeg","transforms","use3D","a11","a21","tan","$0cdfc2eaac330c87$var$_addRotationalPropTween","finalValue","cap","$0cdfc2eaac330c87$var$_assign","source","$0cdfc2eaac330c87$var$_addRawTransformPTs","endCache","startCache","exclude","$0cdfc2eaac330c87$export$855822f522f18eef","specialProp","relative","isTransformRelated","transformPropTween","inlineProps","parseTransform","smoothOrigin","autoRound","_removeProperty","_getMatrix","checkPrefix","getStyleSaver","all","positionAndScale","$357b3f2d5f2ec9d5$export$99ee26438460406a","$d7385dda6eeeec57$var$_defineProperties","descriptor","writable","$d7385dda6eeeec57$var$gsap","$d7385dda6eeeec57$var$_coreInitted","$d7385dda6eeeec57$var$_win","$d7385dda6eeeec57$var$_doc","$d7385dda6eeeec57$var$_docEl","$d7385dda6eeeec57$var$_body","$d7385dda6eeeec57$var$_isTouch","$d7385dda6eeeec57$var$_pointerType","$d7385dda6eeeec57$var$ScrollTrigger","$d7385dda6eeeec57$var$_root","$d7385dda6eeeec57$var$_normalizer","$d7385dda6eeeec57$var$_eventTypes","$d7385dda6eeeec57$var$_context","$d7385dda6eeeec57$var$_getGSAP","$d7385dda6eeeec57$var$_startup","$d7385dda6eeeec57$var$_observers","$d7385dda6eeeec57$export$3cd1cee43d19b683","$d7385dda6eeeec57$export$d8e56d510a804d0a","$d7385dda6eeeec57$var$_getTime","$d7385dda6eeeec57$var$_bridge","$d7385dda6eeeec57$var$_integrate","bridge","scrollers","_scrollers","proxies","_proxies","$d7385dda6eeeec57$export$6078f1ef08b38af9","$d7385dda6eeeec57$export$4330f3a92e5d2e94","$d7385dda6eeeec57$var$_addListener","nonPassive","$d7385dda6eeeec57$var$_removeListener","$d7385dda6eeeec57$var$_scrollLeft","$d7385dda6eeeec57$var$_scrollTop","$d7385dda6eeeec57$var$_onScroll","isPressed","$d7385dda6eeeec57$var$_scrollCacheFunc","doNotCache","cachingFunc","scrollRestoration","isNormalizing","iOS","cacheID","$d7385dda6eeeec57$export$b2cabb342cb0ebe1","os2","d2","sc","$d7385dda6eeeec57$export$8e40fc98ff518e9d","$d7385dda6eeeec57$export$937374fea3f88711","$d7385dda6eeeec57$export$8665aac53dad5647","scrollingElement","$d7385dda6eeeec57$export$5de019f4480f0f8d","minTimeRefresh","useDelta","v1","v2","dropToZeroTime","getVelocity","latestValue","tOld","vOld","$d7385dda6eeeec57$var$_getEvent","_gsapAllow","$d7385dda6eeeec57$var$_getAbsoluteMax","$d7385dda6eeeec57$var$_setScrollTrigger","$d7385dda6eeeec57$var$_initCore","$d7385dda6eeeec57$export$c1cbdee04e18ea8b","isTouch","msMaxTouchPoints","eventTypes","staticProps","Observer","tolerance","dragMinimum","onStop","onStopDelay","wheelSpeed","onDragStart","onDragEnd","onDrag","onPress","onRelease","onRight","onLeft","onUp","onDown","onChangeX","onChangeY","onChange","onToggleX","onToggleY","onHover","onHoverEnd","onMove","ignoreCheck","isNormalizer","onGestureStart","onGestureEnd","onWheel","onEnable","onDisable","scrollSpeed","allowClicks","lockAxis","onLockAxis","onStopDelayedCall","dragged","moved","wheeled","locked","prevDeltaX","prevDeltaY","scrollFuncX","scrollFuncY","scrollX","scrollY","limitToTouch","isViewport","ownerDoc","deltaY","onClickTime","clickCapture","_ignoreCheck","isPointerOrTouch","changedX","changedY","onDelta","_vx","_vy","onTouchOrPointerDelta","_onDrag","clientY","_onPress","_onRelease","isTrackingDrag","wasDragging","eventData","defaultPrevented","syntheticEvent","initMouseEvent","screenY","isGesturing","_onGestureStart","_onGestureEnd","_onWheel","deltaMode","_onMove","_onHover","_onHoverEnd","_onClick","_dc","Constructor","getAll","$daf8bee9365fb629$var$gsap","$daf8bee9365fb629$var$_coreInitted","$daf8bee9365fb629$var$_win","$daf8bee9365fb629$var$_doc","$daf8bee9365fb629$var$_docEl","$daf8bee9365fb629$var$_body","$daf8bee9365fb629$var$_root","$daf8bee9365fb629$var$_resizeDelay","$daf8bee9365fb629$var$_toArray","$daf8bee9365fb629$var$_clamp","$daf8bee9365fb629$var$_time2","$daf8bee9365fb629$var$_syncInterval","$daf8bee9365fb629$var$_refreshing","$daf8bee9365fb629$var$_pointerIsDown","$daf8bee9365fb629$var$_transformProp","$daf8bee9365fb629$var$_i","$daf8bee9365fb629$var$_prevWidth","$daf8bee9365fb629$var$_prevHeight","$daf8bee9365fb629$var$_autoRefresh","$daf8bee9365fb629$var$_sort","$daf8bee9365fb629$var$_suppressOverwrites","$daf8bee9365fb629$var$_ignoreResize","$daf8bee9365fb629$var$_normalizer","$daf8bee9365fb629$var$_ignoreMobileResize","$daf8bee9365fb629$var$_baseScreenHeight","$daf8bee9365fb629$var$_baseScreenWidth","$daf8bee9365fb629$var$_fixIOSBug","$daf8bee9365fb629$var$_context","$daf8bee9365fb629$var$_scrollRestoration","$daf8bee9365fb629$var$_limitCallbacks","$daf8bee9365fb629$var$_rafID","$daf8bee9365fb629$var$_refreshingAll","$daf8bee9365fb629$var$_queueRefreshID","$daf8bee9365fb629$var$_primary","$daf8bee9365fb629$var$_startup","$daf8bee9365fb629$var$_getTime","$daf8bee9365fb629$var$_time1","$daf8bee9365fb629$var$_lastScrollTime","$daf8bee9365fb629$var$_enabled","$daf8bee9365fb629$var$_pointerDownHandler","$daf8bee9365fb629$var$_pointerUpHandler","$daf8bee9365fb629$var$_passThrough","$daf8bee9365fb629$var$_round","$daf8bee9365fb629$var$_windowExists","$daf8bee9365fb629$var$_getGSAP","$daf8bee9365fb629$var$_isViewport","$daf8bee9365fb629$var$_getBoundsFunc","$daf8bee9365fb629$var$_winOffsets","$daf8bee9365fb629$var$_getBounds","$daf8bee9365fb629$var$_getSizeFunc","scroller","$daf8bee9365fb629$var$_maxScroll","$daf8bee9365fb629$var$_iterateAutoRefresh","$daf8bee9365fb629$var$_isString","$daf8bee9365fb629$var$_isFunction","$daf8bee9365fb629$var$_isNumber","$daf8bee9365fb629$var$_isObject","$daf8bee9365fb629$var$_endAnimation","$daf8bee9365fb629$var$_callback","callbackAnimation","$daf8bee9365fb629$var$_abs","$daf8bee9365fb629$var$_left","$daf8bee9365fb629$var$_right","$daf8bee9365fb629$var$_bottom","$daf8bee9365fb629$var$_width","$daf8bee9365fb629$var$_height","$daf8bee9365fb629$var$_Right","$daf8bee9365fb629$var$_Left","$daf8bee9365fb629$var$_Bottom","$daf8bee9365fb629$var$_padding","$daf8bee9365fb629$var$_margin","$daf8bee9365fb629$var$_Width","$daf8bee9365fb629$var$_Height","$daf8bee9365fb629$var$_getComputedStyle","$daf8bee9365fb629$var$_makePositionable","$daf8bee9365fb629$var$_setDefaults","withoutTransforms","$daf8bee9365fb629$var$_getSize","$daf8bee9365fb629$var$_getLabelRatioArray","$daf8bee9365fb629$var$_snapDirectional","snapIncrementOrArray","snapped","$daf8bee9365fb629$var$_multiListener","types","$daf8bee9365fb629$var$_addListener","$daf8bee9365fb629$var$_removeListener","$daf8bee9365fb629$var$_wheelListener","scrollFunc","wheelHandler","$daf8bee9365fb629$var$_markerDefaults","startColor","endColor","indent","$daf8bee9365fb629$var$_defaults","toggleActions","anticipatePin","$daf8bee9365fb629$var$_keywords","$daf8bee9365fb629$var$_offsetToPx","eqIndex","$daf8bee9365fb629$var$_createMarker","matchWidthEl","containerAnimation","useFixedPosition","isScroller","_isStart","$daf8bee9365fb629$var$_positionMarker","marker","flipped","oppositeSide","_isFlipped","$daf8bee9365fb629$var$_triggers","$daf8bee9365fb629$var$_ids","$daf8bee9365fb629$var$_sync","$daf8bee9365fb629$var$_updateAll","$daf8bee9365fb629$var$_onScroll","$daf8bee9365fb629$var$_dispatch","$daf8bee9365fb629$var$_setBaseDimensions","$daf8bee9365fb629$var$_onResize","fullscreenElement","webkitFullscreenElement","$daf8bee9365fb629$var$_listeners","$daf8bee9365fb629$var$_emptyArray","$daf8bee9365fb629$var$_softRefresh","_softRefresh","$daf8bee9365fb629$export$875bcbe48555930","$daf8bee9365fb629$var$_refreshAll","$daf8bee9365fb629$var$_savedStyles","$daf8bee9365fb629$var$_revertRecorded","media","$daf8bee9365fb629$var$_revertAll","$daf8bee9365fb629$var$_clearScrollMemory","rec","$daf8bee9365fb629$var$_refreshID","$daf8bee9365fb629$var$_queueRefreshAll","skipRevert","isRefreshing","refreshInits","scrollBehavior","refresh","_subPinOffset","pin","original","adjustPinSpacing","setPositions","_dir","onRefresh","$daf8bee9365fb629$var$_lastScroll","$daf8bee9365fb629$var$_direction","isUpdating","recordVelocity","$daf8bee9365fb629$var$_propNamesToCopy","$daf8bee9365fb629$var$_stateProps","$daf8bee9365fb629$var$_swapPinOut","spacer","$daf8bee9365fb629$var$_setState","spacerIsNative","spacerState","swappedIn","$daf8bee9365fb629$var$_swapPinIn","spacerStyle","pinStyle","flexBasis","$daf8bee9365fb629$var$_capsExp","$daf8bee9365fb629$var$_getState","$daf8bee9365fb629$var$_copyState","override","omitOffsets","$daf8bee9365fb629$var$_parsePosition","scrollerSize","markerScroller","scrollerBounds","borderWidth","scrollerMax","localOffset","_caScrollDist","$daf8bee9365fb629$var$_prefixExp","$daf8bee9365fb629$var$_reparent","_stOrig","$daf8bee9365fb629$var$_interruptionTracker","getValueFunc","initialValue","onInterrupt","last1","last2","$daf8bee9365fb629$var$_getTweenCreator","getScroll","getTween","change1","change2","checkForInterruption","pinCache","snapFunc","scroll1","scroll2","markerStart","markerEnd","markerStartTrigger","markerEndTrigger","markerVars","pinOriginalState","pinActiveState","pinState","pinGetter","pinSetter","pinStart","pinChange","spacingStart","markerStartSetter","pinMoves","markerEndSetter","snap1","snap2","scrubTween","scrubSmooth","snapDurClamp","snapDelayedCall","prevProgress","prevScroll","prevAnimProgress","caMarkerSetter","customRevertReturn","toggleClass","onToggle","scrub","pinSpacing","invalidateOnRefresh","onScrubComplete","onSnapComplete","pinReparent","pinSpacer","fastScrollEnd","preventOverlaps","isToggle","scrollerCache","pinType","callbacks","onLeave","onEnterBack","onLeaveBack","markers","onRefreshInit","getScrollerSize","getScrollerOffsets","lastSnap","lastRefresh","refreshPriority","tweenScroll","scrubDuration","st","directional","refreshedRecently","naturalEnd","inertia","endScroll","_snap","_onInterrupt","_onComplete","stRevert","oldOnUpdate","oldParams","previous","prevRefreshing","curTrigger","curPin","oppositeScroll","revertedPins","forcedOverflow","isFirstRefresh","otherPinOffset","parsedEnd","parsedEndTrigger","endTrigger","pinnedContainer","triggerIndex","_pinPush","_pinOffset","endAnimation","labelToScroll","getTrailing","forceFake","toggleState","stateChanged","isAtMax","isTakingAction","clipped","newStart","newEnd","allowAnimation","onKill","$daf8bee9365fb629$var$_rafBugFix","_rafBugFix","mm","bodyStyle","border","borderTopStyle","AnimationProto","w","hidden","limitCallbacks","ms","syncInterval","ignoreMobileResize","autoRefreshEvents","scrollerProxy","clearMatchMedia","isInViewport","positionInViewport","referencePoint","killAll","allowListeners","listeners","saveStyles","safe","clearScrollMemory","maxScroll","getScrollFunc","snapDirectional","batch","varsCopy","interval","batchMax","proxyCallback","triggers","$daf8bee9365fb629$var$_inputIsFocused","$daf8bee9365fb629$var$_clampScrollAndGetDurationMultiplier","$daf8bee9365fb629$var$_allowNativePanning","_allowNativePanning","touchAction","$daf8bee9365fb629$var$_overflow","$daf8bee9365fb629$var$_nestedScroll","_isScrollT","_isScroll","$daf8bee9365fb629$var$_inputObserver","inputs","$daf8bee9365fb629$var$_captureInputs","$daf8bee9365fb629$var$_inputExp","isInput","$daf8bee9365fb629$var$_getScrollNormalizer","maxY","lastRefreshID","skipTouchMove","startScrollX","startScrollY","_vars2","normalizeScrollX","momentum","allowNestedScroll","smoother","ScrollSmoother","smootherInstance","initialScale","outerWidth","wheelRefresh","resolveMomentumDuration","inputObserver","resumeTouchMove","scrollClampX","scrollClampY","updateClamps","removeContentOffset","ignoreDrag","onResize","prevScale","currentScroll","velocityX","velocityY","xArray","yArray","yClamped","normalizeScroll","normalizer","_getVelocityProp","_inputObserver","ss","ref","selectors","videos","$video","responseVideo","resizer","widthNow","maxBreakpoint","nowBreakpoint","isPlay","playPromise","catch","$8f6a480bb40b134f$var$videoSwiper","bulletSize","pfx","bulletElement","renderBullet","renderProgressbar","renderFraction","renderCustom","progressbarOpposite","dynamicBullets","dynamicMainBullets","formatFractionCurrent","formatFractionTotal","bulletClass","bulletActiveClass","modifierClass","currentClass","totalClass","progressbarFillClass","progressbarOppositeClass","clickableClass","horizontalClass","verticalClass","paginationDisabledClass","bullets","dynamicBulletIndex","isPaginationDisabled","setSideBullets","bulletEl","onBulletClick","newSlideIndex","currentSlideIndex","indexBeforeLoopFix","indexAfterFix","firstIndex","midIndex","classesToRemove","suffix","flat","bullet","bulletIndex","firstDisplayedBullet","lastDisplayedBullet","dynamicBulletsLength","bulletsOffset","offsetProp","subElIndex","fractionEl","totalEl","progressbarDirection","progressEl","paginationHTML","numberOfBullets","video","currentSlide","ended","onended","slideChangeTransitionEnd","prevVideo","currentTime","$8f6a480bb40b134f$var$listsSwiper","anchor","slider","arr","ele","aos","proxy","up","down","null","tableContainer","tableWrapper","tableInner"],"version":3,"file":"main.js.map"}