/******************************************************************************* * Copyright 2017 Adobe * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ if (window.Element && !Element.prototype.closest) { // eslint valid-jsdoc: "off" Element.prototype.closest = function(s) { "use strict"; var matches = (this.document || this.ownerDocument).querySelectorAll(s); var el = this; var i; do { i = matches.length; while (--i >= 0 && matches.item(i) !== el) { // continue } } while ((i < 0) && (el = el.parentElement)); return el; }; } if (window.Element && !Element.prototype.matches) { Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector || function(s) { "use strict"; var matches = (this.document || this.ownerDocument).querySelectorAll(s); var i = matches.length; while (--i >= 0 && matches.item(i) !== this) { // continue } return i > -1; }; } if (!Object.assign) { Object.assign = function(target, varArgs) { // .length of function is 2 "use strict"; if (target === null) { throw new TypeError("Cannot convert undefined or null to object"); } var to = Object(target); for (var index = 1; index < arguments.length; index++) { var nextSource = arguments[index]; if (nextSource !== null) { for (var nextKey in nextSource) { if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) { to[nextKey] = nextSource[nextKey]; } } } } return to; }; } (function(arr) { "use strict"; arr.forEach(function(item) { if (Object.prototype.hasOwnProperty.call(item, "remove")) { return; } Object.defineProperty(item, "remove", { configurable: true, enumerable: true, writable: true, value: function remove() { this.parentNode.removeChild(this); } }); }); })([Element.prototype, CharacterData.prototype, DocumentType.prototype]); /******************************************************************************* * Copyright 2022 Adobe * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ (function(document) { "use strict"; window.CMP = window.CMP || {}; window.CMP.utils = (function() { var NS = "cmp"; /** * Reads options data from the Component wrapper element, defined via {@code data-cmp-*} data attributes * * @param {HTMLElement} element The component element to read options data from * @param {String} is The component identifier * @returns {String[]} The options read from the component data attributes */ var readData = function(element, is) { var data = element.dataset; var options = []; var capitalized = is; capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1); var reserved = ["is", "hook" + capitalized]; for (var key in data) { if (Object.prototype.hasOwnProperty.call(data, key)) { var value = data[key]; if (key.indexOf(NS) === 0) { key = key.slice(NS.length); key = key.charAt(0).toLowerCase() + key.substring(1); if (reserved.indexOf(key) === -1) { options[key] = value; } } } } return options; }; /** * Set up the final properties of a component by evaluating the transform function or fall back to the default value on demand * @param {String[]} options the options to transform * @param {Object} properties object of properties of property functions * @returns {Object} transformed properties */ var setupProperties = function(options, properties) { var transformedProperties = {}; for (var key in properties) { if (Object.prototype.hasOwnProperty.call(properties, key)) { var property = properties[key]; if (options && options[key] != null) { if (property && typeof property.transform === "function") { transformedProperties[key] = property.transform(options[key]); } else { transformedProperties[key] = options[key]; } } else { transformedProperties[key] = properties[key]["default"]; } } } return transformedProperties; }; return { readData: readData, setupProperties: setupProperties }; }()); }(window.document)); /******************************************************************************* * Copyright 2022 Adobe * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ (function(document) { "use strict"; window.CMP = window.CMP || {}; window.CMP.image = window.CMP.image || {}; window.CMP.image.dynamicMedia = (function() { var autoSmartCrops = {}; var SRC_URI_TEMPLATE_WIDTH_VAR = "{.width}"; var SRC_URI_TEMPLATE_DPR_VAR = "{dpr}"; var SRC_URI_DPR_OFF = "dpr=off"; var SRC_URI_DPR_ON = "dpr=on,{dpr}"; var dpr = window.devicePixelRatio || 1; var config = { minWidth: 20 }; /** * get auto smart crops from dm * @param {String} src the src uri * @returns {{}} the smart crop json object */ var getAutoSmartCrops = function(src) { var request = new XMLHttpRequest(); var url = src.split(SRC_URI_TEMPLATE_WIDTH_VAR)[0] + "?req=set,json"; request.open("GET", url, false); request.onload = function() { if (request.status >= 200 && request.status < 400) { // success status var responseText = request.responseText; var rePayload = new RegExp(/^(?:\/\*jsonp\*\/)?\s*([^()]+)\(([\s\S]+),\s*"[0-9]*"\);?$/gmi); var rePayloadJSON = new RegExp(/^{[\s\S]*}$/gmi); var resPayload = rePayload.exec(responseText); var payload; if (resPayload) { var payloadStr = resPayload[2]; if (rePayloadJSON.test(payloadStr)) { payload = JSON.parse(payloadStr); } } // check "relation" - only in case of smartcrop preset if (payload && payload.set.relation && payload.set.relation.length > 0) { for (var i = 0; i < payload.set.relation.length; i++) { autoSmartCrops[parseInt(payload.set.relation[i].userdata.SmartCropWidth)] = ":" + payload.set.relation[i].userdata.SmartCropDef; } } } else { // error status } }; request.send(); return autoSmartCrops; }; /** * Build and return the srcset value based on the available auto smart crops * @param {String} src the src uri * @param {Object} smartCrops the smart crops object * @returns {String} the srcset */ var getSrcSet = function(src, smartCrops) { var srcset; var keys = Object.keys(smartCrops); if (keys.length > 0) { srcset = []; for (var key in autoSmartCrops) { srcset.push(src.replace(SRC_URI_TEMPLATE_WIDTH_VAR, smartCrops[key]) + " " + key + "w"); } } return srcset.join(","); }; /** * Get the optimal width based on the available sizes * @param {[Number]} sizes the available sizes * @param {Number} width the element width * @returns {String} the optimal width */ function getOptimalWidth(sizes, width) { var len = sizes.length; var key = 0; while ((key < len - 1) && (sizes[key] < width)) { key++; } return sizes[key] !== undefined ? sizes[key].toString() : width; } /** * Get the width of an element or parent element if the width is smaller than the minimum width * @param {HTMLElement} component the image component * @param {HTMLElement | Node} parent the parent element * @returns {Number} the width of the element */ var getWidth = function(component, parent) { var width = component.offsetWidth; while (width < config.minWidth && parent && !component._autoWidth) { width = parent.offsetWidth; parent = parent.parentNode; } return width; }; /** * Set the src and srcset attribute for a Dynamic Media Image which auto smart crops enabled. * @param {HTMLElement} component the image component * @param {{}} properties the component properties */ var setDMAttributes = function(component, properties) { // for v3 we first have to turn the dpr on var src = properties.src.replace(SRC_URI_DPR_OFF, SRC_URI_DPR_ON); src = src.replace(SRC_URI_TEMPLATE_DPR_VAR, dpr); var smartCrops = {}; var width; if (properties["smartcroprendition"] === "SmartCrop:Auto") { smartCrops = getAutoSmartCrops(src); } var hasWidths = (properties.widths && properties.widths.length > 0) || Object.keys(smartCrops).length > 0; if (hasWidths) { var image = component.querySelector("img"); var elemWidth = getWidth(component, component.parentNode); if (properties["smartcroprendition"] === "SmartCrop:Auto") { image.setAttribute("srcset", CMP.image.dynamicMedia.getSrcSet(src, smartCrops)); width = getOptimalWidth(Object.keys(smartCrops, elemWidth)); image.setAttribute("src", CMP.image.dynamicMedia.getSrc(src, smartCrops[width])); } else { width = getOptimalWidth(properties.widths, elemWidth); image.setAttribute("src", CMP.image.dynamicMedia.getSrc(src, width)); } } }; /** * Get the src attribute based on the optimal width * @param {String} src the src uri * @param {String} width the element width * @returns {String} the final src attribute */ var getSrc = function(src, width) { if (src.indexOf(SRC_URI_TEMPLATE_WIDTH_VAR) > -1) { src = src.replace(SRC_URI_TEMPLATE_WIDTH_VAR, width); } return src; }; return { getAutoSmartCrops: getAutoSmartCrops, getSrcSet: getSrcSet, getSrc: getSrc, setDMAttributes: setDMAttributes, getWidth: getWidth }; }()); document.dispatchEvent(new CustomEvent("core.wcm.components.commons.site.image.dynamic-media.loaded")); }(window.document)); /******************************************************************************* * Copyright 2016 Adobe * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ (function() { "use strict"; var NS = "cmp"; var IS = "image"; var EMPTY_PIXEL = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"; var LAZY_THRESHOLD_DEFAULT = 0; var SRC_URI_TEMPLATE_WIDTH_VAR = "{.width}"; var SRC_URI_TEMPLATE_WIDTH_VAR_ASSET_DELIVERY = "width={width}"; var SRC_URI_TEMPLATE_DPR_VAR = "{dpr}"; var selectors = { self: "[data-" + NS + '-is="' + IS + '"]', image: '[data-cmp-hook-image="image"]', map: '[data-cmp-hook-image="map"]', area: '[data-cmp-hook-image="area"]' }; var lazyLoader = { "cssClass": "cmp-image__image--is-loading", "style": { "height": 0, "padding-bottom": "" // will be replaced with % ratio } }; var properties = { /** * An array of alternative image widths (in pixels). * Used to replace a {.width} variable in the src property with an optimal width if a URI template is provided. * * @memberof Image * @type {Number[]} * @default [] */ "widths": { "default": [], "transform": function(value) { var widths = []; value.split(",").forEach(function(item) { item = parseFloat(item); if (!isNaN(item)) { widths.push(item); } }); return widths; } }, /** * Indicates whether the image should be rendered lazily. * * @memberof Image * @type {Boolean} * @default false */ "lazy": { "default": false, "transform": function(value) { return !(value === null || typeof value === "undefined"); } }, /** * Indicates image is DynamicMedia image. * * @memberof Image * @type {Boolean} * @default false */ "dmimage": { "default": false, "transform": function(value) { return !(value === null || typeof value === "undefined"); } }, /** * The lazy threshold. * This is the number of pixels, in advance of becoming visible, when an lazy-loading image should begin * to load. * * @memberof Image * @type {Number} * @default 0 */ "lazythreshold": { "default": 0, "transform": function(value) { var val = parseInt(value); if (isNaN(val)) { return LAZY_THRESHOLD_DEFAULT; } return val; } }, /** * The image source. * * Can be a simple image source, or a URI template representation that * can be variable expanded - useful for building an image configuration with an alternative width. * e.g. '/path/image.coreimg{.width}.jpeg/1506620954214.jpeg' * * @memberof Image * @type {String} */ "src": { "transform": function(value) { return decodeURIComponent(value); } } }; var devicePixelRatio = window.devicePixelRatio || 1; function Image(config) { var that = this; var smartCrops = {}; var useAssetDelivery = false; var srcUriTemplateWidthVar = SRC_URI_TEMPLATE_WIDTH_VAR; function init(config) { // prevents multiple initialization config.element.removeAttribute("data-" + NS + "-is"); // check if asset delivery is used if (config.options.src && config.options.src.indexOf(SRC_URI_TEMPLATE_WIDTH_VAR_ASSET_DELIVERY) >= 0) { useAssetDelivery = true; srcUriTemplateWidthVar = SRC_URI_TEMPLATE_WIDTH_VAR_ASSET_DELIVERY; } that._properties = CMP.utils.setupProperties(config.options, properties); cacheElements(config.element); // check image is DM asset; if true try to make req=set if (config.options.src && Object.prototype.hasOwnProperty.call(config.options, "dmimage") && (config.options["smartcroprendition"] === "SmartCrop:Auto")) { smartCrops = CMP.image.dynamicMedia.getAutoSmartCrops(config.options.src); } if (!that._elements.noscript) { return; } that._elements.container = that._elements.link ? that._elements.link : that._elements.self; unwrapNoScript(); if (that._properties.lazy) { addLazyLoader(); } if (that._elements.map) { that._elements.image.addEventListener("load", onLoad); } window.addEventListener("resize", onWindowResize); ["focus", "click", "load", "transitionend", "animationend", "scroll"].forEach(function(name) { document.addEventListener(name, that.update); }); that._elements.image.addEventListener("cmp-image-redraw", that.update); that._interSectionObserver = new IntersectionObserver(function(entries, interSectionObserver) { entries.forEach(function(entry) { if (entry.intersectionRatio > 0) { that.update(); } }); }); that._interSectionObserver.observe(that._elements.self); that.update(); } function loadImage() { var hasWidths = (that._properties.widths && that._properties.widths.length > 0) || Object.keys(smartCrops).length > 0; var replacement; if (Object.keys(smartCrops).length > 0) { var optimalWidth = getOptimalWidth(Object.keys(smartCrops), false); replacement = smartCrops[optimalWidth]; } else { replacement = hasWidths ? (that._properties.dmimage ? "" : ".") + getOptimalWidth(that._properties.widths, true) : ""; } if (useAssetDelivery) { replacement = replacement !== "" ? ("width=" + replacement.substring(1)) : ""; } var url = that._properties.src.replace(srcUriTemplateWidthVar, replacement); url = url.replace(SRC_URI_TEMPLATE_DPR_VAR, devicePixelRatio); var imgSrcAttribute = that._elements.image.getAttribute("src"); if (url !== imgSrcAttribute) { if (imgSrcAttribute === null || imgSrcAttribute === EMPTY_PIXEL) { that._elements.image.setAttribute("src", url); } else { var urlTemplateParts = that._properties.src.split(srcUriTemplateWidthVar); // check if image src was dynamically swapped meanwhile (e.g. by Target) var isImageRefSame = imgSrcAttribute.startsWith(urlTemplateParts[0]); if (isImageRefSame && urlTemplateParts.length > 1) { isImageRefSame = imgSrcAttribute.endsWith(urlTemplateParts[urlTemplateParts.length - 1]); } if (isImageRefSame) { that._elements.image.setAttribute("src", url); if (!hasWidths) { window.removeEventListener("scroll", that.update); } } } } if (that._lazyLoaderShowing) { that._elements.image.addEventListener("load", removeLazyLoader); } that._interSectionObserver.unobserve(that._elements.self); } function getOptimalWidth(widths, useDevicePixelRatio) { var container = that._elements.self; var containerWidth = container.clientWidth; while (containerWidth === 0 && container.parentNode) { container = container.parentNode; containerWidth = container.clientWidth; } var dpr = useDevicePixelRatio ? devicePixelRatio : 1; var optimalWidth = containerWidth * dpr; var len = widths.length; var key = 0; while ((key < len - 1) && (widths[key] < optimalWidth)) { key++; } return widths[key].toString(); } function addLazyLoader() { var width = that._elements.image.getAttribute("width"); var height = that._elements.image.getAttribute("height"); if (width && height) { var ratio = (height / width) * 100; var styles = lazyLoader.style; styles["padding-bottom"] = ratio + "%"; for (var s in styles) { if (Object.prototype.hasOwnProperty.call(styles, s)) { that._elements.image.style[s] = styles[s]; } } } that._elements.image.setAttribute("src", EMPTY_PIXEL); that._elements.image.classList.add(lazyLoader.cssClass); that._lazyLoaderShowing = true; } function unwrapNoScript() { var markup = decodeNoscript(that._elements.noscript.textContent.trim()); var parser = new DOMParser(); // temporary document avoids requesting the image before removing its src var temporaryDocument = parser.parseFromString(markup, "text/html"); var imageElement = temporaryDocument.querySelector(selectors.image); imageElement.removeAttribute("src"); that._elements.container.insertBefore(imageElement, that._elements.noscript); var mapElement = temporaryDocument.querySelector(selectors.map); if (mapElement) { that._elements.container.insertBefore(mapElement, that._elements.noscript); } that._elements.noscript.parentNode.removeChild(that._elements.noscript); if (that._elements.container.matches(selectors.image)) { that._elements.image = that._elements.container; } else { that._elements.image = that._elements.container.querySelector(selectors.image); } that._elements.map = that._elements.container.querySelector(selectors.map); that._elements.areas = that._elements.container.querySelectorAll(selectors.area); } function removeLazyLoader() { that._elements.image.classList.remove(lazyLoader.cssClass); for (var property in lazyLoader.style) { if (Object.prototype.hasOwnProperty.call(lazyLoader.style, property)) { that._elements.image.style[property] = ""; } } that._elements.image.removeEventListener("load", removeLazyLoader); that._lazyLoaderShowing = false; } function isLazyVisible() { if (that._elements.container.offsetParent === null) { return false; } var wt = window.pageYOffset; var wb = wt + document.documentElement.clientHeight; var et = that._elements.container.getBoundingClientRect().top + wt; var eb = et + that._elements.container.clientHeight; return eb >= wt - that._properties.lazythreshold && et <= wb + that._properties.lazythreshold; } function resizeAreas() { if (that._elements.areas && that._elements.areas.length > 0) { for (var i = 0; i < that._elements.areas.length; i++) { var width = that._elements.image.width; var height = that._elements.image.height; if (width && height) { var relcoords = that._elements.areas[i].dataset.cmpRelcoords; if (relcoords) { var relativeCoordinates = relcoords.split(","); var coordinates = new Array(relativeCoordinates.length); for (var j = 0; j < coordinates.length; j++) { if (j % 2 === 0) { coordinates[j] = parseInt(relativeCoordinates[j] * width); } else { coordinates[j] = parseInt(relativeCoordinates[j] * height); } } that._elements.areas[i].coords = coordinates; } } } } } function cacheElements(wrapper) { that._elements = {}; that._elements.self = wrapper; var hooks = that._elements.self.querySelectorAll("[data-" + NS + "-hook-" + IS + "]"); for (var i = 0; i < hooks.length; i++) { var hook = hooks[i]; var capitalized = IS; capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1); var key = hook.dataset[NS + "Hook" + capitalized]; that._elements[key] = hook; } } function onWindowResize() { that.update(); resizeAreas(); } function onLoad() { resizeAreas(); } that.update = function() { if (that._properties.lazy) { if (isLazyVisible()) { loadImage(); } } else { loadImage(); } }; if (config && config.element) { init(config); } } function onDocumentReady() { var elements = document.querySelectorAll(selectors.self); for (var i = 0; i < elements.length; i++) { new Image({ element: elements[i], options: CMP.utils.readData(elements[i], IS) }); } var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; var body = document.querySelector("body"); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { // needed for IE var nodesArray = [].slice.call(mutation.addedNodes); if (nodesArray.length > 0) { nodesArray.forEach(function(addedNode) { if (addedNode.querySelectorAll) { var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self)); elementsArray.forEach(function(element) { new Image({ element: element, options: CMP.utils.readData(element, IS) }); }); } }); } }); }); observer.observe(body, { subtree: true, childList: true, characterData: true }); } var documentReady = document.readyState !== "loading" ? Promise.resolve() : new Promise(function(resolve) { document.addEventListener("DOMContentLoaded", resolve); }); Promise.all([documentReady]).then(onDocumentReady); /* on drag & drop of the component into a parsys, noscript's content will be escaped multiple times by the editor which creates the DOM for editing; the HTML parser cannot be used here due to the multiple escaping */ function decodeNoscript(text) { text = text.replace(/&(amp;)*lt;/g, "<"); text = text.replace(/&(amp;)*gt;/g, ">"); return text; } })(); (function(){window.CQ=window.CQ||{};window.CQ.CoreComponents=window.CQ.CoreComponents||{};window.CQ.CoreComponents.container=window.CQ.CoreComponents.container||{};window.CQ.CoreComponents.container.utils={};window.CQ.CoreComponents.container.utils={getDeepLinkItemIdx:function(a,b){if(window.location.hash){var c=window.location.hash.substring(1);if(document.getElementById(c)&&c&&a&&a._config&&a._config.element&&a._config.element.id&&a._elements&&a._elements[b]&&0===c.indexOf(a._config.element.id+ "-item-"))for(var d=0;d=0)return;a.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(P,i,"")),t=M}(o||i)&&this.props.push(t,i,o[t])},R=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},q=function(){var e,t,i=this.props,n=this.target,r=n.style,o=n._gsap;for(e=0;e=0?H[r]:"")+e},W=function(){"undefined"!=typeof window&&window.document&&(n=window,r=n.document,o=r.documentElement,s=F("div")||{style:{}},F("div"),M=U(M),P=M+"Origin",s.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",u=!!U("perspective"),l=d.B.core.reverting,a=1)},z=function(e){var t,i=e.ownerSVGElement,n=F("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0);r.style.display="block",n.appendChild(r),o.appendChild(n);try{t=r.getBBox()}catch(e){}return n.removeChild(r),o.removeChild(n),t},V=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},$=function(e){var t,i;try{t=e.getBBox()}catch(n){t=z(e),i=1}return t&&(t.width||t.height)||i||(t=z(e)),!t||t.width||t.x||t.y?t:{x:+V(e,["x","cx","x1"])||0,y:+V(e,["y","cy","y1"])||0,width:0,height:0}},Y=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!$(e))},G=function(e,t){if(t){var i,n=e.style;t in h&&t!==P&&(t=M),n.removeProperty?("ms"!==(i=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),n.removeProperty("--"===i?t:t.replace(g,"-$1").toLowerCase())):n.removeAttribute(t)}},X=function(e,t,i,n,r,o){var a=new d.d(e._pt,t,i,0,1,o?A:C);return e._pt=a,a.b=n,a.e=r,e._props.push(i),a},K={deg:1,rad:1,turn:1},J={grid:1,flex:1},Z=function e(t,i,n,o){var a,c,l,u,p=parseFloat(n)||0,f=(n+"").trim().substr((p+"").length)||"px",m=s.style,g=v.test(i),y="svg"===t.tagName.toLowerCase(),b=(y?"client":"offset")+(g?"Width":"Height"),w="px"===o,S="%"===o;if(o===f||!p||K[o]||K[f])return p;if("px"!==f&&!w&&(p=e(t,i,n,"px")),u=t.getCTM&&Y(t),(S||"%"===f)&&(h[i]||~i.indexOf("adius")))return a=u?t.getBBox()[g?"width":"height"]:t[b],Object(d.x)(S?p/a*100:p/100*a);if(m[g?"width":"height"]=100+(w?f:o),c="rem"!==o&&~i.indexOf("adius")||"em"===o&&t.appendChild&&!y?t:t.parentNode,u&&(c=(t.ownerSVGElement||{}).parentNode),c&&c!==r&&c.appendChild||(c=r.body),(l=c._gsap)&&S&&l.width&&g&&l.time===d.z.time&&!l.uncache)return Object(d.x)(p/l.width*100);if(!S||"height"!==i&&"width"!==i)(S||"%"===f)&&!J[j(c,"display")]&&(m.position=j(t,"position")),c===t&&(m.position="static"),c.appendChild(s),a=s[b],c.removeChild(s),m.position="absolute";else{var _=t.style[i];t.style[i]=100+o,a=t[b],_?t.style[i]=_:G(t,i)}return g&&S&&((l=Object(d.k)(c)).time=d.z.time,l.width=c[b]),Object(d.x)(w?a*p/100:a&&p?100/a*p:0)},Q=function(e,t,i,n){var r;return a||W(),t in b&&"transform"!==t&&~(t=b[t]).indexOf(",")&&(t=t.split(",")[0]),h[t]&&"transform"!==t?(r=ue(e,n),r="transformOrigin"!==t?r[t]:r.svg?r.origin:de(j(e,P))+" "+r.zOrigin+"px"):(!(r=e.style[t])||"auto"===r||n||~(r+"").indexOf("calc("))&&(r=ne[t]&&ne[t](e,t,i)||j(e,t)||Object(d.l)(e,t)||("opacity"===t?1:0)),i&&!~(r+"").trim().indexOf(" ")?Z(e,t,r,i)+i:r},ee=function(e,t,i,n){if(!i||"none"===i){var r=U(t,e,1),o=r&&j(e,r,1);o&&o!==i?(t=r,i=o):"borderColor"===t&&(i=j(e,"borderTopColor"))}var a,s,c,l,u,h,p,f,m,g,v,y=new d.d(this._pt,e.style,t,0,1,d.v),b=0,w=0;if(y.b=i,y.e=n,i+="","var(--"===(n+="").substring(0,6)&&(n=j(e,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=e.style[t],e.style[t]=n,n=j(e,t)||n,h?e.style[t]=h:G(e,t)),a=[i,n],Object(d.h)(a),n=a[1],c=(i=a[0]).match(d.r)||[],(n.match(d.r)||[]).length){for(;s=d.r.exec(n);)p=s[0],m=n.substring(b,s.index),u?u=(u+1)%5:"rgba("!==m.substr(-5)&&"hsla("!==m.substr(-5)||(u=1),p!==(h=c[w++]||"")&&(l=parseFloat(h)||0,v=h.substr((l+"").length),"="===p.charAt(1)&&(p=Object(d.s)(l,p)+v),f=parseFloat(p),g=p.substr((f+"").length),b=d.r.lastIndex-g.length,g||(g=g||d.i.units[t]||v,b===n.length&&(n+=g,y.e+=g)),v!==g&&(l=Z(e,t,h,g)||0),y._pt={_next:y._pt,p:m||1===w?m:",",s:l,c:f-l,m:u&&u<4||"zIndex"===t?Math.round:0});y.c=b-1;)i=s[r],h[i]&&(n=1,i="transformOrigin"===i?P:M),G(o,i);n&&(G(o,M),c&&(c.svg&&o.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",ue(o,1),c.uncache=1,R(a)))}},ne={clearProps:function(e,t,i,n,r){if("isFromStart"!==r.data){var o=e._pt=new d.d(e._pt,t,i,0,0,ie);return o.u=n,o.pr=-10,o.tween=r,e._props.push(i),1}}},re=[1,0,0,1,0,0],oe={},ae=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},se=function(e){var t=j(e,M);return ae(t)?re:t.substr(7).match(d.q).map(d.x)},ce=function(e,t){var i,n,r,a,s=e._gsap||Object(d.k)(e),c=e.style,l=se(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(r=e.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?re:l:(l!==re||e.offsetParent||e===o||s.svg||(r=c.display,c.display="block",(i=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(a=1,n=e.nextElementSibling,o.appendChild(e)),l=se(e),r?c.display=r:G(e,"display"),a&&(n?i.insertBefore(e,n):i?i.appendChild(e):o.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},le=function(e,t,i,n,r,o){var a,s,c,l=e._gsap,u=r||ce(e,!0),d=l.xOrigin||0,h=l.yOrigin||0,p=l.xOffset||0,f=l.yOffset||0,m=u[0],g=u[1],v=u[2],y=u[3],b=u[4],w=u[5],S=t.split(" "),_=parseFloat(S[0])||0,E=parseFloat(S[1])||0;i?u!==re&&(s=m*y-g*v)&&(c=_*(-g/s)+E*(m/s)-(m*w-g*b)/s,_=_*(y/s)+E*(-v/s)+(v*w-y*b)/s,E=c):(_=(a=$(e)).x+(~S[0].indexOf("%")?_/100*a.width:_),E=a.y+(~(S[1]||S[0]).indexOf("%")?E/100*a.height:E)),n||!1!==n&&l.smooth?(b=_-d,w=E-h,l.xOffset=p+(b*m+w*v)-b,l.yOffset=f+(b*g+w*y)-w):l.xOffset=l.yOffset=0,l.xOrigin=_,l.yOrigin=E,l.smooth=!!n,l.origin=t,l.originIsAbsolute=!!i,e.style[P]="0px 0px",o&&(X(o,l,"xOrigin",d,_),X(o,l,"yOrigin",h,E),X(o,l,"xOffset",p,l.xOffset),X(o,l,"yOffset",f,l.yOffset)),e.setAttribute("data-svg-origin",_+" "+E)},ue=function(e,t){var i=e._gsap||new d.b(e);if("x"in i&&!t&&!i.uncache)return i;var n,r,o,a,s,c,l,h,g,v,y,b,w,S,_,E,T,C,A,x,O,L,k,I,D,N,R,q,B,F,H,U,W=e.style,z=i.scaleX<0,V=getComputedStyle(e),$=j(e,P)||"0";return n=r=o=c=l=h=g=v=y=0,a=s=1,i.svg=!(!e.getCTM||!Y(e)),V.translate&&("none"===V.translate&&"none"===V.scale&&"none"===V.rotate||(W[M]=("none"!==V.translate?"translate3d("+(V.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==V.rotate?"rotate("+V.rotate+") ":"")+("none"!==V.scale?"scale("+V.scale.split(" ").join(",")+") ":"")+("none"!==V[M]?V[M]:"")),W.scale=W.rotate=W.translate="none"),S=ce(e,i.svg),i.svg&&(i.uncache?(D=e.getBBox(),$=i.xOrigin-D.x+"px "+(i.yOrigin-D.y)+"px",I=""):I=!t&&e.getAttribute("data-svg-origin"),le(e,I||$,!!I||i.originIsAbsolute,!1!==i.smooth,S)),b=i.xOrigin||0,w=i.yOrigin||0,S!==re&&(C=S[0],A=S[1],x=S[2],O=S[3],n=L=S[4],r=k=S[5],6===S.length?(a=Math.sqrt(C*C+A*A),s=Math.sqrt(O*O+x*x),c=C||A?m(A,C)*p:0,(g=x||O?m(x,O)*p+c:0)&&(s*=Math.abs(Math.cos(g*f))),i.svg&&(n-=b-(b*C+w*x),r-=w-(b*A+w*O))):(U=S[6],F=S[7],R=S[8],q=S[9],B=S[10],H=S[11],n=S[12],r=S[13],o=S[14],l=(_=m(U,B))*p,_&&(I=L*(E=Math.cos(-_))+R*(T=Math.sin(-_)),D=k*E+q*T,N=U*E+B*T,R=L*-T+R*E,q=k*-T+q*E,B=U*-T+B*E,H=F*-T+H*E,L=I,k=D,U=N),h=(_=m(-x,B))*p,_&&(E=Math.cos(-_),H=O*(T=Math.sin(-_))+H*E,C=I=C*E-R*T,A=D=A*E-q*T,x=N=x*E-B*T),c=(_=m(A,C))*p,_&&(I=C*(E=Math.cos(_))+A*(T=Math.sin(_)),D=L*E+k*T,A=A*E-C*T,k=k*E-L*T,C=I,L=D),l&&Math.abs(l)+Math.abs(c)>359.9&&(l=c=0,h=180-h),a=Object(d.x)(Math.sqrt(C*C+A*A+x*x)),s=Object(d.x)(Math.sqrt(k*k+U*U)),_=m(L,k),g=Math.abs(_)>2e-4?_*p:0,y=H?1/(H<0?-H:H):0),i.svg&&(I=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!ae(j(e,M)),I&&e.setAttribute("transform",I))),Math.abs(g)>90&&Math.abs(g)<270&&(z?(a*=-1,g+=c<=0?180:-180,c+=c<=0?180:-180):(s*=-1,g+=g<=0?180:-180)),t=t||i.uncache,i.x=n-((i.xPercent=n&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+"px",i.y=r-((i.yPercent=r&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-r)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+"px",i.z=o+"px",i.scaleX=Object(d.x)(a),i.scaleY=Object(d.x)(s),i.rotation=Object(d.x)(c)+"deg",i.rotationX=Object(d.x)(l)+"deg",i.rotationY=Object(d.x)(h)+"deg",i.skewX=g+"deg",i.skewY=v+"deg",i.transformPerspective=y+"px",(i.zOrigin=parseFloat($.split(" ")[2])||!t&&i.zOrigin||0)&&(W[P]=de($)),i.xOffset=i.yOffset=0,i.force3D=d.i.force3D,i.renderTransform=i.svg?me:u?fe:pe,i.uncache=0,i},de=function(e){return(e=e.split(" "))[0]+" "+e[1]},he=function(e,t,i){var n=Object(d.A)(t);return Object(d.x)(parseFloat(t)+parseFloat(Z(e,"x",i+"px",n)))+n},pe=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,fe(e,t)},fe=function(e,t){var i=t||this,n=i.xPercent,r=i.yPercent,o=i.x,a=i.y,s=i.z,c=i.rotation,l=i.rotationY,u=i.rotationX,d=i.skewX,h=i.skewY,p=i.scaleX,m=i.scaleY,g=i.transformPerspective,v=i.force3D,y=i.target,b=i.zOrigin,w="",S="auto"===v&&e&&1!==e||!0===v;if(b&&("0deg"!==u||"0deg"!==l)){var _,E=parseFloat(l)*f,T=Math.sin(E),C=Math.cos(E);E=parseFloat(u)*f,_=Math.cos(E),o=he(y,o,T*_*-b),a=he(y,a,-Math.sin(E)*-b),s=he(y,s,C*_*-b+b)}"0px"!==g&&(w+="perspective("+g+") "),(n||r)&&(w+="translate("+n+"%, "+r+"%) "),(S||"0px"!==o||"0px"!==a||"0px"!==s)&&(w+="0px"!==s||S?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+") "),"0deg"!==c&&(w+="rotate("+c+") "),"0deg"!==l&&(w+="rotateY("+l+") "),"0deg"!==u&&(w+="rotateX("+u+") "),"0deg"===d&&"0deg"===h||(w+="skew("+d+", "+h+") "),1===p&&1===m||(w+="scale("+p+", "+m+") "),y.style[M]=w||"translate(0, 0)"},me=function(e,t){var i,n,r,o,a,s=t||this,c=s.xPercent,l=s.yPercent,u=s.x,h=s.y,p=s.rotation,m=s.skewX,g=s.skewY,v=s.scaleX,y=s.scaleY,b=s.target,w=s.xOrigin,S=s.yOrigin,_=s.xOffset,E=s.yOffset,T=s.forceCSS,C=parseFloat(u),A=parseFloat(h);p=parseFloat(p),m=parseFloat(m),(g=parseFloat(g))&&(m+=g=parseFloat(g),p+=g),p||m?(p*=f,m*=f,i=Math.cos(p)*v,n=Math.sin(p)*v,r=Math.sin(p-m)*-y,o=Math.cos(p-m)*y,m&&(g*=f,a=Math.tan(m-g),r*=a=Math.sqrt(1+a*a),o*=a,g&&(a=Math.tan(g),i*=a=Math.sqrt(1+a*a),n*=a)),i=Object(d.x)(i),n=Object(d.x)(n),r=Object(d.x)(r),o=Object(d.x)(o)):(i=v,o=y,n=r=0),(C&&!~(u+"").indexOf("px")||A&&!~(h+"").indexOf("px"))&&(C=Z(b,"x",u,"px"),A=Z(b,"y",h,"px")),(w||S||_||E)&&(C=Object(d.x)(C+w-(w*i+S*r)+_),A=Object(d.x)(A+S-(w*n+S*o)+E)),(c||l)&&(a=b.getBBox(),C=Object(d.x)(C+c/100*a.width),A=Object(d.x)(A+l/100*a.height)),a="matrix("+i+","+n+","+r+","+o+","+C+","+A+")",b.setAttribute("transform",a),T&&(b.style[M]=a)},ge=function(e,t,i,n,r){var o,a,s=Object(d.n)(r),c=parseFloat(r)*(s&&~r.indexOf("rad")?p:1)-n,l=n+c+"deg";return s&&("short"===(o=r.split("_")[1])&&(c%=360)!==c%180&&(c+=c<0?360:-360),"cw"===o&&c<0?c=(c+36e9)%360-360*~~(c/360):"ccw"===o&&c>0&&(c=(c-36e9)%360-360*~~(c/360))),e._pt=a=new d.d(e._pt,t,i,n,c,S),a.e=l,a.u="deg",e._props.push(i),a},ve=function(e,t){for(var i in t)e[i]=t[i];return e},ye=function(e,t,i){var n,r,o,a,s,c,l,u=ve({},i._gsap),p=i.style;for(r in u.svg?(o=i.getAttribute("transform"),i.setAttribute("transform",""),p[M]=t,n=ue(i,1),G(i,M),i.setAttribute("transform",o)):(o=getComputedStyle(i)[M],p[M]=t,n=ue(i,1),p[M]=o),h)(o=u[r])!==(a=n[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(s=Object(d.A)(o)!==(l=Object(d.A)(a))?Z(i,r,o,l):parseFloat(o),c=parseFloat(a),e._pt=new d.d(e._pt,n,r,s,c-s,w),e._pt.u=l||0,e._props.push(r));ve(n,u)}; /*! * CSSPlugin 3.14.2 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */Object(d.j)("padding,margin,Width,Radius",(function(e,t){var i="Top",n="Right",r="Bottom",o="Left",a=(t<3?[i,n,r,o]:[i+o,i+n,r+n,r+o]).map((function(i){return t<2?e+i:"border"+i+e}));ne[t>1?"border"+e:e]=function(e,t,i,n,r){var o,s;if(arguments.length<4)return o=a.map((function(t){return Q(e,t,i)})),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(n+"").split(" "),s={},a.forEach((function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]})),e.init(t,s,r)}}));var be,we,Se={name:"css",register:W,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,n,r){var o,s,c,l,u,p,f,m,g,v,S,C,A,x,O,L,k,I,D,N,R,q=this._props,F=e.style,H=i.vars.startAt;for(f in a||W(),this.styles=this.styles||B(e),L=this.styles.props,this.tween=i,t)if("autoRound"!==f&&(s=t[f],!d.t[f]||!Object(d.f)(f,t,i,n,e,r)))if(u=typeof s,p=ne[f],"function"===u&&(u=typeof(s=s.call(i,n,e,r))),"string"===u&&~s.indexOf("random(")&&(s=Object(d.w)(s)),p)p(this,e,f,s,i)&&(O=1);else if("--"===f.substr(0,2))o=(getComputedStyle(e).getPropertyValue(f)+"").trim(),s+="",d.g.lastIndex=0,d.g.test(o)||(m=Object(d.A)(o),(g=Object(d.A)(s))?m!==g&&(o=Z(e,f,o,g)+g):m&&(s+=m)),this.add(F,"setProperty",o,s,n,r,0,0,f),q.push(f),L.push(f,0,F[f]);else if("undefined"!==u){if(H&&f in H?(o="function"==typeof H[f]?H[f].call(i,n,e,r):H[f],Object(d.n)(o)&&~o.indexOf("random(")&&(o=Object(d.w)(o)),Object(d.A)(o+"")||"auto"===o||(o+=d.i.units[f]||Object(d.A)(Q(e,f))||""),"="===(o+"").charAt(1)&&(o=Q(e,f))):o=Q(e,f),l=parseFloat(o),(v="string"===u&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),c=parseFloat(s),f in b&&("autoAlpha"===f&&(1===l&&"hidden"===Q(e,"visibility")&&c&&(l=0),L.push("visibility",0,F.visibility),X(this,F,"visibility",l?"inherit":"hidden",c?"inherit":"hidden",!c)),"scale"!==f&&"transform"!==f&&~(f=b[f]).indexOf(",")&&(f=f.split(",")[0])),S=f in h){if(this.styles.save(f),k=s,"string"===u&&"var(--"===s.substring(0,6)){if("calc("===(s=j(e,s.substring(4,s.indexOf(")")))).substring(0,5)){var z=e.style.perspective;e.style.perspective=s,s=j(e,"perspective"),z?e.style.perspective=z:G(e,"perspective")}c=parseFloat(s)}if(C||((A=e._gsap).renderTransform&&!t.parseTransform||ue(e,t.parseTransform),x=!1!==t.smoothOrigin&&A.smooth,(C=this._pt=new d.d(this._pt,F,M,0,1,A.renderTransform,A,0,-1)).dep=1),"scale"===f)this._pt=new d.d(this._pt,A,"scaleY",A.scaleY,(v?Object(d.s)(A.scaleY,v+c):c)-A.scaleY||0,w),this._pt.u=0,q.push("scaleY",f),f+="X";else{if("transformOrigin"===f){L.push(P,0,F[P]),D=void 0,N=void 0,R=void 0,D=(I=s).split(" "),N=D[0],R=D[1]||"50%","top"!==N&&"bottom"!==N&&"left"!==R&&"right"!==R||(I=N,N=R,R=I),D[0]=te[N]||N,D[1]=te[R]||R,s=D.join(" "),A.svg?le(e,s,0,x,0,this):((g=parseFloat(s.split(" ")[2])||0)!==A.zOrigin&&X(this,A,"zOrigin",A.zOrigin,g),X(this,F,f,de(o),de(s)));continue}if("svgOrigin"===f){le(e,s,1,x,0,this);continue}if(f in oe){ge(this,A,f,l,v?Object(d.s)(l,v+s):s);continue}if("smoothOrigin"===f){X(this,A,"smooth",A.smooth,s);continue}if("force3D"===f){A[f]=s;continue}if("transform"===f){ye(this,s,e);continue}}}else f in F||(f=U(f)||f);if(S||(c||0===c)&&(l||0===l)&&!y.test(s)&&f in F)c||(c=0),(m=(o+"").substr((l+"").length))!==(g=Object(d.A)(s)||(f in d.i.units?d.i.units[f]:m))&&(l=Z(e,f,o,g)),this._pt=new d.d(this._pt,S?A:F,f,l,(v?Object(d.s)(l,v+c):c)-l,S||"px"!==g&&"zIndex"!==f||!1===t.autoRound?w:T),this._pt.u=g||0,S&&k!==s?(this._pt.b=o,this._pt.e=k,this._pt.r=E):m!==g&&"%"!==g&&(this._pt.b=o,this._pt.r=_);else if(f in F)ee.call(this,e,f,o,v?v+s:s);else if(f in e)this.add(e,f,o||e[f],v?v+s:s,n,r);else if("parseTransform"!==f){Object(d.p)(f,s);continue}S||(f in F?L.push(f,0,F[f]):"function"==typeof e[f]?L.push(f,2,e[f]()):L.push(f,1,o||e[f])),q.push(f)}O&&Object(d.y)(this)},render:function(e,t){if(t.tween._time||!l())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:Q,aliases:b,getSetter:function(e,t,i){var n=b[t];return n&&n.indexOf(",")<0&&(t=n),t in h&&t!==P&&(e._gsap.x||Q(e,"x"))?i&&c===i?"scale"===t?k:L:(c=i||{})&&("scale"===t?I:D):e.style&&!Object(d.o)(e.style[t])?x:~t.indexOf("-")?O:Object(d.m)(e,t)},core:{_removeProperty:G,_getMatrix:ce}};d.B.utils.checkPrefix=U,d.B.core.getStyleSaver=B,be="rotation,rotationX,rotationY,skewX,skewY",we=Object(d.j)("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+be+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(e){h[e]=1})),Object(d.j)(be,(function(e){d.i.units[e]="deg",oe[e]=1})),b[we[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+be,Object(d.j)("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(e){var t=e.split(":");b[t[1]]=we[t[0]]})),Object(d.j)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){d.i.units[e]="px"})),d.B.registerPlugin(Se);var _e=d.B.registerPlugin(Se)||d.B;_e.core.Tween},function(e,t,i){"use strict";(function(e,n,r){var o=i(16);const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,c=(l=Object.create(null),e=>{const t=a.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const u=e=>(e=e.toLowerCase(),t=>c(t)===e),d=e=>t=>typeof t===e,{isArray:h}=Array,p=d("undefined");const f=u("ArrayBuffer");const m=d("string"),g=d("function"),v=d("number"),y=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==c(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},w=u("Date"),S=u("File"),_=u("Blob"),E=u("FileList"),T=u("URLSearchParams"),[C,A,x,O]=["ReadableStream","Request","Response","Headers"].map(u);function L(e,t,{allOwnKeys:i=!1}={}){if(null==e)return;let n,r;if("object"!=typeof e&&(e=[e]),h(e))for(n=0,r=e.length;n0;)if(n=i[r],t===n.toLowerCase())return n;return null}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,D=e=>!p(e)&&e!==I;const M=(P="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>P&&e instanceof P);var P;const N=u("HTMLFormElement"),R=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),q=u("RegExp"),B=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};L(i,(i,r)=>{let o;!1!==(o=t(i,r,e))&&(n[r]=o||i)}),Object.defineProperties(e,n)},F="abcdefghijklmnopqrstuvwxyz",j={DIGIT:"0123456789",ALPHA:F,ALPHA_DIGIT:F+F.toUpperCase()+"0123456789"};const H=u("AsyncFunction"),U=(W="function"==typeof n,z=g(I.postMessage),W?n:z?(V="axios@"+Math.random(),$=[],I.addEventListener("message",({source:e,data:t})=>{e===I&&t===V&&$.length&&$.shift()()},!1),e=>{$.push(e),I.postMessage(V,"*")}):e=>setTimeout(e));var W,z,V,$;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(I):void 0!==r&&r.nextTick||U;t.a={isArray:h,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=c(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:m,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:b,isReadableStream:C,isRequest:A,isResponse:x,isHeaders:O,isUndefined:p,isDate:w,isFile:S,isBlob:_,isRegExp:q,isFunction:g,isStream:e=>y(e)&&g(e.pipe),isURLSearchParams:T,isTypedArray:M,isFileList:E,forEach:L,merge:function e(){const{caseless:t}=D(this)&&this||{},i={},n=(n,r)=>{const o=t&&k(i,r)||r;b(i[o])&&b(n)?i[o]=e(i[o],n):b(n)?i[o]=e({},n):h(n)?i[o]=n.slice():i[o]=n};for(let e=0,t=arguments.length;e(L(t,(t,n)=>{i&&g(t)?e[n]=Object(o.a)(t,i):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject:(e,t,i,n)=>{let r,o,a;const c={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)a=r[o],n&&!n(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==i&&s(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:u,endsWith:(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return-1!==n&&n===i},toArray:e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!v(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=i.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let i;const n=[];for(;null!==(i=e.exec(t));)n.push(i);return n},isHTMLForm:N,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:B,freezeMethods:e=>{B(e,(t,i)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=e[i];g(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))})},toObjectSet:(e,t)=>{const i={},n=e=>{e.forEach(e=>{i[e]=!0})};return h(e)?n(e):n(String(e).split(t)),i},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,i){return t.toUpperCase()+i})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:I,isContextDefined:D,ALPHABET:j,generateString:(e=16,t=j.ALPHA_DIGIT)=>{let i="";const{length:n}=t;for(;e--;)i+=t[Math.random()*n|0];return i},isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),i=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const r=h(e)?[]:{};return L(e,(e,t)=>{const o=i(e,n+1);!p(o)&&(r[t]=o)}),t[n]=void 0,r}}return e};return i(e,0)},isAsyncFn:H,isThenable:e=>e&&(y(e)||g(e))&&g(e.then)&&g(e.catch),setImmediate:U,asap:Y}}).call(this,i(14),i(23).setImmediate,i(20))},function(e,t,i){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t} /*! * GSAP 3.14.2 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */i.d(t,"b",(function(){return Ft})),i.d(t,"d",(function(){return hi})),i.d(t,"B",(function(){return Ci})),i.d(t,"c",(function(){return Ai})),i.d(t,"e",(function(){return xi})),i.d(t,"a",(function(){return Oi})),i.d(t,"A",(function(){return Qe})),i.d(t,"l",(function(){return fe})),i.d(t,"q",(function(){return U})),i.d(t,"r",(function(){return W})),i.d(t,"n",(function(){return L})),i.d(t,"o",(function(){return D})),i.d(t,"v",(function(){return ai})),i.d(t,"u",(function(){return V})),i.d(t,"j",(function(){return me})),i.d(t,"y",(function(){return di})),i.d(t,"h",(function(){return Ct})),i.d(t,"w",(function(){return dt})),i.d(t,"f",(function(){return $t})),i.d(t,"t",(function(){return se})),i.d(t,"z",(function(){return At})),i.d(t,"i",(function(){return w})),i.d(t,"x",(function(){return ge})),i.d(t,"p",(function(){return J})),i.d(t,"m",(function(){return ni})),i.d(t,"k",(function(){return pe})),i.d(t,"g",(function(){return Et})),i.d(t,"s",(function(){return ye}));var o,a,s,c,l,u,d,h,p,f,m,g,v,y,b,w={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},S={duration:.5,overwrite:!1,delay:0},_=1e8,E=2*Math.PI,T=E/4,C=0,A=Math.sqrt,x=Math.cos,O=Math.sin,L=function(e){return"string"==typeof e},k=function(e){return"function"==typeof e},I=function(e){return"number"==typeof e},D=function(e){return void 0===e},M=function(e){return"object"==typeof e},P=function(e){return!1!==e},N=function(){return"undefined"!=typeof window},R=function(e){return k(e)||L(e)},q="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,F=/random\([^)]+\)/g,j=/,\s*/g,H=/(?:-?\.?\d|\.)+/gi,U=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,W=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,z=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,V=/[+-]=-?[.\d]+/,$=/[^,'"\[\]\s]+/gi,Y=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,G={},X={},K=function(e){return(X=Ae(e,G))&&Ci},J=function(e,t){},Z=function(e,t){return!t&&void 0},Q=function(e,t){return e&&(G[e]=t)&&X&&(X[e]=t)||G},ee=function(){return 0},te={suppressEvents:!0,isStart:!0,kill:!1},ie={suppressEvents:!0,kill:!1},ne={suppressEvents:!0},re={},oe=[],ae={},se={},ce={},le=30,ue=[],de="",he=function(e){var t,i,n=e[0];if(M(n)||k(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(i=ue.length;i--&&!ue[i].targetTest(n););t=ue[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Ft(e[i],t)))||e.splice(i,1);return e},pe=function(e){return e._gsap||he(nt(e))[0]._gsap},fe=function(e,t,i){return(i=e[t])&&k(i)?e[t]():D(i)&&e.getAttribute&&e.getAttribute(t)||i},me=function(e,t){return(e=e.split(",")).forEach(t)||e},ge=function(e){return Math.round(1e5*e)/1e5||0},ve=function(e){return Math.round(1e7*e)/1e7||0},ye=function(e,t){var i=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===i?e+n:"-"===i?e-n:"*"===i?e*n:e/n},be=function(e,t){for(var i=t.length,n=0;e.indexOf(t[n])<0&&++no;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},Ie=function(e,t,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var r=t._prev,o=t._next;r?r._next=o:e[i]===t&&(e[i]=o),o?o._prev=r:e[n]===t&&(e[n]=r),t._next=t._prev=t.parent=null},De=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Me=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},Pe=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Ne=function(e,t,i,n){return e._startAt&&(a?e._startAt.revert(ie):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},Re=function(e){return e._repeat?qe(e._tTime,e=e.duration()+e._rDelay)*e:0},qe=function(e,t){var i=Math.floor(e=ve(e/t));return e&&i===e?i-1:i},Be=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Fe=function(e){return e._end=ve(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},je=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=ve(i._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Fe(e),i._dirty||Me(i,e)),e},He=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._start1e-8)&&t.render(i,!0)),Me(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-1e-8}},Ue=function(e,t,i,n){return t.parent&&De(t),t._start=ve((I(i)?i:i||e!==c?Xe(e,i,t):e._time)+t._delay),t._end=ve(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),ke(e,t,"_first","_last",e._sort?"_start":0),Ve(t)||(e._recent=t),n||He(e,t),e._ts<0&&je(e,e._tTime),e},We=function(e,t){return(G.ScrollTrigger||J("scrollTrigger",t))&&G.ScrollTrigger.create(t,e)},ze=function(e,t,i,n,r){return Yt(e,t,r),e._initted?!i&&e._pt&&!a&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&p!==At.frame?(oe.push(e),e._lazy=[r,n],1):void 0:1},Ve=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},$e=function(e,t,i,n){var r=e._repeat,o=ve(t)||0,a=e._tTime/e._tDur;return a&&!n&&(e._time*=o/e._dur),e._dur=o,e._tDur=r?r<0?1e10:ve(o*(r+1)+e._rDelay*r):o,a>0&&!n&&je(e,e._tTime=e._tDur*a),e.parent&&Fe(e),i||Me(e.parent,e),e},Ye=function(e){return e instanceof Ht?Me(e):$e(e,e._dur)},Ge={_start:0,endTime:ee,totalDuration:ee},Xe=function e(t,i,n){var r,o,a,s=t.labels,c=t._recent||Ge,l=t.duration()>=_?c.endTime(!1):t._dur;return L(i)&&(isNaN(i)||i in s)?(o=i.charAt(0),a="%"===i.substr(-1),r=i.indexOf("="),"<"===o||">"===o?(r>=0&&(i=i.replace(/=/,"")),("<"===o?c._start:c.endTime(c._repeat>=0))+(parseFloat(i.substr(1))||0)*(a?(r<0?c:n).totalDuration()/100:1)):r<0?(i in s||(s[i]=l),s[i]):(o=parseFloat(i.charAt(r-1)+i.substr(r+1)),a&&n&&(o=o/100*(B(n)?n[0]:n).totalDuration()),r>1?e(t,i.substr(0,r-1),n)+o:l+o)):null==i?l:+i},Ke=function(e,t,i){var n,r,o=I(t[1]),a=(o?2:1)+(e<2?0:1),s=t[a];if(o&&(s.duration=t[1]),s.parent=i,e){for(n=s,r=i;r&&!("immediateRender"in n);)n=r.vars.defaults||{},r=P(r.vars.inherit)&&r.parent;s.immediateRender=P(n.immediateRender),e<2?s.runBackwards=1:s.startAt=t[a-1]}return new Zt(t[0],s,t[a+1])},Je=function(e,t){return e||0===e?t(e):t},Ze=function(e,t,i){return it?t:i},Qe=function(e,t){return L(e)&&(t=Y.exec(e))?t[1]:""},et=[].slice,tt=function(e,t){return e&&M(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&M(e[0]))&&!e.nodeType&&e!==l},it=function(e,t,i){return void 0===i&&(i=[]),e.forEach((function(e){var n;return L(e)&&!t||tt(e,1)?(n=i).push.apply(n,nt(e)):i.push(e)}))||i},nt=function(e,t,i){return s&&!t&&s.selector?s.selector(e):!L(e)||i||!u&&xt()?B(e)?it(e,i):tt(e)?et.call(e,0):e?[e]:[]:et.call((t||d).querySelectorAll(e),0)},rt=function(e){return e=nt(e)[0]||Z()||{},function(t){var i=e.current||e.nativeElement||e;return nt(t,i.querySelectorAll?i:i===e?Z()||d.createElement("div"):e)}},ot=function(e){return e.sort((function(){return.5-Math.random()}))},at=function(e){if(k(e))return e;var t=M(e)?e:{each:e},i=Pt(t.ease),n=t.from||0,r=parseFloat(t.base)||0,o={},a=n>0&&n<1,s=isNaN(n)||a,c=t.axis,l=n,u=n;return L(n)?l=u={center:.5,edges:.5,end:1}[n]||0:!a&&s&&(l=n[0],u=n[1]),function(e,a,d){var h,p,f,m,g,v,y,b,w,S=(d||t).length,E=o[S];if(!E){if(!(w="auto"===t.grid?0:(t.grid||[1,_])[1])){for(y=-_;y<(y=d[w++].getBoundingClientRect().left)&&wy&&(y=g),gS?S-1:c?"y"===c?S/w:w:Math.max(w,S/w))||0)*("edges"===n?-1:1),E.b=S<0?r-S:r,E.u=Qe(t.amount||t.each)||0,i=i&&S<0?Dt(i):i}return S=(E[e]-E.min)/E.max||0,ve(E.b+(i?i(S):S)*E.v)+E.u}},st=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var n=ve(Math.round(parseFloat(i)/e)*e*t);return(n-n%1)/t+(I(i)?0:Qe(i))}},ct=function(e,t){var i,n,r=B(e);return!r&&M(e)&&(i=r=e.radius||_,e.values?(e=nt(e.values),(n=!I(e[0]))&&(i*=i)):e=st(e.increment)),Je(t,r?k(e)?function(t){return n=e(t),Math.abs(n-t)<=i?n:t}:function(t){for(var r,o,a=parseFloat(n?t.x:t),s=parseFloat(n?t.y:0),c=_,l=0,u=e.length;u--;)(r=n?(r=e[u].x-a)*r+(o=e[u].y-s)*o:Math.abs(e[u]-a))(r=Math.abs(r))&&(o=n,s=r);return o},ft=function(e,t,i){var n,r,o,a=e.vars,c=a[t],l=s,u=e._ctx;if(c)return n=a[t+"Params"],r=a.callbackScope||e,i&&oe.length&&we(),u&&(s=u),o=n?c.apply(r,n):c.call(r),s=l,o},mt=function(e){return De(e),e.scrollTrigger&&e.scrollTrigger.kill(!!a),e.progress()<1&&ft(e,"onInterrupt"),e},gt=[],vt=function(e){if(e)if(e=!e.name&&e.default||e,N()||e.headless){var t=e.name,i=k(e),n=t&&!i&&e.init?function(){this._props=[]}:e,r={init:ee,render:si,add:Vt,kill:li,modifier:ci,rawVars:0},o={targetTest:0,get:0,getSetter:ni,aliases:{},register:0};if(xt(),e!==n){if(se[t])return;Ce(n,Ce(Oe(e,r),o)),Ae(n.prototype,Ae(r,Oe(e,o))),se[n.prop=t]=n,e.targetTest&&(ue.push(n),re[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Q(t,n),e.register&&e.register(Ci,n,hi)}else gt.push(e)},yt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},bt=function(e,t,i){return 255*(6*(e+=e<0?1:e>1?-1:0)<1?t+(i-t)*e*6:e<.5?i:3*e<2?t+(i-t)*(2/3-e)*6:t)+.5|0},wt=function(e,t,i){var n,r,o,a,s,c,l,u,d,h,p=e?I(e)?[e>>16,e>>8&255,255&e]:0:yt.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),yt[e])p=yt[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),r=e.charAt(2),o=e.charAt(3),e="#"+n+n+r+r+o+o+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&255,255&p,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(p=h=e.match(H),t){if(~e.indexOf("="))return p=e.match(U),i&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,s=+p[1]/100,n=2*(c=+p[2]/100)-(r=c<=.5?c*(s+1):c+s-c*s),p.length>3&&(p[3]*=1),p[0]=bt(a+1/3,n,r),p[1]=bt(a,n,r),p[2]=bt(a-1/3,n,r);else p=e.match(H)||yt.transparent;p=p.map(Number)}return t&&!h&&(n=p[0]/255,r=p[1]/255,o=p[2]/255,c=((l=Math.max(n,r,o))+(u=Math.min(n,r,o)))/2,l===u?a=s=0:(d=l-u,s=c>.5?d/(2-l-u):d/(l+u),a=l===n?(r-o)/d+(rs||b<0)&&(p+=b-c),((u=(h=(f+=b)-p)-v)>0||w)&&(m=++n.frame,r=h-1e3*n.time,n.time=h/=1e3,v+=u+(u>=g?4:g-u),d=1),w||(e=t(i)),d)for(o=0;o=t&&o--},_listeners:y}}(),xt=function(){return!m&&At.wake()},Ot={},Lt=/^[\d.\-M][\d.\-,\s]/,kt=/["']/g,It=function(e){for(var t,i,n,r={},o=e.substr(1,e.length-3).split(":"),a=o[0],s=1,c=o.length;s1&&a.config?a.config.apply(null,~e.indexOf("{")?[It(o[1])]:(t=e,i=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",i),t.substring(i,~r&&r=1?i:1,o=(n||(t?.3:.45))/(i<1?i:1),a=o/E*(Math.asin(1/r)||0),s=function(e){return 1===e?1:r*Math.pow(2,-10*e)*O((e-a)*o)+1},c="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:Rt(s);return o=E/o,c.config=function(i,n){return e(t,i,n)},c},Bt=function e(t,i){void 0===i&&(i=1.70158);var n=function(e){return e?--e*e*((i+1)*e+i)+1:0},r="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:Rt(n);return r.config=function(i){return e(t,i)},r};me("Linear,Quad,Cubic,Quart,Quint,Strong",(function(e,t){var i=t<5?t+1:t;Nt(e+",Power"+(i-1),t?function(e){return Math.pow(e,i)}:function(e){return e},(function(e){return 1-Math.pow(1-e,i)}),(function(e){return e<.5?Math.pow(2*e,i)/2:1-Math.pow(2*(1-e),i)/2}))})),Ot.Linear.easeNone=Ot.none=Ot.Linear.easeIn,Nt("Elastic",qt("in"),qt("out"),qt()),g=7.5625,y=1/(v=2.75),Nt("Bounce",(function(e){return 1-b(1-e)}),b=function(e){return e0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,$e(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(xt(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(je(this,e),!i._dp||i.parent||He(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&Ue(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),_e(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Re(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Re(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*i,t):this._repeat?qe(this._tTime,i)+1:1},t.timeScale=function(e,t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var i=this.parent&&this._ts?Be(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(Ze(-Math.abs(this._delay),this.totalDuration(),i),!1!==t),Fe(this),Pe(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=ve(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Ue(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(P(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Be(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=ne);var t=a;return a=e,Se(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),a=t,this},t.globalTime=function(e){for(var t=this,i=arguments.length?e:t.rawTime();t;)i=t._start+i/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):i},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Ye(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Ye(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Xe(this,e),P(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,P(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,i=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=i&&e1?(t?(n[e]=t,i&&(n[e+"Params"]=i),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this,i=t._prom;return new Promise((function(n){var r=k(e)?e:Te,o=function(){var e=t.then;t.then=null,i&&i(),k(r)&&(r=r(t))&&(r.then||r===t)&&(t.then=e),n(r),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?o():t._prom=o}))},t.kill=function(){mt(this)},e}();Ce(jt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ht=function(e){function t(t,i){var r;return void 0===t&&(t={}),(r=e.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=P(t.sortChildren),c&&Ue(t.parent||c,n(r),i),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&We(n(r),t.scrollTrigger),r}r(t,e);var i=t.prototype;return i.to=function(e,t,i){return Ke(0,arguments,this),this},i.from=function(e,t,i){return Ke(1,arguments,this),this},i.fromTo=function(e,t,i,n){return Ke(2,arguments,this),this},i.set=function(e,t,i){return t.duration=0,t.parent=this,Le(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Zt(e,t,Xe(this,i),1),this},i.call=function(e,t,i){return Ue(this,Zt.delayedCall(0,e,t),i)},i.staggerTo=function(e,t,i,n,r,o,a){return i.duration=t,i.stagger=i.stagger||n,i.onComplete=o,i.onCompleteParams=a,i.parent=this,new Zt(e,i,Xe(this,r)),this},i.staggerFrom=function(e,t,i,n,r,o,a){return i.runBackwards=1,Le(i).immediateRender=P(i.immediateRender),this.staggerTo(e,t,i,n,r,o,a)},i.staggerFromTo=function(e,t,i,n,r,o,a,s){return n.startAt=i,Le(n).immediateRender=P(n.immediateRender),this.staggerTo(e,t,n,r,o,a,s)},i.render=function(e,t,i){var n,r,o,s,l,u,d,h,p,f,m,g,v=this._time,y=this._dirty?this.totalDuration():this._tDur,b=this._dur,w=e<=0?0:ve(e),S=this._zTime<0!=e<0&&(this._initted||!b);if(this!==c&&w>y&&e>=0&&(w=y),w!==this._tTime||i||S){if(v!==this._time&&b&&(w+=this._time-v,e+=this._time-v),n=w,p=this._start,u=!(h=this._ts),S&&(b||(v=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(m=this._yoyo,l=b+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*l+e,t,i);if(n=ve(w%l),w===y?(s=this._repeat,n=b):((s=~~(f=ve(w/l)))&&s===f&&(n=b,s--),n>b&&(n=b)),f=qe(this._tTime,l),!v&&this._tTime&&f!==s&&this._tTime-f*l-this._dur<=0&&(f=s),m&&1&s&&(n=b-n,g=1),s!==f&&!this._lock){var _=m&&1&f,E=_===(m&&1&s);if(st)for(n=e._first;n&&n._start<=i;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=i;){if("isPause"===n.data&&n._start=v&&e>=0)for(r=this._first;r;){if(o=r._next,(r._act||n>=r._start)&&r._ts&&d!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(n-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(n-r._start)*r._ts,t,i),n!==this._time||!this._ts&&!u){d=0,o&&(w+=this._zTime=-1e-8);break}}r=o}else{r=this._last;for(var T=e<0?e:n;r;){if(o=r._prev,(r._act||T<=r._end)&&r._ts&&d!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(T-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(T-r._start)*r._ts,t,i||a&&Se(r)),n!==this._time||!this._ts&&!u){d=0,o&&(w+=this._zTime=T?-1e-8:1e-8);break}}r=o}}if(d&&!t&&(this.pause(),d.render(n>=v?0:-1e-8)._zTime=n>=v?1:-1,this._ts))return this._start=p,Fe(this),this.render(e,t,i);this._onUpdate&&!t&&ft(this,"onUpdate",!0),(w===y&&this._tTime>=this.totalDuration()||!w&&v)&&(p!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((e||!b)&&(w===y&&this._ts>0||!w&&this._ts<0)&&De(this,1),t||e<0&&!v||!w&&!v&&y||(ft(this,w===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(w0)&&this._prom())))}return this},i.add=function(e,t){var i=this;if(I(t)||(t=Xe(this,t,e)),!(e instanceof jt)){if(B(e))return e.forEach((function(e){return i.add(e,t)})),this;if(L(e))return this.addLabel(e,t);if(!k(e))return this;e=Zt.delayedCall(0,e)}return this!==e?Ue(this,e,t):this},i.getChildren=function(e,t,i,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===n&&(n=-_);for(var r=[],o=this._first;o;)o._start>=n&&(o instanceof Zt?t&&r.push(o):(i&&r.push(o),e&&r.push.apply(r,o.getChildren(!0,t,i)))),o=o._next;return r},i.getById=function(e){for(var t=this.getChildren(1,1,1),i=t.length;i--;)if(t[i].vars.id===e)return t[i]},i.remove=function(e){return L(e)?this.removeLabel(e):k(e)?this.killTweensOf(e):(e.parent===this&&Ie(this,e),e===this._recent&&(this._recent=this._last),Me(this))},i.totalTime=function(t,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ve(At.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,i),this._forcing=0,this):this._tTime},i.addLabel=function(e,t){return this.labels[e]=Xe(this,t),this},i.removeLabel=function(e){return delete this.labels[e],this},i.addPause=function(e,t,i){var n=Zt.delayedCall(0,t||ee,i);return n.data="isPause",this._hasPause=1,Ue(this,n,Xe(this,e))},i.removePause=function(e){var t=this._first;for(e=Xe(this,e);t;)t._start===e&&"isPause"===t.data&&De(t),t=t._next},i.killTweensOf=function(e,t,i){for(var n=this.getTweensOf(e,i),r=n.length;r--;)Ut!==n[r]&&n[r].kill(e,t);return this},i.getTweensOf=function(e,t){for(var i,n=[],r=nt(e),o=this._first,a=I(t);o;)o instanceof Zt?be(o._targets,r)&&(a?(!Ut||o._initted&&o._ts)&&o.globalTime(0)<=t&&o.globalTime(o.totalDuration())>t:!t||o.isActive())&&n.push(o):(i=o.getTweensOf(r,t)).length&&n.push.apply(n,i),o=o._next;return n},i.tweenTo=function(e,t){t=t||{};var i,n=this,r=Xe(n,e),o=t,a=o.startAt,s=o.onStart,c=o.onStartParams,l=o.immediateRender,u=Zt.to(n,Ce({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:t.duration||Math.abs((r-(a&&"time"in a?a.time:n._time))/n.timeScale())||1e-8,onStart:function(){if(n.pause(),!i){var e=t.duration||Math.abs((r-(a&&"time"in a?a.time:n._time))/n.timeScale());u._dur!==e&&$e(u,e,0,1).render(u._time,!0,!0),i=1}s&&s.apply(u,c||[])}},t));return l?u.render(0):u},i.tweenFromTo=function(e,t,i){return this.tweenTo(t,Ce({startAt:{time:Xe(this,e)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(e){return void 0===e&&(e=this._time),pt(this,Xe(this,e))},i.previousLabel=function(e){return void 0===e&&(e=this._time),pt(this,Xe(this,e),1)},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},i.shiftChildren=function(e,t,i){void 0===i&&(i=0);var n,r=this._first,o=this.labels;for(e=ve(e);r;)r._start>=i&&(r._start+=e,r._end+=e),r=r._next;if(t)for(n in o)o[n]>=i&&(o[n]+=e);return Me(this)},i.invalidate=function(t){var i=this._first;for(this._lock=0;i;)i.invalidate(t),i=i._next;return e.prototype.invalidate.call(this,t)},i.clear=function(e){void 0===e&&(e=!0);for(var t,i=this._first;i;)t=i._next,this.remove(i),i=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Me(this)},i.totalDuration=function(e){var t,i,n,r=0,o=this,a=o._last,s=_;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-e:e));if(o._dirty){for(n=o.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(i=a._start)>s&&o._sort&&a._ts&&!o._lock?(o._lock=1,Ue(o,a,i-a._delay,1)._lock=0):s=i,i<0&&a._ts&&(r-=i,(!n&&!o._dp||n&&n.smoothChildTiming)&&(o._start+=ve(i/o._ts),o._time-=i,o._tTime-=i),o.shiftChildren(-i,!1,-Infinity),s=0),a._end>r&&a._ts&&(r=a._end),a=t;$e(o,o===c&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(e){if(c._ts&&(_e(c,Be(e,c)),p=At.frame),At.frame>=le){le+=w.autoSleep||120;var t=c._first;if((!t||!t._ts)&&w.autoSleep&&At._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||At.sleep()}}},t}(jt);Ce(Ht.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ut,Wt,zt=function(e,t,i,n,r,o,a){var s,c,l,u,d,h,p,f,m=new hi(this._pt,e,t,0,1,ai,null,r),g=0,v=0;for(m.b=i,m.e=n,i+="",(p=~(n+="").indexOf("random("))&&(n=dt(n)),o&&(o(f=[i,n],e,t),i=f[0],n=f[1]),c=i.match(z)||[];s=z.exec(n);)u=s[0],d=n.substring(g,s.index),l?l=(l+1)%5:"rgba("===d.substr(-5)&&(l=1),u!==c[v++]&&(h=parseFloat(c[v-1])||0,m._pt={_next:m._pt,p:d||1===v?d:",",s:h,c:"="===u.charAt(1)?ye(h,u)-h:parseFloat(u)-h,m:l&&l<4?Math.round:0},g=z.lastIndex);return m.c=g")})),l.duration();else{for(p in d={},T)"ease"===p||"easeEach"===p||Gt(p,T[p],d,T.easeEach);for(p in d)for(k=d[p].sort((function(e,t){return e.t-t.t})),F=0,u=0;uf-1e-8&&!g?f:e<1e-8?0:e;if(m){if(v!==this._tTime||!e||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if(n=v,d=this.timeline,this._repeat){if(s=m+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*s+e,t,i);if(n=ve(v%s),v===f?(o=this._repeat,n=m):(o=~~(c=ve(v/s)))&&o===c?(n=m,o--):n>m&&(n=m),(l=this._yoyo&&1&o)&&(h=this._yEase,n=m-n),c=qe(this._tTime,s),n===p&&!i&&this._initted&&o===c)return this._tTime=v,this;o!==c&&(d&&this._yEase&&Mt(d,l),this.vars.repeatRefresh&&!l&&!this._lock&&n!==s&&this._initted&&(this._lock=i=1,this.render(ve(s*o),!0).invalidate()._lock=0))}if(!this._initted){if(ze(this,g?e:n,i,t,v))return this._tTime=0,this;if(!(p===this._time||i&&this.vars.repeatRefresh&&o!==c))return this;if(m!==this._dur)return this.render(e,t,i)}if(this._tTime=v,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(h||this._ease)(n/m),this._from&&(this.ratio=u=1-u),!p&&v&&!t&&!c&&(ft(this,"onStart"),this._tTime!==v))return this;for(r=this._pt;r;)r.r(u,r.d),r=r._next;d&&d.render(e<0?e:d._dur*d._ease(n/this._dur),t,i)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(g&&Ne(this,e,0,i),ft(this,"onUpdate")),this._repeat&&o!==c&&this.vars.onRepeat&&!t&&this.parent&&ft(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(g&&!this._onUpdate&&Ne(this,e,0,!0),(e||!m)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&De(this,1),t||g&&!p||!(v||p||l)||(ft(this,v===f?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom()))}}else!function(e,t,i,n){var r,o,s,c=e.ratio,l=t<0||!t&&(!e._start&&function e(t){var i=t.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||e(i))}(e)&&(e._initted||!Ve(e))||(e._ts<0||e._dp._ts<0)&&!Ve(e))?0:1,u=e._rDelay,d=0;if(u&&e._repeat&&(d=Ze(0,e._tDur,t),o=qe(d,u),e._yoyo&&1&o&&(l=1-l),o!==qe(e._tTime,u)&&(c=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==c||a||n||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&ze(e,t,n,i,d))return;for(s=e._zTime,e._zTime=t||(i?1e-8:0),i||(i=t&&!s),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=d,r=e._pt;r;)r.r(l,r.d),r=r._next;t<0&&Ne(e,t,0,!0),e._onUpdate&&!i&&ft(e,"onUpdate"),d&&e._repeat&&!i&&e.parent&&ft(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&De(e,1),i||a||(ft(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,i);return this},i.targets=function(){return this._targets},i.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},i.resetTo=function(e,t,i,n,r){m||At.wake(),this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Yt(this,o),function(e,t,i,n,r,o,a,s){var c,l,u,d,h=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!h)for(h=e._ptCache[t]=[],u=e._ptLookup,d=e._targets.length;d--;){if((c=u[d][t])&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==t&&c.fp!==t;)c=c._next;if(!c)return Wt=1,e.vars[t]="+=0",Yt(e,a),Wt=0,s?Z():1;h.push(c)}for(d=h.length;d--;)(c=(l=h[d])._pt||l).s=!n&&0!==n||r?c.s+(n||0)+o*c.c:n,c.c=i-c.s,l.e&&(l.e=ge(i)+Qe(l.e)),l.b&&(l.b=c.s+Qe(l.b))}(this,e,t,i,n,this._ease(o/this._dur),o,r)?this.resetTo(e,t,i,n,1):(je(this,0),this.parent||ke(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?mt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!a),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Ut&&!0!==Ut.vars.overwrite)._first||mt(this),this.parent&&i!==this.timeline.totalDuration()&&$e(this,this._dur*this.timeline._tDur/i,0,1),this}var n,r,o,s,c,l,u,d=this._targets,h=e?nt(e):d,p=this._ptLookup,f=this._pt;if((!t||"all"===t)&&function(e,t){for(var i=e.length,n=i===t.length;n&&i--&&e[i]===t[i];);return i<0}(d,h))return"all"===t&&(this._pt=0),mt(this);for(n=this._op=this._op||[],"all"!==t&&(L(t)&&(c={},me(t,(function(e){return c[e]=1})),t=c),t=function(e,t){var i,n,r,o,a=e[0]?pe(e[0]).harness:0,s=a&&a.aliases;if(!s)return t;for(n in i=Ae({},t),s)if(n in i)for(r=(o=s[n].split(",")).length;r--;)i[o[r]]=i[n];return i}(d,t)),u=d.length;u--;)if(~h.indexOf(d[u]))for(c in r=p[u],"all"===t?(n[u]=t,s=r,o={}):(o=n[u]=n[u]||{},s=t),s)(l=r&&r[c])&&("kill"in l.d&&!0!==l.d.kill(c)||Ie(this,l,"_pt"),delete r[c]),"all"!==o&&(o[c]=1);return this._initted&&!this._pt&&f&&mt(this),this},t.to=function(e,i){return new t(e,i,arguments[2])},t.from=function(e,t){return Ke(1,arguments)},t.delayedCall=function(e,i,n,r){return new t(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:i,onReverseComplete:i,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},t.fromTo=function(e,t,i){return Ke(2,arguments)},t.set=function(e,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new t(e,i)},t.killTweensOf=function(e,t,i){return c.killTweensOf(e,t,i)},t}(jt);Ce(Zt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),me("staggerTo,staggerFrom,staggerFromTo",(function(e){Zt[e]=function(){var t=new Ht,i=et.call(arguments,0);return i.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,i)}}));var Qt=function(e,t,i){return e[t]=i},ei=function(e,t,i){return e[t](i)},ti=function(e,t,i,n){return e[t](n.fp,i)},ii=function(e,t,i){return e.setAttribute(t,i)},ni=function(e,t){return k(e[t])?ei:D(e[t])&&e.setAttribute?ii:Qt},ri=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},oi=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ai=function(e,t){var i=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*e):Math.round(1e4*(i.s+i.c*e))/1e4)+n,i=i._next;n+=t.c}t.set(t.t,t.p,n,t)},si=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},ci=function(e,t,i,n){for(var r,o=this._pt;o;)r=o._next,o.p===n&&o.modifier(e,t,i),o=r},li=function(e){for(var t,i,n=this._pt;n;)i=n._next,n.p===e&&!n.op||n.op===e?Ie(this,n,"_pt"):n.dep||(t=1),n=i;return!t},ui=function(e,t,i,n){n.mSet(e,t,n.m.call(n.tween,i,n.mt),n)},di=function(e){for(var t,i,n,r,o=e._pt;o;){for(t=o._next,i=n;i&&i.pr>o.pr;)i=i._next;(o._prev=i?i._prev:r)?o._prev._next=o:n=o,(o._next=i)?i._prev=o:r=o,o=t}e._pt=n},hi=function(){function e(e,t,i,n,r,o,a,s,c){this.t=t,this.s=n,this.c=r,this.p=i,this.r=o||ri,this.d=a||this,this.set=s||Qt,this.pr=c||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,i){this.mSet=this.mSet||this.set,this.set=ui,this.m=e,this.mt=i,this.tween=t},e}();me(de+"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(e){return re[e]=1})),G.TweenMax=G.TweenLite=Zt,G.TimelineLite=G.TimelineMax=Ht,c=new Ht({sortChildren:!1,defaults:S,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),w.stringFilter=Ct;var pi=[],fi={},mi=[],gi=0,vi=0,yi=function(e){return(fi[e]||mi).map((function(e){return e()}))},bi=function(){var e=Date.now(),t=[];e-gi>2&&(yi("matchMediaInit"),pi.forEach((function(e){var i,n,r,o,a=e.queries,s=e.conditions;for(n in a)(i=l.matchMedia(a[n]).matches)&&(r=1),i!==s[n]&&(s[n]=i,o=1);o&&(e.revert(),r&&t.push(e))})),yi("matchMediaRevert"),t.forEach((function(e){return e.onMatch(e,(function(t){return e.add(null,t)}))})),gi=e,yi("matchMedia"))},wi=function(){function e(e,t){this.selector=t&&rt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=vi++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,i){k(e)&&(i=t,t=e,e=k);var n=this,r=function(){var e,r=s,o=n.selector;return r&&r!==n&&r.data.push(n),i&&(n.selector=rt(i)),s=n,e=t.apply(n,arguments),k(e)&&n._r.push(e),s=r,n.selector=o,n.isReverted=!1,e};return n.last=r,e===k?r(n,(function(e){return n.add(null,e)})):e?n[e]=r:r},t.ignore=function(e){var t=s;s=null,e(this),s=t},t.getTweens=function(){var t=[];return this.data.forEach((function(i){return i instanceof e?t.push.apply(t,i.getTweens()):i instanceof Zt&&!(i.parent&&"nested"===i.parent.data)&&t.push(i)})),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var i=this;if(e?function(){for(var t,n=i.getTweens(),r=i.data.length;r--;)"isFlip"===(t=i.data[r]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(e){return n.splice(n.indexOf(e),1)})));for(n.map((function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}})).sort((function(e,t){return t.g-e.g||-1/0})).forEach((function(t){return t.t.revert(e)})),r=i.data.length;r--;)(t=i.data[r])instanceof Ht?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof Zt)&&t.revert&&t.revert(e);i._r.forEach((function(t){return t(e,i)})),i.isReverted=!0}():this.data.forEach((function(e){return e.kill&&e.kill()})),this.clear(),t)for(var n=pi.length;n--;)pi[n].id===this.id&&pi.splice(n,1)},t.revert=function(e){this.kill(e||{})},e}(),Si=function(){function e(e){this.contexts=[],this.scope=e,s&&s.data.push(this)}var t=e.prototype;return t.add=function(e,t,i){M(e)||(e={matches:e});var n,r,o,a=new wi(0,i||this.scope),c=a.conditions={};for(r in s&&!a.selector&&(a.selector=s.selector),this.contexts.push(a),t=a.add("onMatch",t),a.queries=e,e)"all"===r?o=1:(n=l.matchMedia(e[r]))&&(pi.indexOf(a)<0&&pi.push(a),(c[r]=n.matches)&&(o=1),n.addListener?n.addListener(bi):n.addEventListener("change",bi));return o&&t(a,(function(e){return a.add(null,e)})),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach((function(t){return t.kill(e,!0)}))},e}(),_i={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i1){var n=e.map((function(e){return Ci.quickSetter(e,t,i)})),r=n.length;return function(e){for(var t=r;t--;)n[t](e)}}e=e[0]||{};var o=se[t],a=pe(e),s=a.harness&&(a.harness.aliases||{})[t]||t,c=o?function(t){var n=new o;f._pt=0,n.init(e,i?t+i:t,f,0,[e]),n.render(1,n),f._pt&&si(1,f)}:a.set(e,s);return o?c:function(t){return c(e,s,i?t+i:t,a,1)}},quickTo:function(e,t,i){var n,r=Ci.to(e,Ce(((n={})[t]="+=0.1",n.paused=!0,n.stagger=0,n),i||{})),o=function(e,i,n){return r.resetTo(t,e,i,n)};return o.tween=r,o},isTweening:function(e){return c.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Pt(e.ease,S.ease)),xe(S,e||{})},config:function(e){return xe(w,e||{})},registerEffect:function(e){var t=e.name,i=e.effect,n=e.plugins,r=e.defaults,o=e.extendTimeline;(n||"").split(",").forEach((function(e){return e&&!se[e]&&!G[e]&&Z()})),ce[t]=function(e,t,n){return i(nt(e),Ce(t||{},r),n)},o&&(Ht.prototype[t]=function(e,i,n){return this.add(ce[t](e,M(i)?i:(n=i)&&{},this),n)})},registerEase:function(e,t){Ot[e]=Pt(t)},parseEase:function(e,t){return arguments.length?Pt(e,t):Ot},getById:function(e){return c.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var i,n,r=new Ht(e);for(r.smoothChildTiming=P(e.smoothChildTiming),c.remove(r),r._dp=0,r._time=r._tTime=c._time,i=c._first;i;)n=i._next,!t&&!i._dur&&i instanceof Zt&&i.vars.onComplete===i._targets[0]||Ue(r,i,i._start-i._delay),i=n;return Ue(c,r,0),r},context:function(e,t){return e?new wi(e,t):s},matchMedia:function(e){return new Si(e)},matchMediaRefresh:function(){return pi.forEach((function(e){var t,i,n=e.conditions;for(i in n)n[i]&&(n[i]=!1,t=1);t&&e.revert()}))||bi()},addEventListener:function(e,t){var i=fi[e]||(fi[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=fi[e],n=i&&i.indexOf(t);n>=0&&i.splice(n,1)},utils:{wrap:function e(t,i,n){var r=i-t;return B(t)?ut(t,e(0,t.length),i):Je(n,(function(e){return(r+(e-t)%r)%r+t}))},wrapYoyo:function e(t,i,n){var r=i-t,o=2*r;return B(t)?ut(t,e(0,t.length-1),i):Je(n,(function(e){return t+((e=(o+(e-t)%o)%o||0)>r?o-e:e)}))},distribute:at,random:lt,snap:ct,normalize:function(e,t,i){return ht(e,t,0,1,i)},getUnit:Qe,clamp:function(e,t,i){return Je(i,(function(i){return Ze(e,t,i)}))},splitColor:wt,toArray:nt,selector:rt,mapRange:ht,pipe:function(){for(var e=arguments.length,t=new Array(e),i=0;i{new e({element:t,options:{}})},r=5,o=200,a=e=>Object.keys(e).reduce((t,i)=>(null==e[i]&&t.push(i),t),[]);t.a=e=>{const t=()=>{const t=document.querySelectorAll(e.selectors.self);for(let i=0;i{if(s(a))return n(e,a),void clearInterval(i);t++,t>r&&clearInterval(i)},o)}else n(e,a)}};"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t)}},function(e,t,i){"use strict";var n=i(1);function r(e,t,i,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}n.a.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n.a.toJSONObject(this.config),code:this.code,status:this.status}}});const o=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{a[e]={value:e}}),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=(e,t,i,a,s,c)=>{const l=Object.create(o);return n.a.toFlatObject(e,l,(function(e){return e!==Error.prototype}),e=>"isAxiosError"!==e),r.call(l,e.message,t,i,a,s),l.cause=e,l.name=e.name,c&&Object.assign(l,c),l},t.a=r},function(e,t,i){"use strict";t.a=class{constructor(e,t=document){this.debug=t.querySelector(e),this.debug&&this.debug.addEventListener("dblclick",()=>{this.debug.classList.toggle("closed")})}log(...e){this.debug&&(this.debug.innerHTML=e.join("
"))}clear(){this.debug&&(this.debug.innerHTML="")}}},function(e,t,i){e.exports=function(){"use strict";function e(e){for(var t=1;tsummary:first-of-type:not([inert])","details:not([inert])"],r=n.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},c=function e(t,i){var n;void 0===i&&(i=!0);var r=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===r||"true"===r||i&&t&&e(t.parentNode)},l=function(e,t,i){if(c(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&a.call(e,r)&&n.unshift(e),n=n.filter(i)},u=function e(t,i,n){for(var o=[],s=Array.from(t);s.length;){var l=s.shift();if(!c(l,!1))if("SLOT"===l.tagName){var u=l.assignedElements(),d=e(u.length?u:l.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:l,candidates:d})}else{a.call(l,r)&&n.filter(l)&&(i||!t.includes(l))&&o.push(l);var h=l.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(l),p=!c(h,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(l));if(h&&p){var f=e(!0===h?l.children:h.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scopeParent:l,candidates:f})}else s.unshift.apply(s,l.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},h=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,i=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===i||"true"===i}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},f=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return f(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,i=e.form||s(e),n=function(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return!1}var r=function(e,t){for(var i=0;isummary:first-of-type")?e.parentElement:e;if(a.call(r,"details:not([open]) *"))return!0;if(i&&"full"!==i&&"legacy-full"!==i){if("non-zero-area"===i)return g(e)}else{if("function"==typeof n){for(var o=e;e;){var c=e.parentElement,l=s(e);if(c&&!c.shadowRoot&&!0===n(c))return g(e);e=e.assignedSlot?e.assignedSlot:c||l===e.ownerDocument?c:l.host}e=o}if(function(e){var t,i,n,r,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,c=!1;if(o&&o!==e)for(c=!!(null!==(i=a)&&void 0!==i&&null!==(n=i.ownerDocument)&&void 0!==n&&n.contains(a)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!c&&a;){var l,u,d;c=!(null===(u=a=null===(l=o=s(a))||void 0===l?void 0:l.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return c}(e))return!e.getClientRects().length;if("legacy-full"!==i)return!0}return!1},y=function(e,t){return!(t.disabled||c(t)||function(e){return f(e)&&"hidden"===e.type}(t)||v(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var i=0;i=0)},S=function e(t){var i=[],n=[];return t.forEach((function(t,r){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var i=h(e);return i<0&&t&&!d(e)?0:i}(a,o),c=o?e(t.candidates):a;0===s?o?i.push.apply(i,c):i.push(a):n.push({documentOrder:r,tabIndex:s,item:t,isScope:o,content:c})})),n.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(i)},_=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,r)&&b(t,e)},E=n.concat("iframe").join(","),T=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,E)&&y(t,e)}; /*! * focus-trap 7.6.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE */ function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i0){var i=e[e.length-1];i!==t&&i._setPausedState(!0)}var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},I=function(e,t){var i=e.indexOf(t);-1!==i&&e.splice(i,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},D=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},M=function(e){return D(e)&&!e.shiftKey},P=function(e){return D(e)&&e.shiftKey},N=function(e){return setTimeout(e,0)},R=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:{},i=t.hasFallback,r=void 0!==i&&i,a=t.params,s=void 0===a?[]:a,c=o[e];if("function"==typeof c&&(c=c.apply(void 0,L(s))),!0===c&&(c=void 0),!c){if(void 0===c||!1===c)return c;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=c;if("string"==typeof c){try{l=n.querySelector(c)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!l&&!r)throw new Error("`".concat(e,"` as selector refers to no known node"))}return l},p=function(){var e=d("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!T(e,o.tabbableOptions))if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||d("fallbackFocus")}else null===e&&(e=d("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},f=function(){if(a.containerGroups=a.containers.map((function(e){var t=function(e,t){var i;return i=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):l(e,t.includeContainer,b.bind(null,t)),S(i)}(e,o.tabbableOptions),i=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):l(e,t.includeContainer,y.bind(null,t))}(e,o.tabbableOptions),n=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,a=i.find((function(e){return _(e)})),s=i.slice().reverse().find((function(e){return _(e)})),c=!!t.find((function(e){return h(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:i,posTabIndexesFound:c,firstTabbableNode:n,lastTabbableNode:r,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?n?i.slice(i.indexOf(e)+1).find((function(e){return _(e)})):i.slice(0,i.indexOf(e)).reverse().find((function(e){return _(e)})):t[r+(n?1:-1)]}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find((function(e){return e.posTabIndexesFound}))&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?m(t.shadowRoot):t},g=function(e){!1!==e&&e!==m(document)&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),a.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):g(p()))},v=function(e){var t=d("setReturnFocus",{params:[e]});return t||!1!==t&&e},E=function(e){var t=e.target,i=e.event,n=e.isBackward,r=void 0!==n&&n;t=t||q(i),f();var s=null;if(a.tabbableGroups.length>0){var l=c(t,i),u=l>=0?a.containerGroups[l]:void 0;if(l<0)s=r?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(r){var p=a.tabbableGroups.findIndex((function(e){var i=e.firstTabbableNode;return t===i}));if(p<0&&(u.container===t||T(t,o.tabbableOptions)&&!_(t,o.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(p=l),p>=0){var m=0===p?a.tabbableGroups.length-1:p-1,g=a.tabbableGroups[m];s=h(t)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else D(i)||(s=u.nextTabbableNode(t,!1))}else{var v=a.tabbableGroups.findIndex((function(e){var i=e.lastTabbableNode;return t===i}));if(v<0&&(u.container===t||T(t,o.tabbableOptions)&&!_(t,o.tabbableOptions)&&!u.nextTabbableNode(t))&&(v=l),v>=0){var y=v===a.tabbableGroups.length-1?0:v+1,b=a.tabbableGroups[y];s=h(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else D(i)||(s=u.nextTabbableNode(t))}}else s=d("fallbackFocus");return s},C=function(e){var t=q(e);c(t,e)>=0||(R(o.clickOutsideDeactivates,e)?i.deactivate({returnFocus:o.returnFocusOnDeactivate}):R(o.allowOutsideClick,e)||e.preventDefault())},A=function(e){var t=q(e),i=c(t,e)>=0;if(i||t instanceof Document)i&&(a.mostRecentlyFocusedNode=t);else{var n;e.stopImmediatePropagation();var r=!0;if(a.mostRecentlyFocusedNode)if(h(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var u=l.findIndex((function(e){return e===a.mostRecentlyFocusedNode}));u>=0&&(o.isKeyForward(a.recentNavEvent)?u+1=0&&(n=l[u-1],r=!1))}}else a.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return h(e)>0}))}))||(r=!1);else r=!1;r&&(n=E({target:a.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(a.recentNavEvent)})),g(n||(a.mostRecentlyFocusedNode||p()))}a.recentNavEvent=void 0},x=function(e){(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.recentNavEvent=e;var i=E({event:e,isBackward:t});i&&(D(e)&&e.preventDefault(),g(i))}(e,o.isKeyBackward(e))},F=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===R(o.escapeDeactivates,e)||(e.preventDefault(),i.deactivate())},j=function(e){var t=q(e);c(t,e)>=0||R(o.clickOutsideDeactivates,e)||R(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},H=function(){if(a.active)return k(r,i),a.delayInitialFocusTimer=o.delayInitialFocus?N((function(){g(p())})):g(p()),n.addEventListener("focusin",A,!0),n.addEventListener("mousedown",C,{capture:!0,passive:!1}),n.addEventListener("touchstart",C,{capture:!0,passive:!1}),n.addEventListener("click",j,{capture:!0,passive:!1}),n.addEventListener("keydown",x,{capture:!0,passive:!1}),n.addEventListener("keydown",F),i},U=function(){if(a.active)return n.removeEventListener("focusin",A,!0),n.removeEventListener("mousedown",C,!0),n.removeEventListener("touchstart",C,!0),n.removeEventListener("click",j,!0),n.removeEventListener("keydown",x,!0),n.removeEventListener("keydown",F),i},W="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===a.mostRecentlyFocusedNode}))}))&&g(p())})):void 0,z=function(){W&&(W.disconnect(),a.active&&!a.paused&&a.containers.map((function(e){W.observe(e,{subtree:!0,childList:!0})})))};return i={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,"onActivate"),i=s(e,"onPostActivate"),r=s(e,"checkCanFocusTrap");r||f(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=n.activeElement,null==t||t();var o=function(){r&&f(),H(),z(),null==i||i()};return r?(r(a.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!a.active)return this;var t=O({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,U(),a.active=!1,a.paused=!1,z(),I(r,i);var n=s(t,"onDeactivate"),c=s(t,"onPostDeactivate"),l=s(t,"checkCanReturnFocus"),u=s(t,"returnFocus","returnFocusOnDeactivate");null==n||n();var d=function(){N((function(){u&&g(v(a.nodeFocusedBeforeActivation)),null==c||c()}))};return u&&l?(l(v(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return a.active?(a.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?n.querySelector(e):e})),a.active&&f(),z(),this}},Object.defineProperties(i,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var i=s(t,"onPause"),n=s(t,"onPostPause");null==i||i(),U(),z(),null==n||n()}else{var r=s(t,"onUnpause"),o=s(t,"onPostUnpause");null==r||r(),f(),H(),z(),null==o||o()}return this}}}),i.updateContainerElements(e),i}},function(e,t,i){"use strict";i.d(t,"a",(function(){return Ct})); /*! choices.js v11.1.0 | © 2025 Josh Johnson | https://github.com/jshjohnson/Choices#readme */ var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var o=function(){return(o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i/g,">").replace(/=0&&!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches:"top"===this.position&&(i=!0),i},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(e,t){re(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e,t)&&(re(this.element,this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){oe(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(oe(this.element,this.classNames.flippedState),this.isFlipped=!1)},e.prototype.addFocusState=function(){re(this.element,this.classNames.focusState)},e.prototype.removeFocusState=function(){oe(this.element,this.classNames.focusState)},e.prototype.enable=function(){oe(this.element,this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===j&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){re(this.element,this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===j&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){var t=this.element,i=e.parentNode;i&&(e.nextSibling?i.insertBefore(t,e.nextSibling):i.appendChild(t)),t.appendChild(e)},e.prototype.unwrap=function(e){var t=this.element,i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))},e.prototype.addLoadingState=function(){re(this.element,this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){oe(this.element,this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e}(),le=function(){function e(e){var t=e.element,i=e.type,n=e.classNames,r=e.preventPaste;this.element=t,this.type=i,this.classNames=n,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){var e=this.element;e.addEventListener("paste",this._onPaste),e.addEventListener("input",this._onInput,{passive:!0}),e.addEventListener("focus",this._onFocus,{passive:!0}),e.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){var e=this.element;e.removeEventListener("input",this._onInput),e.removeEventListener("paste",this._onPaste),e.removeEventListener("focus",this._onFocus),e.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value="",e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element;e.style.minWidth="".concat(e.placeholder.length+1,"ch"),e.style.width="".concat(e.value.length+1,"ch")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==j&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}(),ue=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.prepend=function(e){var t=this.element.firstElementChild;t?this.element.insertBefore(e,t):this.element.append(e)},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var i=this;if(e){var n=this.element.offsetHeight,r=this.element.scrollTop+n,o=e.offsetHeight,a=e.offsetTop+o,s=t>0?this.element.scrollTop+a-r:e.offsetTop;requestAnimationFrame((function(){i._animateScroll(s,t)}))}},e.prototype._scrollDown=function(e,t,i){var n=(i-e)/t,r=n>1?n:1;this.element.scrollTop=e+r},e.prototype._scrollUp=function(e,t,i){var n=(e-i)/t,r=n>1?n:1;this.element.scrollTop=e-r},e.prototype._animateScroll=function(e,t){var i=this,n=this.element.scrollTop,r=!1;t>0?(this._scrollDown(n,4,e),ne&&(r=!0)),r&&requestAnimationFrame((function(){i._animateScroll(e,t)}))},e}(),de=function(){function e(e){var t=e.element,i=e.classNames;this.element=t,this.classNames=i,this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){var e=this.element;re(e,this.classNames.input),e.hidden=!0,e.tabIndex=-1;var t=e.getAttribute("style");t&&e.setAttribute("data-choice-orig-style",t),e.setAttribute("data-choice","active")},e.prototype.reveal=function(){var e=this.element;oe(e,this.classNames.input),e.hidden=!1,e.removeAttribute("tabindex");var t=e.getAttribute("data-choice-orig-style");t?(e.removeAttribute("data-choice-orig-style"),e.setAttribute("style",t)):e.removeAttribute("style"),e.removeAttribute("data-choice")},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){!function(e,t,i){void 0===i&&(i=null);var n=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}(this.element,e,t||{})},e}(),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(de),pe=function(e,t){return void 0===t&&(t=!0),void 0===e?t:!!e},fe=function(e){if("string"==typeof e&&(e=e.split(" ").filter((function(e){return e.length}))),Array.isArray(e)&&e.length)return e},me=function(e,t,i){if(void 0===i&&(i=!0),"string"==typeof e){var n=Y(e);return me({value:e,label:i||n===e?e:{escaped:n,raw:e},selected:!0},!1)}var r=e;if("choices"in r){if(!t)throw new TypeError("optGroup is not allowed");var o=r,a=o.choices.map((function(e){return me(e,!1)}));return{id:0,label:J(o.label)||o.value,active:!!a.length,disabled:!!o.disabled,choices:a}}var s=r;return{id:0,group:null,score:0,rank:0,value:s.value,label:s.label||s.value,active:pe(s.active),selected:pe(s.selected,!1),disabled:pe(s.disabled,!1),placeholder:pe(s.placeholder,!1),highlighted:!1,labelClass:fe(s.labelClass),labelDescription:s.labelDescription,customProperties:s.customProperties}},ge=function(e){return"SELECT"===e.tagName},ve=function(e){function t(t){var i=t.element,n=t.classNames,r=t.template,o=t.extractPlaceholder,a=e.call(this,{element:i,classNames:n})||this;return a.template=r,a.extractPlaceholder=o,a}return r(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),t.prototype.addOptions=function(e){var t=this,i=document.createDocumentFragment();e.forEach((function(e){var n=e;if(!n.element){var r=t.template(n);i.appendChild(r),n.element=r}})),this.element.appendChild(i)},t.prototype.optionsAsChoices=function(){var e=this,t=[];return this.element.querySelectorAll(":scope > option, :scope > optgroup").forEach((function(i){!function(e){return"OPTION"===e.tagName}(i)?function(e){return"OPTGROUP"===e.tagName}(i)&&t.push(e._optgroupToChoice(i)):t.push(e._optionToChoice(i))})),t},t.prototype._optionToChoice=function(e){return!e.hasAttribute("value")&&e.hasAttribute("placeholder")&&(e.setAttribute("value",""),e.value=""),{id:0,group:null,score:0,rank:0,value:e.value,label:e.label,element:e,active:!0,selected:this.extractPlaceholder?e.selected:e.hasAttribute("selected"),disabled:e.disabled,highlighted:!1,placeholder:this.extractPlaceholder&&(!e.value||e.hasAttribute("placeholder")),labelClass:void 0!==e.dataset.labelClass?fe(e.dataset.labelClass):void 0,labelDescription:void 0!==e.dataset.labelDescription?e.dataset.labelDescription:void 0,customProperties:ae(e.dataset.customProperties)}},t.prototype._optgroupToChoice=function(e){var t=this,i=e.querySelectorAll("option"),n=Array.from(i).map((function(e){return t._optionToChoice(e)}));return{id:0,label:e.label||"",element:e,active:!!n.length,disabled:e.disabled,choices:n}},t}(de),ye={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,closeDropdownOnSelect:"auto",singleModeForMultiSelect:!1,addChoices:!1,addItems:!0,addItemFilter:function(e){return!!e&&""!==e},removeItems:!0,removeItemButton:!1,removeItemButtonAlignLeft:!1,editItems:!1,allowHTML:!1,allowHtmlUserInput:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:function(e,t){var i=e.value,n=e.label,r=void 0===n?i:n,o=t.value,a=t.label,s=void 0===a?o:a;return J(r).localeCompare(J(s),[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add "'.concat(e,'"')},removeItemIconText:function(){return"Remove item"},removeItemLabelText:function(e){return"Remove item: ".concat(e)},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:["choices"],containerInner:["choices__inner"],input:["choices__input"],inputCloned:["choices__input--cloned"],list:["choices__list"],listItems:["choices__list--multiple"],listSingle:["choices__list--single"],listDropdown:["choices__list--dropdown"],item:["choices__item"],itemSelectable:["choices__item--selectable"],itemDisabled:["choices__item--disabled"],itemChoice:["choices__item--choice"],description:["choices__description"],placeholder:["choices__placeholder"],group:["choices__group"],groupHeading:["choices__heading"],button:["choices__button"],activeState:["is-active"],focusState:["is-focused"],openState:["is-open"],disabledState:["is-disabled"],highlightedState:["is-highlighted"],selectedState:["is-selected"],flippedState:["is-flipped"],loadingState:["is-loading"],notice:["choices__notice"],addChoice:["choices__item--selectable","add-choice"],noResults:["has-no-results"],noChoices:["has-no-choices"]},appendGroupInSearch:!1},be=function(e){var t=e.itemEl;t&&(t.remove(),e.itemEl=void 0)};var we={groups:function(e,t){var i=e,n=!0;switch(t.type){case p:i.push(t.group);break;case h:i=[];break;default:n=!1}return{state:i,update:n}},items:function(e,t,i){var n=e,r=!0;switch(t.type){case f:t.item.selected=!0,(o=t.item.element)&&(o.selected=!0,o.setAttribute("selected","")),n.push(t.item);break;case m:var o;if(t.item.selected=!1,o=t.item.element){o.selected=!1,o.removeAttribute("selected");var a=o.parentElement;a&&ge(a)&&a.type===j&&(a.value="")}be(t.item),n=n.filter((function(e){return e.id!==t.item.id}));break;case l:be(t.choice),n=n.filter((function(e){return e.id!==t.choice.id}));break;case g:var s=t.highlighted,c=n.find((function(e){return e.id===t.item.id}));c&&c.highlighted!==s&&(c.highlighted=s,i&&function(e,t,i){var n=e.itemEl;n&&(oe(n,i),re(n,t))}(c,s?i.classNames.highlightedState:i.classNames.selectedState,s?i.classNames.selectedState:i.classNames.highlightedState));break;default:r=!1}return{state:n,update:r}},choices:function(e,t,i){var n=e,r=!0;switch(t.type){case c:n.push(t.choice);break;case l:t.choice.choiceEl=void 0,t.choice.group&&(t.choice.group.choices=t.choice.group.choices.filter((function(e){return e.id!==t.choice.id}))),n=n.filter((function(e){return e.id!==t.choice.id}));break;case f:case m:t.item.choiceEl=void 0;break;case u:var o=[];t.results.forEach((function(e){o[e.item.id]=e})),n.forEach((function(e){var t=o[e.id];void 0!==t?(e.score=t.score,e.rank=t.rank,e.active=!0):(e.score=0,e.rank=0,e.active=!1),i&&i.appendGroupInSearch&&(e.choiceEl=void 0)}));break;case d:n.forEach((function(e){e.active=t.active,i&&i.appendGroupInSearch&&(e.choiceEl=void 0)}));break;case h:n=[];break;default:r=!1}return{state:n,update:r}}},Se=function(){function e(e){this._state=this.defaultState,this._listeners=[],this._txn=0,this._context=e}return Object.defineProperty(e.prototype,"defaultState",{get:function(){return{groups:[],items:[],choices:[]}},enumerable:!1,configurable:!0}),e.prototype.changeSet=function(e){return{groups:e,items:e,choices:e}},e.prototype.reset=function(){this._state=this.defaultState;var e=this.changeSet(!0);this._txn?this._changeSet=e:this._listeners.forEach((function(t){return t(e)}))},e.prototype.subscribe=function(e){return this._listeners.push(e),this},e.prototype.dispatch=function(e){var t=this,i=this._state,n=!1,r=this._changeSet||this.changeSet(!1);Object.keys(we).forEach((function(o){var a=we[o](i[o],e,t._context);a.update&&(n=!0,r[o]=!0,i[o]=a.state)})),n&&(this._txn?this._changeSet=r:this._listeners.forEach((function(e){return e(r)})))},e.prototype.withTxn=function(e){this._txn++;try{e()}finally{if(this._txn=Math.max(0,this._txn-1),!this._txn){var t=this._changeSet;t&&(this._changeSet=void 0,this._listeners.forEach((function(e){return e(t)})))}}},Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeChoices",{get:function(){return this.choices.filter((function(e){return e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchableChoices",{get:function(){return this.choices.filter((function(e){return!e.disabled&&!e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){var e=this;return this.state.groups.filter((function(t){var i=t.active&&!t.disabled,n=e.state.choices.some((function(e){return e.active&&!e.disabled}));return i&&n}),[])},enumerable:!1,configurable:!0}),e.prototype.inTxn=function(){return this._txn>0},e.prototype.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===e}))},e.prototype.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},e}(),_e="no-choices",Ee="no-results",Te="add-choice",Ce="";function Ae(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function xe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Oe(e){for(var t=1;t{let i=Fe(e);this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Fe(e){let t=null,i=null,n=null,r=1,o=null;if(ke(e)||Le(e))n=e,t=je(e),i=He(e);else{if(!qe.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(n=a,qe.call(e,"weight")&&(r=e.weight,r<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(a));t=je(a),i=He(a),o=e.getFn}return{path:t,id:i,weight:r,src:n,getFn:o}}function je(e){return Le(e)?e:e.split(".")}function He(e){return Le(e)?e.join("."):e}const Ue={useExtendedSearch:!1,getFn:function(e,t){let i=[],n=!1;const r=(e,t,o)=>{if(Pe(e))if(t[o]){const a=e[t[o]];if(!Pe(a))return;if(o===t.length-1&&(ke(a)||Ie(a)||De(a)))i.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(Le(a)){n=!0;for(let e=0,i=a.length;ee.score===t.score?e.idx{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,ke(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){const t=this.size();ke(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,i=this.size();t{let r=t.getFn?t.getFn(e):this.getFn(e,t.path);if(Pe(r))if(Le(r)){let e=[];const t=[{nestedArrIndex:-1,value:r}];for(;t.length;){const{nestedArrIndex:i,value:n}=t.pop();if(Pe(n))if(ke(n)&&!Ne(n)){let t={v:n,i:i,n:this.norm.get(n)};e.push(t)}else Le(n)&&n.forEach((e,i)=>{t.push({nestedArrIndex:i,value:e})})}i.$[n]=e}else if(ke(r)&&!Ne(r)){let e={v:r,n:this.norm.get(r)};i.$[n]=e}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function $e(e,t,{getFn:i=We.getFn,fieldNormWeight:n=We.fieldNormWeight}={}){const r=new Ve({getFn:i,fieldNormWeight:n});return r.setKeys(e.map(Fe)),r.setSources(t),r.create(),r}function Ye(e,{errors:t=0,currentLocation:i=0,expectedLocation:n=0,distance:r=We.distance,ignoreLocation:o=We.ignoreLocation}={}){const a=t/e.length;if(o)return a;const s=Math.abs(n-i);return r?a+s/r:s?1:a}function Ge(e,t,i,{location:n=We.location,distance:r=We.distance,threshold:o=We.threshold,findAllMatches:a=We.findAllMatches,minMatchCharLength:s=We.minMatchCharLength,includeMatches:c=We.includeMatches,ignoreLocation:l=We.ignoreLocation}={}){if(t.length>32)throw new Error(`Pattern length exceeds max of ${32}.`);const u=t.length,d=e.length,h=Math.max(0,Math.min(n,d));let p=o,f=h;const m=s>1||c,g=m?Array(d):[];let v;for(;(v=e.indexOf(t,f))>-1;){let e=Ye(t,{currentLocation:v,expectedLocation:h,distance:r,ignoreLocation:l});if(p=Math.min(e,p),f=v+u,m){let e=0;for(;e=c;o-=1){let a=o-1,s=i[e.charAt(a)];if(m&&(g[a]=+!!s),_[o]=(_[o+1]<<1|1)&s,n&&(_[o]|=(y[o+1]|y[o])<<1|1|y[o+1]),_[o]&S&&(b=Ye(t,{errors:n,currentLocation:a,expectedLocation:h,distance:r,ignoreLocation:l}),b<=p)){if(p=b,f=a,f<=h)break;c=Math.max(1,2*h-f)}}if(Ye(t,{errors:n+1,currentLocation:h,expectedLocation:h,distance:r,ignoreLocation:l})>p)break;y=_}const _={isMatch:f>=0,score:Math.max(.001,b)};if(m){const e=function(e=[],t=We.minMatchCharLength){let i=[],n=-1,r=-1,o=0;for(let a=e.length;o=t&&i.push([n,r]),n=-1)}return e[o-1]&&o-n>=t&&i.push([n,o-1]),i}(g,s);e.length?c&&(_.indices=e):_.isMatch=!1}return _}function Xe(e){let t={};for(let i=0,n=e.length;i{this.chunks.push({pattern:e,alphabet:Xe(e),startIndex:t})},u=this.pattern.length;if(u>32){let e=0;const t=u%32,i=u-t;for(;e{const{isMatch:f,score:m,indices:g}=Ge(e,t,h,{location:n+p,distance:r,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:i,ignoreLocation:c});f&&(d=!0),u+=m,f&&g&&(l=[...l,...g])});let h={isMatch:d,score:d?u/this.chunks.length:1};return d&&i&&(h.indices=l),h}}class Je{constructor(e){this.pattern=e}static isMultiMatch(e){return Ze(e,this.multiRegex)}static isSingleMatch(e){return Ze(e,this.singleRegex)}search(){}}function Ze(e,t){const i=e.match(t);return i?i[1]:null}class Qe extends Je{constructor(e,{location:t=We.location,threshold:i=We.threshold,distance:n=We.distance,includeMatches:r=We.includeMatches,findAllMatches:o=We.findAllMatches,minMatchCharLength:a=We.minMatchCharLength,isCaseSensitive:s=We.isCaseSensitive,ignoreLocation:c=We.ignoreLocation}={}){super(e),this._bitapSearch=new Ke(e,{location:t,threshold:i,distance:n,includeMatches:r,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class et extends Je{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,i=0;const n=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,i))>-1;)i=t+r,n.push([t,i-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const tt=[class extends Je{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},et,class extends Je{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Je{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Je{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Je{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Je{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Qe],it=tt.length,nt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const rt=new Set([Qe.type,et.type]);class ot{constructor(e,{isCaseSensitive:t=We.isCaseSensitive,includeMatches:i=We.includeMatches,minMatchCharLength:n=We.minMatchCharLength,ignoreLocation:r=We.ignoreLocation,findAllMatches:o=We.findAllMatches,location:a=We.location,threshold:s=We.threshold,distance:c=We.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:i,minMatchCharLength:n,findAllMatches:o,ignoreLocation:r,location:a,threshold:s,distance:c},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let i=e.trim().split(nt).filter(e=>e&&!!e.trim()),n=[];for(let e=0,r=i.length;e!(!e[ct]&&!e[lt]),pt=e=>({[ct]:Object.keys(e).map(t=>({[t]:e[t]}))});function ft(e,t,{auto:i=!0}={}){const n=e=>{let r=Object.keys(e);const o=(e=>!!e[ut])(e);if(!o&&r.length>1&&!ht(e))return n(pt(e));if((e=>!Le(e)&&Me(e)&&!ht(e))(e)){const n=o?e[ut]:r[0],a=o?e[dt]:e[n];if(!ke(a))throw new Error((e=>"Invalid value for key "+e)(n));const s={keyId:He(n),pattern:a};return i&&(s.searcher=st(a,t)),s}let a={children:[],operator:r[0]};return r.forEach(t=>{const i=e[t];Le(i)&&i.forEach(e=>{a.children.push(n(e))})}),a};return ht(e)||(e=pt(e)),n(e)}function mt(e,t){const i=e.matches;t.matches=[],Pe(i)&&i.forEach(e=>{if(!Pe(e.indices)||!e.indices.length)return;const{indices:i,value:n}=e;let r={indices:i,value:n};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)})}function gt(e,t){t.score=e.score}class vt{constructor(e,t={},i){this.options=Oe(Oe({},We),t),this.options.useExtendedSearch,this._keyStore=new Be(this.options.keys),this.setCollection(e,i)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ve))throw new Error("Incorrect 'index' type");this._myIndex=t||$e(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Pe(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let i=0,n=this._docs.length;i{let i=1;e.matches.forEach(({key:e,norm:n,score:r})=>{const o=e?e.weight:null;i*=Math.pow(0===r&&o?Number.EPSILON:r,(o||1)*(t?1:n))}),e.score=i})}(s,{ignoreFieldNorm:a}),r&&s.sort(o),Ie(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:i=We.includeMatches,includeScore:n=We.includeScore}={}){const r=[];return i&&r.push(mt),n&&r.push(gt),e.map(e=>{const{idx:i}=e,n={item:t[i],refIndex:i};return r.length&&r.forEach(t=>{t(e,n)}),n})}(s,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(e){const t=st(e,this.options),{records:i}=this._myIndex,n=[];return i.forEach(({v:e,i:i,n:r})=>{if(!Pe(e))return;const{isMatch:o,score:a,indices:s}=t.searchIn(e);o&&n.push({item:e,idx:i,matches:[{score:a,value:e,norm:r,indices:s}]})}),n}_searchLogical(e){const t=ft(e,this.options),i=(e,t,n)=>{if(!e.children){const{keyId:i,searcher:r}=e,o=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(t,i),searcher:r});return o&&o.length?[{idx:n,item:t,matches:o}]:[]}const r=[];for(let o=0,a=e.children.length;o{if(Pe(e)){let a=i(t,e,n);a.length&&(r[n]||(r[n]={idx:n,item:e,matches:[]},o.push(r[n])),a.forEach(({matches:e})=>{r[n].matches.push(...e)}))}}),o}_searchObjectList(e){const t=st(e,this.options),{keys:i,records:n}=this._myIndex,r=[];return n.forEach(({$:e,i:n})=>{if(!Pe(e))return;let o=[];i.forEach((i,n)=>{o.push(...this._findMatches({key:i,value:e[n],searcher:t}))}),o.length&&r.push({idx:n,item:e,matches:o})}),r}_findMatches({key:e,value:t,searcher:i}){if(!Pe(t))return[];let n=[];if(Le(t))t.forEach(({v:t,i:r,n:o})=>{if(!Pe(t))return;const{isMatch:a,score:s,indices:c}=i.searchIn(t);a&&n.push({score:s,key:e,value:t,idx:r,norm:o,indices:c})});else{const{v:r,n:o}=t,{isMatch:a,score:s,indices:c}=i.searchIn(r);a&&n.push({score:s,key:e,value:r,norm:o,indices:c})}return n}}vt.version="7.0.0",vt.createIndex=$e,vt.parseIndex=function(e,{getFn:t=We.getFn,fieldNormWeight:i=We.fieldNormWeight}={}){const{keys:n,records:r}=e,o=new Ve({getFn:t,fieldNormWeight:i});return o.setKeys(n),o.setIndexRecords(r),o},vt.config=We,vt.parseQuery=ft,function(...e){at.push(...e)}(ot);var yt=function(){function e(e){this._haystack=[],this._fuseOptions=o(o({},e.fuseOptions),{keys:a([],e.searchFields,!0),includeMatches:!0})}return e.prototype.index=function(e){this._haystack=e,this._fuse&&this._fuse.setCollection(e)},e.prototype.reset=function(){this._haystack=[],this._fuse=void 0},e.prototype.isEmptyIndex=function(){return!this._haystack.length},e.prototype.search=function(e){return this._fuse||(this._fuse=new vt(this._haystack,this._fuseOptions)),this._fuse.search(e).map((function(e,t){return{item:e.item,score:e.score||0,rank:t+1}}))},e}();var bt=function(e,t,i){var n=e.dataset,r=t.customProperties,o=t.labelClass,a=t.labelDescription;o&&(n.labelClass=ie(o).join(" ")),a&&(n.labelDescription=a),i&&r&&("string"==typeof r?n.customProperties=r:"object"!=typeof r||function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(r)||(n.customProperties=JSON.stringify(r)))},wt=function(e,t,i){var n=t&&e.querySelector("label[for='".concat(t,"']")),r=n&&n.innerText;r&&i.setAttribute("aria-label",r)},St={containerOuter:function(e,t,i,n,r,o,a){var s=e.classNames.containerOuter,c=document.createElement("div");return re(c,s),c.dataset.type=o,t&&(c.dir=t),n&&(c.tabIndex=0),i&&(c.setAttribute("role",r?"combobox":"listbox"),r?c.setAttribute("aria-autocomplete","list"):a||wt(this._docRoot,this.passedElement.element.id,c),c.setAttribute("aria-haspopup","true"),c.setAttribute("aria-expanded","false")),a&&c.setAttribute("aria-labelledby",a),c},containerInner:function(e){var t=e.classNames.containerInner,i=document.createElement("div");return re(i,t),i},itemList:function(e,t){var i=e.searchEnabled,n=e.classNames,r=n.list,o=n.listSingle,a=n.listItems,s=document.createElement("div");return re(s,r),re(s,t?o:a),this._isSelectElement&&i&&s.setAttribute("role","listbox"),s},placeholder:function(e,t){var i=e.allowHTML,n=e.classNames.placeholder,r=document.createElement("div");return re(r,n),ee(r,i,t),r},item:function(e,t,i){var n=e.allowHTML,r=e.removeItemButtonAlignLeft,o=e.removeItemIconText,a=e.removeItemLabelText,s=e.classNames,c=s.item,l=s.button,u=s.highlightedState,d=s.itemSelectable,h=s.placeholder,p=J(t.value),f=document.createElement("div");if(re(f,c),t.labelClass){var m=document.createElement("span");ee(m,n,t.label),re(m,t.labelClass),f.appendChild(m)}else ee(f,n,t.label);if(f.dataset.item="",f.dataset.id=t.id,f.dataset.value=p,bt(f,t,!0),(t.disabled||this.containerOuter.isDisabled)&&f.setAttribute("aria-disabled","true"),this._isSelectElement&&(f.setAttribute("aria-selected","true"),f.setAttribute("role","option")),t.placeholder&&(re(f,h),f.dataset.placeholder=""),re(f,t.highlighted?u:d),i){t.disabled&&oe(f,d),f.dataset.deletable="";var g=document.createElement("button");g.type="button",re(g,l),ee(g,!0,X(o,t.value));var v=X(a,t.value);v&&g.setAttribute("aria-label",v),g.dataset.button="",r?f.insertAdjacentElement("afterbegin",g):f.appendChild(g)}return f},choiceList:function(e,t){var i=e.classNames.list,n=document.createElement("div");return re(n,i),t||n.setAttribute("aria-multiselectable","true"),n.setAttribute("role","listbox"),n},choiceGroup:function(e,t){var i=e.allowHTML,n=e.classNames,r=n.group,o=n.groupHeading,a=n.itemDisabled,s=t.id,c=t.label,l=t.disabled,u=J(c),d=document.createElement("div");re(d,r),l&&re(d,a),d.setAttribute("role","group"),d.dataset.group="",d.dataset.id=s,d.dataset.value=u,l&&d.setAttribute("aria-disabled","true");var h=document.createElement("div");return re(h,o),ee(h,i,c||""),d.appendChild(h),d},choice:function(e,t,i,n){var r=e.allowHTML,o=e.classNames,a=o.item,s=o.itemChoice,c=o.itemSelectable,l=o.selectedState,u=o.itemDisabled,d=o.description,h=o.placeholder,p=t.label,f=J(t.value),m=document.createElement("div");m.id=t.elementId,re(m,a),re(m,s),n&&"string"==typeof p&&(p=Q(r,p),p={trusted:p+=" (".concat(n,")")});var g=m;if(t.labelClass){var v=document.createElement("span");ee(v,r,p),re(v,t.labelClass),g=v,m.appendChild(v)}else ee(m,r,p);if(t.labelDescription){var y="".concat(t.elementId,"-description");g.setAttribute("aria-describedby",y);var b=document.createElement("span");ee(b,r,t.labelDescription),b.id=y,re(b,d),m.appendChild(b)}return t.selected&&re(m,l),t.placeholder&&re(m,h),m.setAttribute("role",t.group?"treeitem":"option"),m.dataset.choice="",m.dataset.id=t.id,m.dataset.value=f,i&&(m.dataset.selectText=i),t.group&&(m.dataset.groupId="".concat(t.group.id)),bt(m,t,!1),t.disabled?(re(m,u),m.dataset.choiceDisabled="",m.setAttribute("aria-disabled","true")):(re(m,c),m.dataset.choiceSelectable=""),m},input:function(e,t){var i=e.classNames,n=i.input,r=i.inputCloned,o=e.labelId,a=document.createElement("input");return a.type="search",re(a,n),re(a,r),a.autocomplete="off",a.autocapitalize="off",a.spellcheck=!1,a.setAttribute("aria-autocomplete","list"),t?a.setAttribute("aria-label",t):o||wt(this._docRoot,this.passedElement.element.id,a),a},dropdown:function(e){var t=e.classNames,i=t.list,n=t.listDropdown,r=document.createElement("div");return re(r,i),re(r,n),r.setAttribute("aria-expanded","false"),r},notice:function(e,t,i){var n=e.classNames,r=n.item,o=n.itemChoice,a=n.addChoice,s=n.noResults,c=n.noChoices,l=n.notice;void 0===i&&(i=Ce);var u=document.createElement("div");switch(ee(u,!0,t),re(u,r),re(u,o),re(u,l),i){case Te:re(u,a);break;case Ee:re(u,s);break;case _e:re(u,c)}return i===Te&&(u.dataset.choiceSelectable="",u.dataset.choice=""),u},option:function(e){var t=J(e.label),i=new Option(t,e.value,!1,e.selected);return bt(i,e,!0),i.disabled=e.disabled,e.selected&&i.setAttribute("selected",""),i}},_t="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Et={},Tt=function(e){if(e)return e.dataset.id?parseInt(e.dataset.id,10):void 0},Ct=function(){function e(t,i){void 0===t&&(t="[data-choice]"),void 0===i&&(i={});var n=this;this.initialisedOK=void 0,this._hasNonChoicePlaceholder=!1,this._lastAddedChoiceId=0,this._lastAddedGroupId=0;var r=e.defaults;this.config=o(o(o({},r.allOptions),r.options),i),B.forEach((function(e){n.config[e]=o(o(o({},r.allOptions[e]),r.options[e]),i[e])}));var a=this.config;a.silent||this._validateConfig();var s=a.shadowRoot||document.documentElement;this._docRoot=s;var c="string"==typeof t?s.querySelector(t):t;if(!c||"object"!=typeof c||"INPUT"!==c.tagName&&!ge(c)){if(!c&&"string"==typeof t)throw TypeError("Selector ".concat(t," failed to find an element"));throw TypeError("Expected one of the following types text|select-one|select-multiple")}var l=c.type,u=l===F;(u||1!==a.maxItemCount)&&(a.singleModeForMultiSelect=!1),a.singleModeForMultiSelect&&(l=H);var d=l===j,h=l===H,p=d||h;if(this._elementType=l,this._isTextElement=u,this._isSelectOneElement=d,this._isSelectMultipleElement=h,this._isSelectElement=d||h,this._canAddUserChoices=u&&a.addItems||p&&a.addChoices,"boolean"!=typeof a.renderSelectedChoices&&(a.renderSelectedChoices="always"===a.renderSelectedChoices||d),"auto"===a.closeDropdownOnSelect?a.closeDropdownOnSelect=u||d||a.singleModeForMultiSelect:a.closeDropdownOnSelect=pe(a.closeDropdownOnSelect),a.placeholder&&(a.placeholderValue?this._hasNonChoicePlaceholder=!0:c.dataset.placeholder&&(this._hasNonChoicePlaceholder=!0,a.placeholderValue=c.dataset.placeholder)),i.addItemFilter&&"function"!=typeof i.addItemFilter){var f=i.addItemFilter instanceof RegExp?i.addItemFilter:new RegExp(i.addItemFilter);a.addItemFilter=f.test.bind(f)}if(this._isTextElement)this.passedElement=new he({element:c,classNames:a.classNames});else{var m=c;this.passedElement=new ve({element:m,classNames:a.classNames,template:function(e){return n._templates.option(e)},extractPlaceholder:a.placeholder&&!this._hasNonChoicePlaceholder})}if(this.initialised=!1,this._store=new Se(a),this._currentValue="",a.searchEnabled=!u&&a.searchEnabled||h,this._canSearch=a.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(e,t){var i=e.id||e.name&&"".concat(e.name,"-").concat($(2))||$(4);return i=i.replace(/(:|\.|\[|\]|,)/g,""),i="".concat(t,"-").concat(i)}(c,"choices-"),this._direction=c.dir,!this._direction){var g=window.getComputedStyle(c).direction;g!==window.getComputedStyle(document.documentElement).direction&&(this._direction=g)}if(this._idNames={itemChoice:"item-choice"},this._templates=r.templates,this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onInput=this._onInput.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return a.silent,this.initialised=!0,void(this.initialisedOK=!1);this.init(),this._initialItems=this._store.items.map((function(e){return e.value}))}return Object.defineProperty(e,"defaults",{get:function(){return Object.preventExtensions({get options(){return Et},get allOptions(){return ye},get templates(){return St}})},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!this.initialised&&void 0===this.initialisedOK){var e;this._searcher=(e=this.config,new yt(e)),this._loadChoices(),this._createTemplates(),this._createElements(),this._createStructure(),this._isTextElement&&!this.config.addItems||this.passedElement.element.hasAttribute("disabled")||this.passedElement.element.closest("fieldset:disabled")?this.disable():(this.enable(),this._addEventListeners()),this._initStore(),this.initialised=!0,this.initialisedOK=!0;var t=this.config.callbackOnInit;"function"==typeof t&&t.call(this)}},e.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this._store._listeners=[],this.clearStore(!1),this._stopSearch(),this._templates=e.defaults.templates,this.initialised=!1,this.initialisedOK=void 0)},e.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.prototype.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return this;var i=this._store.items.find((function(t){return t.id===e.id}));return!i||i.highlighted||(this._store.dispatch(V(i,!0)),t&&this.passedElement.triggerEvent(T,this._getChoiceForOutput(i))),this},e.prototype.unhighlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return this;var i=this._store.items.find((function(t){return t.id===e.id}));return i&&i.highlighted?(this._store.dispatch(V(i,!1)),t&&this.passedElement.triggerEvent(A,this._getChoiceForOutput(i)),this):this},e.prototype.highlightAll=function(){var e=this;return this._store.withTxn((function(){e._store.items.forEach((function(t){t.highlighted||(e._store.dispatch(V(t,!0)),e.passedElement.triggerEvent(T,e._getChoiceForOutput(t)))}))})),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.withTxn((function(){e._store.items.forEach((function(t){t.highlighted&&(e._store.dispatch(V(t,!1)),e.passedElement.triggerEvent(T,e._getChoiceForOutput(t)))}))})),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.withTxn((function(){t._store.items.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)}))})),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.withTxn((function(){t._store.items.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)}))})),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.withTxn((function(){t._store.highlightedActiveItems.forEach((function(i){t._removeItem(i),e&&t._triggerChange(i.value)}))})),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||(void 0===e&&(e=!this._canSearch),requestAnimationFrame((function(){t.dropdown.show();var i=t.dropdown.element.getBoundingClientRect();t.containerOuter.open(i.bottom,i.height),e||t.input.focus(),t.passedElement.triggerEvent(v)}))),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(y)})),this):this},e.prototype.getValue=function(e){var t=this,i=this._store.items.map((function(i){return e?i.value:t._getChoiceForOutput(i)}));return this._isSelectOneElement||this.config.singleModeForMultiSelect?i[0]:i},e.prototype.setValue=function(e){var t=this;return this.initialisedOK?(this._store.withTxn((function(){e.forEach((function(e){e&&t._addChoice(me(e,!1))}))})),this._searcher.reset(),this):(this._warnChoicesInitFailed("setValue"),this)},e.prototype.setChoiceByValue=function(e){var t=this;return this.initialisedOK?(this._isTextElement||(this._store.withTxn((function(){(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),t.unhighlightAll()})),this._searcher.reset()),this):(this._warnChoicesInitFailed("setChoiceByValue"),this)},e.prototype.setChoices=function(e,t,i,n,r,a){var s=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===i&&(i="label"),void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===a&&(a=!1),!this.initialisedOK)return this._warnChoicesInitFailed("setChoices"),this;if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if("function"==typeof e){var c=e(this);if("function"==typeof Promise&&c instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return s._handleLoadingState(!0)})).then((function(){return c})).then((function(e){return s.setChoices(e,t,i,n,r,a)})).catch((function(e){s.config.silent})).then((function(){return s._handleLoadingState(!1)})).then((function(){return s}));if(!Array.isArray(c))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof c));return this.setChoices(c,t,i,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._store.withTxn((function(){r&&(s._isSearching=!1),n&&s.clearChoices(!0,a);var c="value"===t,l="label"===i;e.forEach((function(e){if("choices"in e){var n=e;l||(n=o(o({},n),{label:n[i]})),s._addGroup(me(n,!0))}else{var r=e;l&&c||(r=o(o({},r),{value:r[t],label:r[i]}));var a=me(r,!1);s._addChoice(a),a.placeholder&&!s._hasNonChoicePlaceholder&&(s._placeholderValue=Z(a.label))}})),s.unhighlightAll()})),this._searcher.reset(),this},e.prototype.refresh=function(e,t,i){var n=this;return void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===i&&(i=!1),this._isSelectElement?(this._store.withTxn((function(){var r=n.passedElement.optionsAsChoices(),o={};i||n._store.items.forEach((function(e){e.id&&e.active&&e.selected&&(o[e.value]=!0)})),n.clearStore(!1);var a=function(e){i?n._store.dispatch(z(e)):o[e.value]&&(e.selected=!0)};r.forEach((function(e){"choices"in e?e.choices.forEach(a):a(e)})),n._addPredefinedChoices(r,t,e),n._isSearching&&n._searchChoices(n.input.value)})),this):(this.config.silent,this)},e.prototype.removeChoice=function(e){var t=this._store.choices.find((function(t){return t.value===e}));return t?(this._clearNotice(),this._store.dispatch(function(e){return{type:l,choice:e}}(t)),this._searcher.reset(),t.selected&&this.passedElement.triggerEvent(E,this._getChoiceForOutput(t)),this):this},e.prototype.clearChoices=function(e,t){var i=this;return void 0===e&&(e=!0),void 0===t&&(t=!1),e&&(t?this.passedElement.element.replaceChildren(""):this.passedElement.element.querySelectorAll(":not([selected])").forEach((function(e){e.remove()}))),this.itemList.element.replaceChildren(""),this.choiceList.element.replaceChildren(""),this._clearNotice(),this._store.withTxn((function(){var e=t?[]:i._store.items;i._store.reset(),e.forEach((function(e){i._store.dispatch(U(e)),i._store.dispatch(W(e))}))})),this._searcher.reset(),this},e.prototype.clearStore=function(e){return void 0===e&&(e=!0),this.clearChoices(e,!0),this._stopSearch(),this._lastAddedChoiceId=0,this._lastAddedGroupId=0,this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),this._stopSearch(),this},e.prototype._validateConfig=function(){var e,t,i,n,r=this.config;(e=r,t=ye,i=Object.keys(e).sort(),n=Object.keys(t).sort(),i.filter((function(e){return n.indexOf(e)<0}))).length,r.allowHTML&&r.allowHtmlUserInput&&(r.addItems,r.addChoices)},e.prototype._render=function(e){void 0===e&&(e={choices:!0,groups:!0,items:!0}),this._store.inTxn()||(this._isSelectElement&&(e.choices||e.groups)&&this._renderChoices(),e.items&&this._renderItems())},e.prototype._renderChoices=function(){var e=this;if(this._canAddItems()){var t=this.config,i=this._isSearching,n=this._store,r=n.activeGroups,o=n.activeChoices,a=0;if(i&&t.searchResultLimit>0?a=t.searchResultLimit:t.renderChoiceLimit>0&&(a=t.renderChoiceLimit),this._isSelectElement){var s=o.filter((function(e){return!e.element}));s.length&&this.passedElement.addOptions(s)}var c=document.createDocumentFragment(),l=function(e){return e.filter((function(e){return!e.placeholder&&(i?!!e.rank:t.renderSelectedChoices||!e.selected)}))},u=!1,d=function(n,r,o){i?n.sort(te):t.shouldSort&&n.sort(t.sorter);var s=n.length;s=!r&&a&&s>a?a:s,s--,n.every((function(n,r){var a=n.choiceEl||e._templates.choice(t,n,t.itemSelectText,o);return n.choiceEl=a,c.appendChild(a),!i&&n.selected||(u=!0),r1){var l=i.querySelector(ne(n.classNames.placeholder));l&&l.remove()}else s||c||!this._placeholderValue||(s=!0,a(me({selected:!0,value:"",label:this._placeholderValue,placeholder:!0},!1)))}s&&(i.append(r),n.shouldSortItems&&!this._isSelectOneElement&&(t.sort(n.sorter),t.forEach((function(e){var t=o(e);t&&(t.remove(),r.append(t))})),i.append(r))),this._isTextElement&&(this.passedElement.value=t.map((function(e){return e.value})).join(n.delimiter))},e.prototype._displayNotice=function(e,t,i){void 0===i&&(i=!0);var n=this._notice;n&&(n.type===t&&n.text===e||n.type===Te&&(t===Ee||t===_e))?i&&this.showDropdown(!0):(this._clearNotice(),this._notice=e?{text:e,type:t}:void 0,this._renderNotice(),i&&e&&this.showDropdown(!0))},e.prototype._clearNotice=function(){if(this._notice){var e=this.choiceList.element.querySelector(ne(this.config.classNames.notice));e&&e.remove(),this._notice=void 0}},e.prototype._renderNotice=function(e){var t=this._notice;if(t){var i=this._templates.notice(this.config,t.text,t.type);e?e.append(i):this.choiceList.prepend(i)}},e.prototype._getChoiceForOutput=function(e,t){return{id:e.id,highlighted:e.highlighted,labelClass:e.labelClass,labelDescription:e.labelDescription,customProperties:e.customProperties,disabled:e.disabled,active:e.active,label:e.label,placeholder:e.placeholder,value:e.value,groupValue:e.group?e.group.label:void 0,element:e.element,keyCode:t}},e.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(b,{value:e})},e.prototype._handleButtonAction=function(e){var t=this,i=this._store.items;if(i.length&&this.config.removeItems&&this.config.removeItemButton){var n=e&&Tt(e.parentElement),r=n&&i.find((function(e){return e.id===n}));r&&this._store.withTxn((function(){if(t._removeItem(r),t._triggerChange(r.value),t._isSelectOneElement&&!t._hasNonChoicePlaceholder){var e=(t.config.shouldSort?t._store.choices.reverse():t._store.choices).find((function(e){return e.placeholder}));e&&(t._addItem(e),t.unhighlightAll(),e.value&&t._triggerChange(e.value))}}))}},e.prototype._handleItemAction=function(e,t){var i=this;void 0===t&&(t=!1);var n=this._store.items;if(n.length&&this.config.removeItems&&!this._isSelectOneElement){var r=Tt(e);r&&(n.forEach((function(e){e.id!==r||e.highlighted?!t&&e.highlighted&&i.unhighlightItem(e):i.highlightItem(e)})),this.input.focus())}},e.prototype._handleChoiceAction=function(e){var t=this,i=Tt(e),n=i&&this._store.getChoiceById(i);if(!n||n.disabled)return!1;var r=this.dropdown.isActive;if(!n.selected){if(!this._canAddItems())return!0;this._store.withTxn((function(){t._addItem(n,!0,!0),t.clearInput(),t.unhighlightAll()})),this._triggerChange(n.value)}return r&&this.config.closeDropdownOnSelect&&(this.hideDropdown(!0),this.containerOuter.element.focus()),!0},e.prototype._handleBackspace=function(e){var t=this.config;if(t.removeItems&&e.length){var i=e[e.length-1],n=e.some((function(e){return e.highlighted}));t.editItems&&!n&&i?(this.input.value=i.value,this.input.setWidth(),this._removeItem(i),this._triggerChange(i.value)):(n||this.highlightItem(i,!1),this.removeHighlightedItems(!0))}},e.prototype._loadChoices=function(){var e,t=this,i=this.config;if(this._isTextElement){if(this._presetChoices=i.items.map((function(e){return me(e,!1)})),this.passedElement.value){var n=this.passedElement.value.split(i.delimiter).map((function(e){return me(e,!1,t.config.allowHtmlUserInput)}));this._presetChoices=this._presetChoices.concat(n)}this._presetChoices.forEach((function(e){e.selected=!0}))}else if(this._isSelectElement){this._presetChoices=i.choices.map((function(e){return me(e,!0)}));var r=this.passedElement.optionsAsChoices();r&&(e=this._presetChoices).push.apply(e,r)}},e.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.element;e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t.replaceChildren(this._templates.placeholder(this.config,this.config.loadingText)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?(t.replaceChildren(""),this._render()):this.input.placeholder=this._placeholderValue||"")},e.prototype._handleSearch=function(e){if(this.input.isFocussed)if(null!=e&&e.length>=this.config.searchFloor){var t=this.config.searchChoices?this._searchChoices(e):0;null!==t&&this.passedElement.triggerEvent(S,{value:e,resultCount:t})}else this._store.choices.some((function(e){return!e.active}))&&this._stopSearch()},e.prototype._canAddItems=function(){var e=this.config,t=e.maxItemCount,i=e.maxItemText;return!e.singleModeForMultiSelect&&t>0&&t<=this._store.items.length?(this.choiceList.element.replaceChildren(""),this._notice=void 0,this._displayNotice("function"==typeof i?i(t):i,Te),!1):(this._notice&&this._notice.type===Te&&this._clearNotice(),!0)},e.prototype._canCreateItem=function(e){var t=this.config,i=!0,n="";if((i&&"function"==typeof t.addItemFilter&&!t.addItemFilter(e)&&(i=!1,n=X(t.customAddItemText,e)),i)&&this._store.choices.find((function(i){return t.valueComparer(i.value,e)}))){if(this._isSelectElement)return this._displayNotice("",Te),!1;t.duplicateItemsAllowed||(i=!1,n=X(t.uniqueItemText,e))}return i&&(n=X(t.addItemText,e)),n&&this._displayNotice(n,Te),i},e.prototype._searchChoices=function(e){var t=e.trim().replace(/\s{2,}/," ");if(!t.length||t===this._currentValue)return null;var i=this._searcher;i.isEmptyIndex()&&i.index(this._store.searchableChoices);var n=i.search(t);this._currentValue=t,this._highlightPosition=0,this._isSearching=!0;var r=this._notice;return(r&&r.type)!==Te&&(n.length?this._clearNotice():this._displayNotice(K(this.config.noResultsText),Ee)),this._store.dispatch(function(e){return{type:u,results:e}}(n)),n.length},e.prototype._stopSearch=function(){this._isSearching&&(this._currentValue="",this._isSearching=!1,this._clearNotice(),this._store.dispatch({type:d,active:!0}),this.passedElement.triggerEvent(S,{value:"",resultCount:0}))},e.prototype._addEventListeners=function(){var e=this._docRoot,t=this.containerOuter.element,i=this.input.element;e.addEventListener("touchend",this._onTouchEnd,!0),t.addEventListener("keydown",this._onKeyDown,!0),t.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(t.addEventListener("focus",this._onFocus,{passive:!0}),t.addEventListener("blur",this._onBlur,{passive:!0})),i.addEventListener("keyup",this._onKeyUp,{passive:!0}),i.addEventListener("input",this._onInput,{passive:!0}),i.addEventListener("focus",this._onFocus,{passive:!0}),i.addEventListener("blur",this._onBlur,{passive:!0}),i.form&&i.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=this._docRoot,t=this.containerOuter.element,i=this.input.element;e.removeEventListener("touchend",this._onTouchEnd,!0),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(t.removeEventListener("focus",this._onFocus),t.removeEventListener("blur",this._onBlur)),i.removeEventListener("keyup",this._onKeyUp),i.removeEventListener("input",this._onInput),i.removeEventListener("focus",this._onFocus),i.removeEventListener("blur",this._onBlur),i.form&&i.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,i=this.dropdown.isActive,n=1===e.key.length||2===e.key.length&&e.key.charCodeAt(0)>=55296||"Unidentified"===e.key;switch(this._isTextElement||i||t===M||t===x||t===O||(this.showDropdown(),!this.input.isFocussed&&n&&(this.input.value+=e.key," "===e.key&&e.preventDefault())),t){case D:return this._onSelectKey(e,this.itemList.element.hasChildNodes());case I:return this._onEnterKey(e,i);case M:return this._onEscapeKey(e,i);case P:case R:case N:case q:return this._onDirectionKey(e,i);case k:case L:return this._onDeleteKey(e,this._store.items,this.input.isFocussed)}},e.prototype._onKeyUp=function(){this._canSearch=this.config.searchEnabled},e.prototype._onInput=function(){var e=this.input.value;e?this._canAddItems()&&(this._canSearch&&this._handleSearch(e),this._canAddUserChoices&&(this._canCreateItem(e),this._isSelectElement&&(this._highlightPosition=0,this._highlightChoice()))):this._isTextElement?this.hideDropdown(!0):this._stopSearch()},e.prototype._onSelectKey=function(e,t){(e.ctrlKey||e.metaKey)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e,t){var i=this,n=this.input.value,r=e.target;if(e.preventDefault(),r&&r.hasAttribute("data-button"))this._handleButtonAction(r);else if(t){var o=this.dropdown.element.querySelector(ne(this.config.classNames.highlightedState));if(!o||!this._handleChoiceAction(o))if(r&&n){if(this._canAddItems()){var a=!1;this._store.withTxn((function(){if(!(a=i._findAndSelectChoiceByValue(n,!0))){if(!i._canAddUserChoices)return;if(!i._canCreateItem(n))return;i._addChoice(me(n,!1,i.config.allowHtmlUserInput),!0,!0),a=!0}i.clearInput(),i.unhighlightAll()})),a&&(this._triggerChange(n),this.config.closeDropdownOnSelect&&this.hideDropdown(!0))}}else this.hideDropdown(!0)}else(this._isSelectElement||this._notice)&&this.showDropdown()},e.prototype._onEscapeKey=function(e,t){t&&(e.stopPropagation(),this.hideDropdown(!0),this._stopSearch(),this.containerOuter.element.focus())},e.prototype._onDirectionKey=function(e,t){var i,n,r,o=e.keyCode;if(t||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var a=o===N||o===q?1:-1,s=void 0;if(e.metaKey||o===q||o===R)s=a>0?this.dropdown.element.querySelector("".concat("[data-choice-selectable]",":last-of-type")):this.dropdown.element.querySelector("[data-choice-selectable]");else{var c=this.dropdown.element.querySelector(ne(this.config.classNames.highlightedState));s=c?function(e,t,i){void 0===i&&(i=1);for(var n="".concat(i>0?"next":"previous","ElementSibling"),r=e[n];r;){if(r.matches(t))return r;r=r[n]}return null}(c,"[data-choice-selectable]",a):this.dropdown.element.querySelector("[data-choice-selectable]")}s&&(i=s,n=this.choiceList.element,void 0===(r=a)&&(r=1),(r>0?n.scrollTop+n.offsetHeight>=i.offsetTop+i.offsetHeight:i.offsetTop>=n.scrollTop)||this.choiceList.scrollToChildElement(s,a),this._highlightChoice(s)),e.preventDefault()}},e.prototype._onDeleteKey=function(e,t,i){this._isSelectOneElement||e.target.value||!i||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation());this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(_t&&this.choiceList.element.contains(t)){var i=this.choiceList.element.firstElementChild;this._isScrollingOnIe="ltr"===this._direction?e.offsetX>=i.offsetWidth:e.offsetXthis._highlightPosition?t[this._highlightPosition]:t[t.length-1])||(i=t[0]),re(i,n),i.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(C,{el:i}),this.dropdown.isActive&&(this.input.setActiveDescendant(i.id),this.containerOuter.setActiveDescendant(i.id))}},e.prototype._addItem=function(e,t,i){if(void 0===t&&(t=!0),void 0===i&&(i=!1),!e.id)throw new TypeError("item.id must be set before _addItem is called for a choice/item");(this.config.singleModeForMultiSelect||this._isSelectOneElement)&&this.removeActiveItems(e.id),this._store.dispatch(W(e)),t&&(this.passedElement.triggerEvent(_,this._getChoiceForOutput(e)),i&&this.passedElement.triggerEvent(w,this._getChoiceForOutput(e)))},e.prototype._removeItem=function(e){if(e.id){this._store.dispatch(z(e));var t=this._notice;t&&t.type===_e&&this._clearNotice(),this.passedElement.triggerEvent(E,this._getChoiceForOutput(e))}},e.prototype._addChoice=function(e,t,i){if(void 0===t&&(t=!0),void 0===i&&(i=!1),e.id)throw new TypeError("Can not re-add a choice which has already been added");var n=this.config;if(n.duplicateItemsAllowed||!this._store.choices.find((function(t){return n.valueComparer(t.value,e.value)}))){this._lastAddedChoiceId++,e.id=this._lastAddedChoiceId,e.elementId="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(e.id);var r=n.prependValue,o=n.appendValue;r&&(e.value=r+e.value),o&&(e.value+=o.toString()),(r||o)&&e.element&&(e.element.value=e.value),this._clearNotice(),this._store.dispatch(U(e)),e.selected&&this._addItem(e,t,i)}},e.prototype._addGroup=function(e,t){var i=this;if(void 0===t&&(t=!0),e.id)throw new TypeError("Can not re-add a group which has already been added");this._store.dispatch(function(e){return{type:p,group:e}}(e)),e.choices&&(this._lastAddedGroupId++,e.id=this._lastAddedGroupId,e.choices.forEach((function(n){n.group=e,e.disabled&&(n.disabled=!0),i._addChoice(n,t)})))},e.prototype._createTemplates=function(){var e=this,t=this.config.callbackOnCreateTemplates,i={};"function"==typeof t&&(i=t.call(this,G,Q,ie));var n={};Object.keys(this._templates).forEach((function(t){n[t]=t in i?i[t].bind(e):e._templates[t].bind(e)})),this._templates=n},e.prototype._createElements=function(){var e=this._templates,t=this.config,i=this._isSelectOneElement,n=t.position,r=t.classNames,o=this._elementType;this.containerOuter=new ce({element:e.containerOuter(t,this._direction,this._isSelectElement,i,t.searchEnabled,o,t.labelId),classNames:r,type:o,position:n}),this.containerInner=new ce({element:e.containerInner(t),classNames:r,type:o,position:n}),this.input=new le({element:e.input(t,this._placeholderValue),classNames:r,type:o,preventPaste:!t.paste}),this.choiceList=new ue({element:e.choiceList(t,i)}),this.itemList=new ue({element:e.itemList(t,i)}),this.dropdown=new se({element:e.dropdown(t),classNames:r,type:o})},e.prototype._createStructure=function(){var e=this.containerInner,t=this.containerOuter,i=this.passedElement,n=this.dropdown.element;i.conceal(),e.wrap(i.element),t.wrap(e.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":(this._placeholderValue&&(this.input.placeholder=this._placeholderValue),this.input.setWidth()),t.element.appendChild(e.element),t.element.appendChild(n),e.element.appendChild(this.itemList.element),n.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&n.insertBefore(this.input.element,n.firstChild):e.element.appendChild(this.input.element),this._highlightPosition=0,this._isSearching=!1},e.prototype._initStore=function(){var e=this;this._store.subscribe(this._render).withTxn((function(){e._addPredefinedChoices(e._presetChoices,e._isSelectOneElement&&!e._hasNonChoicePlaceholder,!1)})),(!this._store.choices.length||this._isSelectOneElement&&this._hasNonChoicePlaceholder)&&this._render()},e.prototype._addPredefinedChoices=function(e,t,i){var n=this;(void 0===t&&(t=!1),void 0===i&&(i=!0),t)&&(-1===e.findIndex((function(e){return e.selected}))&&e.some((function(e){return!e.disabled&&!("choices"in e)&&(e.selected=!0,!0)})));e.forEach((function(e){"choices"in e?n._isSelectElement&&n._addGroup(e,i):n._addChoice(e,i)}))},e.prototype._findAndSelectChoiceByValue=function(e,t){var i=this;void 0===t&&(t=!1);var n=this._store.choices.find((function(t){return i.config.valueComparer(t.value,e)}));return!(!n||n.disabled||n.selected)&&(this._addItem(n,!0,t),!0)},e.prototype._generatePlaceholderValue=function(){var e=this.config;if(!e.placeholder)return null;if(this._hasNonChoicePlaceholder)return e.placeholderValue;if(this._isSelectElement){var t=this.passedElement.placeholderOption;return t?t.text:null}return null},e.prototype._warnChoicesInitFailed=function(e){if(!this.config.silent){if(!this.initialised)throw new TypeError("".concat(e," called on a non-initialised instance of Choices"));if(!this.initialisedOK)throw new TypeError("".concat(e," called for an element which has multiple instances of Choices initialised on it"))}},e.version="11.1.0",e}()},function(e,t,i){"use strict";function n(e,t){for(var i=0;is?(r=n,n=e,a=o,o=c):i?n+=e:n=r+(e-r)/(c-a)*(o-a)};return{update:l,reset:function(){r=n=i?0:n,a=o=0},getVelocity:function(e){var t=a,s=r,u=_();return(e||0===e)&&e!==n&&l(e),o===a||u-a>c?0:(n+(i?s:-s))/((i?u:o)-t)*1e3}}},N=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},R=function(e){var t=Math.max.apply(Math,e),i=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(i)?t:i},q=function(){var e,t,i,n;(h=r.core.globals().ScrollTrigger)&&h.core&&(e=h.core,t=e.bridge||{},i=e._scrollers,n=e._proxies,i.push.apply(i,w),n.push.apply(n,S),w=i,S=n,E=function(e,i){return t[e](i)})},B=function(e){return r=e||v(),!o&&r&&"undefined"!=typeof document&&document.body&&(a=window,s=document,c=s.documentElement,l=s.body,p=[a,s,c,l],r.utils.clamp,g=r.core.context||function(){},d="onpointerenter"in l?"pointer":"mouse",u=F.isTouch=a.matchMedia&&a.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in a||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,m=F.eventTypes=("ontouchstart"in c?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in c?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return y=0}),500),q(),o=1),o};k.op=I,w.cache=0;var F=function(){function e(e){this.init(e)}var t,i,p;return e.prototype.init=function(e){o||B(r),h||q();var t=e.tolerance,i=e.dragMinimum,n=e.type,p=e.target,v=e.lineHeight,y=e.debounce,w=e.preventDefault,S=e.onStop,E=e.onStopDelay,T=e.ignore,L=e.wheelSpeed,F=e.event,j=e.onDragStart,H=e.onDragEnd,U=e.onDrag,W=e.onPress,z=e.onRelease,V=e.onRight,$=e.onLeft,Y=e.onUp,G=e.onDown,X=e.onChangeX,K=e.onChangeY,J=e.onChange,Z=e.onToggleX,Q=e.onToggleY,ee=e.onHover,te=e.onHoverEnd,ie=e.onMove,ne=e.ignoreCheck,re=e.isNormalizer,oe=e.onGestureStart,ae=e.onGestureEnd,se=e.onWheel,ce=e.onEnable,le=e.onDisable,ue=e.onClick,de=e.scrollSpeed,he=e.capture,pe=e.allowClicks,fe=e.lockAxis,me=e.onLockAxis;this.target=p=D(p)||c,this.vars=e,T&&(T=r.utils.toArray(T)),t=t||1e-9,i=i||0,L=L||1,de=de||1,n=n||"wheel,touch,pointer",y=!1!==y,v||(v=parseFloat(a.getComputedStyle(l).lineHeight)||22);var ge,ve,ye,be,we,Se,_e,Ee=this,Te=0,Ce=0,Ae=e.passive||!w&&!1!==e.passive,xe=M(p,k),Oe=M(p,I),Le=xe(),ke=Oe(),Ie=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===m[0],De=C(p),Me=p.ownerDocument||s,Pe=[0,0,0],Ne=[0,0,0],Re=0,qe=function(){return Re=_()},Be=function(e,t){return(Ee.event=e)&&T&&function(e,t){for(var i=t.length;i--;)if(t[i]===e||t[i].contains(e))return!0;return!1}(e.target,T)||t&&Ie&&"touch"!==e.pointerType||ne&&ne(e,t)},Fe=function(){var e=Ee.deltaX=R(Pe),i=Ee.deltaY=R(Ne),n=Math.abs(e)>=t,r=Math.abs(i)>=t;J&&(n||r)&&J(Ee,e,i,Pe,Ne),n&&(V&&Ee.deltaX>0&&V(Ee),$&&Ee.deltaX<0&&$(Ee),X&&X(Ee),Z&&Ee.deltaX<0!=Te<0&&Z(Ee),Te=Ee.deltaX,Pe[0]=Pe[1]=Pe[2]=0),r&&(G&&Ee.deltaY>0&&G(Ee),Y&&Ee.deltaY<0&&Y(Ee),K&&K(Ee),Q&&Ee.deltaY<0!=Ce<0&&Q(Ee),Ce=Ee.deltaY,Ne[0]=Ne[1]=Ne[2]=0),(be||ye)&&(ie&&ie(Ee),ye&&(j&&1===ye&&j(Ee),U&&U(Ee),ye=0),be=!1),Se&&!(Se=!1)&&me&&me(Ee),we&&(se(Ee),we=!1),ge=0},je=function(e,t,i){Pe[i]+=e,Ne[i]+=t,Ee._vx.update(e),Ee._vy.update(t),y?ge||(ge=requestAnimationFrame(Fe)):Fe()},He=function(e,t){fe&&!_e&&(Ee.axis=_e=Math.abs(e)>Math.abs(t)?"x":"y",Se=!0),"y"!==_e&&(Pe[2]+=e,Ee._vx.update(e,!0)),"x"!==_e&&(Ne[2]+=t,Ee._vy.update(t,!0)),y?ge||(ge=requestAnimationFrame(Fe)):Fe()},Ue=function(e){if(!Be(e,1)){var t=(e=N(e,w)).clientX,n=e.clientY,r=t-Ee.x,o=n-Ee.y,a=Ee.isDragging;Ee.x=t,Ee.y=n,(a||(r||o)&&(Math.abs(Ee.startX-t)>=i||Math.abs(Ee.startY-n)>=i))&&(ye||(ye=a?2:1),a||(Ee.isDragging=!0),He(r,o))}},We=Ee.onPress=function(e){Be(e,1)||e&&e.button||(Ee.axis=_e=null,ve.pause(),Ee.isPressed=!0,e=N(e),Te=Ce=0,Ee.startX=Ee.x=e.clientX,Ee.startY=Ee.y=e.clientY,Ee._vx.reset(),Ee._vy.reset(),A(re?p:Me,m[1],Ue,Ae,!0),Ee.deltaX=Ee.deltaY=0,W&&W(Ee))},ze=Ee.onRelease=function(e){if(!Be(e,1)){x(re?p:Me,m[1],Ue,!0);var t=!isNaN(Ee.y-Ee.startY),i=Ee.isDragging,n=i&&(Math.abs(Ee.x-Ee.startX)>3||Math.abs(Ee.y-Ee.startY)>3),o=N(e);!n&&t&&(Ee._vx.reset(),Ee._vy.reset(),w&&pe&&r.delayedCall(.08,(function(){if(_()-Re>300&&!e.defaultPrevented)if(e.target.click)e.target.click();else if(Me.createEvent){var t=Me.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,a,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}))),Ee.isDragging=Ee.isGesturing=Ee.isPressed=!1,S&&i&&!re&&ve.restart(!0),ye&&Fe(),H&&i&&H(Ee),z&&z(Ee,n)}},Ve=function(e){return e.touches&&e.touches.length>1&&(Ee.isGesturing=!0)&&oe(e,Ee.isDragging)},$e=function(){return(Ee.isGesturing=!1)||ae(Ee)},Ye=function(e){if(!Be(e)){var t=xe(),i=Oe();je((t-Le)*de,(i-ke)*de,1),Le=t,ke=i,S&&ve.restart(!0)}},Ge=function(e){if(!Be(e)){e=N(e,w),se&&(we=!0);var t=(1===e.deltaMode?v:2===e.deltaMode?a.innerHeight:1)*L;je(e.deltaX*t,e.deltaY*t,0),S&&!re&&ve.restart(!0)}},Xe=function(e){if(!Be(e)){var t=e.clientX,i=e.clientY,n=t-Ee.x,r=i-Ee.y;Ee.x=t,Ee.y=i,be=!0,S&&ve.restart(!0),(n||r)&&He(n,r)}},Ke=function(e){Ee.event=e,ee(Ee)},Je=function(e){Ee.event=e,te(Ee)},Ze=function(e){return Be(e)||N(e,w)&&ue(Ee)};ve=Ee._dc=r.delayedCall(E||.25,(function(){Ee._vx.reset(),Ee._vy.reset(),ve.pause(),S&&S(Ee)})).pause(),Ee.deltaX=Ee.deltaY=0,Ee._vx=P(0,50,!0),Ee._vy=P(0,50,!0),Ee.scrollX=xe,Ee.scrollY=Oe,Ee.isDragging=Ee.isGesturing=Ee.isPressed=!1,g(this),Ee.enable=function(e){return Ee.isEnabled||(A(De?Me:p,"scroll",O),n.indexOf("scroll")>=0&&A(De?Me:p,"scroll",Ye,Ae,he),n.indexOf("wheel")>=0&&A(p,"wheel",Ge,Ae,he),(n.indexOf("touch")>=0&&u||n.indexOf("pointer")>=0)&&(A(p,m[0],We,Ae,he),A(Me,m[2],ze),A(Me,m[3],ze),pe&&A(p,"click",qe,!0,!0),ue&&A(p,"click",Ze),oe&&A(Me,"gesturestart",Ve),ae&&A(Me,"gestureend",$e),ee&&A(p,d+"enter",Ke),te&&A(p,d+"leave",Je),ie&&A(p,d+"move",Xe)),Ee.isEnabled=!0,Ee.isDragging=Ee.isGesturing=Ee.isPressed=be=ye=!1,Ee._vx.reset(),Ee._vy.reset(),Le=xe(),ke=Oe(),e&&e.type&&We(e),ce&&ce(Ee)),Ee},Ee.disable=function(){Ee.isEnabled&&(b.filter((function(e){return e!==Ee&&C(e.target)})).length||x(De?Me:p,"scroll",O),Ee.isPressed&&(Ee._vx.reset(),Ee._vy.reset(),x(re?p:Me,m[1],Ue,!0)),x(De?Me:p,"scroll",Ye,he),x(p,"wheel",Ge,he),x(p,m[0],We,he),x(Me,m[2],ze),x(Me,m[3],ze),x(p,"click",qe,!0),x(p,"click",Ze),x(Me,"gesturestart",Ve),x(Me,"gestureend",$e),x(p,d+"enter",Ke),x(p,d+"leave",Je),x(p,d+"move",Xe),Ee.isEnabled=Ee.isPressed=Ee.isDragging=!1,le&&le(Ee))},Ee.kill=Ee.revert=function(){Ee.disable();var e=b.indexOf(Ee);e>=0&&b.splice(e,1),f===Ee&&(f=0)},b.push(Ee),re&&C(p)&&(f=Ee),Ee.enable(F)},t=e,(i=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&n(t.prototype,i),p&&n(t,p),e}();F.version="3.14.2",F.create=function(e){return new F(e)},F.register=B,F.getAll=function(){return b.slice()},F.getById=function(e){return b.filter((function(t){return t.vars.id===e}))[0]},v()&&r.registerPlugin(F); /*! * ScrollTrigger 3.14.2 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */ var j,H,U,W,z,V,$,Y,G,X,K,J,Z,Q,ee,te,ie,ne,re,oe,ae,se,ce,le,ue,de,he,pe,fe,me,ge,ve,ye,be,we,Se,_e,Ee,Te=1,Ce=Date.now,Ae=Ce(),xe=0,Oe=0,Le=function(e,t,i){var n=Ue(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return i["_"+t+"Clamp"]=n,n?e.substr(6,e.length-7):e},ke=function(e,t){return!t||Ue(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"},Ie=function(){return Q=1},De=function(){return Q=0},Me=function(e){return e},Pe=function(e){return Math.round(1e5*e)/1e5||0},Ne=function(){return"undefined"!=typeof window},Re=function(){return j||Ne()&&(j=window.gsap)&&j.registerPlugin&&j},qe=function(e){return!!~$.indexOf(e)},Be=function(e){return("Height"===e?ge:U["inner"+e])||z["client"+e]||V["client"+e]},Fe=function(e){return T(e,"getBoundingClientRect")||(qe(e)?function(){return Ht.width=U.innerWidth,Ht.height=ge,Ht}:function(){return Qe(e)})},je=function(e,t){var i=t.s,n=t.d2,r=t.d,o=t.a;return Math.max(0,(i="scroll"+n)&&(o=T(e,i))?o()-Fe(e)()[r]:qe(e)?(z[i]||V[i])-Be(n):e[i]-e["offset"+n])},He=function(e,t){for(var i=0;i0){for(e-=r,o=0;o=e)return i[o];return i[o-1]}for(o=i.length,e+=r;o--;)if(i[o]<=e)return i[o];return i[0]}:function(i,n,r){void 0===r&&(r=.001);var o=t(i);return!n||Math.abs(o-i)i&&(n*=t/100),e=e.substr(0,i-1)),e=n+(e in lt?lt[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},dt=function(e,t,i,n,r,o,a,s){var c=r.startColor,l=r.endColor,u=r.fontSize,d=r.indent,h=r.fontWeight,p=W.createElement("div"),f=qe(i)||"fixed"===T(i,"pinType"),m=-1!==e.indexOf("scroller"),g=f?V:i,v=-1!==e.indexOf("start"),y=v?c:l,b="border-color:"+y+";font-size:"+u+";color:"+y+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return b+="position:"+((m||s)&&f?"fixed;":"absolute;"),(m||s||!f)&&(b+=(n===I?"right":"bottom")+":"+(o+parseFloat(d))+"px;"),a&&(b+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=b,p.innerText=t||0===t?e+"-"+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p["offset"+n.op.d2],ht(p,0,n,v),p},ht=function(e,t,i,n){var r={display:"block"},o=i[n?"os2":"p2"],a=i[n?"p2":"os2"];e._isFlipped=n,r[i.a+"Percent"]=n?-100:0,r[i.a]=n?"1px":0,r["border"+o+"Width"]=1,r["border"+a+"Width"]=0,r[i.p]=t+"px",j.set(e,r)},pt=[],ft={},mt=function(){return Ce()-xe>34&&(we||(we=requestAnimationFrame(Pt)))},gt=function(){(!ce||!ce.isPressed||ce.startX>V.clientWidth)&&(w.cache++,ce?we||(we=requestAnimationFrame(Pt)):Pt(),xe||_t("scrollStart"),xe=Ce())},vt=function(){de=U.innerWidth,ue=U.innerHeight},yt=function(e){w.cache++,(!0===e||!Z&&!se&&!W.fullscreenElement&&!W.webkitFullscreenElement&&(!le||de!==U.innerWidth||Math.abs(U.innerHeight-ue)>.25*U.innerHeight))&&Y.restart(!0)},bt={},wt=[],St=function e(){return ot(Gt,"scrollEnd",e)||It(!0)},_t=function(e){return bt[e]&&bt[e].map((function(e){return e()}))||wt},Et=[],Tt=function(e){for(var t=0;tt,n=e._startClamp&&e.start>=t;(i||n)&&e.setPositions(n?t-1:e.start,i?Math.max(n?t:e.start+1,t):e.end,!0)})),kt(!1),ye=0,i.forEach((function(e){return e&&e.render&&e.render(-1)})),w.forEach((function(e){We(e)&&(e.smooth&&requestAnimationFrame((function(){return e.target.style.scrollBehavior="smooth"})),e.rec&&e(e.rec))})),xt(fe,1),Y.pause(),Ot++,Se=2,Pt(2),pt.forEach((function(e){return We(e.vars.onRefresh)&&e.vars.onRefresh(e)})),Se=Gt.isRefreshing=!1,_t("refresh")}else rt(Gt,"scrollEnd",St)},Dt=0,Mt=1,Pt=function(e){if(2===e||!Se&&!ve){Gt.isUpdating=!0,Ee&&Ee.update(0);var t=pt.length,i=Ce(),n=i-Ae>=50,r=t&&pt[0].scroll();if(Mt=Dt>r?-1:1,Se||(Dt=r),n&&(xe&&!Q&&i-xe>200&&(xe=0,_t("scrollEnd")),K=Ae,Ae=i),Mt<0){for(te=t;te-- >0;)pt[te]&&pt[te].update(0,n);Mt=1}else for(te=0;te20),i-=i-w}if(p&&(s[p]=e||-.001,e<0&&(e=0)),o){var E=e+i,T=o._isStart;f="scroll"+n.d2,ht(o,E,n,T&&E>20||!T&&(u?Math.max(V[f],z[f]):o.parentNode[f])<=E+1),u&&(c=Qe(a),u&&(o.style[n.op.p]=c[n.op.p]-n.op.m-o._offset+Ke))}return h&&g&&(f=Qe(g),h.seek(d),m=Qe(g),h._caScrollDist=f[n.p]-m[n.p],e=e/h._caScrollDist*d),h&&h.seek(v),h?e:Math.round(e)},Wt=/(webkit|moz|length|cssText|inset)/i,zt=function(e,t,i,n){if(e.parentNode!==t){var r,o,a=e.style;if(t===V){for(r in e._stOrig=a.cssText,o=Je(e))+r||Wt.test(r)||!o[r]||"string"!=typeof a[r]||"0"===r||(a[r]=o[r]);a.top=i,a.left=n}else a.cssText=e._stOrig;j.core.getCache(e).uncache=1,t.appendChild(e)}},Vt=function(e,t,i){var n=t,r=n;return function(t){var o=Math.round(e());return o!==n&&o!==r&&Math.abs(o-n)>3&&Math.abs(o-r)>3&&(t=o,i&&i()),r=n,n=Math.round(t)}},$t=function(e,t,i){var n={};n[t.p]="+="+i,j.set(e,n)},Yt=function(e,t){var i=M(e,t),n="_scroll"+t.p2,r=function t(r,o,a,s,c){var l=t.tween,u=o.onComplete,d={};a=a||i();var h=Vt(i,a,(function(){l.kill(),t.tween=0}));return c=s&&c||0,s=s||r-a,l&&l.kill(),o[n]=r,o.inherit=!1,o.modifiers=d,d[n]=function(){return h(a+s*l.ratio+c*l.ratio*l.ratio)},o.onUpdate=function(){w.cache++,t.tween&&Pt()},o.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=j.to(e,o)};return e[n]=i,i.wheelHandler=function(){return r.tween&&r.tween.kill()&&(r.tween=0)},rt(e,"wheel",i.wheelHandler),Gt.isTouch&&rt(e,"touchmove",i.wheelHandler),r},Gt=function(){function e(t,i){H||e.register(j),pe(this),this.init(t,i)}return e.prototype.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Oe){var n,r,o,a,s,c,l,u,d,h,p,f,m,g,v,y,b,_,E,C,A,x,O,L,P,N,R,q,B,F,H,$,Y,J,ee,ie,ne,re,se,ce,le,ue,de=t=Ze(Ue(t)||ze(t)||t.nodeType?{trigger:t}:t,ct),he=de.onUpdate,pe=de.toggleClass,fe=de.id,me=de.onToggle,ge=de.onRefresh,ve=de.scrub,we=de.trigger,Ae=de.pin,Ie=de.pinSpacing,De=de.invalidateOnRefresh,Ne=de.anticipatePin,Re=de.onScrubComplete,He=de.onSnapComplete,nt=de.once,at=de.snap,lt=de.pinReparent,ht=de.pinSpacer,mt=de.containerAnimation,vt=de.fastScrollEnd,bt=de.preventOverlaps,wt=t.horizontal||t.containerAnimation&&!1!==t.horizontal?k:I,_t=!ve&&0!==ve,Et=D(t.scroller||U),Tt=j.core.getCache(Et),Ct=qe(Et),At="fixed"===("pinType"in t?t.pinType:T(Et,"pinType")||Ct&&"fixed"),xt=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],Lt=_t&&t.toggleActions.split(" "),kt="markers"in t?t.markers:ct.markers,Dt=Ct?0:parseFloat(Je(Et)["border"+wt.p2+"Width"])||0,Pt=this,Nt=t.onRefreshInit&&function(){return t.onRefreshInit(Pt)},Rt=function(e,t,i){var n=i.d,r=i.d2,o=i.a;return(o=T(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?Be(r):e["client"+r])||0}}(Et,Ct,wt),Bt=function(e,t){return!t||~S.indexOf(e)?Fe(e):function(){return Ht}}(Et,Ct),Wt=0,Vt=0,Gt=0,Xt=M(Et,wt);if(Pt._startClamp=Pt._endClamp=!1,Pt._dir=wt,Ne*=45,Pt.scroller=Et,Pt.scroll=mt?mt.time.bind(mt):Xt,a=Xt(),Pt.vars=t,i=i||t.animation,"refreshPriority"in t&&(oe=1,-9999===t.refreshPriority&&(Ee=Pt)),Tt.tweenScroll=Tt.tweenScroll||{top:Yt(Et,I),left:Yt(Et,k)},Pt.tweenTo=n=Tt.tweenScroll[wt.p],Pt.scrubDuration=function(e){(Y=ze(e)&&e)?$?$.duration(e):$=j.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Y,paused:!0,onComplete:function(){return Re&&Re(Pt)}}):($&&$.progress(1).kill(),$=0)},i&&(i.vars.lazy=!1,i._initted&&!Pt.isReverted||!1!==i.vars.immediateRender&&!1!==t.immediateRender&&i.duration()&&i.render(0,!0,!0),Pt.animation=i.pause(),i.scrollTrigger=Pt,Pt.scrubDuration(ve),F=0,fe||(fe=i.vars.id)),at&&(Ve(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in V.style&&j.set(Ct?[V,z]:Et,{scrollBehavior:"auto"}),w.forEach((function(e){return We(e)&&e.target===(Ct?W.scrollingElement||z:Et)&&(e.smooth=!1)})),o=We(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(e){return function(t){return j.utils.snap(tt(e),t)}}(i):"labelsDirectional"===at.snapTo?(ce=i,function(e,t){return it(tt(ce))(e,t.direction)}):!1!==at.directional?function(e,t){return it(at.snapTo)(e,Ce()-Vt<500?0:t.direction)}:j.utils.snap(at.snapTo),J=at.duration||{min:.1,max:2},J=Ve(J)?X(J.min,J.max):X(J,J),ee=j.delayedCall(at.delay||Y/2||.1,(function(){var e=Xt(),t=Ce()-Vt<500,r=n.tween;if(!(t||Math.abs(Pt.getVelocity())<10)||r||Q||Wt===e)Pt.isActive&&Wt!==e&&ee.restart(!0);else{var a,s,u=(e-c)/g,d=i&&!_t?i.totalProgress():u,h=t?0:(d-H)/(Ce()-K)*1e3||0,p=j.utils.clamp(-u,1-u,Ge(h/2)*h/.185),f=u+(!1===at.inertia?0:p),m=at,v=m.onStart,y=m.onInterrupt,b=m.onComplete;if(a=o(f,Pt),ze(a)||(a=f),s=Math.max(0,Math.round(c+a*g)),e<=l&&e>=c&&s!==e){if(r&&!r._initted&&r.data<=Ge(s-e))return;!1===at.inertia&&(p=a-u),n(s,{duration:J(Ge(.185*Math.max(Ge(f-d),Ge(a-d))/h/.05||0)),ease:at.ease||"power3",data:Ge(s-e),onInterrupt:function(){return ee.restart(!0)&&y&&y(Pt)},onComplete:function(){Pt.update(),Wt=Xt(),i&&!_t&&($?$.resetTo("totalProgress",a,i._tTime/i._tDur):i.progress(a)),F=H=i&&!_t?i.totalProgress():Pt.progress,He&&He(Pt),b&&b(Pt)}},e,p*g,s-e-p*g),v&&v(Pt,n.tween)}}})).pause()),fe&&(ft[fe]=Pt),(se=(we=Pt.trigger=D(we||!0!==Ae&&Ae))&&we._gsap&&we._gsap.stRevert)&&(se=se(Pt)),Ae=!0===Ae?we:D(Ae),Ue(pe)&&(pe={targets:we,className:pe}),Ae&&(!1===Ie||"margin"===Ie||(Ie=!(!Ie&&Ae.parentNode&&Ae.parentNode.style&&"flex"===Je(Ae.parentNode).display)&&Xe),Pt.pin=Ae,(r=j.core.getCache(Ae)).spacer?v=r.pinState:(ht&&((ht=D(ht))&&!ht.nodeType&&(ht=ht.current||ht.nativeElement),r.spacerIsNative=!!ht,ht&&(r.spacerState=jt(ht))),r.spacer=_=ht||W.createElement("div"),_.classList.add("pin-spacer"),fe&&_.classList.add("pin-spacer-"+fe),r.pinState=v=jt(Ae)),!1!==t.force3D&&j.set(Ae,{force3D:!0}),Pt.spacer=_=r.spacer,B=Je(Ae),L=B[Ie+wt.os2],C=j.getProperty(Ae),A=j.quickSetter(Ae,wt.a,Ke),qt(Ae,_,B),b=jt(Ae)),kt){f=Ve(kt)?Ze(kt,st):st,h=dt("scroller-start",fe,Et,wt,f,0),p=dt("scroller-end",fe,Et,wt,f,0,h),E=h["offset"+wt.op.d2];var Kt=D(T(Et,"content")||Et);u=this.markerStart=dt("start",fe,Kt,wt,f,E,0,mt),d=this.markerEnd=dt("end",fe,Kt,wt,f,E,0,mt),mt&&(re=j.quickSetter([u,d],wt.a,Ke)),At||S.length&&!0===T(Et,"fixedMarkers")||(ue=Je(le=Ct?V:Et).position,le.style.position="absolute"===ue||"fixed"===ue?ue:"relative",j.set([h,p],{force3D:!0}),N=j.quickSetter(h,wt.a,Ke),q=j.quickSetter(p,wt.a,Ke))}if(mt){var Jt=mt.vars.onUpdate,Zt=mt.vars.onUpdateParams;mt.eventCallback("onUpdate",(function(){Pt.update(0,0,1),Jt&&Jt.apply(mt,Zt||[])}))}if(Pt.previous=function(){return pt[pt.indexOf(Pt)-1]},Pt.next=function(){return pt[pt.indexOf(Pt)+1]},Pt.revert=function(e,t){if(!t)return Pt.kill(!0);var n=!1!==e||!Pt.enabled,r=Z;n!==Pt.isReverted&&(n&&(ie=Math.max(Xt(),Pt.scroll.rec||0),Gt=Pt.progress,ne=i&&i.progress()),u&&[u,d,h,p].forEach((function(e){return e.style.display=n?"none":"block"})),n&&(Z=Pt,Pt.update(n)),!Ae||lt&&Pt.isActive||(n?function(e,t,i){Ft(i);var n=e._gsap;if(n.spacerIsNative)Ft(n.spacerState);else if(e._gsap.swappedIn){var r=t.parentNode;r&&(r.insertBefore(e,t),r.removeChild(t))}e._gsap.swappedIn=!1}(Ae,_,v):qt(Ae,_,Je(Ae),P)),n||Pt.update(n),Z=r,Pt.isReverted=n)},Pt.refresh=function(r,o,f,w){if(!Z&&Pt.enabled||o)if(Ae&&r&&xe)rt(e,"scrollEnd",St);else{!Se&&Nt&&Nt(Pt),Z=Pt,n.tween&&!f&&(n.tween.kill(),n.tween=0),$&&$.pause(),De&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach((function(e){return e.vars.immediateRender&&e.render(0,!0,!0)})):i.vars.immediateRender&&i.render(0,!0,!0)),Pt.isReverted||Pt.revert(!0,!0),Pt._subPinOffset=!1;var S,E,T,A,L,N,q,B,F,H,U,Y,G,X=Rt(),K=Bt(),J=mt?mt.duration():je(Et,wt),Q=g<=.01||!g,te=0,re=w||0,oe=Ve(f)?f.end:t.end,se=t.endTrigger||we,ce=Ve(f)?f.start:t.start||(0!==t.start&&we?Ae?"0 0":"0 100%":0),le=Pt.pinnedContainer=t.pinnedContainer&&D(t.pinnedContainer,Pt),ue=we&&Math.max(0,pt.indexOf(Pt))||0,de=ue;for(kt&&Ve(f)&&(Y=j.getProperty(h,wt.p),G=j.getProperty(p,wt.p));de-- >0;)(N=pt[de]).end||N.refresh(0,1)||(Z=Pt),!(q=N.pin)||q!==we&&q!==Ae&&q!==le||N.isReverted||(H||(H=[]),H.unshift(N),N.revert(!0,!0)),N!==pt[de]&&(ue--,de--);for(We(ce)&&(ce=ce(Pt)),ce=Le(ce,"start",Pt),c=Ut(ce,we,X,wt,Xt(),u,h,Pt,K,Dt,At,J,mt,Pt._startClamp&&"_startClamp")||(Ae?-.001:0),We(oe)&&(oe=oe(Pt)),Ue(oe)&&!oe.indexOf("+=")&&(~oe.indexOf(" ")?oe=(Ue(ce)?ce.split(" ")[0]:"")+oe:(te=ut(oe.substr(2),X),oe=Ue(ce)?ce:(mt?j.utils.mapRange(0,mt.duration(),mt.scrollTrigger.start,mt.scrollTrigger.end,c):c)+te,se=we)),oe=Le(oe,"end",Pt),l=Math.max(c,Ut(oe||(se?"100% 0":J),se,X,wt,Xt()+te,d,p,Pt,K,Dt,At,J,mt,Pt._endClamp&&"_endClamp"))||-.001,te=0,de=ue;de--;)(q=(N=pt[de]||{}).pin)&&N.start-N._pinPush<=c&&!mt&&N.end>0&&(S=N.end-(Pt._startClamp?Math.max(0,N.start):N.start),(q===we&&N.start-N._pinPush=je(Et,wt)){if(we&&Xt()&&!mt)for(E=we.parentNode;E&&E!==V;)E._pinOffset&&(c-=E._pinOffset,l-=E._pinOffset),E=E.parentNode}else S=Je(Ae),A=wt===I,T=Xt(),x=parseFloat(C(wt.a))+re,!J&&l>1&&(U={style:U=(Ct?W.scrollingElement||z:Et).style,value:U["overflow"+wt.a.toUpperCase()]},Ct&&"scroll"!==Je(V)["overflow"+wt.a.toUpperCase()]&&(U.style["overflow"+wt.a.toUpperCase()]="scroll")),qt(Ae,_,S),b=jt(Ae),E=Qe(Ae,!0),B=At&&M(Et,A?k:I)(),Ie?((P=[Ie+wt.os2,g+re+Ke]).t=_,(de=Ie===Xe?et(Ae,wt)+g+re:0)&&(P.push(wt.d,de+Ke),"auto"!==_.style.flexBasis&&(_.style.flexBasis=de+Ke)),Ft(P),le&&pt.forEach((function(e){e.pin===le&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)})),At&&Xt(ie)):(de=et(Ae,wt))&&"auto"!==_.style.flexBasis&&(_.style.flexBasis=de+Ke),At&&((L={top:E.top+(A?T-c:B)+Ke,left:E.left+(A?B:T-c)+Ke,boxSizing:"border-box",position:"fixed"}).width=L.maxWidth=Math.ceil(E.width)+Ke,L.height=L.maxHeight=Math.ceil(E.height)+Ke,L.margin=L.marginTop=L.marginRight=L.marginBottom=L.marginLeft="0",L[Xe]=S[Xe],L[Xe+"Top"]=S[Xe+"Top"],L[Xe+"Right"]=S[Xe+"Right"],L[Xe+"Bottom"]=S[Xe+"Bottom"],L[Xe+"Left"]=S[Xe+"Left"],y=function(e,t,i){for(var n,r=[],o=e.length,a=i?8:0;a1,At&&R&&y.splice(y.length-2,2),i.render(0,!0,!0),F||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),ae(0)):O=g,U&&(U.value?U.style["overflow"+wt.a.toUpperCase()]=U.value:U.style.removeProperty("overflow-"+wt.a));H&&H.forEach((function(e){return e.revert(!1,!0)})),Pt.start=c,Pt.end=l,a=s=Se?ie:Xt(),mt||Se||(a0?pt.slice(0,t).reverse():pt.slice(t+1);return(Ue(e)?i.filter((function(t){return t.vars.preventOverlaps===e})):i).filter((function(e){return Pt.direction>0?e.end<=c:e.start>=l}))},Pt.update=function(e,t,r){if(!mt||r||e){var o,u,d,p,f,m,v,w=!0===Se?ie:Pt.scroll(),S=e?0:(w-c)/g,E=S<0?0:S>1?1:S||0,T=Pt.progress;if(t&&(s=a,a=mt?Xt():w,at&&(H=F,F=i&&!_t?i.totalProgress():E)),Ne&&Ae&&!Z&&!Te&&xe&&(!E&&cw+(w-s)/(Ce()-K)*Ne&&(E=.9999)),E!==T&&Pt.enabled){if(p=(f=(o=Pt.isActive=!!E&&E<1)!==(!!T&&T<1))||!!E!=!!T,Pt.direction=E>T?1:-1,Pt.progress=E,p&&!Z&&(u=E&&!T?0:1===E?1:1===T?2:3,_t&&(d=!f&&"none"!==Lt[u+1]&&Lt[u+1]||Lt[u],v=i&&("complete"===d||"reset"===d||d in i))),bt&&(f||v)&&(v||ve||!i)&&(We(bt)?bt(Pt):Pt.getTrailing(bt).forEach((function(e){return e.endAnimation()}))),_t||(!$||Z||Te?i&&i.totalProgress(E,!(!Z||!Vt&&!e)):($._dp._time-$._start!==$._time&&$.render($._dp._time-$._start),$.resetTo?$.resetTo("totalProgress",E,i._tTime/i._tDur):($.vars.totalProgress=E,$.invalidate().restart()))),Ae)if(e&&Ie&&(_.style[Ie+wt.os2]=L),At){if(p){if(m=!e&&E>T&&l+1>w&&w+1>=je(Et,wt),lt)if(e||!o&&!m)zt(Ae,_);else{var C=Qe(Ae,!0),k=w-c;zt(Ae,V,C.top+(wt===I?k:0)+Ke,C.left+(wt===I?0:k)+Ke)}Ft(o||m?y:b),R&&E<1&&o||A(x+(1!==E||m?0:O))}}else A(Pe(x+O*E));at&&!n.tween&&!Z&&!Te&&ee.restart(!0),pe&&(f||nt&&E&&(E<1||!be))&&G(pe.targets).forEach((function(e){return e.classList[o||nt?"add":"remove"](pe.className)})),he&&!_t&&!e&&he(Pt),p&&!Z?(_t&&(v&&("complete"===d?i.pause().totalProgress(1):"reset"===d?i.restart(!0).pause():"restart"===d?i.restart(!0):i[d]()),he&&he(Pt)),!f&&be||(me&&f&&Ye(Pt,me),xt[u]&&Ye(Pt,xt[u]),nt&&(1===E?Pt.kill(!1,1):xt[u]=0),f||xt[u=1===E?1:3]&&Ye(Pt,xt[u])),vt&&!o&&Math.abs(Pt.getVelocity())>(ze(vt)?vt:2500)&&($e(Pt.callbackAnimation),$?$.progress(1):$e(i,"reverse"===d?1:!E,1))):_t&&he&&!Z&&he(Pt)}if(q){var D=mt?w/mt.duration()*(mt._caScrollDist||0):w;N(D+(h._isFlipped?1:0)),q(D)}re&&re(-w/mt.duration()*(mt._caScrollDist||0))}},Pt.enable=function(t,i){Pt.enabled||(Pt.enabled=!0,rt(Et,"resize",yt),Ct||rt(Et,"scroll",gt),Nt&&rt(e,"refreshInit",Nt),!1!==t&&(Pt.progress=Gt=0,a=s=Wt=Xt()),!1!==i&&Pt.refresh())},Pt.getTween=function(e){return e&&n?n.tween:$},Pt.setPositions=function(e,t,i,n){if(mt){var r=mt.scrollTrigger,o=mt.duration(),a=r.end-r.start;e=r.start+a*e/o,t=r.start+a*t/o}Pt.refresh(!1,!1,{start:ke(e,i&&!!Pt._startClamp),end:ke(t,i&&!!Pt._endClamp)},n),Pt.update()},Pt.adjustPinSpacing=function(e){if(P&&e){var t=P.indexOf(wt.d)+1;P[t]=parseFloat(P[t])+e+Ke,P[1]=parseFloat(P[1])+e+Ke,Ft(P)}},Pt.disable=function(t,i){if(!1!==t&&Pt.revert(!0,!0),Pt.enabled&&(Pt.enabled=Pt.isActive=!1,i||$&&$.pause(),ie=0,r&&(r.uncache=1),Nt&&ot(e,"refreshInit",Nt),ee&&(ee.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!Ct)){for(var o=pt.length;o--;)if(pt[o].scroller===Et&&pt[o]!==Pt)return;ot(Et,"resize",yt),Ct||ot(Et,"scroll",gt)}},Pt.kill=function(e,n){Pt.disable(e,n),$&&!n&&$.kill(),fe&&delete ft[fe];var o=pt.indexOf(Pt);o>=0&&pt.splice(o,1),o===te&&Mt>0&&te--,o=0,pt.forEach((function(e){return e.scroller===Pt.scroller&&(o=1)})),o||Se||(Pt.scroll.rec=0),i&&(i.scrollTrigger=null,e&&i.revert({kill:!1}),n||i.kill()),u&&[u,d,h,p].forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),Ee===Pt&&(Ee=0),Ae&&(r&&(r.uncache=1),o=0,pt.forEach((function(e){return e.pin===Ae&&o++})),o||(r.spacer=0)),t.onKill&&t.onKill(Pt)},pt.push(Pt),Pt.enable(!1,!1),se&&se(Pt),i&&i.add&&!g){var Qt=Pt.update;Pt.update=function(){Pt.update=Qt,w.cache++,c||l||Pt.refresh()},j.delayedCall(.01,Pt.update),g=.01,c=l=0}else Pt.refresh();Ae&&function(){if(_e!==Ot){var e=_e=Ot;requestAnimationFrame((function(){return e===Ot&&It(!0)}))}}()}else this.update=this.refresh=this.kill=Me},e.register=function(t){return H||(j=t||Re(),Ne()&&window.document&&e.enable(),H=Oe),H},e.defaults=function(e){if(e)for(var t in e)ct[t]=e[t];return ct},e.disable=function(e,t){Oe=0,pt.forEach((function(i){return i[t?"kill":"disable"](e)})),ot(U,"wheel",gt),ot(W,"scroll",gt),clearInterval(J),ot(W,"touchcancel",Me),ot(V,"touchstart",Me),nt(ot,W,"pointerdown,touchstart,mousedown",Ie),nt(ot,W,"pointerup,touchend,mouseup",De),Y.kill(),He(ot);for(var i=0;i0&&n.left+r0&&n.top+r=0&&Et.splice(t,5),Et.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),j.core.getCache(e),pe())}})):Et},Gt.revert=function(e,t){return At(!e,t)},Gt.create=function(e,t){return new Gt(e,t)},Gt.refresh=function(e){return e?yt(!0):(H||Gt.register())&&It(!0)},Gt.update=function(e){return++w.cache&&Pt(!0===e?2:0)},Gt.clearScrollMemory=xt,Gt.maxScroll=function(e,t){return je(e,t?k:I)},Gt.getScrollFunc=function(e,t){return M(D(e),t?k:I)},Gt.getById=function(e){return ft[e]},Gt.getAll=function(){return pt.filter((function(e){return"ScrollSmoother"!==e.vars.id}))},Gt.isScrolling=function(){return!!xe},Gt.snapDirectional=it,Gt.addEventListener=function(e,t){var i=bt[e]||(bt[e]=[]);~i.indexOf(t)||i.push(t)},Gt.removeEventListener=function(e,t){var i=bt[e],n=i&&i.indexOf(t);n>=0&&i.splice(n,1)},Gt.batch=function(e,t){var i,n=[],r={},o=t.interval||.016,a=t.batchMax||1e9,s=function(e,t){var i=[],n=[],r=j.delayedCall(o,(function(){t(i,n),i=[],n=[]})).pause();return function(e){i.length||r.restart(!0),i.push(e.trigger),n.push(e),a<=i.length&&r.progress(1)}};for(i in t)r[i]="on"===i.substr(0,2)&&We(t[i])&&"onRefreshInit"!==i?s(0,t[i]):t[i];return We(a)&&(a=a(),rt(Gt,"refresh",(function(){return a=t.batchMax()}))),G(e).forEach((function(e){var t={};for(i in r)t[i]=r[i];t.trigger=e,n.push(Gt.create(t))})),n};var Xt,Kt=function(e,t,i,n){return t>n?e(n):t<0&&e(0),i>n?(n-t)/(i-t):i<0?t/(t-i):1},Jt=function e(t,i){!0===i?t.style.removeProperty("touch-action"):t.style.touchAction=!0===i?"auto":i?"pan-"+i+(F.isTouch?" pinch-zoom":""):"none",t===z&&e(V,i)},Zt={auto:1,scroll:1},Qt=function(e){var t,i=e.event,n=e.target,r=e.axis,o=(i.changedTouches?i.changedTouches[0]:i).target,a=o._gsap||j.core.getCache(o),s=Ce();if(!a._isScrollT||s-a._isScrollT>2e3){for(;o&&o!==V&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!Zt[(t=Je(o)).overflowY]&&!Zt[t.overflowX]);)o=o.parentNode;a._isScroll=o&&o!==n&&!qe(o)&&(Zt[(t=Je(o)).overflowY]||Zt[t.overflowX]),a._isScrollT=s}(a._isScroll||"x"===r)&&(i.stopPropagation(),i._gsapAllow=!0)},ei=function(e,t,i,n){return F.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&Qt,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return i&&rt(W,F.eventTypes[0],ii,!1,!0)},onDisable:function(){return ot(W,F.eventTypes[0],ii,!0)}})},ti=/(input|label|select|textarea)/i,ii=function(e){var t=ti.test(e.target.tagName);(t||Xt)&&(e._gsapAllow=!0,Xt=t)},ni=function(e){Ve(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,i,n,r,o,a,s,c,l=e,u=l.normalizeScrollX,d=l.momentum,h=l.allowNestedScroll,p=l.onRelease,f=D(e.target)||z,m=j.core.globals().ScrollSmoother,g=m&&m.get(),v=he&&(e.content&&D(e.content)||g&&!1!==e.content&&!g.smooth()&&g.content()),y=M(f,I),b=M(f,k),S=1,_=(F.isTouch&&U.visualViewport?U.visualViewport.scale*U.visualViewport.width:U.outerWidth)/U.innerWidth,E=0,T=We(d)?function(){return d(t)}:function(){return d||2.8},C=ei(f,e.type,!0,h),A=function(){return r=!1},x=Me,O=Me,L=function(){i=je(f,I),O=X(he?1:0,i),u&&(x=X(0,je(f,k))),n=Ot},P=function(){v._gsap.y=Pe(parseFloat(v._gsap.y)+y.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},N=function(){L(),o.isActive()&&o.vars.scrollY>i&&(y()>i?o.progress(1)&&y(i):o.resetTo("scrollY",i))};return v&&j.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return he&&"touchmove"===e.type&&function(){if(r){requestAnimationFrame(A);var e=Pe(t.deltaY/2),i=O(y.v-e);if(v&&i!==y.v+y.offset){y.offset=i-y.v;var n=Pe((parseFloat(v&&v._gsap.y)||0)-y.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",v._gsap.y=n+"px",y.cacheID=w.cache,Pt()}return!0}y.offset&&P(),r=!0}()||S>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){r=!1;var e=S;S=Pe((U.visualViewport&&U.visualViewport.scale||1)/_),o.pause(),e!==S&&Jt(f,S>1.01||!u&&"x"),a=b(),s=y(),L(),n=Ot},e.onRelease=e.onGestureStart=function(e,t){if(y.offset&&P(),t){w.cache++;var n,r,a=T();u&&(r=(n=b())+.05*a*-e.velocityX/.227,a*=Kt(b,n,r,je(f,k)),o.vars.scrollX=x(r)),r=(n=y())+.05*a*-e.velocityY/.227,a*=Kt(y,n,r,je(f,I)),o.vars.scrollY=O(r),o.invalidate().duration(a).play(.01),(he&&o.vars.scrollY>=i||n>=i-1)&&j.to({},{onUpdate:N,duration:a})}else c.restart(!0);p&&p(e)},e.onWheel=function(){o._ts&&o.pause(),Ce()-E>1e3&&(n=0,E=Ce())},e.onChange=function(e,t,i,r,o){if(Ot!==n&&L(),t&&u&&b(x(r[2]===t?a+(e.startX-e.x):b()+t-r[1])),i){y.offset&&P();var c=o[2]===i,l=c?s+e.startY-e.y:y()+i-o[1],d=O(l);c&&l!==d&&(s+=d-l),y(d)}(i||t)&&Pt()},e.onEnable=function(){Jt(f,!u&&"x"),Gt.addEventListener("refresh",N),rt(U,"resize",N),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=b.smooth=!1),C.enable()},e.onDisable=function(){Jt(f,!0),ot(U,"resize",N),Gt.removeEventListener("refresh",N),C.kill()},e.lockAxis=!1!==e.lockAxis,(t=new F(e)).iOS=he,he&&!y()&&y(1),he&&j.ticker.add(Me),c=t._dc,o=j.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Vt(y,y(),(function(){return o.pause()}))},onUpdate:Pt,onComplete:c.vars.onComplete}),t};Gt.sort=function(e){if(We(e))return pt.sort(e);var t=U.pageYOffset||0;return Gt.getAll().forEach((function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+U.innerHeight})),pt.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},Gt.observe=function(e){return new F(e)},Gt.normalizeScroll=function(e){if(void 0===e)return ce;if(!0===e&&ce)return ce.enable();if(!1===e)return ce&&ce.kill(),void(ce=e);var t=e instanceof F?e:ni(e);return ce&&ce.target===t.target&&ce.kill(),qe(t.target)&&(ce=t),t},Gt.core={_getVelocityProp:P,_inputObserver:ei,_scrollers:w,_proxies:S,bridge:{ss:function(){xe||_t("scrollStart"),xe=Ce()},ref:function(){return Z}}},Re()&&j.registerPlugin(Gt)},function(e,t,i){"use strict";i.d(t,"a",(function(){return T})); /*! * paths 3.14.2 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */ var n=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,r=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,o=Math.PI/180,a=(Math.PI,Math.sin),s=Math.cos,c=Math.abs,l=Math.sqrt,u=(Math.atan2,function(e){return"number"==typeof e}),d=function(e){return Math.round(1e5*e)/1e5||0},h=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function p(e,t,i,n,r,u,d,h,p){if(e!==h||t!==p){i=c(i),n=c(n);var f=r%360*o,m=s(f),g=a(f),v=Math.PI,y=2*v,b=(e-h)/2,w=(t-p)/2,S=m*b+g*w,_=-g*b+m*w,E=S*S,T=_*_,C=E/(i*i)+T/(n*n);C>1&&(i=l(C)*i,n=l(C)*n);var A=i*i,x=n*n,O=(A*x-A*T-x*E)/(A*T+x*E);O<0&&(O=0);var L=(u===d?-1:1)*l(O),k=L*(i*_/n),I=L*(-n*S/i),D=(e+h)/2+(m*k-g*I),M=(t+p)/2+(g*k+m*I),P=(S-k)/i,N=(_-I)/n,R=(-S-k)/i,q=(-_-I)/n,B=P*P+N*N,F=(N<0?-1:1)*Math.acos(P/l(B)),j=(P*q-N*R<0?-1:1)*Math.acos((P*R+N*q)/l(B*(R*R+q*q)));isNaN(j)&&(j=v),!d&&j>0?j-=y:d&&j<0&&(j+=y),F%=y,j%=y;var H,U=Math.ceil(c(j)/(y/4)),W=[],z=j/U,V=4/3*a(z/2)/(1+s(z/2)),$=m*i,Y=g*i,G=g*-n,X=m*n;for(H=0;H-1e-4?0:t})).match(n)||[],_=[],E=0,T=0,C=S.length,A=0,x=function(e,t,i,n){m=(i-e)/3,g=(n-t)/3,u.push(e+m,t+g,i-m,n-g,i,n)};if(!e||!isNaN(S[0])||isNaN(S[1]))return _;for(t=0;t.5||c(T-a)>.5)&&(x(E,T,o,a),"L"===s&&(t+=2)),E=o,T=a;else if("A"===s){if(b=S[t+4],w=S[t+5],m=S[t+6],g=S[t+7],i=7,b.length>1&&(b.length<3?(g=m,m=w,i--):(g=w,m=b.substr(2),i-=2),w=b.charAt(1),b=b.charAt(0)),v=p(E,T,+S[t+1],+S[t+2],+S[t+3],+b,+w,(l?E:0)+1*m,(l?T:0)+1*g),t+=i,v)for(i=0;il*(C*C+A*A)&&(h=u.length,e(t,i,p,f,b,w,E,T,l,u,d),e(E,T,S,_,v,y,s,c,l,u,d+1+(u.length-h))),u},T=function(){function e(e,t,i){v||b(),this.id=e,this.setData(t,i)}var t=e.prototype;return t.setData=function(e,t){t=t||{};var i,n,r,o,a,s,c,l,u,d=(e=e||"0,0,1,1").match(S),h=1,p=[],m=[],v=t.precision||1,y=v<=1;if(this.data=e,(_.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(d=f(e)[0]),4===(i=d.length))d.unshift(0,0),d.push(1,1),i=8;else if((i-2)%6)throw"Invalid CustomEase";for(0==+d[0]&&1==+d[i-2]||function(e,t,i){i||0===i||(i=Math.max(+e[e.length-1],+e[1]));var n,r=-1*+e[0],o=-i,a=e.length,s=1/(+e[a-2]+r),c=-t||(Math.abs(+e[a-1]-+e[1])<.01*(+e[a-2]-+e[0])?function(e){var t,i=e.length,n=1e20;for(t=1;tl.x||l.y!==c.y&&l.x===c.x||c===l)&&c.x<=1?(l.cx=c.x-l.x,l.cy=c.y-l.y,l.n=c,l.nx=c.x,y&&o>1&&Math.abs(l.cy/l.cx-p[o-2].cy/p[o-2].cx)>2&&(y=0),l.cx-1;)for(c=(s=e[h]).length,l=0;lu||o===l-1)&&(n.push(d,h),r=(c-h)/(s-d)),d=s,h=c;n="M"+n.join(",")}return b&&b.setAttribute("d",n),n},e}();T.version="3.14.2",T.headless=!0,y()&&g.registerPlugin(T)},function(e,t,i){"use strict";(function(e){var n=i(1),r=i(4),o=i(17);function a(e){return n.a.isPlainObject(e)||n.a.isArray(e)}function s(e){return n.a.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,i){return e?e.concat(t).map((function(e,t){return e=s(e),!i&&t?"["+e+"]":e})).join(i?".":""):t}const l=n.a.toFlatObject(n.a,{},null,(function(e){return/^is[A-Z]/.test(e)}));t.a=function(t,i,u){if(!n.a.isObject(t))throw new TypeError("target must be an object");i=i||new(o.a||FormData);const d=(u=n.a.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!n.a.isUndefined(t[e])}))).metaTokens,h=u.visitor||v,p=u.dots,f=u.indexes,m=(u.Blob||"undefined"!=typeof Blob&&Blob)&&n.a.isSpecCompliantForm(i);if(!n.a.isFunction(h))throw new TypeError("visitor must be a function");function g(t){if(null===t)return"";if(n.a.isDate(t))return t.toISOString();if(!m&&n.a.isBlob(t))throw new r.a("Blob is not supported. Use a Buffer instead.");return n.a.isArrayBuffer(t)||n.a.isTypedArray(t)?m&&"function"==typeof Blob?new Blob([t]):e.from(t):t}function v(e,t,r){let o=e;if(e&&!r&&"object"==typeof e)if(n.a.endsWith(t,"{}"))t=d?t:t.slice(0,-2),e=JSON.stringify(e);else if(n.a.isArray(e)&&function(e){return n.a.isArray(e)&&!e.some(a)}(e)||(n.a.isFileList(e)||n.a.endsWith(t,"[]"))&&(o=n.a.toArray(e)))return t=s(t),o.forEach((function(e,r){!n.a.isUndefined(e)&&null!==e&&i.append(!0===f?c([t],r,p):null===f?t:t+"[]",g(e))})),!1;return!!a(e)||(i.append(c(r,t,p),g(e)),!1)}const y=[],b=Object.assign(l,{defaultVisitor:v,convertValue:g,isVisitable:a});if(!n.a.isObject(t))throw new TypeError("data must be an object");return function e(t,r){if(!n.a.isUndefined(t)){if(-1!==y.indexOf(t))throw Error("Circular reference detected in "+r.join("."));y.push(t),n.a.forEach(t,(function(t,o){!0===(!(n.a.isUndefined(t)||null===t)&&h.call(i,t,n.a.isString(o)?o.trim():o,r,b))&&e(t,r?r.concat(o):[o])})),y.pop()}}(t),i}}).call(this,i(25).Buffer)},,function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){"use strict";function n(e){return"number"==typeof e}function r(e){return"string"==typeof e}function o(e){return"boolean"==typeof e}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){return Math.abs(e)}function c(e){return Math.sign(e)}function l(e,t){return s(e-t)}function u(e){return m(e).map(Number)}function d(e){return e[h(e)]}function h(e){return Math.max(0,e.length-1)}function p(e,t){return t===h(e)}function f(e,t=0){return Array.from(Array(e),(e,i)=>t+i)}function m(e){return Object.keys(e)}function g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function v(){let e=[];const t={add:function(i,n,r,o={passive:!0}){let a;if("addEventListener"in i)i.addEventListener(n,r,o),a=()=>i.removeEventListener(n,r,o);else{const e=i;e.addListener(r),a=()=>e.removeListener(r)}return e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function y(e,t,i,n){const r=v();let o=null,a=0,s=0;function c(e){if(!s)return;o||(o=e,i(),i());const r=e-o;for(o=e,a+=r;a>=1e3/60;)i(),a-=1e3/60;n(a/(1e3/60)),s&&(s=t.requestAnimationFrame(c))}function l(){t.cancelAnimationFrame(s),o=null,a=0,s=0}return{init:function(){r.add(e,"visibilitychange",()=>{e.hidden&&(o=null,a=0)})},destroy:function(){l(),r.clear()},start:function(){s||(s=t.requestAnimationFrame(c))},stop:l,update:i,render:n}}function b(e=0,t=0){const i=s(e-t);function n(t){return tt}function o(e){return n(e)||r(e)}return{length:i,max:t,min:e,constrain:function(i){return o(i)?n(i)?e:t:i},reachedAny:o,reachedMax:r,reachedMin:n,removeOffset:function(e){return i?e-i*Math.ceil((e-t)/i):e}}}function w(e,t,i,n,r,a,u,d,h,p,f,m,y,w,S,_,E,T,C){const{cross:A,direction:x}=e,O=["INPUT","SELECT","TEXTAREA"],L={passive:!1},k=v(),I=v(),D=b(50,225).constrain(w.measure(20)),M={mouse:300,touch:400},P={mouse:500,touch:600},N=S?43:25;let R=!1,q=0,B=0,F=!1,j=!1,H=!1,U=!1;function W(e){if(!g(e,n)&&e.touches.length>=2)return z(e);const t=a.readPoint(e),i=a.readPoint(e,A),o=l(t,q),s=l(i,B);if(!j&&!U){if(!e.cancelable)return z(e);if(j=o>s,!j)return z(e)}const c=a.pointerMove(e);o>_&&(H=!0),p.useFriction(.3).useDuration(.75),d.start(),r.add(x(c)),e.preventDefault()}function z(e){const t=f.byDistance(0,!1).index!==m.get(),i=a.pointerUp(e)*(S?P:M)[U?"mouse":"touch"],n=function(e,t){const i=m.add(-1*c(e)),n=f.byDistance(e,!S).distance;return S||s(e)=2,o&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return O.includes(t)}(e.target))return;F=!0,a.pointerDown(e),p.useFriction(0).useDuration(0),r.set(u),function(){const e=U?i:t;I.add(e,"touchmove",W,L).add(e,"touchend",z).add(e,"mousemove",W,L).add(e,"mouseup",z)}(),q=a.readPoint(e),B=a.readPoint(e,A),y.emit("pointerDown")}(s)}const c=t;k.add(c,"dragstart",e=>e.preventDefault(),L).add(c,"touchmove",()=>{},L).add(c,"touchend",()=>{}).add(c,"touchstart",s).add(c,"mousedown",s).add(c,"touchcancel",z).add(c,"contextmenu",z).add(c,"click",V,!0)},destroy:function(){k.clear(),I.clear()},pointerDown:function(){return F}}}function S(e,t){let i,n;function r(e){return e.timeStamp}function o(i,n){const r="client"+("x"===(n||e.scroll)?"X":"Y");return(g(i,t)?i:i.touches[0])[r]}return{pointerDown:function(e){return i=e,n=e,o(e)},pointerMove:function(e){const t=o(e)-o(n),a=r(e)-r(i)>170;return n=e,a&&(i=e),t},pointerUp:function(e){if(!i||!n)return 0;const t=o(n)-o(i),a=r(e)-r(i),c=r(e)-r(n)>170,l=t/a;return a&&!c&&s(l)>.1?l:0},readPoint:o}}function _(e,t,i,n,r,a,c){const l=[e].concat(n);let u,d,h=[],p=!1;function f(e){return r.measureSize(c.measure(e))}return{init:function(r){a&&(d=f(e),h=n.map(f),u=new ResizeObserver(i=>{(o(a)||a(r,i))&&function(i){for(const o of i){if(p)return;const i=o.target===e,a=n.indexOf(o.target),c=i?d:h[a];if(s(f(i?e:n[a])-c)>=.5){r.reInit(),t.emit("resize");break}}}(i)}),i.requestAnimationFrame(()=>{l.forEach(e=>u.observe(e))}))},destroy:function(){p=!0,u&&u.disconnect()}}}function E(e,t,i,n,r){const o=r.measure(10),a=r.measure(50),c=b(.1,.99);let l=!1;function u(){return!l&&(!!e.reachedAny(i.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:u,constrain:function(r){if(!u())return;const l=e.reachedMin(t.get())?"min":"max",d=s(e[l]-t.get()),h=i.get()-t.get(),p=c.constrain(d/a);i.subtract(h*p),!r&&s(h)e.add(r))}}}function C(e,t,i,n,r){const{reachedAny:o,removeOffset:a,constrain:l}=n;function u(e){return e.concat().sort((e,t)=>s(e)-s(t))[0]}function h(t,n){const r=[t,t+i,t-i];if(!e)return t;if(!n)return u(r);const o=r.filter(e=>c(e)===n);return o.length?u(o):d(r)-i}return{byDistance:function(i,n){const c=r.get()+i,{index:u,distance:d}=function(i){const n=e?a(i):l(i),r=t.map((e,t)=>({diff:h(e-n,0),index:t})).sort((e,t)=>s(e.diff)-s(t.diff)),{index:o}=r[0];return{index:o,distance:n}}(c),p=!e&&o(c);return!n||p?{index:u,distance:i}:{index:u,distance:i+h(t[u]-d,0)}},byIndex:function(e,i){return{index:e,distance:h(t[e]-r.get(),i)}},shortcut:h}}function A(e,t,i,r,a,s,c,l){const u={passive:!0,capture:!0};let d=0;function h(e){"Tab"===e.code&&(d=(new Date).getTime())}return{init:function(p){l&&(s.add(document,"keydown",h,!1),t.forEach((t,h)=>{s.add(t,"focus",t=>{(o(l)||l(p,t))&&function(t){if((new Date).getTime()-d>10)return;c.emit("slideFocusStart"),e.scrollLeft=0;const o=i.findIndex(e=>e.includes(t));n(o)&&(a.useDuration(0),r.index(o,0),c.emit("slideFocus"))}(h)},u)}))}}}function x(e){let t=e;function i(e){return n(e)?e:e.get()}return{get:function(){return t},set:function(e){t=i(e)},add:function(e){t+=i(e)},subtract:function(e){t-=i(e)}}}function O(e,t){const i="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style;let r=null,o=!1;return{clear:function(){o||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;const a=(s=e.direction(t),Math.round(100*s)/100);var s;a!==r&&(n.transform=i(a),r=a)},toggleActive:function(e){o=!e}}}function L(e,t,i,n,r,o,a,s,c){const l=u(r),d=u(r).reverse(),h=function(){const e=a[0];return m(f(d,e),i,!1)}().concat(function(){const e=t-a[0]-1;return m(f(l,e),-i,!0)}());function p(e,t){return e.reduce((e,t)=>e-r[t],t)}function f(e,t){return e.reduce((e,i)=>p(e,t)>0?e.concat([i]):e,[])}function m(r,a,l){const u=function(e){return o.map((i,r)=>({start:i-n[r]+.5+e,end:i+t-.5+e}))}(a);return r.map(t=>{const n=l?0:-i,r=l?i:0,o=l?"end":"start",a=u[t][o];return{index:t,loopPoint:a,slideLocation:x(-1),translate:O(e,c[t]),target:()=>s.get()>a?n:r}})}return{canLoop:function(){return h.every(({index:e})=>p(l.filter(t=>t!==e),t)<=.1)},clear:function(){h.forEach(e=>e.translate.clear())},loop:function(){h.forEach(e=>{const{target:t,translate:i,slideLocation:n}=e,r=t();r!==n.get()&&(i.to(r),n.set(r))})},loopPoints:h}}function k(e,t,i){let n,r=!1;return{init:function(a){i&&(n=new MutationObserver(e=>{r||(o(i)||i(a,e))&&function(e){for(const i of e)if("childList"===i.type){a.reInit(),t.emit("slidesChanged");break}}(e)}),n.observe(e,{childList:!0}))},destroy:function(){n&&n.disconnect(),r=!0}}}function I(e,t,i,n){const r={};let o,a=null,s=null,c=!1;return{init:function(){o=new IntersectionObserver(e=>{c||(e.forEach(e=>{const i=t.indexOf(e.target);r[i]=e}),a=null,s=null,i.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>o.observe(e))},destroy:function(){o&&o.disconnect(),c=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;const t=function(e){return m(r).reduce((t,i)=>{const n=parseInt(i),{isIntersecting:o}=r[n];return(e&&o||!e&&!o)&&t.push(n),t},[])}(e);return e&&(a=t),e||(s=t),t}}}function D(e,t,i,r,o,a,c,l,p){const{startEdge:f,endEdge:m,direction:g}=e,v=n(i);return{groupSlides:function(e){return v?function(e,t){return u(e).filter(e=>e%t==0).map(i=>e.slice(i,i+t))}(e,i):function(e){return e.length?u(e).reduce((i,n,u)=>{const v=d(i)||0,y=0===v,b=n===h(e),w=o[f]-a[v][f],S=o[f]-a[n][m],_=!r&&y?g(c):0,E=s(S-(!r&&b?g(l):0)-(w+_));return u&&E>t+p&&i.push(n),b&&i.push(e.length),i},[]).map((t,i,n)=>{const r=Math.max(n[i-1]||0);return e.slice(r,t)}):[]}(e)}}}function M(e,t,i,n,o,a,m){const{align:g,axis:M,direction:P,startIndex:N,loop:R,duration:q,dragFree:B,dragThreshold:F,inViewThreshold:j,slidesToScroll:H,skipSnaps:U,containScroll:W,watchResize:z,watchSlides:V,watchDrag:$,watchFocus:Y}=a,G={measure:function(e){const{offsetTop:t,offsetLeft:i,offsetWidth:n,offsetHeight:r}=e;return{top:t,right:i+n,bottom:t+r,left:i,width:n,height:r}}},X=G.measure(t),K=i.map(G.measure),J=function(e,t){const i="rtl"===t,n="y"===e,r=!n&&i?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":i?"right":"left",endEdge:n?"bottom":i?"left":"right",measureSize:function(e){const{height:t,width:i}=e;return n?t:i},direction:function(e){return e*r}}}(M,P),Z=J.measureSize(X),Q=function(e){return{measure:function(t){return e*(t/100)}}}(Z),ee=function(e,t){const i={start:function(){return 0},center:function(e){return n(e)/2},end:n};function n(e){return t-e}return{measure:function(n,o){return r(e)?i[e](n):e(t,n,o)}}}(g,Z),te=!R&&!!W,ie=R||!!W,{slideSizes:ne,slideSizesWithGaps:re,startGap:oe,endGap:ae}=function(e,t,i,n,r,o){const{measureSize:a,startEdge:c,endEdge:l}=e,u=i[0]&&r,h=function(){if(!u)return 0;const e=i[0];return s(t[c]-e[c])}(),f=function(){if(!u)return 0;const e=o.getComputedStyle(d(n));return parseFloat(e.getPropertyValue("margin-"+l))}(),m=i.map(a),g=i.map((e,t,i)=>{const n=!t,r=p(i,t);return n?m[t]+h:r?m[t]+f:i[t+1][c]-e[c]}).map(s);return{slideSizes:m,slideSizesWithGaps:g,startGap:h,endGap:f}}(J,X,K,i,ie,o),se=D(J,Z,H,R,X,K,oe,ae,2),{snaps:ce,snapsAligned:le}=function(e,t,i,n,r){const{startEdge:o,endEdge:a}=e,{groupSlides:c}=r,l=c(n).map(e=>d(e)[a]-e[0][o]).map(s).map(t.measure),u=n.map(e=>i[o]-e[o]).map(e=>-s(e)),h=c(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:h}}(J,ee,X,K,se),ue=-d(ce)+d(re),{snapsContained:de,scrollContainLimit:he}=function(e,t,i,n,r){const o=b(-t+e,0),a=i.map((e,t)=>{const{min:n,max:r}=o,a=o.constrain(e),s=!t,l=p(i,t);return s?r:l||c(n,a)?n:c(r,a)?r:a}).map(e=>parseFloat(e.toFixed(3))),s=function(){const e=a[0],t=d(a),i=a.lastIndexOf(e),n=a.indexOf(t)+1;return b(i,n)}();function c(e,t){return l(e,t)<=1}return{snapsContained:function(){if(t<=e+r)return[o.max];if("keepSnaps"===n)return a;const{min:i,max:c}=s;return a.slice(i,c)}(),scrollContainLimit:s}}(Z,ue,le,W,2),pe=te?de:le,{limit:fe}=function(e,t,i){const n=t[0];return{limit:b(i?n-e:d(t),n)}}(ue,pe,R),me=function e(t,i,n){const{constrain:r}=b(0,t),o=t+1;let a=c(i);function c(e){return n?s((o+e)%o):r(e)}function l(){return a}function u(){return e(t,l(),n)}const d={get:l,set:function(e){return a=c(e),d},add:function(e){return u().set(l()+e)},clone:u};return d}(h(pe),N,R),ge=me.clone(),ve=u(i),ye=y(n,o,()=>(({dragHandler:e,scrollBody:t,scrollBounds:i,options:{loop:n}})=>{n||i.constrain(e.pointerDown()),t.seek()})(De),e=>(({scrollBody:e,translate:t,location:i,offsetLocation:n,previousLocation:r,scrollLooper:o,slideLooper:a,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},h)=>{const p=e.settled(),f=!u.shouldConstrain(),m=d?p:p&&f,g=m&&!s.pointerDown();g&&c.stop();const v=i.get()*h+r.get()*(1-h);n.set(v),d&&(o.loop(e.direction()),a.loop()),t.to(n.get()),g&&l.emit("settle"),m||l.emit("scroll")})(De,e)),be=pe[me.get()],we=x(be),Se=x(be),_e=x(be),Ee=x(be),Te=function(e,t,i,n,r,o){let a=0,l=0,u=r,d=o,h=e.get(),p=0;function f(e){return u=e,g}function m(e){return d=e,g}const g={direction:function(){return l},duration:function(){return u},velocity:function(){return a},seek:function(){const t=n.get()-e.get();let r=0;return!u?(a=0,i.set(n),e.set(n),r=t):(i.set(e),a+=t/u,a*=d,h+=a,e.add(a),r=h-p),l=c(r),p=h,g},settled:function(){return s(n.get()-t.get())<.001},useBaseFriction:function(){return m(o)},useBaseDuration:function(){return f(r)},useFriction:m,useDuration:f};return g}(we,_e,Se,Ee,q,.68),Ce=C(R,pe,ue,fe,Ee),Ae=function(e,t,i,n,r,o,a){function s(r){const s=r.distance,c=r.index!==t.get();o.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(i.set(t.get()),t.set(r.index),a.emit("select"))}return{distance:function(e,t){s(r.byDistance(e,t))},index:function(e,i){const n=t.clone().set(e);s(r.byIndex(n.get(),i))}}}(ye,me,ge,Te,Ce,Ee,m),xe=function(e){const{max:t,length:i}=e;return{get:function(e){return i?(e-t)/-i:0}}}(fe),Oe=v(),Le=I(t,i,m,j),{slideRegistry:ke}=function(e,t,i,n,r,o){const{groupSlides:a}=r,{min:s,max:c}=n;return{slideRegistry:function(){const n=a(o),r=!e||"keepSnaps"===t;return 1===i.length?[o]:r?n:n.slice(s,c).map((e,t,i)=>{const n=!t,r=p(i,t);if(n){return f(d(i[0])+1)}if(r){return f(h(o)-d(i)[0]+1,d(i)[0])}return e})}()}}(te,W,pe,he,se,ve),Ie=A(e,i,ke,Ae,Te,Oe,m,Y),De={ownerDocument:n,ownerWindow:o,eventHandler:m,containerRect:X,slideRects:K,animation:ye,axis:J,dragHandler:w(J,e,n,o,Ee,S(J,o),we,ye,Ae,Te,Ce,me,m,Q,B,F,U,.68,$),eventStore:Oe,percentOfView:Q,index:me,indexPrevious:ge,limit:fe,location:we,offsetLocation:_e,previousLocation:Se,options:a,resizeHandler:_(t,m,o,i,J,z,G),scrollBody:Te,scrollBounds:E(fe,_e,Ee,Te,Q),scrollLooper:T(ue,fe,_e,[we,_e,Se,Ee]),scrollProgress:xe,scrollSnapList:pe.map(xe.get),scrollSnaps:pe,scrollTarget:Ce,scrollTo:Ae,slideLooper:L(J,Z,ue,ne,re,ce,pe,_e,i),slideFocus:Ie,slidesHandler:k(t,m,V),slidesInView:Le,slideIndexes:ve,slideRegistry:ke,slidesToScroll:se,target:Ee,translate:O(J,t)};return De}i.d(t,"a",(function(){return R}));const P={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function N(e){function t(e,t){return function e(t,i){return[t,i].reduce((t,i)=>(m(i).forEach(n=>{const r=t[n],o=i[n],s=a(r)&&a(o);t[n]=s?e(r,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(i){const n=i.breakpoints||{},r=m(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,i)=>t(e,i),{});return t(i,r)},optionsMediaQueries:function(t){return t.map(e=>m(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}function R(e,t,i){const n=e.ownerDocument,o=n.defaultView,a=N(o),s=function(e){let t=[];return{init:function(i,n){return t=n.filter(({options:t})=>!1!==e.optionsAtMedia(t).active),t.forEach(t=>t.init(i,e)),n.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}}}(a),c=v(),l=function(){let e,t={};function i(e){return t[e]||[]}const n={init:function(t){e=t},emit:function(t){return i(t).forEach(i=>i(e,t)),n},off:function(e,r){return t[e]=i(e).filter(e=>e!==r),n},on:function(e,r){return t[e]=i(e).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:h}=a,{on:p,off:f,emit:m}=l,g=x;let y,b,w,S,_=!1,E=u(P,R.globalOptions),T=u(E),C=[];function A(t,i){_||(E=u(E,t),T=d(E),C=i||C,function(){const{container:t,slides:i}=T,n=r(t)?e.querySelector(t):t;w=n||e.children[0];const o=r(i)?w.querySelectorAll(i):i;S=[].slice.call(o||w.children)}(),y=function t(i){const r=M(e,w,S,n,o,i,l);if(i.loop&&!r.slideLooper.canLoop()){return t(Object.assign({},i,{loop:!1}))}return r}(T),h([E,...C.map(({options:e})=>e)]).forEach(e=>c.add(e,"change",x)),T.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(I),y.eventHandler.init(I),y.resizeHandler.init(I),y.slidesHandler.init(I),y.options.loop&&y.slideLooper.loop(),w.offsetParent&&S.length&&y.dragHandler.init(I),b=s.init(I,C)))}function x(e,t){const i=k();O(),A(u({startIndex:i},e),t),l.emit("reInit")}function O(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),s.destroy(),c.clear()}function L(e,t,i){T.active&&!_&&(y.scrollBody.useBaseFriction().useDuration(!0===t?0:T.duration),y.scrollTo.index(e,i||0))}function k(){return y.index.get()}const I={canScrollNext:function(){return y.index.add(1).get()!==k()},canScrollPrev:function(){return y.index.add(-1).get()!==k()},containerNode:function(){return w},internalEngine:function(){return y},destroy:function(){_||(_=!0,c.clear(),O(),l.emit("destroy"),l.clear())},off:f,on:p,emit:m,plugins:function(){return b},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:g,rootNode:function(){return e},scrollNext:function(e){L(y.index.add(1).get(),e,-1)},scrollPrev:function(e){L(y.index.add(-1).get(),e,1)},scrollProgress:function(){return y.scrollProgress.get(y.offsetLocation.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:L,selectedScrollSnap:k,slideNodes:function(){return S},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return A(t,i),setTimeout(()=>l.emit("init"),0),I}R.globalOptions=void 0},function(e,t,i){"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";t.a=null},function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));const n=new RegExp(["alexa","bot","crawl(er|ing)","facebookexternalhit","feedburner","google web preview","nagios","postrank","pingdom","slurp","spider","teoma","yahoo","yandex","gptbot","chatgpt-user","oai-searchbot","claudebot","perplexitybot","google-extended","meta-external","amazonbot","bingbot","applebot","petalbot","lighthouse"].join("|"),"i"),r="undefined"!=typeof window&&null!==new URLSearchParams(window.location.search).get("isLighthouse"),o="undefined"!=typeof navigator&&n.test(navigator.userAgent)||r},,function(e,t){var i,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,l=[],u=!1,d=-1;function h(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var i=1;i`[data-profile-selector-select="${e}"] select`;function d(e){var t,i;const n=e.choiceList;if(!(null==n?void 0:n.element))return;const r=[...n.element.children].filter(e=>void 0!==e.dataset.choiceSelectable&&void 0===e.dataset.choiceDisabled&&!e.classList.contains("choices__placeholder"));if(r.length<=1){const n=null!==(i=null===(t=r[0])||void 0===t?void 0:t.dataset.value)&&void 0!==i?i:"";e.setChoiceByValue(n),e.disable()}else e.enable()}function h(e){var t;return(null!==(t=e.languages)&&void 0!==t?t:[]).filter(e=>{var t;return(null===(t=e.profiles)||void 0===t?void 0:t.length)&&e.profiles.some(e=>!e.unavailable)})}function p(e){const{profileId:t,country:i}=e;if(!t)return[];return h(i).filter(e=>e.profiles.some(e=>e.id===t&&!e.unavailable))}function f(e){return{countries:e.countries.map(e=>{var t;return Object.assign(Object.assign({},e),{languages:(null!==(t=e.languages)&&void 0!==t?t:[]).map(t=>{var i;return Object.assign(Object.assign({},t),{profiles:(null!==(i=t.profiles)&&void 0!==i?i:[]).map(t=>{var i;return Object.assign(Object.assign({},t),{entirelyUnavailable:(null!==(i=e.languages)&&void 0!==i?i:[]).flatMap(e=>{var i;return(null!==(i=e.profiles)&&void 0!==i?i:[]).filter(e=>e.id===t.id)}).every(e=>!!e.fallback||!!e.unavailable)})})})})})})}}function m(e,t,i){if(!e.length)return{choices:[],preselectedId:null};const n=e.map(e=>i.mapChoice(e)),r=new Set(t.map(e=>e.id));if(!t.length){let t=null;return i.preselectLoneCandidate&&1===e.length&&(t=e[0].id),{choices:n,preselectedId:t}}const o=n.filter(e=>r.has(String(e.value))),a=n.filter(e=>!r.has(String(e.value))),s={label:"",value:"",choices:a},c={label:"fallback",value:"fallback",choices:o};let l=null;return i.preselectLoneCandidate&&(1===a.length?l=String(a[0].value):0===a.length&&1===o.length&&(l=String(o[0].value))),{choices:[s,c],preselectedId:l}}function g(e){const{languages:t,preferredIds:i,currentId:n}=e;if(!(null==t?void 0:t.length))return"";if(1===t.length)return t[0].id;if(n&&t.some(e=>e.id===n))return n;for(const e of i)if(e&&t.some(t=>t.id===e))return e;const r=t.find(e=>!0===e.default);return r?r.id:t[0].id}class v{constructor(e,t){this.selectedProfile={location:"",language:"",profile:""},this.lastlyUserSelectedLanguageId="",this.element=e,this.options=t}get cookieProfileName(){return this.element.getAttribute("data-compliance-wall-cookie-profile")||"pictet-profile"}get cookieLanguageName(){return this.element.getAttribute("data-compliance-wall-cookie-language")||void 0}get ignoredSlugs(){const e=this.element.getAttribute("data-compliance-wall-ignored-slugs")||"";return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}get preferredLanguageIds(){var e;const t="undefined"!=typeof navigator&&navigator.language||"",i=t?t.split("-")[0]:"",n=this.cookieLanguageName&&null!==(e=a.a.get(this.cookieLanguageName))&&void 0!==e?e:"",r=this.getInitialSelection();return[this.lastlyUserSelectedLanguageId,r.language,n,t,i].filter(Boolean)}getSavedContext(){var e,t;const i=null!==(e=a.a.get(this.cookieProfileName))&&void 0!==e?e:"",[n="",r=""]=i.split(",").map(e=>e.trim());return{location:n,profile:r,language:this.cookieLanguageName&&null!==(t=a.a.get(this.cookieLanguageName))&&void 0!==t?t:""}}getInitialSelection(){var e,t,i,n,r,o;const a="undefined"!=typeof document?document.documentElement:null,s=null!==(t=null===(e=null==a?void 0:a.dataset)||void 0===e?void 0:e.country)&&void 0!==t?t:"",c=null!==(n=null===(i=null==a?void 0:a.dataset)||void 0===i?void 0:i.profile)&&void 0!==n?n:"",l=this.getSavedContext(),u=(null!==(o=null===(r=null==a?void 0:a.dataset)||void 0===r?void 0:r.language)&&void 0!==o?o:"")||l.language;return{location:s||l.location||"",profile:c||l.profile||"",language:u}}handleInitialRedirect(){var e,t,i,n,r;if(this.options.withinModal)return;if("undefined"==typeof document||"undefined"==typeof window)return;const o=null!==(e=document.documentElement.dataset.country)&&void 0!==e?e:"",a=null!==(t=document.documentElement.dataset.profile)&&void 0!==t?t:"";if(!(null!==(i=document.documentElement.dataset.complianceLevel)&&void 0!==i?i:"")||a)return;const s=this.getSavedContext();if(!s.location||!s.profile)return;if(s.location!==o)return;const c=this.configData.countries.find(e=>e.id===s.location),l=null!==(n=document.documentElement.dataset.language)&&void 0!==n?n:"",u=null==c?void 0:c.languages.find(e=>e.id===l),d=null==u?void 0:u.profiles.find(e=>e.id===s.profile);if(!d||d.fallback)return;const h=null===(r=d.url)||void 0===r?void 0:r.trim();if(!h)return;const p=new URL(h,window.location.origin).pathname;if(!this.shouldRedirect({targetPath:p,currentPath:window.location.pathname}))return;const f=new URL(window.location.toString());f.pathname=p,window.location.replace(f)}updateMismatchMessage(){var e,t;const i=this.element.querySelector("[data-compliance-message-mismatch]");if(!i)return;const n="undefined"!=typeof document&&null!==(e=document.documentElement.dataset.country)&&void 0!==e?e:"",r="undefined"!=typeof document&&null!==(t=document.documentElement.dataset.profile)&&void 0!==t?t:"",o=this.getSavedContext(),a=!(!o.location||!o.profile||o.location===n&&o.profile===r);i.classList.toggle("is-visible",a)}updateTermsCheckbox(){var e;const t=this.element.querySelector("form"),i=null==t?void 0:t.querySelector('input[type="checkbox"]');if(!i)return;const n="undefined"!=typeof document&&null!==(e=document.documentElement.dataset.country)&&void 0!==e?e:"",r=this.getSavedContext();i.checked=!!r.location&&r.location===n}init(){return l(this,void 0,void 0,(function*(){yield this.loadConfig(),this.handleInitialRedirect(),this.setupChoicesAndListeners();const e=this.resolveInitialSelection();this.updateTermsCheckbox(),this.applyInitialSelection(e),this.updateMismatchMessage()}))}loadConfig(){return l(this,void 0,void 0,(function*(){const e=this.element.getAttribute("data-profile-selector-config-json"),t=this.element.getAttribute("data-profile-selector-config-url");if(e)this.configData=f(JSON.parse(e));else{if(!t)throw new Error("PAM profile selector: No config (data-profile-selector-config-json or data-profile-selector-config-url) defined");{const e=yield fetch(t);this.configData=f(yield e.json())}}}))}setupChoicesAndListeners(){var e;const t=this.element.querySelector("form"),i=this.element.querySelector(u("location")),n=this.element.querySelector(u("investor-profile")),r=this.element.querySelector(u("language"));if(!(t&&i&&n&&r))return;const o=Object.values(t).filter(e=>{var t;return"checkbox"===(null===(t=null==e?void 0:e.getAttribute)||void 0===t?void 0:t.call(e,"type"))}),a=this.element.querySelector("button[type='submit']"),s=(null===(e=i.closest("[data-search-placeholder]"))||void 0===e?void 0:e.getAttribute("data-search-placeholder"))||void 0,l=this.configData.countries.filter(e=>function(e){var t;const i=null!==(t=e.languages)&&void 0!==t?t:[];return i.length>0&&i.every(e=>{var t;return(null!==(t=e.profiles)&&void 0!==t?t:[]).every(e=>e.fallback||e.unavailable)})}(e)),f=m(this.configData.countries,l,{preselectLoneCandidate:!1,mapChoice:e=>({label:e.name,value:e.id,customProperties:{country:e}})}).choices,v=new c.a(i,{searchEnabled:!0,searchPlaceholderValue:s,fuseOptions:{threshold:0},choices:f,allowHTML:!1}),y=new c.a(n,{searchEnabled:!1,allowHTML:!1,shouldSort:!1}),b=new c.a(r,{searchEnabled:!1,allowHTML:!1});y.disable(),b.disable(),this.locationChoices=v,this.profileChoices=y,this.languageChoices=b;const w=()=>{var e,t;if(!([i,n,r].every(e=>!!(null==e?void 0:e.value))&&o.every(e=>null==e?void 0:e.checked)))return void(a&&(a.disabled=!0));if(this.options.withinModal)return void(a&&(a.disabled=!1));const s=this.getSavedContext();s.location===this.selectedProfile.location&&s.profile===this.selectedProfile.profile&&(void 0===s.language||s.language===this.selectedProfile.language)?(null===(e=null==a?void 0:a.classList)||void 0===e||e.add("acacias--disabled"),a&&(a.disabled=!0)):(null===(t=null==a?void 0:a.classList)||void 0===t||t.remove("acacias--disabled"),a&&(a.disabled=!1))};i.addEventListener("choice",e=>{var t,i,n,r,o,a,s,c;const l=null==e?void 0:e.detail;if(!(null==l?void 0:l.value))return;this.selectedProfile.location=l.value;const u=this.configData.countries.find(e=>e.id===l.value);if(!u)return;const d=h(u),f=g({languages:d,preferredIds:this.preferredLanguageIds,currentId:this.getInitialSelection().language});this.setLanguageOptions({country:u,selectedLanguageId:f,profileId:this.selectedProfile.profile});const m=this.selectedProfile.profile&&d.flatMap(e=>e.profiles).some(e=>e.id===this.selectedProfile.profile)?this.selectedProfile.profile:"",v=f||(null!==(i=null===(t=d[0])||void 0===t?void 0:t.id)&&void 0!==i?i:""),y=this.setProfileOptions({country:u,languageId:f,selectedProfileId:m||this.getFirstProfileId({country:u,languageId:v})});this.selectedProfile.profile=y,this.setLanguageOptions({country:u,selectedLanguageId:v,profileId:y,filterByProfile:!0});const b=p({profileId:y,country:u}),S=b.some(e=>e.id===v)?v:null!==(r=null===(n=b[0])||void 0===n?void 0:n.id)&&void 0!==r?r:v;this.selectedProfile.language=S,this.updateLanguageChoice(S),this.updateProfileChoice(y),this.updateTermsUrl(null===(o=u.languages.find(e=>e.id===v))||void 0===o?void 0:o.termsUrl),this.updateFallbackMessage(null!==(c=null===(s=null===(a=this.getSelectedProfileObj())||void 0===a?void 0:a.profile)||void 0===s?void 0:s.fallback)&&void 0!==c&&c),w(),window.dispatchEvent(new CustomEvent("profile-selector.choice"))}),n.addEventListener("choice",e=>{var t,i,n,r;const o=null==e?void 0:e.detail;if(!(null==o?void 0:o.value))return;this.selectedProfile.profile=o.value;const a=this.configData.countries.find(e=>e.id===this.selectedProfile.location);if(a){const e=p({profileId:o.value,country:a}),n=g({languages:e,preferredIds:this.preferredLanguageIds,currentId:this.selectedProfile.language})||(null===(t=e[0])||void 0===t?void 0:t.id);this.setLanguageOptions({country:a,selectedLanguageId:n,profileId:o.value,filterByProfile:!0}),this.selectedProfile.language=null!=n?n:"",this.updateLanguageChoice(n),this.updateTermsUrl(null===(i=a.languages.find(e=>e.id===n))||void 0===i?void 0:i.termsUrl)}const s=null===(n=this.getSelectedProfileObj())||void 0===n?void 0:n.profile;this.updateFallbackMessage(null!==(r=null==s?void 0:s.fallback)&&void 0!==r&&r),w(),window.dispatchEvent(new CustomEvent("profile-selector.choice"))}),r.addEventListener("choice",e=>{var t,i,n,r,o,a,s;const c=null==e?void 0:e.detail;if(!(null==c?void 0:c.value))return;this.lastlyUserSelectedLanguageId=c.value,this.selectedProfile.language=c.value;const l=this.configData.countries.find(e=>e.id===this.selectedProfile.location);if(l){const e=this.setProfileOptions({country:l,languageId:c.value,selectedProfileId:this.selectedProfile.profile}),u=l.languages.find(e=>e.id===c.value),d=null===(t=null==u?void 0:u.profiles)||void 0===t?void 0:t.some(t=>t.id===e&&!t.unavailable);this.selectedProfile.profile=d?e:null!==(s=null!==(r=null===(n=null===(i=null==u?void 0:u.profiles)||void 0===i?void 0:i.find(e=>!e.unavailable))||void 0===n?void 0:n.id)&&void 0!==r?r:null===(a=null===(o=null==u?void 0:u.profiles)||void 0===o?void 0:o[0])||void 0===a?void 0:a.id)&&void 0!==s?s:e,this.updateProfileChoice(this.selectedProfile.profile),this.updateTermsUrl(null==u?void 0:u.termsUrl)}w(),window.dispatchEvent(new CustomEvent("profile-selector.choice"))}),i.addEventListener("showDropdown",()=>{v.clearInput()}),t.addEventListener("change",w),null==a||a.addEventListener("click",e=>{e.preventDefault(),a.classList.contains("acacias--disabled")||this.handleSubmit()}),d(v),w()}getFirstProfileId(e){var t,i,n,r;const{country:o,languageId:a}=e,s=o.languages.find(e=>e.id===a),c=null!==(i=null===(t=null==s?void 0:s.profiles)||void 0===t?void 0:t.find(e=>!e.unavailable))&&void 0!==i?i:null===(n=null==s?void 0:s.profiles)||void 0===n?void 0:n[0];return null!==(r=null==c?void 0:c.id)&&void 0!==r?r:""}setLanguageOptions(e){const{country:t,profileId:i,filterByProfile:n=!1}=e;let r=h(t);n&&i&&(r=p({profileId:i,country:t}));const o=r.filter(e=>function(e,t){var i;const n=null!==(i=e.profiles)&&void 0!==i?i:[];if(n.length&&n.every(e=>e.fallback||e.unavailable||e.entirelyUnavailable))return!0;if(t){const e=n.find(e=>e.id===t);if(e&&(e.fallback||e.unavailable||e.entirelyUnavailable))return!0}return!1}(e,i)),{choices:a}=m(r,o,{preselectLoneCandidate:!1,mapChoice:e=>({label:e.name,value:e.id,customProperties:{language:e}})});this.clearChoices({instance:this.languageChoices,newValues:a}),this.languageChoices.enable()}setProfileOptions(e){var t;const{country:i,languageId:n,selectedProfileId:r}=e,o=i.languages.find(e=>e.id===n),a=null!==(t=null==o?void 0:o.profiles)&&void 0!==t?t:[],s=a.filter(e=>!(!e.fallback&&!e.entirelyUnavailable)),{choices:c,preselectedId:l}=m(a,s,{preselectLoneCandidate:!0,mapChoice:e=>({label:e.name,value:e.id,customProperties:{profile:e}})});return this.clearChoices({instance:this.profileChoices,newValues:c}),this.profileChoices.enable(),l||(1===a.length?a[0].id:r)}updateLanguageChoice(e){e&&this.languageChoices.setChoiceByValue(e),d(this.languageChoices)}updateProfileChoice(e){e&&this.profileChoices.setChoiceByValue(e),d(this.profileChoices)}clearChoices(e){const{instance:t,newValues:i=[]}=e,n=t._placeholderValue;t.clearStore(),t.setChoices([...i,{value:"",label:null!=n?n:"Please select an option",placeholder:!0}]),t.setChoiceByValue("")}resolveInitialSelection(){var e,t,i,n,r,o,a,s,c,l;const u=this.getInitialSelection();if(!u.location)return{location:"",language:null!==(e=u.language)&&void 0!==e?e:"",profile:null!==(t=u.profile)&&void 0!==t?t:""};const d=null===(n=null===(i=this.configData)||void 0===i?void 0:i.countries)||void 0===n?void 0:n.find(e=>e.id===u.location);if(!d)return{location:u.location,language:null!==(r=u.language)&&void 0!==r?r:"",profile:null!==(o=u.profile)&&void 0!==o?o:""};const p=h(d),f=g({languages:p,preferredIds:this.preferredLanguageIds,currentId:u.language}),m=f?p.find(e=>e.id===f):p[0],v=u.profile&&m?m.profiles.find(e=>e.id===u.profile):void 0;return{location:u.location,language:null!==(s=null!==(a=null==m?void 0:m.id)&&void 0!==a?a:u.language)&&void 0!==s?s:"",profile:null!==(l=null!==(c=null==v?void 0:v.id)&&void 0!==c?c:u.profile)&&void 0!==l?l:""}}applyInitialSelection(e){var t;const i=this.element.querySelector(u("location")),n=this.element.querySelector(u("investor-profile")),r=this.element.querySelector(u("language"));if(!i||!n||!r)return;const o=this.configData.countries.find(t=>t.id===e.location);if(!o)return;this.selectedProfile.location=e.location,this.setLanguageOptions({country:o,selectedLanguageId:e.language,profileId:e.profile});const a=this.setProfileOptions({country:o,languageId:e.language,selectedProfileId:e.profile});this.locationChoices.setChoiceByValue(e.location),this.languageChoices.setChoiceByValue(e.language),this.profileChoices.setChoiceByValue(a),d(this.locationChoices),d(this.languageChoices),d(this.profileChoices),this.selectedProfile.language=e.language,this.selectedProfile.profile=a;const s=o.languages.find(t=>t.id===e.language);this.updateTermsUrl(null==s?void 0:s.termsUrl);const c=o.languages.flatMap(e=>e.profiles).find(e=>e.id===a);this.updateFallbackMessage(null!==(t=null==c?void 0:c.fallback)&&void 0!==t&&t);const l=this.element.querySelector("form");null==l||l.dispatchEvent(new Event("change"))}getSelectedProfileObj(){var e,t,i,n;const{location:r,language:o,profile:a}=this.selectedProfile,s=null===(t=null===(e=this.configData)||void 0===e?void 0:e.countries)||void 0===t?void 0:t.find(e=>e.id===r),c=null===(i=null==s?void 0:s.languages)||void 0===i?void 0:i.find(e=>e.id===o),l=null===(n=null==c?void 0:c.profiles)||void 0===n?void 0:n.find(e=>e.id===a);return s&&c?{country:s,language:c,profile:l}:null}handleSubmit(){var e;const{location:t,language:i,profile:n}=this.selectedProfile;a.a.set(this.cookieProfileName,[t,n].join(","),{expires:365}),this.cookieLanguageName&&a.a.set(this.cookieLanguageName,i,{expires:365});const r=this.getSelectedProfileObj();let o="";if(null==r?void 0:r.profile){const t=null===(e=r.profile.url)||void 0===e?void 0:e.trim();t?o=new URL(t,"undefined"!=typeof window?window.location.origin:"").pathname:"undefined"!=typeof window&&window.location&&(o=`/${r.country.id}/${r.language.id}/${r.profile.id}`,o=new URL(o,window.location.origin).pathname)}const s=this.handleRedirect(o);s||(this.updateMismatchMessage(),this.updateTermsCheckbox()),this.options.onContinue({isRedirecting:s}),window.dispatchEvent(new CustomEvent("profile-selector.continue"))}shouldRedirect(e){const{targetPath:t,currentPath:i}=e;if(!t||i===t)return!1;for(const e of this.ignoredSlugs){const n=`/${e}/`;if(i.includes(n)){const e=i.split(n)[0]+n;if(t.startsWith(e))return!1}}return!0}handleRedirect(e){if("undefined"==typeof location)return!1;const t=location.pathname;if(!this.shouldRedirect({targetPath:e,currentPath:t}))return!1;const i=new URL(location.toString());return i.pathname=e,location.replace(i),!0}updateTermsUrl(e){const t=this.element.querySelector("[data-compliance-terms-link]");t&&(t.href=null!=e?e:t.href)}updateFallbackMessage(e){const t=this.element.querySelector("[data-compliance-message-fallback]");t&&t.classList.toggle("is-visible",e)}}var y=i(7),b=i(8);const w=r.a.create("custom","M0,0 C0.242,0.414 0.136,0.735 0.384,0.912 0.524,1.012 0.968,1 1,1 "),S="pictet-profile";function _(e){return e instanceof Element&&!!e.closest("#onetrust-consent-sdk")}function E(e){const t=document.querySelector("#onetrust-consent-sdk");return t?[e,t]:[e]}class T{constructor(){this.config=null,this.complianceWrapper=null,this.complianceToolbar=null,this.complianceDrawer=null,this.state="closed",this.lastScrollY=0,this.toolbarHeight=0,this.animating=!1,this.modalInstance=null,this.modalOverlay=null,this.modalFocusTrap=null,this.openByDefault=!1,this.throttledOnScroll=function(e,t){let i=0;return(...n)=>{const r=Date.now();r-i>=t&&(i=r,e(...n))}}(()=>this.onScroll(),100)}get profileCookieName(){var e,t;return(null===(t=null===(e=this.complianceWrapper)||void 0===e?void 0:e.dataset.complianceWallCookieProfile)||void 0===t?void 0:t.trim())||S}get languageCookieName(){var e,t;return(null===(t=null===(e=this.complianceWrapper)||void 0===e?void 0:e.dataset.complianceWallCookieLanguage)||void 0===t?void 0:t.trim())||void 0}hasBypassParameter(){var e,t;const i=null===(t=null===(e=this.complianceWrapper)||void 0===e?void 0:e.dataset.complianceWallBypassQuery)||void 0===t?void 0:t.trim();if(!i)return!1;const n=i.split("&").reduce((e,t)=>{if(!t)return e;const[i,n]=t.split("=").map(e=>(e||"").trim());return i?(e[i]=n?n.split(",").map(e=>e.trim()):[""],e):e},{}),r=new URLSearchParams("undefined"!=typeof location?location.search:"");return Object.entries(n).some(([e,t])=>{const i=r.get(e);return null!==i&&t.includes(i)})}verifyAndApplyState(){var e,t,i,n,r;const o=document.documentElement,c=null!==(e=o.dataset.country)&&void 0!==e?e:"",l=null!==(t=o.dataset.profile)&&void 0!==t?t:"",u=(null!==(i=o.dataset.complianceLevel)&&void 0!==i?i:"").toLowerCase(),d=null!==(n=a.a.get(this.profileCookieName))&&void 0!==n?n:"",[h="",p=""]=d.split(",").map(e=>e.trim()),f=h!==c||p!==l,m=this.hasBypassParameter(),g=!s.a&&f&&("inline"===u||"modal"===u),v="inline"===u,y="modal"===u,b=!(v||y),w=g&&v||m,S=g&&y&&!m,_="true"===(null===(r=this.complianceWrapper)||void 0===r?void 0:r.dataset.complianceWallCollapsed),E=w&&!m&&!_;this.openByDefault=E,o.removeAttribute("data-compliance-wall-active"),o.removeAttribute("data-compliance-wall-use-inline"),o.removeAttribute("data-compliance-wall-use-modal"),o.removeAttribute("data-compliance-wall-disabled"),b?o.setAttribute("data-compliance-wall-disabled",""):g&&(o.setAttribute("data-compliance-wall-active",""),w?o.setAttribute("data-compliance-wall-use-inline",""):S&&o.setAttribute("data-compliance-wall-use-modal","")),S&&this.createModal(),E&&requestAnimationFrame(()=>{this.openDrawer(!0)})}init(e){if(this.config=e,this.complianceWrapper=e.container.querySelector(".acacias--compliance-wall"),this.complianceToolbar=e.container.querySelector(".acacias--compliance-wall-toolbar"),this.complianceDrawer=e.container.querySelector(".acacias--compliance-wall-drawer"),!this.complianceWrapper||!this.complianceToolbar||!this.complianceDrawer)return!1;this.verifyAndApplyState(),this.updateScrollPosition(),this.complianceToolbar.addEventListener("click",()=>{"open"===this.state?this.closeDrawer():"closed"===this.state&&this.openDrawer()}),setTimeout(()=>{this.updateScrollPosition(),window.addEventListener("scroll",this.throttledOnScroll,{passive:!0})},300),window.addEventListener("resize",this.onResize),this.onResize();return new v(this.complianceWrapper,{onContinue:({isRedirecting:e})=>{e||this.verifyAndApplyState()}}).init(),window.addEventListener("disclaimer-modal.refuse",()=>{this.verifyAndApplyState()}),!0}hide(){if(!this.complianceWrapper||"hidden"===this.state)return;this.updateScrollPosition();const e="open"===this.state;this.state="hidden",this.complianceWrapper.inert=!0;const t=this.complianceWrapper.clientHeight;n.a.to(this.complianceWrapper,{opacity:0,duration:.25,ease:"power2.out"}),n.a.fromTo(this.complianceWrapper,{height:t},{height:0,borderBottomWidth:0,duration:.5,ease:w,overwrite:"auto",overflow:"clip",onStart:()=>{this.animating=!0},onComplete:()=>{var t;this.animating=!1,e&&(n.a.set(this.complianceDrawer,{height:0,overflow:"clip"}),this.complianceDrawer.inert=!0,this.complianceToolbar.setAttribute("aria-expanded","false")),this.updateScrollPosition(),null===(t=this.config)||void 0===t||t.updateHeaderSpacer()},onUpdate:()=>{var e;null===(e=this.config)||void 0===e||e.updateHeaderSpacer()}})}show(){if(!this.complianceWrapper||"hidden"!==this.state)return;this.updateScrollPosition(),this.complianceWrapper.inert=!1;const e=this.openByDefault,t=this.complianceWrapper.clientHeight;e&&this.restoreOpenDrawer(),n.a.set(this.complianceWrapper,{height:"unset",overwrite:"auto"});const i=this.complianceWrapper.clientHeight;this.state=e?"open":"closed",n.a.fromTo(this.complianceWrapper,{height:t},{height:i,opacity:1,duration:.5,ease:w,borderBottomWidth:1,overwrite:"auto",overflow:"clip",onStart:()=>{this.animating=!0},onComplete:()=>{n.a.set(this.complianceWrapper,{height:"auto",overflow:"visible"}),this.animating=!1,this.updateScrollPosition()},onUpdate:()=>{var e;null===(e=this.config)||void 0===e||e.updateHeaderSpacer()}})}onScroll(){var e;if(!this.complianceWrapper||this.animating||(null===(e=this.config)||void 0===e?void 0:e.isHeaderExpanded()))return;if(document.documentElement.classList.contains(y.a))return;if(document.documentElement.hasAttribute("data-compliance-wall-disabled"))return;if(document.documentElement.hasAttribute("data-compliance-wall-active"))return;const t=this.toolbarHeight,i=window.scrollYdocument.body.scrollHeight-window.innerHeight-t,r=window.scrollY-this.lastScrollY,o=r>t;if(Math.abs(r)>t||i||n){this.updateScrollPosition();o&&!i||n&&!i?this.hide():this.show()}}onResize(){var e,t,i;this.toolbarHeight=null!==(i=null===(t=null===(e=this.complianceToolbar)||void 0===e?void 0:e.getBoundingClientRect())||void 0===t?void 0:t.height)&&void 0!==i?i:50}restoreOpenDrawer(){this.complianceDrawer&&this.complianceToolbar&&(this.complianceDrawer.inert=!1,this.complianceToolbar.setAttribute("aria-expanded","true"),n.a.set(this.complianceDrawer,{height:"unset",overflow:"visible"}),n.a.set(this.complianceDrawer.querySelectorAll(".acacias--compliance-wall-drawer-content > *"),{opacity:1}))}openDrawer(e=!1){var t;if(!this.complianceDrawer||!this.complianceToolbar)return;if(this.state="open",this.complianceDrawer.inert=!1,this.complianceToolbar.setAttribute("aria-expanded","true"),e)return n.a.set(this.complianceDrawer,{height:"unset",overflow:"visible"}),this.updateScrollPosition(),void(null===(t=this.config)||void 0===t||t.updateHeaderSpacer());n.a.set(this.complianceDrawer,{height:"auto",overflow:"hidden"});const i=this.complianceDrawer.clientHeight;n.a.fromTo(this.complianceDrawer,{height:0,overflow:"clip"},{height:i,duration:.5,ease:w,overwrite:"auto",onStart:()=>{this.animating=!0},onComplete:()=>{n.a.set(this.complianceDrawer,{height:"unset",overflow:"visible"}),this.animating=!1,this.updateScrollPosition()},onUpdate:()=>{var e;null===(e=this.config)||void 0===e||e.updateHeaderSpacer()}});const r=this.complianceDrawer.querySelectorAll(".acacias--compliance-wall-drawer-content > *");n.a.fromTo(r,{opacity:0},{opacity:1,duration:.5,ease:w,stagger:.05,delay:.1,overwrite:"auto"})}closeDrawer(){if(!this.complianceDrawer||!this.complianceToolbar)return;this.complianceToolbar.setAttribute("aria-expanded","false"),this.complianceDrawer.inert=!0,this.state="closed";const e=this.complianceDrawer.clientHeight;n.a.fromTo(this.complianceDrawer,{height:e,overflow:"clip"},{height:0,duration:.3,ease:w,overwrite:"auto",onStart:()=>{this.animating=!0},onComplete:()=>{this.animating=!1,this.updateScrollPosition()},onUpdate:()=>{var e;null===(e=this.config)||void 0===e||e.updateHeaderSpacer()}});const t=this.complianceDrawer.querySelectorAll(".acacias--compliance-wall-drawer-content > *");n.a.to(t,{opacity:0,duration:.15,ease:w,overwrite:"auto"})}updateScrollPosition(){this.lastScrollY=window.scrollY}createModal(){var e,t,i,n,r,o,a;if(!this.complianceWrapper||!this.complianceToolbar||!this.complianceDrawer)return;const s=null!==(e=document.querySelector("#root"))&&void 0!==e?e:document.body;if(this.modalInstance){s.appendChild(this.modalInstance),s.appendChild(this.modalOverlay),null===(t=this.modalFocusTrap)||void 0===t||t.updateContainerElements(E(this.modalInstance)),null===(i=this.modalFocusTrap)||void 0===i||i.activate(),y.b.getInstance().block();const e=this.modalInstance.querySelector('input[type="checkbox"]'),n=this.modalInstance.querySelector("form");return void(e&&n&&(e.checked=!1,n.dispatchEvent(new Event("change"))))}const c=document.createElement("div");c.classList.add("acacias--disclaimer","acacias--compliance-wall-modal"),c.setAttribute("role","dialog"),c.setAttribute("aria-modal","true");const l=document.createElement("div");l.classList.add("acacias--disclaimer-ins");const u=document.createElement("div");u.classList.add("acacias--overlay-bg","acacias--compliance-wall-modal");const d=document.createElement("div");d.classList.add("acacias--disclaimer-photo");const h=this.complianceWrapper.dataset.complianceWallModalBackgroundUrl;if(h){const e=document.createElement("img");e.src=h,e.setAttribute("style","position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;"),d.appendChild(e)}const p=document.createElement("div");p.classList.add("acacias--disclaimer-container");const f=this.complianceWrapper.querySelector(".acacias--compliance-wall-drawer-content").cloneNode(!0);f.querySelectorAll("[id]").forEach(e=>{const t=e.getAttribute("id");t&&e.setAttribute("id",t+"-modal")}),f.querySelectorAll("[for]").forEach(e=>{const t=e.getAttribute("for");t&&e.setAttribute("for",t+"-modal")}),p.appendChild(f),l.appendChild(d),l.appendChild(p),c.appendChild(l),c.dataset.profileSelectorConfigUrl=null!==(n=this.complianceWrapper.dataset.profileSelectorConfigUrl)&&void 0!==n?n:"",c.dataset.complianceWallCookieProfile=null!==(r=this.complianceWrapper.dataset.complianceWallCookieProfile)&&void 0!==r?r:"",c.dataset.complianceWallCookieLanguage=null!==(o=this.complianceWrapper.dataset.complianceWallCookieLanguage)&&void 0!==o?o:"",c.dataset.complianceWallIgnoredSlugs=null!==(a=this.complianceWrapper.dataset.complianceWallIgnoredSlugs)&&void 0!==a?a:"";const m=y.b.getInstance(),g=Object(b.a)(c,{allowOutsideClick:e=>_(e.target),setReturnFocus:e=>!_(e)&&e});new v(c,{withinModal:!0,onContinue:({isRedirecting:e})=>{var t;m.unblock(),null===(t=this.modalFocusTrap)||void 0===t||t.deactivate(),this.modalInstance&&this.modalOverlay&&(this.modalInstance.remove(),this.modalOverlay.remove()),e||this.verifyAndApplyState()}}).init(),s.appendChild(c),s.appendChild(u),this.modalInstance=c,this.modalOverlay=u,this.modalFocusTrap=g,setTimeout(()=>{m.block(),g.activate()},100),setTimeout(()=>{g.updateContainerElements(E(c))},1e3)}}},function(e,t,i){},function(e,t,i){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(r.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(r.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i(24),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,i(14))},function(e,t,i){(function(e,t){!function(e,i){"use strict";if(!e.setImmediate){var n,r,o,a,s,c=1,l={},u=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){f(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,i=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=i,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){f(e.data)},n=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,n=function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(f,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&f(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i * @license MIT */ var n=i(26),r=i(27),o=i(28);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return H(e).length;default:if(n)return j(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,i);case"utf8":case"utf-8":return A(this,t,i);case"ascii":return x(this,t,i);case"latin1":case"binary":return O(this,t,i);case"base64":return C(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function v(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:y(e,t,i,n,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):y(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,i,n,r){var o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,i/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(o=i;os&&(i=s-c),o=i;o>=0;o--){for(var d=!0,h=0;hr&&(n=r):n=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,r=i%256,o.push(r),o.push(n);return o}(t,e.length-i),e,i,n)}function C(e,t,i){return 0===t&&i===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,i))}function A(e,t,i){i=Math.min(e.length,i);for(var n=[],r=t;r239?4:l>223?3:l>191?2:1;if(r+d<=i)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[r+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var i="",n=0;for(;n0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),""},c.prototype.compare=function(e,t,i,n,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(n,r),u=e.slice(t,i),d=0;dr)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,i);case"utf8":case"utf-8":return w(this,e,t,i);case"ascii":return S(this,e,t,i);case"latin1":case"binary":return _(this,e,t,i);case"base64":return E(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;rn)&&(i=n);for(var r="",o=t;oi)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,i,n,r,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function M(e,t,i,n){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-i,2);r>>8*(n?r:1-r)}function P(e,t,i,n){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-i,4);r>>8*(n?r:3-r)&255}function N(e,t,i,n,r,o){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function R(e,t,i,n,o){return o||N(e,0,i,4),r.write(e,t,i,n,23,4),i+4}function q(e,t,i,n,o){return o||N(e,0,i,8),r.write(e,t,i,n,52,8),i+8}c.prototype.slice=function(e,t){var i,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(r*=256);)n+=this[e+--t]*r;return n},c.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||I(e,t,this.length);for(var n=this[e],r=1,o=0;++o=(r*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||I(e,t,this.length);for(var n=t,r=1,o=this[e+--n];n>0&&(r*=256);)o+=this[e+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,i,n){(e=+e,t|=0,i|=0,n)||D(this,e,t,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+r]=e/o&255;return t+i},c.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);D(this,e,t,i,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+i},c.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);D(this,e,t,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},c.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,i){return R(this,e,t,!0,i)},c.prototype.writeFloatBE=function(e,t,i){return R(this,e,t,!1,i)},c.prototype.writeDoubleLE=function(e,t,i){return q(this,e,t,!0,i)},c.prototype.writeDoubleBE=function(e,t,i){return q(this,e,t,!1,i)},c.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--r)e[r+t]=this[r+i];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function H(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,i,n){for(var r=0;r=t.length||r>=e.length);++r)t[r+i]=e[r];return r}}).call(this,i(14))},function(e,t,i){"use strict";t.byteLength=function(e){var t=l(e),i=t[0],n=t[1];return 3*(i+n)/4-n},t.toByteArray=function(e){var t,i,n=l(e),a=n[0],s=n[1],c=new o(function(e,t,i){return 3*(t+i)/4-i}(0,a,s)),u=0,d=s>0?a-4:a;for(i=0;i>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,c[u++]=255&t);1===s&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,o=[],a=0,s=i-r;as?s:a+16383));1===r?(t=e[i-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function u(e,t,i){for(var r,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ t.read=function(e,t,i,n,r){var o,a,s=8*r-n-1,c=(1<>1,u=-7,d=i?r-1:0,h=i?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,i,n,r,o){var a,s,c,l=8*o-r-1,u=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[i+p]=255&s,p+=f,s/=256,r-=8);for(a=a<0;e[i+p]=255&a,p+=f,a/=256,l-=8);e[i+p-f]|=128*m}},function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},function(e,t){function i(e){const t=document.querySelector("form.acacias--subscribe-form");if(t){const e=t.getAttribute("data-form-analytics-tracking-name");"true"===new URL(window.location.href).searchParams.get("success")&&e&&(window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"formsubmission",form:{name:e}}))}}"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)},,,function(e,t,i){"use strict";i.r(t);var n=i(0),r=(i(22),i(2));var o={id:["en","fr","de","it","es","zh-hans","zh-hant"],switzerland:["Switzerland","Suisse","Schweiz","Svizzera","Suiza","瑞士","瑞士"],basel:["Basel","Bâle ","Basel","Basilea ","Basilea","巴塞尔","巴塞爾"],geneva:["Geneva","Genève","Genf ","Ginevra ","Ginebra","日内瓦","日內瓦"],lausanne:["Lausanne","Lausanne","Lausanne","Losanna ","Lausana","洛桑","洛桑"],zurich:["Zurich","Zurich","Zürich","Zurigo ","Zurich","苏黎世","蘇黎世"],europe:["Europe","Europe","Europa","Europa","Europa","欧洲","歐洲"],amsterdam:["Amsterdam","Amsterdam","Amsterdam","Amsterdam","Amsterdam","阿姆斯特丹","阿姆斯特丹"],barcelona:["Barcelona","Barcelone","Barcelona","Barcellona ","Barcelona","巴塞罗那","巴塞隆拿"],brussels:["Brussels","Bruxelles ","Brüssel","Bruxelles","Bruselas","布鲁塞尔","布魯塞爾"],frankfurt:["Frankfurt","Francfort ","Frankfurt","Francoforte","Fráncfort","法兰克福","法蘭克福"],lisbon:["Lisbon","Lisbonne","Lissabon","Lisbona","Lisboa","里斯本","里斯本"],london:["London","Londres","London","Londra ","Londres","伦敦","倫敦"],luxembourg:["Luxembourg","Luxembourg","Luxemburg ","Lussemburgo","Luxemburgo","卢森堡","盧森堡"],madrid:["Madrid","Madrid","Madrid","Madrid","Madrid","马德里","馬德里"],milan:["Milan","Milan","Mailand ","Milano","Milán","米兰","米蘭"],monaco:["Monaco","Monaco","Monaco","Monaco","Mónaco","摩纳哥","摩納哥"],munich:["Munich","Munich","München","Monaco di Baveria","Munich","慕尼黑","慕尼黑"],paris:["Paris","Paris","Paris","Parigi ","París","巴黎","巴黎"],rome:["Rome","Rome","Rom ","Roma ","Roma","罗马","羅馬"],stuttgart:["Stuttgart","Stuttgart","Stuttgart","Stoccarda","Stuttgart","斯图加特","斯圖加特"],turin:["Turin","Turin","Turin","Torino ","Túrin","都灵","都靈"],verona:["Verona","Vérone ","Verona","Verona","Verona","维罗纳","維羅納"],asia:["Asia","Asie","Asien ","Asia","Asia","亚洲","亞洲"],"hong-kong":["Hong Kong","Hong Kong","Hongkong","Hong Kong","Hong Kong","香港","香港"],osaka:["Osaka","Osaka","Osaka","Osaka","Osaka","大阪","大阪"],shanghai:["Shanghai","Shanghai","Schanghai","Shanghai","Shanghái","上海","上海"],singapore:["Singapore","Singapour","Singapur","Singapore","Singapur","新加坡","新加坡"],taipei:["Taipei","Taipei","Taipeh ","Taipei","Taipéi","台北","台北"],tokyo:["Tokyo ","Tokyo ","Tokio ","Tokyo ","Tokio ","东京","東京"],"middle-east":["Middle East","Moyen-Orient","Nahost","Oriente Medio","Oriente Medio","中东","中東"],dubai:["Dubai","Dubaï","Dubai","Dubai","Dubai","迪拜","杜拜"],"tel-aviv":["Tel Aviv","Tel-Aviv","Tel Aviv","Tel Aviv","Tel Aviv","特拉维夫","特拉維夫"],americas:["Americas","Amérique du Nord","Nordamerika","America del Nord","América del Norte","美洲","美洲"],montreal:["Montreal","Montréal ","Montreal","Montreale ","Montreal","蒙特利尔","蒙特利爾"],nassau:["Nassau","Nassau","Nassau","Nassau","Nassau","拿索","拿索"],"new-york":["New York","New York","New York","New York","Nueva York","纽约","紐約"]};var a=class{static localizeSVG(e,t){const i=Array.from(e.querySelectorAll(".acacias--svg-map-city")),n=o.id.findIndex(e=>e==t);n<0||i.forEach(e=>{const t=e.getAttribute("data-id");if(!t)return;const i=o[t];try{const t=i[n],r=e.querySelector("tspan");null!==r&&(r.textContent=t)}catch(e){}})}static getLocalizedCityName(e,t){const i=o.id.findIndex(e=>e==t);if(i<0)return;return o[e][i]}};class s{constructor(e){this.isBoxOpen=!1,this.currentBoxId=null,e&&e.element&&(this.config=e,this.init(e),window.bm_map=this)}init(e){e.element.removeAttribute("data-"+s.NS+"-is"),n.a.to("#bm--ruler",{alpha:"0.2",ease:"none",duration:5}),this.initCities(e),this.fetchCitiesData()}initCities(e){const t=e.element,i=e.element.getAttribute("data-acacias-mode"),o=e.element.getAttribute("data-acacias-lang")||"en",s=t.querySelector(".acacias--map-popup"),c=t.querySelector(".acacias--map-popup-texts");this.popupDisplay={title:s.querySelector(".acacias--map-popup-title h5"),addr1:s.querySelector(".acacias--map-popup-address1 .cmp-text"),addr2:s.querySelector(".acacias--map-popup-address2 .cmp-text"),link:s.querySelector(".js-map-popup-learn-more"),btnClose:s.querySelector(".acacias--map-popup--btn-close")};const l=e=>{n.a.killTweensOf([s]),e.to(s,{duration:.2,ease:r.e.easeOut,autoAlpha:0,y:"-=0"})},u=()=>{l(n.a.timeline()),this.isBoxOpen=!1,this.currentBoxId=null};var d=null;const h=[...t.querySelectorAll(".acacias--svg-map-city")];h.forEach(e=>{const p=e.getAttribute("data-id"),f=t=>{n.a.killTweensOf(h),n.a.to(h,{duration:.1,opacity:.3}),n.a.killTweensOf(e),n.a.to(e,{duration:.25,ease:r.a.easeOut,opacity:1}),d=e},m=t=>{d&&(n.a.killTweensOf(e),n.a.to(e,{duration:.25,ease:r.a.easeOut,opacity:.3}))},g=e=>{e.stopImmediatePropagation();const t=this.citiesData?this.citiesData[p]:null;if(t&&p!==this.currentBoxId){const i=this.config.element.querySelector(".ref-point"),u=this.config.element.querySelector(".acacias--svg-map").getBoundingClientRect(),[d,h]=(u.width,[e.clientX-u.x,e.clientY-u.y]);n.a.set(i,{x:d,y:h});const f=n.a.timeline();let m=-30;this.isBoxOpen&&(l(f),f.to(s,{duration:.1}),m=0),f.to(s,{duration:0,width:"auto",height:"auto"}).to(c,{duration:0,display:"block"}).to(s,{duration:0,onComplete:()=>{const e=(a.getLocalizedCityName(p,o)||t.city).trim();this.popupDisplay.title.innerText=e;const i=t.offices.reduce((t,i)=>{const n=(i.name[0]||"").trim();return t+=`
${`

${n!==e?n:""}

`}\n ${i.address.join("
")}\n \n

${i.phones.join("
")}

\n
`},"");this.popupDisplay.addr1.innerHTML=i,this.popupDisplay.link.href=t.url;const n=s.getBoundingClientRect(),l=d/u.width<.75?d+50:Math.max(15,d-50-n.width),g=0*u.height+Math.max(0,.9*u.height-n.height)*(h/u.height);f.to(s,{duration:0,autoAlpha:0,x:l,y:g-m,scaleX:.9,scaleY:.95}).to([c,this.popupDisplay.btnClose],{duration:0,opacity:0,display:"block"}).to(s,{duration:.35,ease:r.e.easeOut,autoAlpha:1,y:g,scaleX:1,scaleY:1}).to(s,{duration:.55,ease:r.e.easeOut,autoAlpha:1,x:l,y:g},"-=0.35").to([c,this.popupDisplay.btnClose],{duration:.35,opacity:1,display:"block"},"-=0.2")}}),this.isBoxOpen=!0,this.currentBoxId=p}},v=e.querySelector("tspan");if("full"==i){this.popupDisplay.btnClose.addEventListener("click",u),window.addEventListener("resize",u),v.addEventListener("mouseover",f),v.addEventListener("mouseout",m),v.addEventListener("mousedown",g);const e=`.acacias--map-cell[data-city=${p}]`,i=t.querySelector(e);i&&(i.addEventListener("mouseover",f),i.addEventListener("mouseout",m),i.addEventListener("mousedown",g))}}),this.config.element.addEventListener("mouseleave",()=>{n.a.killTweensOf(h),n.a.to(h,{duration:.3,opacity:1,delay:.3})});const p=e.element.querySelector("#acacias--svg-cities");p&&(a.localizeSVG(p,o),setTimeout(()=>this.fitLegend(e),0))}fitLegend(e){const t=1274/this.config.element.querySelector(".acacias--svg-map").getBoundingClientRect().width,i=e.element.querySelector(".acacias--svg-map-legend tspan"),n=e.element.querySelector(".acacias--svg-map-legend rect");if(i){const e=Math.round(i.getBoundingClientRect().width*t)+15;n.setAttribute("width",e+"px")}}exportCitiesBoundingBoxes(e){const t=[...e.querySelectorAll(".acacias--svg-map-city")];e.getBoundingClientRect();t.forEach(e=>{e.querySelector("circle"),e.querySelector("tspan").getBoundingClientRect()})}exportCitiesPositions(e){[...e.querySelectorAll(".acacias--svg-map-city")].map((e,t)=>{const i=e.querySelector("circle"),n=e.querySelector("tspan").getBBox(),r={x:.5*(parseFloat(i.getAttribute("cx"))+(n.x+.5*n.width)),y:parseFloat(i.getAttribute("cy"))},o=document.createElementNS("http://www.w3.org/2000/svg","circle");return o.setAttributeNS(null,"cx",r.x.toString()),o.setAttributeNS(null,"cy",r.y.toString()),o.setAttributeNS(null,"r","5"),o.setAttributeNS(null,"fill","#ff0000"),e.appendChild(o),{x:r.x,y:r.y,id:e.getAttribute("data-id")}})}fetchCitiesData(){const e=this.config.element.getAttribute("data-offices-json");if(e)try{this.citiesData=JSON.parse(e)}catch(e){}}}s.NS="acacias",s.IS="comp-map",s.selectors={self:"[data-"+s.NS+'-is="'+s.IS+'"]'};function c(){const e=document.querySelectorAll(s.selectors.self);for(let t=0;t{if(e.image=e.querySelector(".acacias--deferred-image"),e.container=e.querySelector(".acacias--deferred-image-container"),!e.image||!e.container)return;var i=e.image.dataset.largesrc;this.getWidth()<=1680&&this.getWidth()>768?i=e.image.dataset.desktopsrc:this.getWidth()<=768&&this.getWidth()>576?i=e.image.dataset.tabletsrc:this.getWidth()<=576&&(i=e.image.dataset.mobilesrc);const r=document.createElement("img");r.alt=""!=e.image.alt?e.image.alt:"Home page picture",r.onload=()=>{r.className="acacias--deferred-image acacias--deferred-newimage",e.container.appendChild(r),n.a.from(r,{autoAlpha:0,clearProps:!0,onComplete:()=>{e.container.removeChild(e.image),r.classList.remove("acacias--deferred-newimage")}})},r.src=i}),e.element.removeAttribute("data-"+u.NS+"-is"),this.initScroller(),window.addEventListener("resize",e=>{var t;null===(t=this.scrollTriggerTL)||void 0===t||t.kill(),this.initScroller()},!0)}initScroller(){this.scrollTriggerTL=n.a.timeline({scrollTrigger:{trigger:".acacias--home-stage",start:"top top",end:"bottom top",scrub:!0}}),n.a.utils.toArray(".acacias--parallax").forEach(e=>{e.dataset.depth;const t=document.getElementsByClassName("acacias--variable-ratio-home-container");this.scrollTriggerTL.to(e,{y:()=>(e.offsetHeight-t[0].clientHeight)/2,ease:"none"},0)})}}u.NS="acacias",u.IS="home-stage",u.selectors={self:"[data-"+u.NS+'-is="'+u.IS+'"]'};function d(){const e=document.querySelectorAll(u.selectors.self);for(let t=0;te.toggleAttribute(h,!0)),null===(n=this.loadMoreButton)||void 0===n||n.addEventListener("click",this.onLoadMoreClick),0===this.getHiddenItems().length&&this.onAllNewsLoaded()}cards(){return[...this.config.element.querySelectorAll(".acacias--news-card")]}getHiddenItems(){return this.cards().filter(e=>!e.hasAttribute(h))}getLastShownItem(){return this.cards().filter(e=>e.hasAttribute(h)).at(-1)}onAllNewsLoaded(){const e=this.config.element.querySelector(".acacias--expandable-news-see-more");n.a.set(this.loadMoreButton,{display:"none"}),e&&n.a.set(e,{display:"block"})}onLoadMoreClick(){var e;const t=this.getHiddenItems();let i=this.itemsExpanded;if(this.fillLastRow){const n=null===(e=this.getLastShownItem())||void 0===e?void 0:e.getBoundingClientRect().top;t.forEach(e=>e.toggleAttribute(h,!0)),i+=t.filter(e=>e.getBoundingClientRect().top===n).length,t.forEach(e=>e.toggleAttribute(h,!1)),this.fillLastRow=!1}const r=t.slice(0,i);r.forEach(e=>e.toggleAttribute(h,!0)),n.a.from(r,{opacity:0,ease:"power4.out",duration:.8,stagger:.01}),t.length<=i&&this.onAllNewsLoaded()}}function m(){const e=document.querySelectorAll(f.selectors.self);for(let t=0;t"none"===window.getComputedStyle(e).display)}getLastShownItem(){return[...this.element.querySelectorAll(v.selectors.item)].filter(e=>"none"!==window.getComputedStyle(e).display).at(-1)}onAllLoaded(){var e;const t=null===(e=this.element)||void 0===e?void 0:e.querySelector(".acacias--cta-see-more");n.a.set(this.loadMoreButton,{display:"none"}),t&&n.a.set(t,{display:"block"})}onLoadMoreClick(){const e=this.getHiddenItems();let t=this.itemsExpanded;if(this.fillLastRow){const i=this.getLastShownItem().getBoundingClientRect().top;e.forEach(e=>e.style.display="block");const n=e.filter(e=>e.getBoundingClientRect().top===i);e.forEach(e=>e.style.display="none"),t+=n.length,this.fillLastRow=!1}n.a.set(e.slice(0,t),{display:"block",opacity:0}),n.a.to(e.slice(0,t),{opacity:1,ease:"power4.out",duration:.8,stagger:.02}),e.length<=t&&this.onAllLoaded()}}v.NS="acacias",v.IS="contacts",v.selectors={self:`[data-${v.NS}-is="${v.IS}"]`,item:".acacias--comp-contact-item"},Object(g.a)(v);var y=i(5);const b=e=>{window.alphixMessageStore=window.alphixMessageStore||[],window.alphixMessageStore.push({type:"event",code:e.code,value:e.value})};class w{constructor(e){this.config=null,e&&e.element&&(this.config=e,this.init(e))}init(e){this.logger=new y.a("#debugger",e.element);[...this.config.element.querySelectorAll("a")].filter(e=>!!e.querySelector(".icon-download")).forEach(e=>{null==e||e.addEventListener("click",()=>b({code:"download-file",value:"Action"}))})}}w.NS="acacias",w.IS="links-list-comp",w.selectors={self:"[data-"+w.NS+'-is="'+w.IS+'"]'},Object(g.a)(w);let S=0;class _{constructor(e){this.id="",e&&e.element&&this.init(e)}init(e){S++,this.id="transcription-"+S;const[t,i]=[...e.element.querySelectorAll("button")],r=e.element.querySelector(".acacias--transcription-text");r.id=this.id,t.setAttribute("aria-controls",this.id);const o=()=>{const e=r.getBoundingClientRect().height;n.a.set(r,{height:e}),n.a.to(r,{height:0,overwrite:!0,duration:.5,ease:"power4.out",onComplete(){n.a.set(r,{height:"unset",display:"none"}),t.removeAttribute("data-margin"),l.a.refresh()}})};t.addEventListener("click",()=>{"true"===t.ariaExpanded?(t.ariaExpanded="false",o()):(t.ariaExpanded="true",(()=>{t.setAttribute("data-margin","true"),n.a.set(r,{display:"flex",height:"unset"});const e=r.getBoundingClientRect().height;n.a.set(r,{height:0}),n.a.to(r,{height:e,overwrite:!0,duration:1,ease:"power4.out",onComplete(){n.a.set(r,{height:"unset"}),l.a.refresh()}})})())}),i.addEventListener("click",()=>{if(!(t.getBoundingClientRect().bottom>0)){const e=r.getBoundingClientRect().height;window.scrollBy({top:-e})}t.ariaExpanded="false",o()})}}_.NS="acacias",_.IS="transcription-comp",_.selectors={self:"[data-"+_.NS+'-is="'+_.IS+'"]'},Object(g.a)(_);var E=i(11),T=i(7),C=i(8);n.a.registerPlugin(E.a);class A{constructor(e){this.config=null,this.images=[],this.titles=[],this.captions=[],this.dragDuration=.5,this.gotoDuration=.65,this.currentOffset=0,this.targetOffset=0,this.dragging=!1,this.wheelListenerActive=!0,this.imageOffsetScale=1,this.previousItem=-1,this.inertialEase=E.a.create("custom","M0,0,C0.302,0.598,0.492,1,1,1"),this.gotoEase=E.a.create("custom","M0,0 C0.086,0 0.134,0.674 0.292,0.822 0.484,1.002 0.818,1.001 1,1 "),this.ready=!1,this.classesToScan="\n .acacias--article-module .acacias--comp-image\n ",this.scrollBlocker=T.b.getInstance(),this.calculateImageOffsetScale=()=>{this.imageOffsetScale=(window.innerWidth,6)},e&&e.element&&(this.config=e,this.init(e))}init(e){this.logger=new y.a("#debugger",e.element),this.initImages=this.initImages.bind(this),this.onMouseStart=this.onMouseStart.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onMouseEnd=this.onMouseEnd.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onMouseDrag=this.onMouseDrag.bind(this),this.onTouchDrag=this.onTouchDrag.bind(this),this.onResize=this.onResize.bind(this),this.snap=this.snap.bind(this),this.handlePointerEnd=this.handlePointerEnd.bind(this),this.onWheel=this.onWheel.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.openGallery=this.openGallery.bind(this),this.closeGallery=this.closeGallery.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.focusTrap=Object(C.a)(e.element,{initialFocus:!1}),this.items=e.element.querySelector(".acacias--article-gallery--images-wrapper"),this.items.addEventListener("mousedown",this.onMouseStart),this.items.addEventListener("touchstart",this.onTouchStart),e.element.addEventListener("wheel",this.onWheel);const t=Array.from(document.documentElement.querySelectorAll(this.classesToScan)).filter(e=>e.querySelector(".cmp-image"));t.forEach((e,t)=>{const i=e.querySelector(".cmp-image");i.addEventListener("click",()=>{if(!this.ready){const e=i.querySelector("img").attributes.src.value,t=e.substring(e.indexOf("wid=")+4,e.lastIndexOf("&"));this.initImages(t)}setTimeout(()=>this.openGallery(t),10)}),i.setAttribute("style",i.getAttribute("style")+"; cursor: pointer;")}),this.counter=e.element.querySelector(".acacias--article-gallery--counter"),this.itemsCountText=t.length.toString(),this.title=e.element.querySelector(".acacias--article-gallery--image-title"),this.caption=e.element.querySelector(".acacias--article-gallery--caption"),this.prevButton=e.element.querySelector(".acacias--article-gallery--navigation-btn-wrapper--prev"),this.nextButton=e.element.querySelector(".acacias--article-gallery--navigation-btn-wrapper--next");const i=e.element.querySelector(".acacias--article-gallery--top--close-btn");this.prevButton.addEventListener("click",()=>this.onNavigationButtonClick(1)),this.nextButton.addEventListener("click",()=>this.onNavigationButtonClick(-1)),i.addEventListener("click",this.closeGallery),this.calculateImageOffsetScale(),window.addEventListener("resize",this.onResize,!0),window.addEventListener("orientationchange",this.onResize,!0)}onResize(){setTimeout(()=>{if(this.ready){const e=this.targetOffset/this.maxOffset||0;this.calculateBounds(),this.snap(e*this.maxOffset),this.calculateImageOffsetScale()}},50)}initImages(e){const t=Array.from(document.documentElement.querySelectorAll(this.classesToScan)).filter(e=>e.querySelector("img"));this.titles=Array(t.length).fill(""),this.captions=Array(t.length).fill(""),t.forEach((i,n)=>{var r;const o=i.querySelector(".cmp-image"),a=i.querySelector(".cmp-text"),s=document.createElement("div");s.classList.add("acacias--article-gallery--image-wrapper"),s.role="group",s.ariaRoleDescription="slide",s.ariaLabel=null!==(r=null==a?void 0:a.textContent)&&void 0!==r?r:`${n+1} of ${t.length}`;const c=document.createElement("div");c.classList.add("acacias--article-gallery--image-overflow"),s.appendChild(c);const l=document.createElement("img");l.src=o.attributes["data-cmp-src"].value.replace(/%3Aimage-.-./,"").replace("{.width}",e);const u=a?"

"+a.innerHTML.split("

")[1]:"";this.titles[n]=u,this.captions[n]=a?a.innerHTML.replace(u,""):"",l.addEventListener("load",()=>{this.calculateBounds()}),c.appendChild(l),this.items.appendChild(s),this.images=[...this.images,c]}),this.calculateBounds(),this.update(0,0),this.fadeOutCaptionText(),this.ready=!0}openGallery(e=0){this.config.element.removeAttribute("inert"),this.config.element.setAttribute("aria-modal","true"),n.a.set([this.title,this.caption],{opacity:0}),this.fadeOutCaptionText();const t=-e*this.step;n.a.set(this.images,{scale:0}),this.snap(t,0),this.snap(t),n.a.to(this.images,{scale:1,ease:this.gotoEase,duration:.6,delay:.3}),this.config.element.classList.add("active"),window.addEventListener("keyup",this.onKeyPress),setTimeout(()=>{this.scrollBlocker.block(),this.focusTrap.activate()},window.innerWidth<=575?0:200)}closeGallery(){this.config.element.setAttribute("inert",""),this.config.element.removeAttribute("aria-modal"),this.config.element.classList.remove("active"),this.scrollBlocker.unblock(),this.focusTrap.deactivate(),window.removeEventListener("keyup",this.onKeyPress)}calculateBounds(){this.step=this.items.children[0].clientHeight,this.maxOffset=-this.step*(this.images.length-1)}onNavigationButtonClick(e){1===e&&0===this.targetOffset||-1===e&&this.targetOffset===this.maxOffset||(this.fadeOutCaptionText(),this.updateCurrentOffset(),this.snap(this.targetOffset+this.step*e))}onMouseStart(e){this.dragStart=e.clientY,this.updateCurrentOffset(),window.addEventListener("mousemove",this.onMouseDrag),window.addEventListener("mouseup",this.onMouseEnd)}onTouchStart(e){this.dragStart=e.touches[0].clientY,this.updateCurrentOffset(),window.addEventListener("touchmove",this.onTouchDrag),window.addEventListener("touchend",this.onTouchEnd)}onMouseDrag(e){this.dragging=!0,this.update(e.clientY-this.dragStart);const t=this.getTargetItem(this.targetOffset);0===n.a.getTweensOf(this.caption).length&&t!==this.previousItem&&this.fadeOutCaptionText()}onTouchDrag(e){this.dragging=!0,this.update(2.5*(e.touches[0].clientY-this.dragStart));const t=this.getTargetItem(this.targetOffset);0===n.a.getTweensOf(this.caption).length&&t!==this.previousItem&&this.fadeOutCaptionText()}onMouseEnd(e){window.removeEventListener("mousemove",this.onMouseDrag),window.removeEventListener("mouseup",this.onMouseEnd),this.handlePointerEnd(e.clientX)}onTouchEnd(e){window.removeEventListener("touchmove",this.onTouchDrag),window.removeEventListener("touchend",this.onTouchEnd),this.handlePointerEnd(e.changedTouches[0].clientX)}handlePointerEnd(e){this.dragging&&(this.dragging=!1,this.snap(this.targetOffset)),0===n.a.getTweensOf(this.caption).length&&this.fadeInCaptionText()}onWheel(e){this.wheelListenerActive&&Math.abs(e.deltaY)>20&&(this.onNavigationButtonClick(e.deltaY>0?-1:1),this.wheelListenerActive=!1,setTimeout(()=>{this.wheelListenerActive=!0},1e3))}onKeyPress(e){["ArrowLeft","ArrowUp"].includes(e.key)?this.onNavigationButtonClick(1):["ArrowRight","ArrowDown"].includes(e.key)&&this.onNavigationButtonClick(-1),"Escape"===e.key&&this.closeGallery()}snap(e,t=1){let i=Math.floor(e/this.step)*this.step;e-i>=this.step/2&&(i+=this.step),this.updateCurrentOffset(),this.update(i-this.currentOffset,t)}update(e,t=1){const i=Math.min(0,Math.max(this.currentOffset+e,this.maxOffset));this.targetOffset=i,n.a.to(this.items,{y:i,ease:this.dragging?this.inertialEase:this.gotoEase,duration:t*(this.dragging?this.dragDuration:this.gotoDuration),onStart:()=>{0===i?(this.prevButton.disabled=!0,this.prevButton.classList.add("disabled")):(this.prevButton.disabled=!1,this.prevButton.classList.remove("disabled")),i===this.maxOffset?(this.nextButton.disabled=!0,this.nextButton.classList.add("disabled")):(this.nextButton.disabled=!1,this.nextButton.classList.remove("disabled"))}});const r=this.getTargetItem(i);this.updateCounterText(r),this.updateImages(i,t)}updateImages(e,t=1){const i=1/(this.images.length-1||1);this.images.forEach((r,o)=>{const a=n.a.utils.clamp(-i,i,this.calculateRelativeDistance(e,o)),s=Math.abs(a),c=(this.step-r.clientHeight)/2-this.step/8,l=n.a.utils.mapRange(-i,i,-c,c,a),u=n.a.utils.mapRange(0,.6*i,1,0,s);n.a.to(r,{opacity:u,y:l*this.imageOffsetScale,ease:this.dragging?this.inertialEase:this.gotoEase,duration:t*(this.dragging?this.dragDuration:this.gotoDuration)})})}calculateRelativeDistance(e,t){return t/(this.images.length-1||1)-e/(this.maxOffset||1)}updateCurrentOffset(){this.currentOffset=n.a.getProperty(this.items,"y")}updateCounterText(e){this.counter.innerText=`${e+1} of ${this.itemsCountText}`}fadeOutCaptionText(){n.a.to([this.title,this.caption],{opacity:0,ease:"power4.out",duration:.3,onComplete:()=>{this.dragging||this.fadeInCaptionText()}})}fadeInCaptionText(){const e=this.getTargetItem(this.targetOffset);this.previousItem=e,this.title.innerHTML=this.titles[e],this.caption.innerHTML=this.captions[e],n.a.to([this.title,this.caption],{opacity:1,ease:"power4.in",duration:.3,delay:e=>.15*e})}getTargetItem(e){return Math.max(0,Math.min(Math.abs(Math.round(e/this.step||0)),this.images.length))}}A.NS="acacias",A.IS="article-gallery-comp",A.selectors={self:"[data-"+A.NS+'-is="'+A.IS+'"]'},Object(g.a)(A);const x={ease:"power4.out",duration:.5};class O{constructor(e){this.config=null,this.printPrepared=!1,this.isMobileExpanded=!1,this.position="static",e&&e.element&&(this.config=e,this.init(e))}init(e){this.logger=new y.a("#debugger",e.element),this.onClickOutside=this.onClickOutside.bind(this),this.onFocus=this.onFocus.bind(this);const t=e.element.querySelector(".article-print"),i=e.element.querySelector(".acacias--article-print-bg");if(null==t||t.addEventListener("click",()=>{const e=[...document.querySelectorAll("div[data-cmp-lazy]")],t=()=>{window.scrollTo(0,0),setTimeout(()=>window.print(),300)};if(this.printPrepared||0===e.length)return void t();document.body.appendChild(i),n.a.set(i,{display:"block",opacity:0}),n.a.to(i,{opacity:1,duration:.5,ease:"power4.out"});e.forEach((e,t)=>setTimeout(()=>{e.scrollIntoView()},.3*t*1e3+500)),setTimeout(()=>{this.printPrepared=!0,n.a.set(i,{display:"none"}),t()},1e3*Math.max(1,.3*e.length)+500)}),this.staticContainer=e.element.parentElement,this.stickyContainer=document.querySelector(".acacias--article-share-sticky-container"),this.stickyContainer)if(this.isArticleLongEnough())this.shareItems=[...e.element.querySelectorAll(".acacias--article-share-items > *")],this.initStickyContainer(),this.mobileButton=this.stickyContainer.querySelector(".acacias--article-share-icon"),this.initMobileButton();else{const e=this.stickyContainer.closest(".acacias--article-sticky-wrapper");null==e||e.remove()}this.initEventTags()}initStickyContainer(){n.a.to(this.stickyContainer,{scrollTrigger:{trigger:".acacias--article-info-group",start:"top top",onLeave:()=>{var e;this.position="sticky",n.a.set(this.staticContainer,{height:this.staticContainer.getBoundingClientRect().height}),this.stickyContainer.appendChild(this.config.element),n.a.set(this.stickyContainer,{autoAlpha:0}),n.a.to(this.stickyContainer,{duration:.2,autoAlpha:1,overwrite:"auto"}),this.config.element.inert=window.innerWidth<1024&&!this.isMobileExpanded,this.config.element.role="menu",this.config.element.ariaLabel=null===(e=this.config.element.querySelector(".acacias--article-share-title"))||void 0===e?void 0:e.textContent},onEnterBack:()=>{this.position="static",n.a.to(this.stickyContainer,{duration:.1,autoAlpha:0,onComplete:()=>{n.a.set(this.shareItems,{autoAlpha:1}),n.a.set(this.staticContainer,{height:void 0}),this.staticContainer.appendChild(this.config.element),this.config.element.inert=!1,this.config.element.role=void 0,this.config.element.ariaLabel=void 0}})}}}),window.addEventListener("resize",()=>{this.config.element.inert&&window.innerWidth>=1024&&(this.config.element.inert=!1),!this.config.element.inert&&window.innerWidth<1024&&!this.isMobileExpanded&&"sticky"===this.position&&(this.config.element.inert=!0)})}expandMobileContainer(){n.a.timeline().add("start").set(this.shareItems,{autoAlpha:0},"start").set(this.mobileButton,{autoAlpha:0},"start").to(this.stickyContainer,Object.assign({width:this.config.element.getBoundingClientRect().width,borderRadius:3},x),"start+=0.1").to(this.shareItems,Object.assign({autoAlpha:1,stagger:.05},x),"start+=0.2"),this.isMobileExpanded=!0,this.mobileButton.ariaExpanded="true","sticky"===this.position&&(this.config.element.inert=!1)}shrinkMobileContainer(){n.a.timeline().add("start").to([...this.shareItems].reverse(),Object.assign({autoAlpha:0,stagger:.05},x),"start").to(this.stickyContainer,{width:this.mobileButton.clientWidth,onComplete:()=>{this.stickyContainer.style.removeProperty("width")},ease:x.ease,duration:this.mobileButton.clientWidth?x.duration:0},"start+=0.2").to(this.stickyContainer,{borderRadius:50,ease:"power4.out",duration:1},"start+=0.3").to(this.mobileButton,{autoAlpha:1},"start+=0.3"),this.isMobileExpanded=!1,this.mobileButton.ariaExpanded="false","sticky"===this.position&&(this.config.element.inert=!0),document.removeEventListener("click",this.onClickOutside),document.removeEventListener("focusin",this.onFocus)}onClickOutside(e){var t,i;this.isMobileExpanded&&((null===(i=null===(t=e.target)||void 0===t?void 0:t.closest)||void 0===i?void 0:i.call(t,".acacias--article-share-sticky-container"))||this.shrinkMobileContainer())}onFocus(){var e,t;this.isMobileExpanded&&((null===(t=null===(e=document.activeElement)||void 0===e?void 0:e.closest)||void 0===t?void 0:t.call(e,".acacias--article-share-sticky-container"))||this.shrinkMobileContainer())}initMobileButton(){this.mobileButton.addEventListener("click",()=>{this.isMobileExpanded?this.shrinkMobileContainer():(this.expandMobileContainer(),document.addEventListener("click",this.onClickOutside),document.addEventListener("focusin",this.onFocus))}),this.mobileButton.setAttribute("aria-controls",this.config.element.id),this.mobileButton.ariaHasPopup="menu",this.mobileButton.ariaExpanded="false"}initEventTags(){[...this.config.element.querySelectorAll("a")].forEach(e=>{null==e||e.addEventListener("click",()=>b({code:"social-media-share",value:"Action"}))})}isArticleLongEnough(){const e=document.createElement("div"),t=this.stickyContainer.closest(".acacias--article-sticky-wrapper");t.parentElement.insertBefore(e,t);const i=((e,t)=>{const i=e.getBoundingClientRect().top,n=t.getBoundingClientRect().top;return Math.abs(i-n)})(this.staticContainer,e);return e.remove(),i>=window.innerHeight}}O.NS="acacias",O.IS="article-share-comp",O.selectors={self:"[data-"+O.NS+'-is="'+O.IS+'"]'},Object(g.a)(O);class L{constructor(e){this.config=null,this.elementsToScan=".acacias--article-module-content-area p, \n .acacias--article-module blockquote,\n .acacias--article-stage .acacias--service-stage-lead p",this.englishWordsPerMinute=200,this.chineseCharactersPerMinute=284,e&&e.element&&(this.config=e,this.init(e))}init(e){this.logger=new y.a("#debugger",e.element);const t=e.element.querySelector(".time-to-read"),i=Array.from(document.documentElement.querySelectorAll(this.elementsToScan)),n=i.some(e=>e.innerHTML.includes("。"));let r=i.map(e=>e.innerHTML.split(n?"":" ").filter(e=>!["","\n"," "].includes(e))).reduce((e,t)=>e+t.length,0);r/=n?this.chineseCharactersPerMinute:this.englishWordsPerMinute,t.innerHTML=Math.max(1,Math.round(r||1)).toString(),e.element.ariaLabel=e.element.textContent.trim()}}L.NS="acacias",L.IS="time-to-read-comp",L.selectors={self:"[data-"+L.NS+'-is="'+L.IS+'"]'},Object(g.a)(L);class k{constructor(e){this.container=null,this.articleHeadings=[],this.type="default",this.translation={tocTitle:"Table of Contents",tocOpen:"Open table of contents",nowReading:"Now reading:"},this.tocElements=[],this.type=e.type}init(){var e,t,i,n;if(null!==this.container||void 0===this.type)return!1;this.container=document.querySelector(".acacias--article-module-content-area .cmp-container, .acacias--pam-article .acacias--pam-layout--default");return this.articleHeadings=[...document.querySelectorAll([".acacias--article-module-content-area h3",'[data-include-in-toc="true"]',".acacias--pam-article h3"].join(", "))],this.articleHeadings=this.articleHeadings.filter(e=>!this.isSectionHeadingHidden(e)),!!this.articleHeadings.length&&(this.translation.tocTitle=null!==(t=null===(e=document.querySelector("[data-article-toc-translation-title]"))||void 0===e?void 0:e.getAttribute("data-article-toc-translation-title"))&&void 0!==t?t:this.translation.tocTitle,this.translation.nowReading=null!==(n=null===(i=document.querySelector("[data-article-toc-translation-now-reading]"))||void 0===i?void 0:i.getAttribute("data-article-toc-translation-now-reading"))&&void 0!==n?n:this.translation.nowReading,this.articleHeadings.forEach((e,t)=>{if(e.id)return;const i=(e.textContent.replace(/[^a-zA-Z]+/gi," ").trim().replace(/\s+/g,"-").slice(0,100)||"toc")+"-"+(t+1);e.id=i,"#"+e.id===window.location.hash&&setTimeout(()=>{this.scrollTo(e)},100)}),!0)}insertTocIntoArticle(){const e=this.createTocElement();return this.container.insertBefore(e,this.container.firstChild),this.articleToc=e,e}createTocElement(e){const t=document.createElement("nav");if(t.className="acacias--article-toc",t.ariaLabel=this.translation.tocTitle,null==e?void 0:e.alignWithNavigationBar){const e=document.createElement("div");e.setAttribute("data-navigation-bar-align",""),e.innerHTML=this.translation.nowReading,t.appendChild(e)}else{const e=document.createElement("div");e.innerHTML=this.translation.tocTitle,e.className="acacias--article-toc-title",t.appendChild(e)}const i=document.createElement("number"===this.type?"ol":"ul");return i.setAttribute("data-toc-type",this.type),t.appendChild(i),this.articleHeadings.forEach(e=>{const t=document.createElement("li"),n=document.createElement("a");n.innerHTML=this.getSectionHeadingText(e),n.href="#"+e.id,n.addEventListener("click",t=>{t.preventDefault(),this.scrollTo(e)}),n.addEventListener("keydown",t=>{"Space"===t.code&&(t.preventDefault(),this.scrollTo(e))}),t.appendChild(n),i.appendChild(t)}),this.tocElements.push(t),t}createNavigationBar(){const e=document.createElement("div");e.className="acacias--navigation-article-toc";const t=document.createElement("div");t.className="acacias--navigation-article-toc--progress-bar",e.appendChild(t);const i=[...document.querySelectorAll(".acacias--row.acacias--article-module, .acacias--pam-article")],r=i[i.length-1];n.a.set(t,{scaleX:0}),n.a.timeline({scrollTrigger:{trigger:this.articleToc,endTrigger:r,start:"bottom top",end:"bottom bottom",onUpdate({progress:e}){n.a.to(t,{scaleX:e,duration:.3,ease:"power4.out"})}}});const o=document.createElement("div");o.className="acacias--navigation-article-toc--current-header",e.appendChild(o);const a=document.createElement("div");a.setAttribute("data-current-toc-title",""),a.innerHTML=this.translation.nowReading,o.appendChild(a);const s=document.createElement("button");s.setAttribute("data-current-toc-element",""),s.ariaLabel=this.translation.tocOpen,o.appendChild(s);const c=new Set;let l=0;return this.articleHeadings.forEach((e,t)=>{new IntersectionObserver(([{isIntersecting:e}])=>{var i;e?c.add(t):c.delete(t);const n=[...c].sort((e,t)=>e-t);l=null!==(i=n[0])&&void 0!==i?i:l,s.innerHTML=this.getSectionHeadingText(this.articleHeadings[l]),this.tocElements.forEach(e=>{[...e.querySelectorAll("li")].forEach((e,t)=>{e.setAttribute("data-active",String(t===l))})})}).observe(e)}),e}scrollTo(e){setTimeout(()=>{e.style.scrollMarginTop="calc(var(--header-height) + var(--toc-height) + 30px)",e.scrollIntoView({behavior:"smooth",block:"start"}),e.id&&history.pushState(null,null,"#"+e.id)},0)}getSectionHeadingText(e){var t,i,n;const r=e.getAttribute("data-alt-toc-header")||(null===(t=e.querySelector("[data-alt-toc-header]"))||void 0===t?void 0:t.getAttribute("data-alt-toc-header"));if(r)return r.trim();const o=e.cloneNode(!0);return[...o.querySelectorAll(".footnote")].forEach(e=>{e.remove()}),null!==(n=null===(i=o.textContent)||void 0===i?void 0:i.trim())&&void 0!==n?n:""}isSectionHeadingHidden(e){var t;const i="data-hidden-from-toc",n=e.getAttribute(i)||(null===(t=e.querySelector(`[${i}]`))||void 0===t?void 0:t.getAttribute(i)),r=e.classList.contains("hidden-from-toc")||!!e.querySelector(".hidden-from-toc");return"true"===n||!0===r}}class I{constructor(){this.sectionHeadings=[],this.translation={tocTitle:"Topics:",tocOpen:"Open table of contents"},this.tocElements=[],this.navigationBars=[],this.tocUnderlines=[],this.tocScrollSpyListener=null,this.tocScrollSpyRafId=0}init(){var e,t,i,n;this.setupIntersectionObservers=this.setupIntersectionObservers.bind(this);return this.sectionHeadings=[...document.querySelectorAll([".acacias--hub-module > .acacias--grid-wrapper > .acacias-Grid > .acacias--hub-module-left-col > .acacias--hub-module-title",'[data-include-in-service-toc="true"]','[data-include-in-toc="true"]'].join(", "))],this.sectionHeadings=this.sectionHeadings.filter(e=>!e.closest("header")&&!e.closest("footer")).filter(e=>""!==this.getSectionHeadingText(e)).filter(e=>!this.isSectionHeadingHidden(e)),0!==this.sectionHeadings.length&&(this.translation.tocTitle=null!==(t=null===(e=document.querySelector("[data-service-page-toc-translation-title]"))||void 0===e?void 0:e.getAttribute("data-service-page-toc-translation-title"))&&void 0!==t?t:this.translation.tocTitle,this.translation.tocOpen=null!==(n=null===(i=document.querySelector("[data-service-page-toc-translation-open]"))||void 0===i?void 0:i.getAttribute("data-service-page-toc-translation-open"))&&void 0!==n?n:this.translation.tocOpen,this.sectionHeadings.forEach((e,t)=>{var i;const n=null!==(i=e.closest(".acacias--row.acacias--hub-module"))&&void 0!==i?i:e;n.setAttribute("data-scroll-margin","");const r=(this.getSectionHeadingText(e).replace(/[^a-zA-Z]+/gi," ").trim().replace(/\s+/g,"-").slice(0,100)||"toc")+"-"+(t+1);e.setAttribute("data-scroll-id",r),n.id=r,"#"+r===window.location.hash&&setTimeout(()=>{this.scrollTo(n)},100)}),!0)}insertTocIntoPage(){const e=this.createTocElement();return document.querySelector(".acacias--service-stage, .acacias--pam-stage").insertAdjacentElement("afterend",e),e}createTocElement(e){const t=document.createElement("nav");t.className="acacias--service-page-toc",t.ariaLabel=this.translation.tocTitle;const i=document.createElement("div");if(i.className="acacias--grid-wrapper",null==e?void 0:e.alignWithNavigationBar){const e=document.createElement("div");e.setAttribute("data-navigation-bar-align",""),e.innerHTML=this.translation.tocTitle,t.appendChild(e)}else{const e=document.createElement("div");e.innerHTML=this.translation.tocTitle,e.className="acacias--service-page-toc-title",i.appendChild(e)}const r=document.createElement("ul"),o=document.createElement("button");o.className="acacias--service-page-toc-arrow",o.innerHTML='',o.setAttribute("data-direction","prev"),o.setAttribute("aria-hidden","true");const a=o.cloneNode(!0);a.setAttribute("data-direction","next"),a.setAttribute("aria-hidden","true");const s=document.createElement("div");s.className="acacias--service-page-toc-scroller";const c=(e,t)=>{const i=e.scrollWidth-e.clientWidth;return Math.min(i,Math.max(0,e.scrollLeft+t))};o.addEventListener("pointerdown",e=>{e.stopPropagation(),e.preventDefault(),n.a.to(s,{scrollLeft:c(s,.2*-s.scrollWidth),duration:.6,ease:"power1.out"})}),a.addEventListener("pointerdown",e=>{e.stopPropagation(),e.preventDefault(),n.a.to(s,{scrollLeft:c(s,.2*s.scrollWidth),duration:.6,ease:"power1.out"})}),t.appendChild(o),(null==e?void 0:e.alignWithNavigationBar)?t.appendChild(r):(i.appendChild(r),s.appendChild(i),t.appendChild(s)),this.sectionHeadings.forEach(e=>{const t=document.createElement("li"),i=document.createElement("a");i.innerHTML=this.getSectionHeadingText(e),i.href="#"+e.getAttribute("data-scroll-id");const{target:n,additionalMargin:o}=this.getScrollTarget(e);i.addEventListener("click",e=>{e.preventDefault(),this.scrollTo(n,{additionalMargin:o})}),i.addEventListener("keydown",e=>{"Space"===e.code&&(e.preventDefault(),this.scrollTo(n,{additionalMargin:o}))}),t.appendChild(i),r.appendChild(t)}),t.appendChild(a),this.tocElements.forEach(e=>this.joinScrollables(e,s)),this.tocElements.push(s);const l=document.createElement("div");l.className="acacias--navigation-serivce-page-toc--underline",s.appendChild(l),this.tocUnderlines.push(l);const u=()=>{const e=s.scrollWidth-s.clientWidth>0;if(n.a.set([a,o],{display:e?"block":"none"}),e){const e=s.scrollLeft<=10,t=s.scrollLeft>=s.scrollWidth-s.clientWidth-10;n.a.to(o,{autoAlpha:e?0:1,ease:"power4.out",duration:.2}),n.a.to(a,{autoAlpha:t?0:1,ease:"power4.out",duration:.2})}};setTimeout(()=>{u()},0),window.addEventListener("resize",()=>{this.moveUnderline(l,this.underlineTarget,!0),u()}),s.addEventListener("scroll",()=>{u()});const d={startX:0,startScroll:0,prevX:0,velocity:0,timestamp:0},h=e=>{const t=performance.now(),i=t-d.timestamp,n=e.clientX-d.prevX;d.velocity=n/i,d.prevX=e.clientX,d.timestamp=t;const r=d.startX-e.clientX;s.scrollTo({left:d.startScroll+r})},p=e=>{window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",p);if(!(e.clientX!==d.startX))return;const t=200*-d.velocity;n.a.to(s,{scrollLeft:c(s,t),duration:.5,ease:"power2.out"})};return s.addEventListener("pointerdown",e=>{d.startX=e.clientX,d.startScroll=s.scrollLeft,d.prevX=e.clientX,d.velocity=0,d.timestamp=performance.now(),window.addEventListener("pointermove",h),window.addEventListener("pointerup",p)}),t}createNavigationBar(){const e=document.createElement("div");e.className="acacias--navigation-service-page-toc";const t=document.createElement("div");t.className="acacias--navigation-service-page-toc--current-header",e.appendChild(t);const i=document.createElement("div");i.setAttribute("data-current-toc-title",""),i.innerHTML=this.translation.tocTitle,t.appendChild(i);const n=document.createElement("button");return n.setAttribute("data-current-toc-element",""),n.ariaLabel=this.translation.tocOpen,t.appendChild(n),e.appendChild(this.createTocElement()),this.navigationBars.push(e),e}setupIntersectionObservers(){this.tocScrollSpyListener&&(window.removeEventListener("scroll",this.tocScrollSpyListener),this.tocScrollSpyListener=null),this.tocScrollSpyRafId&&(cancelAnimationFrame(this.tocScrollSpyRafId),this.tocScrollSpyRafId=0);const e=this.navigationBars.map(e=>e.querySelector("[data-current-toc-element]"));let t=-1;const i=()=>{const i=this.getHeaderHeight();let n=0;for(let e=0;e{e.innerHTML=this.getSectionHeadingText(this.sectionHeadings[r])}),this.tocElements.forEach(e=>{[...e.querySelectorAll("li")].forEach((t,i)=>{const n=i===r;if(t.setAttribute("data-active",String(n)),t.closest("header")&&n){const i=t.getBoundingClientRect();i.left<=100&&e.scrollBy({left:i.left-120,behavior:"smooth"}),i.right>=window.innerWidth-100&&e.scrollBy({left:i.right-window.innerWidth+120,behavior:"smooth"})}n&&this.tocUnderlines.forEach(e=>this.moveUnderline(e,t))})})},n=()=>{this.tocScrollSpyRafId||(this.tocScrollSpyRafId=requestAnimationFrame(()=>{this.tocScrollSpyRafId=0,i()}))};0!==this.sectionHeadings.length&&(this.tocScrollSpyListener=n,window.addEventListener("scroll",n,{passive:!0}),i())}joinScrollables(e,t){const i={el1:!1,el2:!1};e.addEventListener("scroll",()=>{i.el1||(i.el2=!0,t.scrollTo({left:e.scrollLeft})),i.el1=!1}),t.addEventListener("scroll",()=>{i.el2||(i.el1=!0,e.scrollTo({left:t.scrollLeft})),i.el2=!1})}moveUnderline(e,t,i=!1){const r=null==t?void 0:t.getBoundingClientRect();if(!(null==r?void 0:r.width))return;const o=t.closest(".acacias--service-page-toc-scroller");n.a[i?"set":"to"](e,{x:r.left+o.scrollLeft,width:r.width,opacity:1,ease:"power2.out",duration:.45}),this.underlineTarget=t}getSectionHeadingText(e){var t;const i=e.getAttribute("data-alt-toc-header")||(null===(t=e.querySelector("[data-alt-toc-header]"))||void 0===t?void 0:t.getAttribute("data-alt-toc-header"));if(null==i?void 0:i.trim())return i.trim();const n=e.cloneNode(!0);return n.querySelectorAll(".acacias--hub-module-left-section").forEach(e=>e.remove()),n.textContent.trim()}isSectionHeadingHidden(e){var t;const i="data-hidden-from-toc",n=e.getAttribute(i)||(null===(t=e.querySelector(`[${i}]`))||void 0===t?void 0:t.getAttribute(i)),r=e.classList.contains("hidden-from-toc")||!!e.querySelector(".hidden-from-toc");return"true"===n||!0===r}scrollTo(e,t){setTimeout(()=>{var i;e.style.scrollMarginTop=this.getHeaderHeight()-2+(null!==(i=null==t?void 0:t.additionalMargin)&&void 0!==i?i:0)+"px",e.scrollIntoView({behavior:"smooth",block:"start"}),e.id&&history.pushState(null,null,"#"+e.id)},0)}getHeaderHeight(){var e,t;return((null===(e=document.querySelector("#acacias--header-spacer"))||void 0===e?void 0:e.clientHeight)||0)+((null===(t=document.querySelector(".acacias--navigation-service-page-toc"))||void 0===t?void 0:t.clientHeight)||0)}getScrollTarget(e){const t=e.closest(".acacias--hub-module-title"),i=e.closest(".acacias--row.acacias--hub-module");return!!t?{target:i,additionalMargin:0}:{target:e,additionalMargin:30}}}class D{constructor(e){this.maxHeight=0,this.dropdown=e}openDesktop(e=0,t=350){this.dropdown.classList.add("acacias--header-dropdown--desktop-size"),n.a.set(this.dropdown,{display:"block",y:0,alpha:1,height:e,overwrite:!0}),n.a.to(this.dropdown,{duration:.5,height:t,alpha:1,ease:E.a.create("custom","M0,0 C0.242,0.414 0.136,0.735 0.384,0.912 0.524,1.012 0.968,1 1,1 ")}),this.dropdown.setAttribute("data-open","true")}openMobile(e=0){this.dropdown.classList.remove("acacias--header-dropdown--desktop-size"),n.a.set(this.dropdown,{display:"block",y:0,alpha:1,height:e,overwrite:!0}),n.a.to(this.dropdown,{duration:.25,height:"auto",alpha:1,ease:r.c.easeOut}),this.dropdown.style.maxHeight=this.maxHeight+"px",this.dropdown.setAttribute("data-open","true")}openLangSelector(e=0){const t=this.dropdown.querySelector(".acacias--footer-footnotes");n.a.to(t,{duration:0,alpha:0,overwrite:!0}),n.a.to(t,{duration:1,alpha:1,delay:.25}),this.dropdown.classList.remove("acacias--header-dropdown--desktop-size"),n.a.set(this.dropdown,{display:"block",alpha:1,y:0,height:e,overwrite:!0}),n.a.to(this.dropdown,{duration:.5,height:"auto",alpha:1,ease:E.a.create("custom","M0,0 C0.242,0.414 0.136,0.735 0.384,0.912 0.524,1.012 0.968,1 1,1 ")}),this.dropdown.style.maxHeight=this.maxHeight+"px",this.dropdown.setAttribute("data-open","true")}close(){n.a.to(this.dropdown,{duration:.3,display:"none",height:0,y:-1,alpha:1,ease:E.a.create("custom","M0,0 C0.242,0.414 0.136,0.735 0.384,0.912 0.524,1.012 0.968,1 1,1 "),overwrite:!0}),this.dropdown.setAttribute("data-open","false")}}class M{constructor(e){this.state=void 0,this.dropdown=null,this.config=null,this.underlines=[],this.anchorURL="",this.scrollBlocker=T.b.getInstance(),e&&e.element&&(this.config=e,this.init(e))}init(e){n.a.registerPlugin(E.a);const t=Array.from(e.element.querySelectorAll(".cmp-navigation__item--level-0")),i=document.querySelector(".acacias--hamburger");if(this.dropdown=new D(this.config.element.querySelector(".acacias--header-dropdown")),this.dropdown.dropdown.id||(this.dropdown.dropdown.id="header-dropdown"),this.initHamburgerAnimation(),this.initLanguageChooser(e),this.initSearch(e),this.initArticleTableOfContents(),this.initServicePageTableOfContents(),this.initBackToTopButton(),t.forEach((e,t)=>{const i=e.querySelector(":scope > a");if(i&&["#","/",""].includes(i.getAttribute("href"))){const n=document.createElement("button");n.innerHTML=i.innerHTML,n.className=i.className,n.setAttribute("aria-expanded","false"),n.setAttribute("aria-haspopup","dialog"),i.parentNode.replaceChild(n,i),n.addEventListener("click",i=>{e.classList.contains("acacias--navigation-item-active")||(i.preventDefault(),this.openDesktopNavi(n,t))})}}),!i)return;i.addEventListener("click",e=>{if(e.preventDefault(),"mobile"===this.state)this.closeCurrentNavi();else{let e="languageChooser"===this.state?this.config.element.querySelector(".acacias--header-dropdown").clientHeight:0;this.closeCurrentNavi(),this.openMobileNavi(e)}});[...this.dropdown.dropdown.querySelectorAll("nav")].some(e=>""!==e.textContent.trim())||n.a.set(i,{display:"none"});let o=window.innerWidth;window.addEventListener("resize",()=>{o===window.innerWidth||this.closeCurrentNavi(),this.onWindowResize(),o=window.innerWidth}),window.addEventListener("keyup",e=>{"Escape"===e.code&&this.closeCurrentNavi()});e.element.querySelector(".acacias--close-element").addEventListener("click",()=>{this.closeCurrentNavi()}),this.onWindowResize(),e.element.removeAttribute("data-"+M.NS+"-is");const a=e.element.querySelector(".acacias--language-chooser");let s=[];a&&(s=Array.from(a.querySelectorAll(".cmp-navigation__item-link")));const c=document.querySelector(".acacias--disclaimer-region-bg"),l=document.querySelector(".acacias--disclaimer-region");let u,d;if(l){u=document.querySelector(".acacias--disclaimer-region").querySelector(".btn-continue"),d=document.querySelector(".acacias--disclaimer-region").querySelector(".acacias--btn-secondary"),d.addEventListener("click",e=>{e.preventDefault(),n.a.to(c,{autoAlpha:0,duration:.3,delay:.1,ease:r.c.easeOut}),n.a.to(l,{autoAlpha:0,duration:.2,ease:r.c.easeOut}),n.a.to(l,{y:20,duration:.2,delay:0,ease:r.c.easeOut})});const e=t=>{t.preventDefault(),u.removeEventListener("click",e),n.a.to(c,{autoAlpha:0,duration:.3,delay:.1,ease:r.c.easeOut}),n.a.to(l,{autoAlpha:0,duration:.2,ease:r.c.easeOut}),n.a.to(l,{y:20,duration:.2,delay:0,ease:r.c.easeOut,onComplete:()=>{t.currentTarget;window.location.href=u.getAttribute("href")}})};u.addEventListener("click",e)}const h=e=>e.split("/").slice(0,3).join("/"),p=s.map(e=>h(e.getAttribute("href"))),f=h(window.location.pathname),m=[...document.querySelectorAll("a[href]")].filter(e=>e.getAttribute("href").startsWith("/")).filter(e=>p.some(t=>e.getAttribute("href").startsWith(t))).filter(e=>p.includes(f)&&f!==h(e.getAttribute("href")));[...s,...m].filter((e,t,i)=>i.indexOf(e)===t).forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=(window.location.pathname.substring(1)+window.location.search).split("/");var i="";t.forEach((e,t)=>{"content"!==e&&"pictet-group"!==e&&""===i&&(i=e)});const o=e.currentTarget;if(o instanceof HTMLAnchorElement){u&&u.setAttribute("href",o.getAttribute("href"));var a=o.getAttribute("href").split("/")[1];this.anchorURL=o.getAttribute("href"),u&&u.setAttribute("href",this.anchorURL),a!==i?(n.a.set(l,{y:30}),n.a.to(c,{autoAlpha:1,display:"block",duration:.2,ease:r.c.easeOut}),n.a.to(l,{autoAlpha:1,display:"flex",duration:.3,delay:.1,ease:r.c.easeOut}),n.a.to(l,{y:0,duration:1,delay:0,ease:r.c.easeOut})):window.location.href=this.anchorURL}})});const g=Array.from(e.element.querySelectorAll(".acacias--navigation-link.cmp-navigation__item a")),v=null==g?void 0:g.find(e=>window.location.href.includes(e.href));null==v||v.classList.add("acacias--language-active"),this.stickyHeadersCheck();const y=e.element.querySelector(".acacias--header-skip-to-content");null==y||y.addEventListener("click",()=>{const t=e.element.nextElementSibling;if(!t)return;const i=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"details","summary","iframe","object","embed"].join(","),n=[...t.querySelectorAll(i)];let r=void 0;for(const e of n)if(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0){r=e;break}null==r||r.focus()})}stickyHeadersCheck(){var e,t,i;let n=Array.from(document.querySelectorAll(".acacias--row:not(.acacias--timeline, .acacias--timeline--dark)"));const r=650*document.documentElement.clientHeight/900,o=document.getElementById("acacias--header-spacer").getBoundingClientRect().height,a=document.querySelector(".acacias--service-page-toc, .acacias--navigation-article-toc"),s=o+(null!==(i=null===(t=null===(e=null==a?void 0:a.getBoundingClientRect)||void 0===e?void 0:e.call(a))||void 0===t?void 0:t.height)&&void 0!==i?i:0)+30;n.forEach((e,t)=>{if(!e.querySelector(".acacias--comp-map")){const t=e.querySelector(".acacias--hub-module-title");e.clientHeight>r?t&&(t.classList.add("acacias--sticky-header"),t.style.top=s+"px"):t&&(t.classList.remove("acacias--sticky-header"),t.style.top="0px")}})}openMobileDropdownHelpers(){const e=this.config.element.querySelector(".acacias--footer-footnotes");n.a.to(e,{duration:0,alpha:0,overwrite:!0}),n.a.to(e,{duration:1,alpha:1,delay:.25}),this.hamburgerOpen(),this.openClickBg()}openMobileNavi(e=0){this.scrollBlocker.block(!1),this.activateFocusTrap(),this.dropdown.dropdown.ariaModal="true",this.toggleTocBar(!1);const t=this.config.element.querySelector(".acacias--header-dropdown");e||(e=t.clientHeight),this.openMobileDropdownHelpers(),this.dropdown.openMobile(e);const i=this.config.element.querySelector(".acacias--header-dropdown--mobile"),r=this.config.element.querySelector(".acacias--header-secondary-items"),o=this.config.element.querySelector(".acacias--footer-footnotes"),a=this.config.element.querySelector(".acacias--header-dropdown--language-chooser");n.a.set(a,{display:"none"}),r.classList.add("acacias--open");const s=this.config.element.querySelector(".acacias--header-dropdown--desktop"),c=this.config.element.querySelector(".acacias--header-dropdown--search"),l=this.config.element.querySelector(".acacias--header-dropdown--article-toc"),u=this.config.element.querySelector(".acacias--header-dropdown--service-page-toc");n.a.set(o,{display:"flex"}),n.a.set(s,{display:"none"}),n.a.set(c,{display:"none"}),n.a.set(l,{display:"none"}),n.a.set(u,{display:"none"}),n.a.set(i,{alpha:0,display:"block"}),n.a.to(i,{duration:.15,alpha:1,delay:.15}),n.a.set(".acacias--mobile-navigation .cmp-navigation__item--level-0",{duration:0,alpha:0}),n.a.to(".acacias--mobile-navigation .cmp-navigation__item--level-0",{duration:.25,stagger:.02,alpha:1,delay:.25}),this.state="mobile"}openLanguageChooser(){const e=this.config.element.querySelector(".acacias--header-dropdown"),t=this.config.element.querySelector(".acacias--header-dropdown--language-chooser"),i=this.config.element.querySelector(".acacias--header-dropdown--mobile"),r=this.config.element.querySelector(".acacias--header-dropdown--desktop"),o=this.config.element.querySelector(".acacias--header-dropdown--search"),a=this.config.element.querySelector(".acacias--footer-footnotes"),s=this.config.element.querySelector(".acacias--header-dropdown--article-toc"),c=this.config.element.querySelector(".acacias--header-dropdown--service-page-toc");this.deselectNaviItems(),this.toggleTocBar(!1);const l=this.config.element.querySelector(".acacias--language-selector-btn");l.classList.add("acacias--navi-selected");const u=e.clientHeight;if(this.state){if("languageChooser"===this.state)return void this.closeCurrentNavi();"mobile"===this.state&&this.hamburgerClose()}else e.classList.add("acacias--header-dropdown--desktop-size"),this.dropdown.openLangSelector(u);n.a.set(t,{alpha:0,display:"block"}),n.a.to(t,{duration:.15,alpha:1,delay:.15}),n.a.set(".acacias--navigation-group",{duration:0,alpha:0}),n.a.to(".acacias--navigation-group",{duration:.25,stagger:.02,alpha:1,delay:.25}),this.dropdown.openLangSelector(u),this.scrollBlocker.block(!1),this.activateFocusTrap(),this.dropdown.dropdown.ariaModal="true",this.state="languageChooser",this.underlineElement(l.querySelector(".acacias--language-selector-btn > *").getBoundingClientRect()),n.a.set(a,{display:"flex"}),n.a.set(o,{display:"none"}),n.a.set(s,{display:"none"}),n.a.set(c,{display:"none"}),n.a.set(r,{display:"none"}),n.a.set(i,{display:"none"}),this.openClickBg()}openSearch(){const e=this.config.element.querySelector(".acacias--header-dropdown"),t=this.config.element.querySelector(".acacias--header-dropdown--mobile"),i=this.config.element.querySelector(".acacias--header-dropdown--language-chooser"),r=this.config.element.querySelector(".acacias--header-dropdown--desktop"),o=this.config.element.querySelector(".acacias--footer-footnotes"),a=this.config.element.querySelector(".acacias--header-dropdown--article-toc"),s=this.config.element.querySelector(".acacias--header-dropdown--service-page-toc"),c=this.config.element.querySelector(".acacias--header-dropdown--search"),l=this.config.element.querySelector(".acacias--search-results"),u=this.config.element.querySelector(".acacias--search-input");this.deselectNaviItems(),this.toggleTocBar(!1);const d=this.config.element.querySelector(".acacias--search-btn");d.classList.add("acacias--navi-selected");const h=e.clientHeight;if(this.state){if("search"===this.state)return this.closeCurrentNavi(),void n.a.set(c,{display:"none"});if("mobile"===this.state)n.a.to(t,{duration:.15,alpha:0,display:"none"}),this.closeCurrentNavi();else{const e=r.querySelector(".cmp-navigation__item--level-0.acacias--navi-open");n.a.to(e,{duration:.15,autoAlpha:0,onComplete:()=>{e.classList.remove("acacias--navi-open")}}),this.closeCurrentNavi()}}u.value="",this.dropdown.openDesktop(h),this.openClickBg(),n.a.set(".acacias--navigation-group",{duration:0,alpha:0}),n.a.to(".acacias--navigation-group",{duration:.25,stagger:.02,alpha:1,delay:.1}),n.a.set([t,i,r,o,l,a,s].filter(e=>!!e),{display:"none"}),n.a.set(c,{display:"block"}),null==c||c.removeAttribute("inert"),this.state="search",this.scrollBlocker.block(!1),this.activateFocusTrap(),this.dropdown.dropdown.ariaModal="true",this.underlineElement(d.querySelector(".acacias--search-btn > *").getBoundingClientRect())}openDesktopNavi(e,t){this.scrollBlocker.block(!1),this.activateFocusTrap(),this.dropdown.dropdown.ariaModal="true";const i=this.config.element.querySelector(".acacias--header-dropdown"),r=this.config.element.querySelector(".acacias--header-dropdown--desktop"),o=this.config.element.querySelector(".acacias--header-dropdown--mobile"),a=this.config.element.querySelector(".acacias--header-dropdown--language-chooser"),s=this.config.element.querySelector(".acacias--footer-footnotes"),c=this.config.element.querySelector(".acacias--header-dropdown--search"),l=this.config.element.querySelector(".acacias--header-dropdown--article-toc"),u=this.config.element.querySelector(".acacias--header-dropdown--service-page-toc");this.toggleTocBar(!1);const d=i.clientHeight;n.a.set(o,{duration:0,display:"none"}),n.a.set(c,{display:"none"}),n.a.set(l,{display:"none"}),n.a.set(u,{display:"none"}),n.a.set(a,{display:"none"}),n.a.set(r,{duration:0,display:"block"});const h=r.querySelectorAll(".cmp-navigation__item--level-0").item(t),p=(h.getBoundingClientRect(),r.querySelector(".cmp-navigation__item--level-0.acacias--navi-open"));if(p==h)return void this.closeCurrentNavi();p?n.a.to(p,{duration:.15,autoAlpha:0,onComplete:()=>{p.classList.remove("acacias--navi-open")}}):(this.dropdown.openDesktop(d,450),n.a.set(s,{display:"flex"}),n.a.to(s,{duration:0,alpha:0,overwrite:!0}),n.a.to(s,{duration:1,alpha:1,delay:.25})),this.deselectNaviItems(),h.classList.add("acacias--navi-open"),e.classList.add("acacias--navi-selected"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls",this.dropdown.dropdown.id);const f=e.querySelector("span").getBoundingClientRect();f&&this.underlineElement(f),n.a.set(h,{duration:0,height:0,autoAlpha:0}),n.a.to(h,{duration:.25,height:"auto",autoAlpha:1});Array.from(h.querySelectorAll("li")).forEach((e,t)=>{n.a.set(e,{duration:0,x:f.x-5,alpha:0}),n.a.to(e,{duration:.35,x:f.x,alpha:1,delay:.25+.02*t})}),this.state="desktop",this.openClickBg()}openArticleToc(){const e=this.config.element.querySelector(".acacias--header-dropdown"),t=this.config.element.querySelector(".acacias--header-dropdown--mobile"),i=this.config.element.querySelector(".acacias--header-dropdown--language-chooser"),r=this.config.element.querySelector(".acacias--header-dropdown--desktop"),o=this.config.element.querySelector(".acacias--footer-footnotes"),a=this.config.element.querySelector(".acacias--header-dropdown--search"),s=this.config.element.querySelector(".acacias--search-results"),c=this.config.element.querySelector(".acacias--header-dropdown--article-toc"),l=this.config.element.querySelector(".acacias--header-dropdown--service-page-toc");if(this.deselectNaviItems(),this.toggleTocBar(!0),this.state){if("search"===this.state)return this.closeCurrentNavi(),void n.a.set(a,{display:"none"});if("mobile"===this.state)n.a.to(t,{duration:.15,alpha:0,display:"none"}),this.closeCurrentNavi();else{const e=r.querySelector(".cmp-navigation__item--level-0.acacias--navi-open");n.a.to(e,{duration:.15,autoAlpha:0,onComplete:()=>{e.classList.remove("acacias--navi-open")}}),this.closeCurrentNavi()}}n.a.set([t,i,r,o,s,a,l].filter(e=>!!e),{display:"none"}),n.a.set([c,e].filter(e=>!!e),{display:"block"});const u=c.clientHeight;this.dropdown.openDesktop(0,u),this.openClickBg();const d=c.querySelectorAll("li");n.a.set(d,{autoAlpha:0,x:-5}),n.a.to(d,{autoAlpha:1,x:0,duration:.3,stagger:.02,delay:.25}),this.state="articleToc",this.scrollBlocker.block(!1),this.activateFocusTrap(),this.dropdown.dropdown.ariaModal="true"}openServicePageToc(){const e=this.config.element.querySelector(".acacias--header-dropdown"),t=this.config.element.querySelector(".acacias--header-dropdown--mobile"),i=this.config.element.querySelector(".acacias--header-dropdown--language-chooser"),r=this.config.element.querySelector(".acacias--header-dropdown--desktop"),o=this.config.element.querySelector(".acacias--footer-footnotes"),a=this.config.element.querySelector(".acacias--header-dropdown--search"),s=this.config.element.querySelector(".acacias--search-results"),c=this.config.element.querySelector(".acacias--header-dropdown--article-toc"),l=this.config.element.querySelector(".acacias--header-dropdown--service-page-toc");if(this.deselectNaviItems(),this.toggleTocBar(!0),this.state){if("search"===this.state)return this.closeCurrentNavi(),void n.a.set(a,{display:"none"});if("mobile"===this.state)n.a.to(t,{duration:.15,alpha:0,display:"none"}),this.closeCurrentNavi();else{const e=r.querySelector(".cmp-navigation__item--level-0.acacias--navi-open");n.a.to(e,{duration:.15,autoAlpha:0,onComplete:()=>{e.classList.remove("acacias--navi-open")}}),this.closeCurrentNavi()}}n.a.set([t,i,r,o,s,a,c].filter(e=>!!e),{display:"none"}),n.a.set([l,e].filter(e=>!!e),{display:"block"});const u=l.clientHeight;this.dropdown.openDesktop(0,u),this.openClickBg();const d=l.querySelectorAll("li");n.a.set(d,{autoAlpha:0,x:-5}),n.a.to(d,{autoAlpha:1,x:0,duration:.3,stagger:.02,delay:.25}),this.state="serviceToc",this.scrollBlocker.block(!1),this.activateFocusTrap(),this.dropdown.dropdown.ariaModal="true"}openClickBg(){const e=this.config.element.querySelector(".acacias--close-element");n.a.to(e,{duration:.3,autoAlpha:.8})}closeClickBg(){const e=this.config.element.querySelector(".acacias--close-element");n.a.to(e,{duration:.15,autoAlpha:0})}deselectNaviItems(){const e=this.config.element.querySelectorAll(".acacias--navi-selected");e&&e.forEach(e=>{e.classList.remove("acacias--navi-selected")})}closeCurrentNavi(){if(!this.state)return;this.scrollBlocker.unblock(),this.focusTrap.deactivate(),this.dropdown.close();const e=this.config.element.querySelector(".acacias--navi-open");e&&e.classList.remove("acacias--navi-open"),this.deselectNaviItems(),this.underlineElement(null);const t=this.config.element.querySelector(".acacias--header-dropdown--language-chooser"),i=this.config.element.querySelector(".acacias--header-dropdown--article-toc"),r=this.config.element.querySelector(".acacias--header-dropdown--service-page-toc");n.a.set([t,i,r].filter(e=>!!e),{display:"none"});this.config.element.querySelector(".acacias--header-secondary-items").classList.remove("acacias--open");const o=this.config.element.querySelector(".acacias--footer-footnotes");n.a.to(o,{duration:.15,alpha:0,overwrite:!0});const a=this.config.element.querySelector("button[aria-expanded=true]");a&&(a.setAttribute("aria-expanded","false"),a.removeAttribute("aria-controls")),this.state=void 0,this.dropdown.dropdown.ariaModal="false",this.hamburgerClose(),this.closeClickBg()}initHamburgerAnimation(){this.hamburgerTl=n.a.timeline().pause(),this.hamburgerTl.to("#acacias--ham-1",{width:0,duration:.15}),this.hamburgerTl.to("#acacias--ham-4",{width:0,x:17,duration:.15},0),this.hamburgerTl.to("#acacias--ham-3",{alpha:1,duration:0},.15),this.hamburgerTl.to("#acacias--ham-2",{rotation:45,transformOrigin:"center center",scaleX:1.2,duration:.15},.15),this.hamburgerTl.to("#acacias--ham-3",{rotation:-45,transformOrigin:"center center",scaleX:1.2,duration:.15},.15)}hamburgerOpen(){this.hamburgerTl.play()}hamburgerClose(){this.hamburgerTl.reverse()}initSelectedItemBottom(e){const t=this.config.element.querySelector(".acacias--header-top"),i=document.createElement("div");i.classList.add("acacias--navi-selected-item-underline"),this.underlines.push(i),t.appendChild(i)}getUnderlineElement(){let e=this.underlines.filter(e=>e.classList.contains("acacias--underline-inactive")).slice(-1).pop();if(!e){const t=this.config.element.querySelector(".acacias--header-top");e=document.createElement("div"),e.classList.add("acacias--navi-selected-item-underline"),t.appendChild(e),this.underlines.push(e)}return e.classList.remove("acacias--underline-inactive"),e}underlineElement(e){if(this.underlines.filter(e=>e.classList.contains("acacias--underline-active")).forEach(e=>{e.classList.remove("acacias--underline-active"),n.a.to(e,{alpha:0,duration:.15,onComplete:()=>{e.classList.add("acacias--underline-inactive")}})}),e){const t=this.getUnderlineElement(),i=e.width+12;n.a.set(t,{left:e.x-.1*i,width:.5*i}),n.a.to(t,{alpha:1,duration:.45,left:e.x,width:i,ease:r.c.easeOut}),t.classList.add("acacias--underline-active")}}initLanguageChooser(e){const t=e.element.querySelector(".acacias--language-selector-btn");t&&t.addEventListener("click",e=>{e.preventDefault(),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls",this.dropdown.dropdown.id),this.openLanguageChooser()})}initSearch(e){const t=this.config.element.querySelector(".acacias--search-input"),i=e.element.querySelector(".acacias--search-input-icon");if(!t||!i)return;const r=e.element.querySelector(".acacias--search-btn");r&&r.addEventListener("click",e=>{e.preventDefault(),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-controls",this.dropdown.dropdown.id),this.openSearch()});const o=this.config.element.querySelector(".acacias--header-dropdown"),a=this.config.element.querySelector(".acacias--header-top"),s=()=>{const e=document.documentElement.clientHeight-a.clientHeight;this.dropdown.openDesktop(o.clientHeight,e)};i.addEventListener("click",s),t.addEventListener("keyup",e=>{"Enter"===e.key&&s()});const c=this.config.element.querySelector(".acacias--comp-news-showmore"),l=Array.from(this.config.element.querySelectorAll(".acacias--search-results .acacias--comp-news-item"));n.a.set(l.slice(3),{display:"none"}),c.addEventListener("click",()=>{const e=l.filter(e=>"none"===e.style.display).slice(0,3);n.a.set(e,{display:"block",opacity:0}),n.a.to(e,{opacity:1,duration:.3,ease:"power4.out"})})}initLandingPageBackground(){const e=document.querySelector(".acacias--landing-stage");if(!e)return;new IntersectionObserver(e=>{e[0].isIntersecting?this.config.element.removeAttribute("data-background"):this.config.element.setAttribute("data-background","white")}).observe(e)}initBackToTopButton(){const e=document.querySelector(".acacias--back-to-top-container"),t=null==e?void 0:e.querySelector("button");e&&t&&!e.getAttribute("data-initialized")&&(e.setAttribute("data-initialized","true"),e.style.display="block",t.addEventListener("click",()=>{window.scrollTo({top:0})}),window.addEventListener("scroll",()=>{n.a.to(t,{autoAlpha:window.scrollY>=.5*window.innerHeight?1:0,ease:"power4.out",duration:.3})}))}initArticleTableOfContents(){const e=document.querySelector("[data-article-toc]");if(e){const t=this.config.element.querySelector(".acacias--header-top"),i=e.getAttribute("data-article-toc"),r=new k({type:i});if(!r.init())return;const o=r.insertTocIntoArticle(),a=r.createNavigationBar();t.appendChild(a);const s=t.querySelector("[data-current-toc-element]");s.addEventListener("click",()=>{"articleToc"===this.state?(this.closeCurrentNavi(),s.setAttribute("data-dropdown-open","false")):(this.openArticleToc(),s.setAttribute("data-dropdown-open","true"))});this.config.element.querySelector(".acacias--close-element").addEventListener("click",()=>{s.setAttribute("data-dropdown-open","false")});const c=document.createElement("div");c.className="acacias--header-dropdown--article-toc",c.appendChild(r.createTocElement({alignWithNavigationBar:!0}));[...c.querySelectorAll("a")].forEach(e=>{e.addEventListener("click",()=>{this.closeCurrentNavi()}),e.addEventListener("keydown",e=>{"Space"===e.code&&(e.preventDefault(),this.closeCurrentNavi())})});this.config.element.querySelector(".acacias--header-dropdown .acacias--grid-wrapper").appendChild(c);const l=()=>{"articleToc"!==this.state&&n.a.to(a,{autoAlpha:0,ease:"power4.out",duration:.3})},u=()=>{n.a.to(a,{autoAlpha:1,ease:"power4.out",duration:.3})};n.a.set(a,{autoAlpha:0}),n.a.timeline({scrollTrigger:{trigger:o,onLeave:u,onEnterBack:l}})}}initServicePageTableOfContents(){if(document.querySelector("[data-service-page-toc]")){const e=this.config.element.querySelector(".acacias--header-top"),t=new I;if(!t.init())return;const i=t.insertTocIntoPage(),r=t.createNavigationBar();e.appendChild(r);const o=e.querySelector("[data-current-toc-element]");o.addEventListener("click",()=>{"serviceToc"===this.state?(this.closeCurrentNavi(),o.setAttribute("data-dropdown-open","false")):(this.openServicePageToc(),o.setAttribute("data-dropdown-open","true"))});this.config.element.querySelector(".acacias--close-element").addEventListener("click",()=>{o.setAttribute("data-dropdown-open","false")});const a=document.createElement("div");a.className="acacias--header-dropdown--service-page-toc",a.appendChild(t.createTocElement({alignWithNavigationBar:!0}));[...a.querySelectorAll("a")].forEach(e=>{e.addEventListener("click",()=>{this.closeCurrentNavi()})});this.config.element.querySelector(".acacias--header-dropdown .acacias--grid-wrapper").appendChild(a);const s=()=>window.innerWidth<=1024,c=()=>{"serviceToc"!==this.state&&n.a.to(r,{autoAlpha:0,duration:s()?.3:0})},l=()=>{n.a.to(r,{autoAlpha:1,duration:s()?.3:0})},u=()=>document.getElementById("acacias--header-spacer").getBoundingClientRect().height;n.a.set(r,{autoAlpha:0}),n.a.timeline({scrollTrigger:{trigger:i,start:()=>`${s()?"bottom":"top"}-=${u()}px`,onEnter:l,onLeaveBack:c}}),setTimeout(()=>t.setupIntersectionObservers(),100),window.addEventListener("resize",()=>requestAnimationFrame(t.setupIntersectionObservers))}}toggleTocBar(e){const t=this.config.element.querySelector(".acacias--header-dropdown");n.a.set(t,{zIndex:e?1:2})}activateFocusTrap(){setTimeout(()=>{this.focusTrap=Object(C.a)(this.dropdown.dropdown,{allowOutsideClick:!0}),this.focusTrap.activate()},0)}onWindowResize(){const e=this.config.element.querySelector(".acacias--header-top"),t=document.querySelector("#acacias--header-spacer"),i=e.getBoundingClientRect(),n=window.innerHeight;t.style.height=i.bottom-1+"px";const r=document.querySelectorAll(".acacias--anchor");for(let e=0;e{try{this.inlineCompliance=new e;this.inlineCompliance.init({container:this.config.element,isHeaderExpanded:()=>this.dropdownExpanded,updateHeaderSpacer:()=>this.updateSpacerSize()})||(this.inlineCompliance=null)}catch(e){this.inlineCompliance=null}}).catch(e=>{}),this.markActiveRouteAndRegion();const t=()=>{this.updateSpacerSize(),this.updateStickyHeaders()};t(),setTimeout(t,250),window.addEventListener("resize",()=>requestAnimationFrame(t)),window.addEventListener("profile-selector.choice",this.updateSpacerSize.bind(this))}initDropdown(){this.onDropdownResize=this.onDropdownResize.bind(this),this.dropdownOverlay=this.config.element.querySelector(".acacias--header-v2-overlay"),this.dropdownUnderline=this.config.element.querySelector(".acacias--header-v2-underline"),this.dropdownElements=[...this.dropdown.children],this.dropdownOpeners=[...this.config.element.querySelectorAll("["+this.CONSTANTS.DATA_DROPDOWN_ID+"]")],this.focusTrap=Object(C.a)(this.dropdown,{allowOutsideClick:e=>{var t;const i=e.target;return!!(null===(t=null==i?void 0:i.closest)||void 0===t?void 0:t.call(i,"["+this.CONSTANTS.DATA_DROPDOWN_ID+"]"))||(this.closeDropdown(),!1)}}),this.dropdownOpeners.forEach(e=>{const t=e.getAttribute(this.CONSTANTS.DATA_DROPDOWN_ID);e.addEventListener("click",()=>{this.openDropdownId===t?this.closeDropdown():this.openDropdown(t)})}),window.addEventListener("keydown",e=>{"Escape"===e.code&&this.dropdownExpanded&&this.closeDropdown()}),window.addEventListener("resize",()=>requestAnimationFrame(this.onDropdownResize));const e=[...this.config.element.querySelectorAll("[data-burger] rect")];this.burgerTL=n.a.timeline().pause().to(e[0],{width:0,duration:.15}).to(e[3],{width:0,x:17,duration:.15},0).to(e[2],{alpha:1,duration:0},.15).to(e[1],{rotation:45,transformOrigin:"center center",scaleX:1.2,duration:.15},.15).to(e[2],{rotation:-45,transformOrigin:"center center",scaleX:1.2,duration:.15},.15);const t=this.config.element.querySelector("#"+this.CONSTANTS.DROPDOWN_MOBILE);if(!t||!t.querySelector("a")){const e=this.config.element.querySelector("[data-burger]");n.a.set(e,{display:"none"})}}openDropdown(e){var t;this.scrollBlocker.block(!1),null===(t=this.inlineCompliance)||void 0===t||t.hide();const i=this.dropdown.clientHeight,r=[],o=[],a=[this.CONSTANTS.DROPDOWN_SEARCH,this.CONSTANTS.DROPDOWN_SERVICE_TOC,this.CONSTANTS.DROPDOWN_ARTICLE_TOC];this.dropdownElements.forEach(t=>{t.id!==e&&(t.id!==this.CONSTANTS.DROPDOWN_BOTTOM||a.includes(e))?r.push(t):o.push(t)}),r.forEach(e=>{e.inert=!0,n.a.to(e,{opacity:0,duration:.1,overwrite:"auto"})}),o.forEach(e=>{e.inert=!1,e.id!==this.CONSTANTS.DROPDOWN_BOTTOM&&n.a.fromTo(e,{opacity:0},{opacity:1,duration:.25})}),n.a.set(this.dropdown,{height:"unset",overwrite:"auto"});const s=this.dropdown.clientHeight;n.a.set(this.dropdown,{height:i,overflowY:"clip",overwrite:"auto"}),n.a.to(this.dropdown,{height:s,duration:.5,ease:N,overwrite:"auto",onComplete:()=>{var e;this.updateDropdownOverflow(),null===(e=this.inlineCompliance)||void 0===e||e.updateScrollPosition()}}),n.a.to(this.dropdownOverlay,{opacity:.8,duration:.5,ease:N,overwrite:"auto"});const c=this.dropdownElements.find(e=>e.id===this.CONSTANTS.DROPDOWN_BOTTOM);a.includes(e)?n.a.set(c,{opacity:0,overwrite:"auto"}):(i!==s&&n.a.set(c,{opacity:0,overwrite:"auto"}),n.a.to(c,{opacity:1,duration:.5,delay:.25,overwrite:"auto"})),this.dropdownOpeners.forEach(t=>{t.ariaExpanded=String(t.getAttribute(this.CONSTANTS.DATA_DROPDOWN_ID)===e)});const l=this.getDropdownOpenerBounds(e),u=null==l?void 0:l.left,d=this.dropdownElements.find(t=>t.id===e).querySelector("["+this.CONSTANTS.DATA_ALIGN_X+"]");if(d&&l){n.a.set(d,{x:u});const e=[...d.querySelectorAll("li")];n.a.fromTo(e,{opacity:0,x:t=>!!e[t].closest("ul ul")?-5:-10},{opacity:1,x:0,stagger:.2/e.length,duration:.5,delay:.25,ease:"power4.out"})}e!==this.CONSTANTS.DROPDOWN_MOBILE&&l?n.a.fromTo(this.dropdownUnderline,{x:u-.1*l.width,opacity:0,width:.5*l.width},{x:u,opacity:1,width:l.width,duration:.45,ease:"power4.out",overwrite:"auto"}):n.a.to(this.dropdownUnderline,{opacity:0,overwrite:"auto"}),e===this.CONSTANTS.DROPDOWN_MOBILE?this.burgerTL.play():this.burgerTL.reverse();const h=[this.CONSTANTS.DROPDOWN_ARTICLE_TOC,this.CONSTANTS.DROPDOWN_SERVICE_TOC];n.a.set(this.dropdown,{zIndex:h.includes(e)?3:4}),this.openDropdownId=e,this.dropdownExpanded=!0,this.dropdown.ariaModal="true",this.dropdown.inert=!1,this.focusTrap.activate()}closeDropdown(){var e;const t=this.dropdown.clientHeight;n.a.set(this.dropdown,{height:t,overwrite:"auto"}),this.dropdownElements.forEach(e=>{n.a.to(e,{opacity:0,duration:.25,overwrite:"auto"})}),n.a.to(this.dropdown,{height:0,duration:.3,overwrite:"auto",ease:N,onComplete:()=>{var e;this.dropdownElements.forEach(e=>e.inert=!0),null===(e=this.inlineCompliance)||void 0===e||e.updateScrollPosition()}}),n.a.to(this.dropdownOverlay,{opacity:0,duration:.5,overwrite:"auto",ease:N}),this.dropdownOpeners.forEach(e=>{e.ariaExpanded="false"}),n.a.to(this.dropdownUnderline,{opacity:0,duration:.45,ease:"power4.out",overwrite:"auto"}),this.burgerTL.reverse(),this.openDropdownId=void 0,this.dropdownExpanded=!1,this.dropdown.ariaModal="false",this.dropdown.inert=!0,this.focusTrap.deactivate(),this.scrollBlocker.unblock(),null===(e=this.inlineCompliance)||void 0===e||e.show()}onDropdownResize(){var e;if(!this.dropdownExpanded)return;const t={[this.CONSTANTS.DROPDOWN_MOBILE]:[0,this.CONSTANTS.DESKTOP_BREAKPOINT],[this.CONSTANTS.DROPDOWN_SEARCH]:[0,1/0],[this.CONSTANTS.DROPDOWN_LANGUAGES]:[0,1/0],[this.CONSTANTS.DROPDOWN_SERVICE_TOC]:[0,this.CONSTANTS.TABLET_BREAKPOINT],[this.CONSTANTS.DROPDOWN_ARTICLE_TOC]:[0,1/0],default:[this.CONSTANTS.DESKTOP_BREAKPOINT,1/0]},[i,r]=null!==(e=t[this.openDropdownId])&&void 0!==e?e:t.default;if(this.dropdownExpanded&&!(window.innerWidth>=i&&window.innerWidthe.id===this.openDropdownId).querySelector("["+this.CONSTANTS.DATA_ALIGN_X+"]");s&&o&&n.a.set(s.children,{x:a,overwrite:"auto"}),o&&n.a.set(this.dropdownUnderline,{x:a,overwrite:"auto"})}updateDropdownOverflow(){const e=window.innerHeight-this.headerSpacer.getBoundingClientRect().height;this.dropdownElements.filter(e=>!e.inert).reduce((e,t)=>e+t.offsetHeight,0)>=e?n.a.set(this.dropdown,{height:e,overflowY:"scroll"}):n.a.set(this.dropdown,{height:"unset",overflowY:"clip"})}getDropdownOpenerBounds(e){var t;const i=this.dropdownOpeners.find(t=>t.getAttribute(this.CONSTANTS.DATA_DROPDOWN_ID)===e);return null===(t=null==i?void 0:i.getBoundingClientRect)||void 0===t?void 0:t.call(i)}initSearch(){const e=this.config.element.querySelector(".acacias--search-input"),t=this.config.element.querySelector(".acacias--search-input-icon"),i=this.config.element.querySelector(".acacias--search-results");if(!e||!t||!i)return;const r=()=>{const e=window.innerHeight-this.topBar.getBoundingClientRect().height,t=this.dropdown.clientHeight;n.a.fromTo(this.dropdown,{height:t,overflowY:"clip"},{height:e,ease:N,duration:.5,overwrite:"auto",onComplete:()=>{n.a.set(this.dropdown,{overflowY:"scroll",overwrite:"auto"})}}),n.a.fromTo(i,{display:"block",opacity:0},{opacity:1,duration:1,ease:"power4.out"})};n.a.set(i,{display:"none"}),t.addEventListener("click",r),e.addEventListener("keyup",e=>{"Enter"===e.key&&r()})}initSkipButton(){const e=this.config.element.querySelector(".acacias--header-v2-skip");null==e||e.addEventListener("click",()=>{const e=this.config.element.nextElementSibling;if(!e)return;const t=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"details","summary","iframe","object","embed"].join(","),i=[...e.querySelectorAll(t)];let n=void 0;for(const e of i)if(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0){n=e;break}null==n||n.focus()})}initServiceTOC(){if(!!!document.querySelector("[data-service-page-toc]"))return;const e=new I;if(!e.init())return;const t=e.insertTocIntoPage(),i=e.createNavigationBar();i.inert=!0,this.topBar.appendChild(i);this.topBar.querySelector("[data-current-toc-element]").setAttribute("data-dropdown-id",this.CONSTANTS.DROPDOWN_SERVICE_TOC);const r=document.createElement("div");r.className="acacias--header-dropdown--service-page-toc",r.id=this.CONSTANTS.DROPDOWN_SERVICE_TOC,r.inert=!0;const o=document.createElement("div");o.className="acacias--grid-wrapper",r.appendChild(o),o.appendChild(e.createTocElement({alignWithNavigationBar:!0}));[...r.querySelectorAll("a")].forEach(e=>{e.addEventListener("click",()=>{this.closeDropdown()}),e.addEventListener("keydown",e=>{"Space"===e.code&&(e.preventDefault(),this.closeDropdown())})}),this.dropdown.appendChild(r);const a=()=>window.innerWidth{this.openDropdownId!==this.CONSTANTS.DROPDOWN_SERVICE_TOC&&(t.inert=!1,i.inert=!0,n.a.to(i,{autoAlpha:0,duration:a()&&!e?.3:0}))},c=()=>this.headerSpacer.getBoundingClientRect().height;s(!0),n.a.timeline({scrollTrigger:{trigger:t,start:()=>`${a()?"bottom":"top"}-=${c()}px`,onEnter:()=>(t.inert=!0,i.inert=!1,void n.a.to(i,{autoAlpha:1,duration:a()?.3:0})),onLeaveBack:()=>s()}}),setTimeout(()=>e.setupIntersectionObservers(),250),window.addEventListener("resize",()=>requestAnimationFrame(e.setupIntersectionObservers))}initArticleTOC(){const e=document.querySelector("[data-article-toc]");if(!e)return;const t=e.getAttribute("data-article-toc"),i=new k({type:t});if(!i.init())return;const r=i.insertTocIntoArticle(),o=i.createNavigationBar();o.inert=!0,this.topBar.appendChild(o);this.topBar.querySelector("[data-current-toc-element]").setAttribute("data-dropdown-id",this.CONSTANTS.DROPDOWN_ARTICLE_TOC);const a=document.createElement("div");a.className="acacias--header-dropdown--article-toc",a.id=this.CONSTANTS.DROPDOWN_ARTICLE_TOC,a.inert=!0;const s=document.createElement("div");s.className="acacias--grid-wrapper",a.appendChild(s),s.appendChild(i.createTocElement({alignWithNavigationBar:!0}));[...a.querySelectorAll("a")].forEach(e=>{e.addEventListener("click",()=>{this.closeDropdown()}),e.addEventListener("keydown",e=>{"Space"===e.code&&(e.preventDefault(),this.closeDropdown())})}),this.dropdown.appendChild(a);const c=(e=!1)=>{this.openDropdownId!==this.CONSTANTS.DROPDOWN_ARTICLE_TOC&&(r.inert=!1,o.inert=!0,n.a.to(o,{autoAlpha:0,duration:e?0:.3}))};c(!0),n.a.timeline({scrollTrigger:{trigger:r,onLeave:()=>(r.inert=!0,o.inert=!1,void n.a.to(o,{autoAlpha:1,duration:.3})),onEnterBack:()=>c()}})}initRegionChangeDisclaimer(){const[e,t,i,r]=[".acacias--disclaimer-region",".acacias--disclaimer-region-bg",".acacias--disclaimer-region .acacias--btn-secondary",".acacias--disclaimer-region .btn-continue"].map(e=>document.querySelector(e));if(!e)return;const o=Object(C.a)(e),a=i=>{n.a.to(t,{opacity:0,duration:.3,delay:.1,ease:"power4.easeOut"}),n.a.to(e,{opacity:0,y:20,duration:.2,delay:0,ease:"power4.easeOut",onComplete:()=>{n.a.set([e,t],{display:"none"}),null==i||i()}}),e.ariaModal="false",e.inert=!0,o.deactivate(),this.scrollBlocker.unblock()},s=()=>{n.a.set(e,{y:20,display:"flex",opacity:0,visibility:"visible"}),n.a.set(t,{display:"block",opacity:0,visibility:"visible"}),n.a.to(t,{opacity:1,duration:.2,ease:"power4.easeOut"}),n.a.to(e,{opacity:1,duration:.3,delay:.1,ease:"power4.easeOut"}),n.a.to(e,{y:0,duration:.5,delay:0,ease:"power4.easeOut"}),e.ariaModal="true",e.inert=!1,o.activate(),this.scrollBlocker.block()};e.role="dialog",a(),window.addEventListener("keydown",t=>{"Escape"!==t.code||e.inert||a()}),null==i||i.addEventListener("click",e=>{e.preventDefault(),a()}),null==r||r.addEventListener("click",e=>{e.preventDefault();a(()=>{window.location.href=r.getAttribute("href")})});const c=e=>e.split("/").slice(0,3).join("/"),l=[...this.config.element.querySelectorAll("#"+this.CONSTANTS.DROPDOWN_LANGUAGES+" ul li a")].map(e=>c(e.getAttribute("href"))).filter((e,t,i)=>i.indexOf(e)===t),u=c(window.location.pathname);[...document.querySelectorAll("a[href]")].filter(e=>e.getAttribute("href").startsWith("/")).filter(e=>!e.closest(".acacias--disclaimer")).filter(e=>l.some(t=>e.getAttribute("href").startsWith(t))).filter(e=>l.includes(u)&&u!==c(e.getAttribute("href"))).forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),r.setAttribute("href",e.getAttribute("href")),s()})})}initBackToTopButton(){const e=document.querySelector(".acacias--back-to-top-container"),t=null==e?void 0:e.querySelector("button");e&&t&&!e.getAttribute("data-initialized")&&(e.setAttribute("data-initialized","true"),e.style.display="block",t.addEventListener("click",()=>{window.scrollTo({top:0})}),window.addEventListener("scroll",()=>{n.a.to(t,{autoAlpha:window.scrollY>=.5*window.innerHeight?1:0,ease:"power4.out",duration:.3})}))}markActiveRouteAndRegion(){const e=[...this.config.element.querySelectorAll("#"+this.CONSTANTS.DROPDOWN_LANGUAGES+" ul li a")],t=null==e?void 0:e.find(e=>window.location.href.includes(e.href));null==t||t.classList.add("acacias--language-active");[...this.dropdown.querySelectorAll(`[href="${window.location.pathname}"]`)].forEach(e=>e.classList.add("acacias--language-active"))}updateStickyHeaders(){var e,t,i;const n=["acacias--timeline","acacias--timeline--dark","acacias--comp-map"],r=[...document.querySelectorAll(".acacias--row")].filter(e=>!n.some(t=>e.classList.contains(t))&&!n.some(t=>!!e.querySelector("."+t))),o=this.headerSpacer.getBoundingClientRect().height,a=window.innerHeight-o,s=document.querySelector(".acacias--service-page-toc, .acacias--navigation-article-toc"),c=null!==(i=null===(t=null===(e=null==s?void 0:s.getBoundingClientRect)||void 0===e?void 0:e.call(s))||void 0===t?void 0:t.height)&&void 0!==i?i:0;document.documentElement.style.setProperty("--toc-height",c+"px"),document.documentElement.style.setProperty("--sticky-header-top","calc(var(--header-height) + var(--toc-height) + 30px)"),r.forEach(e=>{const t=e.querySelector(".acacias--hub-module-title");if(!t)return;const i=!!t.querySelector(".acacias--hub-module-left-section");e.clientHeight>a&&!i?(t.classList.add("acacias--sticky-header"),t.style.top="var(--sticky-header-top)"):(t.classList.remove("acacias--sticky-header"),t.style.top="0px")})}updateSpacerSize(){const e=this.topBar.getBoundingClientRect(),t=e.bottom-1+"px";this.headerSpacer.style.height=t,document.documentElement.style.setProperty("--header-height",t),document.documentElement.style.setProperty("--header-topbar-height",e.height+"px"),document.documentElement.style.setProperty("--header-toolbar-height",e.top+"px");[...document.querySelectorAll(".acacias--anchor")].forEach(t=>t.style.top=-e.bottom+"px")}}R.NS="acacias",R.IS="header-v2-comp",R.selectors={self:"[data-"+R.NS+'-is="'+R.IS+'"]'},Object(g.a)(R);var q=i(33);class B{constructor(e){this.config=null,this.initialItemsShownCount=10,this.itemsShownCount=0,this.totalItemsCount=0,this.itemTemplates=[],e&&e.element&&(this.config=e,this.init(e))}init(e){this.config=e,this.logger=new y.a("#debugger",e.element),this.loadMoreItems=this.loadMoreItems.bind(this),this.performSearch=this.performSearch.bind(this);const t=e.element.querySelector(".acacias--search-input-icon"),i=e.element.querySelector(".acacias--search-clear-icon");this.searchResultsContainer=e.element.querySelector(".acacias--search-results"),this.searchInput=e.element.querySelector(".acacias--search-input"),this.itemTemplate=e.element.querySelector(".acacias--search-item-template").children[0],this.searchResultsItemsContainer=e.element.querySelector(".acacias--search-results-items"),this.searchResultsCounter=e.element.querySelector(".acacias--search-results-number"),this.loadMoreButton=e.element.querySelector(".acacias--comp-news-showmore"),this.noResultsMessage=e.element.querySelector(".acacias--search-no-results"),this.loader=e.element.querySelector(".acacias--search-loader"),this.apiUrl=e.element.getAttribute("data-search-endpoint"),this.siteUuid=e.element.getAttribute("data-site-uuid"),t.addEventListener("click",this.performSearch),this.searchInput.addEventListener("keyup",e=>{"Enter"===e.key&&this.performSearch()}),i.addEventListener("click",()=>{this.searchInput.value=""}),this.setupTemplates(),this.loadMoreButton.addEventListener("click",this.loadMoreItems);const n=Array.from(e.element.querySelectorAll(".acacias--search-loader .dot"));this.initLoader(n)}setupTemplates(){Array.from(document.querySelectorAll(".acacias--search-item-template")).forEach(e=>{const t=e.getAttribute("type");this.itemTemplates=[...this.itemTemplates,{type:t,element:e.children[0]}]})}getTemplate(e){var t;return null===(t=this.itemTemplates.find(t=>t.type===e))||void 0===t?void 0:t.element}createItemElement({title:e,tag:t,summary:i,img:n,href:r,article_type:o,page_type:a}){var s;let c=this.getTemplate(null!==(s=null==o?void 0:o.toLowerCase())&&void 0!==s?s:"");"contact-page"==a&&(c=this.getTemplate("contact"));const l=c.cloneNode(!0);l.querySelector(".acacias--navigation .cmp-text").innerHTML=t,l.querySelector(".large-body .cmp-text").innerHTML=e;const u=l.querySelector(".summary");return i&&u?u.innerHTML=i:u.remove(),n&&"none"!==n.toLowerCase()?l.querySelector("img").src=n:l.querySelector(".acacias--image-wrapper-news").parentElement.remove(),l.href=r,l.target="_blank",l}fetchResults(e){return this.apiUrl.startsWith("/sample_media")?q.a.get(this.apiUrl).then(e=>e.data).catch(e=>{}):q.a.post(this.apiUrl,{question:e,site_uuid:this.siteUuid}).then(e=>e.data).catch(e=>{})}clearResults(){for(;this.searchResultsItemsContainer.firstChild;)this.searchResultsItemsContainer.removeChild(this.searchResultsItemsContainer.lastChild);n.a.set([this.loadMoreButton,this.noResultsMessage],{display:"none"}),this.totalItemsCount=0,this.itemsShownCount=0}renderItems(e){if(this.totalItemsCount=e.length,e.length>this.initialItemsShownCount?(this.searchResultsCounter.innerHTML=` (${this.initialItemsShownCount} of ${e.length})`,this.itemsShownCount=this.initialItemsShownCount,n.a.set(this.loadMoreButton,{display:"flex"})):(this.searchResultsCounter.innerHTML=` (${e.length})`,this.itemsShownCount=e.length,n.a.set(this.loadMoreButton,{display:"none"})),!this.totalItemsCount)return void n.a.set(this.noResultsMessage,{display:"block"});e.forEach((e,t)=>{const i=this.createItemElement(e);this.searchResultsItemsContainer.appendChild(i),n.a.set(i,{display:"none"}),t"none"===e.style.display).slice(0,10);this.itemsShownCount+=e.length,this.itemsShownCount{this.hideLoader(),this.renderItems(e)})}showLoader(){n.a.timeline().set(this.searchResultsContainer.querySelector(".acacias--hub-module"),{opacity:0}).set(this.loader,{display:"flex",opacity:0}).to(this.loader,{opacity:1,duration:.3,ease:"power1.inOut"})}hideLoader(){n.a.timeline().set(this.loader,{display:"none"}).to(this.searchResultsContainer.querySelector(".acacias--hub-module"),{opacity:1,duration:.3,ease:"power4.inOut"})}initLoader(e){e.forEach((e,t)=>{n.a.to(e,{y:-8,delay:.2*t,yoyo:!0,repeat:-1,ease:"power1.inOut",yoyoEase:"power1.inOut",duration:.4})})}}B.NS="acacias",B.IS="search-comp",B.selectors={self:"[data-"+B.NS+'-is="'+B.IS+'"]'},Object(g.a)(B);class F{constructor(e){this.scrollBlocker=T.b.getInstance(),this.config=null,e&&e.element&&(this.config=e,this.init(e))}init(e){const t=document.querySelector(".acacias--disclaimer-region-bg"),i=document.querySelector(".acacias--disclaimer-region"),r=Array.from(e.element.querySelectorAll(".acacias--offices-module-item a")),o=Object(C.a)(i,{initialFocus:!1,allowOutsideClick:!0});if(i){const e=document.querySelector(".acacias--disclaimer-region").querySelector(".btn-continue"),a=(window.location.pathname.substring(1)+window.location.search).split("/");let s="";a.forEach(e=>{"content"!==e&&"pictet-group"!==e&&""===s&&(s=e)}),r.forEach(r=>{r.addEventListener("click",a=>{a.preventDefault(),e.setAttribute("href",r.href);r.getAttribute("href").split("/")[1]!==s?(n.a.set(i,{y:30}),n.a.to(t,{autoAlpha:1,display:"block",duration:.2,ease:"power4.out"}),n.a.to(i,{autoAlpha:1,display:"flex",duration:.3,delay:.1,ease:"power4.out",onComplete:()=>{i.inert=!1,i.ariaModal="true",this.scrollBlocker.block(),o.activate()}}),n.a.to(i,{y:0,duration:1,delay:0,ease:"power4.out"})):window.location.href=r.href})})}const a=null==r?void 0:r.find(e=>window.location.href.includes(e.href));null==a||a.classList.add("acacias--language-active")}}F.NS="acacias",F.IS="language-chooser-comp",F.selectors={self:"[data-"+F.NS+'-is="'+F.IS+'"]'},Object(g.a)(F);var j,H=i(9),U=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};!function(e){e[e.Default=0]="Default",e[e.Error=1]="Error",e[e.Success=2]="Success",e[e.Sending=3]="Sending"}(j||(j={}));class W{constructor(e){this.formState={status:j.Default,error:""},e&&e.element&&(this.config=e,this.config.container.removeAttribute(`data-${W.NS}-is`),this.submitBtn=this.config.element.querySelector('button[type="submit"]'),this.init(this.config.element))}init(e){this.initChoices(),this.initSubmit();const t=()=>{this.initFieldListeners(),e.removeEventListener("focusin",t)};e.addEventListener("focusin",t)}initChoices(){Array.from(this.config.element.querySelectorAll(".js-choice")).forEach((e,t)=>{const i="true"===e.dataset.shouldSort,n="true"===e.dataset.search,r=new H.a(e,{removeItemButton:!0,searchEnabled:n,shouldSort:i});this.addAccessibilityToListbox(e,r),r.passedElement.element.addEventListener("removeItem",()=>{this.onChoiceChange(r);const e=r.getValue(!0);if(e&&e.length<1){const e=r.containerOuter.element.querySelector(".choices__input.choices__input--cloned");e&&e.classList.remove("choices__input--cloned--placeholder--hidden")}}),r.passedElement.element.addEventListener("addItem",()=>{this.onChoiceChange(r);const e=r.containerOuter.element.querySelector(".choices__input.choices__input--cloned");e&&e.classList.add("choices__input--cloned--placeholder--hidden")}),this.config.choices[t]=r,e.setAttribute("data-choices-id",t.toString())})}initSubmit(){this.submitBtn&&this.submitBtn.addEventListener("click",e=>{e.preventDefault(),this.handleSubmit()})}initFieldListeners(){Array.from(this.config.element.querySelectorAll(W.selectors.fieldWrapper)).forEach(e=>{const t=e.firstElementChild;if(!t)return;switch(t.dataset.fieldType){case"input":this.attachInputListeners(e,"input");break;case"textarea":this.attachInputListeners(e,"textarea");break;case"radio":case"checkbox":this.attachRadioCheckboxListeners(e);break;case"select":this.attachSelectListeners(e)}})}attachInputListeners(e,t){const i=Array.from(e.querySelectorAll(t)),n=e.querySelector(".form-field-character-limit"),r=parseInt((null==n?void 0:n.dataset.characterLimit)||"",10);i.forEach(t=>{t.addEventListener("input",()=>{t.required&&e.classList.contains("error")&&/\S/.test(t.value)&&this.hideValidationError(e,W.selectors.requiredError,t),e.querySelector(W.selectors.regexError)&&this.hideValidationError(e,W.selectors.regexError,t),n&&!isNaN(r)&&this.enforceCharacterLimit(t,n,r)}),n&&!isNaN(r)&&this.enforceCharacterLimit(t,n,r)})}attachRadioCheckboxListeners(e){const t=Array.from(e.querySelectorAll("input"));t.some(e=>e.required)&&t.forEach(i=>{i.addEventListener("input",()=>{t.some(e=>e.checked)&&this.hideValidationError(e,W.selectors.requiredError,e.firstElementChild)})})}attachSelectListeners(e){const t=e.querySelector("select");if(null==t?void 0:t.required){const i=t.dataset.choicesId;let n=i?this.config.choices[parseInt(i,10)]:void 0;n||(n=t.choices),n&&n.passedElement.element.addEventListener("change",()=>{const t=n.getValue(!0);t&&t.length>0&&this.hideValidationError(e,W.selectors.requiredError,n.containerOuter.element)})}}handleSubmit(){return U(this,void 0,void 0,(function*(){if(this.formState.status!==j.Sending)if(this.validateForm()){this.addVisitorId();const e=new FormData(this.config.element),t=this.config.element.getAttribute("action");t&&(yield this.sendForm(t,e))}else this.setFormState(j.Error,W.FORM_ERROR_VALIDATION)}))}onChoiceChange(e){const t=e.getValue(!0);if(t&&t.length>0&&e.passedElement.element.required){const t=e.containerOuter.element.closest(W.selectors.fieldWrapper);t&&this.hideValidationError(t,W.selectors.requiredError,e.containerOuter.element)}}sendForm(e,t){return U(this,void 0,void 0,(function*(){this.setFormState(j.Sending);const i=e.includes("sample_media");this.submitBtn.setAttribute("data-success","false");try{const n=yield q.a[i?"get":"post"](e,t,{headers:{"Content-Type":"multipart/form-data"}});"success"===n.data.status?this.handleSuccessResponse(n.data.message):this.handleErrorResponse(n.data)}catch(e){this.setFormState(j.Error,W.FORM_ERROR_SENDING)}}))}handleSuccessResponse(e){return U(this,void 0,void 0,(function*(){yield new Promise(e=>setTimeout(e,500)),this.submitBtn.setAttribute("data-success","true"),yield new Promise(e=>setTimeout(e,1e3)),this.setFormState(j.Success);const t=this.config.container.querySelector(".acacias--form-success"),i=this.config.container.querySelector(W.selectors.form),n=this.config.container.querySelector(".acacias--success-msg"),r=this.config.container.querySelector(".acacias--form-msg-success");i&&(i.style.display="none"),t&&(t.style.display="block",n&&(n.innerHTML=e),r&&(r.style.display="flex"),window.scrollTo({top:t.getBoundingClientRect().top+window.scrollY-150*window.innerWidth/1920,behavior:"smooth"})),this.triggerAnalytics()}))}handleErrorResponse(e){this.setFormState(j.Error,e.message);const t=this.config.container.querySelector(".form-field-captcha-message");if(t&&(t.style.display="none"),e.captchaMessage){const i=this.config.container.querySelector(".acacias--form-captcha");i&&i.classList.add("error"),t&&(t.style.display="block",t.innerHTML=e.captchaMessage)}}setFormState(e,t=""){this.formState={status:e,error:t},this.updateFormView()}updateFormView(){this.submitBtn&&(this.submitBtn.classList.remove("acacias--disabled"),this.submitBtn.disabled=!1,this.formState.status===j.Sending&&(this.submitBtn.classList.add("acacias--disabled"),this.submitBtn.disabled=!0),this.updateGlobalErrors())}updateGlobalErrors(){Array.from(this.config.container.querySelectorAll(".acacias--form-msg-error")).forEach(e=>{e.style.display="none",e.removeAttribute("role")});const e=(e,t)=>{var i,n;const r=this.config.container.querySelector(e);if(r){if(t){const e=r.querySelector(".acacias--error-msg");e&&(e.innerHTML=t)}r.style.display="flex",r.setAttribute("role","alert"),r.ariaLabel=null!==(n=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==n?n:""}};if(this.formState.status===j.Error)switch(this.formState.error){case W.FORM_ERROR_SENDING:e('[data-error-type="sending-error"]');break;case W.FORM_ERROR_VALIDATION:e('[data-error-type="validation-error"]');break;default:e('[data-error-type="generic-error"]',this.formState.error)}}validateForm(){let e,t=!0;const i=Array.from(this.config.element.querySelectorAll(W.selectors.fieldWrapper));for(const n of i){const i=n.firstElementChild;if(!i)continue;let r={isValid:!0};switch(i.dataset.fieldType){case"input":case"textarea":r=this.validateTextualInput(n);break;case"radio":case"checkbox":r=this.validateCheckableGroup(n);break;case"select":r=this.validateSelect(n)}r.isValid||(t=!1,e||(e=r.elementToFocus))}return null==e||e.focus(),t}validateTextualInput(e){var t;const i=Array.from(e.querySelectorAll("input, textarea"));let n,r=!0;for(const o of i){let i=!1;o.required&&!/\S/.test(o.value)&&(this.showValidationError(e,W.selectors.requiredError,o),i=!0);const a=null===(t=e.querySelector(W.selectors.regexError))||void 0===t?void 0:t.dataset.validationRegex;a&&o.value.length>0&&!new RegExp(a).test(o.value)&&(this.showValidationError(e,W.selectors.regexError,o),i=!0),i&&(r=!1,n||(n=o))}return{isValid:r,elementToFocus:n}}validateCheckableGroup(e){const t=Array.from(e.querySelectorAll("input"));if(!t.some(e=>e.required))return{isValid:!0};return t.some(e=>e.checked)?{isValid:!0}:(this.showValidationError(e,W.selectors.requiredError,e.firstElementChild),{isValid:!1,elementToFocus:t[0]})}validateSelect(e){const t=e.querySelector("select");if(!(null==t?void 0:t.required))return{isValid:!0};const i=t.dataset.choicesId;let n=i?this.config.choices[parseInt(i,10)]:void 0;if(n||(n=t.choices),n){const t=n.getValue(!0);if(!t||0===t.length)return this.showValidationError(e,W.selectors.requiredError,n.containerOuter.element),{isValid:!1,elementToFocus:n.containerOuter.element}}return{isValid:!0}}showValidationError(e,t,i){e.classList.add("error");const n=e.querySelector(t);n&&(n.style.display="block",this.updateAriaDescribedBy(i,"add",n.id))}hideValidationError(e,t,i){e.classList.remove("error");const n=e.querySelector(t);n&&(n.style.display="none",this.updateAriaDescribedBy(i,"remove",n.id))}addVisitorId(){var e,t;const i=window._satellite,n=(null===(t=null===(e=null==i?void 0:i.getVisitorId)||void 0===e?void 0:e.call(i))||void 0===t?void 0:t.getMarketingCloudVisitorID())||"";let r=this.config.element.querySelector('input[name="visitor_id"]');if(r)r.value=n;else{r=document.createElement("input"),r.type="hidden",r.name="visitor_id",r.value=n;const e=this.config.element.querySelector(".acaciass--form-fields-hidden");null==e||e.appendChild(r)}}enforceCharacterLimit(e,t,i){var n,r;if(t&&!isNaN(i)){this.updateAriaDescribedBy(e,"add",t.id),e.value.length>i&&(e.value=e.value.slice(0,i));const o=t.querySelector(".form-field-character-count");o&&(o.innerHTML=`${e.value.length} / ${i}`),t.ariaLabel=null!==(r=null===(n=t.textContent)||void 0===n?void 0:n.trim())&&void 0!==r?r:""}e.maxLength>-1&&e.value.length>e.maxLength&&(e.value=e.value.slice(0,e.maxLength))}addAccessibilityToListbox(e,t){const i=e.id;if(!i)return;const n=document.querySelector(`label[for="${i}"]`),r=t.containerOuter.element;n&&r&&r.setAttribute("aria-label",n.textContent||"")}updateAriaDescribedBy(e,t,i){if(!e||!i)return;(Array.isArray(e)?e:[e]).forEach(e=>{if(!e)return;const n=new Set((e.getAttribute("aria-describedby")||"").split(" ").filter(Boolean));"add"===t?n.add(i):n.delete(i);const r=Array.from(n).join(" ").trim();r?e.setAttribute("aria-describedby",r):e.removeAttribute("aria-describedby")})}triggerAnalytics(){const e=this.config.element.dataset.formAnalyticsTrackingName;if(e){(window.adobeDataLayer=window.adobeDataLayer||[]).push({event:"formsubmission",form:{name:e}})}b({code:"form-submission",value:"Action"})}}function z(){document.querySelectorAll(W.selectors.self).forEach(e=>{const t=e.querySelector(W.selectors.form);t&&new W({container:e,element:t,options:{},choices:[]})})}W.NS="acacias",W.IS="form-comp",W.selectors={self:`[data-${W.NS}-is="${W.IS}"]`,form:".acacias--form",fieldWrapper:".acacias--form-field-wrapper",requiredError:".js--form-validation-required",regexError:"[data-validation-regex]"},W.FORM_ERROR_VALIDATION="validation_error",W.FORM_ERROR_SENDING="sending_error","loading"!==document.readyState?z():document.addEventListener("DOMContentLoaded",z);var V;i(29);function $(e,t,i){if(!e||!i)return;(Symbol.iterator in Object(e)?[...e]:[e]).forEach(e=>{var n;if(!e)return;const r=(null!==(n=e.getAttribute("aria-describedby"))&&void 0!==n?n:"").split(" ");let o="add"===t?[...r,i]:r.filter(e=>e!==i);o=o.filter((e,t,i)=>i.indexOf(e)===t);o.join(" ").trim()?e.setAttribute("aria-describedby",o.join(" ").trim()):e.removeAttribute("aria-describedby")})}function Y(e,t=null){let i=(t=t||document).querySelector(e);return i||(i=document.createElement("div")),i}!function(e){e[e.default=0]="default",e[e.error=1]="error",e[e.validationError=2]="validationError",e[e.success=3]="success",e[e.sending=4]="sending"}(V||(V={}));class G{constructor(e){this.config=null,this.formState={status:V.default,error:""},e&&e.element?(this.config=e,this.init(e)):alert("NO FORM INIT ")}init(e){e.container.removeAttribute("data-"+G.NS+"-is"),this.initSubmit(e)}initSubmit(e){this.submitBtn=e.element.querySelector('button[type="submit"]'),this.submitBtn&&this.submitBtn.addEventListener("click",e=>{e.preventDefault();const t=this.config.container.querySelector('input[type="hidden"][name="action"]');t&&t.setAttribute("value","subscribe"),this.onSubmit()})}onSubmit(){if(this.validateForm()){const e=this.getFormData(),t=this.config.element.getAttribute("action");e&&t&&(this.sendForm(t,e),b({code:"newsletter-registration",value:"Action"}))}else this.formState.status=V.validationError,this.formState.error="validation_error",this.updateForm()}requestConfirmation(){const e=this.config.container.querySelector('input[type="hidden"][name="action"]');e&&e.setAttribute("value","resendconfirmation"),this.onSubmit()}validateForm(){return function(e){var t,i=!0;let n=void 0;return Array.from(e.querySelectorAll(".acacias--form-field-wrapper")).forEach((e,t)=>{var r,o;if(0!=e.children.length)switch(e.children[0].getAttribute("data-field-type")){case"input":{const t=e.children[0].getElementsByTagName("input");if(0===t.length)break;let r=!1;const o=Y(".js--form-validation-required",e);t[0].required?/([^\s])/.test(t[0].value)?(o.style.display="none",$(t[0],"remove",null==o?void 0:o.id)):(o.style.display="block",r=!0,i=!1,n||(n=t[0]),$(t[0],"add",null==o?void 0:o.id)):(o.style.display="none",$(t[0],"remove",null==o?void 0:o.id));const a=e.querySelector("[data-validation-regex]");if(a){const e=new RegExp(a.getAttribute("data-validation-regex"));t[0].value.length>0&&!e.test(t[0].value)?(a.style.display="block",r=!0,i=!1,n||(n=t[0]),$(t[0],"add",null==a?void 0:a.id)):(a.style.display="none",$(t[0],"remove",null==a?void 0:a.id))}r?e.classList.add("error"):e.classList.remove("error");break}case"radio":{const t=e.children[0].querySelectorAll("input"),r=e.querySelector(".js--form-validation-required");if(t.length>0&&r){let o=!1;t.forEach(e=>{e.checked&&(o=!0)}),o?(r.style.display="none",e.classList.remove("error"),$(e.children[0],"remove",null==r?void 0:r.id)):(r.style.display="block",e.classList.add("error"),i=!1,n||(n=null==t?void 0:t[0]),$(e.children[0],"add",null==r?void 0:r.id))}break}case"checkbox":{const t=e.children[0].querySelectorAll("input"),r=e.querySelector(".js--form-validation-required");if(t.length>0&&r){let o=!1;t.forEach(e=>{e.checked&&(o=!0)}),o?(r.style.display="none",e.classList.remove("error"),$(e.children[0],"remove",null==r?void 0:r.id)):(r.style.display="block",e.classList.add("error"),i=!1,n||(n=null==t?void 0:t[0]),$(e.children[0],"add",null==r?void 0:r.id))}break}case"textarea":{const t=e.children[0].getElementsByTagName("textarea");if(0===t.length)break;let r=!1;const o=Y(".js--form-validation-required",e);t[0].required?/([^\s])/.test(t[0].value)?(o.style.display="none",$(t,"remove",null==o?void 0:o.id)):(o.style.display="block",r=!0,i=!1,n||(n=t[0]),$(t,"add",null==o?void 0:o.id)):(o.style.display="none",$(t,"remove",null==o?void 0:o.id));const a=e.querySelector("[data-validation-regex]");if(a){const e=new RegExp(a.getAttribute("data-validation-regex")),o=t[0].value;o.length>0&&!e.test(o)?(a.style.display="block",r=!0,i=!1,n||(n=t[0]),$(t,"add",null==a?void 0:a.id)):(a.style.display="none",$(t,"remove",null==a?void 0:a.id))}r?e.classList.add("error"):e.classList.remove("error");break}case"select":{const t=e.children[0].getElementsByTagName("select");if(t.length>0&&t[0].required){const a=null===(r=null==t?void 0:t[0])||void 0===r?void 0:r.choices,s=Y(".js--form-validation-required",e);if(a){const t=a.containerOuter.element,r=null===(o=null==a?void 0:a.getValue)||void 0===o?void 0:o.call(a,!0);r&&0!=r.length?(s.style.display="none",e.classList.remove("error"),$(t,"remove",null==s?void 0:s.id)):(s.style.display="block",e.classList.add("error"),i=!1,n||(n=t),$(t,"add",null==s?void 0:s.id))}else""===t[0].value?(s.style.display="block",e.classList.add("error"),i=!1,n||(n=t[0]),$(t[0],"add",null==s?void 0:s.id)):(s.style.display="none",e.classList.remove("error"),$(t[0],"remove",null==s?void 0:s.id))}break}}}),n&&(null===(t=null==n?void 0:n.focus)||void 0===t||t.call(n)),i}(this.config.element)}getFormData(){var e=this.config.element;return new FormData(e)}sendForm(e,t){this.formState.status=V.sending,this.updateForm();var i=this.config.container;q.a.post(e,t,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{"success"==e.data.status?(this.formState.status=V.success,this.formState.error=e.data.message,this.updateForm(),this.analyticsAction()):(this.formState.status=V.error,this.formState.error=e.data.message,this.updateForm())}).catch(e=>{this.formState.status=V.error,this.formState.error="sending_error",Y(".acacias--form-captcha",i).classList.remove("error"),Y(".form-field-captcha-message",i).style.display="none",this.updateForm()})}analyticsAction(){const e=this.config.element.getAttribute("data-form-analytics-tracking-name");e&&(window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"formsubmission",form:{name:e}}))}updateForm(){switch(this.formState.status){case V.success:this.submitBtn.classList.remove("acacias--disabled"),this.config.container.setAttribute("data-state","success");break;case V.error:this.submitBtn.classList.remove("acacias--disabled"),this.config.container.setAttribute("data-state","error");break;case V.sending:this.submitBtn.classList.add("acacias--disabled"),this.config.container.setAttribute("data-state","sending");break;default:this.submitBtn.classList.remove("acacias--disabled"),this.config.container.setAttribute("data-state","default")}this.updateGlobalErrors()}updateGlobalErrors(){switch(this.formState.status){case V.error:{const e=this.config.container.querySelector(".acacias--form-result-error-msg").querySelector(".acacias--error-msg");e.innerHTML=this.formState.error;const t=e.querySelector("a");t&&t.addEventListener("click",e=>{e.preventDefault(),e.stopImmediatePropagation(),this.formState.status=V.default,this.updateForm()})}break;case V.success:{const e=this.config.container.querySelector(".acacias--form-result-success-msg").querySelector(".acacias--success-msg");e.innerHTML=this.formState.error;const t=e.querySelector("a");t&&t.addEventListener("click",e=>{e.preventDefault(),e.stopImmediatePropagation(),this.requestConfirmation()})}}}updateGlobalErrorsOLD(){switch(Array.from(this.config.element.querySelectorAll(".acacias--form-msg-error")).forEach(e=>e.style.display="none"),this.formState.status){case V.error:switch(this.formState.error){case"sending_error":{const e=this.config.element.querySelector('[data-error-type="sending-error"]');e&&(e.style.display="flex")}break;case"validation_error":{const e=this.config.element.querySelector('[data-error-type="validation-error"]');e&&(e.style.display="flex")}break;default:{const e=this.config.element.querySelector('[data-error-type="generic-error"]'),t=e.querySelector(".acacias--error-msg");t&&(t.innerHTML=this.formState.error),e&&(e.style.display="flex")}}}}}function X(e){const t=document.querySelectorAll(G.selectors.self);for(let e=0;e{if(e.preventDefault(),!n)return t&&Z.a.set("pictet_disclaimer_id",t),void this.closeDisclaimer();if(n.checked){r.classList.remove("acacias--error"),o.innerHTML="",t&&Z.a.set("pictet_disclaimer_id",t);const e=location.hash;location.hash="",setTimeout(()=>{location.hash=e}),this.closeDisclaimer()}else r.classList.add("acacias--error"),o.classList.add("acacias--error")});const a=e.element.querySelector("[data-decline-compliance]");a&&a.addEventListener("click",e=>{var t,i;e.preventDefault(),e.stopImmediatePropagation();const[n,r]=[(null===(t=document.querySelector("[data-compliance-wall-cookie-profile]"))||void 0===t?void 0:t.getAttribute("data-compliance-wall-cookie-profile"))||Q.DEFAULT_COOKIE_PROFILE_NAME,null===(i=document.querySelector("[data-compliance-wall-cookie-language]"))||void 0===i?void 0:i.getAttribute("data-compliance-wall-cookie-language")];Z.a.remove(n),r&&Z.a.remove(r),this.focusTrap.deactivate(),window.dispatchEvent(new CustomEvent("disclaimer-modal.refuse"))});Array.from(e.element.querySelectorAll(".js-choice")).forEach((e,t)=>{var i,n,r,o,a;const s=!!e.querySelector('option[placeholder],option[value=""]'),c=null!==(n=null===(i=null==e?void 0:e.getAttribute)||void 0===i?void 0:i.call(e,"aria-label"))&&void 0!==n?n:"",l=new H.a(e,{removeItemButton:!0,searchEnabled:!(!e[t]||!e[t].dataset||"true"!=e[t].dataset.search),placeholder:s,placeholderValue:""});c&&(null===(a=null===(o=null===(r=null==l?void 0:l.containerOuter)||void 0===r?void 0:r.element)||void 0===o?void 0:o.setAttribute)||void 0===a||a.call(o,"aria-label",c)),e.addEventListener("change",e=>(window.location.href=e.detail.value,!1),!1)}),window.addEventListener("profile-selector.continue",()=>{this.config.element.inert||this.focusTrap.activate()})}openDisclaimer(){var e,t,i;this.config.element.classList.remove("acacias--hidden"),this.config.element.removeAttribute("inert"),this.config.element.setAttribute("aria-modal","true"),this.scrollBlocker.block(),null===(i=null===(t=null===(e=document.getElementsByClassName("acacias--overlay-bg"))||void 0===e?void 0:e[0])||void 0===t?void 0:t.classList)||void 0===i||i.remove("acacias--hidden"),this.focusTrap.activate()}closeDisclaimer(e=!1){const t=document.querySelector(".acacias--overlay-bg");this.scrollBlocker.unblock(),this.focusTrap.deactivate(),this.unhidePageContent(),n.a.to([this.config.element,t],{opacity:0,duration:e?0:.6,ease:"power4.out",onComplete:()=>{var e;null===(e=this.config.element)||void 0===e||e.remove(),null==t||t.remove()}})}unhidePageContent(){var e,t;null===(t=null===(e=document.querySelector(".acacias--page-content.acacias--hidden"))||void 0===e?void 0:e.classList)||void 0===t||t.remove("acacias--hidden")}}function te(){const e=document.querySelectorAll(ee.selectors.self);for(let t=0;t{e.preventDefault(),this.closeDisclaimer()}),a.addEventListener("click",e=>{e.preventDefault(),this.openDisclaimer()}),c.addEventListener("click",()=>{this.userCountryCode&&Z.a.set(this.cookieName,this.userCountryCode)})}const l=this.getCountryCode();this.userCountryCode=l;let u=!1;this.userCountryCode!==Z.a.get(this.cookieName)&&(u=!0);const d=this.getRegionDataFromCountryCode();d&&(t.innerHTML=i.replace(this.countryNamePlaceholder,d.name),a.innerHTML=d.name,s?c.setAttribute("href",d.href):a.addEventListener("click",()=>{window.location.href=d.href}),u&&(n.a.set(this.config.element,{display:"block"}),this.config.element.ariaLive="polite"))}openDisclaimer(){const e=document.querySelector(".acacias--disclaimer-region-bg"),t=document.querySelector(".acacias--disclaimer-region");this.focusTrap||(this.focusTrap=Object(C.a)(t,{initialFocus:!1,allowOutsideClick:!0})),n.a.set(t,{y:30}),n.a.to(e,{autoAlpha:1,display:"block",duration:.2,ease:"power4.out"}),n.a.to(t,{autoAlpha:1,display:"flex",duration:.3,delay:.1,ease:"power4.out",onComplete:()=>{null==t||t.removeAttribute("inert"),null==t||t.setAttribute("aria-modal","true"),this.scrollBlocker.block(),this.focusTrap.activate()}}),n.a.to(t,{y:0,duration:1,delay:0,ease:"power4.out"})}closeDisclaimer(){var e,t;const i=document.querySelector(".acacias--disclaimer-region-bg"),r=document.querySelector(".acacias--disclaimer-region");n.a.to(i,{autoAlpha:0,duration:.3,delay:.1,ease:"power4.out"}),n.a.to(r,{autoAlpha:0,duration:.2,ease:"power4.out"}),n.a.to(r,{y:20,duration:.2,delay:0,ease:"power4.out"}),null==r||r.setAttribute("inert",""),null==r||r.removeAttribute("aria-modal"),this.scrollBlocker.unblock(),null===(t=null===(e=this.focusTrap)||void 0===e?void 0:e.deactivate)||void 0===t||t.call(e)}dismiss(){Z.a.set(this.cookieName,this.userCountryCode),n.a.to(this.config.element,{opacity:0,pointerEvents:"none",duration:.8,ease:"power4.out",onComplete:()=>{n.a.set(this.config.element,{display:"none"})}})}getCountryCode(){try{const e=document.querySelector("#user-countrycode").innerHTML.trim();return JSON.parse(e).countryCode}catch(e){}return""}getRegionDataFromCountryCode(){var e,t;let i;i=window.location.host.startsWith("localhost:6006")||window.location.host.startsWith("pictet-site-preview")?(null===(e=document.querySelector("html"))||void 0===e?void 0:e.getAttribute("lang__NOT_FOUND"))||"de-DE":(null===(t=document.querySelector("html"))||void 0===t?void 0:t.getAttribute("lang"))||"en";const[n,r]=i.split("-");if("en"==i)return;if(r===this.userCountryCode)return;const o=[...document.querySelectorAll(".acacias--language-chooser a.cmp-navigation__item-link, .acacias--header-v2-dropdown-languages a")].filter(e=>e.getAttribute("data-country-code")===this.userCountryCode),a=o.find(e=>e.getAttribute("data-language-code")===n)||(null==o?void 0:o[0]);if(!a)return;return{name:a.textContent.trim(),href:a.href}}}ie.NS="acacias",ie.IS="region-change-suggestion-comp",ie.selectors={self:"[data-"+ie.NS+'-is="'+ie.IS+'"]'},Object(g.a)(ie),function(e){e[e.Hidden=0]="Hidden",e[e.Visible=1]="Visible"}(K||(K={}));class ne{constructor(e){this.config=null,this.viewportPadding=20,this.themeClasses=["acacias--prix-pictet","acacias--timeline--dark","acacias--blog-pictet"],this.tooltipState=K.Hidden,this.previousViewportWidth=window.innerWidth,e&&e.element&&(this.config=e,this.init(e))}init(e){var t,i;this.logger=new y.a("#debugger",e.element),this.hideTooltip=this.hideTooltip.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.positionTooltip=this.positionTooltip.bind(this),this.showTooltip=this.showTooltip.bind(this);let n=document.querySelector(".acacias--tooltips");n||(n=document.createElement("div"),n.classList.add("acacias--tooltips"),document.body.appendChild(n)),this.tooltipContainer=document.createElement("div"),this.tooltipContainer.classList.add("acacias--tooltip--container"),this.tooltipContainer.setAttribute("role","tooltip"),this.tooltipContainer.ariaHidden="true";const r=document.createElement("div");r.classList.add("acacias--tooltip--title"),r.innerHTML=(null===(t=e.element.attributes.getNamedItem("data-acacias-tooltip-title"))||void 0===t?void 0:t.value)||"No tooltip title found",this.tooltipContainer.appendChild(r);const o=document.createElement("div");o.classList.add("acacias--tooltip--content"),o.innerHTML=(null===(i=e.element.attributes.getNamedItem("data-acacias-tooltip-content"))||void 0===i?void 0:i.value)||"No tooltip content found",this.tooltipContainer.appendChild(o),this.themeClasses.forEach(t=>{e.element.closest("."+t)&&this.tooltipContainer.classList.add(t)}),n.appendChild(this.tooltipContainer),this.tooltipContainer.id="tooltip-"+n.children.length,Array.from(e.element.childNodes).forEach(e=>{if("#text"===e.nodeName){const t=document.createElement("span");t.innerHTML=e.textContent,t.classList.add("acacias--tooltip--underlined-text"),e.replaceWith(t)}}),e.element.addEventListener("mousemove",this.showTooltip),e.element.addEventListener("focusin",()=>setTimeout(this.showTooltip,50)),e.element.addEventListener("blur",this.hideTooltip),e.element.setAttribute("tabindex","0"),e.element.setAttribute("aria-describedby",this.tooltipContainer.id),window.addEventListener("resize",()=>{window.innerWidth!==this.previousViewportWidth&&(this.previousViewportWidth=window.innerWidth,this.hideTooltip())},!0)}positionTooltip(){const e=this.config.element.getBoundingClientRect(),t=this.tooltipContainer.getBoundingClientRect();let i=e.bottom{if("true"===t.dataset.filler)return void(t.ariaHidden="true");const i=t.querySelector(".acacias--services-component-item-title"),n=t.querySelector(".acacias--services-component-item-description"),r=t.querySelector("a");if(!i||!n)return;e?(t.role="group",t.ariaRoleDescription="slide"):t.role="listitem";const[o,a]=[this.getId(),this.getId()];i.id=o,n.id=a,null==t||t.setAttribute("aria-labelledby",o),null==t||t.setAttribute("aria-describedby",a),null==r||r.setAttribute("aria-labelledby",o)})}initCarousel(){const e=this.config.element.querySelector(".acacias--services-component-overflow");this.carousel=Object(re.a)(e,{align:"start"}),e.addEventListener("wheel",this.onWheel);const[t,i]=[...this.config.element.querySelectorAll(".acacias--services-component-navigation")];t.addEventListener("click",()=>this.carousel.scrollPrev()),i.addEventListener("click",()=>this.carousel.scrollNext());const n=()=>{t.disabled=!this.carousel.canScrollPrev(),i.disabled=!this.carousel.canScrollNext()};this.carousel.on("reInit",n),this.carousel.on("select",n),n();this.config.element.addEventListener("keydown",e=>{"ArrowLeft"===e.key?(e.preventDefault(),this.carousel.scrollPrev()):"ArrowRight"===e.key&&(e.preventDefault(),this.carousel.scrollNext())})}onWheel(e){if(!this.carousel)return;const t=e.deltaX,i=Math.abs(t);i>=1&&e.preventDefault();const n=t>0?-1:1;this.carousel.internalEngine().scrollTo.distance(n*i,!1)}getId(){return this.idSuffix++,"«sc"+this.baseId+"-el"+this.idSuffix+"»"}}ae.NS="acacias",ae.IS="services-comp",ae.selectors={self:"[data-"+ae.NS+'-is="'+ae.IS+'"]'},Object(g.a)(ae);let se=0;class ce{constructor(e){this.config=null,this.baseId=0,this.idSuffix=0,e&&e.element&&(this.config=e,this.init(e))}init(e){this.logger=new y.a("#debugger",e.element),se++,this.baseId=se,this.onWheel=this.onWheel.bind(this),this.items=[...e.element.querySelectorAll(".acacias--quote-photo-item")],this.initCarousel(),this.initAccessibility()}initAccessibility(){this.items.forEach(e=>{var t;if("true"===e.dataset.filler)return void(e.ariaHidden="true");const i=null!==(t=e.querySelector(".acacias--quote-photo-item-tag"))&&void 0!==t?t:e.querySelector(".acacias--quote-photo-item-name");if(!i)return;const n=this.getId();i.id=n,null==e||e.setAttribute("aria-labelledby",n)})}initCarousel(){const[e,t]=[...this.config.element.querySelectorAll(".acacias--quote-photo-navigation")],i=this.config.element.getAttribute("data-variant");if("large"===i&&this.items.length-1<=1||"medium"===i&&this.items.length-1<=2)return e.style.display="none",void(t.style.display="none");const n=this.config.element.querySelector(".acacias--quote-photo-overflow");this.carousel=Object(re.a)(n,{align:"start"}),n.addEventListener("wheel",this.onWheel),e.addEventListener("click",()=>this.carousel.scrollPrev()),t.addEventListener("click",()=>this.carousel.scrollNext());const r=()=>{e.disabled=!this.carousel.canScrollPrev(),t.disabled=!this.carousel.canScrollNext()};this.carousel.on("reInit",r),this.carousel.on("select",r),r();this.config.element.addEventListener("keydown",e=>{"ArrowLeft"===e.key?(e.preventDefault(),this.carousel.scrollPrev()):"ArrowRight"===e.key&&(e.preventDefault(),this.carousel.scrollNext())})}onWheel(e){if(!this.carousel)return;const t=e.deltaX,i=Math.abs(t);i>=1&&e.preventDefault();const n=t>0?-1:1;this.carousel.internalEngine().scrollTo.distance(n*i,!1)}getId(){return this.idSuffix++,"«qp"+this.baseId+"-el"+this.idSuffix+"»"}}ce.NS="acacias",ce.IS="quote-photo-comp",ce.selectors={self:"[data-"+ce.NS+'-is="'+ce.IS+'"]'},Object(g.a)(ce);class le{constructor(e){if(this.config=null,e&&e.element){this.config=e;var t=e.element.querySelector(".acacias--allfunds-continue");e.element.querySelector(".cmp-form-text__text").addEventListener("input",i=>{var n=e.element.querySelector(".cmp-form-text__text").value;null==n||""==n?t.classList.add("acacias--disabled"):t.classList.remove("acacias--disabled")}),t.addEventListener("click",t=>{t.preventDefault(),e.element.querySelector(".acacias--loader").classList.remove("hidden"),this.getData(e)}),e.element.removeAttribute("data-"+le.NS+"-is")}}getData(e){var t=e.element.querySelector(".acacias--form-field-wrapper"),i=e.element.querySelector(".cmp-form-text__text").value,n="",r=e.element.querySelector('[name="h-captcha-response"]');null!==r&&(n=r.value);var o=e.container.getAttribute("data-acacias-url"),a=e.element.querySelector(".table-prices"),s=e.element.querySelector(".table-documents");e.element.querySelector(".table-prices-container").style.display="none",e.element.querySelector(".table-documents-container").style.display="none",e.element.querySelector(".acacias--loader").classList.add("hidden");var c=window.location.host.startsWith("localhost:6006")||window.location.host.startsWith("pictet-site-preview")?o+i:o+"?isin="+i+"&h-captcha-response="+n;fetch(c).then(e=>e.json()).then(i=>{if(i.status)t.classList.remove("error"),this.getOptionalHTMLElement(".form-field-captcha-message").style.display="none",this.init(e,i);else{if(a.innerHTML="",s.innerHTML="",this.getOptionalHTMLElement(".form-field-captcha-message").style.display="none",t.classList.remove("error"),i.errorMessage){var n=e.element.querySelector(".form-field-message");t.classList.add("error"),n.innerHTML=i.errorMessage}i.captchaMessage&&(this.getOptionalHTMLElement(".acacias--form-captcha").classList.add("error"),this.getOptionalHTMLElement(".form-field-captcha-message").style.display="block",this.getOptionalHTMLElement(".form-field-captcha-message").innerHTML=i.captchaMessage)}if(window.hcaptcha)try{window.hcaptcha.reset()}catch(e){}}).catch(i=>{a.innerHTML="",s.innerHTML="";e.element.querySelector(".form-field-message");t.classList.add("error")})}init(e,t){var i=e.element.querySelector(".table-prices"),n=e.element.querySelector(".table-documents");t.GetPrices.forEach((function(e){i.innerHTML+=""+e.displayDate+''+e.value+''+e.currency+""})),t.SearchDocument.forEach((function(e){n.innerHTML+=""+e.kind+''+e.displayDate+''+e.file_format+""})),e.element.querySelector(".table-prices-container").style.display="inline",e.element.querySelector(".table-documents-container").style.display="inline"}getOptionalHTMLElement(e,t=null){let i=(t=t||this.config.element).querySelector(e);return i||(i=document.createElement("div")),i}}function ue(){const e=document.querySelectorAll(le.selectors.self);for(let t=0;t{const t=document.createElement("div");t.innerHTML=e;const i=t.innerText;return t.remove(),i};let he=0;class pe{constructor(e){this.config=null,this.glossaryCount=0,this.idCount=0,this.letterButtons=[],this.letters=[],this.terms=[],this.visibleLetters=new Set,this.letterButtonClickTimeout=void 0,this.observers=[],e&&e.element&&(this.config=e,this.init(e))}init(e){this.logger=new y.a("#debugger",e.element),he++,this.glossaryCount=he;const t=[...e.element.querySelectorAll("[data-glossary-term]")];this.terms=t.map(e=>{const t=e.getAttribute("data-glossary-term").toLowerCase().trim(),i=e.querySelector(".acacias--glossary-term-description").innerHTML.toLowerCase().trim();return{name:t,description:i,searchString:t+" "+de(i),element:e}}).sort((e,t)=>e.name.localeCompare(t.name)),this.searchInput=e.element.querySelector("[data-search-input]"),this.noResultsFound=e.element.querySelector("[data-no-results]"),this.resultsCount=e.element.querySelector(".acacias--glossary-results-count");const i=e.element.querySelector("[data-clear-button]");this.initLetterButtons(),this.searchInput.addEventListener("input",()=>this.onInput(this.searchInput.value)),i.addEventListener("click",()=>this.onInput("")),this.initTermsScroller(),this.onInput(""),setTimeout(()=>{this.onVisibleLettersChange("a",!0),this.initObservers()},100),window.addEventListener("resize",()=>{this.initObservers()})}initLetterButtons(){const e=this.config.element.querySelector("[data-letter-buttons]");this.letters=this.terms.map(e=>e.name[0]).filter((e,t,i)=>i.indexOf(e)===t).sort(),this.letters.forEach(t=>{const i=document.createElement("li"),n=document.createElement("button");n.innerText=t,n.setAttribute("data-active",String("a"===t)),n.setAttribute("data-letter",t),n.addEventListener("click",()=>this.onLetterButtonClick(t)),i.appendChild(n),e.appendChild(i),this.letterButtons.push(n)})}initTermsScroller(){this.scrollContainer=this.config.element.querySelector("[data-folders-container]"),this.letters.forEach(e=>{const t=document.createElement("div");t.classList.add("acacias--glossary-terms-folder"),t.setAttribute("data-module-letter",e),this.terms.forEach(i=>{if(i.name[0]===e){t.appendChild(i.element);const e=i.element.querySelector("h4"),n=this.getAccessibleId();e.id=n,i.element.setAttribute("aria-labelledby",n),i.element.setAttribute("data-visible","true")}}),setTimeout(()=>{const i=this.isElementVisible(t);this.onVisibleLettersChange(e,i)},10),this.scrollContainer.appendChild(t)})}initObservers(){var e,t;this.observers.forEach(e=>e.disconnect()),this.observers=[];const i=(null!==(t=null===(e=document.querySelector("#acacias--header-spacer"))||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)+60;this.letters.forEach(e=>{const t=this.config.element.querySelector(`[data-module-letter="${e}"]`),n=new IntersectionObserver(([{isIntersecting:t}])=>{this.onVisibleLettersChange(e,t)},{rootMargin:-1*i+"px"});n.observe(t),this.observers.push(n)})}onVisibleLettersChange(e,t){[...this.visibleLetters.keys()].forEach(e=>{const t=this.config.element.querySelector(`[data-module-letter="${e}"]`),i=!!t&&this.isElementVisible(t);this.visibleLetters[i?"add":"delete"](e)}),this.visibleLetters[t?"add":"delete"](e);const i=[...this.visibleLetters.keys()].sort((e,t)=>e.localeCompare(t))[0];this.letterButtons.forEach(e=>{e.setAttribute("data-active",String(e.getAttribute("data-letter")===i))})}onLetterButtonClick(e){var t,i,n,r;const o=this.config.element.querySelector(`[data-module-letter="${e}"]`),a=!!o.querySelector("[data-top=true]"),s=o.getBoundingClientRect(),c=null!==(i=null===(t=document.querySelector("#acacias--header-spacer"))||void 0===t?void 0:t.clientHeight)&&void 0!==i?i:0,l=null!==(r=null===(n=this.config.element.querySelector(".acacias--hub-module-title"))||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:0,u=this.config.element.getBoundingClientRect().bottom-l-c,d=Math.min(u,s.top);document.documentElement.scrollBy({top:d-c+(a?-30:0),behavior:"smooth"}),clearTimeout(this.letterButtonClickTimeout),this.letterButtonClickTimeout=setTimeout(()=>{this.letterButtons.forEach(t=>{t.setAttribute("data-active",String(t.getAttribute("data-letter")===e))})},1500)}isIncluded(e,t){const i=t.replace(/\s/g,"").toLowerCase(),n=e.replace(/\s/g,"").toLowerCase();return de(i).includes(n)}onInput(e){this.searchInput.value=e,e.length>=1?this.filterTerms(t=>this.isIncluded(e,t.searchString)):this.filterTerms(()=>!0)}filterTerms(e){var t,i;let r=0;this.terms.forEach(t=>{const i=e(t);n.a.set(t.element,{display:i?"block":"none"}),t.element.setAttribute("data-visible",String(i)),r+=i?1:0,t.element.removeAttribute("data-top")}),this.letterButtons.forEach(e=>{const t=e.getAttribute("data-letter"),i=!!this.config.element.querySelector(`[data-module-letter="${t}"] [data-glossary-term][data-visible=true]`);e.disabled=!i}),n.a.set(this.noResultsFound,{display:0===r?"block":"none"});this.terms.filter(e=>"block"===e.element.style.display).slice(0,2).filter((e,t,i)=>i[0].name[0]===e.name[0]).forEach(e=>e.element.setAttribute("data-top","true"));const o=r>0&&r!==this.terms.length;this.resultsCount.style.display=o?"block":"none";const a=1===r?"data-translation-singular":"data-translation-plural",s=this.resultsCount.getAttribute(a)||(1===r?"result found":"results found");this.resultsCount.innerHTML=`${r} ${s}`;const c=null!==(i=null===(t=document.querySelector("#acacias--header-spacer"))||void 0===t?void 0:t.clientHeight)&&void 0!==i?i:0;this.config.element.style.scrollMarginTop=c+30+"px",this.config.element.scrollIntoView()}getAccessibleId(){return this.idCount++,`«glossary-${this.glossaryCount}-${this.idCount}»`}isElementVisible(e){var t,i;const n=e.getBoundingClientRect(),r=(null!==(i=null===(t=document.querySelector("#acacias--header-spacer"))||void 0===t?void 0:t.clientHeight)&&void 0!==i?i:0)+60;return!(n.top>=window.innerHeight-r||n.bottom"SELECT"===e.tagName),o=n.filter(e=>"checkbox"===e.getAttribute("type")),a=this.config.element.querySelector('button[type="submit"]'),[s,c,l]=[...this.config.element.querySelectorAll(".js-choice-fund-library-disclaimer")],u=new H.a(s,{searchEnabled:!0,fuseOptions:{threshold:0},choices:this.configData.locations.map(e=>({label:e.name,value:e.path,customProperties:{languages:e.languages}})),allowHTML:!1}),d=new H.a(c,{searchEnabled:!1,allowHTML:!1}),h=new H.a(l,{searchEnabled:!1,allowHTML:!1,shouldSort:!1});d.disable(),h.disable(),this.locationChoices=u,this.languageChoices=d,this.profileChoices=h;const p=()=>{r.every(e=>!!e.value)&&o.every(e=>e.checked)?(a.classList.remove("acacias--disabled"),a.disabled=!1):(a.classList.add("acacias--disabled"),a.disabled=!0)};s.addEventListener("showDropdown",()=>{u.clearInput()}),s.addEventListener("choice",e=>{var t,i;const n=null==e?void 0:e.detail;if(!(null==n?void 0:n.value))return;this.config.selectedProfile.location=n.value;const r=null!==(i=null===(t=null==n?void 0:n.customProperties)||void 0===t?void 0:t.languages)&&void 0!==i?i:[];this.clearChoices(d,r.map(e=>({label:e.name,value:e.path,customProperties:{profiles:e.profiles}}))),d.enable(),this.clearChoices(h),h.disable(),p()}),c.addEventListener("choice",e=>{var t,i;const n=null==e?void 0:e.detail;if(!(null==n?void 0:n.value))return;this.config.selectedProfile.language=n.value;const r=null!==(i=null===(t=null==n?void 0:n.customProperties)||void 0===t?void 0:t.profiles)&&void 0!==i?i:[];this.clearChoices(h,r.map(e=>({label:e.name,value:e.path}))),h.enable(),p()}),l.addEventListener("choice",e=>{var t,i;this.config.selectedProfile.profile=null!==(i=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.value)&&void 0!==i?i:""}),i.addEventListener("change",p),p(),a.addEventListener("click",e=>{e.preventDefault(),a.classList.contains("acacias--disabled")||this.config.onContinue()});const f=this.getChoicesFromPathname(),m=this.configData.locations.find(e=>e.path===f.location);if(!m)return;const g=new CustomEvent("choice",{detail:{value:m.path,customProperties:{languages:m.languages}}});s.dispatchEvent(g),u.setChoiceByValue(m.path);const v=m.languages.find(e=>e.path===f.language);if(!v)return;const y=new CustomEvent("choice",{detail:{value:v.path,customProperties:{profiles:v.profiles}}});c.dispatchEvent(y),d.setChoiceByValue(v.path);const b=v.profiles.find(e=>e.path===f.profile);if(!b)return;const w=new CustomEvent("choice",{detail:{value:b.path}});l.dispatchEvent(w),h.setChoiceByValue(b.path)}))}getTrimmedPathname(){let e=location.pathname.indexOf(this.pathNameSuffix);-1===e&&(e=void 0);const t=location.pathname.slice(0,e)+(void 0!==e?this.pathNameSuffix:"");return t.endsWith("/")?t.slice(0,-1):t}getChoicesFromPathname(){var e;const t=this.getTrimmedPathname(),i=location.pathname.replace(t+"/","").split("/");return{location:i[0],language:i[1],profile:null===(e=i[2])||void 0===e?void 0:e.replace(".html","")}}clearChoices(e,t=[]){const i=e._placeholderValue;e.clearStore(),e.setChoices([...t,{value:"",label:i,placeholder:!0}]),e.setChoiceByValue("")}updateSelectsFromProfileData(e){this.locationChoices.setChoiceByValue(e.location),e.location&&(this.languageChoices.enable(),this.languageChoices.setChoiceByValue(e.language),e.language&&this.profileChoices.setChoiceByValue(e.profile))}}var ge=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class ve{constructor(e){this.config=null,this.isProfileSelectorOpen=!1,this.selectedProfile={language:"",location:"",profile:""},this.pageRowsCount=50,this.pagesVisible=1,this.filteredRowCount=0,this.filter="",this.nameSort="asc",this.scrollTriggerTimeline=void 0,this.scrollBlocker=T.b.getInstance(),this.synchronizeHeaderThs=()=>{const e=[...document.querySelectorAll(".acacias--fund-library-table-sticky-head-container th")];[...this.config.element.querySelectorAll("th")].forEach((t,i)=>{n.a.set(e[i],{minWidth:t.getBoundingClientRect().width})})},e&&e.element&&(this.config=e,this.init(e))}init(e){var t;return ge(this,void 0,void 0,(function*(){const i=e.element.getAttribute("data-funds-endpoint"),n=yield fetch(i),r=yield n.json();this.rowData=r.results,this.pageRowsCount=parseInt(null!==(t=e.element.getAttribute("data-page-rows-count"))&&void 0!==t?t:"50"),yield this.initProfileSelector(),this.initProfileSelectorTerms(),this.initFiltering(),this.renderRows(),this.initPagination(),this.initStickyHeader(),this.initSort(),e.element.setAttribute("data-loading","false")}))}createStickyHeaderContainer(){const e=this.config.element.querySelector(".acacias--fund-library-table-table-wrapper"),t=document.createElement("div");t.className="acacias--fund-library-table-sticky-head-container";const i=document.createElement("div");i.className="acacias--grid-wrapper";const n=document.createElement("div");n.className="acacias-Grid",document.body.appendChild(t),t.appendChild(i),i.appendChild(n);const r={table:!1,grid:!1};return e.addEventListener("scroll",()=>{r.table||(r.grid=!0,n.scrollTo({left:e.scrollLeft})),r.table=!1}),n.addEventListener("scroll",()=>{r.grid||(r.table=!0,e.scrollTo({left:n.scrollLeft})),r.grid=!1}),{outer:t,inner:n}}createCustomScrollbar(e){const t=document.createElement("div");t.className="acacias--fund-library-table-scroll-track";const i=document.createElement("div");i.className="acacias--fund-library-table-scroll-thumb",t.appendChild(i);let r=1;e.addEventListener("scroll",()=>{const o=(a=e).scrollLeft/(e=>e.scrollWidth-e.clientWidth)(a);var a;n.a.to(i,{x:o*(1-r)*t.clientWidth,duration:.05})});const o=()=>{r=e.clientWidth/e.scrollWidth,n.a.set(i,{width:100*r+"%"})};new ResizeObserver(o).observe(e),o();const a={pointerX:0,scrollLeft:0};let s=!1;const c=e=>{n.a.to(t,{scaleY:"small"===e?1:1.5,duration:.1})},l=t=>{const i=t.clientX-a.pointerX;e.scrollTo({left:a.scrollLeft+i})},u=()=>{window.removeEventListener("pointermove",l),c("small"),s=!1};return t.addEventListener("pointerdown",t=>{t.preventDefault(),t.stopPropagation(),a.pointerX=t.clientX,a.scrollLeft=e.scrollLeft,c("large"),s=!0,window.addEventListener("pointermove",l),window.addEventListener("pointerup",u)}),t.addEventListener("pointermove",()=>{c("large")}),t.addEventListener("pointerleave",()=>{s||c("small")}),{track:t,thumb:i}}initStickyHeader(){var e;const t=this.config.element.querySelector("thead"),i=this.config.element.querySelector("table"),r=this.config.element.querySelector(".acacias--fund-library-table-table-wrapper"),o=this.createStickyHeaderContainer();o.inner.appendChild(t.cloneNode(!0));const a=this.createCustomScrollbar(r);r.insertBefore(a.track,r.firstElementChild);const s=this.createCustomScrollbar(r);o.inner.appendChild(s.track);const c=document.querySelector("#acacias--header-spacer"),l=()=>{var e;return null!==(e=null==c?void 0:c.clientHeight)&&void 0!==e?e:0},u=()=>.7*window.innerHeight,d=()=>i.clientHeight-window.innerHeight+u()+l(),h=this.synchronizeHeaderThs;null===(e=this.scrollTriggerTimeline)||void 0===e||e.kill(),this.scrollTriggerTimeline=n.a.timeline({scrollTrigger:{trigger:i,start:()=>`top-=${l()} top`,end:()=>`bottom+=${u()} bottom`,onLeave(){n.a.set(o.outer,{opacity:0,pointerEvents:"none"}),n.a.set([t,a.track],{z:1,y:d()})},onLeaveBack(){n.a.set(o.outer,{opacity:0,pointerEvents:"none"}),n.a.set([t,a.track],{y:0})},onEnter(){h(),n.a.set(o.outer,{opacity:1,pointerEvents:"auto"}),n.a.set([t,a.track],{y:0})},onEnterBack(){h(),n.a.set(o.outer,{opacity:1,pointerEvents:"auto"}),n.a.set([t,a.track],{y:0})},onRefresh(e){h(),e.progress>=1&&n.a.set([t,a.track],{z:1,y:d()})}}})}initFiltering(){const e=this.config.element.querySelector(".acacias--fund-library-table-search input");e.addEventListener("input",()=>{this.filter=e.value.trim(),this.pagesVisible=1,this.renderRows(),this.updatePagination()})}filterMatchesFund(e,t){if(!e)return!0;const i=e.toLowerCase(),n=t.date?new Date(t.date).toLocaleDateString("fr-CH"):t.date;return[t.name,t.subtitle,t.isin,n,t.nav].map(e=>null==e?void 0:e.toLowerCase()).some(e=>null==e?void 0:e.includes(i))}initPagination(){const e=this.config.element.querySelector(".acacias--fund-library-table-table-wrapper");this.config.element.querySelector("button[data-load-more]").addEventListener("click",()=>{this.pagesVisible++,this.renderRows(),this.updatePagination(),e.scroll({top:e.scrollHeight})});this.config.element.querySelector("button[data-load-all]").addEventListener("click",()=>{this.pagesVisible=1/0,this.renderRows(),this.updatePagination(),e.scroll({top:e.scrollHeight})}),this.updatePagination()}updatePagination(){var e,t;const i=[...this.config.element.querySelectorAll("button[data-load-more], button[data-load-all]")],r=[...this.config.element.querySelectorAll("[data-current-results]")],o=[...this.config.element.querySelectorAll("[data-total-results]")],a=this.pagesVisible*this.pageRowsCounte.innerHTML=String(s)),o.forEach(e=>e.innerHTML=String(this.rowData.length));const c=this.config.element.querySelector("[data-singular-results]"),l=this.config.element.querySelector("[data-plural-results]");1===s?(n.a.set(c,{display:"block"}),n.a.set(l,{display:"none"})):(n.a.set(l,{display:"block"}),n.a.set(c,{display:"none"})),null===(t=null===(e=this.scrollTriggerTimeline)||void 0===e?void 0:e.scrollTrigger)||void 0===t||t.refresh()}initSort(){const e=[...document.documentElement.querySelectorAll('button[data-sort="name"]')];e.forEach(t=>t.addEventListener("click",()=>{this.nameSort="asc"===this.nameSort?"desc":"asc",this.renderRows(),e.forEach(e=>e.setAttribute("data-sort-direction",this.nameSort))})),e.forEach(e=>e.setAttribute("data-sort-direction",this.nameSort))}compareRows(e,t){const i=e.name+e.subtitle,n=t.name+t.subtitle;return i.localeCompare(n)*("asc"===this.nameSort?1:-1)}initProfileSelector(){return ge(this,void 0,void 0,(function*(){yield this.initProfileSelectorChoices();const e=this.config.element.querySelector(".acacias--fund-library-table-profile-selector-button"),t=this.config.element.querySelector(".acacias--fund-library-table-profile-selector");e.addEventListener("click",()=>{const i=(()=>{const e={overflow:n.a.getProperty(t,"overflow"),height:n.a.getProperty(t,"height")};n.a.set(t,{overflow:"auto",height:"unset"});const i=t.getBoundingClientRect().height;return n.a.set(t,e),i+1})();n.a.set(t,{overflow:"hidden",height:this.isProfileSelectorOpen?i:0}),n.a.to(t,{height:this.isProfileSelectorOpen?0:i,ease:"power4.out",duration:.8,onComplete:()=>{this.isProfileSelectorOpen&&n.a.set(t,{overflow:"visible",height:"unset"})},onUpdate:()=>{var e,t;null===(t=null===(e=this.scrollTriggerTimeline)||void 0===e?void 0:e.scrollTrigger)||void 0===t||t.refresh()}}),this.isProfileSelectorOpen=!this.isProfileSelectorOpen,e.setAttribute("data-active",this.isProfileSelectorOpen.toString()),this.isProfileSelectorOpen?t.removeAttribute("inert"):t.setAttribute("inert","")}),n.a.set(t,{overflow:"hidden",height:0}),t.setAttribute("inert","")}))}initProfileSelectorChoices(){return ge(this,void 0,void 0,(function*(){const e=new me({element:this.config.element,selectedProfile:this.selectedProfile,onContinue:()=>{const e=location.pathname.split("/").slice(0,-3),t=`${this.selectedProfile.location}/${this.selectedProfile.language}/${this.selectedProfile.profile}`,i=location.pathname.endsWith(".html")?".html":"";Z.a.set("pictet_fund_library_profile",JSON.stringify(this.selectedProfile)),location.pathname=e.join("/")+"/"+t+i}});yield e.init();const t=Z.a.get("pictet_fund_library_profile");if(t)try{const i=JSON.parse(t),n=e.configData.locations.find(e=>e.path===i.location),r=n.languages.find(e=>e.path===i.language).profiles.find(e=>e.path===i.profile);this.config.element.querySelector("[data-selected-profile]").innerHTML=r.name;this.config.element.querySelector("[data-selected-region]").innerHTML=n.path}catch(e){}}))}initProfileSelectorTerms(){const e=window.self!==window.top||this.config.element.closest(".sb-main-fullscreen"),t=document.documentElement.querySelector(".acacias--fund-library-disclaimer"),i=document.documentElement.querySelector(".acacias--overlay-bg"),r=this.config.element.querySelector("button[data-terms-open]"),o=document.documentElement.querySelector(".acacias--fund-library-disclaimer button[data-terms-close]"),a=[...t.querySelectorAll(".acacias--disclaimer-photo, .acacias--disclaimer-container")],s=[...document.documentElement.querySelectorAll(".acacias--fund-library-disclaimer [data-terms]")],c=s.find(e=>"default"===e.getAttribute("data-terms"));let l=void 0;e&&document.body.appendChild(t);const u=()=>{n.a.set([l,o],{display:"none"}),n.a.set(t,{y:0}),a.forEach(e=>e.removeAttribute("inert")),null==t||t.classList.add("acacias--hidden"),t.setAttribute("inert",""),t.removeAttribute("aria-modal"),null==i||i.classList.add("acacias--hidden"),this.scrollBlocker.unblock(),this.focusTrap.deactivate(),window.removeEventListener("keyup",d)},d=e=>{"Escape"===e.key&&u()};null==o||o.addEventListener("click",u),null==r||r.addEventListener("click",()=>{var e;l=null!==(e=s.find(e=>e.getAttribute("data-terms")===this.selectedProfile.location))&&void 0!==e?e:c,n.a.set([l,o],{display:"block",opacity:1}),l.scrollTo({top:0}),a.forEach(e=>e.setAttribute("inert","")),t.setAttribute("aria-label","Terms and conditions"),null==t||t.classList.remove("acacias--hidden"),t.removeAttribute("inert"),t.setAttribute("aria-modal","true"),null==i||i.classList.remove("acacias--hidden"),n.a.fromTo([t,i],{opacity:0},{opacity:1,duration:.5,ease:"power4.out"}),this.scrollBlocker.block(),this.focusTrap=Object(C.a)(t),this.focusTrap.activate(),window.addEventListener("keyup",d)})}renderRows(){const e=this.config.element.querySelector("table tbody");e.innerHTML="";const t=this.rowData.filter(e=>this.filterMatchesFund(this.filter,e)).sort((e,t)=>this.compareRows(e,t));this.filteredRowCount=t.length,t.slice(0,this.pagesVisible*this.pageRowsCount).forEach((t,i)=>e.appendChild(this.createTableRow(t,i.toString()))),this.synchronizeHeaderThs()}createTableRow(e,t){var i,n;const r=document.createElement("tr");r.setAttribute("data-id",t);const o=this.config.element.getAttribute("data-performance-scenario-label")||"Performance scenario",a=e.performance_link?`${o}`:"",s=this.config.element.getAttribute("data-esg-details-label")||"ESG Details",c=e.disclosure_link?`${s}`:"",l=[...this.config.element.querySelectorAll("th")].map(e=>e.textContent),u=this.createTableCell(`\n

\n
\n
${e.name}
\n
${e.subtitle}
\n
\n ${a}\n ${e.account_form}\n
\n `.trim(),l[0]);r.appendChild(u),r.appendChild(this.createTableCell(e.isin,l[1]));let d=e.date;if(d){const t=new Date(e.date);isNaN(t.getTime())||(d=t.toLocaleDateString("fr-CH"))}r.appendChild(this.createTableCell(d,l[2]));let h=e.nav;if(h){const e=parseFloat(h),t=null===(n=null===(i=h.split(" "))||void 0===i?void 0:i.slice(-1))||void 0===n?void 0:n[0];if(!isNaN(e)&&t){h=Intl.NumberFormat("fr-CH",{style:"currency",currency:t,currencyDisplay:"code",useGrouping:!0,minimumFractionDigits:2,maximumFractionDigits:2}).format(e),h=h.split(/\s/).slice(0,-1).join("'"),h=`
${h}
`}}r.appendChild(this.createTableCell(h,l[3])),r.appendChild(this.createTableCell(c,l[4])),r.appendChild(this.createReportLinksCell(e.factsheets,l[5])),r.appendChild(this.createReportLinksCell(e.prospectus,l[6])),r.appendChild(this.createReportLinksCell(e.kids,l[7])),r.appendChild(this.createReportLinksCell(e.annualReport,l[8])),r.appendChild(this.createReportLinksCell(e.semiAnnualReport,l[9])),r.appendChild(this.createReportLinksCell(e.articlesOfIncorporation,l[10]));const p=[...r.querySelectorAll("td:not(:empty)")];return p[p.length-1].setAttribute("data-last",""),r}createReportLinksCell(e,t){var i;const n=document.createElement("td");return n.setAttribute("data-label",t.trim()),null===(i=null==e?void 0:e.filter(e=>e.validityRegions.map(e=>e.toLowerCase()).includes(this.selectedProfile.location.toLowerCase())))||void 0===i||i.forEach(e=>n.appendChild(this.createReportLink(e))),n}createReportLink(e){const t=document.createElement("a");return t.href=e.url,t.target="_blank",t.text=e.name,t}createTableCell(e,t){const i=document.createElement("td");return e&&(i.innerHTML=e),i.setAttribute("data-label",t.trim()),i}}ve.NS="acacias",ve.IS="fund-library-table-comp",ve.selectors={self:"[data-"+ve.NS+'-is="'+ve.IS+'"]'},Object(g.a)(ve);var ye=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class be{constructor(e){this.pathNameSuffix="/asset-services/fund-library",this.config=e}init(){return ye(this,void 0,void 0,(function*(){this.pathNameSuffix=this.config.element.getAttribute("data-path-name-suffix")||this.pathNameSuffix;const e=this.config.element.getAttribute("data-config-json"),t=this.config.element.getAttribute("data-config-endpoint");if(e)this.configData=JSON.parse(e);else{if(!t)throw new Error("Fund Library Disclaimer: No config json/url defined");{const e=yield fetch(t);this.configData=yield e.json()}}const i=this.config.element.querySelector("form"),n=Object.values(i),r=n.filter(e=>"SELECT"===e.tagName),o=n.filter(e=>"checkbox"===e.getAttribute("type")),a=this.config.element.querySelector('button[type="submit"]'),[s,c,l]=[...this.config.element.querySelectorAll(".js-choice-fund-library-disclaimer")],u=new H.a(s,{searchEnabled:!0,fuseOptions:{threshold:0},choices:this.configData.locations.map(e=>({label:e.name,value:e.path,customProperties:{languages:e.languages}})),allowHTML:!1}),d=new H.a(c,{searchEnabled:!1,allowHTML:!1}),h=new H.a(l,{searchEnabled:!1,allowHTML:!1,shouldSort:!1});d.disable(),h.disable(),this.locationChoices=u,this.languageChoices=d,this.profileChoices=h,this.updateContinueButton=()=>{var e,t;const i=r.every(e=>!!e.value)&&o.every(e=>e.checked),n=s.value,u=c.value,d=l.value,h={save:null!==(e=a.getAttribute("data-label-save"))&&void 0!==e?e:"Save",saved:null!==(t=a.getAttribute("data-label-saved"))&&void 0!==t?t:"Saved"};i?(a.classList.remove("acacias--disabled"),a.disabled=!1,a.innerText=h.save,n===this.lastSavedProfile.location&&u===this.lastSavedProfile.language&&d===this.lastSavedProfile.profile&&(a.classList.add("acacias--disabled"),a.disabled=!0,a.innerText=h.saved)):(a.classList.add("acacias--disabled"),a.disabled=!0,a.innerText=h.save)},s.addEventListener("showDropdown",()=>{u.clearInput()}),s.addEventListener("choice",e=>{var t,i;const n=null==e?void 0:e.detail;if(!(null==n?void 0:n.value))return;this.config.selectedProfile.location=n.value;const r=null!==(i=null===(t=null==n?void 0:n.customProperties)||void 0===t?void 0:t.languages)&&void 0!==i?i:[];this.clearChoices(d,r.map(e=>({label:e.name,value:e.path,customProperties:{profiles:e.profiles}}))),d.enable(),this.clearChoices(h),h.disable(),this.updateContinueButton()}),c.addEventListener("choice",e=>{var t,i;const n=null==e?void 0:e.detail;if(!(null==n?void 0:n.value))return;this.config.selectedProfile.language=n.value;const r=null!==(i=null===(t=null==n?void 0:n.customProperties)||void 0===t?void 0:t.profiles)&&void 0!==i?i:[];this.clearChoices(h,r.map(e=>({label:e.name,value:e.path}))),h.enable(),this.updateContinueButton()}),l.addEventListener("choice",e=>{var t,i;this.config.selectedProfile.profile=null!==(i=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.value)&&void 0!==i?i:""}),i.addEventListener("change",this.updateContinueButton),a.addEventListener("click",e=>{e.preventDefault(),a.classList.contains("acacias--disabled")||(this.lastSavedProfile=Object.assign({},this.config.selectedProfile),this.updateContinueButton(),this.config.onContinue())});const p=this.getChoicesFromPathname(),f=this.configData.locations.find(e=>e.path===p.location);if(!f)return;const m=new CustomEvent("choice",{detail:{value:f.path,customProperties:{languages:f.languages}}});s.dispatchEvent(m),u.setChoiceByValue(f.path);const g=f.languages.find(e=>e.path===p.language);if(!g)return;const v=new CustomEvent("choice",{detail:{value:g.path,customProperties:{profiles:g.profiles}}});c.dispatchEvent(v),d.setChoiceByValue(g.path);const y=g.profiles.find(e=>e.path===p.profile);if(!y)return;const b=new CustomEvent("choice",{detail:{value:y.path}});l.dispatchEvent(b),h.setChoiceByValue(y.path)}))}getTrimmedPathname(){let e=location.pathname.indexOf(this.pathNameSuffix);-1===e&&(e=void 0);const t=location.pathname.slice(0,e)+(void 0!==e?this.pathNameSuffix:"");return t.endsWith("/")?t.slice(0,-1):t}getChoicesFromPathname(){var e;const t=this.getTrimmedPathname(),i=location.pathname.replace(t+"/","").split("/");return{location:i[0],language:i[1],profile:null===(e=i[2])||void 0===e?void 0:e.replace(".html","")}}clearChoices(e,t=[]){const i=e._placeholderValue;e.clearStore(),e.setChoices([...t,{value:"",label:i,placeholder:!0}]),e.setChoiceByValue("")}updateSelectsFromProfileData(e){var t,i,n,r;if(this.lastSavedProfile=Object.assign({},e),this.config.selectedProfile=Object.assign(this.config.selectedProfile,e),this.locationChoices.setChoiceByValue(null==e?void 0:e.location),null==e?void 0:e.location){const o=null!==(i=null===(t=this.configData.locations.find(t=>t.path===e.location))||void 0===t?void 0:t.languages)&&void 0!==i?i:[];if(this.clearChoices(this.languageChoices,o.map(e=>({label:e.name,value:e.path,customProperties:{profiles:e.profiles}}))),this.languageChoices.enable(),this.languageChoices.setChoiceByValue(e.language),e.language){const t=null!==(r=null===(n=o.find(t=>t.path===e.language))||void 0===n?void 0:n.profiles)&&void 0!==r?r:[];this.clearChoices(this.profileChoices,t.map(e=>({label:e.name,value:e.path}))),this.profileChoices.setChoiceByValue(e.profile),this.profileChoices.enable()}}this.updateContinueButton()}}var we=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class Se{constructor(e){this.config=null,this.fundData=[],this.scrollBlocker=T.b.getInstance(),this.profileSelector=void 0,this.scrollTriggerTimeline=void 0,this.isProfileSelectorOpen=!0,this.selectedProfile={language:"",location:"",profile:""},this.urlPattern="",this.langVersionsAvailable=[],e&&e.element&&(this.config=e,this.init(e))}init(e){return we(this,void 0,void 0,(function*(){const t=e.element;e.options;this.urlPattern=t.getAttribute("data-config-lang-url-pattern")||"",this.langVersionsAvailable=(t.getAttribute("data-lang-versions-available")||"").split(","),yield this.initFundData(),this.initForm(),yield this.initProfileSelector()}))}initProfileSelector(){return we(this,void 0,void 0,(function*(){yield this.initProfileSelectorChoices()}))}initFundData(){return we(this,void 0,void 0,(function*(){const e=this.config.element.getAttribute("data-funds-endpoint"),t=yield fetch(e),i=yield t.json();this.fundData=i.facilityResults}))}initForm(){var e,t,i,n,r,o;const[a,s]=[...this.config.element.querySelectorAll(".js-choice-fund-library-facilities")],c=[...a.querySelectorAll("option")].filter(e=>!!e.value);c.forEach(e=>e.remove());const l=new H.a(a,{searchEnabled:!1,shouldSort:!1,choices:[{label:null!==(t=null===(e=c.find(e=>"subscription"===e.value))||void 0===e?void 0:e.label)&&void 0!==t?t:"Subscription",value:"subscription"},{label:null!==(n=null===(i=c.find(e=>"redemption"===e.value))||void 0===i?void 0:i.label)&&void 0!==n?n:"Redemption",value:"redemption"},{label:null!==(o=null===(r=c.find(e=>"other"===e.value))||void 0===r?void 0:r.label)&&void 0!==o?o:"Other question",value:"other"}],allowHTML:!1});a.choices=l,this.fundDetailsChoices=new H.a(s,{searchEnabled:!0,allowHTML:!0,choices:this.fundData.map(e=>({label:`
${e.name}
${e.subtitle}
${e.isin}
`,value:e.isin,customProperties:{searchData:`${e.isin} ${e.name} ${e.subtitle}`}})),searchFields:["customProperties.searchData"],searchFloor:2}),s.choices=this.fundDetailsChoices}filterFundDetailsChoicesByType(e){return t=>{const i=null==e?void 0:e.location.toUpperCase();return(t.fundDomicile===i||t.registeredCountries.includes(i))&&("retail"===e.profile&&t.investorProfile.includes("retail")||"institutional"===e.profile&&t.investorProfile.includes("institutional")||"financial-intermediary"===e.profile)}}initProfileSelectorChoices(){return we(this,void 0,void 0,(function*(){this.profileSelector=new be({element:this.config.element,selectedProfile:this.selectedProfile,onContinue:()=>{Z.a.set("pictet_fund_library_profile",JSON.stringify(this.selectedProfile));const e=this.selectedProfile.language!==this.getCurrentLanguage(),t=this.langVersionsAvailable.includes(this.selectedProfile.language),i="en"==this.getCurrentLanguage();if(this.urlPattern&&e)if(t){const e=this.urlPattern.replace("{lang}",this.selectedProfile.language);window.location.href=e}else if(!i){const e=this.urlPattern.replace("{lang}","en");window.location.href=e}this.updateProfileSelectorDisplay(this.selectedProfile),this.updateFormChoices(),this.updateFundLink()}}),yield this.profileSelector.init();const e=this.readProfileCookie();this.updateProfileSelectorDisplay(e),this.profileSelector.updateSelectsFromProfileData(e),this.updateFormChoices(),this.updateFundLink()}))}readProfileCookie(){const e=Z.a.get("pictet_fund_library_profile");if(e)try{return JSON.parse(e)}catch(e){}}updateFundLink(){var e;null===(e=this.config.element.querySelector(".acacias--js-fund-library-link"))||void 0===e||e.setAttribute("href",`/asset-services/fund-library/${this.selectedProfile.location}/${this.selectedProfile.language}/${this.selectedProfile.profile}`)}getCurrentLanguage(){return this.config.element.getAttribute("data-config-lang")||"en"}updateProfileSelectorDisplay(e){if(this.profileSelector)try{const t=this.profileSelector.configData.locations.find(t=>t.path===(null==e?void 0:e.location)),i=null==t?void 0:t.languages.find(t=>t.path===(null==e?void 0:e.language)),n=null==i?void 0:i.profiles.find(t=>t.path===(null==e?void 0:e.profile));this.config.element.querySelector("[data-selected-region]").innerHTML=null==t?void 0:t.path;this.config.element.querySelector("[data-selected-language]").innerHTML=null==i?void 0:i.path;this.config.element.querySelector("[data-selected-profile]").innerHTML=null==n?void 0:n.path;const r=this.config.element.querySelector("[data-funds-count]"),o=this.fundData.filter(this.filterFundDetailsChoicesByType(e)).length;r.innerHTML=o.toString()}catch(e){}}updateFormChoices(){this.clearChoices(this.fundDetailsChoices,this.fundData.filter(this.filterFundDetailsChoicesByType(this.selectedProfile)).map(e=>({label:`
${e.name}
${e.subtitle}
${e.isin}
`,value:e.isin,customProperties:{searchData:`${e.isin} ${e.name} ${e.subtitle}`}})))}clearChoices(e,t=[]){const i=e._placeholderValue;e.clearStore(),e.setChoices([...t,{value:"",label:i,placeholder:!0}]),e.setChoiceByValue("")}}Se.NS="acacias",Se.IS="fund-library-facilities-comp",Se.selectors={self:"[data-"+Se.NS+'-is="'+Se.IS+'"]'},Object(g.a)(Se);var _e=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class Ee{constructor(e){this.config=null,e&&e.element&&(this.config=e,this.init())}init(){return _e(this,void 0,void 0,(function*(){yield this.getData(),this.fillTemplates(),this.createDownloadLinks()}))}getData(){var e,t;return _e(this,void 0,void 0,(function*(){this.dataApiUrl=this.config.element.getAttribute("data-esg-details-endpoint"),this.fileApiUrl=this.config.element.getAttribute("data-file-download-endpoint");const i=yield fetch(this.dataApiUrl+"?isin="+this.getISINFromUrl()),n=yield i.json(),r=null===(t=null===(e=null==n?void 0:n.Result)||void 0===e?void 0:e.rows)||void 0===t?void 0:t[0];this.fundData=r,this.config.element.setAttribute("data-loading","false"),this.fundData||this.config.element.setAttribute("data-not-found","")}))}fillTemplates(){if(!this.fundData)return;["Art8_No_sustainable_investment_objective","Art9_No_significant_harm_to_the_sustainable","Art8_Environmental_or_social_charac","Art9_Sustainable_investment_objective","Art8and9_Investment_strategy","Art8and9_Proportion_of_investments","Art8_Monitoring_of_environmental","Art9_Monitoring_of_sustainable","Art8and9_IP_Methodologies","Art8and9_IP_Data_sources_and_processing","Art8and9_IP_Limitations","Art8and9_IP_Due_diligence","Art8and9_IP_Engagement_policies","Art8_Designated_reference_benchmark","Art9_Attainment_of_the_sustainable"].forEach(e=>{const t=this.fundData[e];this.fillTemplate(`[data-disclosure=${e}]`,t)}),this.fillTemplate(".acacias--esg-disclosures-fund-title .cmp-title__text",this.fundData.FundUmbrella),this.fillTemplate(".acacias--esg-disclosures-fund-subtitle .cmp-text",this.fundData.FundName),this.fillTemplate(".acacias--esg-disclosures-fund-subtitle .cmp-text",this.fundData.FundName),this.fillTemplate("[data-isin]",this.fundData.Fund.Shareclass[0].ISIN),this.fillTemplate("[data-shareclass]",this.fundData.Fund.Shareclass[0].Name),this.fillTemplate("[data-classification]","ART. "+this.fundData.Fund.Classification.NumberArt)}fillTemplate(e,t){const i=this.config.element.querySelector(e);i&&t&&(i.setAttribute("data-template-filled","true"),i.innerHTML=t)}createDownloadLinks(){var e;this.fundData&&(this.fundData.System_File&&this.createDownloadLink(this.fundData.System_File),null===(e=this.fundData.Document)||void 0===e||e.filter(e=>{var t;return"obsolete"!==(null===(t=e.Statut)||void 0===t?void 0:t.toLowerCase())}).forEach(e=>{this.createDownloadLink(e.System_File,e.Language)}))}createDownloadLink(e,t){const i=this.config.element.querySelector("li[data-link-template]").cloneNode(!0);i.removeAttribute("data-link-template"),i.querySelector("[data-link-title]").innerHTML=e.Name+(t?` (${t})`:""),i.addEventListener("click",()=>this.downloadFileFromApi(e.StorageId,e.Name)),this.config.element.querySelector("ul[data-link-list]").appendChild(i)}downloadFileFromApi(e,t){return _e(this,void 0,void 0,(function*(){const i=yield fetch(this.fileApiUrl+"?fileId="+e),n=yield i.blob(),r=document.createElement("a"),o=window.URL.createObjectURL(n);r.href=o,r.download=t,r.click(),window.URL.revokeObjectURL(o)}))}getISINFromUrl(){return new URL(location.href).searchParams.get("isin")}}Ee.NS="acacias",Ee.IS="esg-disclosures-comp",Ee.selectors={self:"[data-"+Ee.NS+'-is="'+Ee.IS+'"]'},Object(g.a)(Ee);var Te=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class Ce{constructor(e){this.config=null,this.pathNameSuffix="/asset-services/fund-library",this.selectedProfile={language:"",location:"",profile:""},this.scrollBlocker=T.b.getInstance(),e&&e.element&&(this.config=e,this.init(e))}init(e){var t;return Te(this,void 0,void 0,(function*(){const i=window.self!==window.top||e.element.closest(".sb-main-fullscreen"),r=JSON.parse(Z.a.get("pictet_fund_library_profile")||"{}"),o=location.pathname.split("/");this.focusTrap=Object(C.a)(e.element,{allowOutsideClick:!0});const a=r.location&&r.language&&r.profile&&r.profile===(null===(t=o[o.length-1])||void 0===t?void 0:t.replace(".html",""))&&r.language===o[o.length-2]&&r.location===o[o.length-3],s=new me({element:e.element,selectedProfile:this.selectedProfile,onContinue:()=>{this.closeDisclaimer();const e=location.hash;location.hash="";const t=JSON.stringify({location:this.selectedProfile.location,language:this.selectedProfile.language,profile:this.selectedProfile.profile});Z.a.set("pictet_fund_library_profile",t);const n=this.getTrimmedPathname(),r=location.pathname.endsWith(".html")?".html":"";i||(location.pathname=`${n}/${this.selectedProfile.location}/${this.selectedProfile.language}/${this.selectedProfile.profile}`+r,setTimeout(()=>{location.hash=e}))}});if(yield s.init(),a&&!i)return void this.closeDisclaimer();this.openDisclaimer();const c=e.element.querySelector("button[data-terms-open]"),l=e.element.querySelector("button[data-terms-close]"),u=[...e.element.querySelectorAll("[data-terms]")],d=u.find(e=>"default"===e.getAttribute("data-terms"));let h=void 0;const p={duration:.5,ease:"power4.out"};c.addEventListener("click",()=>{var e;h=null!==(e=u.find(e=>e.getAttribute("data-terms")===this.selectedProfile.location))&&void 0!==e?e:d,n.a.set(h,{display:"block",opacity:0}),h.scrollTo({top:0}),n.a.to(h,Object.assign({opacity:1},p)),n.a.set(l,{display:"block",opacity:0}),n.a.to(l,Object.assign({opacity:1},p))}),l.addEventListener("click",()=>{n.a.set([h,l],{display:"none"})})}))}openDisclaimer(){var e,t,i;this.config.element.classList.remove("acacias--hidden"),this.config.element.removeAttribute("inert"),this.config.element.setAttribute("aria-modal","true"),this.scrollBlocker.block(),this.focusTrap.activate(),null===(i=null===(t=null===(e=document.getElementsByClassName("acacias--overlay-bg"))||void 0===e?void 0:e[0])||void 0===t?void 0:t.classList)||void 0===i||i.remove("acacias--hidden")}closeDisclaimer(){var e,t,i,n,r,o;this.config.element.classList.add("acacias--hidden"),this.config.element.setAttribute("inert",""),this.config.element.removeAttribute("aria-modal"),this.scrollBlocker.unblock(),this.focusTrap.deactivate(),null===(i=null===(t=null===(e=document.getElementsByClassName("acacias--page-content acacias--hidden"))||void 0===e?void 0:e[0])||void 0===t?void 0:t.classList)||void 0===i||i.remove("acacias--hidden"),null===(o=null===(r=null===(n=document.getElementsByClassName("acacias--overlay-bg"))||void 0===n?void 0:n[0])||void 0===r?void 0:r.classList)||void 0===o||o.add("acacias--hidden")}getTrimmedPathname(){let e=location.pathname.indexOf(this.pathNameSuffix);-1===e&&(e=void 0);const t=location.pathname.slice(0,e)+(void 0!==e?this.pathNameSuffix:"");return t.endsWith("/")?t.slice(0,-1):t}}Ce.NS="acacias",Ce.IS="disclaimer-fund-library-comp",Ce.selectors={self:"[data-"+Ce.NS+'-is="'+Ce.IS+'"]'},Object(g.a)(Ce),n.a.registerPlugin(l.a);class Ae{constructor(e){this.config=null,e&&e.element&&(this.config=e,this.init(e))}init(e){this.config=e,this.logger=new y.a("#debugger",e.element),this.initScroller(),window.addEventListener("resize",()=>{this.resetScroller()},!0)}initScroller(){const e=this.config.element.querySelector(".acacias--in-focus--column-1"),t=this.config.element.querySelector(".acacias--in-focus--column-2");e&&t&&e.clientHeight>window.innerHeight&&t.clientHeight>e.clientHeight&&window.innerWidth>767&&(this.scrollTriggerTL=n.a.timeline({scrollTrigger:{trigger:this.config.element,start:"top top",end:"bottom bottom",scrub:!0,markers:!1}}),this.scrollTriggerTL.to(e,{y:()=>t.clientHeight-e.clientHeight,ease:"none"}))}resetScroller(){var e;null===(e=this.scrollTriggerTL)||void 0===e||e.pause(0).kill(!0),this.initScroller()}}Ae.NS="acacias",Ae.IS="in-focus-comp",Ae.selectors={self:"[data-"+Ae.NS+'-is="'+Ae.IS+'"]'},Object(g.a)(Ae);class xe{constructor(e){this.loadingMore=!1,e&&e.element&&(this.config=e,this.init(e))}init(e){this.display={items:Array.from(e.element.querySelectorAll(".acacias-largetable-events-item")),itemsWrapper:e.element.querySelector(".acacias-largetable-events-wrap"),loadMoreButton:e.element.querySelector(".acacias--events-load-more")},this.display.items.forEach((e,t)=>{e.addEventListener("pointerenter",t=>{e.classList.contains("active")?this.highlightItem(e):this.highlightItem(null)})}),this.display.itemsWrapper.addEventListener("pointerleave",()=>{this.highlightItem(null)});this.display.items.filter(e=>"none"===window.getComputedStyle(e).display).length>0&&(this.display.loadMoreButton.classList.remove("hidden"),this.display.loadMoreButton.addEventListener("click",()=>{n.a.to(this.display.loadMoreButton,{opacity:0,duration:0});const e=this.display.items.filter(e=>"none"===window.getComputedStyle(e).display);e.length<=5&&this.display.loadMoreButton.classList.add("hidden"),this.loadingMore=!0,setTimeout(()=>{this.loadingMore=!1,n.a.to(this.display.loadMoreButton,{opacity:1,duration:.5,ease:"power2.inOut"})},.08*Math.min(5,e.length)*1e3),e.slice(0,5).forEach((e,t)=>{e.classList.add("display"),n.a.to(e,{opacity:0,duration:0}),n.a.to(e,{opacity:1,duration:.4,ease:"power1.inOut",delay:.08*t})})}))}highlightItem(e){this.loadingMore||this.display.items.forEach(t=>{n.a.killTweensOf(t),e&&t!=e?n.a.to(t,{opacity:.3,duration:.2,delay:0}):n.a.to(t,{opacity:1,duration:.3,delay:.1})})}}xe.NS="acacias",xe.IS="table-events-comp",xe.selectors={self:"[data-"+xe.NS+'-is="'+xe.IS+'"]'},Object(g.a)(xe),n.a.registerPlugin(l.a);class Oe{static IS_READY(e){return[...e.querySelectorAll(".acacias--shortlist-large--image-overflow")].every(e=>!!e.querySelector("img"))}constructor(e){this.config=null,this.maxImgHeight=0,this.itemStep=.6,this.opacityFactor=2.5,this.scaleFactor=40,this.topOffset=12,this.refreshScroller=e=>{this.maxImgHeight=e,this.scrollTriggerTL.scrollTrigger.refresh()},e&&e.element&&(this.config=e,this.init(e))}init(e){this.logger=new y.a("#debugger",e.element);e.element.querySelector(".shortlist-debug");this.items=n.a.utils.toArray(this.config.element.querySelectorAll(".acacias--shortlist-large--item")),this.items.forEach(e=>{e.onmouseleave=()=>{e.classList.add("hovered"),setTimeout(()=>{e.classList.remove("hovered")},300)}}),this.images=n.a.utils.toArray(this.config.element.querySelectorAll(".acacias--shortlist-large--image-overflow img")),this.images.forEach(e=>{e.addEventListener("load",()=>{const t=e.clientHeight;t>this.maxImgHeight&&this.refreshScroller(t)})}),this.initScroller(),this.previousViewportWidth=window.innerWidth,window.addEventListener("resize",()=>{window.innerWidth!==this.previousViewportWidth&&(this.previousViewportWidth=window.innerWidth,this.refreshScroller(this.images.reduce((e,t)=>Math.max(e,t.clientHeight),0)))},!0)}initScroller(){const e=this.config.element.querySelector(".acacias--shortlist-large--text-container"),t=this.config.element.querySelector(".acacias--shortlist-large--image-container");this.scrollTriggerTL=n.a.timeline({scrollTrigger:{trigger:e,pin:t,pinSpacing:!1,start:`top top+=${this.topOffset}%`,end:()=>`bottom top+=${this.topOffset+(.5*this.images[this.images.length-1].clientHeight+.5*this.items[this.items.length-1].clientHeight)/window.innerHeight*100}%`,onUpdate:e=>{this.items.forEach((t,i)=>{this.updateItem(i,e.progress)})}}}),this.updateItem(0,0)}calculateOpacity(e,t,i,n=0){const r=t/i,o=Math.abs(e-r),a=this.itemStep/i;return 0===t&&e<=r||t===i-1&&e>=r?1:Math.max(n,Math.min(1,(1-o/a)*this.opacityFactor))}calculateScale(e,t,i){const n=t/i,r=this.itemStep/i,o=n+r-e;return t===i-1&&e>=n?1/this.scaleFactor+1:o/r/this.scaleFactor+1}updateItem(e,t){var i=this.calculateOpacity(t,e,this.items.length,0);n.a.set(this.items[e],{opacity:this.calculateOpacity(t,e,this.items.length,.3)}),n.a.set(this.images[e],{opacity:i}),0!=i&&n.a.set(this.images[e],{scale:this.calculateScale(t,e,this.items.length)})}}Oe.NS="acacias",Oe.IS="shortlist-large-b-comp",Oe.selectors={self:"[data-"+Oe.NS+'-is="'+Oe.IS+'"]'},Object(g.a)(Oe),n.a.registerPlugin(E.a);class Le{constructor(e){this.config=null,this.images=[],this.captions=[],this.dragDuration=.5,this.gotoDuration=1.1,this.currentOffset=0,this.targetOffset=0,this.dragging=!1,this.openingItemIdx=0,this.previousItem=-1,this.inertialEase=E.a.create("custom","M0,0,C0.302,0.598,0.492,1,1,1"),this.gotoEase=E.a.create("custom","M0,0 C0.086,0 0.134,0.674 0.292,0.822 0.484,1.002 0.818,1.001 1,1 "),this.ready=!1,this.previousTouchPos={x:0,y:0},this.touchInertia=1,this.classesToScan="\n .acacias--full-width-image-module-prix, \n .acacias--basic-stage,\n .acacias--article-stage-image,\n .acacias--article-module .acacias--comp-image\n ",this.scrollBlocker=T.b.getInstance(),e&&e.element&&(this.config=e,this.init(e))}init(e){this.logger=new y.a("#debugger",e.element),this.initImages=this.initImages.bind(this),this.onMouseStart=this.onMouseStart.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onMouseEnd=this.onMouseEnd.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onMouseDrag=this.onMouseDrag.bind(this),this.onTouchDrag=this.onTouchDrag.bind(this),this.snap=this.snap.bind(this),this.handlePointerEnd=this.handlePointerEnd.bind(this),this.openGallery=this.openGallery.bind(this),this.closeGallery=this.closeGallery.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.focusTrap=Object(C.a)(this.config.element,{initialFocus:!1}),this.items=e.element.querySelector(".acacias--fullscreen-images--images-wrapper"),this.items.addEventListener("mousedown",this.onMouseStart),this.items.addEventListener("touchstart",this.onTouchStart);const t=Array.from(document.documentElement.querySelectorAll(this.classesToScan)).filter(e=>e.querySelector("img"));t.forEach((e,t)=>{const i=e.querySelector(".cmp-image");i.addEventListener("click",()=>{if(!this.ready){const e=i.querySelector("img").attributes.src.value,t=e.substring(e.indexOf("wid=")+4,e.lastIndexOf("&"));this.initImages(t)}setTimeout(()=>this.openGallery(t),10)}),i.setAttribute("style","cursor: pointer;")}),this.counter=e.element.querySelector(".acacias--fullscreen-images--top--counter"),this.itemsCountText=this.formatCounterNumber(t.length),this.caption=e.element.querySelector(".acacias--fullscreen-images--bottom--caption"),this.prevButton=e.element.querySelector(".acacias--fullscreen-images--navigation-btn-wrapper--prev"),this.nextButton=e.element.querySelector(".acacias--fullscreen-images--navigation-btn-wrapper--next"),this.navigation=e.element.querySelector(".acacias--fullscreen-images--bottom--navigation");const i=e.element.querySelector(".acacias--fullscreen-images--top--close-btn");this.prevButton.addEventListener("click",()=>this.onNavigationButtonClick(1)),this.nextButton.addEventListener("click",()=>this.onNavigationButtonClick(-1)),i.addEventListener("click",this.closeGallery),this.previousViewportWidth=window.innerWidth,window.addEventListener("resize",()=>{if(window.innerWidth!==this.previousViewportWidth&&this.ready){this.previousViewportWidth=window.innerWidth,this.updateCurrentOffset();const e=this.getTargetItem(this.currentOffset);this.calculateBounds(),this.snap(-e*this.step,0)}},!0)}initImages(e){const t=Array.from(document.documentElement.querySelectorAll(this.classesToScan)).filter(e=>e.querySelector("img"));t.forEach((i,r)=>{var o;const a=i.querySelector(".cmp-image"),s=i.querySelector(".cmp-text"),c=document.createElement("div");c.classList.add("acacias--fullscreen-images--image-wrapper"),c.role="group",c.ariaRoleDescription="slide",c.ariaLabel=null!==(o=null==s?void 0:s.textContent)&&void 0!==o?o:`${r+1} of ${t.length}`;const l=document.createElement("div");l.classList.add("acacias--fullscreen-images--image-overflow"),c.appendChild(l);const u=document.createElement("img");u.src=a.attributes["data-cmp-src"].value.replace(/%3Aimage-.-./,"").replace("{.width}",e),u.addEventListener("load",()=>{this.updateCurrentOffset();const e=this.getTargetItem(this.currentOffset);this.calculateBounds(),n.a.killTweensOf(l,"x"),this.snap(-e*this.step)}),l.appendChild(u),this.items.appendChild(c),this.images=[...this.images,l],this.captions=[...this.captions,s?s.innerHTML:""]}),this.calculateBounds(),this.update(0,0),this.fadeInCaptionText(),this.ready=!0}openGallery(e=0){this.config.element.removeAttribute("inert"),this.config.element.setAttribute("aria-modal","true"),this.openingItemIdx=e,n.a.to(this.caption,{opacity:0,duration:0}),this.fadeOutCaptionText();const t=-e*this.step;this.snap(t,0),n.a.to(this.images[e],{scale:.5,duration:0}),n.a.to(this.images[e].children[0],{scale:1.3,duration:0}),this.snap(t),n.a.set(this.items,{opacity:0}),n.a.to(this.items,{opacity:1,duration:1,ease:this.gotoEase,delay:.3}),this.config.element.classList.add("active"),window.addEventListener("keyup",this.onKeyPress),setTimeout(()=>{this.scrollBlocker.block(),this.focusTrap.activate()},window.innerWidth<=575?0:300)}closeGallery(){this.config.element.removeAttribute("aria-modal"),this.config.element.setAttribute("inert",""),this.config.element.classList.remove("active"),this.scrollBlocker.unblock(),this.focusTrap.deactivate(),window.removeEventListener("keyup",this.onKeyPress)}calculateBounds(){this.step=this.items.children[0].clientWidth,this.maxOffset=-this.step*(this.images.length-1)}onNavigationButtonClick(e){this.checkIfMoveAllowed(e)&&(this.touchInertia=1,this.fadeOutCaptionText(),this.updateCurrentOffset(),this.snap(this.targetOffset+this.step*e))}onKeyPress(e){"ArrowLeft"===e.key?this.onNavigationButtonClick(1):"ArrowRight"===e.key&&this.onNavigationButtonClick(-1),"Escape"===e.key&&this.closeGallery()}onMouseStart(e){0===e.button&&(this.dragStart=e.clientX,this.updateCurrentOffset(),this.touchInertia=1,window.addEventListener("mousemove",this.onMouseDrag),window.addEventListener("mouseup",this.onMouseEnd))}onTouchStart(e){this.dragStart=e.touches[0].clientX,this.updateCurrentOffset(),this.touchInertia=1,window.addEventListener("touchmove",this.onTouchDrag),window.addEventListener("touchend",this.onTouchEnd)}onMouseDrag(e){if(Math.abs(e.clientX-this.dragStart)<=5)return;this.dragging=!0,this.update(1.5*(e.clientX-this.dragStart));const t=this.getTargetItem(this.targetOffset);0===n.a.getTweensOf(this.caption).length&&t!==this.previousItem&&this.fadeOutCaptionText()}onTouchDrag(e){const t=e.touches[0].clientX,i=e.touches[0].clientY;if(Math.abs(t-this.dragStart)<=5)return;this.dragging=!0,this.touchInertia=1+this.getPointerDistance(t,i)/window.innerWidth,this.touchInertia*=t>this.previousTouchPos.x?1:-1,this.previousTouchPos={x:t,y:i},this.update(2*(t-this.dragStart));const r=this.getTargetItem(this.targetOffset);0===n.a.getTweensOf(this.caption).length&&r!==this.previousItem&&this.fadeOutCaptionText()}onMouseEnd(e){window.removeEventListener("mousemove",this.onMouseDrag),window.removeEventListener("mouseup",this.onMouseEnd),this.handlePointerEnd(e.clientX)}onTouchEnd(e){window.removeEventListener("touchmove",this.onTouchDrag),window.removeEventListener("touchend",this.onTouchEnd),this.handlePointerEnd(e.changedTouches[0].clientX)}handlePointerEnd(e){var t;if(this.dragging)if(this.dragging=!1,Math.abs(this.touchInertia)>1.01){const e=this.touchInertia>=0?1:-1;this.checkIfMoveAllowed(e)&&(this.fadeOutCaptionText(),this.snap(this.currentOffset+e*this.step))}else this.snap(this.targetOffset);else{this.touchInertia=1;const i=null===(t=this.items.children)||void 0===t?void 0:t[this.getTargetItem(this.currentOffset)];if(i){const t=i.querySelector("img"),n=this.getFittedImageBoundingBox(t),r=en.right?-1:0;0!==r&&this.checkIfMoveAllowed(r)&&(this.fadeOutCaptionText(),this.snap(this.currentOffset+r*this.step))}}0===n.a.getTweensOf(this.caption).length&&this.fadeInCaptionText()}snap(e,t=1){let i=Math.floor(e/(this.step||1))*this.step;e-i>=this.step/2&&(i+=this.step),this.updateCurrentOffset(),this.update(i-this.currentOffset,t)}update(e,t=1){const i=Math.min(0,Math.max(this.currentOffset+e,this.maxOffset));this.targetOffset=i,n.a.to(this.items,{x:i,ease:this.dragging?this.inertialEase:Math.abs(this.touchInertia)>1?`elastic.out(${Math.pow(Math.abs(this.touchInertia),1.25)}, 1)`:this.gotoEase,duration:t*(this.dragging?this.dragDuration:this.gotoDuration),onStart:()=>{0===i?(this.prevButton.disabled=!0,this.prevButton.classList.add("disabled")):(this.prevButton.disabled=!1,this.prevButton.classList.remove("disabled")),i===this.maxOffset?(this.nextButton.disabled=!0,this.nextButton.classList.add("disabled")):(this.nextButton.disabled=!1,this.nextButton.classList.remove("disabled"))},overwrite:"auto"});const r=this.getTargetItem(i);this.updateCounterText(r),this.updateImages(i,t)}updateImages(e,t=1){const i=1/(this.images.length-1);this.images.forEach((r,o)=>{const a=n.a.utils.clamp(-i,i,this.calculateRelativeDistance(e,o)),s=Math.abs(a),c=n.a.utils.mapRange(0,i,1,.5,s),l=(this.step-r.clientWidth*c)/2-this.step/8,u=n.a.utils.mapRange(-i,i,l,-l,a),d=n.a.utils.mapRange(0,i,1,.2,s);n.a.to(r,{scale:c,opacity:d,x:u,ease:this.dragging?this.inertialEase:this.gotoEase,duration:t*(this.dragging?this.dragDuration:this.gotoDuration),overwrite:"auto"});const h=n.a.utils.mapRange(0,i,1,1.3,s);n.a.to(r.children[0],{scale:h,ease:this.dragging?this.inertialEase:"power2.out",duration:t*(this.dragging?this.dragDuration:1.25),overwrite:"auto"})})}calculateRelativeDistance(e,t){return t/(this.images.length-1)-e/this.maxOffset}updateCurrentOffset(){this.currentOffset=n.a.getProperty(this.items,"x")}formatCounterNumber(e){return`${e<10?"0":""}${e}`}updateCounterText(e){this.counter.innerText=`${this.formatCounterNumber(e+1)} of ${this.itemsCountText}`}fadeOutCaptionText(){n.a.to([this.caption,this.navigation],{opacity:0,ease:"power4.out",duration:.3,onComplete:()=>{this.dragging||this.fadeInCaptionText()}})}fadeInCaptionText(){const e=this.getTargetItem(this.targetOffset);this.previousItem=e,this.caption.innerHTML=this.captions[e],n.a.to([this.caption,this.navigation],{opacity:1,ease:"power4.in",duration:.5})}getTargetItem(e){return Math.max(0,Math.min(Math.abs(Math.round(e/this.step)),this.images.length))}getPointerDistance(e,t){const i=this.previousTouchPos.x-e,n=this.previousTouchPos.y-t;return Math.sqrt(i*i+n*n)}getFittedImageBoundingBox(e){const t=e.getBoundingClientRect(),i=e.offsetWidth,n=e.offsetHeight,r=i/n,o=e.naturalWidth/e.naturalHeight;let a=0,s=0;o>r?(a=i,s=i/o):(s=n,a=n*o);const c=(i-a)/2+t.left,l=(n-s)/2+t.top;return{top:l,right:c+a,bottom:l+s,left:c,width:a,height:s}}checkIfMoveAllowed(e){return!(1===e&&0===this.targetOffset||-1===e&&this.targetOffset===this.maxOffset)}}Le.NS="acacias",Le.IS="fullscreen-images-comp",Le.selectors={self:"[data-"+Le.NS+'-is="'+Le.IS+'"]'},Object(g.a)(Le);class ke{constructor(e){e&&e.element&&(this.config=e,this.init(e))}init(e){const t=e.element.querySelector(".acacias--events-load-more"),i=()=>[...e.element.querySelectorAll(".acacias--upcoming-events-item")].filter(e=>"none"===window.getComputedStyle(e).display);t.addEventListener("click",()=>{const e=i();e.length<=5&&n.a.set(t,{display:"none"}),n.a.fromTo(e.slice(0,5),{display:"block",opacity:0},{opacity:1,duration:.8,ease:"power4.out",stagger:.1})}),i().length>0&&n.a.set(t,{display:"block"})}}ke.NS="acacias",ke.IS="upcoming-events-comp",ke.selectors={self:"[data-"+ke.NS+'-is="'+ke.IS+'"]'},Object(g.a)(ke),n.a.registerPlugin(E.a);class Ie{constructor(e){this.config=null,this.mouseDuration=.6,this.touchDuration=.2,this.buttonDuration=.4,this.currentOffset=0,this.targetOffset=0,this.ease=E.a.create("custom","M0,0,C0.302,0.598,0.492,1,1,1"),e&&e.element&&(this.config=e,this.init(e))}init(e){this.logger=new y.a("#debugger",e.element),this.onMouseStart=this.onMouseStart.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onMouseEnd=this.onMouseEnd.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onMouseDrag=this.onMouseDrag.bind(this),this.onTouchDrag=this.onTouchDrag.bind(this),this.snap=this.snap.bind(this),this.items=e.element.querySelector(".acacias--timeline--items"),this.items.addEventListener("mousedown",this.onMouseStart),this.items.addEventListener("touchstart",this.onTouchStart),this.prevButtons=n.a.utils.toArray(e.element.querySelectorAll(".acacias--timeline--navigation-btn-wrapper--prev")),this.nextButtons=n.a.utils.toArray(e.element.querySelectorAll(".acacias--timeline--navigation-btn-wrapper--next")),this.prevButtons.forEach(e=>{e.addEventListener("click",()=>this.onNavigationButtonClick(1))}),this.nextButtons.forEach(e=>{e.addEventListener("click",()=>this.onNavigationButtonClick(-1))}),this.initDrag(e),this.previousViewportWidth=window.innerWidth,window.addEventListener("resize",()=>{window.innerWidth!==this.previousViewportWidth&&(this.previousViewportWidth=window.innerWidth,this.initDrag(e),this.snap(this.currentOffset,this.buttonDuration))},!0)}initDrag(e){this.step=this.items.children[0].clientWidth;const t=e.element.querySelector(".acacias--grid-wrapper").clientWidth,i=Math.floor((t+20)/this.step);this.maxOffset=Math.ceil((t-this.items.scrollWidth)/this.step)*this.step,1===i&&this.items.children.length>1&&(this.maxOffset-=this.step),this.maxOffset<0?(e.element.querySelectorAll(".acacias--timeline--navigation").forEach(e=>e.style.visibility="visible"),this.items.classList.add("movable")):(e.element.querySelectorAll(".acacias--timeline--navigation").forEach(e=>e.style.visibility="hidden"),this.items.classList.remove("movable"))}onNavigationButtonClick(e){this.updateCurrentOffset(),this.snap(this.targetOffset+this.step*e,this.buttonDuration)}onMouseStart(e){this.dragStart=e.clientX,this.updateCurrentOffset(),window.addEventListener("mousemove",this.onMouseDrag),window.addEventListener("mouseup",this.onMouseEnd)}onTouchStart(e){this.dragStart=e.touches[0].clientX,this.updateCurrentOffset(),window.addEventListener("touchmove",this.onTouchDrag),window.addEventListener("touchend",this.onTouchEnd)}onMouseEnd(){window.removeEventListener("mousemove",this.onMouseDrag),window.removeEventListener("mouseup",this.onMouseEnd),this.snap(this.targetOffset,this.mouseDuration)}onTouchEnd(){window.removeEventListener("touchmove",this.onTouchDrag),window.removeEventListener("touchend",this.onTouchEnd),this.snap(this.targetOffset,this.touchDuration)}snap(e,t){let i=Math.floor(e/this.step)*this.step;e-i>=this.step/2&&(i+=this.step),this.updateCurrentOffset(),this.move(i-this.currentOffset,t)}move(e,t){const i=Math.min(0,Math.max(this.currentOffset+e,this.maxOffset));this.targetOffset=i,n.a.to(this.items,{x:i,ease:this.ease,duration:t,onStart:()=>{0===i?this.prevButtons.forEach(e=>{e.classList.add("disabled"),e.disabled=!0}):this.prevButtons.forEach(e=>{e.classList.remove("disabled"),e.disabled=!1}),i===this.maxOffset?this.nextButtons.forEach(e=>{e.classList.add("disabled"),e.disabled=!0}):this.nextButtons.forEach(e=>{e.classList.remove("disabled"),e.disabled=!1})}})}updateCurrentOffset(){this.currentOffset=n.a.getProperty(this.items,"x")}onMouseDrag(e){this.move(e.clientX-this.dragStart,this.mouseDuration)}onTouchDrag(e){this.move(e.changedTouches[0].clientX-this.dragStart,this.touchDuration)}}Ie.NS="acacias",Ie.IS="timeline-comp",Ie.selectors={self:"[data-"+Ie.NS+'-is="'+Ie.IS+'"]'},Object(g.a)(Ie);var De=class{static localizeSVG(e,t){Array.from(e.querySelectorAll(".acacias--svg-map-city")).forEach(e=>{const i=e.getAttribute("data-id");if(i)try{const n=document.querySelector(`.data-acacias-ex-locales [data-locale-city-id="${i}"][data-locale-lang-id="${t}"]`),r=n?n.textContent:null;if(null===r)return;const o=e.querySelector("tspan");null!==o&&(o.textContent=r)}catch(e){}})}};class Me{constructor(e){this.isBoxOpen=!1,this.currentBoxId=null,e&&e.element&&(this.config=e,this.init(e))}init(e){e.element.removeAttribute("data-"+Me.NS+"-is"),n.a.to("#bm--ruler",{alpha:"0.2",ease:"none",duration:5}),this.initCities(e)}debugSafari(){this.config.element.querySelectorAll(".moog").forEach(e=>{e.style.backgroundColor="red",e.setAttribute("fill","orange"),e.addEventListener("mousedown",e=>{})});const e=this.config.element.querySelector("tspan");e.style.fill="green",e.addEventListener("mousedown",e=>{})}initCities(e){const t=e.element,i=e.element.getAttribute("data-acacias-mode"),o=t.querySelector(".acacias--map-popup"),a=t.querySelector(".acacias--map-popup-texts"),s=o.querySelector(".acacias--map-popup-address1 .cmp-text"),c=o.querySelector(".acacias--map-popup--btn-close"),l=[...t.querySelectorAll(".acacias--svg-map-city")],u=(e=.3)=>{this.isBoxOpen||(n.a.killTweensOf(l),n.a.to(l,{duration:.3,opacity:1,delay:e,overwrite:!0}))},d=e=>{n.a.killTweensOf([o]),e.to(o,{duration:.1,ease:r.e.easeOut,autoAlpha:0,y:"-=0"})},h=()=>{d(n.a.timeline()),this.isBoxOpen=!1,this.currentBoxId=null,u(0)};var p=null;l.forEach(e=>{const f=e.getAttribute("data-id"),m=t=>{t.currentTarget;n.a.killTweensOf(l),n.a.to(l,{duration:.1,opacity:.3}),n.a.killTweensOf(e),n.a.to(e,{duration:.25,ease:r.a.easeOut,opacity:1}),p=e},g=t=>{p?(n.a.killTweensOf(e),n.a.to(e,{duration:.25,ease:r.a.easeOut,opacity:.3})):(n.a.killTweensOf(l),n.a.to(l,{duration:.3,opacity:1,delay:.3})),u(.2)},v=e=>{this.isBoxOpen&&h(),window.removeEventListener("scroll",v)},y=e=>{e.stopImmediatePropagation(),e.preventDefault(),window.removeEventListener("scroll",v),window.addEventListener("scroll",v);const t=document.querySelector(`.acacias--map-popup-content[data-ex-map-popup-id="${f}"]`);if(t&&f!==this.currentBoxId){const i=this.config.element.querySelector(".ref-point"),l=this.config.element.getBoundingClientRect(),[u,h]=(l.width,[e.clientX-l.x,e.clientY-l.y]);n.a.set(i,{x:u,y:h});const p=n.a.timeline();let m=-30;this.isBoxOpen&&(d(p),p.to(o,{duration:0}),m=0),p.to(a,{duration:0,display:"block"},0).to(o,{duration:0,onComplete:()=>{const e=t.cloneNode(!0);s&&t&&(s.innerHTML=e.outerHTML);const i=o.getBoundingClientRect(),n=u/l.width<.75,d=window.innerWidth-i.width-45,f=Math.max(15,Math.min(d,n?u+50:u-50-i.width)),m=80-l.y,g=-l.y+window.innerHeight-i.height-20,v=0*l.height+Math.min(g,Math.max(m,(.9*l.height-i.height)*(h/l.height)));p.to(o,{duration:0,autoAlpha:0,x:f,y:v+10},0).to([a,c],{duration:0,opacity:0,display:"block"},0).to(o,{duration:.6,ease:r.e.easeOut,autoAlpha:1},0).to(o,{duration:1,ease:r.e.easeOut,x:f,y:v},0).to([a,c],{duration:.35,opacity:1,ease:r.e.easeOut,display:"block"},0)}}),this.isBoxOpen=!0,this.currentBoxId=f}},b=`a[data-city-id=${f}]`;document.querySelector(b).addEventListener("click",y);const w=e.querySelector(".acacias--svg-map-city-text");if("full"==i){document.querySelector(".acacias--exhibition-map").addEventListener("click",h),c.addEventListener("click",h),window.addEventListener("resize",h),w.addEventListener("mouseover",m),w.addEventListener("mouseout",g),w.addEventListener("click",y);const e=`.acacias--map-cell[data-city=${f}]`,i=t.querySelector(e);i&&(i.addEventListener("mouseover",m),i.addEventListener("mouseout",g),i.addEventListener("click",y))}}),this.config.element.addEventListener("mouseleave",()=>{u()});const f=e.element.getAttribute("data-acacias-lang")||"en",m=e.element.querySelector("#acacias--svg-cities");m&&(De.localizeSVG(m,f),setTimeout(()=>this.fitLegend(e),0))}fitLegend(e){const t=1274/this.config.element.querySelector(".acacias--svg-map").getBoundingClientRect().width,i=e.element.querySelector(".acacias--svg-map-legend tspan"),n=e.element.querySelector(".acacias--svg-map-legend rect");if(i){const e=Math.round(i.getBoundingClientRect().width*t)+15;n.setAttribute("width",e+"px")}}exportCitiesBoundingBoxes(e){const t=[...e.querySelectorAll(".acacias--svg-map-city")];e.getBoundingClientRect();t.forEach(e=>{e.querySelector("circle"),e.querySelector(".acacias--svg-map-city-text").getBoundingClientRect()})}exportCitiesPositions(e){[...e.querySelectorAll(".acacias--svg-map-city")].map((e,t)=>{const i=e.querySelector("circle"),n=e.querySelector("tspan").getBBox(),r={x:.5*(parseFloat(i.getAttribute("cx"))+(n.x+.5*n.width)),y:parseFloat(i.getAttribute("cy"))},o=document.createElementNS("http://www.w3.org/2000/svg","circle");return o.setAttributeNS(null,"cx",r.x.toString()),o.setAttributeNS(null,"cy",r.y.toString()),o.setAttributeNS(null,"r","5"),o.setAttributeNS(null,"fill","#ff0000"),e.appendChild(o),{x:r.x,y:r.y,id:e.getAttribute("data-id")}})}}Me.NS="acacias",Me.IS="comp-exhibition-map",Me.selectors={self:"[data-"+Me.NS+'-is="'+Me.IS+'"]'};function Pe(){const e=document.querySelectorAll(Me.selectors.self);for(let t=0;t{const t=u.cloneNode(!0),i=d.cloneNode(!0),n=l.cloneNode(!0),r=`${Ne}${g.length+1}`,o=`footnote-${r}-target`,a=`footnote-${r}-base`;n.id=o,n.innerHTML=e.cloneNode(!0).innerHTML,n.appendChild(i),g.push(n),t.href="#"+o,t.addEventListener("click",e=>{const t=document.getElementById(o);t&&(e.preventDefault(),t.scrollIntoView({behavior:"smooth"}))}),i.href="#"+a,i.addEventListener("click",e=>{const t=document.getElementById(a);t&&(e.preventDefault(),t.scrollIntoView({behavior:"smooth"}))}),n.addEventListener("click",e=>{const t=e.target;if(null==t?void 0:t.closest("a:not(.acacias--pam-footnotes__link)"))return;const i=document.getElementById(a);i&&(e.preventDefault(),i.scrollIntoView({behavior:"smooth"}))}),e.id=a,e.appendChild(t),e.setAttribute("aria-describedby",f)}),o.append(...g),o.hidden=0===g.length,Ne+=1}getFootnoteItems(e){for(const t of Re){const i=e.closest(t),n=null==i?void 0:i.querySelectorAll(".footnote");if(null==n?void 0:n.length)return Array.from(n)}return Array.from(e.ownerDocument.querySelectorAll(".footnote"))}}qe.NS="acacias",qe.IS="pam-footnotes",qe.selectors={self:`[data-${qe.NS}-is="${qe.IS}"]`},Object(g.a)(qe);var Be=i(18);class Fe{constructor(e){this.config=null,e&&e.element&&(this.config=e,this.init())}init(){const e=!Be.a;document.documentElement.toggleAttribute("data-registration-wall-active",e)}}Fe.NS="acacias",Fe.IS="registration-wall",Fe.selectors={self:"[data-"+Fe.NS+'-is="'+Fe.IS+'"]'},Object(g.a)(Fe);class je{static attachGSAP(){void 0===window.gsap&&(window.gsap=n.b)}static checkDepsSimple(){let e;e=document.querySelectorAll("[data-acacias-is='chart-comp']"),e.length>0&&Promise.all([i.e(3),i.e(7)]).then(i.bind(null,180)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='lpptable-comp']"),e.length>0&&i.e(18).then(i.bind(null,181)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='gallery-stage-comp']"),e.length>0&&i.e(22).then(i.bind(null,182)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='news-filter-v2-comp']"),e.length>0&&i.e(16).then(i.bind(null,195)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='pictet-shorts-comp']"),e.length>0&&i.e(17).then(i.bind(null,183)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='video-comp']"),e.length>0&&Promise.all([i.e(0),i.e(19)]).then(i.bind(null,38)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='service-video-comp']"),e.length>0&&Promise.all([i.e(0),i.e(10)]).then(i.bind(null,196)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='podcast-v2-comp']"),e.length>0&&Promise.all([i.e(0),i.e(20)]).then(i.bind(null,184)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='gallery-comp']"),e.length>0&&Promise.all([i.e(0),i.e(8)]).then(i.bind(null,185)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='virtual-tour-comp']"),e.length>0&&i.e(23).then(i.bind(null,186)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='short-videos-comp']"),e.length>0&&Promise.all([i.e(0),i.e(9)]).then(i.bind(null,187)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='pam-video']"),e.length>0&&Promise.all([i.e(0),i.e(21)]).then(i.bind(null,188)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='pam-stage']"),e.length>0&&i.e(14).then(i.bind(null,197)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='pam-fund-list']"),e.length>0&&i.e(4).then(i.bind(null,198)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='pam-fund-tile-list']"),e.length>0&&i.e(5).then(i.bind(null,189)).then(e=>{}),e=document.querySelectorAll("[data-acacias-is='pam-account-drawer']"),e.length>0&&Promise.all([i.e(11).then(i.bind(null,190)),i.e(13).then(i.bind(null,191)),i.e(12).then(i.bind(null,192)),i.e(6).then(i.bind(null,193)),i.e(15).then(i.bind(null,194))]).then(e=>{})}}je.checkDepsSimple(),je.attachGSAP();t.default=je},function(e,t,i){"use strict";var n={};i.r(n),i.d(n,"hasBrowserEnv",(function(){return v})),i.d(n,"hasStandardBrowserWebWorkerEnv",(function(){return w})),i.d(n,"hasStandardBrowserEnv",(function(){return b})),i.d(n,"navigator",(function(){return y})),i.d(n,"origin",(function(){return S}));var r=i(1),o=i(16),a=i(12);function s(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function c(e,t){this._pairs=[],e&&Object(a.a)(e,this,t)}const l=c.prototype;l.append=function(e,t){this._pairs.push([e,t])},l.toString=function(e){const t=e?function(t){return e.call(this,t,s)}:s;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var u=c;function d(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function h(e,t,i){if(!t)return e;const n=i&&i.encode||d;r.a.isFunction(i)&&(i={serialize:i});const o=i&&i.serialize;let a;if(a=o?o(t,i):r.a.isURLSearchParams(t)?t.toString():new u(t,i).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}var p=class{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){r.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},f=i(4),m={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:u,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const v="undefined"!=typeof window&&"undefined"!=typeof document,y="object"==typeof navigator&&navigator||void 0,b=v&&(!y||["ReactNative","NativeScript","NS"].indexOf(y.product)<0),w="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,S=v&&window.location.href||"http://localhost";var _={...n,...g};var E=function(e){function t(e,i,n,o){let a=e[o++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),c=o>=e.length;if(a=!a&&r.a.isArray(n)?n.length:a,c)return r.a.hasOwnProp(n,a)?n[a]=[n[a],i]:n[a]=i,!s;n[a]&&r.a.isObject(n[a])||(n[a]=[]);return t(e,i,n[a],o)&&r.a.isArray(n[a])&&(n[a]=function(e){const t={},i=Object.keys(e);let n;const r=i.length;let o;for(n=0;n{t(function(e){return r.a.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,i,0)}),i}return null};const T={transitional:m,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const i=t.getContentType()||"",n=i.indexOf("application/json")>-1,o=r.a.isObject(e);o&&r.a.isHTMLForm(e)&&(e=new FormData(e));if(r.a.isFormData(e))return n?JSON.stringify(E(e)):e;if(r.a.isArrayBuffer(e)||r.a.isBuffer(e)||r.a.isStream(e)||r.a.isFile(e)||r.a.isBlob(e)||r.a.isReadableStream(e))return e;if(r.a.isArrayBufferView(e))return e.buffer;if(r.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(a.a)(e,new _.classes.URLSearchParams,Object.assign({visitor:function(e,t,i,n){return _.isNode&&r.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=r.a.isFileList(e))||i.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(a.a)(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,i){if(r.a.isString(e))try{return(t||JSON.parse)(e),r.a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(i||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||T.transitional,i=t&&t.forcedJSONParsing,n="json"===this.responseType;if(r.a.isResponse(e)||r.a.isReadableStream(e))return e;if(e&&r.a.isString(e)&&(i&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw f.a.from(e,f.a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_.classes.FormData,Blob:_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.a.forEach(["delete","get","head","post","put","patch"],e=>{T.headers[e]={}});var C=T;const A=r.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const x=Symbol("internals");function O(e){return e&&String(e).trim().toLowerCase()}function L(e){return!1===e||null==e?e:r.a.isArray(e)?e.map(L):String(e)}function k(e,t,i,n,o){return r.a.isFunction(n)?n.call(this,t,i):(o&&(t=i),r.a.isString(t)?r.a.isString(n)?-1!==t.indexOf(n):r.a.isRegExp(n)?n.test(t):void 0:void 0)}class I{constructor(e){e&&this.set(e)}set(e,t,i){const n=this;function o(e,t,i){const o=O(t);if(!o)throw new Error("header name must be a non-empty string");const a=r.a.findKey(n,o);(!a||void 0===n[a]||!0===i||void 0===i&&!1!==n[a])&&(n[a||t]=L(e))}const a=(e,t)=>r.a.forEach(e,(e,i)=>o(e,i,t));if(r.a.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(r.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let i,n,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),i=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!i||t[i]&&A[i]||("set-cookie"===i?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)})),t})(e),t);else if(r.a.isHeaders(e))for(const[t,n]of e.entries())o(n,t,i);else null!=e&&o(t,e,i);return this}get(e,t){if(e=O(e)){const i=r.a.findKey(this,e);if(i){const e=this[i];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)t[n[1]]=n[2];return t}(e);if(r.a.isFunction(t))return t.call(this,e,i);if(r.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=O(e)){const i=r.a.findKey(this,e);return!(!i||void 0===this[i]||t&&!k(0,this[i],i,t))}return!1}delete(e,t){const i=this;let n=!1;function o(e){if(e=O(e)){const o=r.a.findKey(i,e);!o||t&&!k(0,i[o],o,t)||(delete i[o],n=!0)}}return r.a.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let i=t.length,n=!1;for(;i--;){const r=t[i];e&&!k(0,this[r],r,e,!0)||(delete this[r],n=!0)}return n}normalize(e){const t=this,i={};return r.a.forEach(this,(n,o)=>{const a=r.a.findKey(i,o);if(a)return t[a]=L(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i)}(o):String(o).trim();s!==o&&delete t[o],t[s]=L(n),i[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return r.a.forEach(this,(i,n)=>{null!=i&&!1!==i&&(t[n]=e&&r.a.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(e=>i.set(e)),i}static accessor(e){const t=(this[x]=this[x]={accessors:{}}).accessors,i=this.prototype;function n(e){const n=O(e);t[n]||(!function(e,t){const i=r.a.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+i,{value:function(e,i,r){return this[n].call(this,t,e,i,r)},configurable:!0})})}(i,e),t[n]=!0)}return r.a.isArray(e)?e.forEach(n):n(e),this}}I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.a.reduceDescriptors(I.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[i]=e}}}),r.a.freezeMethods(I);var D=I;function M(e,t){const i=this||C,n=t||i,o=D.from(n.headers);let a=n.data;return r.a.forEach(e,(function(e){a=e.call(i,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function P(e){return!(!e||!e.__CANCEL__)}function N(e,t,i){f.a.call(this,null==e?"canceled":e,f.a.ERR_CANCELED,t,i),this.name="CanceledError"}r.a.inherits(N,f.a,{__CANCEL__:!0});var R=N,q=i(17);function B(e,t,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?t(new f.a("Request failed with status code "+i.status,[f.a.ERR_BAD_REQUEST,f.a.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}var F=function(e,t){e=e||10;const i=new Array(e),n=new Array(e);let r,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];r||(r=c),i[o]=s,n[o]=c;let u=a,d=0;for(;u!==o;)d+=i[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-r{r=o,i=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=o?a(e,t):(i=e,n||(n=setTimeout(()=>{n=null,a(i)},o-s)))},()=>i&&a(i)]};const H=(e,t,i=3)=>{let n=0;const r=F(50,250);return j(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,c=r(s);n=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i,lengthComputable:null!=a,[t?"download":"upload"]:!0})},i)},U=(e,t)=>{const i=null!=e;return[n=>t[0]({lengthComputable:i,total:e,loaded:n}),t[1]]},W=e=>(...t)=>r.a.asap(()=>e(...t));var z,V,$=_.hasStandardBrowserEnv?(z=new URL(_.origin),V=_.navigator&&/(msie|trident)/i.test(_.navigator.userAgent),e=>(e=new URL(e,_.origin),z.protocol===e.protocol&&z.host===e.host&&(V||z.port===e.port))):()=>!0,Y=_.hasStandardBrowserEnv?{write(e,t,i,n,o,a){const s=[e+"="+encodeURIComponent(t)];r.a.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),r.a.isString(n)&&s.push("path="+n),r.a.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function G(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const X=e=>e instanceof D?{...e}:e;function K(e,t){t=t||{};const i={};function n(e,t,i,n){return r.a.isPlainObject(e)&&r.a.isPlainObject(t)?r.a.merge.call({caseless:n},e,t):r.a.isPlainObject(t)?r.a.merge({},t):r.a.isArray(t)?t.slice():t}function o(e,t,i,o){return r.a.isUndefined(t)?r.a.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function a(e,t){if(!r.a.isUndefined(t))return n(void 0,t)}function s(e,t){return r.a.isUndefined(t)?r.a.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function c(i,r,o){return o in t?n(i,r):o in e?n(void 0,i):void 0}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(e,t,i)=>o(X(e),X(t),0,!0)};return r.a.forEach(Object.keys(Object.assign({},e,t)),(function(n){const a=l[n]||o,s=a(e[n],t[n],n);r.a.isUndefined(s)&&a!==c||(i[n]=s)})),i}var J=e=>{const t=K({},e);let i,{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:s,headers:c,auth:l}=t;if(t.headers=c=D.from(c),t.url=h(G(t.baseURL,t.url),e.params,e.paramsSerializer),l&&c.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),r.a.isFormData(n))if(_.hasStandardBrowserEnv||_.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(!1!==(i=c.getContentType())){const[e,...t]=i?i.split(";").map(e=>e.trim()).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...t].join("; "))}if(_.hasStandardBrowserEnv&&(o&&r.a.isFunction(o)&&(o=o(t)),o||!1!==o&&$(t.url))){const e=a&&s&&Y.read(s);e&&c.set(a,e)}return t};var Z="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,i){const n=J(e);let o=n.data;const a=D.from(n.headers).normalize();let s,c,l,u,d,{responseType:h,onUploadProgress:p,onDownloadProgress:g}=n;function v(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let y=new XMLHttpRequest;function b(){if(!y)return;const n=D.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());B((function(e){t(e),v()}),(function(e){i(e),v()}),{data:h&&"text"!==h&&"json"!==h?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(b)},y.onabort=function(){y&&(i(new f.a("Request aborted",f.a.ECONNABORTED,e,y)),y=null)},y.onerror=function(){i(new f.a("Network Error",f.a.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const r=n.transitional||m;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),i(new f.a(t,r.clarifyTimeoutError?f.a.ETIMEDOUT:f.a.ECONNABORTED,e,y)),y=null},void 0===o&&a.setContentType(null),"setRequestHeader"in y&&r.a.forEach(a.toJSON(),(function(e,t){y.setRequestHeader(t,e)})),r.a.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),h&&"json"!==h&&(y.responseType=n.responseType),g&&([l,d]=H(g,!0),y.addEventListener("progress",l)),p&&y.upload&&([c,u]=H(p),y.upload.addEventListener("progress",c),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{y&&(i(!t||t.type?new R(null,e,y):t),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const w=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);w&&-1===_.protocols.indexOf(w)?i(new f.a("Unsupported protocol "+w+":",f.a.ERR_BAD_REQUEST,e)):y.send(o||null)}))};var Q=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let i,n=new AbortController;const o=function(e){if(!i){i=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof f.a?t:new R(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new f.a(`timeout ${t} of ms exceeded`,f.a.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>r.a.asap(s),c}};const ee=function*(e,t){let i=e.byteLength;if(!t||i{const r=async function*(e,t){for await(const i of te(e))yield*ee(i,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await r.next();if(t)return s(),void e.close();let o=n.byteLength;if(i){let e=a+=o;i(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},ne="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,re=ne&&"function"==typeof ReadableStream,oe=ne&&("function"==typeof TextEncoder?(ae=new TextEncoder,e=>ae.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ae;const se=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ce=re&&se(()=>{let e=!1;const t=new Request(_.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),le=re&&se(()=>r.a.isReadableStream(new Response("").body)),ue={stream:le&&(e=>e.body)};var de;ne&&(de=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ue[e]&&(ue[e]=r.a.isFunction(de[e])?t=>t[e]():(t,i)=>{throw new f.a(`Response type '${e}' is not supported`,f.a.ERR_NOT_SUPPORT,i)})}));const he=async(e,t)=>{const i=r.a.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(r.a.isBlob(e))return e.size;if(r.a.isSpecCompliantForm(e)){const t=new Request(_.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return r.a.isArrayBufferView(e)||r.a.isArrayBuffer(e)?e.byteLength:(r.a.isURLSearchParams(e)&&(e+=""),r.a.isString(e)?(await oe(e)).byteLength:void 0)})(t):i};var pe=ne&&(async e=>{let{url:t,method:i,data:n,signal:o,cancelToken:a,timeout:s,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:p}=J(e);u=u?(u+"").toLowerCase():"text";let m,g=Q([o,a&&a.toAbortSignal()],s);const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(l&&ce&&"get"!==i&&"head"!==i&&0!==(y=await he(d,n))){let e,i=new Request(t,{method:"POST",body:n,duplex:"half"});if(r.a.isFormData(n)&&(e=i.headers.get("content-type"))&&d.setContentType(e),i.body){const[e,t]=U(y,H(W(l)));n=ie(i.body,65536,e,t)}}r.a.isString(h)||(h=h?"include":"omit");const o="credentials"in Request.prototype;m=new Request(t,{...p,signal:g,method:i.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:o?h:void 0});let a=await fetch(m);const s=le&&("stream"===u||"response"===u);if(le&&(c||s&&v)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});const t=r.a.toFiniteNumber(a.headers.get("content-length")),[i,n]=c&&U(t,H(W(c),!0))||[];a=new Response(ie(a.body,65536,i,()=>{n&&n(),v&&v()}),e)}u=u||"text";let f=await ue[r.a.findKey(ue,u)||"text"](a,e);return!s&&v&&v(),await new Promise((t,i)=>{B(t,i,{data:f,headers:D.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:m})})}catch(t){if(v&&v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new f.a("Network Error",f.a.ERR_NETWORK,e,m),{cause:t.cause||t});throw f.a.from(t,t&&t.code,e,m)}});const fe={http:q.a,xhr:Z,fetch:pe};r.a.forEach(fe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const me=e=>"- "+e,ge=e=>r.a.isFunction(e)||null===e||!1===e;var ve=e=>{e=r.a.isArray(e)?e:[e];const{length:t}=e;let i,n;const o={};for(let r=0;r`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let i=t?e.length>1?"since :\n"+e.map(me).join("\n"):" "+me(e[0]):"as no adapter specified";throw new f.a("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n};function ye(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new R(null,e)}function be(e){ye(e),e.headers=D.from(e.headers),e.data=M.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ve(e.adapter||C.adapter)(e).then((function(t){return ye(e),t.data=M.call(e,e.transformResponse,t),t.headers=D.from(t.headers),t}),(function(t){return P(t)||(ye(e),t&&t.response&&(t.response.data=M.call(e,e.transformResponse,t.response),t.response.headers=D.from(t.response.headers))),Promise.reject(t)}))}const we={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{we[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Se={};we.transitional=function(e,t,i){return(n,r,o)=>{if(!1===e)throw new f.a(function(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(i?". "+i:"")}(r," has been removed"+(t?" in "+t:"")),f.a.ERR_DEPRECATED);return t&&!Se[r]&&(Se[r]=!0),!e||e(n,r,o)}},we.spelling=function(e){return(e,t)=>!0};var _e={assertOptions:function(e,t,i){if("object"!=typeof e)throw new f.a("options must be an object",f.a.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const o=n[r],a=t[o];if(a){const t=e[o],i=void 0===t||a(t,o,e);if(!0!==i)throw new f.a("option "+o+" must be "+i,f.a.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new f.a("Unknown option "+o,f.a.ERR_BAD_OPTION)}},validators:we};const Ee=_e.validators;class Te{constructor(e){this.defaults=e,this.interceptors={request:new p,response:new p}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const i=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?i&&!String(e.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+i):e.stack=i}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=K(this.defaults,t);const{transitional:i,paramsSerializer:n,headers:o}=t;void 0!==i&&_e.assertOptions(i,{silentJSONParsing:Ee.transitional(Ee.boolean),forcedJSONParsing:Ee.transitional(Ee.boolean),clarifyTimeoutError:Ee.transitional(Ee.boolean)},!1),null!=n&&(r.a.isFunction(n)?t.paramsSerializer={serialize:n}:_e.assertOptions(n,{encode:Ee.function,serialize:Ee.function},!0)),_e.assertOptions(t,{baseUrl:Ee.spelling("baseURL"),withXsrfToken:Ee.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&r.a.merge(o.common,o[t.method]);o&&r.a.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=D.concat(a,o);const s=[];let c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,h=0;if(!c){const e=[be.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),d=e.length,u=Promise.resolve(t);h{if(!i._listeners)return;let t=i._listeners.length;for(;t-- >0;)i._listeners[t](e);i._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{i.subscribe(e),t=e}).then(e);return n.cancel=function(){i.unsubscribe(t)},n},e((function(e,n,r){i.reason||(i.reason=new R(e,n,r),t(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ae((function(t){e=t})),cancel:e}}}var xe=Ae;const Oe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Oe).forEach(([e,t])=>{Oe[t]=e});var Le=Oe;const ke=function e(t){const i=new Ce(t),n=Object(o.a)(Ce.prototype.request,i);return r.a.extend(n,Ce.prototype,i,{allOwnKeys:!0}),r.a.extend(n,i,null,{allOwnKeys:!0}),n.create=function(i){return e(K(t,i))},n}(C);ke.Axios=Ce,ke.CanceledError=R,ke.CancelToken=xe,ke.isCancel=P,ke.VERSION="1.7.9",ke.toFormData=a.a,ke.AxiosError=f.a,ke.Cancel=ke.CanceledError,ke.all=function(e){return Promise.all(e)},ke.spread=function(e){return function(t){return e.apply(null,t)}},ke.isAxiosError=function(e){return r.a.isObject(e)&&!0===e.isAxiosError},ke.mergeConfig=K,ke.AxiosHeaders=D,ke.formToJSON=e=>E(r.a.isHTMLForm(e)?new FormData(e):e),ke.getAdapter=ve,ke.HttpStatusCode=Le,ke.default=ke;t.a=ke}]);