PageSourceSearch

https://www.jamsadr.com/sites/default/files/js/js_F6DITj2Jg1-W_yNM…GQw9eGTJtS0YNc0ggj2FKAymiXW33UvV3UC_gGWF7wn

js jamsadr.com collected 2026-09-24 08:26:57 UTC 731,604 bytes, 963 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function(){'use strict';window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'e_pageload',page:{pageTitle:document.title,pageCategory:getPageCategory(),pageReferer:document.referrer,pageURL:document.location.href}});document.addEventListener("DOMContentLoaded",function(){normalizeNewsDetailPracticeAreaLinks();const logo=document.querySelector(".logo-container > a");if(logo)logo.addEventListener("click",()=>{window.dataLayer.push({event:"logo_click",position:"Header"});});const headerLinks=document.querySelectorAll("nav.nav-top-container a");if(headerLinks.length)headerLinks.forEach((link)=>{link.addEventListener("click",(event)=>{window.dataLayer.push({event:"header_link_click",link_text:link.innerText||"",link_url:link.href||""});});});const primaryLinks=document.querySelectorAll("nav.nav-primary-container .nav-primary-item .nav-primary-item-content > a");if(primaryLinks.length)primaryLinks.forEach((link)=>{link.addEventListener("click",()=>{window.dataLayer.push({event:"primary_navigation",navigation_type:"Primary Navigation",menu_name:link.innerText||""});});});const dropdownMenuPrimary=document.querySelectorAll("nav.nav-primary-container .dropdown-menu .nav-section > a");dropdownMenuPrimary.forEach((element)=>{element.addEventListener("click",()=>
2{const parent=element.closest(".nav-primary-item").querySelector(".nav-primary-item-content > a").innerText?.trim()||"";const child=element.innerText?.trim()||"";window.dataLayer.push({event:"primary_dropdown_navigation",navigation_type:"Primary Dropdown Navigation",parent_menu_name:parent||null,menu_name:`${child}`||null});});});const dropdownMenu=document.querySelectorAll("nav.nav-primary-container .dropdown-menu .nav-section .nav-sub .nav-item a");dropdownMenu.forEach((element)=>{element.addEventListener("click",()=>{const primaryParent=element.closest(".nav-primary-item").querySelector(".nav-primary-item-content > a").innerText?.trim()||"";const parent=element.closest(".nav-section").querySelector("a").innerText?.trim()||"";const child=element.innerText?.trim()||"";window.dataLayer.push({event:"primary_dropdown_navigation",navigation_type:"Primary Dropdown Navigation",parent_menu_name:primaryParent||null,menu_name:`${parent} : ${child}`||null});});});const searchForm=document.querySelector("header .search-form");if(searchForm)searchForm.addEventListener("submit",()=>{const searchInput=searchForm.querySelector('input[name="q"]');const searchTerm=searchInput?searchInput.value.trim():"";window.dataLayer.push({event:"search",searchTerm,searchResults:"main nav search redirected to search page"});});const bannerItems=document.querySelectorAll("footer .banner-item");if(bannerItems.length)bannerItems.forEach((item)=>{const bannerCta=item.querySelector("j-button");if(bannerCta)bannerCta.addEventListener("click",()=>{const bannerTitle=item.closest(".banner-item").querySelector(".banner-item-text")?.innerText?.trim()||"";const bannerCtaText=bannerCta.innerText.trim()||"";window.dataLayer.push({event:"banner_cta_interaction",banner_title:bannerTitle,banner_cta:bannerCtaText});});});const footerMenuLinks=document.querySelectorAll("footer .footer-content-menu a");footerMenuLinks.forEach((element)=>{element.addEventListener("click",(event)=>{const text=event.currentTarget.innerText;window.dataLayer.push({event:"footer_navigation",navigation_type:"Footer Navigation",menu_name:text});});});const social=document.querySelectorAll("footer .footer-content-social-links a");social.forEach((link)=>{link.addEventListener("click",(event)=>{event.stopPropagation();const socialNetwork=link.querySelector("img")?.alt?.trim()||"";window.dataLayer.push({event:"socialInteraction",socialNetwork:socialNetwork||"",socialTarget:link.href||"",position:"Footer"});});});const videoHeroBanner=document.querySelector("[data-component-name='video-hero-banner']");if(videoHeroBanner){const videoHeroBannerCta=videoHeroBanner.querySelectorAll(".video-hero-banner-ctas  j-button");if(videoHeroBannerCta.length)videoHeroBannerCta.forEach((videoHeroBannerCta)=>{videoHeroBannerCta.addEventListener("click",()=>{window.dataLayer.push({event:"video_hero_banner_interaction",component_name:"Video Hero Banner",interaction_type:"CTA Click",link_text:videoHeroBannerCta.innerText||"",link_url:videoHeroBannerCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const videoHeroBannerAccordionTextLinks=videoHeroBanner.querySelectorAll("j-accordion j-text-link");if(videoHeroBannerAccordionTextLinks.length)videoHeroBannerAccordionTextLinks.forEach((videoHeroBannerAccordionTextLink)=>{videoHeroBannerAccordionTextLink.addEventListener("click",()=>{window.dataLayer.push({event:"video_hero_banner_accordion_text_link_interaction",component_name:"Video Hero Banner Accordion",interaction_type:"Text Link Click",accordion_title:videoHeroBannerAccordionTextLink.closest("j-accordion")?.querySelector("h2[slot='heading']")?.innerText||"",accordion_item_title:videoHeroBannerAccordionTextLink.closest("j-accordion-item")?.querySelector("[slot='heading']")?.innerText||"",link_text:videoHeroBannerAccordionTextLink.innerText||"",link_url:videoHeroBannerAccordionTextLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const accordion=videoHeroBanner.querySelector("j-accordion");if(accordion){const accordionItems=accordion.querySelectorAll("j-accordion-item");
2if(accordionItems.length)accordionItems.forEach((accordionItem,index)=>{accordionItem.addEventListener("click",()=>{window.dataLayer.push({event:"accordion_interaction",interaction_type:"Accordion Item Click",accordion_title:accordion.querySelector("h2[slot='heading']")?.innerText||"",accordion_item_title:accordionItem.querySelector("[slot='heading']")?.innerText||"",accordion_item_position:index+1,page_category:getPageCategory(),page_url:document.location.href});});});const ctaButtons=accordion.querySelectorAll("j-button");if(ctaButtons.length)ctaButtons.forEach((ctaButton)=>{ctaButton.addEventListener("click",()=>{window.dataLayer.push({event:"accordion_interaction",component_name:"Accordion",interaction_type:"CTA Click",link_text:ctaButton.innerText||"",link_url:ctaButton.href||"",page_category:getPageCategory(),page_url:document.location.href});});});}}const neutralSearchSliderComponentAll=document.querySelectorAll("[data-component-name='neutral-search-slider']");if(neutralSearchSliderComponentAll.length)neutralSearchSliderComponentAll.forEach((neutralSearchSliderComponent)=>{const neutralSearchSliderTextLinks=neutralSearchSliderComponent.querySelectorAll("j-text-link");if(neutralSearchSliderTextLinks.length)neutralSearchSliderTextLinks.forEach((neutralSearchSliderTextLink)=>{neutralSearchSliderTextLink.addEventListener("click",()=>{window.dataLayer.push({event:"neutral_search_slider_interaction",component_name:"Neutral Search Slider",component_title:neutralSearchSliderComponent.querySelector(".neutral-search-slider-heading")?.innerText||"",interaction_type:"Text Link Click",link_text:neutralSearchSliderTextLink.innerText||"",link_url:neutralSearchSliderTextLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const neutralSearchSliderCtaButton=neutralSearchSliderComponent.querySelector("j-button");if(neutralSearchSliderCtaButton)neutralSearchSliderCtaButton.addEventListener("click",()=>{window.dataLayer.push({event:"neutral_search_slider_cta_interaction",component_name:"Neutral Search Slider",component_title:neutralSearchSliderComponent.querySelector(".neutral-search-slider-heading")?.innerText||"",interaction_type:"CTA Click",link_text:neutralSearchSliderCtaButton.innerText||"",link_url:neutralSearchSliderCtaButton.href||"/neutrals/search",page_category:getPageCategory(),page_url:document.location.href});});const neutralSearchSliderSlider=neutralSearchSliderComponent.querySelector(".neutral-search-slider-slider");if(neutralSearchSliderSlider)neutralSearchSliderSlider.addEventListener("click",(e)=>{const neutralSearchSliderItem=e.target.closest(".neutral-search-slider-card");if(!neutralSearchSliderItem)return;window.dataLayer.push({event:"neutral_search_slider_interaction",component_name:"Neutral Search Slider",component_title:neutralSearchSliderComponent.querySelector(".neutral-search-slider-heading")?.innerText||"",interaction_type:"Neutral Profile Click",neutral_full_name:neutralSearchSliderItem.querySelector(".neutral-search-slider-card-name")?.innerText||"",neutral_location:neutralSearchSliderItem.querySelector(".neutral-search-slider-card-location")?.innerText||"",neutral_profile_url:neutralSearchSliderItem.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const storyCards=document.querySelectorAll("[data-component-name='story-cards']");if(storyCards.length)storyCards.forEach((storyCard)=>{storyCard.addEventListener("click",(e)=>{const storyCardItemLink=e.target.closest(".story-cards__item-title-link");if(!storyCardItemLink)return;const storyCardItem=storyCardItemLink.closest(".story-cards__item");if(!storyCardItem)return;window.dataLayer.push({event:`${storyCard.dataset.category}_interaction`,interaction_type:"Item Click",component_name:"Story Cards",title:storyCardItem.querySelector(".story-cards__item-title")?.innerText||"",date:storyCardItem.querySelector(".story-cards__date")?.innerText||"",location:storyCardItem.querySelector(".story-cards__location")?.innerText||"",link_url:storyCardItemLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});const viewAllStoryCardsLinks=storyCard.querySelectorAll(".story-cards__cta j-button");if(viewAllStoryCardsLinks.length)viewAllStoryCardsLinks.forEach((viewAllStoryCardsLink)=>{console.log(viewAllStoryCardsLink.href);viewAllStoryCardsLink.addEventListener("click",()=>{window.dataLayer.push({event:`cta_interaction`,interaction_type:"CTA Click",component_name:"Story Cards",component_title:storyCard.querySelector(".story-cards__title")?.innerText||"",link_text:viewAllStoryCardsLink.innerText||"",link_url:viewAllStoryCardsLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const detailStoryCards=document.querySelectorAll("[data-component-name='detail-story-cards']");if(detailStoryCards.length)detailStoryCards.forEach((detailStoryCard)=>{detailStoryCard.addEventListener("click",(e)=>{const detailStoryCardItemLink=e.target.closest(".detail-story-cards__item-title-link");if(!detailStoryCardItemLink)return;const detailStoryCardItem=detailStoryCardItemLink.closest(".detail-story-cards__item");if(!detailStoryCardItem)return;window.dataLayer.push({event:`${detailStoryCard.dataset.category}_interaction`,interaction_type:"Item Click",component_name:"Detail Story Cards",title:detailStoryCardItem.querySelector(".detail-story-cards__item-title")?.innerText||"",date:detailStoryCardItem.querySelector(".detail-story-cards__date")?.innerText||"",location:detailStoryCardItem.querySelector(".detail-story-cards__location")?.innerText||"",link_url:detailStoryCardItemLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const imageTextFeatureBlocks=document.querySelectorAll("[data-component-name='image-text-feature-block']");if(imageTextFeatureBlocks.length)imageTextFeatureBlocks.forEach((imageTextFeatureBlock)=>{const imageTextFeatureBlockCtas=imageTextFeatureBlock.querySelectorAll("j-button");if(imageTextFeatureBlockCtas.length)imageTextFeatureBlockCtas.forEach((imageTextFeatureBlockCta)=>{imageTextFeatureBlockCta.addEventListener("click",()=>{window.dataLayer.push({event:"image_text_feature_block_interaction",component_name:"Image Text Feature Block",title:imageTextFeatureBlock.querySelector(".image-text-feature-block-content-text-title")?.innerText||"",interaction_type:"CTA Click",link_text:imageTextFeatureBlockCta.innerText||"",link_url:imageTextFeatureBlockCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const accordionComponent=document.querySelectorAll("j-accordion-panel");
2if(accordionComponent.length)accordionComponent.forEach((accordionComponent)=>{const accordionItems=accordionComponent.querySelectorAll("j-accordion-panel-item");if(accordionItems.length)accordionItems.forEach((accordionItem,index)=>{accordionItem.addEventListener("click",()=>{window.dataLayer.push({component_name:"Accordion Panel",interaction_type:"Accordion Panel Item Click",accordion_title:accordionComponent.querySelector("h2[slot='heading']")?.innerText||"",accordion_item_title:accordionItem.querySelector("[slot='heading']")?.innerText||"",accordion_item_position:index+1,page_category:getPageCategory(),page_url:document.location.href});});});});const neutralDetailHeroComponents=document.querySelectorAll(".neutral-detail-hero");if(neutralDetailHeroComponents.length)neutralDetailHeroComponents.forEach((neutralDetailHeroComponent)=>{const neutralDetailHeroCtas=neutralDetailHeroComponent.querySelectorAll(".neutral-detail-hero__actions-buttons j-button");if(neutralDetailHeroCtas.length)neutralDetailHeroCtas.forEach((neutralDetailHeroCta)=>{neutralDetailHeroCta.addEventListener("click",()=>{window.dataLayer.push({event:"neutral_detail_hero_interaction",component_name:"Neutral Detail Hero",interaction_type:"Modal Form Open Click",button_text:neutralDetailHeroCta.innerText.trim()||"",neutral_full_name:neutralDetailHeroComponent.querySelector(".neutral-detail-hero__name")?.innerText||"",page_category:getPageCategory(),page_url:document.location.href});});});});const pathname=window.location.pathname;const isNeutralDetailPage=pathname.startsWith("/neutrals/")&&pathname!=="/neutrals/search";if(isNeutralDetailPage){const neutralDetailHeroFullName=document.querySelector(".neutral-detail-hero__name")?.innerText||"";const neutralDetailHeroLocation=document.querySelector(".neutral-detail-hero__office-label")?.innerText||"";const neutralDetailHeroSpecialties=Array.from(document.querySelectorAll(".neutral-detail-biography h3 strong")).map((el)=>el.innerText.trim()).filter((text)=>text).join(",");const neutralDetailHeroTypeOfServices=Array.from(document.querySelectorAll(".neutral-detail-hero__role")).map((el)=>el.innerText.trim()).filter((text)=>text).join(" ");if(neutralDetailHeroFullName)window.dataLayer.push({event:"view_complete_profile",neutral_name:neutralDetailHeroFullName,neutral_location:neutralDetailHeroLocation,neutral_specialties:neutralDetailHeroSpecialties,type_of_services:neutralDetailHeroTypeOfServices,neutral_url:window.location.href});const vCardButtons=document.querySelectorAll("j-icon-v-card");if(vCardButtons.length>0)vCardButtons.forEach((vCardButton)=>{vCardButton.addEventListener("click",()=>{window.dataLayer.push({event:"download_page_as_a_vcard",neutral_name:neutralDetailHeroFullName,neutral_location:neutralDetailHeroLocation,neutral_specialties:neutralDetailHeroSpecialties,type_of_services:neutralDetailHeroTypeOfServices,neutral_url:window.location.href});});});}const neutralPdfDownloadButton=document.querySelector(".modal-neutral-pdf .button-neutral-pdf-print");if(neutralPdfDownloadButton)neutralPdfDownloadButton.addEventListener("click",()=>{const neutralDetailHeroFullName=document.querySelector(".neutral-detail-hero__name")?.innerText||"";window.dataLayer.push({event:"download_page_as_pdf",neutral_full_name:neutralDetailHeroFullName,page_url:document.location.href,page_category:getPageCategory()});});document.addEventListener("click",(event)=>{const isPdfIcon=event.target.closest("j-icon-pdf");
2if(isPdfIcon)window.dataLayer.push({event:"page_tool_interaction",page_tool_type:"PDF",page_category:getPageCategory(),page_url:document.location.href});},true);const neutralVideoHeroFullName=document.querySelector(".neutral-detail-hero__name")?.innerText||"";[{modalSelector:".neutral-detail-hero j-video-modal",triggerAncestor:".neutral-detail-hero",videoIdSelector:".neutral-detail-hero__watch-video",dataLayerEvent:"neutral_hero_video_tracking"},{modalSelector:"[data-component-name='neutral-video-feature'] j-video-modal",triggerAncestor:"[data-component-name='neutral-video-feature']",videoIdSelector:"[data-component-name='neutral-video-feature'] .card-video",dataLayerEvent:"neutral_video_feature_tracking"}].forEach(({modalSelector,triggerAncestor,videoIdSelector,dataLayerEvent})=>{const modal=document.querySelector(modalSelector);if(!modal)return;const videoId=document.querySelector(videoIdSelector)?.dataset.videoId||"";const videoUrl=videoId?`https://www.youtube.com/watch?v=${videoId}`:"";const pushPlayTracking=()=>{window.dataLayer.push({event:dataLayerEvent,neutral_full_name:neutralVideoHeroFullName,video_title:modal.shadowRoot?.querySelector("iframe")?.getAttribute("title"),video_url:videoUrl,video_status:"play",video_provider:"YouTube",video_percent:0,video_duration:`${modal.durationSeconds||0} seconds`});};window.addEventListener("open-video-modal",(e)=>{const trigger=e.detail?.trigger;if(!trigger||!trigger.closest(triggerAncestor))return;setTimeout(()=>{if(!modal.isOpen)return;pushPlayTracking();},1000);});[["video-pause","pause"],["video-resume","resume"]].forEach(([eventName,videoStatus])=>{modal.addEventListener(eventName,(e)=>{if(e.target?.localName!=="j-video-modal")return;const {progressPercent,durationSeconds}=e.detail;window.dataLayer.push({event:dataLayerEvent,neutral_full_name:neutralVideoHeroFullName,video_title:modal.shadowRoot?.querySelector("iframe")?.getAttribute("title"),video_url:videoUrl,video_status:videoStatus,video_provider:"YouTube",video_percent:progressPercent,video_duration:`${durationSeconds||0} seconds`});});});});const modalNeutralInquiryForm=document.querySelector(".modal-neutral-inquiry-form");if(modalNeutralInquiryForm){const getNeutralInquiryHeroContext=()=>({neutral_full_name:document.querySelector(".neutral-detail-hero__name")?.innerText?.trim()||"",neutral_location:document.querySelector(".neutral-detail-hero__office-label")?.innerText?.trim()||""});document.addEventListener("jams-case-manager-form-submission-success",(e)=>{const formTitle=e.detail?.formTitle??document.querySelector("h1")?.innerText?.trim()??"";const {neutral_full_name,neutral_location}=getNeutralInquiryHeroContext();if(!neutral_full_name)return;window.dataLayer.push({event:'formSubmission',formType:formTitle,neutral_name:neutral_full_name,neutral_location});});const clearAllButton=modalNeutralInquiryForm.querySelector(".case-manager-cta j-button[type='button']");if(clearAllButton)document.addEventListener("jams-case-manager-form-submission-clear-all",(e)=>{const formTitle=e.detail?.formTitle??document.querySelector("h1")?.innerText?.trim()??"";const {neutral_full_name,neutral_location}=getNeutralInquiryHeroContext();if(!neutral_full_name)return;window.dataLayer.push({event:'formClearAll',formType:formTitle,neutral_name:neutral_full_name,neutral_location});});}const practiceHeroComponents=document.querySelectorAll("[data-component-name='practice-hero']");if(practiceHeroComponents.length)practiceHeroComponents.forEach((practiceHeroComponent)=>{const practiceHeroCta=practiceHeroComponent.querySelectorAll(".practice-hero-cta-buttons j-button");if(practiceHeroCta.length)practiceHeroCta.forEach((practiceHeroCta)=>{practiceHeroCta.addEventListener("click",()=>{window.dataLayer.push({event:"practice_hero_cta_interaction",component_name:"Practice Hero",interaction_type:"CTA Click",title:practiceHeroComponent.querySelector(".practice-hero-title")?.innerText||"",link_text:practiceHeroCta.innerText||"",link_url:practiceHeroCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const neutralStatisticComponents=document.querySelectorAll("[data-component-name='neutral-statistic']");if(neutralStatisticComponents.length)neutralStatisticComponents.forEac
2h((neutralStatisticComponent)=>{const neutralStatisticCtas=neutralStatisticComponent.querySelectorAll("j-button");if(neutralStatisticCtas.length)neutralStatisticCtas.forEach((neutralStatisticCta)=>{neutralStatisticCta.addEventListener("click",()=>{window.dataLayer.push({event:"neutral_statistic_cta_interaction",component_name:"Neutral Statistic",interaction_type:"CTA Click",title:neutralStatisticComponent.querySelector(".neutral-statistic-description-title")?.innerText||"",link_text:neutralStatisticCta.innerText.trim()||"",link_url:neutralStatisticCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const neutralStatisticSlider=neutralStatisticComponent.querySelector(".swiper-wrapper");if(neutralStatisticSlider)neutralStatisticSlider.addEventListener("click",(e)=>{const neutralStatisticItem=e.target.closest(".neutral-statistic-slider-item");if(!neutralStatisticItem)return;window.dataLayer.push({event:"neutral_search_slider_interaction",component_name:"Neutral Statistic",component_title:neutralStatisticComponent.querySelector(".neutral-statistic-description-title")?.innerText||"",interaction_type:"Neutral Profile Click",neutral_full_name:neutralStatisticItem.querySelector(".neutral-statistic-slider-item-overlay-content-title")?.innerText||"",neutral_profile_url:neutralStatisticItem.closest("a")?.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const practiceBannerComponents=document.querySelectorAll("[data-component-name='practice-banner']");if(practiceBannerComponents.length)practiceBannerComponents.forEach((practiceBannerComponent)=>{const practiceBannerLinks=practiceBannerComponent.querySelectorAll("a");if(practiceBannerLinks.length)practiceBannerLinks.forEach((practiceBannerLink)=>{practiceBannerLink.addEventListener("click",()=>{window.dataLayer.push({event:"practice_banner_item_interaction",component_name:"Practice Banner",interaction_type:"Item Click",title:practiceBannerComponent.querySelector(".practice-banner-title")?.innerText||"",link_text:practiceBannerLink.innerText.trim()||"",link_url:practiceBannerLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const valuePropositionCardsComponents=document.querySelectorAll("[data-component-name='value-proposition-cards']");if(valuePropositionCardsComponents.length)valuePropositionCardsComponents.forEach((valuePropositionCardsComponent)=>{const valuePropositionCardsCtas=valuePropositionCardsComponent.querySelectorAll("j-button");if(valuePropositionCardsCtas.length)valuePropositionCardsCtas.forEach((valuePropositionCardsCta)=>{valuePropositionCardsCta.addEventListener("click",()=>{window.dataLayer.push({event:"value_proposition_cards_cta_interaction",component_name:"Value Proposition Cards",interaction_type:"CTA Click",title:valuePropositionCardsComponent.querySelector(".value-proposition-cards-title")?.innerText||"",link_text:valuePropositionCardsCta.innerText.trim()||"",link_url:valuePropositionCardsCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const contentHighlightBannerComponents=document.querySelectorAll("[data-component-name='content-highlight-banner']");if(contentHighlightBannerComponents.length)contentHighlightBannerComponents.forEach((contentHighlightBannerComponent)=>{const contentHighlightBannerCtas=contentHighlightBannerComponent.querySelectorAll("j-button");if(contentHighlightBannerCtas.length)contentHighlightBannerCtas.forEach((contentHighlightBannerCta)=>{contentHighlightBannerCta.addEventListener("click",()=>{window.dataLayer.push({event:"content_highlight_banner_cta_interaction",component_name:"Content Highlight Banner",interaction_type:"CTA Click",title:contentHighlightBannerComponent.querySelector(".content-highlight-banner-title")?.innerText||"",link_text:contentHighlightBannerCta.innerText.trim()||"",link_url:contentHighlightBannerCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const practiceFaqComponents=document.querySelectorAll("[data-component-name='practice-faq']");
2if(practiceFaqComponents.length)practiceFaqComponents.forEach((practiceFaqComponent)=>{const practiceFaqCta=practiceFaqComponent.querySelector(".practice-faq-content-download-button");if(practiceFaqCta)practiceFaqCta.addEventListener("click",()=>{window.dataLayer.push({event:"practice_faq_cta_interaction",component_name:"Practice FAQ",interaction_type:"CTA Click",link_text:practiceFaqCta.innerText.trim()||"",link_url:practiceFaqCta.querySelector("a")?.getAttribute("href")||"",page_category:getPageCategory(),page_url:document.location.href});});});const compactImageTextFeatureComponents=document.querySelectorAll("[data-component-name='compact-image-text-feature']");if(compactImageTextFeatureComponents.length)compactImageTextFeatureComponents.forEach((compactImageTextFeatureComponent)=>{const compactImageTextFeatureCtas=compactImageTextFeatureComponent.querySelectorAll("j-button");if(compactImageTextFeatureCtas.length)compactImageTextFeatureCtas.forEach((compactImageTextFeatureCta)=>{compactImageTextFeatureCta.addEventListener("click",()=>{window.dataLayer.push({event:"compact_image_text_feature_cta_interaction",component_name:"Compact Image Text Feature",interaction_type:"CTA Click",title:compactImageTextFeatureComponent.querySelector(".compact-image-text-feature__title")?.innerText||"",link_text:compactImageTextFeatureCta.innerText.trim()||"",link_url:compactImageTextFeatureCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const mediaContactComponents=document.querySelectorAll("[data-component-name='news-contact']");if(mediaContactComponents.length)mediaContactComponents.forEach((mediaContactComponent)=>{const mediaContactCta=mediaContactComponent.querySelectorAll("j-button");if(mediaContactCta.length)mediaContactCta.forEach((mediaContactCta)=>{mediaContactCta.addEventListener("click",()=>{window.dataLayer.push({event:"media_contact_cta_interaction",component_name:"Media Contact",interaction_type:"CTA Click",title:mediaContactComponent.querySelector("h2")?.innerText.trim()||"",link_text:mediaContactCta.innerText.trim()||"",link_url:mediaContactCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const leadershipListingComponents=document.querySelectorAll("[data-component-name='leadership-listing']");if(leadershipListingComponents.length)leadershipListingComponents.forEach((leadershipListingComponent)=>{const leadershipListingCta=leadershipListingComponent.querySelectorAll("j-button");if(leadershipListingCta.length)leadershipListingCta.forEach((leadershipListingCta)=>{leadershipListingCta.addEventListener("click",()=>{window.dataLayer.push({event:"leadership_listing_cta_interaction",component_name:"Leadership Listing",interaction_type:"CTA Click",title:leadershipListingComponent.querySelector(".leadership-listing-title")?.innerText||"",link_text:leadershipListingCta.innerText.trim()||"",link_url:leadershipListingCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const mediaSliderComponents=document.querySelectorAll("[data-component-name='media-slider']");if(mediaSliderComponents.length)mediaSliderComponents.forEach((mediaSliderComponent)=>{const swiperSlides=mediaSliderComponent.querySelectorAll(".swiper-slide");const sliderSelectors=[];if(swiperSlides.length)swiperSlides.forEach((swiperSlide)=>{sliderSelectors.push({modalSelector:mediaSliderComponent.querySelector("j-video-modal"),triggerAncestor:swiperSlide,videoIdSelector:swiperSlide.querySelector(".media-slider-play-button"),dataLayerEvent:"media_slider_video_tracking"});});sliderSelectors.forEach(({modalSelector,triggerAncestor,videoIdSelector,dataLayerEvent})=>{const modal=modalSelector;if(!modal)return;const videoId=videoIdSelector?.dataset.videoId||"";const videoUrl=videoId?`https://www.youtube.com/watch?v=${videoId}`:"";let isSelectedSlideVideo=false;const pushPlayTracking=()=>{window.dataLayer.push({event:dataLayerEvent,video_title:modal.shadowRoot?.querySelector("iframe")?.getAttribute("title"),video_url:videoUrl,video_status:"play",video_provider:"YouTube",video_percent:0,video_duration:`${modal.durationSeconds||0} seconds`});};window.addEventListener("open-video-modal",(e)=>{const trigger=e.detail?.trigger;isSelectedSlideVideo=!!trigger&&triggerAncestor.contains(trigger);if(!isSelectedSlideVideo)return;setTimeout(()=>{if(!modal.isOpen||!isSelectedSlideVideo)return;pushPlayTracking();},1000);});
2[["video-pause","pause"],["video-resume","resume"]].forEach(([eventName,videoStatus])=>{modal.addEventListener(eventName,(e)=>{if(e.target?.localName!=="j-video-modal"||!isSelectedSlideVideo)return;const {progressPercent,durationSeconds}=e.detail;window.dataLayer.push({event:dataLayerEvent,video_title:modal.shadowRoot?.querySelector("iframe")?.getAttribute("title"),video_url:videoUrl,video_status:videoStatus,video_provider:"YouTube",video_percent:progressPercent,video_duration:`${durationSeconds||0} seconds`});});});});});const contactPopupComponent=document.querySelector("[data-component-name='contact-popup']");if(contactPopupComponent){const contactPopupTrigger=contactPopupComponent.querySelector(".contact-popup-icon");contactPopupTrigger.addEventListener("click",()=>{window.dataLayer.push({event:"contact_popup_interaction",component_name:"Contact Popup",interaction_type:"Popup Trigger Click",page_category:getPageCategory(),page_url:document.location.href});});const contactPopuplink=contactPopupComponent.querySelector(".contact-popup-panel j-text-link");if(contactPopuplink)contactPopuplink.addEventListener("click",()=>{window.dataLayer.push({event:"contact_popup_interaction",component_name:"Contact Popup",interaction_type:"Contact Us Link Click",link_text:contactPopuplink.innerText.trim()||"",link_url:contactPopuplink.href||"",page_category:getPageCategory(),page_url:document.location.href});});}const mediaContactsBlock=document.querySelectorAll("[data-component-name='media-contacts-block']");if(mediaContactsBlock.length)mediaContactsBlock.forEach((mediaContactsBlock)=>{const mediaContactsBlockCta=mediaContactsBlock.querySelectorAll("j-button");if(mediaContactsBlockCta.length)mediaContactsBlockCta.forEach((mediaContactsBlockCta)=>{mediaContactsBlockCta.addEventListener("click",()=>{window.dataLayer.push({event:"media_contacts_block_cta_interaction",component_name:"Media Contacts Block",interaction_type:"CTA Click",title:mediaContactsBlock.querySelector(".media-contacts-block__header h2")?.innerText||"",link_text:mediaContactsBlockCta.innerText.trim()||"",link_url:mediaContactsBlockCta.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const newsPressListingComponents=document.querySelectorAll("[data-component-name='news-press-listing']");if(newsPressListingComponents.length)newsPressListingComponents.forEach((newsPressListingComponent)=>{const newsPressListingItems=newsPressListingComponent.querySelectorAll(".news-press-listing__featured-item-content a");if(newsPressListingItems.length)newsPressListingItems.forEach((newsPressListingItem)=>{newsPressListingItem.addEventListener("click",()=>{window.dataLayer.push({event:"news_press_listing_item_interaction",component_name:"News Press Listing",title:newsPressListingComponent.querySelector(".news-press-listing__header--featured h2")?.innerText||"",interaction_type:"Item Click",link_text:newsPressListingItem.innerText.trim()||"",link_url:newsPressListingItem.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});document.addEventListener("locationCardsReady",()=>{const locationCardsComponent=document.querySelector("[data-component-name='location-cards']");if(!locationCardsComponent)return;const locationCardsButtons=locationCardsComponent.querySelectorAll("j-button:not([data-location-cards-analytics-bound])");locationCardsButtons.forEach((locationCardsButton)=>{locationCardsButton.dataset.locationCardsAnalyticsBound="true";locationCardsButton.addEventListener("click",()=>{window.dataLayer.push({event:"location_cards_button_interaction",component_name:"Location Cards",interaction_type:"CTA Click",title:locationCardsButton.closest(".location-cards__card")?.querySelector(".location-cards__city")?.innerText||locationCardsButton.closest("j-accordion-panel-item")?.querySelector(".location-cards__city")?.innerText||"",link_text:locationCardsButton.innerText.trim()||"",link_url:locationCardsButton.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const findResolutionCenterComponent=document.querySelector(".coh-style-locations-index + div");if(findResolutionCenterComponent){const findResolutionCenterLinks=findResolutionCenterComponent.querySelectorAll("a");findResolutionCenterLinks.forEach((findResolutionCenterLink)=>{findResolutionCenterLink.addEventListener("click",()=>{window.dataLayer.push({event:"location_international_capabilites_interaction",interaction_type:"CTA Click",title:findResolutionCenterComponent.querySelector("h2")?.innerText||"",link_text:findResolutionCenterLink.innerText.trim()||"",link_url:findResolutionCenterLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});}const eventDetailHeroComponent=document.querySelector("[data-component-name='event-detail-hero']");if(eventDetailHeroComponent){const eventDetailHeroLinks=eventDetailHeroComponent.querySelectorAll("j-button");if(eventDetailHeroLinks.length)eventDetailHeroLinks.forEach((eventDetailHeroLink)=>{eventDetailHeroLink.addEventListener("click",()=>{window.dataLayer.push({event:"event_detail_hero_interaction",interaction_type:"CTA Click",component_name:"Event Detail Hero",title:eventDetailHeroComponent.querySelector(".event-detail-hero__title")?.innerText||"",link_text:eventDetailHeroLink.innerText.trim()||"",link_url:eventDetailHeroLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});}const eventDetailAddressComponent=document.querySelector("[data-component-name='event-detail-address']");if(eventDetailAddressComponent){const eventDetailAddressLinks=eventDetailAddressComponent.querySelectorAll("a");if(eventDetailAddressLinks.length)eventDetailAddressLinks.forEach((eventDetailAddressLink)=>{eventDetailAddressLink.addEventListener("click",()=>{window.dataLayer.push({event:"event_detail_address_interaction",component_name:"Event Detail Address",interaction_type:"Link Click",link_text:eventDetailAddressLink.innerText.trim()||"",link_url:eventDetailAddressLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});}const taggingComponents=document.querySelectorAll("[data-component-name='tagging-component']");
2if(taggingComponents.length)taggingComponents.forEach((taggingComponent)=>{const taggingLinks=taggingComponent.querySelectorAll("a");if(taggingLinks.length)taggingLinks.forEach((taggingLink)=>{taggingLink.addEventListener("click",()=>{window.dataLayer.push({event:"tagging_component_interaction",interaction_type:"Tag Click",component_name:"Tagging Component",title:taggingComponent.querySelector(".tagging-component__title")?.innerText||"",link_text:taggingLink.innerText.trim()||"",link_url:taggingLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const featuredPeopleComponents=document.querySelectorAll("[data-component-name='featured-people']");if(featuredPeopleComponents.length)featuredPeopleComponents.forEach((featuredPeopleComponent)=>{featuredPeopleComponent.addEventListener("click",(e)=>{const featuredPeopleLink=e.target.closest(".featured-people__card");if(!featuredPeopleLink)return;window.dataLayer.push({event:"featured_people_interaction",interaction_type:"Card Item Click",component_name:"Featured People",title:featuredPeopleComponent.querySelector(".featured-people__title")?.innerText||"",link_text:featuredPeopleLink.innerText.trim()||"",link_url:featuredPeopleLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const newsDetailHeroComponent=document.querySelector("[data-component-name='news-detail-hero']");if(newsDetailHeroComponent){const newsDetailHeroLinks=newsDetailHeroComponent.querySelectorAll(".news-detail-hero__content a");if(newsDetailHeroLinks.length)newsDetailHeroLinks.forEach((newsDetailHeroLink)=>{newsDetailHeroLink.addEventListener("click",()=>{window.dataLayer.push({event:"news_detail_hero_interaction",interaction_type:"Link Click",component_name:"News Detail Hero",title:newsDetailHeroComponent.querySelector(".news-detail-hero__title")?.innerText||"",link_text:newsDetailHeroLink.innerText.trim()||"",link_url:newsDetailHeroLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});}const locationDetailHeroBannerComponent=document.querySelector("[data-component-name='location-detail-hero-banner']");if(locationDetailHeroBannerComponent){const locationDetailHeroBannerLinks=locationDetailHeroBannerComponent.querySelectorAll("a");if(locationDetailHeroBannerLinks.length)locationDetailHeroBannerLinks.forEach((locationDetailHeroBannerLink)=>{locationDetailHeroBannerLink.addEventListener("click",()=>{window.dataLayer.push({event:"location_detail_hero_banner_interaction",interaction_type:"Link Click",component_name:"Location Detail Hero Banner",title:locationDetailHeroBannerComponent.querySelector(".location-detail-hero-banner__location-name")?.innerText||"",link_text:locationDetailHeroBannerLink.innerText.trim()||"",link_url:locationDetailHeroBannerLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const locationDetailHeroBannerButtons=locationDetailHeroBannerComponent.querySelectorAll("j-button");if(locationDetailHeroBannerButtons.length)locationDetailHeroBannerButtons.forEach((locationDetailHeroBannerButton)=>{locationDetailHeroBannerButton.addEventListener("click",()=>{window.dataLayer.push({event:"location_detail_hero_banner_interaction",interaction_type:"CTA Click",component_name:"Location Detail Hero Banner",title:locationDetailHeroBannerComponent.querySelector(".location-detail-hero-banner__location-name")?.innerText||"",link_text:locationDetailHeroBannerButton.innerText.trim()||"",link_url:locationDetailHeroBannerButton.href||"",page_category:getPageCategory(),page_url:document.location.href});});});}const findNeutralBannerComponents=document.querySelectorAll("[data-component-name='find-neutral-banner']");if(findNeutralBannerComponents.length)findNeutralBannerComponents.forEach((findNeutralBannerComponent)=>{findNeutralBannerComponent.addEventListener("click",(e)=>{const findNeutralBannerLink=e.target.closest("j-button");if(!findNeutralBannerLink)return;window.dataLayer.push({event:"find_neutral_banner_interaction",interaction_type:"CTA Click",component_name:"Find Neutral Banner",title:findNeutralBannerComponent.querySelector(".find-neutral-banner-title h2")?.innerText||"",link_text:findNeutralBannerLink.innerText.trim()||"",link_url:findNeutralBannerLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});const locationResolutionCenterSliderComponents=document.querySelectorAll("[data-component-name='location-resolution-center-slider']");if(locationResolutionCenterSliderComponents.length)locationResolutionCenterSliderComponents.forEac
2h((locationResolutionCenterSliderComponent)=>{const locationResolutionCenterSliderLinks=locationResolutionCenterSliderComponent.querySelectorAll("a");if(locationResolutionCenterSliderLinks.length)locationResolutionCenterSliderLinks.forEach((locationResolutionCenterSliderLink)=>{locationResolutionCenterSliderLink.addEventListener("click",()=>{window.dataLayer.push({event:"location_resolution_center_slider_interaction",interaction_type:"Link Click",component_name:"Location Resolution Center Slider",title:locationResolutionCenterSliderComponent.querySelector(".location-resolution-center-slider__title")?.innerText||"",link_text:locationResolutionCenterSliderLink.innerText.trim()||"",link_url:locationResolutionCenterSliderLink.href||"",page_category:getPageCategory(),page_url:document.location.href});});});});const page404Component=document.querySelector(".page-404");if(page404Component){const page404Links=page404Component.querySelectorAll("j-button");if(page404Links.length)page404Links.forEach((page404Link)=>{page404Link.addEventListener("click",()=>{window.dataLayer.push({event:"page_404_interaction",interaction_type:"Button Click",component_name:"Page 404",title:page404Component.querySelector(".page-404__title")?.innerText||"",link_text:page404Link.innerText.trim()||"",link_url:page404Link.href||"",page_category:getPageCategory(),page_url:document.location.href});});});}const neutralSearchComponent=document.querySelector("[data-component-name='new-neutral-search-page']");if(neutralSearchComponent){const shortlistBody=neutralSearchComponent.querySelector(".new-neutral-shortlist__body");const shortlistMobileBody=neutralSearchComponent.querySelector(".new-neutral-shortlist-mobile");[shortlistBody,shortlistMobileBody].forEach((shortlistBodyItem)=>{shortlistBodyItem.addEventListener("click",(event)=>{const neutralShortlistButton=event.target.closest(".new-neutral-shortlist__cta--active");if(!neutralShortlistButton||!shortlistBodyItem.contains(neutralShortlistButton))return;window.dataLayer.push({event:"neutral_search_shortlist_interaction",interaction_type:"Button Click",component_name:"Neutral Search Shortlist Button",title:document.title.trim()||"",button_text:neutralShortlistButton.innerText.trim()||"",page_url:document.location.href});});});}const newsLinks=document.querySelectorAll(".news-items .news-item a.coh-link, .view-latest-contents .news-item a.coh-link");if(newsLinks.length)newsLinks.forEach((link)=>{link.addEventListener("click",(event)=>{const newsTitleEl=link.querySelector(".item-title");const newsTitle=newsTitleEl?newsTitleEl.innerText.trim():"";let newsDate="";const urlMatch=link.href.match(/\/news\/(\d{4})\//);if(urlMatch)newsDate=urlMatch[1];window.dataLayer.push({event:"news_interaction",news_title:newsTitle,news_date:newsDate});});});const sectionInsights=document.querySelector(".section-insights");if(sectionInsights){const links=sectionInsights.querySelectorAll(".article-media-link, .article-link");links.forEach((element)=>{const relatedStoriesParent=element.closest(".related-stories, .section-related.related-stories");if(relatedStoriesParent)return;element.addEventListener("click",(e)=>{const parent=element.closest(".article");if(!parent)return;const article_title=parent.querySelector(".article-title")?.innerText||"";const topics=parent.querySelectorAll(".event-tags a");const authors=parent.querySelectorAll(".author-name");const article_topic=Array.from(topics).map((item)=>item.innerText?.trim()||"").filter((text)=>text).join(",");const article_author=Array.from(authors).map((author)=>author.innerText?.trim()||"").filter((text)=>text).join(",");window.dataLayer.push({event:"article_interaction",article_title,article_topic,article_author});});});}const sectionEvents=document.querySelector(".section-events");if(sectionEvents){const linksToEvents=sectionEvents.querySelectorAll(".events-items .event > a, .event > a");if(linksToEvents.length)linksToEvents.forEach((link)=>{link.addEventListener("click",()=>{window.dataLayer.push({event:"event_interaction",event_title:link.getAttribute("data-title")||"",event_date:link.getAttribute("data-date")||"",event_location:link.getAttribute("data-location")||"",event_type:link.getAttribute("data-type")||""});});});const viewAllEventsLink=sectionEvents.querySelector(".section-footer a[href='/events']");if(viewAllEventsLink)viewAllEventsLink.addEventListener("click",(e)=>{window.dataLayer.push({event:"content_interaction",interaction_type:"View All",link_text:e.target.innerText.trim(),link_url:e.target.href,component_name:"Events Section",page_category:getPageCategory(),page_url:document.location.href});});}const asistanceSection=document.querySelector(".section-assistance");if(asistanceSection){asistanceSection.querySelector(".section-footer>a")?.addEventListener("click",(e)=>{window.dataLayer.push({event:"contact_us_cta_interaction",component_area:"Assistance Container",link_text:e.target.innerText});});asistanceSection.querySelector(".phone a")?.addEventListener("click",(e)=>{window.dataLayer.push({event:"contact_number_interaction",contact_number:e.target.innerText,contact_position:"Home Page: Assistance Section"});});}const sectionAbout=document.querySelector(".section-about");if(sectionAbout){const learnMoreLink=sectionAbout.querySelector(".about-buttons a[href*='/about/']");if(learnMoreLink)learnMoreLink.addEventListener("click",(e)=>{window.dataLayer.push({event:"content_interaction",interaction_type:"Learn More",link_text:e.target.innerText.trim(),link_url:e.target.href,component_name:"About JAMS Section",page_category:getPageCategory(),page_url:document.location.href});});}const sectionNews=document.querySelector(".section-news");if(sectionNews){const viewAllNewsLink=sectionNews.querySelector(".section-footer a[href='/news']");if(viewAllNewsLink)viewAllNewsLink.addEventListener("click",(e)=>{window.dataLayer.push({event:"content_interaction",interaction_type:"View All",link_text:e.target.innerText.trim(),link_url:e.target.href,component_name:"News Section",page_category:getPageCategory(),page_url:document.location.href});});}const serviceItems=document.querySelectorAll(".section-landing-services .service-item a");
2if(serviceItems.length)serviceItems.forEach((item)=>{item.addEventListener("click",()=>{window.dataLayer.push({event:"services_interaction",service_title:item.querySelector(".service-title")?.innerText||"",service_url:item.href||""});});});const pdfContainers=document.querySelectorAll(".additional-resources-link-container");pdfContainers.forEach((container)=>{if(container.querySelector(".pdf")){const pdfLink=container.querySelector(".coh-link");if(pdfLink)pdfLink.addEventListener("click",(e)=>{window.dataLayer.push({event:"pdf_download",pdf_text:e.target.innerText.trim(),pdf_url:e.target.href});});}});const practiceAreaSuggestionsContainer=document.querySelector(".practice-area-and-industries-suggestions");if(practiceAreaSuggestionsContainer)practiceAreaSuggestionsContainer.addEventListener("click",(e)=>{const suggestion=e.target.closest(".suggestion");if(suggestion){const practiceArea=suggestion.innerText.trim();window.dataLayer.push({event:"search_practice_areas",practice_area:practiceArea});}});const relatedStoriesSection=document.querySelector(".related-stories, .section-related.related-stories");if(relatedStoriesSection){const links=relatedStoriesSection.querySelectorAll(".article-media-link, .article-link");links.forEach((element)=>{element.addEventListener("click",(event)=>{const parent=element.closest(".article");if(!parent)return;const article_title=parent.querySelector(".article-title")?.innerText||"";const topics=parent.querySelectorAll(".event-tags a");const authors=parent.querySelectorAll(".author-name");const article_topic=Array.from(topics).map((item)=>item.innerText?.trim()||"").filter((text)=>text).join(",");const article_author=Array.from(authors).map((author)=>author.innerText?.trim()||"").filter((text)=>text).join(",");window.dataLayer.push({event:"related_stories",article_title,article_topic,article_author});});});}const eventHeroWrapper=document.querySelector(".event-hero-wrapper");if(eventHeroWrapper){const registerLink=eventHeroWrapper.querySelector(".hero-buttons a");if(registerLink)registerLink.addEventListener("click",()=>{const eventTitle=eventHeroWrapper.querySelector("h1")?.innerText.trim()||"";const eventDetailsSection=document.querySelector(".section-event-details");let eventDate="";if(eventDetailsSection){const startDate=eventDetailsSection.querySelector(".event-date-start .time-date")?.innerText.trim()||"";const endDate=eventDetailsSection.querySelector(".event-date-end .time-date")?.innerText.trim()||"";if(startDate&&endDate)eventDate=`${startDate} - ${endDate}`;else{if(startDate)eventDate=startDate;}}let eventLocation="";if(eventDetailsSection){const locationValues=eventDetailsSection.querySelectorAll(".event-location .event-card-value");eventLocation=Array.from(locationValues).map((el)=>el.innerText.trim()).filter((text)=>text).join(" ");}let eventType="";if(eventDetailsSection){const typeLinks=eventDetailsSection.querySelectorAll(".event-tags a");eventType=Array.from(typeLinks).map((link)=>link.innerText.trim()).filter((text)=>text).join(", ");}window.dataLayer.push({event:"event_registration",event_title:eventTitle,event_date:eventDate,event_location:eventLocation,event_type:eventType});});}const calendarButton=document.querySelector("#calendar-button, [data-modal-open='calendar-modal']");if(calendarButton)calendarButton.addEventListener("click",()=>{const eventHeroTitle=document.querySelector(".event-hero-wrapper h1")?.innerText.trim()||"";const eventDetailsSection=document.querySelector(".section-event-details");let eventDate="";if(eventDetailsSection){const startDate=eventDetailsSection.querySelector(".event-date-start .time-date")?.innerText.trim()||"";const endDate=eventDetailsSection.querySelector(".event-date-end .time-date")?.innerText.trim()||"";if(startDate&&endDate)eventDate=`${startDate} - ${endDate}`;else{if(startDate)eventDate=startDate;}}let eventLocation="";if(eventDetailsSection){const locationValues=eventDetailsSection.querySelectorAll(".event-location .event-card-value");eventLocation=Array.from(locationValues).map((el)=>el.innerText.trim()).filter((text)=>text).join(" ");}let eventType="";if(eventDetailsSection){const typeLinks=eventDetailsSection.querySelectorAll(".event-tags a");eventType=Array.from(typeLinks).map((link)=>link.innerText.trim()).filter((text)=>text).join(", ");}window.dataLayer.push({event:"add_event_to_calender",event_title:eventHeroTitle,event_date:eventDate,event_location:eventLocation,event_type:eventType});});const practiceItemsContainer=document.querySelector(".practice-items");if(practiceItemsContainer){const learnMoreLinks=practiceItemsContainer.querySelectorAll(".practice-buttons a[href*='/capabilities/']");learnMoreLinks.forEach((link)=>{link.addEventListener("click",()=>
2{const accordionItem=link.closest(".jams-accordion-item");const titleElement=accordionItem?accordionItem.querySelector(".jams-accordion-item__title"):null;const practiceArea=titleElement?titleElement.innerText.trim():"";if(practiceArea)window.dataLayer.push({event:"practice_area_interaction",practice_area:practiceArea});});});}const formsSections=document.querySelectorAll(".coh-style-section-panel");formsSections.forEach((section)=>{const sectionTitle=section.querySelector("h2")?.innerText.trim()||"";if(sectionTitle.includes("Forms")||sectionTitle.includes("Documents")){const links=section.querySelectorAll("a[href*='jamsadr.widen.net'], a[href*='widen.net']");links.forEach((link)=>{link.addEventListener("click",()=>{let formName=link.innerText.trim()||"";let formType="";if(formName.includes("(PDF)")){formType="pdf";formName=formName.replace(/\s*\(PDF\)\s*/gi,"").trim();}else if(formName.includes("Microsoft Word")||formName.includes("Word Doc")){formType="docx";formName=formName.replace(/\s*\(Microsoft Word[^)]*\)\s*
2/gi,"").trim();formName=formName.replace(/\s*\(Microsoft Word Doc\)\s*/gi,"").trim();}else if(link.href.includes(".pdf"))formType="pdf";else if(link.href.includes(".docx")||link.href.includes(".doc"))formType="docx";else{if(link.href.includes("format")){const urlMatch=link.href.match(/format[=:]([^&]+)/i);if(urlMatch)formType=urlMatch[1].toLowerCase();}}if(formName&&formType)window.dataLayer.push({event:"form_download",form_name:formName,form_type:formType});});});}});const servicesContainer=document.querySelector(".section-services-container");if(servicesContainer){const accordionTabsContainer=servicesContainer.querySelector(".coh-accordion-tabs");if(accordionTabsContainer){const tabContents=accordionTabsContainer.querySelectorAll(".coh-accordion-tabs-content");tabContents.forEach((tabContent)=>{const ctaLinks=tabContent.querySelectorAll("a.coh-link.coh-style-btn-secondary-outline, a[href*='jamsadr.com']");ctaLinks.forEach((link)=>{link.addEventListener("click",()=>{const sectionPanel=link.closest(".coh-style-section-panel");const componentTitle=sectionPanel?sectionPanel.querySelector("h2")?.innerText.trim()||"":"";const serviceTitle=tabContent.querySelector("h2")?.innerText.trim()||tabContent.previousElementSibling?.querySelector("a")?.innerText.trim()||"";const servicePanelCta=link.innerText.trim()||"";if(serviceTitle&&servicePanelCta)window.dataLayer.push({event:"service_panel_interaction",component_title:componentTitle,service_title:serviceTitle,service_panel_cta:servicePanelCta});});});});}}const helpItems=document.querySelectorAll(".help-items .help-item");if(helpItems.length)helpItems.forEach((item)=>{const link=item.querySelector("a");if(link)link.addEventListener("click",(e)=>{const sectionTitle=item.querySelector("h3")?.textContent?.trim()||"";const ctaText=e.target.textContent?.trim()||"";window.dataLayer.push({event:"help_component_interaction",help_section_title:sectionTitle,help_section_cta:ctaText});});});if(window.location.pathname.includes("/submit"))document.addEventListener("click",(e)=>{const clickedLink=e.target.closest("a[href*='access.jamsadr.com/case-submission']");if(clickedLink){const modal=clickedLink.closest(".coh-modal-inner");if(modal){const submissionForm=document.querySelector(".section-submission-form");let selectedSessionInformation="";if(submissionForm){const checkedCheckbox=submissionForm.querySelector('input[name="type"]:checked');if(checkedCheckbox)selectedSessionInformation=checkedCheckbox.value||"";}window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"general_case_submission",selected_session_information:selectedSessionInformation});}}});const locationDetailSection=document.querySelector(".coh-style-location-detail");if(locationDetailSection){const locationLinks=locationDetailSection.querySelector(".location-links");if(locationLinks){const phoneLink=locationLinks.querySelector('a[href^="tel:"]');if(phoneLink)phoneLink.addEventListener("click",()=>{let locationName="";const locationHeading=locationDetailSection.querySelector("h1, .location-heading, h2");if(locationHeading)locationName=locationHeading.innerText.trim();let contactNumber="";const href=phoneLink.getAttribute("href");if(href&&href.startsWith("tel:"))contactNumber=href.replace("tel:","").trim();else{const phoneSpans=phoneLink.querySelectorAll(".coh-inline-element");phoneSpans.forEach((span)=>{const hasIcon=span.querySelector("img, .icon");if(!hasIcon&&span.innerText.trim())contactNumber=span.innerText.trim();});}window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"location_contact_interaction",location:locationName||"",contact_number:contactNumber||""});});}}const isCapabilitiesDetailPage=pathname.startsWith("/capabilities/")&&pathname!=="/capabilities";if(isCapabilitiesDetailPage){const tabLinks=document.querySelectorAll(".coh-accordion-tabs-nav li > a");if(tabLinks.length>0)tabLinks.forEach((tabLink)=>{tabLink.addEventListener("click",(event)=>{let serviceName="";const tabNav=document.querySelector(".coh-accordion-tabs-nav");if(tabNav){const parentSection=tabNav.closest("section, .coh-style-section, .section");if(parentSection){const heading=parentSection.querySelector("h1, h2, .hero-title, .section-title");if(heading)serviceName=heading.innerText.trim();}}if(!serviceName){const heroTitle=document.querySelector(".hero-title");if(heroTitle)serviceName=heroTitle.innerText.trim();}if(!serviceName){const h1=document.querySelector("h1");if(h1)serviceName=h1.innerText.trim();}if(!serviceName){const heroHeading=document.querySelector(".hero-content h1, .hero-content h2, .coh-style-section-hero h1, .coh-style-section-hero h2");if(heroHeading)serviceName=heroHeading.innerText.trim();}if(!serviceName){const pageTitle=document.querySelector("title");if(pageTitle){const titleText=pageTitle.innerText.trim();const titleParts=titleText.split("|");if(titleParts.length>0)serviceName=titleParts[0].trim();}}const tabText=event.target.innerText.trim();window.dataLayer.push({event:"practice_area_tabs_interaction",tab_text:tabText||"",practice_area_title:serviceName||""});});});}});function normalizeNewsDetailPracticeAreaLinks(){const categoryLinks=document.querySelectorAll('.news-detail-hero__category a[href*="practice_area="]');if(!categoryLinks.length)return;const toFilterKey=(value)=>{if(!value)return '';return value.toLowerCase().replace(/[^a-z0-9]+/g,'_').replace(/^_+|_+$/g,'');};categoryLinks.forEach((link)=>{try{const url=new URL(link.getAttribute('href'),window.location.origin);const rawValue=(url.searchParams.get('practice_area')||'').trim();const sourceValue=rawValue||(link.textContent||'').trim();const normalized=toFilterKey(sourceValue);if(!normalized)return;url.searchParams.set('practice_area',normalized);link.setAttribute('href',url.pathname+url.search+url.hash);}catch(e){}});}function getPageCategory(){const hostname=window.location.hostname;const pathname=window.location.pathname;const validDomains=['dev.jamsadr.com','stage.jamsadr.com','prod.jamsadr.com','www.jamsadr.com','jamsadr.ddev.site'];if(validDomains.includes(hostname))if(pathname==='/'||pathname==='')return 'Home Page';else if(pathname==='/neutrals')return 'Neutrals Page';else if(pathname.startsWith('/neutrals/'))return 'Neutrals Detail Page';else if(pathname==='/neutrals/search')return 'Neutrals Search Page';else if(pathname==='/adr-rules-procedures')return 'ADR Rules & Procedures Page';else if(pathname==='/adr')return 'ADR Services Page';else if(pathname==='/locations')return 'Locations Page';else if(pathname.startsWith('/locations/'))return 'Location Detail Page';else if(pathname==='/mediation')return 'Mediation Page';else if(pathname==='/capabilities')return 'Capabilities Page';else if(pathname.startsWith('/capabilities/'))return 'Capability Detail Page';else if(pathname==='/insights')return 'Insights Page';else if(pathname.startsWith('/insights/category/'))return 'Category Page';else if(pathname.startsWith('/insight/'))return 'Insight Detail Page';else if(pathname.startsWith('/news/'))return 'News Detail Page';else if(pathname==='/news')return 'News Page';else if(pathname.startsWith('/events/'))return 'Events Detail Page';else if(pathname==='/events')return 'Events Page';else if(pathname==='/about')return 'About Page';else if(pathname==='/jams-values')return 'JAMS Values Page';else if(pathname==='/jamsfoundation')return 'JAMS Foundation Page';else if(pathname==='/social-responsibility')return 'Social Responsibility Page';else if(pathname==='/careers-benefits')return 'Careers & Benefits Page';else return document.title.trim();return document.body.dataset?.pageTemplate||'';}})();;
3(function(Drupal){'use strict';Drupal.behaviors.contactPopup={attach:function(context,settings){const containers=context.querySelectorAll("[data-component-name='contact-popup']");
3containers.forEach((container)=>{if(!(container instanceof HTMLElement))return;const trigger=container.querySelector("[data-popup-trigger]");const panel=container.querySelector("[data-popup-panel]");if(!trigger||!panel)return;const setOpenState=(open)=>{trigger.setAttribute("aria-expanded",String(open));panel.toggleAttribute("hidden",!open);if(open)panel.focus();};setOpenState(false);if(!trigger.hasPopupBehavior){trigger.hasPopupBehavior=true;trigger.addEventListener("click",(e)=>{e.stopPropagation();const expanded=trigger.getAttribute("aria-expanded")==="true";setOpenState(!expanded);});document.addEventListener("keydown",(e)=>{if(e.key==="Escape")setOpenState(false);});document.addEventListener("click",(e)=>{if(!panel.contains(e.target)&&e.target!==trigger)setOpenState(false);});}});}};})(Drupal);;
4(function(Drupal,once){'use strict';Drupal.behaviors.cookieConsentLink={attach:function(context){const links=once('cookie-consent-link','a',context);links.forEach(function(link){const linkText=link.textContent.trim().toLowerCase();if(linkText==='cookie consent'||linkText==='cookies settings'){const hasCohMenuClasses=link.classList.contains('js-coh-menu-item-link')||link.classList.contains('coh-link');if(hasCohMenuClasses){if(!link.classList.contains('ot-sdk-show-settings'))link.classList.add('ot-sdk-show-settings');const button=document.createElement('button');Array.from(link.attributes).forEach(function(attr){if(attr.name!=='href')button.setAttribute(attr.name,attr.value);});button.className=link.className;button.innerHTML=link.innerHTML;link.parentNode.replaceChild(button,link);}}});}};})(Drupal,once);;
5(function(Drupal){'use strict';function scrollToTop(){const scrollToTopElement=document.getElementById('scroll-to-top');if(scrollToTopElement){const el=document.scrollingElement||document.documentElement;const scrollPosition=el.scrollTop;scrollToTopElement.classList.toggle('visible',scrollPosition>100);}}Drupal.behaviors.scrollToTop={attach:function(context,settings){window.addEventListener('scroll',scrollToTop);const btnScrollTop=document.getElementById('scroll-to-top');if(btnScrollTop)btnScrollTop.addEventListener('click',function(e){e.preventDefault();window.scrollTo({top:0,behavior:'smooth'});});scrollToTop();}};})(Drupal);;
6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof t(e).Element||e instanceof Element}function r(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}var i=Math.max,a=Math.min,s=Math.round;function f(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(f())}function p(e,o,i){void 0===o&&(o=!1),void 0===i&&(i=!1);var a=e.getBoundingClientRect(),f=1,p=1;o&&r(e)&&(f=e.offsetWidth>0&&s(a.width)/e.offsetWidth||1,p=e.offsetHeight>0&&s(a.height)/e.offsetHeight||1);var u=(n(e)?t(e):window).visualViewport,l=!c()&&i,d=(a.left+(l&&u?u.offsetLeft:0))/f,h=(a.top+(l&&u?u.offsetTop:0))/p,m=a.width/f,v=a.height/p;return{width:m,height:v,top:h,right:d+m,bottom:h+v,left:d,x:d,y:h}}function u(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function l(e){return e?(e.nodeName||"").toLowerCase():null}function d(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return p(d(e)).left+u(e).scrollLeft}function m(e){return t(e).getComputedStyle(e)}function v(e){var t=m(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function y(e,n,o){void 0===o&&(o=!1);var i,a,f=r(n),c=r(n)&&function(e){var t=e.getBoundingClientRect(),n=s(t.width)/e.offsetWidth||1,r=s(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(n),m=d(n),y=p(e,c,o),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(f||!f&&!o)&&(("body"!==l(n)||v(m))&&(g=(i=n)!==t(i)&&r(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:u(i)),r(n)?((b=p(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):m&&(b.x=h(m))),{x:y.left+g.scrollLeft-b.x,y:y.top+g.scrollTop-b.y,width:y.width,height:y.height}}function g(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function b(e){return"html"===l(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||d(e)}function x(e){return["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:r(e)&&v(e)?e:x(b(e))}function w(e,n){var r;void 0===n&&(n=[]);var o=x(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=t(o),s=i?[a].concat(a.visualVie
vendor: 17,231 bytes, lines 6-8
6wport||[],v(o)?o:[]):o,f=n.concat(s);return i?f:f.concat(w(b(s)))}function O(e){return["table","td","th"].indexOf(l(e))>=0}function j(e){return r(e)&&"fixed"!==m(e).position?e.offsetParent:null}function E(e){for(var n=t(e),i=j(e);i&&O(i)&&"static"===m(i).position;)i=j(i);return i&&("html"===l(i)||"body"===l(i)&&"static"===m(i).position)?n:i||function(e){var t=/firefox/i.test(f());if(/Trident/i.test(f())&&r(e)&&"fixed"===m(e).position)return null;var n=b(e);for(o(n)&&(n=n.host);r(n)&&["html","body"].indexOf(l(n))<0;){var i=m(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||n}var D="top",A="bottom",L="right",P="left",M="auto",k=[D,A,L,P],W="start",B="end",H="viewport",T="popper",R=k.reduce((function(e,t){return e.concat([t+"-"+W,t+"-"+B])}),[]),S=[].concat(k,[M]).reduce((function(e,t){return e.concat([t,t+"-"+W,t+"-"+B])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function C(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function N(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function I(e,r,o){return r===H?N(function(e,n){var r=t(e),o=d(e),i=r.visualViewport,a=o.clientWidth,s=o.clientHeight,f=0,p=0;if(i){a=i.width,s=i.height;var u=c();(u||!u&&"fixed"===n)&&(f=i.offsetLeft,p=i.offsetTop)}return{width:a,height:s,x:f+h(e),y:p}}(e,o)):n(r)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(r,o):N(function(e){var t,n=d(e),r=u(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+h(e),c=-r.scrollTop;return"rtl"===m(o||n).direction&&(f+=i(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:f,y:c}}(d(e)))}function _(e,t,o,s){var f="clippingParents"===t?function(e){var t=w(b(e)),o=["absolute","fixed"].indexOf(m(e).position)>=0&&r(e)?E(e):e;return n(o)?t.filter((function(e){return n(e)&&C(e,o)&&"body"!==l(e)})):[]}(e):[].concat(t),c=[].concat(f,[o]),p=c[0],u=c.reduce((function(t,n){var r=I(e,n,s);return t.top=i(r.top,t.top),t.right=a(r.right,t.right),t.bottom=a(r.bottom,t.bottom),t.left=i(r.left,t.left),t}),I(e,p,s));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function F(e){return e.split("-")[0]}function U(e){return e.split("-")[1]}function z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?F(o):null,a=o?U(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case D:t={x:s,y:n.y-r.height};break;case A:t={x:s,y:n.y+n.height};break;case L:t={x:n.x+n.width,y:f};break;case P:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?z(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case W:t[c]=t[c]-(n[p]/2-r[p]/2);break;case B:t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}function Y(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function J(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=void 0===o?e.placement:o,a=r.strategy,s=void 0===a?e.strategy:a,f=r.boundary,c=void 0===f?"clippingParents":f,u=r.rootBoundary,l=void 0===u?H:u,h=r.elementContext,m=void 0===h?T:h,v=r.altBoundary,y=void 0!==v&&v,g=r.padding,b=void 0===g?0:g,x=Y("number"!=typeof b?b:G(b,k)),w=m===T?"reference":T,O=e.rects.popper,j=e.elements[y?w:m],E=_(n(j)?j:j.contextElement||d(e.elements.popper),c,l,s),P=p(e.elements.reference),M=X({reference:P,element:O,strategy:"absolute",placement:i}),W=N(Object.assign({},O,M)),B=m===T?W:P,R={top:E.top-B.top+x.top,bottom:B.bottom-E.bottom+x.bottom,left:E.left-B.left+x.left,right:B.right-E.right+x.right},S=e.modifiersData.offset;if(m===T&&S){var V=S[i];Object.keys(R).forEach((function(e){var t=[L,A].indexOf(e)>=0?1:-1,n=[D,A].indexOf(e)>=0?"y":"x";R[e]+=V[n]*t}))}return R}var K={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Z(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,i=t.defaultOptions,a=void 0===i?K:i;return function(e,t,r){void 0===r&&(r=a);var i,s,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],p=!1,u={state:f,setOptions:function(r){var i="function"==typeof r?r(f.options):r;l(),f.options=Object.assign({},a,f.options,i),f.scrollParents={reference:n(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var s,p,d=function(e){var t=q(e);return V.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(o,f.options.modifiers),p=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(p).map((function(e){return p[e]}))));return f.orderedModifiers=d.filter((function(e){return e.enabled})),f.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:f,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!p){var e=f.elements,t=e.reference,n=e.popper;if(Q(t,n)){f.rects={reference:y(t,E(n),"fixed"===f.options.strategy),popper:g(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(f=i({state:f,options:s,name:c,instance:u})||f)}else f.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(f)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){l(),p=!0}};if(!Q(e,t))return u;function l(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var $={passive:!0};var ee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,f=void 0===s||s,c=t(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&p.forEach((function(e){e.addEventListener("scroll",r.update,$)})),f&&c.addEventListener("resize",r.update,$),function(){a&&p.forEach((function(e){e.removeEventListener("scroll",r.update,$)})),f&&c.removeEventListener("resize",r.update,$)}},data:{}};var te={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(e){var n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,f=e.offsets,c=e.position,p=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,h=e.isFixed,v=f.x,y=void 0===v?0:v,g=f.y,b=void 0===g?0:g,x="function"==typeof l?l({x:y,y:b}):{x:y,y:b};y=x.x,b=x.y;var w=f.hasOwnProperty("x"),O=f.hasOwnProperty("y"),j=P,M=D,k=window;if(u){var W=E(r),H="clientHeight",T="clientWidth";if(W===t(r)&&"static"!==m(W=d(r)).position&&"absolute"===c&&(H="scrollHeight",T="scrollWidth"),W=W,i===D||(i===P||i===L)&&a===B)M=A,b-=(h&&W===k&&k.visualViewport?k.visualViewport.height:W[H])-o.height,b*=p?1:-1;if(i===P||(i===D||i===A)&&a===B)j=L,y-=(h&&W===k&&k.visualViewport?k.visualViewport.width:W[T])-o.width,y*=p?1:-1}var R,S=Object.assign({position:c},u&&ne),V=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:s(n*o)/o||0,y:s(r*o)/o||0}}({x:y,y:b},t(r)):{x:y,y:b};return y=V.x,b=V.y,p?Object.assign({},S,((R={})[M]=O?"0":"",R[j]=w?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",R)):Object.assign({},S,((n={})[M]=O?b+"px":"",n[j]=w?y+"px":"",n.transform="",n))}var oe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:F(t.placement),variation:U(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,re(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,re(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ie={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];r(i)&&l(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});r(o)&&l(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=S.reduce((function(e,n){return e[n]=function(e,t,n){var r=F(e),o=[P,D].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[P,L].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},se={left:"right",right:"left",bottom:"top",top:"bottom"};function fe(e){return e.replace(/left|right|bottom|top/g,(function(e){return se[e]}))}var ce={start:"end",end:"start"};function pe(e){return e.replace(/start|end/g,(function(e){return ce[e]}))}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?S:f,p=U(r),u=p?s?R:R.filter((function(e){return U(e)===p})):k,l=u.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=u);var d=l.reduce((function(t,n){return t[n]=J(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[F(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var le={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,y=F(v),g=f||(y===v||!h?[fe(v)]:function(e){if(F(e)===M)return[];var t=fe(e);return[pe(e),t,pe(t)]}(v)),b=[v].concat(g).reduce((function(e,n){return e.concat(F(n)===M?ue(t,{placement:n,boundary:p,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,j=!0,E=b[0],k=0;k<b.length;k++){var B=b[k],H=F(B),T=U(B)===W,R=[D,A].indexOf(H)>=0,S=R?"width":"height",V=J(t,{placement:B,boundary:p,rootBoundary:u,altBoundary:l,padding:c}),q=R?T?L:P:T?A:D;x[S]>w[S]&&(q=fe(q));var C=fe(q),N=[];if(i&&N.push(V[H]<=0),s&&N.push(V[q]<=0,V[C]<=0),N.every((function(e){return e}))){E=B,j=!1;break}O.set(B,N)}if(j)for(var I=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},_=h?3:1;_>0;_--){if("break"===I(_))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function de(e,t,n){return i(e,a(t,n))}var he={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=void 0===o||o,f=n.altAxis,c=void 0!==f&&f,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,h=n.tether,m=void 0===h||h,v=n.tetherOffset,y=void 0===v?0:v,b=J(t,{boundary:p,rootBoundary:u,padding:d,altBoundary:l}),x=F(t.placement),w=U(t.placement),O=!w,j=z(x),M="x"===j?"y":"x",k=t.modifiersData.popperOffsets,B=t.rects.reference,H=t.rects.popper,T="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,R="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(k){if(s){var q,C="y"===j?D:P,N="y"===j?A:L,I="y"===j?"height":"width",_=k[j],X=_+b[C],Y=_-b[N],G=m?-H[I]/2:0,K=w===W?B[I]:H[I],Q=w===W?-H[I]:-B[I],Z=t.elements.arrow,$=m&&Z?g(Z):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[C],ne=ee[N],re=de(0,B[I],$[I]),oe=O?B[I]/2-G-re-te-R.mainAxis:K-re-te-R.mainAxis,ie=O?-B[I]/2+G+re+ne+R.mainAxis:Q+re+ne+R.mainAxis,ae=t.elements.arrow&&E(t.elements.arrow),se=ae?"y"===j?ae.clientTop||0:ae.clientLeft||0:0,fe=null!=(q=null==S?void 0:S[j])?q:0,ce=_+ie-fe,pe=de(m?a(X,_+oe-fe-se):X,_,m?i(Y,ce):Y);k[j]=pe,V[j]=pe-_}if(c){var ue,le="x"===j?D:P,he="x"===j?A:L,me=k[M],ve="y"===M?"height":"width",ye=me+b[le],ge=me-b[he],be=-1!==[D,P].indexOf(x),xe=null!=(ue=null==S?void 0:S[M])?ue:0,we=be?ye:me-B[ve]-H[ve]-xe+R.altAxis,Oe=be?me+B[ve]+H[ve]-xe-R.altAxis:ge,je=m&&be?function(e,t,n){var r=de(e,t,n);return r>n?n:r}(we,me,Oe):de(m?we:ye,me,m?Oe:ge);k[M]=je,V[M]=je-me}t.modifiersData[r]=V}},requiresIfExists:["offset"]};var me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=F(n.placement),f=z(s),c=[P,L].indexOf(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return Y("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,k))}(o.padding,n),u=g(i),l="y"===f?D:P,d="y"===f?A:L,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],m=a[f]-n.rects.reference[f],v=E(i),y=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,b=h/2-m/2,x=p[l],w=y-u[c]-p[d],O=y/2-u[c]/2+b,j=de(x,O,w),M=f;n.modifiersData[r]=((t={})[M]=j,t.centerOffset=j-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&C(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ye(e){return[D,L,A,P].some((function(t){return e[t]>=0}))}var ge={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=J(t,{elementContext:"reference"}),s=J(t,{altBoundary:!0}),f=ve(a,r),c=ve(s,o,i),p=ye(f),u=ye(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}},be=Z({defaultModifiers:[ee,te,oe,ie]}),xe=[ee,te,oe,ie,ae,le,he,me,ge],we=Z({defaultModifiers:xe});e.applyStyles=ie,e.arrow=me,e.computeStyles=oe,e.createPopper=we,e.createPopperLite=be,e.defaultModifiers=xe,e.detectOverflow=J,e.eventListeners=ee,e.flip=le,e.hide=ge,e.offset=ae,e.popperGenerator=Z,e.popperOffsets=te,e.preventOverflow=he,Object.defineProperty(e,"__esModule",{value:!0})}));
7
8;
vendor: 25,668 bytes, line 9
9!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t=t||self).tippy=e(t.Popper)}(this,(function(t){"use strict";var e="undefined"!=typeof window&&"undefined"!=typeof document,n=!!e&&!!window.msCrypto,r={passive:!0,capture:!0},o=function(){return document.body};function i(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function a(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function s(t,e){return"function"==typeof t?t.apply(void 0,e):t}function u(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function p(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function c(t){return[].concat(t)}function f(t,e){-1===t.indexOf(e)&&t.push(e)}function l(t){return t.split("-")[0]}function d(t){return[].slice.call(t)}function v(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function m(){return document.createElement("div")}function g(t){return["Element","Fragment"].some((function(e){return a(t,e)}))}function h(t){return a(t,"MouseEvent")}function b(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function y(t){return g(t)?[t]:function(t){return a(t,"NodeList")}(t)?d(t):Array.isArray(t)?t:d(document.querySelectorAll(t))}function w(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function x(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function E(t){var e,n=c(t)[0];return null!=n&&null!=(e=n.ownerDocument)&&e.body?n.ownerDocument:document}function O(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}function C(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var T={isTouch:!1},A=0;function L(){T.isTouch||(T.isTouch=!0,window.performance&&document.addEventListener("mousemove",D))}function D(){var t=performance.now();t-A<20&&(T.isTouch=!1,document.removeEventListener("mousemove",D)),A=t}function k(){var t=document.activeElement;if(b(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var R=Object.assign({appendTo:o,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),P=Object.keys(R);function j(t){var e=(t.plugins||[]).reduce((function(e,n){var r,o=n.name,i=n.defaultValue;o&&(e[o]=void 0!==t[o]?t[o]:null!=(r=R[o])?r:i);return e}),{});return Object.assign({},t,e)}function M(t,e){var n=Object.assign({},e,{content:s(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(j(Object.assign({},R,{plugins:e}))):P).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},R.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function V(t,e){t.innerHTML=e}function I(t){var e=m();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",g(t)?e.appendChild(t):V(e,t)),e}function S(t,e){g(e.content)?(V(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?V(t,e.content):t.textContent=e.content)}function B(t){var e=t.firstElementChild,n=d(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function N(t){var e=m(),n=m();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=m();function o(n,r){var o=B(e),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||S(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(I(r.arrow))):i.appendChild(I(r.arrow)):s&&i.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),S(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props),{popper:e,onUpdate:o}}N.$$tippy=!0;var H=1,U=[],_=[];function z(e,a){var p,g,b,y,A,L,D,k,P=M(e,Object.assign({},R,j(v(a)))),V=!1,I=!1,S=!1,N=!1,z=[],F=u(wt,P.interactiveDebounce),W=H++,X=(k=P.plugins).filter((function(t,e){return k.indexOf(t)===e})),Y={id:W,reference:e,popper:m(),popperInstance:null,props:P,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:X,clearDelayTimeouts:function(){clearTimeout(p),clearTimeout(g),cancelAnimationFrame(b)},setProps:function(t){if(Y.state.isDestroyed)return;at("onBeforeUpdate",[Y,t]),bt();var n=Y.props,r=M(e,Object.assign({},n,v(t),{ignoreAttributes:!0}));Y.props=r,ht(),n.interactiveDebounce!==r.interactiveDebounce&&(pt(),F=u(wt,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?c(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");ut(),it(),J&&J(n,r);Y.popperInstance&&(Ct(),At().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));at("onAfterUpdate",[Y,t])},setContent:function(t){Y.setProps({content:t})},show:function(){var t=Y.state.isVisible,e=Y.state.isDestroyed,n=!Y.state.isEnabled,r=T.isTouch&&!Y.props.touch,a=i(Y.props.duration,0,R.duration);if(t||e||n||r)return;if(et().hasAttribute("disabled"))return;if(at("onShow",[Y],!1),!1===Y.props.onShow(Y))return;Y.state.isVisible=!0,tt()&&($.style.visibility="visible");it(),dt(),Y.state.isMounted||($.style.transition="none");if(tt()){var u=rt(),p=u.box,c=u.content;w([p,c],0)}L=function(){var t;if(Y.state.isVisible&&!N){if(N=!0,$.offsetHeight,$.style.transition=Y.props.moveTransition,tt()&&Y.props.animation){var e=rt(),n=e.box,r=e.content;w([n,r],a),x([n,r],"visible")}st(),ut(),f(_,Y),null==(t=Y.popperInstance)||t.forceUpdate(),at("onMount",[Y]),Y.props.animation&&tt()&&function(t,e){mt(t,e)}(a,(function(){Y.state.isShown=!0,at("onShown",[Y])}))}},function(){var t,e=Y.props.appendTo,n=et();t=Y.props.interactive&&e===o||"parent"===e?n.parentNode:s(e,[n]);t.contains($)||t.appendChild($);Y.state.isMounted=!0,Ct()}()},hide:function(){var t=!Y.state.isVisible,e=Y.state.isDestroyed,n=!Y.state.isEnabled,r=i(Y.props.duration,1,R.duration);if(t||e||n)return;if(at("onHide",[Y],!1),!1===Y.props.onHide(Y))return;Y.state.isVisible=!1,Y.state.isShown=!1,N=!1,V=!1,tt()&&($.style.visibility="hidden");if(pt(),vt(),it(!0),tt()){var o=rt(),a=o.box,s=o.content;Y.props.animation&&(w([a,s],r),x([a,s],"hidden"))}st(),ut(),Y.props.animation?tt()&&function(t,e){mt(t,(function(){!Y.state.isVisible&&$.parentNode&&$.parentNode.contains($)&&e()}))}(r,Y.unmount):Y.unmount()},hideWithInteractivity:function(t){nt().addEventListener("mousemove",F),f(U,F),F(t)},enable:function(){Y.state.isEnabled=!0},disable:function(){Y.hide(),Y.state.isEnabled=!1},unmount:function(){Y.state.isVisible&&Y.hide();if(!Y.state.isMounted)return;Tt(),At().forEach((function(t){t._tippy.unmount()})),$.parentNode&&$.parentNode.removeChild($);_=_.filter((function(t){return t!==Y})),Y.state.isMounted=!1,at("onHidden",[Y])},destroy:function(){if(Y.state.isDestroyed)return;Y.clearDelayTimeouts(),Y.unmount(),bt(),delete e._tippy,Y.state.isDestroyed=!0,at("onDestroy",[Y])}};if(!P.render)return Y;var q=P.render(Y),$=q.popper,J=q.onUpdate;$.setAttribute("data-tippy-root",""),$.id="tippy-"+Y.id,Y.popper=$,e._tippy=Y,$._tippy=Y;var G=X.map((function(t){return t.fn(Y)})),K=e.hasAttribute("aria-expanded");return ht(),ut(),it(),at("onCreate",[Y]),P.showOnCreate&&Lt(),$.addEventListener("mouseenter",(function(){Y.props.interactive&&Y.state.isVisible&&Y.clearDelayTimeouts()})),$.addEventListener("mouseleave",(function(){Y.props.interactive&&Y.props.trigger.indexOf("mouseenter")>=0&&nt().addEventListener("mousemove",F)})),Y;function Q(){var t=Y.props.touch;return Array.isArray(t)?t:[t,0]}function Z(){return"hold"===Q()[0]}function tt(){var t;return!(null==(t=Y.props.render)||!t.$$tippy)}function et(){return D||e}function nt(){var t=et().parentNode;return t?E(t):document}function rt(){return B($)}function ot(t){return Y.state.isMounted&&!Y.state.isVisible||T.isTouch||y&&"focus"===y.type?0:i(Y.props.delay,t?0:1,R.delay)}function it(t){void 0===t&&(t=!1),$.style.pointerEvents=Y.props.interactive&&!t?"":"none",$.style.zIndex=""+Y.props.zIndex}function at(t,e,n){var r;(void 0===n&&(n=!0),G.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(r=Y.props)[t].apply(r,e)}function st(){var t=Y.props.aria;if(t.content){var n="aria-"+t.content,r=$.id;c(Y.props.triggerTarget||e).forEach((function(t){var e=t.getAttribute(n);if(Y.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var o=e&&e.replace(r,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}}))}}function ut(){!K&&Y.props.aria.expanded&&c(Y.props.triggerTarget||e).forEach((function(t){Y.props.interactive?t.setAttribute("aria-expanded",Y.state.isVisible&&t===et()?"true":"false"):t.removeAttribute("aria-expanded")}))}function pt(){nt().removeEventListener("mousemove",F),U=U.filter((function(t){return t!==F}))}function ct(t){if(!T.isTouch||!S&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!Y.props.interactive||!C($,n)){if(c(Y.props.triggerTarget||e).some((function(t){return C(t,n)}))){if(T.isTouch)return;if(Y.state.isVisible&&Y.props.trigger.indexOf("click")>=0)return}else at("onClickOutside",[Y,t]);!0===Y.props.hideOnClick&&(Y.clearDelayTimeouts(),Y.hide(),I=!0,setTimeout((function(){I=!1})),Y.state.isMounted||vt())}}}function ft(){S=!0}function lt(){S=!1}function dt(){var t=nt();t.addEventListener("mousedown",ct,!0),t.addEventListener("touchend",ct,r),t.addEventListener("touchstart",lt,r),t.addEventListener("touchmove",ft,r)}function vt(){var t=nt();t.removeEventListener("mousedown",ct,!0),t.removeEventListener("touchend",ct,r),t.removeEventListener("touchstart",lt,r),t.removeEventListener("touchmove",ft,r)}function mt(t,e){var n=rt().box;function r(t){t.target===n&&(O(n,"remove",r),e())}if(0===t)return e();O(n,"remove",A),O(n,"add",r),A=r}function gt(t,n,r){void 0===r&&(r=!1),c(Y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),z.push({node:e,eventType:t,handler:n,options:r})}))}function ht(){var t;Z()&&(gt("touchstart",yt,{passive:!0}),gt("touchend",xt,{passive:!0})),(t=Y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(gt(t,yt),t){case"mouseenter":gt("mouseleave",xt);break;case"focus":gt(n?"focusout":"blur",Et);break;case"focusin":gt("focusout",Et)}}))}function bt(){z.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,o=t.options;e.removeEventListener(n,r,o)})),z=[]}function yt(t){var e,n=!1;if(Y.state.isEnabled&&!Ot(t)&&!I){var r="focus"===(null==(e=y)?void 0:e.type);y=t,D=t.currentTarget,ut(),!Y.state.isVisible&&h(t)&&U.forEach((function(e){return e(t)})),"click"===t.type&&(Y.props.trigger.indexOf("mouseenter")<0||V)&&!1!==Y.props.hideOnClick&&Y.state.isVisible?n=!0:Lt(t),"click"===t.type&&(V=!n),n&&!r&&Dt(t)}}function wt(t){var e=t.target,n=et().contains(e)||$.contains(e);"mousemove"===t.type&&n||function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,o=t.popperState,i=t.props.interactiveBorder,a=l(o.placement),s=o.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,f="left"===a?s.right.x:0,d=e.top-r+u>i,v=r-e.bottom-p>i,m=e.left-n+c>i,g=n-e.right-f>i;return d||v||m||g}))}(At().concat($).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:P}:null})).filter(Boolean),t)&&(pt(),Dt(t))}function xt(t){Ot(t)||Y.props.trigger.indexOf("click")>=0&&V||(Y.props.interactive?Y.hideWithInteractivity(t):Dt(t))}function Et(t){Y.props.trigger.indexOf("focusin")<0&&t.target!==et()||Y.props.interactive&&t.relatedTarget&&$.contains(t.relatedTarget)||Dt(t)}function Ot(t){return!!T.isTouch&&Z()!==t.type.indexOf("touch")>=0}function Ct(){Tt();var n=Y.props,r=n.popperOptions,o=n.placement,i=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,u=tt()?B($).arrow:null,p=a?{getBoundingClientRect:a,contextElement:a.contextElement||et()}:e,c=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(tt()){var n=rt().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];tt()&&u&&c.push({name:"arrow",options:{element:u,padding:3}}),c.push.apply(c,(null==r?void 0:r.modifiers)||[]),Y.popperInstance=t.createPopper(p,$,Object.assign({},r,{placement:o,onFirstUpdate:L,modifiers:c}))}function Tt(){Y.popperInstance&&(Y.popperInstance.destroy(),Y.popperInstance=null)}function At(){return d($.querySelectorAll("[data-tippy-root]"))}function Lt(t){Y.clearDelayTimeouts(),t&&at("onTrigger",[Y,t]),dt();var e=ot(!0),n=Q(),r=n[0],o=n[1];T.isTouch&&"hold"===r&&o&&(e=o),e?p=setTimeout((function(){Y.show()}),e):Y.show()}function Dt(t){if(Y.clearDelayTimeouts(),at("onUntrigger",[Y,t]),Y.state.isVisible){if(!(Y.props.trigger.indexOf("mouseenter")>=0&&Y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&V)){var e=ot(!1);e?g=setTimeout((function(){Y.state.isVisible&&Y.hide()}),e):b=requestAnimationFrame((function(){Y.hide()}))}}else vt()}}function F(t,e){void 0===e&&(e={});var n=R.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",L,r),window.addEventListener("blur",k);var o=Object.assign({},e,{plugins:n}),i=y(t).reduce((function(t,e){var n=e&&z(e,o);return n&&t.push(n),t}),[]);return g(t)?i[0]:i}F.defaultProps=R,F.setDefaultProps=function(t){Object.keys(t).forEach((function(e){R[e]=t[e]}))},F.currentInput=T;var W=Object.assign({},t.applyStyles,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),X={mouseover:"mouseenter",focusin:"focus",click:"click"};var Y={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(null==(e=t.props.render)||!e.$$tippy)return{};var n=B(t.popper),r=n.box,o=n.content,i=t.props.animateFill?function(){var t=m();return t.className="tippy-backdrop",x([t],"hidden"),t}():null;return{onCreate:function(){i&&(r.insertBefore(i,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var t=r.style.transitionDuration,e=Number(t.replace("ms",""));o.style.transitionDelay=Math.round(e/10)+"ms",i.style.transitionDuration=t,x([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&x([i],"hidden")}}}};var q={clientX:0,clientY:0},$=[];function J(t){var e=t.clientX,n=t.clientY;q={clientX:e,clientY:n}}var G={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=E(t.props.triggerTarget||e),r=!1,o=!1,i=!0,a=t.props;function s(){return"initial"===t.props.followCursor&&t.state.isVisible}function u(){n.addEventListener("mousemove",f)}function p(){n.removeEventListener("mousemove",f)}function c(){r=!0,t.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||e.contains(n.target),o=t.props.followCursor,i=n.clientX,a=n.clientY,s=e.getBoundingClientRect(),u=i-s.left,p=a-s.top;!r&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=t.left+u,r=t.top+p);var s="horizontal"===o?t.top:r,c="vertical"===o?t.right:n,f="horizontal"===o?t.bottom:r,l="vertical"===o?t.left:n;return{width:c-l,height:f-s,top:s,right:c,bottom:f,left:l}}})}function l(){t.props.followCursor&&($.push({instance:t,doc:n}),function(t){t.addEventListener("mousemove",J)}(n))}function d(){0===($=$.filter((function(e){return e.instance!==t}))).filter((function(t){return t.doc===n})).length&&function(t){t.removeEventListener("mousemove",J)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=t.props},onAfterUpdate:function(e,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!t.state.isMounted||o||s()||u()):(p(),c()))},onMount:function(){t.props.followCursor&&!o&&(i&&(f(q),i=!1),s()||u())},onTrigger:function(t,e){h(e)&&(q={clientX:e.clientX,clientY:e.clientY}),o="focus"===e.type},onHidden:function(){t.props.followCursor&&(c(),p(),i=!0)}}}};var K={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var r=-1,o=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var a=o.state;t.props.inlinePositioning&&(-1!==i.indexOf(a.placement)&&(i=[]),e!==a.placement&&-1===i.indexOf(a.placement)&&(i.push(a.placement),t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n,r){if(n.length<2||null===t)return e;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||e;switch(t){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===t,s=o.top,u=i.bottom,p=a?o.left:i.left,c=a?o.right:i.right;return{top:s,bottom:u,left:p,right:c,width:c-p,height:u-s};case"left":case"right":var f=Math.min.apply(Math,n.map((function(t){return t.left}))),l=Math.max.apply(Math,n.map((function(t){return t.right}))),d=n.filter((function(e){return"left"===t?e.left===f:e.right===l})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:f,right:l,width:l-f,height:m-v};default:return e}}(l(t),n.getBoundingClientRect(),d(n.getClientRects()),r)}(a.placement)}})),e=a.placement)}};function s(){var e;o||(e=function(t,e){var n;return{popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat(((null==(n=t.popperOptions)?void 0:n.modifiers)||[]).filter((function(t){return t.name!==e.name})),[e])})}}(t.props,a),o=!0,t.setProps(e),o=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(e,n){if(h(n)){var o=d(t.reference.getClientRects()),i=o.find((function(t){return t.left-2<=n.clientX&&t.right+2>=n.clientX&&t.top-2<=n.clientY&&t.bottom+2>=n.clientY})),a=o.indexOf(i);r=a>-1?a:r}},onHidden:function(){r=-1}}}};var Q={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function r(e){return!0===t.props.sticky||t.props.sticky===e}var o=null,i=null;function a(){var s=r("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,u=r("popper")?n.getBoundingClientRect():null;(s&&Z(o,s)||u&&Z(i,u))&&t.popperInstance&&t.popperInstance.update(),o=s,i=u,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function Z(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}return e&&function(t){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,r=document.querySelector("head>style,head>link");r?n.insertBefore(e,r):n.appendChild(e)}('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),F.setDefaultProps({plugins:[Y,G,K,Q],render:N}),F.createSingleton=function(t,e){var n;void 0===e&&(e={});var r,o=t,i=[],a=[],s=e.overrides,u=[],f=!1;function l(){a=o.map((function(t){return c(t.props.triggerTarget||t.reference)})).reduce((function(t,e){return t.concat(e)}),[])}function d(){i=o.map((function(t){return t.reference}))}function v(t){o.forEach((function(e){t?e.enable():e.disable()}))}function g(t){return o.map((function(e){var n=e.setProps;return e.setProps=function(o){n(o),e.reference===r&&t.setProps(o)},function(){e.setProps=n}}))}function h(t,e){var n=a.indexOf(e);if(e!==r){r=e;var u=(s||[]).concat("content").reduce((function(t,e){return t[e]=o[n].props[e],t}),{});t.setProps(Object.assign({},u,{getReferenceClientRect:"function"==typeof u.getReferenceClientRect?u.getReferenceClientRect:function(){var t;return null==(t=i[n])?void 0:t.getBoundingClientRect()}}))}}v(!1),d(),l();var b={fn:function(){return{onDestroy:function(){v(!0)},onHidden:function(){r=null},onClickOutside:function(t){t.props.showOnCreate&&!f&&(f=!0,r=null)},onShow:function(t){t.props.showOnCreate&&!f&&(f=!0,h(t,i[0]))},onTrigger:function(t,e){h(t,e.currentTarget)}}}},y=F(m(),Object.assign({},p(e,["overrides"]),{plugins:[b].concat(e.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],[W])})})),w=y.show;y.show=function(t){if(w(),!r&&null==t)return h(y,i[0]);if(!r||null!=t){if("number"==typeof t)return i[t]&&h(y,i[t]);if(o.indexOf(t)>=0){var e=t.reference;return h(y,e)}return i.indexOf(t)>=0?h(y,t):void 0}},y.showNext=function(){var t=i[0];if(!r)return y.show(0);var e=i.indexOf(r);y.show(i[e+1]||t)},y.showPrevious=function(){var t=i[i.length-1];if(!r)return y.show(t);var e=i.indexOf(r),n=i[e-1]||t;y.show(n)};var x=y.setProps;return y.setProps=function(t){s=t.overrides||s,x(t)},y.setInstances=function(t){v(!0),u.forEach((function(t){return t()})),o=t,v(!1),d(),l(),u=g(y),y.setProps({triggerTarget:a})},u=g(y),y},F.delegate=function(t,e){var n=[],o=[],i=!1,a=e.target,s=p(e,["target"]),u=Object.assign({},s,{trigger:"manual",touch:!1}),f=Object.assign({touch:R.touch},s,{showOnCreate:!0}),l=F(t,u);function d(t){if(t.target&&!i){var n=t.target.closest(a);if(n){var r=n.getAttribute("data-tippy-trigger")||e.trigger||R.trigger;if(!n._tippy&&!("touchstart"===t.type&&"boolean"==typeof f.touch||"touchstart"!==t.type&&r.indexOf(X[t.type])<0)){var s=F(n,f);s&&(o=o.concat(s))}}}}function v(t,e,r,o){void 0===o&&(o=!1),t.addEventListener(e,r,o),n.push({node:t,eventType:e,handler:r,options:o})}return c(l).forEach((function(t){var e=t.destroy,a=t.enable,s=t.disable;t.destroy=function(t){void 0===t&&(t=!0),t&&o.forEach((function(t){t.destroy()})),o=[],n.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,o=t.options;e.removeEventListener(n,r,o)})),n=[],e()},t.enable=function(){a(),o.forEach((function(t){return t.enable()})),i=!1},t.disable=function(){s(),o.forEach((function(t){return t.disable()})),i=!0},function(t){var e=t.reference;v(e,"touchstart",d,r),v(e,"mouseover",d),v(e,"focusin",d),v(e,"click",d)}(t)})),l},F.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,r=e.duration;_.forEach((function(t){var e=!1;if(n&&(e=b(n)?t.reference===n:t.popper===n.popper),!e){var o=t.props.duration;t.setProps({duration:r}),t.hide(),t.state.isDestroyed||t.setProps({duration:o})}}))},F.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',F}));
10
11;
12(function($,Drupal,once){'use strict';function replaceStageURL(html){if(!html)return html;const stageUrl='stage.jamsadr.com';const prodUrl='jamsadr.com';const devUrl='dev.jamsadr.com';const currentHostname=window.location.hostname;if(currentHostname.includes('stage'))return html;else if(currentHostname.includes('dev'))return html.replace(new RegExp(stageUrl,'g'),devUrl);else return html.replace(new RegExp(stageUrl,'g'),prodUrl);}function replaceDevURL(html){if(!html)return html;const devUrl='dev.jamsadr.com';const prodUrl='jamsadr.com';const stageUrl='stage.jamsadr.com';const currentHostname=window.location.hostname;if(currentHostname.includes('dev'))return html;else if(currentHostname.includes('stage'))return html.replace(new RegExp(devUrl,'g'),stageUrl);else return html.replace(new RegExp(devUrl,'g'),prodUrl);}class PdfParams{constructor(){this.rulesUrls=["rules-comprehensive-arbitration"];this.isInUpdatedMode=this.rulesUrls.some((url)=>window.location.href.indexOf(url)!==-1);this.logo=window.location.origin+"/sites/default/files/images/default-images/jams-logo.svg";this.marginBottom="13";this.marginTop="16";this.marginLeft="15";this.marginRight="15";this.mediaType="print";this.header=this.isInUpdatedMode?`<div style="text-align:center; padding: 5px;"><div class='middlepages'><img src="${this.logo}" alt="test" width='78px' height='39.97px' /></div><div class='lastpage'><img src="${this.logo}" width='78px' height='39.97px' /></div></div>`:'';this.footer="";this.fileName="";this.orientation="Portrait";this.title="";this.pageSize="Letter";}}class NeutralPdfParams{constructor(){this.marginBottom="21";this.marginTop="10";this.marginLeft="8";this.marginRight="15";this.header="";this.footer="";this.fileName="";this.url=encodeURIComponent(window.location.href);this.orientation="Portrait";this.title="";this.footer1="";this.footer2="";this.footerGap="10";this.pageSize="Letter";this.cssMediaType="print";this.getSections();}getSections(){this.checkedCount=0;neutralSectionsIds.forEach((section)=>{const isChecked=$('#'+section+'-check').is(':checked');if(isChecked)this.checkedCount++;this[section]=isChecked?"":"hide";});}}const neutralSectionsIds=["neutral-contact-case-manager","neutral-biography","neutral-honors","neutral-background","counselcomments-panel","locations-panel","news-panel","events-panel"];const PAGE_TOOL_PDF_LOADING_OVERLAY_ID="page-tool-pdf-loading-overlay";function showPageToolPdfLoading(){let overlay=document.getElementById(PAGE_TOOL_PDF_LOADING_OVERLAY_ID);if(!overlay){overlay=document.createElement("div");overlay.id=PAGE_TOOL_PDF_LOADING_OVERLAY_ID;overlay.setAttribute("role","status");overlay.setAttribute("aria-live","polite");overlay.setAttribute("aria-hidden","true");overlay.innerHTML='<div id="page-tool-pdf-loading-spinner"></div>';document.body.appendChild(overlay);}overlay.classList.add("is-visible");overlay.setAttribute("aria-busy","true");overlay.setAttribute("aria-hidden","false");document.body.classList.add("page-tool-pdf-loading");}function hidePageToolPdfLoading(){const overlay=document.getElementById(PAGE_TOOL_PDF_LOADING_OVERLAY_ID);if(overlay){overlay.classList.remove("is-visible");overlay.setAttribute("aria-busy","false");overlay.setAttribute("aria-hidden","true");}document.body.classList.remove("page-tool-pdf-loading");}async function downloadAsPdfFromHTML(){showPageToolPdfLoading();const pdfParams=new PdfParams();let query={};query["license"]="MyObeJn1q3eK&";let pageTitle=pdfParams.fileName||document.title;let filename=pageTitle;filename=filename.replace(/\.pdf$/i,'').trim();filename=filename.replace(/\s*\|\s*/g,' _ ');filename=filename.replace(/[<>:"/\\?*\x00-\x1F]/g,'').replace(/\s+/g,' ').trim();filename=filename+'.pdf';query["filename"]=filename;if(pdfParams.title)query["title"]=pdfParams.title;else query["title"]=document.title;query["css_media_type"]=pdfParams.mediaType;query["orientation"]=pdfParams.orientation;query["page_size"]=pdfParams.pageSize;query["top"]=pdfParams.marginTop;query["left"]=pdfParams.marginLeft;query["right"]=pdfParams.marginRight;query["bottom"]=pdfParams.marginBottom;
12query["header"]=pdfParams.header;query["footer"]=pdfParams.footer;let printCss=`
13  .modal {
14  }
15  .hide-on-print {
16  }
17`;try{const cssUrl=window.location.origin+'/themes/custom/jamsadr/css/print.css';const cssResponse=await fetch(cssUrl);if(cssResponse.ok){const cssContent=await cssResponse.text();printCss=cssContent;}}catch(error){console.error('Failed to fetch print.css:',error);}printCss+=`
18    .news-hero-media {
19    height: unset !important;
20  }
21  .coh-style-header,
22  .site-header {
23    display: none !important;
24  }
25`;const elements=document.querySelectorAll("img");[...elements].forEach((img)=>{img.setAttribute("src",img.src);});let html="";let node=document.firstChild;while(node){switch(node.nodeType){case Node.ELEMENT_NODE:html+=node.outerHTML;break;case Node.TEXT_NODE:html+=node.nodeValue;break;case Node.CDATA_SECTION_NODE:html+="<![CDATA["+node.nodeValue+"]]>";break;case Node.COMMENT_NODE:html+="<!--"+node.nodeValue+"-->";break;case Node.DOCUMENT_TYPE_NODE:html+="<!DOCTYPE "+node.name+(node.publicId?' PUBLIC "'+node.publicId+'"':"")+(!node.publicId&&node.systemId?" SYSTEM":"")+(node.systemId?' "'+node.systemId+'"':"")+">\n";break;}node=node.nextSibling;}html=html.replace(/<head>/i,`<head>\n<style>${printCss}</style>`);html=replaceStageURL(html);html=replaceDevURL(html);html=html.replace('<main','<div style="margin: 20px 0 20px 0px;"><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 300 84" width="200" height="56" style="display: block;"><defs><style>.st0{fill:#071d49;}.st1{fill:#a39452;}</style></defs><path class="st0" d="M119.2,24.2c0-3.9,1.9-4.7,5.9-5.1v-2.9h-23.3v2.9c4,.4,5.9,1.2,5.9,5.1v31.1c0,6.5-1.7,9.2-5.8,9.2s-4.6-1.6-4.6-3.6,1.5-2.6,1.5-5.3-2.4-5.4-5.5-5.4-6.6,3.1-6.6,7c0,6.9,6.8,11.4,15.2,11.4s17.3-6.5,17.3-18.6v-25.9Z"/><path class="st0" d="M135.8,47.7l8.1-20.1,8.2,20.1h-16.3ZM238.9,19.1v-2.9h-19.7l-12.8,33.2-12.9-33.2h-21.1v2.9c4.7.4,6.8,1.2,6.8,5.1v29c0,2.4-.2,5-1.1,7.3-.6,1.5-1.8,3.2-3.5,3.4-2,.2-3.5-1.9-4.5-3.3h0c-.8-1.3-1.5-2.8-2-4.1l-16.3-40.2h-8.6l-15.6,38.7c-2.1,5.1-4.6,9.6-8.4,10v2.9h19.5v-2.9c-4.6-.5-7.4-4-4.8-12.1h20.4l1.9,4.6c1.8,4.3.5,7.1-3.6,7.4v2.9h40v-2.9c-5.7-.5-8.2-3.9-8.2-11.8v-28.7l16.7,43.4h3.7l16.7-43.4v35.4c0,3.9-1.9,4.7-5.9,5.1v2.9h23.3v-2.9c-4-.4-5.9-1.2-5.9-5.1V24.2c0-3.9,1.9-4.7,5.9-5.1"/><path class="st0" d="M29.5,42c0-8.4,6.2-15.3,14.2-16.6v-10.1c-10.7,1-19.5,8.3-22.8,18.2,2.7,1.8,4.5,4.9,4.5,8.5s-1.8,6.6-4.5,8.5c3.3,9.9,12.1,17.2,22.8,18.2v-10.1c-8-1.2-14.2-8.2-14.2-16.6"/><path class="st0" d="M15.2,49.7c4.3,0,7.7-3.5,7.7-7.7s-3.5-7.7-7.7-7.7-7.7,3.5-7.7,7.7,3.5,7.7,7.7,7.7"/><path class="st1" d="M67.1,42c0-3.5,1.8-6.6,4.5-8.5-3.3-9.9-12.1-17.2-22.8-18.2v10.1c8,1.2,14.2,8.2,14.2,16.6s-6.2,15.3-14.2,16.6v10.1c10.7-1,19.5-8.3,22.8-18.2-2.7-1.8-4.5-4.9-4.5-8.5"/><path class="st1" d="M77.3,34.3c-4.3,0-7.7,3.5-7.7,7.7s3.5,7.7,7.7,7.7,7.7-3.5,7.7-7.7-3.5-7.7-7.7-7.7"/><path class="st0" d="M262.6,35c-6.4-1.9-12.2-3.7-12.2-9.1s3.8-6.3,8.9-6.3,13,4.2,14.4,12.7h2.9v-13.2c-3.7-2.1-11.1-3.8-16.4-3.8-11.9,0-19.3,6.1-19.3,14.6s9.4,14.2,17.7,17c6.5,2.1,12.5,4,12.5,9.5s-3.4,7.8-9.7,7.8-15.8-3.7-18-14.7h-2.9v14.6c2.6,1.6,9.1,4.5,20.1,4.5s20-6.2,20-16.4-9.6-14.6-18-17.2"/><path class="st0" d="M283,23c0-2.7,2.1-4.8,4.8-4.8s4.8,2.1,4.8,4.8-2.1,4.8-4.8,4.8-4.8-2.1-4.8-4.8ZM283.7,23c0,2.2,1.8,4,4,4s4-1.8,4-4-1.8-4-4-4-4,1.8-4,4ZM289.1,25.7l-1.4-2.2h-.9v2.2h-.8v-5.5h2.2c1,0,1.8.7,1.8,1.7s-1.1,1.6-1.4,1.6l1.5,2.2h-.9ZM286.7,20.9v1.9h1.5c.5,0,1-.4,1-.9s-.5-1-1-1h-1.5Z"/></svg></div><main');query["html"]=html;let queryText=Object.keys(query).map(function(k){return encodeURIComponent(k)+"="+encodeURIComponent(query[k]);}).join("&");try{const response=await fetch("https://pdfmyurl.com/api",{body:queryText,headers:{"Content-type":"application/x-www-form-urlencoded"},method:"POST"});const blob=await response.blob();const url=window.URL.createObjectURL(blob);const a=document.createElement("a");a.style.display="none";a.href=url;a.download=query["filename"];document.body.appendChild(a);a.click();document.body.removeChild(a);window.URL.revokeObjectURL(url);}catch(error){console.error("Failed to generate PDF:",error);}finally{hidePageToolPdfLoading();}}const PageToolPdf={isNeutralSearchHeroPdfIcon(icon){if(icon.closest(".
25new-neutral-search-hero__tools"))return true;const host=icon.getRootNode?.()?.host;return Boolean(host?.closest?.(".new-neutral-search-hero__tools"));},triggerPdfDownload(event){const isNeutralDetailPage=/^\/neutrals\//.test(window.location.pathname)||!!document.querySelector("#bio-panel, .neutral-detail-hero, .main-neutral-detail, .coh-style-neutrals-detail");const openNeutralModal=()=>{const neutralPdfButton=document.getElementById("btn-pdf-download");if(neutralPdfButton){neutralPdfButton.dispatchEvent(new MouseEvent("click",{bubbles:true,cancelable:true}));return true;}const neutralPdfModal=document.getElementById("modal-neutral-pdf");if(!neutralPdfModal)return false;neutralPdfModal.removeAttribute("hidden");neutralPdfModal.style.display="block";neutralPdfModal.style.visibility="visible";neutralPdfModal.style.opacity="1";if(!document.querySelector(".coh-modal-overlay")){const overlay=document.createElement("div");overlay.className="coh-modal-overlay";document.body.appendChild(overlay);}document.body.classList.add("modal-open");return true;};if(isNeutralDetailPage){if(openNeutralModal())return;let attempts=0;const retry=setInterval(()=>{attempts+=1;if(openNeutralModal()||attempts>=12)clearInterval(retry);},100);return;}else downloadAsPdfFromHTML(event);},bindPdfIconElement(icon){if(this.isNeutralSearchHeroPdfIcon(icon))return;once("page-tool-pdf-icon",icon).forEach((element)=>{const activate=(event)=>{event.preventDefault();event.stopPropagation();if(typeof event.stopImmediatePropagation==="function")event.stopImmediatePropagation();this.triggerPdfDownload(event);};element.addEventListener("click",activate);element.addEventListener("keydown",(event)=>{if(event.key!=="Enter"&&event.key!==" ")return;activate(event);});});},bindPdfIcons(root){const scope=root&&root.querySelectorAll?root:document;scope.querySelectorAll("j-icon-pdf").forEach((icon)=>this.bindPdfIconElement(icon));scope.querySelectorAll("j-page-tool").forEach((pageTool)=>{if(pageTool.shadowRoot)pageTool.shadowRoot.querySelectorAll("j-icon-pdf").forEach((icon)=>{this.bindPdfIconElement(icon);});});},attach(){this.bindPdfIcons(document);if(!this.bindRetried){this.bindRetried=true;window.requestAnimationFrame(()=>this.bindPdfIcons(document));window.setTimeout(()=>this.bindPdfIcons(document),500);}}};function bootstrapPageToolPdf(){PageToolPdf.attach();}Drupal.behaviors.pageToolPdf={attach:function(context){bootstrapPageToolPdf();const root=context&&context.querySelectorAll?context:document;PageToolPdf.bindPdfIcons(root);}};Drupal.behaviors.jamsPdf={attach:function(context,settings){once('print-button','#btn-print-page',context).forEach(function(button){$(button).on('click',function(){try{window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"print_page",page_url:window.location.href});}catch(e){}window.print();});});once('pdf-download','#button-neutral-pdf-print',context).forEach(function(button){$(button).on('click',function(e){try{window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"download_page_as_pdf",page_url:window.location.href});}catch(e){}downloadAsPdfFromHTML();});});once('pdf-download-html','#btn-pdf-download',context).forEach(function(button){$(button).on('click',function(e){if($('#modal-neutral-pdf').length)return;if(!e.originalEvent||e.originalEvent.isTrusted===false)return;try{window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"download_page_as_pdf",page_url:window.location.href});}catch(e){}downloadAsPdfFromHTML();});});once('pdf-download-html-from-html','#btn-pdf-download-from-html',context).forEach(function(button){$(button).on('click',function(e){const $modal=$('#modal-neutral-pdf');if($modal.length&&($modal.has(e.target).length||$modal.is(':visible')))if(e.target!==button&&!$(button).is(e.target))return;if(!e.originalEvent||e.originalEvent.isTrusted===false)return;try{window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"download_page_as_pdf",page_url:window.location.href});}catch(e){}downloadAsPdfFromHTML();});});}};Drupal.behaviors.modalClose={attach:function(context,settings){var btns=once('modal-close','.btn-modal-close',context);btns.forEach(function(el){$(el).on('click',function(e){e.preventDefault();var overlay=document.querySelector('.coh-modal-overlay');if(overlay)overlay.click();return false;});});once('modal-esc',document).forEach(function(el){$(el).on('keydown.modal-close',function(e){if(e.keyCode===27){var $visibleModal=$('.modal:visible, [data-modal]:visible, .modal-dialog:visible, .popup:visible, .coh-modal:visible');if($visibleModal.length)$visibleModal.find('.btn-modal-close').trigger('click');}});});}};window.NeutralPdfParams=NeutralPdfParams;window.neutralSectionsIds=neutralSectionsIds;if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",bootstrapPageToolPdf);else bootstrapPageToolPdf();})(jQuery,Drupal,once);;
26const BREAKPOINTS={DESKTOP:1024};
26const SCROLL_CONFIG={MAX_SCROLL:48,TOP_HIDE_SCROLL:1,TOP_OFFSET:-48,START_HEIGHT:100,END_HEIGHT:70,SEARCH_BOX_TOP:112};const TIMING={HOVER_DELAY:50,FOCUS_DELAY:300,TOUCH_THRESHOLD_DISTANCE:10,TOUCH_THRESHOLD_DURATION:300};const isDesktop=()=>window.matchMedia(`(min-width: ${BREAKPOINTS.DESKTOP}px)`).matches;const isTouchDevice=()=>"ontouchstart" in window||navigator.maxTouchPoints>0;const setDropdownAccessibility=(dropdownMenu,isAccessible)=>{const links=dropdownMenu.querySelectorAll(".dropdown-link");const tabindex=isAccessible?"0":"-1";links.forEach((link)=>link.setAttribute("tabindex",tabindex));};const showDropdownMenu=(dropdownMenu)=>{dropdownMenu.style.display="block";dropdownMenu.setAttribute("aria-hidden","false");setDropdownAccessibility(dropdownMenu,true);};const hideDropdownMenu=(dropdownMenu)=>{dropdownMenu.style.display="none";dropdownMenu.setAttribute("aria-hidden","true");setDropdownAccessibility(dropdownMenu,false);};const ScrollHeader={init(){if(!isDesktop())return;const header=document.querySelector(".site-header");const headerContainer=document.querySelector(".header-container");const searchBox=document.querySelector(".search-box-container");if(!header||!headerContainer||!searchBox)return;searchBox.style.top=`${SCROLL_CONFIG.SEARCH_BOX_TOP}px`;const startPadding=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gutter"));const endPadding=startPadding/2;let ticking=false;const updateHeader=()=>{const scrollY=window.scrollY;const progress=Math.min(scrollY/SCROLL_CONFIG.MAX_SCROLL,1);header.style.top=scrollY>=SCROLL_CONFIG.TOP_HIDE_SCROLL?`${SCROLL_CONFIG.TOP_OFFSET}px`:"0px";headerContainer.style.height=`${SCROLL_CONFIG.START_HEIGHT-(SCROLL_CONFIG.START_HEIGHT-SCROLL_CONFIG.END_HEIGHT)*progress}px`;const padding=startPadding-(startPadding-endPadding)*progress;headerContainer.style.paddingTop=headerContainer.style.paddingBottom=`${padding}px`;ticking=false;};const onScroll=()=>{if(ticking)return;ticking=true;requestAnimationFrame(updateHeader);};window.addEventListener("scroll",onScroll,{passive:true});updateHeader();}};const DropdownNav={navItems:[],init(){this.navItems=Array.from(document.querySelectorAll(".nav-primary-item"));this.navItems.forEach((item)=>this.setupDropdownItem(item));this.setupGlobalHandlers();},isNavigatingLink(target){if(!target||!target.closest)return false;const link=target.closest("a");if(!link)return false;if(link.classList.contains("dropdown-link"))return true;const item=link.closest(".nav-primary-item");if(item&&!item.querySelector(".dropdown-menu"))return true;return false;},closeAll(){this.navItems.forEach((item)=>{item.classList.remove("expanded");const dropdownMenu=item.querySelector(".dropdown-menu");if(dropdownMenu)hideDropdownMenu(dropdownMenu);});},setupDropdownItem(item){const dropdownMenu=item.querySelector(".dropdown-menu");if(!dropdownMenu)return;item.classList.add("has-dd");const state={isHovered:false,isFocused:false,isTouchOpen:false};const resetTouchState=()=>{if(!item.classList.contains("expanded"))state.isTouchOpen=false;};const showDropdown=()=>{resetTouchState();if(isDesktop()){item.classList.add("expanded");showDropdownMenu(dropdownMenu);}};const hideDropdown=()=>{resetTouchState();if(isDesktop()&&!state.isHovered&&!state.isFocused&&!state.isTouchOpen){item.classList.remove("expanded");hideDropdownMenu(dropdownMenu);}};const toggleDropdown=()=>{const isExpanded=item.classList.contains("expanded");if(isExpanded){item.classList.remove("expanded");hideDropdownMenu(dropdownMenu);state.isTouchOpen=false;}else{this.closeAll();item.classList.add("expanded");showDropdownMenu(dropdownMenu);state.isTouchOpen=true;}};this.setupTouchEvents(item,dropdownMenu,state,toggleDropdown);this.setupMouseEvents(item,state,showDropdown,hideDropdown);this.setupFocusEvents(item,state,showDropdown,hideDropdown);this.setupResizeHandler(item,dropdownMenu,state);},setupTouchEvents(item,dropdownMenu,state,toggleDropdown){if(isTouchDevice()){let touchStartY=0;let touchStartTimestamp=0;let touchHandled=false;let touchStartTarget=null;item.addEventListener("touchstart",(e)=>{touchStartY=e.touches[0].clientY;touchStartTimestamp=e.timeStamp;touchHandled=false;touchStartTarget=e.target;},{passive:true});item.addEventListener("touchend",(e)=>{const touchEndY=e.changedTouches[0].clientY;const touchDuration=e.timeStamp-touchStartTimestamp;const touchDistance=Math.abs(touchEndY-touchStartY);if(touchDistance<TIMING.TOUCH_THRESHOLD_DISTANCE&&touchDuration<TIMING.TOUCH_THRESHOLD_DURATION){const tappedEl=touchStartTarget||e.target;if(this.isNavigatingLink(tappedEl)){const link=tappedEl.closest("a");if(link&&link.href){e.preventDefault();touchHandled=true;if(!isDesktop())MobileNav.close();window.location.href=link.href;}return;}touchHandled=true;e.preventDefault();if(!isDesktop())toggleDropdown();else this.handleDesktopTouch(item,dropdownMenu,state);}},{passive:false});item.addEventListener("click",(e)=>{if(touchHandled){e.preventDefault();touchHandled=false;return;}if(this.isNavigatingLink(e.target)){if(!isDesktop())MobileNav.close();return;}if(!isDesktop())e.preventDefault();});}else item.addEventListener("click",(e)=>{if(!isDesktop()){if(this.isNavigatingLink(e.target)){MobileNav.close();return;}e.preventDefault();toggleDropdown();}});},handleDesktopTouch(item,dropdownMenu,state){const isCurrentlyExpanded=item.classList.contains("expanded");if(isCurrentlyExpanded&&state.isTouchOpen){item.classList.remove("expanded");hideDropdownMenu(dropdownMenu);state.isTouchOpen=false;}else{this.closeAll();item.classList.add("expanded");showDropdownMenu(dropdownMenu);state.isTouchOpen=true;}},setupMouseEvents(item,state,showDropdown,hideDropdown){item.addEventListener("mouseenter",()=>{if(isDesktop()){state.isHovered=true;showDropdown();}});item.addEventListener("mouseleave",()=>{if(isDesktop()){state.isHovered=false;setTimeout(hideDropdown,TIMING.HOVER_DELAY);}});},setupFocusEvents(item,state,showDropdown,hideDropdown){item.addEventListener("focusin",()=>{state.isFocused=true;showDropdown();});item.addEventListener("focusout",()=>{state.isFocused=false;setTimeout(hideDropdown,TIMING.FOCUS_DELAY);});},setupResizeHandler(item,dropdownMenu,state){window.addEventListener("resize",()=>{if(!isDesktop()){item.classList.remove("expanded");hideDropdownMenu(dropdownMenu);state.isHovered=false;state.isFocused=false;state.isTouchOpen=false;}});},setupGlobalHandlers(){const eventType=isTouchDevice()?"touchstart":"click";document.addEventListener(eventType,(e)=>
26{const isOutside=!e.target.closest(".nav-primary-item");if(isOutside)this.closeAll();});document.addEventListener("keydown",(e)=>{if(e.key==="Escape")this.closeAll();});}};const MobileNav={close(){const header=document.querySelector(".site-header");const toggleButton=header?.querySelector(".nav-toggle button");if(header?.classList.contains("nav-expanded")){toggleButton?.classList.remove("expanded");header.classList.remove("nav-expanded");}},init(){const header=document.querySelector(".site-header");const toggleButton=header?.querySelector(".nav-toggle button");if(!header||!toggleButton)return;toggleButton.addEventListener("click",()=>{toggleButton.classList.toggle("expanded");header.classList.toggle("nav-expanded");});}};const HeaderSearch={init(){const toggle=document.getElementById("header-search-toggle");const searchBar=document.getElementById("header-search-bar");if(!toggle||!searchBar)return;toggle.addEventListener("click",(e)=>{e.stopPropagation();const isOpen=searchBar.classList.toggle("is-open");toggle.classList.toggle("is-open",isOpen);toggle.setAttribute("aria-expanded",String(isOpen));toggle.setAttribute("aria-label",isOpen?"Close search":"Open search");});document.addEventListener("click",(e)=>{const target=e.target;if(searchBar.classList.contains("is-open")&&!searchBar.contains(target)&&!toggle.contains(target)){searchBar.classList.remove("is-open");toggle.classList.remove("is-open");toggle.setAttribute("aria-expanded","false");toggle.setAttribute("aria-label","Open search");}});}};(function(Drupal,once){Drupal.behaviors.jamsHeaderExternalActionLinks={attach(context){once("jams-header-external-action-links",".nav-top-container a.nav-top-item-link[href]",context).forEach((link)=>{let resolved;try{resolved=new URL(link.href);}catch(e){return;}if(resolved.origin===window.location.origin){link.removeAttribute("target");link.removeAttribute("rel");return;}link.setAttribute("target","_blank");link.setAttribute("rel","noopener noreferrer");});}};})(Drupal,once);document.addEventListener("DOMContentLoaded",()=>{ScrollHeader.init();DropdownNav.init();MobileNav.init();HeaderSearch.init();});;
27(function($,Drupal){'use strict';var BIO_MOBILE_QUERY='(max-width: 1023px)';var BIO_COLLAPSED_HEIGHT=264;function decodeHtmlEntities(value){var decoded=value;for(var i=0;i<3;i++){var textarea=document.createElement('textarea');textarea.innerHTML=decoded;var next=textarea.value;if(next===decoded)break;decoded=next;}return decoded;}function normalizeEncodedBiographyHtml(content){if(!content)return;var rawHtml=(content.innerHTML||'').trim();var rawText=(content.textContent||'').trim();var source=rawHtml.indexOf('&')!==-1?rawHtml:rawText;if(!source)return;var decoded=decodeHtmlEntities(source);if(decoded.indexOf(',')!==-1)content.textContent=decoded.replace(/\s+,/g,',');if(!decoded||decoded===source)return;if(/^<\s*(p|div|strong|em|a|span|br|ul|ol|li|h[1-6])\b/i.test(decoded)){content.innerHTML=decoded;return;}if(/<\/?[a-z][^>]*>/i.test(decoded)){content.innerHTML=decoded;return;}if(decoded.indexOf('<')===-1&&decoded.indexOf('>')===-1)content.textContent=decoded;}function ensureBiographyExpandableStructure(wrap){if(!wrap)return null;wrap.setAttribute('data-biography-expandable-body','true');var content=wrap.querySelector('[data-biography-expandable-content]');if(!content){content=document.createElement('div');content.className='leadership-detail-hero__biography-content';content.setAttribute('data-biography-expandable-content','true');while(wrap.firstChild)content.appendChild(wrap.firstChild);wrap.appendChild(content);}normalizeEncodedBiographyHtml(content);var trigger=wrap.querySelector('[data-biography-expandable-trigger]');if(!trigger){trigger=document.createElement('button');trigger.type='button';trigger.className='leadership-detail-hero__biography-toggle';trigger.setAttribute('data-biography-expandable-trigger','true');trigger.setAttribute('aria-expanded','false');trigger.style.display='none';trigger.style.marginTop='12px';trigger.style.padding='0';trigger.style.border='0';trigger.style.background='transparent';trigger.style.textDecoration='none';trigger.style.cursor='pointer';var label=document.createElement('span');label.setAttribute('data-biography-expandable-label','true');label.textContent='View More';trigger.appendChild(label);var icon=document.createElement('span');icon.setAttribute('data-biography-expandable-icon','true');icon.setAttribute('aria-hidden','true');icon.innerHTML='&#9662;';icon.style.display='inline-block';icon.style.marginLeft='6px';icon.style.transition='transform 0.2s ease';icon.style.transform='rotate(0deg)';trigger.appendChild(icon);wrap.appendChild(trigger);}return wrap;}function applyCollapsedState(content,trigger){content.style.maxHeight=BIO_COLLAPSED_HEIGHT+'px';content.style.overflow='hidden';trigger.style.display='inline-flex';}function applyExpandedState(content,trigger){content.style.maxHeight='none';content.style.overflow='visible';trigger.style.display='inline-flex';}function resetExpandableStyles(content,trigger){content.style.maxHeight='none';content.style.overflow='visible';trigger.style.display='none';}function updateBiographyExpandableState(wrap){var content=wrap.querySelector('[data-biography-expandable-content]');var trigger=wrap.querySelector('[data-biography-expandable-trigger]');var label=wrap.querySelector('[data-biography-expandable-label]');var icon=wrap.querySelector('[data-biography-expandable-icon]');if(!content||!trigger||!label)return;var isMobile=window.matchMedia(BIO_MOBILE_QUERY).matches;wrap.classList.remove('is-collapsible');wrap.classList.remove('is-expanded');trigger.setAttribute('aria-expanded','false');label.textContent='View More';if(icon)icon.style.transform='rotate(0deg)';resetExpandableStyles(content,trigger);if(!isMobile)return;if(content.scrollHeight>BIO_COLLAPSED_HEIGHT+2){wrap.classList.add('is-collapsible');applyCollapsedState(content,trigger);}}function bindBiographyExpandableToggle(wrap){var content=wrap.querySelector('[data-biography-expandable-content]');var trigger=wrap.querySelector('[data-biography-expandable-trigger]');var label=wrap.querySelector('[data-biography-expandable-label]');var icon=wrap.querySelector('[data-biography-expandable-icon]');if(!content||!trigger||!label||wrap.dataset.biographyExpandableBound==='true')return;trigger.addEventListener('click',function(){if(!wrap.classList.contains('is-collapsible'))return;var isExpanded=wrap.classList.toggle('is-expanded');trigger.setAttribute('aria-expanded',String(isExpanded));label.textContent=isExpanded?'View Less':'View More';if(icon)icon.style.transform=isExpanded?'rotate(180deg)':'rotate(0deg)';if(isExpanded)applyExpandedState(content,trigger);else applyCollapsedState(content,trigger);});wrap.dataset.biographyExpandableBound='true';}function initBiographyExpandable(context){var wraps=once('leadership-bio-expandable','.leadership-detail-hero__biography',context);wraps.forEach(function(wrap){var target=ensureBiographyExpandableStructure(wrap);if(!target)return;bindBiographyExpandableToggle(target);updateBiographyExpandableState(target);});}function initLeadershipTextNormalization(context){var targets=once('leadership-text-normalization','.leadership-detail-hero__overview, .leadership-detail-hero__role, .leadership-detail-hero__quote, .location-detail-hero-banner__address, .location-detail-hero-banner__location-title, .location-detail-hero-banner__description, .location-cards__address, .event-detail-address__text, .event-detail-address__credit-text, .news-detail-hero__title, .news-detail-hero__description, .insight-detail-hero__title, .insight-detail-hero__summary',context);
27targets.forEach(function(target){normalizeEncodedBiographyHtml(target);});}Drupal.behaviors.jamsHandleInlineLinks={attach:function(context,settings){const inlineLinks=once('jams-handle-inline-links','.inline-linked',context);inlineLinks.forEach(function(link){link.addEventListener('click',function(e){e.preventDefault();let targetEle=document.getElementById(link.getAttribute('href').replace('#',''));targetEle.scrollIntoView({behavior:'smooth'});if(targetEle.tagName=="J-ACCORDION-PANEL-ITEM")targetEle.open=true;});});}};Drupal.behaviors.jamsLeadershipBiographyExpandable={attach:function(context){initLeadershipTextNormalization(context);initBiographyExpandable(context);}};})(jQuery,Drupal);;
28(function(global){"use strict";var _ce=global.customElements;if(_ce&&_ce.define){var _define=_ce.define.bind(_ce);_ce.define=function(name,constructor,options){if(_ce.get(name))return;_define(name,constructor,options);};}const ne=global,_e=ne.ShadowRoot&&(ne.ShadyCSS===void 0||ne.ShadyCSS.nativeShadow)&&"adoptedStyleSheets" in Document.prototype&&"replace" in CSSStyleSheet.prototype,Ce=Symbol(),Te=new WeakMap();let tt=class{constructor(e,o,r){if(this._$cssResult$=!0,r!==Ce)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o;}get styleSheet(){let e=this.o;const o=this.t;if(_e&&e===void 0){const r=o!==void 0&&o.length===1;r&&(e=Te.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet()).replaceSync(this.cssText),r&&Te.set(o,e));}return e;}toString(){return this.cssText;}};const w=(t)=>new tt(typeof t=="string"?t:t+"",void 0,Ce),Z=(t,...e)=>{const o=t.length===1?t[0]:e.reduce((r,i,s)=>r+((n)=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");})(i)+t[s+1],t[0]);return new tt(o,t,Ce);},ht=(t,e)=>{if(_e)t.adoptedStyleSheets=e.map((o)=>o instanceof CSSStyleSheet?o:o.styleSheet);else{for(const o of e){const r=document.createElement("style"),i=ne.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=o.cssText,t.appendChild(r);}}},ze=_e?(t)=>t:(t)=>t instanceof CSSStyleSheet?((e)=>{let o="";for(const r of e.cssRules)o+=r.cssText;return w(o);})(t):t;const {is:dt,defineProperty:pt,getOwnPropertyDescriptor:ut,getOwnPropertyNames:gt,getOwnPropertySymbols:vt,getPrototypeOf:mt}=Object,ue=global,Me=ue.trustedTypes,ft=Me?Me.emptyScript:"",bt=ue.reactiveElementPolyfillSupport,W=(t,e)=>t,ae={toAttribute(t,e){switch(e){case Boolean:t=t?ft:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t);}return t;},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t);}catch{o=null;}}return o;}},Oe=(t,e)=>!dt(t,e),Ie={attribute:!0,type:String,converter:ae,reflect:!1,useDefault:!1,hasChanged:Oe};Symbol.metadata??=Symbol("metadata");const _litMeta=(global.__jamsAdrLitPropertyMetadata__=global.__jamsAdrLitPropertyMetadata__??new WeakMap());let R=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()];}static createProperty(e,o=Ie){if(o.state&&(o.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((o=Object.create(o)).wrapped=!0),this.elementProperties.set(e,o),!o.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,o);i!==void 0&&pt(this.prototype,e,i);}}static getPropertyDescriptor(e,o,r){const {get:i,set:s}=ut(this.prototype,e)??{get(){return this[o];},set(n){this[o]=n;}};return {get:i,set(n){const h=i?.call(this);s?.call(this,n),this.requestUpdate(e,h,r);},configurable:!0,enumerable:!0};}static getPropertyOptions(e){return this.elementProperties.get(e)??Ie;}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;const e=mt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties);}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){const o=this.properties,r=[...gt(o
28),...vt(o)];for(const i of r)this.createProperty(i,o[i]);}const e=this[Symbol.metadata];if(e!==null){const o=_litMeta.get(e);if(o!==void 0){for(const [r,i] of o)this.elementProperties.set(r,i);}}this._$Eh=new Map();for(const [o,r] of this.elementProperties){const i=this._$Eu(o,r);i!==void 0&&this._$Eh.set(i,o);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(e){const o=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)o.unshift(ze(i));}else e!==void 0&&o.push(ze(e));return o;}static _$Eu(e,o){const r=o.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0;}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((e)=>this.enableUpdating=e),this._$AL=new Map(),this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e)=>e(this));}addController(e){(this._$EO??=new Set()).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.();}removeController(e){this._$EO?.delete(e);}_$E_(){const e=new Map(),o=this.constructor.elementProperties;for(const r of o.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e);}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ht(e,this.constructor.elementStyles),e;}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e)=>e.hostConnected?.());}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e)=>e.hostDisconnected?.());}attributeChangedCallback(e,o,r){this._$AK(e,r);}_$ET(e,o){const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const s=(r.converter?.toAttribute!==void 0?r.converter:ae).toAttribute(o,r.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null;}}_$AK(e,o){const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const s=r.getPropertyOptions(i),n=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:ae;this._$Em=i;const h=n.fromAttribute(o,s.type);this[i]=h??this._$Ej?.get(i)??h,this._$Em=null;}}requestUpdate(e,o,r,i=!1,s){if(e!==void 0){const n=this.constructor;if(i===!1&&(s=this[e]),r??=n.getPropertyOptions(e),!((r.hasChanged??Oe)(s,o)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,o,r);}this.isUpdatePending===!1&&(this._$ES=this._$EP());}C(e,o,{useDefault:r,reflect:i,wrapped:s},n){r&&!(this._$Ej??=new Map()).has(e)&&(this._$Ej.set(e,n??o??this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(o=void 0),this._$AL.set(e,o)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set()).add(e));}async _$EP(){this.isUpdatePending=!0;try{await this._$ES;}catch(o){Promise.reject(o);}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending;}scheduleUpdate(){return this.performUpdate();}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const [i,s] of this._$Ep)this[i]=s;this._$Ep=void 0;}const r=this.constructor.elementProperties;if(r.size>0){for(const [i,s] of r){const {wrapped:n}=s,h=this[i];n!==!0||this._$AL.has(i)||h===void 0||this.C(i,void 0,s,h);}}}let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$EO?.forEach((r)=>r.hostUpdate?.()),this.update(o)):this._$EM();}catch(r){throw e=!1,this._$EM(),r;}e&&this._$AE(o);}willUpdate(e){}_$AE(e){this._$EO?.forEach((o)=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e);}_$EM(){this._$AL=new Map(),this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete();}getUpdateComplete(){return this._$ES;}shouldUpdate(e){return !0;}update(e){this._$Eq&&=this._$Eq.forEach((o)=>this._$ET(o,this[o])),this._$EM();}updated(e){}firstUpdated(e){}};R.elementStyles=[],R.shadowRootOptions={mode:"open"},R[W("elementProperties")]=new Map(),R[W("finalized")]=new Map(),bt?.({ReactiveElement:R}),(ue.reactiveElementVersions??=[]).push("2.1.2");const Pe=global,Ue=(t)=>t,le=Pe.trustedTypes,Re=le?le.createPolicy("lit-html",{createHTML:(t)=>t}):void 0,ot="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+E,yt=`<${it}>
28`,T=document,Y=()=>T.createComment(""),K=(t)=>t===null||typeof t!="object"&&typeof t!="function",Se=Array.isArray,xt=(t)=>Se(t)||typeof t?.[Symbol.iterator]=="function",be=`[ 	
29\f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Be=/-->/g,Ne=/>/g,H=RegExp(`>|${be}(?:([^\\s"'>=/]+)(${be}*=${be}*(?:[^ 	
30\f\r"'\`<>=]|("|')|))|$)`,"g"),qe=/'/g,Ze=/"/g,rt=/^(?:script|style|textarea|title)$/i,wt=(t)=>(e,...o)=>({_$litType$:t,strings:e,values:o}),l=wt(1),z=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Je=new WeakMap(),V=T.createTreeWalker(T,129);function st(t,e){if(!Se(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Re!==void 0?Re.createHTML(e):e;}const jt=(t,e)=>{const o=t.length-1,r=[];let i,s=e===2?"<svg>":e===3?"<math>":"",n=J;for(let h=0;h<o;h++){const c=t[h];let g,f,u=-1,P=0;for(;P<c.length&&(n.lastIndex=P,f=n.exec(c),f!==null);)P=n.lastIndex,n===J?f[1]==="!--"?n=Be:f[1]!==void 0?n=Ne:f[2]!==void 0?(rt.test(f[2])&&(i=RegExp("</"+f[2],"g")),n=H):f[3]!==void 0&&(n=H):n===H?f[0]===">"?(n=i??J,u=-1):f[1]===void 0?u=-2:(u=n.lastIndex-f[2].length,g=f[1],n=f[3]===void 0?H:f[3]==='"'?Ze:qe):n===Ze||n===qe?n=H:n===Be||n===Ne?n=J:(n=H,i=void 0);const A=n===H&&t[h+1].startsWith("/>")?" ":"";s+=n===J?c+yt:u>=0?(r.push(g),c.slice(0,u)+ot+c.slice(u)+E+A):c+E+(u===-2?h:A);}return [st(t,s+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r];};class Q{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let s=0,n=0;const h=e.length-1,c=this.parts,[g,f]=jt(e,o);if(this.el=Q.createElement(g,r),V.currentNode=this.el.content,o===2||o===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes);}for(;(i=V.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes()){for(const u of i.getAttributeNames())if(u.endsWith(ot)){const P=f[n++],A=i.getAttribute(u).split(E),re=/([.?@])?(.*)/.exec(P);c.push({type:1,index:s,name:re[2],strings:A,ctor:re[1]==="."?_t:re[1]==="?"?Ct:re[1]==="@"?Ot:ge}),i.removeAttribute(u);}else u.startsWith(E)&&(c.push({type:6,index:s}),i.removeAttribute(u));}if(rt.test(i.tagName)){const u=i.textContent.split(E),P=u.length-1;if(P>0){i.textContent=le?le.emptyScript:"";for(let A=0;A<P;A++)i.append(u[A],Y()),V.nextNode(),c.push({type:2,index:++s});i.append(u[P],Y());}}}else{if(i.nodeType===8)if(i.data===it)c.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(E,u+1))!==-1;)c.push({type:7,index:s}),u+=E.length-1;}}s++;}}static createElement(e,o){const r=T.createElement("template");return r.innerHTML=e,r;}}function B(t,e,o=t,r){if(e===z)return e;let i=r!==void 0?o._$Co?.[r]:o._$Cl;const s=K(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,o,r)),r!==void 0?(o._$Co??=[])[r]=i:o._$Cl=i),i!==void 0&&(e=B(t,i._$AS(t,e.values),i,r)),e;}class $t{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o;}get parentNode(){return this._$AM.parentNode;}get _$AU(){return this._$AM._$AU;}u(e){const {el:{content:o},parts:r}=this._$AD,i=(e?.creationScope??T).importNode(o,!0);V.currentNode=i;let s=V.nextNode(),n=0,h=0,c=r[0];for(;c!==void 0;){if(n===c.index){let g;c.type===2?g=new ie(s,s.nextSibling,this,e):c.type===1?g=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(g=new Pt(s,this,e)),this._$AV.push(g),c=r[++h];}n!==c?.index&&(s=V.nextNode(),n++);}return V.currentNode=T,i;}p(e){let o=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,o),o+=r.strings.length-2):r._$AI(e[o])),o++;}}class ie{get _$AU(){return this._$AM?._$AU??this._$Cv;}constructor(e,o,r,i){this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=r,this.options=i,this._$Cv=i?.isConnected??!0;}get parentNode(){let e=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e;}get startNode(){return this._$AA;}get endNode(){return this._$AB;}_$AI(e,o=this){e=B(this,e,o),K(e)?e===v||e==null||e===""?(this._$AH!==v&&this._$AR(),this._$AH=v):e!==this._$AH&&e!==z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xt(e)?this.k(e):this._(e);}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB);}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e));}_(e){this._$AH!==v&&K(this._$AH)?this._$AA.nextSibling.data=e:this.T(T.createTextNode(e)),this._$AH=e;}$(e){const {values:o,_$litType$:r}=e,i=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Q.createElement(st(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===i)this._$AH.p(o);else{const s=new $t(i,this),n=s.u(this.options);s.p(o),this.T(n),this._$AH=s;}}_$AC(e){let o=Je.get(e.strings);return o===void 0&&Je.set(e.strings,o=new Q(e)),o;}k(e){Se(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const s of e)i===o.length?o.push(r=new ie(this.O(Y()),this.O(Y()),this,this.options)):r=o[i],r._$AI(s),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i);}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e!==this._$AB;){const r=Ue(e).nextSibling;Ue(e).remove(),e=r;}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e));}}class ge{get tagName(){return this.element.tagName;}get _$AU(){return this._$AM._$AU;}constructor(e,o,r,i,s){this.type=1,this._$AH=v,this._$AN=void 0,this.element=e,this.name=o,this._$AM=i,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String()),this.strings=r):this._$AH=v;}_$AI(e,o=this,r,i){const s=this.strings;let n=!1;if(s===void 0)e=B(this,e,o,0),n=!K(e)||e!==this._$AH&&e!==z,n&&(this._$AH=e);else{const h=e;let c,g;for(e=s[0],c=0;c<s.length-1;c++)g=B(this,h[r+c],o,c),g===z&&(g=this._$AH[c]),n||=!K(g)||g!==this._$AH[c],g===v?e=v:e!==v&&(e+=(g??"")+s[c+1]),this._$AH[c]=g;}n&&!i&&this.j(e);}j(e){e===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}}class _t extends ge{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===v?void 0:e;}}class Ct extends ge{constructor(){super(...arguments),this.type=4;}j(e){this.element.toggleAttribute(this.name,!!e&&e!==v);}}class Ot extends ge{constructor(e,o,r,i,s){super(e,o,r,i,s),this.type=5;}_$AI(e,o=this){if((e=B(this,e,o,0)??v)===z)return;const r=this._$AH,i=e===v&&r!==v||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==v&&(r===v||i);i&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e);}}class Pt{constructor(e,o,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=r;}get _$AU(){return this._$AM._$AU;}_$AI(e){B(this,e);}}const St=Pe.litHtmlPolyfillSupport;St?.(Q,ie),(Pe.litHtmlVersions??=[]).push("3.3.2");const kt=(t,e,o)=>{const r=o?.renderBefore??e;let i=r._$litPart$;if(i===void 0){const s=o?.renderBefore??null;r._$litPart$=i=new ie(e.insertBefore(Y(),s),s,void 0,o??{});}return i._$AI(t),i;};const ke=global;let d=class extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e;}update(e){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=kt(o,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return z;}};d._$litElement$=!0,d.finalized=!0,ke.litElementHydrateSupport?.({LitElement:d});const At=ke.litElementPolyfillSupport;At?.({LitElement:d});(ke.litElementVersions??=[]).push("4.2.2");const p=(t)=>(e,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(t,e);}):customElements.define(t,e);};const Et={attribute:!0,type:String,converter:ae,reflect:!1,hasChanged:Oe},Lt=(t=Et,e,o)=>{const {kind:r,metadata:i}=o;let s=_litMeta.get(i);if(s===void 0&&_litMeta.set(i,s=new Map()),r==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(o.name,t),r==="accessor"){const {name:n}=o;return {set(h){const c=e.get.call(this);e.set.call(this,h),this.requestUpdate(n,c,t,!0,h);},init(h){return h!==void 0&&this.C(n,void 0,t,h),h;}};}if(r==="setter"){const {name:n}=o;return function(h){const c=this[n];e.call(this,h),this.requestUpdate(n,c,t,!0,h);};}throw Error("Unsupported decorator location: "+r);};function a(t){return (e,o)=>typeof o=="object"?Lt(t,e,o):((r,i,s)=>{const n=i.hasOwnProperty(s);return i.constructor.createProperty(s,r),n?Object.getOwnPropertyDescriptor(i,s):void 0;})(t,e,o);}function b(t){return a({...t,state:!0,attribute:!1});}const Dt=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,o),o);function ve(t,e){return (o,r,i)=>{const s=(n)=>n.renderRoot?.querySelector(t)??null;return Dt(o,r,{get(){return s(this);}});};}const Ht=":host([fullWidth=true]){display:block;width:100%;box-sizing:border-box}.j-button{font-family:var(--font-proxima-nova);background-color:transparent;padding:12px 16px;font-size:16px;line-height:24px;text-decoration:none;display:inline-block;cursor:pointer;border:none;box-shadow:none;appearance:none;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;font-weight:400;text-align:center}@media screen and (max-width:767px){.j-button{font-size:15px;line-height:22px}}.j-button-bold{font-weight:700}.j-button-primary{color:var(--color-navy);border:1px solid var(--j-button-primary-border-color, var(--color-gold))}.j-button-primary:hover{background-color:var(--color-cobalt);color:var(--color-white);border-color:var(--j-button-primary-border-hover-color, var(--color-cobalt))}.j-button-secondary{background-color:var(--color-navy);color:var(--color-white);border:1px solid var(--color-navy)}.j-button-secondary:hover{background-color:var(--color-cobalt);color:var(--color-white);border:1px solid var(--color-cobalt)}.j-button-tertiary{background-color:var(--color-white);color:var(--color-navy);border:1px solid transparent}.j-button-tertiary:hover{background-color:var(--color-cobalt);color:var(--color-white);border:1px solid var(--color-cobalt)}.j-button-full-width{display:block;width:100%;box-sizing:border-box}.j-button-small{font-size:15px;line-height:22px}.j-button-medium{font-size:16px;line-height:24px}.j-button-dark{color:var(--color-white)}.j-button-light{color:var(--color-navy)}",M=(t)=>Object.keys(t).filter((e)=>
30t[e]).join(" ");var Vt=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,k=(t,e,o,r)=>{for(var i=r>1?void 0:r?Tt(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&Vt(e,o,i),i;};let _=class extends d{constructor(){super(...arguments),this.variant="primary",this.size="",this.bold="true",this.href="",this.target="",this.theme="light",this.type="button",this.fullWidth="false";}handleClick(t){if(!this.href)if(this.type==="submit"){let e=this.closest("form");if(e)t.preventDefault(),e.requestSubmit();else{t.preventDefault(),t.stopPropagation();return;}}else this.type==="button"&&t.preventDefault();}render(){const t={"j-button":!0,[`j-button-${this.variant}`]:!0,[`j-button-${this.size}`]:["medium","small"].includes(this.size),[`j-button-${this.theme}`]:this.variant==="primary","j-button-bold":this.bold==="true","j-button-full-width":this.fullWidth==="true"};return this.href?l`
31          <a
32            href="${this.href}"
33            target="${this.target}"
34            class=${M(t)}
35          >
36            <slot></slot>
37          </a>
38        `:l`
39          <button
40            class=${M(t)}
41            type="${this.type}"
42            @click=${this.handleClick}
43          >
44            <slot></slot>
45          </button>
46        `;}};_.styles=[w(Ht)];k([a({type:String})],_.prototype,"variant",2);k([a({type:String})],_.prototype,"size",2);k([a({type:String})],_.prototype,"bold",2);k([a({type:String})],_.prototype,"href",2);k([a({type:String})],_.prototype,"target",2);k([a({type:String})],_.prototype,"theme",2);k([a({type:String})],_.prototype,"type",2);k([a({type:String})],_.prototype,"fullWidth",2);_=k([p("j-button")],_);var zt=Object.getOwnPropertyDescriptor,Mt=(t,e,o,r)=>{for(var i=r>1?void 0:r?zt(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let xe=class extends d{render(){return l`
47      <svg
48        width="24"
49        height="24"
50        viewBox="0 0 24 24"
51        fill="none"
52        xmlns="http://www.w3.org/2000/svg"
53      >
54        <path
55          d="M6 9L12 15L18 9"
56          stroke="currentColor"
57          stroke-width="2"
58          stroke-linecap="round"
59          stroke-linejoin="round"
60        />
61      </svg>
62    `;}};xe.styles=Z`
63    :host {
64      display: inline-block;
65    }
66    svg {
67      display: block;
68      width: 100%;
69      height: 100%;
70    }
71  `;xe=Mt([p("j-icon-chevron-down")],xe);var It=Object.getOwnPropertyDescriptor,Ut=(t,e,o,r)=>{for(var i=r>1?void 0:r?It(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let we=class extends d{render(){return l`
72      <svg
73        width="18"
74        height="18"
75        viewBox="0 0 18 18"
76        fill="none"
77        xmlns="http://www.w3.org/2000/svg"
78      >
79        <circle
80          cx="8"
81          cy="8"
82          r="5"
83          stroke="currentColor"
84          stroke-width="2"
85        />
86        <path
87          d="M12.5 12.5L16 16"
88          stroke="currentColor"
89          stroke-width="2"
90          stroke-linecap="round"
91        />
92      </svg>
93    `;}};we.styles=Z`
94    :host {
95      display: inline-block;
96    }
97    svg {
98      display: block;
99      width: 100%;
100      height: 100%;
101    }
102  `;we=Ut([p("j-icon-search")],we);const Rt='@charset "UTF-8";:host{display:block;position:relative}.j-multi-select{position:relative;width:100%}.j-multi-select-trigger{display:flex;align-items:center;gap:var(--gutter);padding:12px var(--gutter);border:1px solid var(--color-gray);background-color:var(--color-white);cursor:pointer;width:100%;text-align:left;transition:border-color .2s ease,box-shadow .2s ease;font:inherit;color:inherit}.j-multi-select-trigger:hover{border-color:var(--color-navy)}.j-multi-select-trigger:focus-visible{outline:none;border-color:var(--color-navy);box-shadow:0 0 0 2px var(--color-light-blue)}.j-multi-select-trigger[aria-expanded=true]{border-color:var(--color-navy)}.j-multi-select-trigger[aria-expanded=true] .j-multi-select-chevron j-icon-chevron-down{transform:rotate(180deg)}.j-multi-select-label{flex:1;font-family:var(--font-proxima-nova);font-size:var(--body-base-size);font-weight:var(--body-base-weight);line-height:var(--body-base-line-height);color:var(--color-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.j-multi-select-label.has-selection{font-weight:var(--body-base-weight)}.j-multi-select-chevron{flex-shrink:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--color-navy)}.j-multi-select-chevron j-icon-chevron-down{width:24px;height:24px;transition:transform .25s ease}.j-multi-select-panel{display:none;position:absolute;top:calc(100% + 4px);left:0;width:100%;max-height:0;background:var(--color-white);border:1px solid var(--color-gray-200, var(--color-gray));
102box-shadow:var(--box-shadow, 0 4px 16px rgba(0, 0, 0, .12));z-index:99;flex-direction:column;overflow:hidden;opacity:0;transition:max-height .3s ease,opacity .2s ease}.j-multi-select.is-open .j-multi-select-panel{display:flex;max-height:520px;opacity:1}.j-multi-select-search{display:flex;align-items:center;gap:var(--gutter);padding:12px var(--gutter);background-color:var(--color-light-blue);flex-shrink:0;height:48px;box-sizing:border-box}.j-multi-select-search input{flex:1;border:none;background:transparent;font-family:var(--font-proxima-nova);font-size:var(--body-base-size);font-weight:var(--body-base-weight);line-height:var(--body-base-line-height);color:var(--color-navy);outline:none;padding:0}.j-multi-select-search input::placeholder{color:var(--color-gray-500, var(--color-gray))}.j-multi-select-search input:focus{outline:none}.j-multi-select-search-icon{flex-shrink:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--color-navy)}.j-multi-select-search-icon j-icon-search{width:18px;height:18px}.j-multi-select-options{overflow-y:auto;max-height:420px;padding:var(--gutter-s, 8px) 0;position:relative;scrollbar-width:thin;scrollbar-color:var(--color-navy) transparent}.j-multi-select-options::-webkit-scrollbar{width:6px}.j-multi-select-options::-webkit-scrollbar-track{background:transparent}.j-multi-select-options::-webkit-scrollbar-thumb{background-color:var(--color-navy);border-radius:3px}.j-multi-select-option{display:flex;align-items:center;gap:12px;padding:10px var(--gutter) 10px 20px;cursor:pointer;transition:background-color .15s ease;-webkit-user-select:none;user-select:none;box-sizing:border-box}.j-multi-select-option:hover{background-color:var(--color-light-gray)}.j-multi-select-option:focus-within{background-color:var(--color-blue-100, var(--color-light-gray))}.j-multi-select-option-heading{font-size:var(--heading-sm-size);font-weight:var(--heading-sm-weight);line-height:var(--heading-sm-line-height)}.j-multi-select-option-label{font-family:var(--font-proxima-nova);font-size:var(--body-base-size);font-weight:var(--body-base-weight);line-height:var(--body-base-line-height);color:var(--color-navy)}.j-multi-select-checkbox-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.j-multi-select-checkbox{width:18px;height:18px;flex-shrink:0;border:1.5px solid var(--color-navy);background:var(--color-white);display:flex;align-items:center;justify-content:center;transition:background-color .15s ease,border-color .15s ease;position:relative}.j-multi-select-checkbox:after{content:"";display:none;width:10px;height:6px;border-left:2px solid var(--color-white);border-bottom:2px solid var(--color-white);transform:rotate(-45deg);margin-top:-2px}.j-multi-select-checkbox-input:checked+.j-multi-select-checkbox{background:var(--color-navy);border-color:var(--color-navy)}.j-multi-select-checkbox-input:checked+.j-multi-select-checkbox:after{display:block}.j-multi-select-checkbox-input:focus-visible+.j-multi-select-checkbox{box-shadow:0 0 0 2px var(--color-light-blue)}.j-multi-select-radio-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.j-multi-select-radio-input:checked+.j-multi-select-radio{background:var(--color-navy);border-color:var(--color-navy)}.j-multi-select-radio-input:checked+.j-multi-select-radio:after{display:block}.j-multi-select-radio-input:focus-visible+.j-multi-select-radio{box-shadow:0 0 0 2px var(--color-light-blue)}.j-multi-select-radio{width:18px;height:18px;flex-shrink:0;border:1.5px solid var(--color-navy);background:var(--color-white);display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .15s ease,border-color .15s ease;position:relative}.j-multi-select-radio:after{content:"";display:none;border:4px solid var(--color-white);border-radius:50%}.j-multi-select-option-divider{height:1px;background-color:var(--color-gold);margin:4px 20px 4px var(--gutter)}::slotted(.j-multi-select-option){display:flex;align-items:center;gap:12px;padding:10px var(--gutter) 10px 20px;cursor:pointer;transition:background-color .15s ease;-webkit-user-select:none;user-select:none;box-sizing:border-box}::slotted(.j-multi-select-option:hover){background-color:var(--color-light-gray)}::slotted(.j-multi-select-option:focus-within){background-color:var(--color-blue-100, var(--color-light-gray))}::slotted(.j-multi-select-option-divider){height:1px;background-color:var(--color-gold);margin:4px 20px 4px var(--gutter);box-sizing:border-box}.j-multi-select-no-results{display:none;padding:var(--gutter) 20px;font-family:var(--font-proxima-nova);font-size:var(--body-sm-size);font-weight:var(--body-sm-weight);line-height:var(--body-sm-line-height);color:var(--color-gray-500, var(--color-gray));text-align:center}@media screen and (max-width:575px){.j-multi-select-option-label{font-size:15px}}';var Bt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,j=(t,e,o,r)=>{for(var i=r>1?void 0:r?Nt(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&Bt(e,o,i),i;};const U="j-multi-select-option-label",S="j-multi-select-option",ye="j-multi-select-option-divider",qt="j-multi-select-option-heading",se="j-multi-select-checkbox-input",F="j-multi-select-radio-input";let y=class extends d{constructor(){super(...arguments),this.label="",this.options="[]",this.name="",this.searchPlaceholder="Search",this.noResultsText="No results found",this.listboxAriaLabel="Select options",this.open=!1,this.searchQuery="",this.displayLabel="",this._boundCloseOnOutside=this._closeOnOutsideClick.bind(this),this._boundCloseOnEscape=this._closeOnEscape.bind(this),this._boundUpdateLabel=()=>{this._updateDisplayLabel(),this._dispatchChange();},this._selectedRadio=null,this._selectedCheckboxes=[];}get _optionsList(){try{const t=JSON.parse(this.options||"[]");return Array.isArray(t)?t:[];}catch{return [];}}get _hasDataOptions(){return this._optionsList.length>0;}connectedCallback(){super.connectedCallback(),this.displayLabel=this.label;}updated(t){t.has("label")&&!this.open&&(this.displayLabel=this.label),this._hasDataOptions&&t.has("options")&&(this._filterOptionsByQuery(),this._updateDisplayLabel());}firstUpdated(){this._filterOptionsByQuery(),this._updateDisplayLabel();}getSelectedItems(){return this._getSelectedItemsData();}_getSelectedItemsData(){if(this._hasDataOptions){const t=this.renderRoot.querySelector(".j-multi-select-options");
102if(!t)return [];const e=t.querySelectorAll(`.${se}:checked`),o=t.querySelector(`.${F}:checked`);if(o){const i=o.closest(`.${S}`)?.querySelector(`.${U}`);return [{value:o.value,label:i?.textContent?.trim()??o.name}];}return Array.from(e).map((r)=>{const s=r.closest(`.${S}`)?.querySelector(`.${U}`);return {value:r.value,label:s?.textContent?.trim()??r.value};});}return [];}_dispatchChange(){const t=this._getSelectedItemsData();this.dispatchEvent(new CustomEvent("j-multi-select-change",{bubbles:!0,detail:{selectedItems:t}}));}_resetRadio(t){t.checked=!1;}_resetCheckbox(t){Array.from(t).forEach((e)=>{e.checked=!1;});}_updateSelectedItems(){if(this._hasDataOptions){const t=this.renderRoot.querySelector(".j-multi-select-options");if(!t)return;const e=t.querySelector(`.${F}:checked`),o=t.querySelectorAll(`.${se}:checked`);this._selectedRadio=e||null,this._selectedCheckboxes=o.length>0?Array.from(o):[];}}_updateDisplayLabel(){if(this._hasDataOptions){const t=this.renderRoot.querySelector(".j-multi-select-options");if(!t)return;const e=this._selectedCheckboxes,o=this._selectedRadio,r=t.querySelector(`.${F}:checked`),i=t.querySelectorAll(`.${se}:checked`);if(o==null&&r&&r.checked)this.displayLabel=r.closest(`.${S}`)?.querySelector(`.${U}`)?.textContent?.trim()||this.label,this._resetCheckbox(e);else if(i.length===0)this.displayLabel=this.label;else if(i.length===1){const n=i[0]?.closest(`.${S}`)?.querySelector(`.${U}`);this.displayLabel=n?.textContent?.trim()||this.label,o&&this._resetRadio(o);}else this.displayLabel=`${this.label} (${i.length})`;t.querySelector(`.${F}`)&&this._updateSelectedItems();}}_filterOptionsByQuery(){const t=this.searchQuery.toLowerCase().trim();let e=0;if(this._hasDataOptions){const o=this.renderRoot.querySelector(".j-multi-select-options");if(!o)return;const r=o.querySelectorAll(`.${S}`),i=o.querySelectorAll(`.${ye}`);r.forEach((s)=>{const h=s.querySelector(`.${U}`)?.textContent?.toLowerCase()??"",c=!t||h.includes(t);s.style.display=c?"":"none",c&&e++;}),i.forEach((s)=>{const n=s.previousElementSibling,h=n?.classList.contains(S)&&n.style.display==="none";s.style.display=h?"none":"";}),this._toggleNoResults(e===0);return;}}_toggleNoResults(t){let e=this.renderRoot.querySelector(".j-multi-select-no-results");if(t){if(!e){e=document.createElement("div"),e.className="j-multi-select-no-results",e.setAttribute("role","status");const o=this.renderRoot.querySelector(".j-multi-select-options");o&&o.appendChild(e);}e.textContent=this.noResultsText,e.style.display="block";}else e&&(e.style.display="none");}_onSearchInput(t){const e=t.target;this.searchQuery=e.value,this._filterOptionsByQuery();}toggle(){this.open?this.close():this.openDropdown();}openDropdown(){this.open=!0,this.searchQuery="",this.searchInput&&(this.searchInput.value="",requestAnimationFrame(()=>this.searchInput?.focus())),this._filterOptionsByQuery(),setTimeout(()=>{this.open&&(document.addEventListener("click",this._boundCloseOnOutside,!0),document.addEventListener("keydown",this._boundCloseOnEscape));},0),this.dispatchEvent(new CustomEvent("j-multi-select-open",{bubbles:!0}));}close(){this.open=!1,this.searchQuery="",this.searchInput&&(this.searchInput.value=""),this._hasDataOptions&&this.renderRoot.querySelector(".j-multi-select-options")?.querySelectorAll(`.${S}, .${ye}`).forEach((e)=>{e.style.display="";}),this._toggleNoResults(!1),document.removeEventListener("click",this._boundCloseOnOutside,!0),document.removeEventListener("keydown",this._boundCloseOnEscape),this.dispatchEvent(new CustomEvent("j-multi-select-close",{bubbles:!0}));}_closeOnOutsideClick(t){const e=t.target;this.contains(e)||this.close();}_closeOnEscape(t){t.key==="Escape"&&this.close();}_onTriggerClick(t){t.preventDefault(),t.stopPropagation(),this.toggle();}render(){return l`
103      <div
104        class="j-multi-select ${this.open?"is-open":""}"
105        data-dropdown
106      >
107        <button
108          type="button"
109          class="j-multi-select-trigger"
110          aria-haspopup="listbox"
111          aria-expanded="${this.open}"
112          @click=${this._onTriggerClick}
113        >
114          <span class="j-multi-select-label ${this.displayLabel!==this.label?"has-selection":""}">
115            ${this.displayLabel||this.label}
116          </span>
117          <span class="j-multi-select-chevron" aria-hidden="true">
118            <j-icon-chevron-down></j-icon-chevron-down>
119          </span>
120        </button>
121        <div
122          class="j-multi-select-panel"
123          role="listbox"
124          aria-label="${this.listboxAriaLabel}"
125        >
126          <div class="j-multi-select-search">
127            <input
128              type="text"
129              class="j-multi-select-search-input"
130              placeholder="${this.searchPlaceholder}"
131              aria-label="${this.searchPlaceholder}"
132              autocomplete="off"
133              @input=${this._onSearchInput}
134            />
135            <span class="j-multi-select-search-icon" aria-hidden="true">
136              <j-icon-search></j-icon-search>
137            </span>
138          </div>
139          <div class="j-multi-select-options" @change=${this._boundUpdateLabel}>
140            ${this._hasDataOptions?this._optionsList.flatMap((t)=>[t.value?l`
141                    <label class="${S}" role="option">
142                      <input
143                        type="${t.type==="radio"?"radio":"checkbox"}"
144                        name="${this.name}"
145                        value="${t.value}"
146                        class="${t.type==="radio"?F:se}"
147                      />
148                      <span class="${t.type==="radio"?"j-multi-select-radio":"j-multi-select-checkbox"}"></span>
149                      <span class="${U}">${t.label}</span>
150                    </label>
151                  `:l`
152                    <label class="${S}">
153                      <span class="${qt}">${t.label}</span>
154                    </label>
155                  `,...t.dividerAfter?[l`<div class="${ye}"></div>`]:[]]):l``}
156          </div>
157        </div>
158      </div>
159    `;}};y.styles=[w(Rt)];j([a({type:String})],y.prototype,"label",2);j([a({type:String})],y.prototype,"options",2);j([a({type:String})],y.prototype,"name",2);j([a({type:String})],y.prototype,"searchPlaceholder",2);j([a({type:String})],y.prototype,"noResultsText",2);j([a({type:String})],y.prototype,"listboxAriaLabel",2);j([a({type:Boolean})],y.prototype,"open",2);j([b()],y.prototype,"searchQuery",2);j([b()],y.prototype,"displayLabel",2);j([ve(".j-multi-select-search-input")],y.prototype,"searchInput",2);j([b()],y.prototype,"_selectedRadio",2);j([b()],y.prototype,"_selectedCheckboxes",2);y=j([p("j-multi-select")],y);const Zt=".j-tag{display:inline-block;font-family:var(--font-proxima-nova);font-size:16px;line-height:24px;padding:8px;text-decoration:none;border:none;box-shadow:none;appearance:none;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none}@media screen and (max-width:767px){.j-tag{font-size:14px;line-height:18px}}.j-tag-primary{background-color:var(--color-light-blue);color:var(--color-navy)}.j-tag-primary:hover{background-color:var(--color-cobalt);color:var(--color-white)}.j-tag-small{font-size:14px;line-height:18px}.j-tag-medium{font-size:16px;line-height:24px}";var Jt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Ae=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ft(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&Jt(e,o,i),i;};let G=class extends d{constructor(){super(...arguments),this.variant="primary",this.size="medium";}render(){const t={"j-tag":!0,[`j-tag-${this.variant}`]:!0,[`j-tag-${this.size}`]:["small","medium"].includes(this.size)};return l`
160      <span class=${M(t)}>
161        <slot></slot>
162      </span>
163    `;}};G.styles=[w(Zt)];Ae([a({type:String})],G.prototype,"variant",2);Ae([a({type:String})],G.prototype,"size",2);G=Ae([p("j-tag")],G);const Wt=".j-text-link{font-family:var(--font-proxima-nova);font-size:16px;line-height:22px;color:var(--color-navy);text-decoration:none;font-weight:400;cursor:pointer;border:none;box-shadow:none;appearance:none;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none}@media screen and (max-width:767px){.j-text-link{font-size:14px;line-height:18px}}.j-text-link.j-text-link-underline{text-decoration:underline;text-decoration-style:solid;text-underline-offset:4px;text-decoration-thickness:3%}.j-text-link:hover{color:var(--color-cobalt)}.j-text-link:hover.j-text-link-underline{text-decoration:underline;text-decoration-style:solid;text-underline-offset:4px;text-decoration-thickness:3%}.j-text-link-small{font-size:14px;line-height:18px}.j-text-link-medium{font-size:16px;line-height:22px}.j-text-link-dark{color:var(--color-white)}.j-text-link-dark:hover{color:var(--color-cyan)}.j-text-link-light{color:var(--color-navy)}.j-text-link-light:hover{color:var(--color-cobalt)}.j-text-link-font-weight-normal{font-weight:400}.j-text-link-font-weight-bold{font-weight:700}.j-text-link-underline-false{text-decoration:none}";var Yt=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,L=(t,e,o,r)=>{for(var i=r>1?void 0:r?Kt(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&Yt(e,o,i),i;};let C=class extends d{constructor(){super(...arguments),this.href="",this.target="",this.size="",this.theme="light",this.fontWeight="normal",this.hoverUnderline="true",this.underline="false";}render(){const t={"j-text-link":!0,[`j-text-link-${this.size}`]:["medium","small"].includes(this.size),[`j-text-link-${this.theme}`]:!0,[`j-text-link-font-weight-${this.fontWeight}`]:!0,"j-text-link-hover-underline":this.hoverUnderline==="true","j-text-link-underline":this.underline==="true"};return l`
164      <a
165        href="${this.href}"
166        target="${this.target}"
167        class=${M(t)}
168      >
169        <slot></slot>
170      </a>
171    `;}};C.styles=[w(Wt)];L([a({type:String})],C.prototype,"href",2);L([a({type:String})],C.prototype,"target",2);L([a({type:String})],C.prototype,"size",2);L([a({type:String})],C.prototype,"theme",2);L([a({type:String})],C.prototype,"fontWeight",2);L([a({type:String})],C.prototype,"hoverUnderline",2);
171L([a({type:String})],C.prototype,"underline",2);C=L([p("j-text-link")],C);const Qt=".j-accordion{font-family:var(--font-proxima-nova);background-color:#051432eb;color:var(--color-white);padding:var(--gutter-l);max-width:625px}.j-accordion .j-accordion-divider{width:100%;height:1px;background-color:var(--color-gold);margin-bottom:var(--gutter-l);width:72px}.j-accordion ::slotted(h2){font-family:var(--heading-md-font)!important;font-size:var(--heading-md-size)!important;font-weight:var(--heading-md-weight)!important;line-height:var(--heading-md-line-height)!important;color:var(--color-white)!important}@media screen and (max-width:1023.98px){.j-accordion ::slotted(h2){font-size:var(--heading-base-size)!important;font-weight:var(--heading-base-weight)!important;line-height:var(--heading-base-line-height)!important}}.j-accordion ::slotted(.j-accordion-description){font-family:var(--body-base-font)!important;font-size:var(--body-base-size)!important;font-weight:var(--body-base-weight)!important;line-height:var(--body-base-line-height)!important;color:var(--color-white)!important;margin:var(--gutter-m) 0!important}@media screen and (max-width:1023.98px){.j-accordion ::slotted(.j-accordion-description){font-size:var(--body-sm-size)!important;font-weight:var(--body-sm-weight)!important;line-height:var(--body-sm-line-height)!important}}.j-accordion .j-accordion-items{display:flex;flex-direction:column;gap:var(--gutter);list-style:none;padding:0;margin:0}";var Gt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,Ee=(t,e,o,r)=>{for(var i=r>1?void 0:r?Xt(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&Gt(e,o,i),i;};let X=class extends d{constructor(){super(...arguments),this.description="",this.mobileTrans
171parent="false";}render(){const t={"j-accordion":!0,"j-accordion-transparent":this.mobileTransparent==="true"};return l`
172      <div class=${M(t)}>
173        <div class="j-accordion-divider"></div>
174        <slot name="heading"></slot>
175        <slot name="description"></slot>
176        <ul class="j-accordion-items">
177          <slot></slot>
178        </ul>
179      </div>
180    `;}};X.styles=[w(Qt)];Ee([a({type:String})],X.prototype,"description",2);Ee([a({type:String})],X.prototype,"mobileTransparent",2);X=Ee([p("j-accordion")],X);const eo=":host(:first-of-type) .j-accordion-item{border-top:1px solid var(--color-gray);padding-top:var(--gutter)}.j-accordion-item{display:flex;flex-direction:column;justify-content:space-between;border-bottom:1px solid var(--color-gray);padding-bottom:var(--gutter)}.j-accordion-details{width:100%}.j-accordion-item-title-wrapper{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;cursor:pointer;list-style:none}.j-accordion-item-title-wrapper::-webkit-details-marker{display:none}.j-accordion-item-title-wrapper::marker{display:none}::slotted(h3){font-family:var(--heading-base-font)!important;font-size:var(--heading-base-size)!important;font-weight:var(--heading-base-weight)!important;line-height:var(--heading-base-line-height)!important;color:var(--color-white)!important;margin:0!important;padding:0!important;flex:1!important}@media screen and (max-width:1023.98px){::slotted(h3){font-size:var(--heading-sm-size)!important;font-weight:var(--heading-sm-weight)!important;line-height:var(--heading-sm-line-height)!important}}j-icon-plus,j-icon-cross-outlined{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.j-accordion-item-icon{display:flex;justify-content:center;align-items:center;transition:transform .25s ease-in-out;flex-shrink:0;width:32px;height:32px}.j-accordion-item-content{font-size:16px;font-weight:400;color:var(--color-white);margin-top:var(--gutter-s, 8px);padding-bottom:var(--gutter-s, 8px);animation:fadeIn .25s ease-in-out}.j-accordion-details:not([open]) .j-accordion-item-content{display:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}";var to=Object.getOwnPropertyDescriptor,oo=(t,e,o,r)=>{for(var i=r>1?void 0:r?to(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let Fe=class extends d{render(){return l`
181      <svg
182        class="j-icon"
183        width="31"
184        height="31"
185        viewBox="0 0 31 31"
186        fill="none"
187        xmlns="http://www.w3.org/2000/svg"
188        aria-hidden="true"
189        focusable="false"
190      >
191        <rect x="0.5" y="0.5" width="30" height="30" rx="15" stroke="white" />
192        <path
193          fill-rule="evenodd"
194          clip-rule="evenodd"
195          d="M16 5H15V15H5V16H15V26H16V16H26V15H16V5Z"
196          fill="white"
197        />
198      </svg>
199    `;}};Fe=oo([p("j-icon-plus")],Fe);var io=Object.defineProperty,ro=Object.getOwnPropertyDescriptor,Le=(t,e,o,r)=>{for(var i=r>1?void 0:r?ro(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&io(e,o,i),i;};let ce=class extends d{constructor(){super(...arguments),this.width="31",this.height="31";}render(){return l`
200      <svg
201        width=${this.width}
202        height=${this.height}
203        viewBox="0 0 31 31"
204        fill="none"
205        xmlns="http://www.w3.org/2000/svg"
206        aria-hidden="true"
207        focusable="false"
208      >
209        <rect x="0.5" y="0.5" width="30" height="30" rx="15" stroke="currentColor" />
210        <path
211          fill-rule="evenodd"
212          clip-rule="evenodd"
213          d="M8.42905 7.72183L7.72195 8.42893L14.793 15.5L7.72195 22.5711L8.42905 23.2782L15.5001 16.2071L22.5712 23.2782L23.2783 22.5711L16.2072 15.5L23.2783 8.42893L22.5712 7.72183L15.5001 14.7929L8.42905 7.72183Z"
214          fill="currentColor"
215        />
216      </svg>
217    `;}};Le([a({type:String})],ce.prototype,"width",2);Le([a({type:String})],ce.prototype,"height",2);ce=Le([p("j-icon-cross-outlined")],ce);var so=Object.defineProperty,no=Object.getOwnPropertyDescriptor,me=(t,e,o,r)=>{for(var i=r>1?void 0:r?no(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&so(e,o,i),i;};let N=class extends d{constructor(){super(...arguments),this.open=!1,this.name="",this.isOpen=!1;}connectedCallback(){super.connectedCallback(),this.isOpen=this.open;}handleToggle(t){const e=t.target;this.isOpen=e.open;}render(){return l`
218      <li class="j-accordion-item">
219        <details 
220          class="j-accordion-details" 
221          ?open=${this.isOpen} 
222          name=${this.name||void 0}
223          @toggle=${this.handleToggle}>
224          <summary class="j-accordion-item-title-wrapper">
225            <slot name="heading"></slot>
226            <span class="j-accordion-item-icon" aria-hidden="true">
227              ${this.isOpen?l`<j-icon-cross-outlined></j-icon-cross-outlined>`:l`<j-icon-plus></j-icon-plus>`}
228            </span>
229          </summary>
230          <div class="j-accordion-item-content">
231            <slot></slot>
232          </div>
233        </details>
234      </li>
235    `;}};N.styles=[w(eo)];me([a({type:Boolean})],N.prototype,"open",2);me([a({type:String})],N.prototype,"name",2);me([b()],N.prototype,"isOpen",2);N=me([p("j-accordion-item")],N);var ao=Object.defineProperty,lo=Object.getOwnPropertyDescriptor,De=(t,e,o,r)=>{for(var i=r>1?void 0:r?lo(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&ao(e,o,i),i;};let ee=class extends d{constructor(){super(...arguments),this.size="24",this.color="currentColor";}render(){return l`
236     <svg
237        width=${this.size}
238        height=${this.size}
239        viewBox="0 0 24 24"
240        fill="none"
241        xmlns="http://www.w3.org/2000/svg"
242        aria-hidden="true"
243        focusable="false"
244        >
245        <path
246            d="M11.9999 11.2929L15.5354 7.75736L16.2425 8.46447L12.707 12L16.2425 15.5355L15.5354 16.2426L11.9999 12.7071L8.46432 16.2426L7.75721 15.5355L11.2927 12L7.75721 8.46447L8.46432 7.75736L11.9999 11.2929Z"
247            fill=${this.color}></path>
248        </svg>
249
250    `;}};ee.styles=Z`
251    :host {
252      display: inline-block;
253    }
254    svg {
255      display: block;
256      width: 100%;
257      height: 100%;
258    }
259  `;De([a({type:String})],ee.prototype,"size",2);De([a({type:String})],ee.prototype,"color",2);ee=De([p("j-icon-cross")],ee);var co=Object.getOwnPropertyDescriptor,ho=(t,e,o,r)=>{for(var i=r>1?void 0:r?co(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let We=class extends d{render(){return l`
260      <svg
261        width="5"
262        height="10"
263        viewBox="0 0 5 10"
264        fill="none"
265        xmlns="http://www.w3.org/2000/svg"
266      >
267        <path
268          d="M0.121157 5.32111C-0.0403856 5.14493 -0.0403856 4.85507 0.121157 4.67889L4.28999 0.13214C4.45154 -0.0440466 4.7173 -0.0440466 4.87884 0.13214C5.04039 0.308326 5.04039 0.598181 4.87884 0.774368L1.00443 5L4.87884 9.22563C5.04039 9.40182 5.04039 9.69167 4.87884 9.86786C4.7173 10.044 4.45154 10.044 4.28999 9.86786L0.121157 5.32111Z"
269          fill="currentColor"
270        />
271      </svg>
272    `;}};We=ho([p("j-icon-chevron-right")],We);var po=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,nt=(t,e,o,r)=>{for(var i=r>1?void 0:r?uo(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&po(e,o,i),i;};let he=class extends d{constructor(){super(...arguments),this.theme="light";}getThemeClass(){return this.theme==="light"?"j-icon-v-card-light":"j-icon-v-card-dark";}render(){return l`
273      <svg width="66" height="22" viewBox="0 0 66 22" fill="none" xmlns="http://www.w3.org/2000/svg">
274        <path d="M5.7 16H4.155L0.135 5.995H1.56L4.935 14.635L8.31 5.995H9.735L5.7 16ZM15.4451 16.18C12.6101 16.18 10.3451 14.08 10.3451 11.005C10.3451 7.93 12.6101 5.83 15.4451 5.83C17.2601 5.83 18.4901 6.685 19.2851 7.81L18.2351 8.395C17.6651 7.555 16.6301 6.94 15.4451 6.94C13.3001 6.94 11.6351 8.62 11.6351 11.005C11.6351 13.375 13.3001 15.07 15.4451 15.07C16.6301 15.07 17.6651 14.47 18.2351 13.615L19.3001 14.2C18.4601 15.34 17.2601 16.18 15.4451 16.18ZM26.4968 16H25.3718V15.175C24.7718 15.835 23.9468 16.18 22.9718 16.18C21.7418 16.18 20.4368 15.355 20.4368 13.78C20.4368 12.16 21.7418 11.395 22.9718 11.395C23.9618 11.395 24.7868 11.71 25.3718 12.385V11.08C25.3718 10.105 24.5918 9.55 23.5418 9.55C22.6718 9.55 21.9668 9.865 21.3218 10.555L20.7968 9.775C21.5768 8.965 22.5068 8.575 23.6918 8.575C25.2218 8.575 26.4968 9.265 26.4968 11.02V16ZM25.3718 14.47V13.105C24.9368 12.505 24.1718 12.205 23.3768 12.205C22.3268 12.205 21.5918 12.865 21.5918 13.795C21.5918 14.71 22.3268 15.37 23.3768 15.37C24.1718 15.37 24.9368 15.07 25.3718 14.47ZM29.877 16H28.752V8.755H29.877V9.925C30.462 9.16 31.302 8.605 32.292 8.605V9.76C32.157 9.73 32.022 9.715 31.842 9.715C31.152 9.715 30.207 10.285 29.877 10.87V16ZM40.0781 16H38.9531V14.92C38.4131 15.655 37.5281 16.18 36.5081 16.18C34.6181 16.18 33.2831 14.74 33.2831 12.385C33.2831 10.075 34.6031 8.575 36.5081 8.575C37.4831 8.575 38.3681 9.055 38.9531 9.85V5.995H40.0781V16ZM38.9531 14.035V10.75C38.5481 10.12 37.6781 9.58 36.7781 9.58C35.3231 9.58 34.4531 10.78 34.4531 12.385C34.4531 13.99 35.3231 15.175 36.7781 15.175C37.6781 15.175 38.5481 14.665 38.9531 14.035Z" fill="#071D49"/>
275        <path d="M52.5625 16H52V14.875H52.5625H64.9375H65.5V16H64.9375H52.5625ZM59.1473 12.4598L58.75 12.857L58.3527 12.4598L53.8527 7.95977L53.4555 7.5625L54.25 6.76797L54.6473 7.16523L58.1875 10.7055V7V0.8125V0.25H59.3125V0.8125V7V10.7055L62.8527 7.16523L63.25 6.76797L64.0445 7.5625L63.6473 7.95977L59.1473 12.4598Z" fill="#071D49"/>
276        </svg>
277    `;}};he.styles=Z`
278    :host {
279      display: inline-block;
280    }
281    svg {
282      display: block;
283      width: 100%;
284      height: 100%;
285    }
286    .j-icon-v-card-light {
287      color: var(--color-navy);
288      &:hover {
289        color: var(--color-cobalt);
290      }
291    }
292    .j-icon-v-card-dark {
293      color: var(--color-white);
294      &:hover {
295        color: var(--color-cyan);
296      }
297    }
298  `;nt([a({type:String})],he.prototype,"theme",2);he=nt([p("j-icon-v-card")],he);var go=Object.getOwnPropertyDescriptor,vo=(t,e,o,r)=>{for(var i=r>1?void 0:r?go(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let Ye=class extends d{render(){return l`
299      <svg
300        width="16"
301        height="16"
302        viewBox="0 0 16 16"
303        fill="none"
304        xmlns="http://www.w3.org/2000/svg"
305      >
306        <path
307          d="M3.58207 15.9992H0.264521V5.31705H3.58207V15.9992ZM1.92177 3.85984C1.41029 3.85581 0.921167 3.64969 0.561133 3.28645C0.201098 2.92321 -0.000618306 2.43233 1.42377e-06 1.92095C7.34808e-05 1.58375 0.088904 1.25251 0.257568 0.960509C0.426233 0.668505 0.668791 0.426022 0.960873 0.257421C1.25295 0.0888203 1.58427 3.99103e-05 1.92154 1.34528e-08C2.25881 -3.98834e-05 2.59015 0.0886619 2.88227 0.257194C3.17432 0.42586 3.41683 0.6684 3.58543 0.960444C3.75402 1.25249 3.84278 1.58375 3.84278 1.92095C3.8432 2.43214 3.64152 2.92279 3.28169 3.28596C2.92187 3.64914 2.43305 3.85542 1.92177 3.85984ZM15.9992 15.9992H12.6886V10.7991C12.6886 9.5599 12.6634 7.97083 10.9635 7.97083C9.23913 7.97083 8.97613 9.31678 8.97613 10.7069V15.9962H5.66011V5.31705H8.84197V6.77427H8.88847C9.20649 6.23008 9.66616 5.78229 10.2185 5.47857C10.7709 5.17486 11.3954 5.02659 12.0253 5.04954C15.3795 5.04954 16 7.25976 16 10.1315V16L15.9992 15.9992Z"
308          fill="#071D49"
309        />
310      </svg>
311    `;}};Ye=vo([p("j-icon-linkedin")],Ye);const mo=".j-breadcrumb{display:flex;flex-direction:row;gap:var(--gutter-s);overflow-x:auto;overflow-y:hidden}.j-breadcrumb::-webkit-scrollbar{display:none}.j-breadcrumb{-ms-overflow-style:none;scrollbar-width:none}.j-breadcrumb .j-breadcrumb-list{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gutter-s);list-style:none;padding:0;margin:0}.j-breadcrumb.j-breadcrumb-dark{--j-breadcrumb-link-color: var(--color-white);--j-breadcrumb-link-hover-color: var(--color-cyan)}.j-breadcrumb.j-breadcrumb-light{--j-breadcrumb-link-color: var(--color-navy);--j-breadcrumb-link-hover-color: var(--color-cobalt)}";var fo=Object.defineProperty,bo=Object.getOwnPropertyDescriptor,He=(t,e,o,r)=>{for(var i=r>1?void 0:r?bo(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&fo(e,o,i),i;};let te=class extends d{constructor(){super(...arguments),this.theme="light",this.ariaLabel="Breadcrumb";}getThemeClass(){return this.theme==="light"?"j-breadcrumb-light":"j-breadcrumb-dark";}render(){return l`
312      <nav
313        class="j-breadcrumb ${this.getThemeClass()}"
314        aria-label=${this.ariaLabel}
315      >
316        <ul role="list" class="j-breadcrumb-list">
317          <slot></slot>
318        </ul>
319      </nav>
320    `;}};te.styles=[w(mo)];He([a({type:String})],te.prototype,"theme",2);He([a({type:String,attribute:"aria-label"})],te.prototype,"ariaLabel",2);te=He([p("j-breadcrumb")],te);const yo=".j-breadcrumb-item{list-style:none;display:flex;flex-direction:row;gap:var(--gutter-s);padding:var(--gutter-xxs)}.j-breadcrumb-item j-icon-chevron-right{color:var(--j-breadcrumb-link-color, var(--color-navy))}.j-breadcrumb-item:hover:not(.active):not(.no-link) j-icon-chevron-right{color:var(--j-breadcrumb-link-hover-color, var(--color-cobalt))}.j-breadcrumb-item.no-link .j-breadcrumb-item-link{cursor:default}.j-breadcrumb-item.no-link .j-breadcrumb-item-link:hover{color:var(--j-breadcrumb-link-color, var(--color-navy));text-decoration:none}.j-breadcrumb-item-link{text-decoration:none;text-wrap:nowrap;color:var(--j-breadcrumb-link-color, var(--color-navy))}.j-breadcrumb-item-link:hover{color:var(--j-breadcrumb-link-hover-color, var(--color-cobalt));text-decoration:underline;text-decoration-style:solid;text-underline-offset:4px;text-decoration-thickness:3%}.j-breadcrumb-item-link:focus-visible{outline:1px solid var(--j-breadcrumb-link-color, var(--color-cyan))}";var xo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,Ve=(t,e,o,r)=>{for(var i=r>1?void 0:r?wo(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&xo(e,o,i),i;};let oe=class extends d{constructor(){super(...arguments),this.url="",this.text="";}render(){const e=!!this.url&&(this.url===window.location.pathname||this.url===window.location.href)||!this.url&&!!this.text,o=!!this.url&&!e;return l`<li
321      class="j-breadcrumb-item ${e?"active":""} ${o?"":"no-link"}"
322    >
323      <j-icon-chevron-right aria-hidden="true"></j-icon-chevron-right>
324      ${o?l`<a href="${this.url}" class="j-breadcrumb-item-link"
325            >${this.text}</a
326          >`:l`<span
327            class="j-breadcrumb-item-link ${e?"active":""}"
328            aria-current=${e?"page":void 0}
329            >${this.text}</span
330          >`}
331    </li>`;}};oe.styles=[w(yo)];Ve([a({type:String})],oe.prototype,"url",2);Ve([a({type:String})],oe.prototype,"text",2);oe=Ve([p("j-breadcrumb-item")],oe);var jo=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,at=(t,e,o,r)=>{for(var i=r>1?void 0:r?$o(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&jo(e,o,i),i;};let de=class extends d{constructor(){super(...arguments),this.theme="light";}getThemeClass(){return this.theme==="light"?"j-icon-pdf-light":"j-icon-pdf-dark";}render(){return l`
332      <svg class="${this.getThemeClass()}"
333        width="20"
334        height="20"
335        viewBox="0 0 20 20"
336        fill="none"
337        xmlns="http://www.w3.org/2000/svg"
338      >
339        <rect
340          x="0"
341          y="0"
342          width="20"
343          height="20"
344          fill="transparent"
345          pointer-events="all"
346          aria-hidden="true"
347        />
348        <path
349          pointer-events="none"
350          d="M14.1935 7.5V11.875H15.4839V5.9375L9.35484 0H1.29032H0V1.25V18.75V20H1.29032H4.51613V18.75H1.29032V1.25H7.74194V6.875V7.5H8.3871H14.1935ZM13.9798 6.25H9.03226V1.45703L13.9798 6.25ZM7.09677 13.75H6.45161V14.375V17.5V20H7.74194V18.125H8.3871C9.63306 18.125 10.6452 17.1445 10.6452 15.9375C10.6452 14.7305 9.63306 13.75 8.3871 13.75H7.09677ZM8.3871 16.875H7.74194V15H8.3871C8.92339 15 9.35484 15.418 9.35484 15.9375C9.35484 16.457 8.92339 16.875 8.3871 16.875ZM12.2581 13.75H11.6129V14.375V19.375V20H12.2581H13.5484C14.6169 20 15.4839 19.1602 15.4839 18.125V15.625C15.4839 14.5898 14.6169 13.75 13.5484 13.75H12.2581ZM13.5484 18.75H12.9032V15H13.5484C13.9032 15 14.1935 15.2812 14.1935 15.625V18.125C14.1935 18.4688 13.9032 18.75 13.5484 18.75ZM16.7742 13.75V14.375V16.875V19.375V20H18.0645V19.375V17.5H19.3548H20V16.25H19.3548H18.0645V15H19.3548H20V13.75H19.3548H17.4194H16.7742Z"
351          fill="currentColor"
352        />
353      </svg>
354    `;}};de.styles=Z`
355    .j-icon-pdf-light {
356      color: var(--color-navy);
357      &:hover {
358        color: var(--color-cobalt);
359      }
360    }
361    .j-icon-pdf-dark {
362      color: var(--color-white);
363      &:hover {
364        color: var(--color-cyan);
365      }
366    }
367  `;at([a({type:String})],de.prototype,"theme",2);de=at([p("j-icon-pdf")],de);var _o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,lt=(t,e,o,r)=>{for(var i=r>1?void 0:r?Co(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&_o(e,o,i),i;};let pe=class extends d{constructor(){super(...arguments),this.theme="light";}getThemeClass(){return this.theme==="light"?"j-icon-share-light":"j-icon-share-dark";}render(){return l`
368      <svg class="${this.getThemeClass()}"
369        width="20"
370        height="20"
371        viewBox="0 0 20 20"
372        fill="none"
373        xmlns="http://www.w3.org/2000/svg"
374      >
375        <path
376          d="M20 3.57509C20 5.54787 18.4018 7.14573 16.4286 7.14573C15.4062 7.14573 14.4821 6.71725 13.8348 6.0299L7.09375 9.39969C7.12946 9.59607 7.14286 9.79692 7.14286 10.0022C7.14286 10.2075 7.125 10.4084 7.09375 10.6048L13.8348 13.9746C14.4866 13.2872 15.4062 12.8587 16.4286 12.8587C18.4018 12.8587 20 14.4566 20 16.4294C20 18.4021 18.4018 20 16.4286 20C14.4554 20 12.8571 18.4021 12.8571 16.4294C12.8571 15.9964 12.933 15.5813 13.0759 15.193L6.57143 11.9438C5.93304 12.9257 4.83036 13.5729 3.57143 13.5729C1.59821 13.5729 0 11.975 0 10.0022C0 8.02946 1.59821 6.4316 3.57143 6.4316C4.83036 6.4316 5.93304 7.07878 6.57143 8.0607L13.0759 4.80696C12.933 4.42312 12.8571 4.00803 12.8571 3.57063C12.8571 1.59786 14.4554 0 16.4286 0C18.4018 0 20 1.59786 20 3.57063V3.57509ZM3.57143 12.1446C4.13975 12.1446 4.68479 11.9189 5.08666 11.5171C5.48852 11.1153 5.71429 10.5704 5.71429 10.0022C5.71429 9.43404 5.48852 8.88911 5.08666 8.48734C4.68479 8.08557 4.13975 7.85985 3.57143 7.85985C3.00311 7.85985 2.45806 8.08557 2.0562 8.48734C1.65434 8.88911 1.42857 9.43404 1.42857 10.0022C1.42857 10.5704 1.65434 11.1153 2.0562 11.5171C2.45806 11.9189 3.00311 12.1446 3.57143 12.1446ZM18.5714 3.57509C18.5714 3.0069 18.3457 2.46198 17.9438 2.0602C17.5419 1.65843 16.9969 1.43272 16.4286 1.43272C15.8603 1.43272 15.3152 1.65843 14.9133 2.0602C14.5115 2.46198 14.2857 3.0069 14.2857 3.57509C14.2857 4.14329 14.5115 4.68821 14.9133 5.08999C15.3152 5.49176 15.8603 5.71747 16.4286 5.71747C16.9969 5.71747 17.5419 5.49176 17.9438 5.08999C18.3457 4.68821 18.5714 4.14329 18.5714 3.57509ZM16.4286 18.5717C16.71 18.5717 16.9886 18.5163 17.2486 18.4087C17.5086 18.301 17.7448 18.1432 17.9438 17.9443C18.1428 17.7453 18.3006 17.5091 18.4083 17.2492C18.516 16.9893 18.5714 16.7107 18.5714 16.4294C18.5714 16.148 18.516 15.8694 18.4083 15.6095C18.3006 15.3496 18.1428 15.1134 17.9438 14.9145C17.7448 14.7155 17.5086 14.5577 17.2486 14.4501C16.9886 14.3424 16.71 14.287 16.4286 14.287C16.1472 14.287 15.8685 14.3424 15.6085 14.4501C15.3486 14.5577 15.1123 14.7155 14.9133 14.9145C14.7144 15.1134 14.5565 15.3496 14.4488 15.6095C14.3411 15.8694 14.2857 16.148 14.2857 16.4294C14.2857 16.7107 14.3411 16.9893 14.4488 17.2492C14.5565 17.5091 14.7144 17.7453 14.9133 17.9443C15.1123 18.1432 15.3486 18.301 15.6085 18.4087C15.8685 18.5163 16.1472 18.5717 16.4286 18.5717Z"
377          fill="currentColor"
378        />
379      </svg>
380    `;}};pe.styles=Z`
381    .j-icon-share-light {
382      color: var(--color-navy);
383      &:hover {
384        color: var(--color-cobalt);
385      }
386    }
387    .j-icon-share-dark {
388      color: var(--color-white);
389      &:hover {
390        color: var(--color-cyan);
391      }
392    }
393  `;lt([a({type:String})],pe.prototype,"theme",2);pe=lt([p("j-icon-share")],pe);var Oo=Object.getOwnPropertyDescriptor,Po=(t,e,o,r)=>{for(var i=r>1?void 0:r?Oo(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let Ke=class extends d{render(){return l`
394      <svg
395        width="16"
396        height="14"
397        viewBox="0 0 16 14"
398        fill="none"
399        xmlns="http://www.w3.org/2000/svg"
400      >
401        <path
402          d="M2.7822 1.346H4.20176L12.7332 12.58H11.4114L2.7822 1.346ZM12.2497 0L8.31848 4.47267L4.92158 0H0L5.87845 7.656L0.304 14H2.69381L6.99334 9.10667L10.7558 14H15.5556L9.424 5.93L14.6362 0H12.2497Z"
403          fill="#071D49"
404        />
405      </svg>
406    `;}};Ke=Po([p("j-icon-x")],Ke);var So=Object.getOwnPropertyDescriptor,ko=(t,e,o,r)=>{for(var i=r>1?void 0:r?So(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let Qe=class extends d{render(){return l`
407      <svg
408        width="10"
409        height="16"
410        viewBox="0 0 10 16"
411        fill="none"
412        xmlns="http://www.w3.org/2000/svg"
413      >
414        <path
415          d="M2.13918 9.35312V16H5.89896V9.35312H8.70259L9.286 6.29688H5.89896V5.21562C5.89896 3.6 6.55692 2.98125 8.25531 2.98125C8.78362 2.98125 9.20821 2.99375 9.45455 3.01875V0.246875C8.99106 0.125 7.85664 0 7.20192 0C3.73709 0 2.13918 1.57812 2.13918 4.98125V6.29688H0V9.35312H2.13918Z"
416          fill="#071D49"
417        />
418      </svg>
419    `;}};Qe=ko([p("j-icon-facebook")],Qe);var Ao=Object.getOwnPropertyDescriptor,Eo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ao(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let Ge=class extends d{render(){return l`
420      <svg
421        width="19"
422        height="14"
423        viewBox="0 0 19 14"
424        fill="none"
425        xmlns="http://www.w3.org/2000/svg"
426      >
427        <path
428          d="M2.29688 1.75C1.98105 1.75 1.72266 2.0125 1.72266 2.33333V3.13906L7.91345 8.30156C8.65635 8.92135 9.72224 8.92135 10.4651 8.30156L16.6523 3.13906V2.33333C16.6523 2.0125 16.3939 1.75 16.0781 1.75H2.29688ZM1.72266 5.40312V11.6667C1.72266 11.9875 1.98105 12.25 2.29688 12.25H16.0781C16.3939 12.25 16.6523 11.9875 16.6523 11.6667V5.40312L11.5562 9.65417C10.178 10.8026 8.19338 10.8026 6.81885 9.65417L1.72266 5.40312ZM0 2.33333C0 1.04635 1.03 0 2.29688 0H16.0781C17.345 0 18.375 1.04635 18.375 2.33333V11.6667C18.375 12.9536 17.345 14 16.0781 14H2.29688C1.03 14 0 12.9536 0 11.6667V2.33333Z"
429          fill="#071D49"
430        />
431      </svg>
432    `;}};Ge=Eo([p("j-icon-email")],Ge);const Lo=".j-share{display:flex;flex-direction:row;gap:var(--gutter);position:relative;width:fit-content;cursor:pointer;align-items:center;justify-content:center}.j-share-links{display:none;position:absolute;top:40%;right:140%;background-color:var(--color-white);padding:var(--gutter);
432box-shadow:var(--box-shadow);z-index:1000;flex-direction:row;gap:var(--gutter);transform:translateY(-50%) translate(4px);background:var(--color-light-blue);border-radius:var(--border-radius);align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .3s ease,transform .3s ease,display .3s ease}.j-share-links.active{opacity:1;display:flex;pointer-events:auto;transform:translateY(-50%) translate(0)}.j-share-links a,.j-share-links button{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border:none;background:none;padding:0;cursor:pointer}";var Do=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,D=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ho(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&Do(e,o,i),i;};let O=class extends d{constructor(){super(...arguments),this.isOpen=!1,this.title="",this.linkedinUrl="",this.xUrl="",this.facebookUrl="",this.emailUrl="",this.theme="light",this.boundHandleClickOutside=this.handleClickOutside.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this),this.boundHandleFocusOut=this.handleFocusOut.bind(this);}resolveShareUrl(t){return t?`${window.location.origin}${t}`:encodeURIComponent(window.location.href);}generateDefaultUrls(){const t=encodeURIComponent(this.title||document.title);this.linkedinUrl=`https://www.linkedin.com/shareArticle?mini=true&url=${this.resolveShareUrl(this.linkedinUrl)}`,this.xUrl=`https://x.com/share?url=${this.resolveShareUrl(this.xUrl)}`,this.facebookUrl=`https://www.facebook.com/sharer/sharer.php?u=${this.resolveShareUrl(this.facebookUrl)}`,this.emailUrl=`mailto:?subject=${t}&body=${this.resolveShareUrl(this.emailUrl)}`;}connectedCallback(){super.connectedCallback(),this.generateDefaultUrls(),document.addEventListener("click",this.boundHandleClickOutside),this.addEventListener("keydown",this.boundHandleKeyDown),this.addEventListener("focusout",this.boundHandleFocusOut);}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.boundHandleClickOutside),this.removeEventListener("keydown",this.boundHandleKeyDown),this.removeEventListener("focusout",this.boundHandleFocusOut);}handleClickOutside(t){this.contains(t.target)||(this.isOpen=!1);}handleClick(t){t.preventDefault(),t.stopPropagation(),this.isOpen=!this.isOpen;}handleLinksClick(t){t.stopPropagation();}handleLinkKeyDown(t){if(t.key==="Enter"){t.stopPropagation();const e=t.target;e&&e.href&&e.click();}}handleKeyDown(t){t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.isOpen=!this.isOpen),t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),this.isOpen=!1);}handleFocusOut(t){const e=t.relatedTarget;(!e||!this.contains(e))&&(this.isOpen=!1);}render(){return l`
433      <div
434        class="j-share"
435        @click=${this.handleClick}
436        @keydown=${this.handleKeyDown}
437        role="button"
438        tabindex="0"
439        aria-label="Share"
440        aria-expanded="${this.isOpen}"
441      >
442        <j-icon-share theme=${this.theme}></j-icon-share>
443        <div
444          class="j-share-links ${this.isOpen?"active":""}"
445          @click=${this.handleLinksClick}
446        >
447          <a
448            href=${this.emailUrl}
449            aria-label="Share via email"
450            @keydown=${this.handleLinkKeyDown}
451          >
452            <j-icon-email></j-icon-email>
453          </a>
454          <a
455            href=${this.linkedinUrl}
456            target="_blank"
457            aria-label="Share on LinkedIn"
458            @keydown=${this.handleLinkKeyDown}
459          >
460            <j-icon-linkedin></j-icon-linkedin>
461          </a>
462          <a
463            href=${this.xUrl}
464            target="_blank"
465            aria-label="Share on X"
466            @keydown=${this.handleLinkKeyDown}
467          >
468            <j-icon-x></j-icon-x>
469          </a>
470          <a
471            href=${this.facebookUrl}
472            target="_blank"
473            aria-label="Share on Facebook"
474            @keydown=${this.handleLinkKeyDown}
475          >
476            <j-icon-facebook></j-icon-facebook>
477          </a>
478        </div>
479      </div>
480    `;}};O.styles=[w(Lo)];D([b()],O.prototype,"isOpen",2);D([a({type:String})],O.prototype,"title",2);D([a({type:String})],O.prototype,"linkedinUrl",2);D([a({type:String})],O.prototype,"xUrl",2);D([a({type:String})],O.prototype,"facebookUrl",2);D([a({type:String})],O.prototype,"emailUrl",2);D([a({type:String})],O.prototype,"theme",2);O=D([p("j-share")],O);const Vo=".j-page-tool{display:flex;justify-content:space-between;align-items:center;flex-direction:row;gap:var(--gutter)}.j-page-tool-actions{display:flex;flex-direction:row;gap:var(--gutter)}.j-page-tool-actions j-icon-pdf,.j-page-tool-actions j-share{cursor:pointer}";var To=Object.getOwnPropertyDescriptor,zo=(t,e,o,r)=>{for(var i=r>1?void 0:r?To(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let je=class extends d{render(){return l`
481      <div class="j-page-tool">
482        <div class="j-page-tool-actions">
483          <j-share  role="button" tabindex="0" aria-label="Share"></j-share>
484          <j-icon-pdf role="button" tabindex="0" aria-label="PDF"></j-icon-pdf>
485        </div>
486      </div>
487    `;}};je.styles=[w(Vo)];je=zo([p("j-page-tool")],je);const Mo={ATTRIBUTE:1},Io=(t)=>(...e)=>({_$litDirective$:t,values:e});class Uo{constructor(e){}get _$AU(){return this._$AM._$AU;}_$AT(e,o,r){this._$Ct=e,this._$AM=o,this._$Ci=r;}_$AS(e,o){return this.update(e,o);}update(e,o){return this.render(...o);}}const Ro=Io(class extends Uo{constructor(t){if(super(t),t.type!==Mo.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");}render(t){return " "+Object.keys(t).filter((e)=>
487t[e]).join(" ")+" ";}update(t,[e]){if(this.st===void 0){this.st=new Set(),t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((r)=>r!=="")));for(const r in e)e[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(e);}const o=t.element.classList;for(const r of this.st)r in e||(o.remove(r),this.st.delete(r));for(const r in e){const i=!!e[r];i===this.st.has(r)||this.nt?.has(r)||(i?(o.add(r),this.st.add(r)):(o.remove(r),this.st.delete(r)));}return z;}}),Bo=":host{position:fixed;inset:0;z-index:10000}:host([hidden]){display:none}.j-video-modal{pointer-events:auto;position:absolute;box-sizing:border-box;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:#000000bf;margin-top:0}.j-video-modal[hidden]{display:none}.j-video-modal-overlay{position:absolute;inset:0;cursor:pointer}.j-video-modal-content{position:relative;width:min(960px,100%);aspect-ratio:16/9;background:#000;z-index:1}.j-video-modal-close{position:absolute;top:0;right:0;z-index:10002;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;color:var(--color-white, #fff);cursor:pointer;transition:background-color .2s;transform:translateY(-100%);width:36px;height:36px}.j-video-modal-video-wrapper{position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;overflow:hidden;padding-top:0}.j-video-modal-player-host{width:100%;height:100%;border:0;display:block}.j-video-modal-video-overlay{position:absolute;inset:0;background:#000;display:flex;align-items:center;justify-content:center;z-index:2;opacity:0;pointer-events:none;transition:opacity .2s ease}.j-video-modal-video-overlay.is-visible{opacity:1;pointer-events:auto}.j-video-modal-play-btn{min-width:98px;height:40px;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:#ffffff1f;color:#fff;cursor:pointer;padding:0 16px}@media screen and (max-width:768px){.j-video-modal{padding:16px}}";var No=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,I=(t,e,o,r)=>{for(var i=r>1?void 0:r?qo(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&No(e,o,i),i;};let m=class extends d{constructor(){super(...arguments),this.videoId="",this.isOpen=!1,this.activeVideoId="",this.pauseOverlayVisible=!1,this.durationSeconds=null,this.pauseProgressPercent=null,this.player=null,this.pauseOverlayTimer=null,this.videoWasPaused=!1,this.lastOpenKey="",this.lastOpenAt=0,this.handleOpenModal=(t)=>{const e=t,o=e.detail?.videoId||this.videoId;o&&this.isTargetModal(e.detail?.trigger)&&(this.lastOpenKey===o&&Date.now()-this.lastOpenAt<300||(this.lastOpenKey=o,this.lastOpenAt=Date.now(),this.activeVideoId=o,this.durationSeconds=null,this.pauseProgressPercent=null,this.videoWasPaused=!1,this.isOpen=!0,this.clearPauseOverlayTimer(),this.setVideoOverlayVisible(!1),document.body.classList.add("modal-open"),this.openModalWithPlayer(o)));},this.handleCloseModal=()=>{this.isOpen&&this.closeModal();},this.handleKeyDown=(t)=>{t.key==="Escape"&&this.isOpen&&this.closeModal();},this.handleOverlayClick=(t)=>{t.target===t.currentTarget&&this.closeModal();},this.handleCloseClick=()=>{this.closeModal();},this.handlePlayClick=()=>{this.player?.playVideo();};}static loadYouTubeApi(){return window.YT?.Player?Promise.resolve(window.YT):(m.ytApiPromise||(m.ytApiPromise=new Promise((t)=>{const e=window.onYouTubeIframeAPIReady;if(window.onYouTubeIframeAPIReady=()=>{typeof e=="function"&&e(),t(window.YT);},document.querySelector("script[src='https://www.youtube.com/iframe_api']"))return;const r=document.createElement("script");r.src="https://www.youtube.com/iframe_api",r.async=!0,document.head.appendChild(r);})),m.ytApiPromise);}setVideoOverlayVisible(t){this.pauseOverlayVisible=t;}clearPauseOverlayTimer(){this.pauseOverlayTimer&&(clearTimeout(this.pauseOverlayTimer),this.pauseOverlayTimer=null);}updateDurationFromPlayer(t){const e=t.getDuration();typeof e!="number"||!Number.isFinite(e)||e<=0||this.durationSeconds!==e&&(this.durationSeconds=e,this.dispatchEvent(new CustomEvent("video-duration-change",{detail:{durationSeconds:e},bubbles:!0,composed:!0})));}resolveDurationSeconds(t){const e=t.getDuration();if(typeof e=="number"&&Number.isFinite(e)&&e>0)return e;const o=this.durationSeconds;return typeof o=="number"&&o>0?o:0;}static progressPercentFromTimes(t,e){const o=t/e*100,r=Math.min(100,Math.max(0,o));return Math.round(r*1e3)/1e3;}emitPauseProgress(t){const e=t.getCurrentTime(),o=this.resolveDurationSeconds(t);if(!Number.isFinite(e)||o<=0)return;const r=m.progressPercentFromTimes(e,o);this.pauseProgressPercent=r,this.dispatchEvent(new CustomEvent("video-pause",{detail:{progressPercent:r,currentTimeSeconds:e,durationSeconds:o},bubbles:!0,composed:!0}));}emitResumeProgress(t){const e=t.getCurrentTime(),o=this.resolveDurationSeconds(t);if(!Number.isFinite(e)||o<=0)return;const r=m.progressPercentFromTimes(e,o);this.dispatchEvent(new CustomEvent("video-resume",{detail:{progressPercent:r,currentTimeSeconds:e,durationSeconds:o},bubbles:!0,composed:!0}));}handleYouTubeState(t,e){const o=window.YT?.PlayerState;if(o){if(t===o.PLAYING&&this.videoWasPaused&&(this.emitResumeProgress(e),this.videoWasPaused=!1),t===o.PLAYING||t===o.BUFFERING||t===o.CUED||t===o.UNSTARTED){this.pauseProgressPercent=null,this.clearPauseOverlayTimer(),this.setVideoOverlayVisible(!1);return;}if(t===o.PAUSED){this.videoWasPaused=!0,this.emitPauseProgress(e),this.clearPauseOverlayTimer(),this.pauseOverlayTimer=window.setTimeout(()=>{this.player?.getPlayerState?.()===o.PAUSED&&this.setVideoOverlayVisible(!0);},120);return;}t===o.ENDED&&(this.videoWasPaused=!1,this.pauseProgressPercent=null,this.clearPauseOverlayTimer(),this.setVideoOverlayVisible(!0));}}async ensurePlayer(){if(await m.loadYouTubeApi(),this.player||!window.YT)return;const t=this.renderRoot.querySelector(".j-video-modal-player-host");if(!t)return;const e=this;this.player=new window.YT.Player(t,{playerVars:{autoplay:1,rel:0},events:{onReady(o){e.activeVideoId&&o.target.loadVideoById(e.activeVideoId),e.updateDurationFromPlayer(o.target);},onStateChange(o){const r=o.target;
487e.updateDurationFromPlayer(r),e.handleYouTubeState(o.data,r);}}});}connectedCallback(){super.connectedCallback(),this.toggleAttribute("hidden",!this.isOpen),window.addEventListener("open-video-modal",this.handleOpenModal),window.addEventListener("close-video-modal",this.handleCloseModal),document.addEventListener("keydown",this.handleKeyDown);}updated(){this.toggleAttribute("hidden",!this.isOpen);}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("open-video-modal",this.handleOpenModal),window.removeEventListener("close-video-modal",this.handleCloseModal),document.removeEventListener("keydown",this.handleKeyDown),this.clearPauseOverlayTimer();}isTargetModal(t){if(!t||!t.isConnected){const r=document.querySelectorAll("j-video-modal");return r.length>0&&r[0]===this;}const e=t.closest("[data-component-name]")||t.closest("section")||document.body,o=this.closest("[data-component-name]")||this.closest("section")||document.body;return e===o;}async openModalWithPlayer(t){await this.updateComplete,await this.ensurePlayer(),this.player?.loadVideoById&&this.player.loadVideoById(t),this.renderRoot.querySelector(".j-video-modal-close")?.focus();}closeModal(){this.isOpen=!1,document.body.classList.remove("modal-open"),this.clearPauseOverlayTimer(),this.setVideoOverlayVisible(!1),this.durationSeconds=null,this.pauseProgressPercent=null,this.videoWasPaused=!1,this.activeVideoId="",this.player?.stopVideo(),window.dispatchEvent(new CustomEvent("video-modal-closed",{bubbles:!0}));}render(){return l`
488      <div
489        class="j-video-modal"
490        role="dialog"
491        aria-modal="true"
492        aria-labelledby="video-modal-title"
493        ?hidden=${!this.isOpen}
494      >
495        <div class="j-video-modal-overlay" @click=${this.handleOverlayClick}></div>
496        <div class="j-video-modal-content">
497          <button
498            class="j-video-modal-close"
499            aria-label="Close Video Modal"
500            type="button"
501            @click=${this.handleCloseClick}
502          >
503            <j-icon-cross-outlined width="20" height="20"></j-icon-cross-outlined>
504          </button>
505          <div class="j-video-modal-video-wrapper">
506            <div class="j-video-modal-player-host"></div>
507            <div
508              class=${Ro({"j-video-modal-video-overlay":!0,"is-visible":this.pauseOverlayVisible})}
509            >
510              <button
511                type="button"
512                class="j-video-modal-play-btn"
513                aria-label="Play video"
514                ?disabled=${!this.pauseOverlayVisible}
515                @click=${this.handlePlayClick}
516              >
517                Play
518              </button>
519            </div>
520          </div>
521        </div>
522      </div>
523    `;}};m.ytApiPromise=null;m.styles=[w(Bo)];I([a({type:String})],m.prototype,"videoId",2);I([b()],m.prototype,"isOpen",2);I([b()],m.prototype,"activeVideoId",2);I([b()],m.prototype,"pauseOverlayVisible",2);I([b()],m.prototype,"durationSeconds",2);I([b()],m.prototype,"pauseProgressPercent",2);m=I([p("j-video-modal")],m);const Zo='.j-accordion-panel{display:flex;flex-direction:column;gap:var(--gutter-m);width:100%;background-color:var(--color-white, #ffffff)}.j-accordion-panel-header{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--gutter);width:100%}.j-accordion-panel-header-content{display:flex;flex-direction:column;gap:var(--gutter-m);flex:1}.j-accordion-panel-header-content:not(.-empty):before{content:"";display:block;width:72px;height:1px;background-color:var(--color-gold, #a39452)}.j-accordion-panel.j-accordion-panel-spacing-bottom{margin-bottom:56px}.j-accordion-panel ::slotted(h2){font-family:var(--heading-md-font)!important;font-size:var(--heading-md-size)!important;font-weight:var(--heading-md-weight)!important;line-height:var(--heading-md-line-height)!important;color:var(--color-navy, #071d49)!important;margin:0!important;padding:0!important}@media screen and (max-width:1023.98px){.j-accordion-panel ::slotted(h2){font-size:var(--heading-base-size)!important;font-weight:var(--heading-base-weight)!important;line-height:var(--heading-base-line-height)!important}}.j-accordion-panel-expand-all{display:flex;align-items:center;gap:var(--gutter-xs);background:none;border:none;padding:0;cursor:pointer;font-family:var(--body-base-font);font-size:var(--body-base-size);font-weight:var(--body-base-weight);line-height:var(--body-base-line-height);color:var(--color-navy, #071d49);transition:opacity .2s ease-in-out}.j-accordion-panel-expand-all:hover{text-decoration:underline;text-decoration-style:solid;text-underline-offset:4px;text-decoration-thickness:3%}.j-accordion-panel-expand-all:focus-visible{outline:2px solid var(--color-navy, #071d49);outline-offset:2px}.j-accordion-panel-expand-all-text{text-align:right}.j-accordion-panel-expand-all-icon{width:11px;height:6px;transition:transform .2s ease-in-out;color:var(--color-navy, #071d49)}.j-accordion-panel-top-panel-container{margin-bottom:calc(var(--gutter-m) * -1)}.j-accordion-panel-top-panel-container:not(.-empty){padding:var(--gutter-m) 0;border-top:1px solid var(--color-gray, #a8a8a8)}.j-accordion-panel-top-panel-container ul li ul{margin:var(--gutter-xs) var(--gutter)}.j-accordion-panel-items{display:flex;flex-direction:column;gap:0;list-style:none;margin:0;padding:0}';var Jo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,ct=(t,e,o,r)=>{for(var i=r>1?void 0:r?Fo(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&Jo(e,o,i),i;};let $e=class extends d{constructor(){super(...arguments),this.color="currentColor";}render(){return l`
524      <svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
525<path d="M6 5H11V6H6V11H5V6H0V5H5V0H6V5Z" fill="#071D49"/>
526</svg>
527    `;}};ct([a({type:String})],$e.prototype,"color",2);$e=ct([p("j-icon-plus-small")],$e);const Wo=":host(:first-of-type) .j-accordion-panel-item{border-top:1px solid var(--color-gray, #a8a8a8)}.j-accordion-panel-item{display:flex;flex-direction:column;border-bottom:1px solid var(--color-gray, #a8a8a8);padding:20px 0;color:var(--color-navy)}.j-accordion-panel-item ul li{margin-bottom:0!important;margin-top:0!important}.j-accordion-panel-item ul li ul{margin:0 var(--gutter)!important}.j-accordion-panel-item li{margin-bottom:4px!important}.j-accordion-panel-item a:hover{color:var(--color-cobalt)}.j-accordion-panel-item strong{color:var(--color-navy)!important}.j-accordion-panel-item h2{font-family:var(--heading-md-font);font-size:var(--heading-md-size);font-weight:var(--heading-md-weight);line-height:var(--heading-md-line-height);letter-spacing:var(--heading-md-letter-spacing);color:var(--color-navy)}@media screen and (max-width:1023.98px){.j-accordion-panel-item h2{font-family:var(--heading-base-font);font-size:var(--heading-base-size);font-weight:var(--heading-base-weight);line-height:var(--heading-base-line-height);letter-spacing:var(--heading-base-letter-spacing)}}.j-accordion-panel-item h3{font-family:var(--heading-base-font);font-size:var(--heading-base-size);font-weight:var(--heading-base-weight);line-height:var(--heading-base-line-height);letter-spacing:var(--heading-base-letter-spacing);color:var(--color-navy)}@media screen and (max-width:1023.98px){.j-accordion-panel-item h3{font-family:var(--heading-sm-font);font-size:var(--heading-sm-size);font-weight:var(--heading-sm-weight);line-height:var(--heading-sm-line-height);letter-spacing:var(--heading-sm-letter-spacing)}}.j-accordion-panel-item h4{font-family:var(--heading-sm-font);font-size:var(--heading-sm-size);font-weight:var(--heading-sm-weight);line-height:var(--heading-sm-line-height);letter-spacing:var(--heading-sm-letter-spacing);color:var(--color-navy)}.j-accordion-panel-item strong{color:var(--color-navy)}.j-accordion-panel-item-header{display:flex;justify-content:space-between;align-items:center;gap:var(--gutter);width:100%;min-height:32px;cursor:pointer;list-style:none;padding:0}.j-accordion-panel-item-header::-webkit-details-marker{display:none}.j-accordion-panel-item-header::marker{display:none}.j-accordion-panel-item-header:focus-visible{outline:2px solid var(--color-navy, #071d49);outline-offset:2px}.j-accordion-panel-item ::slotted(h3){font-family:var(--heading-base-font)!important;font-size:var(--heading-base-size)!important;font-weight:var(--heading-base-weight)!important;line-height:var(--heading-base-line-height)!important;color:var(--color-navy, #071d49)!important;margin:0!important;padding:0!important;flex:1!important}@media screen and (max-width:1023.98px){.j-accordion-panel-item ::slotted(h3){font-size:var(--heading-sm-size)!important;font-weight:var(--heading-sm-weight)!important;line-height:var(--heading-sm-line-height)!important}}.j-accordion-panel-item-toggle{display:flex;align-items:center;justify-content:center;flex-shrink:0;background:none;border:none;cursor:pointer;padding:0}.j-accordion-panel-item-toggle:focus-visible{outline:2px solid var(--color-navy, #071d49);outline-offset:2px}.j-accordion-panel-item-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--color-navy, #071d49)}.j-accordion-panel-item-content{font-family:var(--body-base-font);font-size:var(--body-base-size);font-weight:var(--body-base-weight);line-height:var(--body-base-line-height);color:var(--color-navy, #071d49);margin-top:var(--gutter);padding-bottom:var(--gutter-s);animation:fadeIn .25s ease-in-out}@media screen and (max-width:1023.98px){.j-accordion-panel-item-content{font-size:var(--body-sm-size);font-weight:var(--body-sm-weight);line-height:var(--body-sm-line-height)}}.j-accordion-panel-item-content div{margin:0 0 var(--gutter) 0}.j-accordion-panel-item-content div:last-child{margin-bottom:0}.j-accordion-panel-details{width:100%}.j-accordion-panel-details:not([open]) .j-accordion-panel-item-content{display:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(calc(var(--gutter-xs) * -1))}to{opacity:1;transform:translateY(0)}}";var Yo=Object.getOwnPropertyDescriptor,Ko=(t,e,o,r)=>{for(var i=r>1?void 0:r?Yo(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let Xe=class extends d{render(){return l`
528      <svg
529        width="31"
530        height="31"
531        viewBox="0 0 31 31"
532        fill="none"
533        xmlns="http://www.w3.org/2000/svg"
534        aria-hidden="true"
535        focusable="false"
536      >
537        <rect width="31" height="31" rx="15.5" fill="#E3F3F4" />
538        <path d="M16 15H26V16H16V26H15V16H5V15H15V5H16V15Z" fill="#071D49" />
539      </svg>
540    `;}};Xe=Ko([p("j-icon-plus-bg")],Xe);var Qo=Object.getOwnPropertyDescriptor,Go=(t,e,o,r)=>{for(var i=r>1?void 0:r?Qo(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=n(i)||i);return i;};let et=class extends d{render(){return l`
541    <svg width="31" height="31" viewBox="0 0 31 31" fill="none" xmlns="http://www.w3.org/2000/svg">
542    <rect width="31" height="31" rx="15.5" fill="#E3F3F4"/>
543    <path fill-rule="evenodd" clip-rule="evenodd" d="M8.42857 7.72146L7.72146 8.42857L14.7925 15.4996L7.72146 22.5707L8.42857 23.2778L15.4996 16.2067L22.5707 23.2778L23.2778 22.5707L16.2067 15.4996L23.2778 8.42857L22.5707 7.72146L15.4996 14.7925L8.42857 7.72146Z" fill="#071D49"/>
544    </svg>
545
546    `;}};et=Go([p("j-icon-cross-bg")],et);var Xo=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,fe=(t,e,o,r)=>{for(var i=r>1?void 0:r?ei(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&Xo(e,o,i),i;};let q=class extends d{constructor(){super(...arguments),this.open=!1,this.name="",this.isOpen=!1;}connectedCallback(){super.connectedCallback(),this.isOpen=this.open;}willUpdate(t){t.has("open")&&(this.isOpen=this.open);}handleToggle(t){const e=t.target;this.isOpen=e.open,this.open=e.open;}getIcon(){return this.isOpen?l`<j-icon-cross-bg class="j-accordion-panel-item-icon" aria-hidden="true"></j-icon-cross-bg>`:l`<j-icon-plus-bg class="j-accordion-panel-item-icon" aria-hidden="true"></j-icon-plus-bg>`;}render(){return l`
547      <li class="j-accordion-panel-item">
548        <details
549          class="j-accordion-panel-details"
550          ?open=${this.isOpen}
551          @toggle=${this.handleToggle}
552        >
553          <summary 
554            class="j-accordion-panel-item-header"
555          >
556            <slot name="heading"></slot>
557            <span class="j-accordion-panel-item-toggle" aria-hidden="true">
558              ${this.getIcon()}
559            </span>
560          </summary>
561          <div class="j-accordion-panel-item-content">
562            <slot></slot>
563          </div>
564        </details>
565      </li>
566    `;}};q.styles=[w(Wo)];fe([a({type:Boolean})],q.prototype,"open",2);fe([a({type:String})],q.prototype,"name",2);fe([b()],q.prototype,"isOpen",2);q=fe([p("j-accordion-panel-item")],q);var ti=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,$=(t,e,o,r)=>{for(var i=r>1?void 0:r?oi(e,o):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(r?n(e,o,i):n(i))||i);return r&&i&&ti(e,o,i),i;};let x=class extends d{constructor(){super(...arguments),this.showExpandAll=!0,this.expandAllText="Expand All",this.collapseAllText="Close All",this.spacingBottom="false",this.allExpanded=!1,this.headingEmpty=!0,this.topPanelEmpty=!0,this.hasItems=!1;}checkHeadingEmpty(){const t=this.headingSlot;this.headingEmpty=!t?.assignedNodes({flatten:!0}).length;}checkTopPanelEmpty(){const t=this.topPanelSlot;this.topPanelEmpty=!t?.assignedNodes().length;}checkHasItems(){const t=this.defaultSlot?.assignedElements({flatten:!0}).filter((e)=>e.tagName.toLowerCase()==="j-accordion-panel-item");this.hasItems=(t?.length??0)>0;}updated(t){super.updated(t),this.checkHeadingEmpty(),this.checkTopPanelEmpty(),this.checkHasItems();}handleExpandAll(){this.allExpanded=!this.allExpanded,this.defaultSlot?.assignedElements({flatten:!0}).filter((e)=>e.tagName.toLowerCase()==="j-accordion-panel-item")?.forEach((e)=>{e.open=this.allExpanded,e.requestUpdate();}),this.requestUpdate();}render(){const t={"j-accordion-panel":!0,"j-accordion-panel-spacing-bottom":this.spacingBottom==="true"};return l`
567      <div class=${M(t)}>
568        <div class="j-accordion-panel-header">
569          <div
570            class=${M({"j-accordion-panel-header-content":!0,"-empty":this.headingEmpty})}
571          >
572            <slot name="heading" @slotchange=${this.checkHeadingEmpty}></slot>
573          </div>
574          ${this.showExpandAll&&this.hasItems?l`
575                <button
576                  class="j-accordion-panel-expand-all"
577                  @click=${this.handleExpandAll}
578                >
vendor: 6,176 bytes, lines 579-603
579                  <span class="j-accordion-panel-expand-all-text">
580                    ${this.allExpanded?this.collapseAllText:this.expandAllText}
581                  </span>
582                  ${this.allExpanded?l`<j-icon-cross></j-icon-cross>`:l`<j-icon-plus-small></j-icon-plus-small>`}
583                </button>
584              `:null}
585        </div>
586        <div class="j-accordion-panel-top-panel-container ${this.topPanelEmpty?"-empty":""}">
587            <slot name="top-panel-item" @slotchange=${this.checkTopPanelEmpty}></slot>
588        </div>
589        <ul class="j-accordion-panel-items">
590          <slot @slotchange=${this.checkHasItems}></slot>
591        </ul>
592      </div>
593    `;}};x.styles=[w(Zo)];$([a({type:Boolean})],x.prototype,"showExpandAll",2);$([a({type:String})],x.prototype,"expandAllText",2);$([a({type:String})],x.prototype,"collapseAllText",2);$([a({type:String})],x.prototype,"spacingBottom",2);$([b()],x.prototype,"allExpanded",2);$([ve("slot:not([name])")],x.prototype,"defaultSlot",2);$([ve('slot[name="top-panel-item"]')],x.prototype,"topPanelSlot",2);$([ve('slot[name="heading"]')],x.prototype,"headingSlot",2);$([b()],x.prototype,"headingEmpty",2);$([b()],x.prototype,"topPanelEmpty",2);$([b()],x.prototype,"hasItems",2);x=$([p("j-accordion-panel")],x);})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:self);;
594(function(Drupal,once){'use strict';function normalizeEventDetailList(list){list.classList.add('program_highlight');const directItems=Array.from(list.children).filter((child)=>child.tagName==='LI');if(directItems.length>0){directItems.forEach((item)=>item.classList.add('event-detail-body__list-item'));return;}const sourceItems=list.querySelectorAll(':scope > .coh-wysiwyg ul > li, :scope > .coh-wysiwyg ol > li');if(!sourceItems.length)return;const fragment=document.createDocumentFragment();sourceItems.forEach((sourceItem)=>{const li=document.createElement('li');li.className='event-detail-body__list-item';li.innerHTML=sourceItem.innerHTML;fragment.appendChild(li);});list.replaceChildren(fragment);}Drupal.behaviors.eventDetailBodyListNormalize={attach(context){once('event-detail-body-list-normalize','[data-component-name="event-detail-body"] .event-detail-body__list',context).forEach((list)=>{normalizeEventDetailList(list);});}};})(Drupal,once);;
595var Or=Object.defineProperty;var zr=(_,C,$)=>C in _?Or(_,C,{enumerable:!0,configurable:!0,writable:!0,value:$}):_[C]=$;var p=(_,C,$)=>zr(_,typeof C!="symbol"?C+"":C,$);(function(_){"use strict";/**
596 * @license
597 * Copyright 2019 Google LLC
598 * SPDX-License-Identifier: BSD-3-Clause
599 */var Oa;const C=globalThis,$=C.ShadowRoot&&(C.ShadyCSS===void 0||C.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oe=Symbol(),ze=new WeakMap;let za=class{constructor(a,t,r){if(this._$cssResult$=!0,r!==Oe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=a,this.t=t}get styleSheet(){let a=this.o;const t=this.t;if($&&a===void 0){const r=t!==void 0&&t.length===1;r&&(a=ze.get(t)),a===void 0&&((this.o=a=new CSSStyleSheet).replaceSync(this.cssText),r&&ze.set(t,a))}return a}toString(){return this.cssText}};const E=e=>new za(typeof e=="string"?e:e+"",void 0,Oe),Ra=(e,a)=>{if($)e.adoptedStyleSheets=a.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of a){const r=document.createElement("style"),n=C.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,e.appendChild(r)}},Re=$?e=>e:e=>e instanceof CSSStyleSheet?(a=>{let t="";for(const r of a.cssRules)t+=r.cssText;return E(t)})(e):e;/**
600 * @license
601 * Copyright 2017 Google LLC
602 * SPDX-License-Identifier: BSD-3-Clause
603 */const{is:Ua,defineProperty:Fa,getOwnPropertyDescriptor:Ba,getOwnPropertyNames:qa,getOwnPropertySymbols:Wa,getPrototypeOf:Ja}=Object,D=globalThis,Ue=D.trustedTypes,Za=Ue?Ue.emptyScript:"",me=D.reactiveElementPolyfillSupport,W=(e,a)=>e,te={toAttribute(e,a){switch(a){case Boolean:e=e?Za:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,a){let t=e;switch(a){case Boolean:t=e!==null;break;case Number:t=e===null?null:Number(e);break;case Object:case Array:try{t=JSON.parse(e)}catch{t=null}}return t}},ne=(e,a)=>!Ua(e,a),Fe={attribute:!0,type:String,converter:te,reflect:!1,useDefault:!1,hasChanged:ne};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),D.litPropertyMetadata??(D.litPropertyMetadata=new WeakMap);let U=class extends HTMLElement{static addInitializer(a){this._$Ei(),(this.l??(this.l=[])).push(a)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(a,t=Fe){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(a)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(a,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(a,r,t);n!==void 0&&Fa(this.prototype,a,n)}}static getPropertyDescriptor(a,t,r){const{get:n,set:l}=Ba(this.prototype,a)??{get(){return this[t]},set(i){this[t]=i}};return{get:n,set(i){const o=n==null?void 0:n.call(this);l==null||l.call(this,i),this.requestUpdate(a,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(a){return this.elementProperties.get(a)??Fe}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;const a=Ja(this);a.finalize(),a.l!==void 0&&(this.l=[...a.l]),this.elementProperties=new Map(a.elementProperties)}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){const t=this.properties,r=[...qa(t),...Wa(t)];for(const n of r)this.createProperty(n,t[n])}const a=this[Symbol.metadata];if(a!==null){const t=litPropertyMetadata.get(a);if(t!==void 0)for(const[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(a){const t=[];if(Array.isArray(a)){const r=new Set(a.flat(1/0).reverse());for(const n of r)t.unshift(Re(n))}else a!==void 0&&t.push(Re(a));return t}static _$Eu(a,t){const r=t.attribute;
vendor: 9,439 bytes, lines 603-609
603return r===!1?void 0:typeof r=="string"?r:typeof a=="string"?a.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var a;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(a=this.constructor.l)==null||a.forEach(t=>t(this))}addController(a){var t;(this._$EO??(this._$EO=new Set)).add(a),this.renderRoot!==void 0&&this.isConnected&&((t=a.hostConnected)==null||t.call(a))}removeController(a){var t;(t=this._$EO)==null||t.delete(a)}_$E_(){const a=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(a.set(r,this[r]),delete this[r]);a.size>0&&(this._$Ep=a)}createRenderRoot(){const a=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ra(a,this.constructor.elementStyles),a}connectedCallback(){var a;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(a=this._$EO)==null||a.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(a){}disconnectedCallback(){var a;(a=this._$EO)==null||a.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(a,t,r){this._$AK(a,r)}_$ET(a,t){var l;const r=this.constructor.elementProperties.get(a),n=this.constructor._$Eu(a,r);if(n!==void 0&&r.reflect===!0){const i=(((l=r.converter)==null?void 0:l.toAttribute)!==void 0?r.converter:te).toAttribute(t,r.type);this._$Em=a,i==null?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(a,t){var l,i;const r=this.constructor,n=r._$Eh.get(a);if(n!==void 0&&this._$Em!==n){const o=r.getPropertyOptions(n),s=typeof o.converter=="function"?{fromAttribute:o.converter}:((l=o.converter)==null?void 0:l.fromAttribute)!==void 0?o.converter:te;this._$Em=n;const c=s.fromAttribute(t,o.type);this[n]=c??((i=this._$Ej)==null?void 0:i.get(n))??c,this._$Em=null}}requestUpdate(a,t,r,n=!1,l){var i;if(a!==void 0){const o=this.constructor;if(n===!1&&(l=this[a]),r??(r=o.getPropertyOptions(a)),!((r.hasChanged??ne)(l,t)||r.useDefault&&r.reflect&&l===((i=this._$Ej)==null?void 0:i.get(a))&&!this.hasAttribute(o._$Eu(a,r))))return;this.C(a,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(a,t,{useDefault:r,reflect:n,wrapped:l},i){r&&!(this._$Ej??(this._$Ej=new Map)).has(a)&&(this._$Ej.set(a,i??t??this[a]),l!==!0||i!==void 0)||(this._$AL.has(a)||(this.hasUpdated||r||(t=void 0),this._$AL.set(a,t)),n===!0&&this._$Em!==a&&(this._$Eq??(this._$Eq=new Set)).add(a))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const a=this.scheduleUpdate();return a!=null&&await a,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[l,i]of this._$Ep)this[l]=i;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[l,i]of n){const{wrapped:o}=i,s=this[l];o!==!0||this._$AL.has(l)||s===void 0||this.C(l,void 0,i,s)}}let a=!1;const t=this._$AL;try{a=this.shouldUpdate(t),a?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(n=>{var l;return(l=n.hostUpdate)==null?void 0:l.call(n)}),this.update(t)):this._$EM()}catch(n){throw a=!1,this._$EM(),n}a&&this._$AE(t)}willUpdate(a){}_$AE(a){var t;(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(a)),this.updated(a)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(a){return!0}update(a){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(a){}firstUpdated(a){}};U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[W("elementProperties")]=new Map,U[W("finalized")]=new Map,me==null||me({ReactiveElement:U}),(D.reactiveElementVersions??(D.reactiveElementVersions=[])).push("2.1.2");/**
604 * @license
605 * Copyright 2017 Google LLC
606 * SPDX-License-Identifier: BSD-3-Clause
607 */const J=globalThis,Be=e=>e,re=J.trustedTypes,qe=re?re.createPolicy("lit-html",{createHTML:e=>e}):void 0,We="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Je="?"+A,Ga=`<${Je}>`,L=document,Z=()=>L.createComment(""),G=e=>e===null||typeof e!="object"&&typeof e!="function",ge=Array.isArray,Ka=e=>ge(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",ye=`[ 	
608\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ze=/-->/g,Ge=/>/g,I=RegExp(`>|${ye}(?:([^\\s"'>=/]+)(${ye}*=${ye}*(?:[^ 	
609\f\r"'\`<>=]|("|')|))|$)`,"g"),Ke=/'/g,Ve=/"/g,Qe=/^(?:script|style|textarea|title)$/i,Va=e=>(a,...t)=>({_$litType$:e,strings:a,values:t}),S=Va(1),N=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),Xe=new WeakMap,j=L.createTreeWalker(L,129);function ea(e,a){if(!ge(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return qe!==void 0?qe.createHTML(a):a}const Qa=(e,a)=>{const t=e.length-1,r=[];let n,l=a===2?"<svg>":a===3?"<math>":"",i=K;for(let o=0;o<t;o++){const s=e[o];let c,d,h=-1,u=0;for(;u<s.length&&(i.lastIndex=u,d=i.exec(s),d!==null);)u=i.lastIndex,i===K?d[1]==="!--"?i=Ze:d[1]!==void 0?i=Ge:d[2]!==void 0?(Qe.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=I):d[3]!==void 0&&(i=I):i===I?d[0]===">"?(i=n??K,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,c=d[1],i=d[3]===void 0?I:d[3]==='"'?Ve:Ke):i===Ve||i===Ke?i=I:i===Ze||i===Ge?i=K:(i=I,n=void 0);const m=i===I&&e[o+1].startsWith("/>")?" ":"";l+=i===K?s+Ga:h>=0?(r.push(c),s.slice(0,h)+We+s.slice(h)+A+m):s+A+(h===-2?o:m)}return[ea(e,l+(e[t]||"<?>")+(a===2?"</svg>":a===3?"</math>":"")),r]};class V{constructor({strings:a,_$litType$:t},r){let n;this.parts=[];let l=0,i=0;const o=a.length-1,s=this.parts,[c,d]=Qa(a,t);if(this.el=V.createElement(c,r),j.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=j.nextNode())!==null&&s.length<o;){if(n.nodeType===1){if(n.hasAttributes())for(const h of n.getAttributeNames())if(h.endsWith(We)){const u=d[i++],m=n.getAttribute(h).split(A),b=/([.?@])?(.*)/.exec(u);s.push({type:1,index:l,name:b[2],strings:m,ctor:b[1]==="."?et:b[1]==="?"?at:b[1]==="@"?tt:le}),n.removeAttribute(h)}else h.startsWith(A)&&(s.push({type:6,index:l}),n.removeAttribute(h));if(Qe.test(n.tagName)){const h=n.textContent.split(A),u=h.length-1;if(u>0){n.textContent=re?re.emptyScript:"";for(let m=0;m<u;m++)n.append(h[m],Z()),j.nextNode(),s.push({type:2,index:++l});n.append(h[u],Z())}}}else if(n.nodeType===8)if(n.data===Je)s.push({type:2,index:l});else{let h=-1;for(;(h=n.data.indexOf(A,h+1))!==-1;)s.push({type:7,index:l}),h+=A.length-1}l++}}static createElement(a,t){const r=L.createElement("template");return r.innerHTML=a,r}}function F(e,a,t=e,r){var i,o;if(a===N)return a;let n=r!==void 0?(i=t._$Co)==null?void 0:i[r]:t._$Cl;const l=G(a)?void 0:a._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((o=n==null?void 0:n._$AO)==null||o.call(n,!1),l===void 0?n=void 0:(n=new l(e),n._$AT(e,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(a=F(e,n._$AS(e,a.values),n,r)),a}class Xa{constructor(a,t){this._$AV=[],this._$AN=void 0,this._$AD=a,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(a){const{el:{content:t},parts:r}=this._$AD,n=((a==null?void 0:a.creationScope)??L).importNode(t,!0);j.currentNode=n;let l=j.nextNode(),i=0,o=0,s=r[0];for(;s!==void 0;){if(i===s.index){let c;s.type===2?c=new Q(l,l.nextSibling,this,a):s.type===1?c=new s.ctor(l,s.name,s.strings,this,a):s.type===6&&(c=new nt(l,this,a)),this._$AV.push(c),s=r[++o]}i!==(s==null?void 0:s.index)&&(l=j.nextNode(),i++)}return j.currentNode=L,n}p(a){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(a,r,t),t+=r.strings.length-2):r._$AI(a[t])),t++}}class Q{get _$AU(){var a;return((a=this._$AM)==null?void 0:a._$AU)??this._$Cv}constructor(a,t,r,n){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=a,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let a=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(a==null?void 0:a.nodeType)===11&&(a=t.parentNode),a}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(a,t=this){a=F(this,a,t),G(a)?a===w||a==null||a===""?(this._$AH!==w&&this._$AR(),this._$AH=w):a!==this._$AH&&a!==N&&this._(a):a._$litType$!==void 0?this.$(a):a.nodeType!==void 0?this.T(a):Ka(a)?this.k(a):this._(a)}O(a){return this._$AA.parentNode.insertBefore(a,this._$AB)}T(a){this._$AH!==a&&(this._$AR(),this._$AH=this.O(a))}_(a){this._$AH!==w&&G(this._$AH)?this._$AA.nextSibling.data=a:this.T(L.createTextNode(a)),this._$AH=a}$(a){var l;const{values:t,_$litType$:r}=a,n=typeof r=="number"?this._$AC(a):(r.el===void 0&&(r.el=V.createElement(ea(r.h,r.h[0]),this.options)),r);if(((l=this._$AH)==null?void 0:l._$AD)===n)this._$AH.p(t);else{const i=new Xa(n,this),o=i.u(this.options);i.p(t),this.T(o),this._$AH=i}}_$AC(a){let t=Xe.get(a.strings);return t===void 0&&Xe.set(a.strings,t=new V(a)),t}k(a){ge(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const l of a)n===t.length?t.push(r=new Q(this.O(Z()),this.O(Z()),this,this.options)):r=t[n],r._$AI(l),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(a=this._$AA.nextSibling,t){var r;
vendor: 4,787 bytes, lines 609-629
609for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);a!==this._$AB;){const n=Be(a).nextSibling;Be(a).remove(),a=n}}setConnected(a){var t;this._$AM===void 0&&(this._$Cv=a,(t=this._$AP)==null||t.call(this,a))}}class le{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(a,t,r,n,l){this.type=1,this._$AH=w,this._$AN=void 0,this.element=a,this.name=t,this._$AM=n,this.options=l,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=w}_$AI(a,t=this,r,n){const l=this.strings;let i=!1;if(l===void 0)a=F(this,a,t,0),i=!G(a)||a!==this._$AH&&a!==N,i&&(this._$AH=a);else{const o=a;let s,c;for(a=l[0],s=0;s<l.length-1;s++)c=F(this,o[r+s],t,s),c===N&&(c=this._$AH[s]),i||(i=!G(c)||c!==this._$AH[s]),c===w?a=w:a!==w&&(a+=(c??"")+l[s+1]),this._$AH[s]=c}i&&!n&&this.j(a)}j(a){a===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,a??"")}}class et extends le{constructor(){super(...arguments),this.type=3}j(a){this.element[this.name]=a===w?void 0:a}}class at extends le{constructor(){super(...arguments),this.type=4}j(a){this.element.toggleAttribute(this.name,!!a&&a!==w)}}class tt extends le{constructor(a,t,r,n,l){super(a,t,r,n,l),this.type=5}_$AI(a,t=this){if((a=F(this,a,t,0)??w)===N)return;const r=this._$AH,n=a===w&&r!==w||a.capture!==r.capture||a.once!==r.once||a.passive!==r.passive,l=a!==w&&(r===w||n);n&&this.element.removeEventListener(this.name,this,r),l&&this.element.addEventListener(this.name,this,a),this._$AH=a}handleEvent(a){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,a):this._$AH.handleEvent(a)}}class nt{constructor(a,t,r){this.element=a,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(a){F(this,a)}}const be=J.litHtmlPolyfillSupport;be==null||be(V,Q),(J.litHtmlVersions??(J.litHtmlVersions=[])).push("3.3.2");const rt=(e,a,t)=>{const r=(t==null?void 0:t.renderBefore)??a;let n=r._$litPart$;if(n===void 0){const l=(t==null?void 0:t.renderBefore)??null;r._$litPart$=n=new Q(a.insertBefore(Z(),l),l,void 0,t??{})}return n._$AI(e),n};/**
610 * @license
611 * Copyright 2017 Google LLC
612 * SPDX-License-Identifier: BSD-3-Clause
613 */const H=globalThis;let k=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const a=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=a.firstChild),a}update(a){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(a),this._$Do=rt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var a;super.connectedCallback(),(a=this._$Do)==null||a.setConnected(!0)}disconnectedCallback(){var a;super.disconnectedCallback(),(a=this._$Do)==null||a.setConnected(!1)}render(){return N}};k._$litElement$=!0,k.finalized=!0,(Oa=H.litElementHydrateSupport)==null||Oa.call(H,{LitElement:k});const pe=H.litElementPolyfillSupport;pe==null||pe({LitElement:k}),(H.litElementVersions??(H.litElementVersions=[])).push("4.2.2");/**
614 * @license
615 * Copyright 2017 Google LLC
616 * SPDX-License-Identifier: BSD-3-Clause
617 */const P=e=>(a,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(e,a)}):customElements.define(e,a)};/**
618 * @license
619 * Copyright 2017 Google LLC
620 * SPDX-License-Identifier: BSD-3-Clause
621 */const lt={attribute:!0,type:String,converter:te,reflect:!1,hasChanged:ne},it=(e=lt,a,t)=>{const{kind:r,metadata:n}=t;let l=globalThis.litPropertyMetadata.get(n);if(l===void 0&&globalThis.litPropertyMetadata.set(n,l=new Map),r==="setter"&&((e=Object.create(e)).wrapped=!0),l.set(t.name,e),r==="accessor"){const{name:i}=t;return{set(o){const s=a.get.call(this);a.set.call(this,o),this.requestUpdate(i,s,e,!0,o)},init(o){return o!==void 0&&this.C(i,void 0,e,o),o}}}if(r==="setter"){const{name:i}=t;return function(o){const s=this[i];a.call(this,o),this.requestUpdate(i,s,e,!0,o)}}throw Error("Unsupported decorator location: "+r)};function f(e){return(a,t)=>typeof t=="object"?it(e,a,t):((r,n,l)=>{const i=n.hasOwnProperty(l);return n.constructor.createProperty(l,r),i?Object.getOwnPropertyDescriptor(n,l):void 0})(e,a,t)}/**
622 * @license
623 * Copyright 2017 Google LLC
624 * SPDX-License-Identifier: BSD-3-Clause
625 */function ve(e){return f({...e,state:!0,attribute:!1})}var ot=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,fe=(e,a,t,r)=>{for(var n=r>1?void 0:r?dt(a,t):a,l=e.length-1,i;l>=0;l--)(i=e[l])&&(n=(r?i(a,t,n):i(n))||n);return r&&n&&ot(a,t,n),n};_.JCalendarIcon=class extends k{constructor(){super(...arguments);p(this,"size","24");p(this,"fill","")}render(){return S`
626      <svg
627        xmlns="http://www.w3.org/2000/svg"
628        width="${this.size}"
629        height="${this.size}"
630        viewBox="0 0 19.201 21.944"
631        fill="currentColor"
632      >
633        <path
634          d="M0,19.887a2.058,2.058,0,0,0,2.057,2.057H17.144A2.058,2.058,0,0,0,19.2,19.887V8.229H0Zm13.715-8.4a.516.516,0,0,1,.514-.514h1.714a.516.516,0,0,1,.514.514V13.2a.516.516,0,0,1-.514.514H14.229a.516.516,0,0,1-.514-.514Zm0,5.486a.516.516,0,0,1,.514-.514h1.714a.516.516,0,0,1,.514.514v1.714a.516.516,0,0,1-.514.514H14.229a.516.516,0,0,1-.514-.514ZM8.229,11.486a.516.516,0,0,1,.514-.514h1.714a.516.516,0,0,1,.514.514V13.2a.516.516,0,0,1-.514.514H8.743a.516.516,0,0,1-.514-.514Zm0,5.486a.516.516,0,0,1,.514-.514h1.714a.516.516,0,0,1,.514.514v1.714a.516.516,0,0,1-.514.514H8.743a.516.516,0,0,1-.514-.514ZM2.743,11.486a.516.516,0,0,1,.514-.514H4.972a.516.516,0,0,1,.514.514V13.2a.516.516,0,0,1-.514.514H3.257a.516.516,0,0,1-.514-.514Zm0,5.486a.516.516,0,0,1,.514-.514H4.972a.516.516,0,0,1,.514.514v1.714a.516.516,0,0,1-.514.514H3.257a.516.516,0,0,1-.514-.514Zm14.4-14.229H15.087V.686A.688.688,0,0,0,14.4,0H13.029a.688.688,0,0,0-.686.686V2.743H6.858V.686A.688.688,0,0,0,6.172,0H4.8a.688.688,0,0,0-.686.686V2.743H2.057A2.058,2.058,0,0,0,0,4.8V6.858H19.2V4.8A2.058,2.058,0,0,0,17.144,2.743Z"
635        ></path>
636      </svg>
637    `}},fe([f({type:String})],_.JCalendarIcon.prototype,"size",2),fe([f({type:String})],_.JCalendarIcon.prototype,"fill",2),_.JCalendarIcon=fe([P("j-calendar-icon")],_.JCalendarIcon);var st=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,we=(e,a,t,r)=>{for(var n=r>1?void 0:r?ct(a,t):a,l=e.length-1,i;l>=0;l--)(i=e[l])&&(n=(r?i(a,t,n):i(n))||n);return r&&n&&st(a,t,n),n};_.JChevronDownIcon=class extends k{constructor(){super(...arguments);p(this,"size","24");p(this,"fill","")}render(){return S`
638      <svg 
639        height="${this.size}"
640        width="${this.size}"
641        viewBox="0 0 32 32"
642        xmlns="http://www.w3.org/2000/svg"
643        fill="currentColor"
644        stroke="currentColor"
645        preserveAspectRatio="xMidYMid meet"
646      >
647        <title />
648        <g id="chevron-bottom">
649          <line class="cls-1" x1="16" x2="7" y1="20.5" y2="11.5" />
650          <line class="cls-1" x1="25" x2="16" y1="11.5" y2="20.5" />
651        </g>
652      </svg>
653    `}},we([f({type:String})],_.JChevronDownIcon.prototype,"size",2),we([f({type:String})],_.JChevronDownIcon.prototype,"fill",2),_.JChevronDownIcon=we([P("j-chevron-down-icon")],_.JChevronDownIcon);var ht=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,ie=(e,a,t,r)=>{for(var n=r>1?void 0:r?ut(a,t):a,l=e.length-1,i;l>=0;l--)(i=e[l])&&(n=(r?i(a,t,n):i(n))||n);return r&&n&&ht(a,t,n),n};_.JArrowRightIcon=class extends k{constructor(){super(...arguments);p(this,"size","35");p(this,"fill","");p(this,"stroke","")}render(){return S`
654      <svg
655        xmlns="http://www.w3.org/2000/svg"
656        width="${this.size}"
657        height="${this.size}"
658        viewBox="0 0 27.188 27.018"
659        fill="currentColor"
660      >
661        <path
662          id="Path_50"
663          data-name="Path 50"
664          d="M51.233,16.737a1.731,1.731,0,0,1-.591-1.36,2.013,2.013,0,0,1,.594-1.433l8.03-8.027H41.027A2.048,2.048,0,0,1,39,3.814a2.01,2.01,0,0,1,2.027-1.951H59.266L51.239-6.164a2.027,2.027,0,0,1,0-2.867,2.026,2.026,0,0,1,2.867,0L65.594,2.457a2.027,2.027,0,0,1,0,2.867L54.106,16.811A1.978,1.978,0,0,1,51.233,16.737Z"
665          transform="translate(-39 9.625)"
666        >
667        </path>
668      </svg>
669    `}},ie([f({type:String})],_.JArrowRightIcon.prototype,"size",2),ie([f({type:String})],_.JArrowRightIcon.prototype,"fill",2),ie([f({type:String})],_.JArrowRightIcon.prototype,"stroke",2),_.JArrowRightIcon=ie([P("j-arrow-right-icon")],_.JArrowRightIcon);var _t=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,Se=(e,a,t,r)=>{for(var n=r>1?void 0:r?mt(a,t):a,l=e.length-1,i;l>=0;l--)(i=e[l])&&(n=(r?i(a,t,n):i(n))||n);return r&&n&&_t(a,t,n),n};_.JInfoIcon=class extends k{constructor(){super(...arguments);p(this,"size","24");p(this,"fill","")}render(){return S`
670      <svg
671        xmlns="http://www.w3.org/2000/svg"
672        width="${this.size}"
673        height="${this.size}"
674        fill="none"
675        viewBox="0 0 24 24"
676        stroke="currentColor"
677        stroke-width="2"
678        aria-hidden="true"
679      >
680        <path
681          stroke-linecap="round"
682          stroke-linejoin="round"
683          d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
684        ></path>
685      </svg>
686    `}},Se([f({type:String})],_.JInfoIcon.prototype,"size",2),Se([f({type:String})],_.JInfoIcon.prototype,"fill",2),_.JInfoIcon=Se([P("j-info-icon")],_.JInfoIcon);const aa=':host,:root{--container-width: 1236px;--gutter-xs: .25rem;--gutter-s: .5rem;--gutter: 1rem;--gutter-m: 1.5rem;--gutter-l: 2rem;--gutter-xl: 3rem;--color-primary: #012168;--color-gray-900: #1c1c1c;--color-gray-500: #6d7176;--color-gray-300: #a2b2c8;--color-gray-200: #e7e7e9;--color-gray-100: #f7f7f9;--color-blue-100: #f2f5fa;--color-blue-500: #00468b;--color-blue-700: #012168;--color-blue-800: #232c64;--color-blue-900: #011541;--color-red-700: #8f3237;--color-red-300: #d85058;--color-red-100: #da9498;--color-yellow-700: #f6b333;--color-orange-800: #A75217;--color-orange-700: #c4622d;--color-orange-500: #ef7622;--color-teal-900: #007fa3;--color-teal-700: #4f868e;--color-teal-500: #67b3e7;--color-teal-950: #006b8a;--color-green-100: #EAFDE8;--color-green-500: #50a684;--color-green-600: #387a65;--color-green-700: #008751;--color-light: #fff;--border-radius: 8px;--border-radius-s: 4px;--box-shadow: 0 3px 6px rgba(0, 0, 0, .1);--font-primary: "korolev-condensed", "korolevCdn", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-primary-bold: "korolevCdnBold", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-secondary: "proxima-nova", "Proxima_Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-size-s: .75rem}:root{--neutral-clear-icon-url: url(data:image/svg+xml;base64,PHN2ZwogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICA8Y2lyY2xlIGZpbGw9IiNGMkY0RjciIGN4PSIxMiIgY3k9IjEyIiByPSIxMCI+PC9jaXJjbGU+CiAgICA8cGF0aAogICAgICBkPSJNMTYuMjQzIDE1LjU4IDEyLjY2MyAxMmwzLjU4LTMuNThhLjQ2OS40NjkgMCAxIDAtLjY2My0uNjYzTDEyIDExLjMzN2wtMy41OC0zLjU4YS40NjkuNDY5IDAgMSAwLS42NjMuNjYzbDMuNTggMy41OC0zLjU4IDMuNThhLjQ2OS40NjkgMCAxIDAgLjY2My42NjNsMy41OC0zLjU4IDMuNTggMy41OGEuNDY5LjQ2OSAwIDEgMCAuNjYzLS42NjN6IgogICAgICBmaWxsPSIjMjMyYzY0IgogICAgICBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgPC9wYXRoPgogIDwvZz4KPC9zdmc+Cg==)}*{box-sizing:border-box}.btn,a.btn{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;font-size:inherit;font-weight:700;letter-spacing:1px;text-decoration:none;text-transform:uppercase;border:1px solid transparent;border-radius:4px;padding:var(--gutter-s, .75rem) var(--gutter, .75rem);color:inherit;cursor:pointer;background-color:transparent;will-change:transform;transition:all .2s ease}.btn-small,a.btn-small{padding:var(--gutter-xs) var(--gutter-s)}.btn.btn-primary,a.btn.btn-primary{background-color:var(--color-red-700);color:#fff}.btn.btn-primary:hover,.btn.btn-primary:focus,a.btn.btn-primary:hover,a.btn.btn-primary:focus{color:var(--color-blue-700);background-color:var(--color-yellow-700);border-color:var(--color-yellow-700)}
686.btn.btn-primary:disabled,.btn.btn-primary:disabled:focus,.btn.btn-primary:disabled:hover,a.btn.btn-primary:disabled,a.btn.btn-primary:disabled:focus,a.btn.btn-primary:disabled:hover{border-color:var(--color-red-100);background-color:var(--color-red-100);color:#fff;cursor:revert}.btn.btn-secondary,a.btn.btn-secondary{background-color:var(--color-blue-700);color:#fff}.btn.btn-secondary:hover,.btn.btn-secondary:focus,a.btn.btn-secondary:hover,a.btn.btn-secondary:focus{color:var(--color-blue-700);background-color:var(--color-yellow-700);border-color:var(--color-yellow-700)}.btn.btn-outline,a.btn.btn-outline{background-color:#fff;border-color:var(--color-red-700);color:var(--color-red-700)}.btn.btn-outline:hover,.btn.btn-outline:focus,a.btn.btn-outline:hover,a.btn.btn-outline:focus{color:var(--color-blue-700);background-color:var(--color-yellow-700)}.btn.btn-secondary-outline,a.btn.btn-secondary-outline{border-color:var(--color-blue-700);color:var(--color-blue-700)}.btn.btn-secondary-outline:hover,.btn.btn-secondary-outline:focus,a.btn.btn-secondary-outline:hover,a.btn.btn-secondary-outline:focus{color:#fff;background-color:var(--color-blue-700)}.btn.btn-white-outline,a.btn.btn-white-outline{border-color:#fff;color:#fff;background-color:var(--color-blue-700)}.btn.btn-white-outline:hover,.btn.btn-white-outline:focus,a.btn.btn-white-outline:hover,a.btn.btn-white-outline:focus{color:var(--color-blue-700);background-color:#fff}.btn.btn-link,a.btn.btn-link{padding:0;text-transform:none;white-space:normal;justify-content:flex-start;text-align:inherit;font-weight:inherit}.btn.btn-link:active,a.btn.btn-link:active{transform:none}.btn.btn-link:disabled,.btn.btn-link:disabled:focus,.btn.btn-link:disabled:hover,a.btn.btn-link:disabled,a.btn.btn-link:disabled:focus,a.btn.btn-link:disabled:hover{border:none;cursor:not-allowed}.btn.btn-font-primary,a.btn.btn-font-primary{font-family:var(--font-primary)}.btn:active,a.btn:active{transform:scale(.98)}.btn:disabled,.btn.disabled,.btn:disabled:hover,.btn:disabled:focus,.btn.disabled:hover,.btn.disabled:focus,.btn.disabled:active,a.btn:disabled,a.btn.disabled,a.btn:disabled:hover,a.btn:disabled:focus,a.btn.disabled:hover,a.btn.disabled:focus,a.btn.disabled:active{color:var(--color-gray-300);border-color:var(--color-gray-300);background-color:inherit;transform:none}.btn:focus-visible,a.btn:focus-visible{outline:1px solid currentColor}.btn-loading,a.btn-loading{pointer-events:none}.btn-loading:after,a.btn-loading:after{content:"";position:relative;width:16px;height:16px;top:0;left:0;right:0;bottom:0;margin:0 16px;border:4px solid transparent;border-top-color:#fff;border-radius:50%;animation:button-loading-spinner 1s ease infinite;flex-shrink:1}@keyframes button-loading-spinner{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.btn .spinner,a.btn .spinner{animation:spin 1s infinite ease-in-out;border-radius:50%;border-top:2px solid var(--color-blue-700);display:inline-block;height:1rem;width:1rem;margin:0 .5rem}@keyframes spin{to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes dash{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}',ta=e=>Object.keys(e).filter(a=>e[a]).join(" ");var na=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,yt=(e,a,t)=>a in e?na(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,Y=(e,a,t,r)=>{for(var n=r>1?void 0:r?gt(a,t):a,l=e.length-1,i;l>=0;l--)(i=e[l])&&(n=(r?i(a,t,n):i(n))||n);return r&&n&&na(a,t,n),n},bt=(e,a,t)=>yt(e,a+"",t);_.JButton=class extends k{constructor(){super(...arguments);p(this,"variant","");p(this,"theme","primary");p(this,"disabled",!1);p(this,"loading",!1);p(this,"href","");p(this,"target","")}render(){const t={btn:!0,"btn-link":this.variant==="link","btn-outline":this.variant==="outline","btn-primary":this.theme==="primary"&&!this.variant,"btn-secondary":this.theme==="secondary"&&!this.variant,"btn-secondary-outline":this.variant==="outline"&&this.theme==="secondary","btn-white-outline":this.variant==="outline"&&this.theme==="white"},r=S`
687      <button
688        class="${ta(t)}"
689        ?disabled="${this.disabled||this.loading}"
690      >
691        <slot></slot>
692
693        ${this.loading?S`
694          <span class="spinner" role="status" aria-hidden="true"></span>
695        `:""}
696      </button>
697    `,n=S`
698      <a
699        href="${this.href}"
700        class="${ta(t)}"
701        ?disabled="${this.disabled||this.loading}"
702        ?target="${this.target}"
703      >
704        <slot></slot>
705
706        ${this.loading?S`
707          <span class="spinner" role="status" aria-hidden="true"></span>
708        `:""}
709      </a>
710    `;return this.href?n:r}},bt(_.JButton,"styles",[E(aa)]),Y([f({type:String})],_.JButton.prototype,"variant",2),Y([f({type:String})],_.JButton.prototype,"theme",2),Y([f({type:Boolean,reflect:!0})],_.JButton.prototype,"disabled",2),Y([f({type:Boolean})],_.JButton.prototype,"loading",2),Y([f({type:String})],_.JButton.prototype,"href",2),Y([f({type:String})],_.JButton.prototype,"target",2),_.JButton=Y([P("j-button")],_.JButton);const pt=':host,:root{--container-width: 1236px;--gutter-xs: .25rem;--gutter-s: .5rem;--gutter: 1rem;--gutter-m: 1.5rem;--gutter-l: 2rem;--gutter-xl: 3rem;--color-primary: #012168;--color-gray-900: #1c1c1c;--color-gray-500: #6d7176;--color-gray-300: #a2b2c8;--color-gray-200: #e7e7e9;--color-gray-100: #f7f7f9;--color-blue-100: #f2f5fa;--color-blue-500: #00468b;--color-blue-700: #012168;--color-blue-800: #232c64;--color-blue-900: #011541;--color-red-700: #8f3237;--color-red-300: #d85058;--color-red-100: #da9498;--color-yellow-700: #f6b333;--color-orange-800: #A75217;--color-orange-700: #c4622d;--color-orange-500: #ef7622;--color-teal-900: #007fa3;--color-teal-700: #4f868e;--color-teal-500: #67b3e7;--color-teal-950: #006b8a;--color-green-100: #EAFDE8;--color-green-500: #50a684;--color-green-600: #387a65;--color-green-700: #008751;--color-light: #fff;--border-radius: 8px;--border-radius-s: 4px;--box-shadow: 0 3px 6px rgba(0, 0, 0, .1);--font-primary: "korolev-condensed", "korolevCdn", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-primary-bold: "korolevCdnBold", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-secondary: "proxima-nova", "Proxima_Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-size-s: .75rem}:root{--neutral-clear-icon-url: url(data:image/svg+xml;base64,PHN2ZwogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICA8Y2lyY2xlIGZpbGw9IiNGMkY0RjciIGN4PSIxMiIgY3k9IjEyIiByPSIxMCI+PC9jaXJjbGU+CiAgICA8cGF0aAogICAgICBkPSJNMTYuMjQzIDE1LjU4IDEyLjY2MyAxMmwzLjU4LTMuNThhLjQ2OS40NjkgMCAxIDAtLjY2My0uNjYzTDEyIDExLjMzN2wtMy41OC0zLjU4YS40NjkuNDY5IDAgMSAwLS42NjMuNjYzbDMuNTggMy41OC0zLjU4IDMuNThhLjQ2OS40NjkgMCAxIDAgLjY2My42NjNsMy41OC0zLjU4IDMuNTggMy41OGEuNDY5LjQ2OSAwIDEgMCAuNjYzLS42NjN6IgogICAgICBmaWxsPSIjMjMyYzY0IgogICAgICBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgPC9wYXRoPgogIDwvZz4KPC9zdmc+Cg==)}*{box-sizing:border-box}.neutral-calendar .vanilla-calendar{border:1px solid #E5E5E5;border-radius:0}@media screen and (max-width: 768px){.neutral-calendar .vanilla-calendar{width:100%}}.neutral-calendar .vanilla-calendar .vanilla-calendar-header__content,.neutral-calendar .vanilla-calendar .vanilla-calendar-header__content *{color:var(--color-navy)!important;font-family:var(--font-proxima-nova);font-weight:400}.neutral-calendar .vanilla-calendar-week{gap:8px}.neutral-calendar .vanilla-calendar-week__day{color:var(--color-navy)!important;font-family:var(--font-proxima-nova);font-size:16px;font-weight:400;text-transform:uppercase}.neutral-calendar .vanilla-calendar-week__day_weekend{color:var(--color-gray);font-size:16px;font-weight:400;text-transform:uppercase}.neutral-calendar .vanilla-calendar-days{row-gap:8px;column-gap:8px}.neutral-calendar .vanilla-calendar-day{color:var(--color-navy)!important;padding:1px;font-size:16px;font-family:var(--font-proxima-nova);width:40px;height:30px}.neutral-calendar .vanilla-calendar-day__btn{font-size:16px;border-radius:0}.neutral-calendar .vanilla-calendar-day__btn_prev,.neutral-calendar .vanilla-calendar-day__btn_next{background-color:inherit;color:inherit}@media screen and (max-width: 768px){.neutral-calendar .vanilla-calendar-day{width:auto;height:auto}}.neutral-calendar .vanilla-calendar-day .available,.neutral-calendar .vanilla-calendar-day .pending{pointer-events:auto;cursor:pointer}.neutral-calendar .vanilla-calendar-day .available:not(.vanilla-calendar-day__btn_selected){background-color:#adea97!important;border:.5px solid var(--color-navy);font-size:16px;font-family:var(--font-proxima-nova);color:var(--color-navy)}.neutral-calendar .vanilla-calendar-day .available:not(.vanilla-calendar-day__btn_selected):hover{background-color:#9cd089!important}.neutral-calendar .vanilla-calendar-day .pending:not(.vanilla-calendar-day__btn_selected){background-color:#f2d705!important;border:.5px solid var(--color-navy);font-size:16px;font-family:var(--font-proxima-nova);color:var(--color-navy)!important}.neutral-calendar .vanilla-calendar-day .pending:not(.vanilla-calendar-day__btn_selected):hover{background-color:#9cd089!important}.neutral-calendar .vanilla-calendar-day .unavailable{background-color:#dbdbdb!important;border:.5px solid var(--color-navy);font-size:16px;font-family:var(--font-proxima-nova);color:var(--color-gray);pointer-events:none;cursor:not-allowed}.neutral-calendar .vanilla-calendar-day__btn_weekend{color:var(--color-gray)!important;font-size:16px;font-family:var(--font-proxima-nova);pointer-events:none;cursor:not-allowed}.neutral-calendar .vanilla-calendar-day__btn_disabled:not(.vanilla-calendar-day__btn_weekend){color:var(--color-gray)!important;font-size:16px;font-family:var(--font-proxima-nova)}.neutral-calendar .vanilla-calendar-day__popup{color:#fff!important;text-align:center;font-size:16px;font-family:var(--font-secondary)}.neutral-calendar .vanilla-calendar-day__popup:before{background-color:var(--color-navy);border-radius:4px;color:#fff}.neutral-calendar .vanilla-calendar-day__popup:after{border-bottom-color:var(--color-navy)}.neutral-calendar .vanilla-calendar-day__btn_selected{background-color:var(--color-navy)!important;border:.5px solid var(--color-navy);color:#fff!important;font-size:16px;font-family:var(--font-proxima-nova)}';/*! name: vanilla-calendar-pro v2.9.10 | url: https://github.com/uvarov-frontend/vanilla-calendar-pro */var vt=Object.defineProperty,ra=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Ce=(e,a,t)=>a in e?vt(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,la=(e,a)=>{for(var t in a||(a={}))ft.call(a,t)&&Ce(e,t,a[t]);if(ra)for(var t of ra(a))wt.call(a,t)&&Ce(e,t,a[t]);return e},g=(e,a,t)=>(Ce(e,typeof a!="symbol"?a+"":a,t),t);const St={calendar:"vanilla-calendar",calendarDefault:"vanilla-calendar_default",calendarMultiple:"vanilla-calendar_multiple",calendarMonth:"vanilla-calendar_month",calendarYear:"vanilla-calendar_year",calendarHidden:"vanilla-calendar_hidden",calendarToInput
710:"vanilla-calendar_to-input",calendarToInputTop:"vanilla-calendar_to-input_top",calendarToInputBottom:"vanilla-calendar_to-input_bottom",controls:"vanilla-calendar-controls",grid:"vanilla-calendar-grid",gridDisabled:"vanilla-calendar-grid_disabled",column:"vanilla-calendar-column",columnMonth:"vanilla-calendar-column_month",columnYear:"vanilla-calendar-column_year",header:"vanilla-calendar-header",headerContent:"vanilla-calendar-header__content",month:"vanilla-calendar-month",monthDisabled:"vanilla-calendar-month_disabled",year:"vanilla-calendar-year",yearDisabled:"vanilla-calendar-year_disabled",arrow:"vanilla-calendar-arrow",arrowPrev:"vanilla-calendar-arrow_prev",arrowNext:"vanilla-calendar-arrow_next",wrapper:"vanilla-calendar-wrapper",content:"vanilla-calendar-content",week:"vanilla-calendar-week",weekDay:"vanilla-calendar-week__day",weekDayWeekend:"vanilla-calendar-week__day_weekend",days:"vanilla-calendar-days",daysSelecting:"vanilla-calendar-days_selecting",months:"vanilla-calendar-months",monthsSelecting:"vanilla-calendar-months_selecting",monthsMonth:"vanilla-calendar-months__month",monthsMonthSelected:"vanilla-calendar-months__month_selected",monthsMonthDisabled:"vanilla-calendar-months__month_disabled",years:"vanilla-calendar-years",yearsSelecting:"vanilla-calendar-years_selecting",yearsYear:"vanilla-calendar-years__year",yearsYearSelected:"vanilla-calendar-years__year_selected",yearsYearDisabled:"vanilla-calendar-years__year_disabled",time:"vanilla-calendar-time",timeContent:"vanilla-calendar-time__content",timeHours:"vanilla-calendar-time__hours",timeMinutes:"vanilla-calendar-time__minutes",timeKeeping:"vanilla-calendar-time__keeping",timeRanges:"vanilla-calendar-time__ranges",timeRange:"vanilla-calendar-time__range",day:"vanilla-calendar-day",dayHoverFirst:"vanilla-calendar-day_hover-first",dayHoverLast:"vanilla-calendar-day_hover-last",dayHoverIntermediate:"vanilla-calendar-day_hover-intermediate",daySelectedFirst:"vanilla-calendar-day_selected-first",daySelectedLast:"vanilla-calendar-day_selected-last",daySelectedIntermediate:"vanilla-calendar-day_selected-intermediate",dayPopup:"vanilla-calendar-day__popup",dayBtn:"vanilla-calendar-day__btn",dayBtnPrev:"vanilla-calendar-day__btn_prev",dayBtnNext:"vanilla-calendar-day__btn_next",dayBtnToday:"vanilla-calendar-day__btn_today",dayBtnSelected:"vanilla-calendar-day__btn_selected",dayBtnHover:"vanilla-calendar-day__btn_hover",dayBtnDisabled:"vanilla-calendar-day__btn_disabled",dayBtnWeekend:"vanilla-calendar-day__btn_weekend",dayBtnHoliday:"vanilla-calendar-day__btn_holiday",weekNumbers:"vanilla-calendar-week-numbers",weekNumbersTitle:"vanilla-calendar-week-numbers__title",weekNumbersContent:"vanilla-calendar-week-numbers__content",weekNumber:"vanilla-calendar-week-number",isFocus:"vanilla-calendar-is-focus"},Ct=e=>`<div class="${e.controls}"><#ArrowPrev /><#ArrowNext /></div><div class="${e.grid}"><#Multiple><div class="${e.column}"><div class="${e.header}"><div class="${e.headerContent}"><#Month /><#Year /></div></div><div class="${e.wrapper}"><#WeekNumbers /><div class="${e.content}"><#Week /><#Days /></div></div></div><#/Multiple></div><#ControlTime />`,kt=e=>`<div class="${e.header}"><div class="${e.headerContent}"><#Month /><#Year /></div></div><div class="${e.wrapper}"><div class="${e.content}"><#Months /></div></div>`,Mt=e=>`<div class="${e.header}"><#ArrowPrev /><div class="${e.headerContent}"><#Month /><#Year /></div><#ArrowNext /></div><div class="${e.wrapper}"><div class="${e.content}"><#Years /></div></div>`;class xt{constructor(){var a;g(this,"isInit",!1),g(this,"isInputInit",!1),g(this,"input",!1),g(this,"type","default"),g(this,"months",2),g(this,"jumpMonths",1),g(this,"jumpToSelectedDate",!1),g(this,"toggleSelected",!0),g(this,"date",{min:"1970-01-01",max:"2470-12-31",today:new Date}),g(this,"settings",{lang:"en",iso8601:!0,range:{min:void 0,max:void 0,disablePast:!1,disableGaps:!1,edgesOnly:!1,disableAllDays:!1,disableWeekday:void 0,disabled:void 0,enabled:void 0},selection:{day:"single",month:!0,year:!0,time:!1,controlTime:"all",stepHours:1,stepMinutes:1,cancelableDay:!0}
710,selected:{dates:void 0,month:void 0,year:void 0,holidays:void 0,time:void 0},visibility:{theme:"system",themeDetect:"html[data-theme]",monthShort:!0,weekNumbers:!1,weekend:!0,today:!0,disabled:!1,daysOutside:!0,positionToInput:"left"}}),g(this,"locale",{months:[],weekday:[]}),g(this,"sanitizer",t=>t),g(this,"actions",{clickDay:null,clickWeekNumber:null,clickMonth:null,clickYear:null,clickArrow:null,changeTime:null,changeToInput:null,getDays:null,getMonths:null,getYears:null,initCalendar:null,updateCalendar:null,destroyCalendar:null,showCalendar:null,hideCalendar:null}),g(this,"popups",{}),g(this,"CSSClasses",la({},St)),g(this,"DOMTemplates",{default:(a=this.CSSClasses,`<div class="${a.header}"><#ArrowPrev /><div class="${a.headerContent}"><#Month /><#Year /></div><#ArrowNext /></div><div class="${a.wrapper}"><#WeekNumbers /><div class="${a.content}"><#Week /><#Days /></div></div><#ControlTime />`),multiple:Ct(this.CSSClasses),month:kt(this.CSSClasses),year:Mt(this.CSSClasses)}),g(this,"HTMLElement"),g(this,"HTMLOriginalElement"),g(this,"HTMLInputElement"),g(this,"rangeMin"),g(this,"rangeMax"),g(this,"rangeDisabled"),g(this,"rangeEnabled"),g(this,"selectedDates"),g(this,"selectedHolidays"),g(this,"selectedMonth"),g(this,"selectedYear"),g(this,"selectedHours"),g(this,"selectedMinutes"),g(this,"selectedKeeping"),g(this,"selectedTime"),g(this,"currentType"),g(this,"correctMonths"),g(this,"viewYear"),g(this,"dateMin"),g(this,"dateMax")}}const M=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,v=e=>new Date(`${e}T00:00:00`),B=e=>e.reduce((a,t)=>{if(t instanceof Date||typeof t=="number"){const r=t instanceof Date?t:new Date(t);a.push(r.toISOString().substring(0,10))}else t.match(/^(\d{4}-\d{2}-\d{2})$/g)?a.push(t):t.replace(/(\d{4}-\d{2}-\d{2}).*?(\d{4}-\d{2}-\d{2})/g,(r,n,l)=>{const i=v(n),o=v(l),s=new Date(i.getTime());for(;s<=o;s.setDate(s.getDate()+1))a.push(M(s));return r});return a},[]),oe=()=>{const e=new Date;return new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString().substring(0,10)},X=e=>e?{0:"12",13:"01",14:"02",15:"03",16:"04",17:"05",18:"06",19:"07",20:"08",21:"09",22:"10",23:"11"}[Number(e)]||String(e):"",q={notFoundSelector:e=>`${e} is not found, check the first argument passed to new VanillaCalendar.`,notInit:'The calendar has not been initialized, please initialize it using the "init()" method first.',notLocale:'You specified "define" for "settings.lang" but did not provide the required values for "locale.weekday" or "locale.months".',incorrectTheme:'Incorrect name of theme in "settings.visibility.theme".',incorrectTime:"The value of the time property can be: false, true, 12 or 24."},$t=e=>{var a;if(e.jumpToSelectedDate&&((a=e.settings.selected.dates)!=null&&a.length)&&e.settings.selected.month===void 0&&e.settings.selected.year===void 0){const n=v(B(e.settings.selected.dates)[0]);e.settings.selected.month=n.getMonth(),e.settings.selected.year=n.getFullYear()}const t=e.settings.selected.month!==void 0&&Number(e.settings.selected.month)>=0&&Number(e.settings.selected.month)<12,r=e.settings.selected.year!==void 0&&Number(e.settings.selected.year)>=0&&Number(e.settings.selected.year)<=9999;e.selectedMonth=t?Number(e.settings.selected.month):e.date.today.getMonth(),e.selectedYear=r?Number(e.settings.selected.year):e.date.today.getFullYear(),e.viewYear=e.selectedYear},Dt=e=>{var a,t,r;e.date.min==="today"&&(e.date.min=oe()),e.date.max==="today"&&(e.date.max=oe()),e.settings.range.min==="today"&&(e.settings.range.min=oe()),e.settings.range.max==="today"&&(e.settings.range.max=oe()),e.settings.range.min=e.settings.range.min?v(e.date.min)>=v(e.settings.range.min)?e.date.min:e.settings.range.min:e.date.min,e.settings.range.max=e.settings.range.max?v(e.date.max)<=v(e.settings.range.max)?e.date.max:e.settings.range.max:e.date.max;const n=e.settings.range.disablePast&&!e.settings.range.disableAllDays&&v(e.settings.range.min)<e.date.today;e.rangeMin=n||e.settings.range.disableAllDays?M(e.date.today):e.settings.range.min,e.rangeMax=e.settings.range.disableAllDays?M(e.date.today):e.settings.range.max,e.rangeDisabled=e.settings.range.disabled&&!e.settings.range.disableAllDays?B(e.settings.range.disabled):e.settings.range.disableAllDays?[e.rangeMin]:[],e.rangeDisabled.length>1&&e.rangeDisabled.sort((l,i)=>+new Date(l)-+new Date(i)),e.rangeEnabled=e.settings.range.enabled?B(e.settings.range.enabled):[],(a=e.rangeEnabled)!=null&&a[0]&&((t=e.rangeDisabled)!=null&&t[0])&&(e.rangeDisabled=e.rangeDisabled.filter(l=>!e.rangeEnabled.includes(l))),e.rangeEnabled.length>1&&e.rangeEnabled.sort((l,i)=>+new Date(l)-+new Date(i)),(r=e.rangeEnabled)!=null&&r[0]&&e.settings.range.disableAllDays&&(e.rangeMin=e.rangeEnabled[0],e.rangeMax=e.rangeEnabled[e.rangeEnabled.length-1])},At=e=>{var a,t;e.selectedDates=(a=e.settings.selected.dates)!=null&&a[0]?B(e.settings.selected.dates):[],e.selectedHolidays=(t=e.settings.selected.holidays)!=null&&t[0]?B(e.settings.selected.holidays):[]},Tt=e=>{e.dateMin=e.settings.visibility.disabled?v(e.date.min):v(e.rangeMin),e.dateMax=e.settings.visibility.disabled?v(e.date.max):v(e.rangeMax)},Et=e=>{const a=e.settings.selection.time===!0||e.settings.selection.time===12;if(a||e.settings.selection.time===24){let t=!1;if(typeof e.settings.selected.time=="string"){const r=a?/^([0-9]|0[1-9]|1[0-2]):([0-5][0-9])|(AM|PM)/g:/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])/g;e.settings.selected.time.replace(r,(n,l,i,o)=>(l&&i&&(t=!0,e.selectedHours=l,e.selectedMinutes=i),o&&a?e.selectedKeeping=o:a&&(e.selectedKeeping="AM"),""))}!t&&a?(e.selectedHours=X(String(e.date.today.getHours())),e.selectedMinutes=String(e.date.today.getMinutes()),e.selectedKeeping=Number(e.date.today.getHours())>=12?"PM":"AM"):t||(e.selectedHours=String(e.date.today.getHours()),e.selectedMinutes=String(e.date.today.getMinutes())),e.selectedHours=Number(e.selectedHours)<10?`0${Number(e.selectedHours)}`:`${e.selectedHours}`,e.selectedMinutes=Number(e.selectedMinutes)<10?`0${Number(e.selectedMinutes)}`:`${e.selectedMinutes}`,e.selectedTime=`${e.selectedHours}:${e.selectedMinutes}${e.selectedKeeping?` ${e.selectedKeeping}`:""}`}else if(e.settings.selection.time)throw new Error(q.incorrectTime)},Lt=e=>{e.correctMonths=e.type==="multiple"?e.months===1?2:e.months>12?12:e.months:1},ia=e=>{e.currentType=e.type,$t(e),Dt(e),At(e),Tt(e),Et(e),Lt(e)},oa=({arrowPrev:e,arrowNext:a,isPrevHidden:t,isNextHidden:r})=>{e.style.visibility=t?"hidden":"",a.style.visibility=r?"hidden":""},ke=e=>{var a,t;if(e.currentType==="month")return;const r=(a=e.HTMLElement)==null?void 0:a.querySelector(`.${e.CSSClasse
710s.arrowPrev}`),n=(t=e.HTMLElement)==null?void 0:t.querySelector(`.${e.CSSClasses.arrowNext}`);!r||!n||{default:()=>{const l=v(M(new Date(e.selectedYear,e.selectedMonth,1))),i=new Date(l.getTime()),o=new Date(l.getTime());i.setMonth(i.getMonth()-e.jumpMonths),o.setMonth(o.getMonth()+e.jumpMonths),e.settings.selection.year||(e.dateMin.setFullYear(l.getFullYear()),e.dateMax.setFullYear(l.getFullYear()));const s=!e.settings.selection.month||i.getFullYear()<e.dateMin.getFullYear()||i.getFullYear()===e.dateMin.getFullYear()&&i.getMonth()<e.dateMin.getMonth(),c=!e.settings.selection.month||o.getFullYear()>e.dateMax.getFullYear()||o.getFullYear()===e.dateMax.getFullYear()&&o.getMonth()>e.dateMax.getMonth();oa({arrowPrev:r,arrowNext:n,isPrevHidden:s,isNextHidden:c})},year:()=>{oa({arrowPrev:r,arrowNext:n,isPrevHidden:e.dateMin.getFullYear()&&e.viewYear-7<=e.dateMin.getFullYear(),isNextHidden:e.dateMax.getFullYear()&&e.viewYear+7>=e.dateMax.getFullYear()})}}[e.currentType==="multiple"?"default":e.currentType]()},da=(e,a)=>{if(!e)return null;const t=v(e),r=a?t.getDay()||7:t.getDay();t.setDate(t.getDate()+4-r);const n=new Date(t.getFullYear(),0,1),l=Math.ceil(((+t-+n)/864e5+1)/7);return{year:t.getFullYear(),week:l}};function Me(e){if(!e||!e.getBoundingClientRect)return{top:0,bottom:0,left:0,right:0};const a=e.getBoundingClientRect(),t=document.documentElement;return{bottom:a.bottom,right:a.right,top:a.top+window.scrollY-t.clientTop,left:a.left+window.scrollX-t.clientLeft}}function It(){return{left:window.scrollX||document.documentElement.scrollLeft||0,top:window.scrollY||document.documentElement.scrollTop||0}}function xe(){return{vw:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),vh:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}function Nt(e){const{top:a,left:t}=It(),{top:r,left:n}=Me(e),{vh:l,vw:i}=xe(),o=r-a,s=n-t;return{top:o,bottom:l-(o+e.clientHeight),left:s,right:i-(s+e.clientWidth)}}function sa(e,a,t=5){const r={top:!0,bottom:!0,left:!0,right:!0},n=[];if(!a||!e)return{canShow:r,parentPositions:n};const{bottom:l,top:i}=Nt(e),{top:o,left:s}=Me(e),{height:c,width:d}=a.getBoundingClientRect(),{vh:h,vw:u}=xe(),m=u/2,b=h/2;return[{condition:o<b,position:"top"},{condition:o>b,position:"bottom"},{condition:s<m,position:"left"},{condition:s>m,position:"right"}].forEach(({condition:x,position:R})=>{x&&n.push(R)}),Object.assign(r,{top:c<=i-t,bottom:c<=l-t,left:d<=s,right:d<=u-s}),{canShow:r,parentPositions:n}}function jt(e,a){const t="left";if(!a||!e)return t;const{canShow:r,parentPositions:n}=sa(e,a),l=r.left&&r.right;return(l&&r.bottom?"center":l&&r.top?["top","center"]:Array.isArray(n)?[n[0]==="bottom"?"top":"bottom",...n.slice(1)]:n)||t}const $e=(e,a,t,r)=>{if(e){const n=t==="auto"?jt(e,a):t,l={top:-a.offsetHeight,bottom:e.offsetHeight,left:0,center:e.offsetWidth/2-a.offsetWidth/2,right:e.offsetWidth-a.offsetWidth},i=Array.isArray(n)?n[0]:"bottom",o=Array.isArray(n)?n[1]:n;i==="bottom"?(a.classList.remove(r.calendarToInputTop),a.classList.add(r.calendarToInputBottom)):(a.classList.remove(r.calendarToInputBottom),a.classList.add(r.calendarToInputTop));const{top:s,left:c}=Me(e),d=s+l[i];let h=c+l[o];const{vw:u}=xe();if(h+a.clientWidth>u){const m=window.innerWidth-document.body.clientWidth;h=u-a.clientWidth-m}else h<0&&(h=0);Object.assign(a.style,{left:`${h}px`,top:`${d}px`})}},Ht=(e,a,t,r)=>{const n=e.CSSClasses.dayPopup,l=r.querySelector(`[data-calendar-day="${a}"]`);if(l&&(t!=null&&t.modifier&&l.classList.add(...t.modifier.trim().split(" ")),t==null?void 0:t.html)){const i=l.parentElement,o=document.createElement("div");o.className=n,o.innerHTML=e.sanitizer(t.html),i.appendChild(o),setTimeout(()=>{if(o){const{canShow:s}=sa(i,o),c=5;let d=i.offsetHeight,h=0;s.bottom||(d=-o.offsetHeight-c),s.left&&!s.right&&(h=i.offsetWidth-o.offsetWidth/2),!s.left&&s.right&&(h=o.offsetWidth/2),Object.assign(o.style,{left:`${h}px`,top:`${d}px`})}})}},Pt=(e,a)=>{var t;e.popups&&((t=Object.entries(e.popups))==null||t.forEach(([r,n])=>Ht(e,r,n,a)))},Yt=(e,a,t,r,n)=>
710{const l=a[t].querySelector(`.${e.CSSClasses.dayBtn}`),i=da(l==null?void 0:l.dataset.calendarDay,e.settings.iso8601);if(!i)return;const o=r.cloneNode(!0);o.innerText=String(i.week),o.dataset.calendarYearWeek=String(i.year),n.appendChild(o)},Ot=(e,a,t,r,n)=>{if(!e.settings.visibility.weekNumbers)return;r.textContent="";const l=document.createElement("b");l.className=e.CSSClasses.weekNumbersTitle,l.innerText="#",r.appendChild(l);const i=document.createElement("div");i.className=e.CSSClasses.weekNumbersContent,r.appendChild(i);const o=document.createElement("button");o.type="button",o.className=e.CSSClasses.weekNumber;const s=n.querySelectorAll(`.${e.CSSClasses.day}`),c=Math.ceil((a+t)/7);for(let d=0;d<c;d++)Yt(e,s,d===0?6:7*d,o,i)},zt=(e,a,t)=>{var r,n,l,i,o;const s=(r=e.settings.range.disableWeekday)==null?void 0:r.includes(t),c=e.settings.range.disableAllDays&&!!((n=e.rangeEnabled)!=null&&n[0]);!s&&!c||(l=e.rangeEnabled)!=null&&l.includes(a)||(i=e.rangeDisabled)!=null&&i.includes(a)||(e.rangeDisabled.push(a),(o=e.rangeDisabled)==null||o.sort((d,h)=>+new Date(d)-+new Date(h)))},Rt=(e,a,t,r,n,l,i)=>{var o,s,c;if((v(e.rangeMin)>v(l)||v(e.rangeMax)<v(l)||(o=e.rangeDisabled)!=null&&o.includes(l)||!e.settings.selection.month&&i||!e.settings.selection.year&&v(l).getFullYear()!==a)&&(r.classList.add(e.CSSClasses.dayBtnDisabled),r.tabIndex=-1),e.settings.visibility.today&&M(e.date.today)===l&&r.classList.add(e.CSSClasses.dayBtnToday),!e.settings.visibility.weekend||n!==0&&n!==6||r.classList.add(e.CSSClasses.dayBtnWeekend),(s=e.selectedHolidays)!=null&&s.includes(l)&&r.classList.add(e.CSSClasses.dayBtnHoliday),(c=e.selectedDates)!=null&&c.includes(l)&&(r.classList.add(e.CSSClasses.dayBtnSelected),e.selectedDates.length>1&&e.settings.selection.day==="multiple-ranged"&&(e.selectedDates[0]===l&&t.classList.add(e.CSSClasses.daySelectedFirst),e.selectedDates[e.selectedDates.length-1]===l&&t.classList.add(e.CSSClasses.daySelectedLast),e.selectedDates[0]!==l&&e.selectedDates[e.selectedDates.length-1]!==l&&t.classList.add(e.CSSClasses.daySelectedIntermediate))),e.settings.range.edgesOnly&&e.selectedDates.length>1&&e.settings.selection.day==="multiple-ranged"){const d=+new Date(e.selectedDates[0]),h=+new Date(e.selectedDates[e.selectedDates.length-1]),u=+new Date(l);u>d&&u<h&&(r.classList.add(e.CSSClasses.dayBtnSelected),t.classList.add(e.CSSClasses.daySelectedIntermediate))}},De=(e,a,t,r,n,l,i,o)=>{const s=document.createElement("div");s.className=e.CSSClasses.day;const c=document.createElement("button");c.className=`${e.CSSClasses.dayBtn}${o?` ${o}`:""}`,c.type="button",c.innerText=String(r),c.dataset.calendarDay=l,e.settings.visibility.weekNumbers&&(()=>{const d=da(l,e.settings.iso8601);d&&(c.dataset.calendarWeekNumber=String(d.week))})(),i?e.settings.visibility.daysOutside&&s.appendChild(c):s.appendChild(c),zt(e,l,n),Rt(e,a,s,c,n,l,i),t.appendChild(s),e.actions.getDays&&e.actions.getDays(r,l,s,c,e)},Ut=(e,a,t,r,n)=>{let l=new Date(t,r,0).getDate()-(n-1);const i=r===0?t-1:t,o=r===0?12:r<10?`0${r}`:r;for(let s=n;s>0;s--,l++){const c=`${i}-${o}-${l}`,d=v(c).getDay();De(e,t,a,l,d,c,!0,e.CSSClasses.dayBtnPrev)}},Ft=(e,a,t,r,n)=>{for(let l=1;l<=t;l++){const i=new Date(r,n,l),o=M(i),s=i.getDay();De(e,r,a,l,s,o,!1,null)}},Bt=(e,a,t,r,n,l)=>{const i=l+t,o=7*Math.ceil(i/7)-i,s=n+1===12?r+1:r,c=n+1===12?"01":n+2<10?`0${n+2}`:n+2;for(let d=1;d<=o;d++){const h=`${s}-${c}-${d<10?`0${d}`:String(d)}`,u=v(h).getDay();De(e,r,a,d,u,h,!0,e.CSSClasses.dayBtnNext)}},de=e=>{const a=e.HTMLElement.querySelectorAll(`.${e.CSSClasses.days}`),t=e.HTMLElement.querySelectorAll(`.${e.CSSClasses.weekNumbers}`),r=new Date(e.selectedYear,e.selectedMonth,1);a.forEach((n,l)=>{const i=new Date(r);i.setMonth(i.getMonth()+l);const o=i.getMonth(),s=i.getFullYear(),c=new Date(s,o,1),d=new Date(s,o+1,0).getDate(),h=e.settings.iso8601?(c.getDay()!==0?c.getDay():7)-1:c.getDay();e.settings.selection.day&&n.classList.add(e.CSSClasses.daysSelecting),n.textContent="",Ut(e,n,s,o,h),Ft(e,n,d,s,o),Bt(e,n,d,s,o,h),Ot(e,h,d,t[l],n),Pt(e,n)})},qt=(e,a,t,r)=>{const n=new Date(r.setMonth(e.selectedMonth+t)).getMonth(),l=e.settings.selection.month===!1||e.settings.selection.month==="only-arrows";
710a.tabIndex=l?-1:0,a.classList.toggle(e.CSSClasses.monthDisabled,l),a.setAttribute("data-calendar-selected-month",String(n)),a.innerText=e.locale.months[n]},Wt=(e,a,t,r)=>{const n=new Date(r.setFullYear(e.selectedYear,e.selectedMonth+t)).getFullYear(),l=e.settings.selection.year===!1||e.settings.selection.year==="only-arrows";a.tabIndex=l?-1:0,a.classList.toggle(e.CSSClasses.yearDisabled,l),a.setAttribute("data-calendar-selected-year",String(n)),a.innerText=String(n)},se=e=>{var a,t;const r=(a=e.HTMLElement)==null?void 0:a.querySelectorAll("[data-calendar-selected-month]"),n=(t=e.HTMLElement)==null?void 0:t.querySelectorAll("[data-calendar-selected-year]");if(!(r!=null&&r[0])&&(n!=null&&n[0]))return;const l=new Date(e.selectedYear,e.selectedMonth,1);r==null||r.forEach((i,o)=>qt(e,i,o,l)),n==null||n.forEach((i,o)=>Wt(e,i,o,l))},Ae=(e,a)=>{const t=v(M(new Date(e.selectedYear,e.selectedMonth,1)));({prev:()=>t.setMonth(t.getMonth()-e.jumpMonths),next:()=>t.setMonth(t.getMonth()+e.jumpMonths)})[a](),[e.selectedMonth,e.selectedYear]=[t.getMonth(),t.getFullYear()],se(e),ke(e),de(e)},Jt=e=>`<button type="button"class="${e.CSSClasses.arrow} ${e.CSSClasses.arrowPrev}"data-calendar-arrow="prev"></button>`,Zt=e=>`<button type="button"class="${e.CSSClasses.arrow} ${e.CSSClasses.arrowNext}"data-calendar-arrow="next"></button>`,Gt=e=>`<button type="button"class="${e.CSSClasses.month}"data-calendar-selected-month></button>`,Kt=e=>`<button type="button"class="${e.CSSClasses.year}"data-calendar-selected-year></button>`,Vt=e=>`<div class="${e.CSSClasses.week}"></div>`,Qt=e=>`<div class="${e.CSSClasses.days}"></div>`,Xt=e=>`<div class="${e.CSSClasses.months}"></div>`,en=e=>`<div class="${e.CSSClasses.years}"></div>`,an=e=>e.settings.visibility.weekNumbers?`<div class="${e.CSSClasses.weekNumbers}"></div>`:"",tn=e=>e.settings.selection.time?`<div class="${e.CSSClasses.time}"></div>`:"",nn=Object.freeze(Object.defineProperty({__proto__:null,ArrowNext:Zt,ArrowPrev:Jt,ControlTime:tn,Days:Qt,Month:Gt,Months:Xt,Week:Vt,WeekNumbers:an,Year:Kt,Years:en},Symbol.toStringTag,{value:"Module"})),ee=(e,a)=>a.replace(/[\n\t]/g,"").replace(/<#(?!\/?Multiple)(.*?)>/g,(t,r)=>{const n=(l=r.replace(/[/\s\n\t]/g,""),nn[l]);var l;const i=n?n(e):"";return e.sanitizer(i)}).replace(/[\n\t]/g,""),rn=(e,a)=>a.replace(/<#Multiple>(.*?)<#\/Multiple>/g,(t,r)=>{let n="";for(let l=0;l<e.correctMonths;l++)n+=r;return e.sanitizer(n)}).replace(/[\n\t]/g,""),Te=(e,a)=>{const{HTMLElement:t,CSSClasses:r,DOMTemplates:n,type:l,currentType:i,correctMonths:o}=e,s=(d,h)=>{if(!a)return;const u=t.querySelector(`.${r.controls}`);u&&t.removeChild(u),t.querySelector(`.${r.grid}`).classList.add(r.gridDisabled);const m=a.closest(`.${r.column}`);m.classList.add(d),m.innerHTML=ee(e,h)},c={default:()=>{t.classList.add(r.calendarDefault),t.classList.remove(r.calendarMonth,r.calendarYear),t.innerHTML=ee(e,n.default)},multiple:()=>{o&&(t.classList.add(r.calendarMultiple),t.classList.remove(r.calendarMonth,r.calendarYear),t.innerHTML=rn(e,ee(e,n.multiple)))},month:()=>{l!=="multiple"?(t.classList.add(r.calendarMonth),t.classList.remove(r.calendarDefault,r.calendarYear),t.innerHTML=ee(e,n.month)):s(r.columnMonth,n.month)},year:()=>{l!=="multiple"?(t.classList.add(r.calendarYear),t.classList.remove(r.calendarDefault,r.calendarMonth),t.innerHTML=ee(e,n.year)):s(r.columnYear,n.year)}};t.classList.add(r.calendar),c[i]()},ln=(e,a,t,r,n)=>{const l=a.cloneNode(!1);return l.className=`${e.CSSClasses.yearsYear}${t===n?` ${e.CSSClasses.yearsYearSelected}`:r?` ${e.CSSClasses.yearsYearDisabled}`:""}`,l.dataset.calendarYear=String(n),l.title=String(n),l.innerText=String(n),r&&(l.tabIndex=-1),l},Ee=(e,a)=>{const t=a!=null&&a.dataset.calendarSelectedYear?Number(a==null?void 0:a.dataset.calendarSelectedYear):e.selectedYear;e.currentType="year",Te(e,a),se(e),ke(e);const r=e.HTMLElement.querySelector(`.${e.CSSClasses.years}`);if(!e.settings.selection.year||!r)return;r.classList.add(e.CSSClasses.yearsSelecting);const n=e.type!=="multiple"||e.selectedYear===t?0:1,l=document.createElement("button");l.type="button";for(let i=e.viewYear-7;i<e.viewYear+8;i++){const o=i<e.dateMin.getFullYear()+n||i>e.dateMax.getFullYear(),s=ln(e,l,t,o,i);r.appendChild(s),e.actions.getYears&&e.actions.getYears(i,s,e)}},on=(e,a)=>
710{const t=a.target.closest(`.${e.CSSClasses.arrow}`);t&&(["default","multiple"].includes(e.currentType)?Ae(e,t.dataset.calendarArrow):e.currentType==="year"&&e.viewYear!==void 0&&(e.viewYear+={prev:-15,next:15}[t.dataset.calendarArrow],Ee(e,a.target)),e.actions.clickArrow&&e.actions.clickArrow(a,e))},dn=(e,a)=>{var t;if(!e.settings.visibility.weekNumbers||!e.actions.clickWeekNumber)return;const r=a.target.closest(`.${e.CSSClasses.weekNumber}`),n=(t=e.HTMLElement)==null?void 0:t.querySelectorAll("[data-calendar-week-number]");if(!r||!n)return;const l=Number(r.innerText),i=Number(r.dataset.calendarYearWeek),o=Array.from(n).filter(s=>Number(s.dataset.calendarWeekNumber)===l);e.actions.clickWeekNumber(a,l,o,i,e)},ca=e=>`${e.charAt(0).toUpperCase()}${e.substring(1,e.length)}`.replace(/\./,""),sn=(e,a)=>{const t=new Date(`1978-01-0${a+1}T00:00:00.000Z`).toLocaleString(e.settings.lang,{weekday:"short",timeZone:"UTC"});e.locale.weekday.push(ca(t))},cn=(e,a)=>{const t=new Date(`1978-${a+1<=9?`0${a+1}`:a+1}-01T00:00:00.000Z`).toLocaleString(e.settings.lang,{month:"long",timeZone:"UTC"});e.locale.months.push(ca(t))},hn=e=>{if(e.settings.lang!=="define"||!e.locale.weekday[6]||!e.locale.months[11]){if(e.settings.lang==="define")throw new Error(q.notLocale);e.locale.weekday=[],e.locale.months=[];for(let a=0;a<7;a++)sn(e,a);for(let a=0;a<12;a++)cn(e,a)}},ha=e=>{if(e.type!=="multiple")return 0;const a=e.HTMLElement.querySelectorAll(`.${e.CSSClasses.column}`),t=Array.from(a).findIndex(r=>r.classList.contains(`${e.CSSClasses.columnMonth}`));return t>0?t:0},un=(e,a,t,r,n,l)=>{const i=a.cloneNode(!1);return i.className=`${e.CSSClasses.monthsMonth}${t===l?` ${e.CSSClasses.monthsMonthSelected}`:n?` ${e.CSSClasses.monthsMonthDisabled}`:""}`,i.title=r,i.innerText=`${e.settings.visibility.monthShort?r.substring(0,3):r}`,i.dataset.calendarMonth=String(l),n&&(i.tabIndex=-1),i},ua=(e,a)=>{var t,r;const n=a!=null&&a.dataset.calendarSelectedMonth?Number(a.dataset.calendarSelectedMonth):e.selectedMonth,l=(t=a==null?void 0:a.closest(`.${e.CSSClasses.column}`))==null?void 0:t.querySelector(`.${e.CSSClasses.year}`),i=l?Number(l.dataset.calendarSelectedYear):e.selectedYear;e.currentType="month",Te(e,a),se(e);const o=(r=e.HTMLElement)==null?void 0:r.querySelector(`.${e.CSSClasses.months}`);if(!e.settings.selection.month||!o)return;o.classList.add(e.CSSClasses.monthsSelecting);const s=e.jumpMonths>1?e.locale.months.map((d,h)=>n-e.jumpMonths*h).concat(e.locale.months.map((d,h)=>n+e.jumpMonths*h)).filter(d=>d>=0&&d<=12):Array.from(Array(12).keys()),c=document.createElement("button");c.type="button";for(let d=0;d<12;d++){const h=e.locale.months[d],u=d<e.dateMin.getMonth()+ha(e)&&i<=e.dateMin.getFullYear()||d>e.dateMax.getMonth()+ha(e)&&i>=e.dateMax.getFullYear()||d!==n&&!s.includes(d),m=un(e,c,n,h,u,d);o.appendChild(m),e.actions.getMonths&&e.actions.getMonths(d,m,e)}},Le=(e,a)=>e&&a?{0:{AM:"00",PM:"12"},1:{AM:"01",PM:"13"},2:{AM:"02",PM:"14"},3:{AM:"03",PM:"15"},4:{AM:"04",PM:"16"},5:{AM:"05",PM:"17"},6:{AM:"06",PM:"18"},7:{AM:"07",PM:"19"},8:{AM:"08",PM:"20"},9:{AM:"09",PM:"21"},10:{AM:"10",PM:"22"},11:{AM:"11",PM:"23"},12:{AM:"12",PM:"12"}}[Number(e)][a]:"",ce=(e,a,t)=>e.querySelector(`.${a}${t?` input[name="${t}"]`:""}`),_a=(e,a,t)=>{e.addEventListener("mouseover",()=>a.classList.add(t)),e.addEventListener("mouseout",()=>a.classList.remove(t))},O=(e,a,t,r)=>{({hours:()=>{e.selectedHours=t},minutes:()=>{e.selectedMinutes=t}})[r](),e.selectedTime=`${e.selectedHours}:${e.selectedMinutes}${e.selectedKeeping?` ${e.selectedKeeping}`:""}`,e.actions.changeTime&&e.actions.changeTime(a,e),e.input&&e.HTMLInputElement&&e.actions.changeToInput&&e.actions.changeToInput(a,e)},ma=(e,a,t,r,n,l)=>{a.addEventListener("input",i=>{const o=i.target,s=Number(o.value),c=s<10?`0${s}`:`${s}`;if(n!=="hours"||l!==12)return t.value=c,void O(e,i,c,n);s<l&&s>0?(t.value=c,e.selectedKeeping="AM",r.innerText=e.selectedKeeping,O(e,i,c,n)):(s===0?(e.selectedKeeping="AM",r.innerText="AM"):(e.selectedKeeping="PM",r.innerText="PM"),t.value=X(o.value),O(e,i,X(o.value),n))})},ga=(e,a,t,r,n,l)=>{t.addEventListener("change",i=>
710{const o=i.target,s=Number(o.value),c=s<10?`0${s}`:`${s}`;n==="hours"&&l===12?o.value&&s<=l&&s>0?(o.value=c,a.value=Le(c,e.selectedKeeping),O(e,i,c,n)):o.value&&s<24&&(s>l||s===0)?(s===0?(e.selectedKeeping="AM",r.innerText="AM"):(e.selectedKeeping="PM",r.innerText="PM"),o.value=X(o.value),a.value=c,O(e,i,X(o.value),n)):o.value=e.selectedHours:o.value&&s<=l&&s>=0?(o.value=c,a.value=c,O(e,i,c,n)):n==="hours"?o.value=e.selectedHours:n==="minutes"&&(o.value=e.selectedMinutes)})},_n=(e,a,t)=>{a.addEventListener("click",r=>{e.selectedKeeping=a.innerText.includes("AM")?"PM":"AM",a.innerText=e.selectedKeeping,t.value=Le(e.selectedHours,e.selectedKeeping),O(e,r,e.selectedHours,"hours")})},mn=(e,a,t)=>{const r=t===24?23:t||12,n=ce(a,e.CSSClasses.timeRange,"hours"),l=ce(a,e.CSSClasses.timeRange,"minutes"),i=ce(a,e.CSSClasses.timeHours,"hours"),o=ce(a,e.CSSClasses.timeMinutes,"minutes"),s=a.querySelector(`.${e.CSSClasses.timeKeeping}`);_a(n,i,e.CSSClasses.isFocus),_a(l,o,e.CSSClasses.isFocus),ma(e,n,i,s,"hours",r),ma(e,l,o,s,"minutes",0),ga(e,n,i,s,"hours",r),ga(e,l,o,s,"minutes",59),s&&_n(e,s,n)},ya=(e,a,t,r)=>`<label class="${a}"><input type="text"name="${e}"maxlength="2"value="${t}"${r?"disabled":""}></label>`,ba=(e,a,t,r,n,l)=>`<label class="${a}"><input type="range"name="${e}"min="${t}"max="${r}"step="${n}"value="${l}"></label>`,gn=e=>{const a=e.HTMLElement.querySelector(`.${e.CSSClasses.time}`);if(!a)return;const t=e.settings.selection.time===!0?12:e.settings.selection.time,r=e.settings.selection.controlTime==="range",[n,l]=[0,23],[i,o]=[0,59];a.innerHTML=e.sanitizer(`<div class="${e.CSSClasses.timeContent}">${ya("hours",e.CSSClasses.timeHours,e.selectedHours,r)}${ya("minutes",e.CSSClasses.timeMinutes,e.selectedMinutes,r)}${t===12?`<button type="button" class="${e.CSSClasses.timeKeeping}"${r?"disabled":""}>${e.selectedKeeping}</button>`:""}</div><div class="${e.CSSClasses.timeRanges}">${ba("hours",e.CSSClasses.timeRange,n,l,e.settings.selection.stepHours,e.selectedKeeping?Le(e.selectedHours,e.selectedKeeping):e.selectedHours)}${ba("minutes",e.CSSClasses.timeRange,i,o,e.settings.selection.stepMinutes,e.selectedMinutes)}</div>`),mn(e,a,t)},yn=(e,a,t)=>{const r=document.createElement("b");a.textContent="";for(let n=0;n<t.length;n++){const l=t[n],i=r.cloneNode(!0);i.className=`${e.CSSClasses.weekDay}`,i.className=`${e.CSSClasses.weekDay}${e.settings.visibility.weekend&&e.settings.iso8601?n===5||n===6?` ${e.CSSClasses.weekDayWeekend}`:"":e.settings.visibility.weekend&&!e.settings.iso8601&&(n===0||n===6)?` ${e.CSSClasses.weekDayWeekend}`:""}`,i.innerText=`${l}`,a.appendChild(i)}},pa=e=>{const a=[...e.locale.weekday];a[0]&&(e.settings.iso8601&&a.push(a.shift()),e.HTMLElement.querySelectorAll(`.${e.CSSClasses.week}`).forEach(t=>yn(e,t,a)))},va=["light","dark","system"],he={value:!1,set:()=>{he.value=!0},check:()=>he.value},fa=(e,a)=>va.find(t=>{var r;return t!=="system"&&((r=e.getAttribute(a))==null?void 0:r.includes(t))}),z=(e,a)=>{e.dataset.calendarTheme=a},wa=(e,a)=>{var t;if(t=a,z(e.HTMLElement,t.matches?"dark":"light"),e.settings.visibility.theme!=="system"||he.check())return;const r=n=>{const l=document.querySelectorAll(`.${e.CSSClasses.calendar}`);l==null||l.forEach(i=>z(i,n.matches?"dark":"light"))};a.addEventListener?a.addEventListener("change",r):a.addListener(r),he.set()},bn=(e,a,t)=>{new MutationObserver(r=>{for(let n=0;n<r.length;n++)if(r[n].attributeName===t){const l=fa(a,t);l&&z(e.HTMLElement,l);break}}).observe(a,{attributes:!0})},pn=(e,a)=>{const t=e.settings.visibility.themeDetect?document.querySelector(e.settings.visibility.themeDetect):null;if(!t)return void wa(e,a);const r=e.settings.visibility.themeDetect.replace(/^.*\[(.+)\]/g,(l,i)=>i),n=fa(t,r);n?(z(e.HTMLElement,n),bn(e,t,r)):wa(e,a)},vn=e=>{if(!va.includes(e.settings.visibility.theme))throw new Error(q.incorrectTheme);if(window.matchMedia("(prefers-color-scheme)").media==="not all")return void z(e.HTMLElement,"light");({light:()=>z(e.HTMLElement,"light"),dark:()=>z(e.HTMLElement,"dark"),system:()=>pn(e,window.matchMedia("(prefers-color-scheme: dark)"))})[e.settings.visibility.theme]()},ae=e=>{const a={default:()=>{pa(e),de(e)},multiple:()=>{pa(e),de(e)},month:()=>ua(e),year:()=>Ee(e)};vn(e),hn(e),Te(e),se(e),ke(e),gn(e),a[e.currentType]()},y={self:null,rangeMin:void 0,rangeMax:void 0},Sa=()=>{var e;if(!((e=y.self)!=null&&e.HTMLElement))return;
710const{CSSClasses:a}=y.self;y.self.HTMLElement.querySelectorAll(`.${y.self.CSSClasses.dayBtnHover}`).forEach(t=>{var r;t.classList.remove(y.self.CSSClasses.dayBtnHover),(r=t.parentElement)==null||r.classList.remove(a.dayHoverIntermediate,a.dayHoverFirst,a.dayHoverLast)})},fn=(e,a,t)=>{var r,n,l;if(!((r=y.self)!=null&&r.selectedDates))return;const i=M(e),{CSSClasses:o}=y.self;if((n=y.self.rangeDisabled)!=null&&n.includes(i))return;const s=(l=y.self.HTMLElement)==null?void 0:l.querySelectorAll(`[data-calendar-day="${i}"]`);s==null||s.forEach(c=>{var d;c.classList.add(o.dayBtnHover),(d=c.parentElement)==null||d.classList.add(o.dayHoverIntermediate)}),a==null||a.forEach(c=>{var d;return(d=c.parentElement)==null?void 0:d.classList.add(o.dayHoverFirst)}),t==null||t.forEach(c=>{var d;return(d=c.parentElement)==null?void 0:d.classList.add(o.dayHoverLast)})},Ie=e=>{var a;if(!e.target||!((a=y.self)!=null&&a.selectedDates))return;if(!e.target.closest(`.${y.self.CSSClasses.days}`))return void Sa();const t=e.target.closest("[data-calendar-day]");if(!t)return;const r=t.dataset.calendarDay,n=v(y.self.selectedDates[0]),l=v(r),i=y.self.HTMLElement.querySelectorAll(`[data-calendar-day="${y.self.selectedDates[0]}"]`),o=y.self.HTMLElement.querySelectorAll(`[data-calendar-day="${r}"]`),[s,c]=n<l?[i,o]:[o,i],[d,h]=n<l?[n,l]:[l,n];Sa();for(let u=new Date(d);u<=h;u.setDate(u.getDate()+1))fn(u,s,c)},Ne=e=>{y.self&&e.key==="Escape"&&(y.self.selectedDates=[],y.self.HTMLElement.removeEventListener("mousemove",Ie),document.removeEventListener("keydown",Ne),ae(y.self))},wn=()=>{var e,a,t;if(!((a=(e=y.self)==null?void 0:e.selectedDates)!=null&&a[0])||!((t=y.self.rangeDisabled)!=null&&t[0]))return;const r=v(y.self.selectedDates[0]),[n,l]=y.self.rangeDisabled.map(i=>v(i)).reduce(([i,o],s)=>[r>=s?s:i,r<s&&o===null?s:o],[null,null]);n&&(y.self.rangeMin=M(new Date(n.setDate(n.getDate()+1)))),l&&(y.self.rangeMax=M(new Date(l.setDate(l.getDate()-1))))},Ca=(e,a)=>{var t;if(a){const r=e.selectedDates.length===1&&e.selectedDates[0].includes(a);e.selectedDates=r&&!e.settings.selection.cancelableDay?[a,a]:r&&e.settings.selection.cancelableDay?[]:e.selectedDates.length>1?[a]:[...e.selectedDates,a],(t=e.selectedDates)==null||t.sort((n,l)=>+new Date(n)-+new Date(l))}e.settings.range.disableGaps&&(y.rangeMin=y.rangeMin?y.rangeMin:e.rangeMin,y.rangeMax=y.rangeMax?y.rangeMax:e.rangeMax),y.self=e,{set:()=>{e.HTMLElement.addEventListener("mousemove",Ie),document.addEventListener("keydown",Ne),e.settings.range.disableGaps&&wn()},reset:()=>{const[r,n]=[e.selectedDates[0],e.selectedDates[e.selectedDates.length-1]];e.selectedDates=e.selectedDates[0]!==e.selectedDates[e.selectedDates.length-1]?e.settings.range.edgesOnly?[r,n]:B([`${r}:${n}`]):[e.selectedDates[0],e.selectedDates[0]],e.HTMLElement.removeEventListener("mousemove",Ie),document.removeEventListener("keydown",Ne),e.settings.range.disableGaps&&y.self&&(y.self.rangeMin=y.rangeMin,y.self.rangeMax=y.rangeMax)}}[e.selectedDates.length===1?"set":"reset"]()},ka=(e,a,t)=>{if(!a.dataset.calendarDay)return;const r=a.dataset.calendarDay,n=a.classList.contains(e.CSSClasses.dayBtnSelected);if(n&&!e.settings.selection.cancelableDay)return;let l=!0;e.toggleSelected!==void 0&&(l=typeof e.toggleSelected=="function"?e.toggleSelected(e):e.toggleSelected),n&&!l||(e.selectedDates=n?e.selectedDates.filter(i=>i!==r):t?[...e.selectedDates,r]:[r])},Sn=(e,a)=>{var t;const r=a.target,n=s=>r.closest(`.${s}`),l=n(e.CSSClasses.dayBtn);if(!e.settings.selection.day||!["single","multiple","multiple-ranged"].includes(e.settings.selection.day)||!l)return;({single:()=>ka(e,l,!1),multiple:()=>ka(e,l,!0),"multiple-ranged":()=>Ca(e,l.dataset.calendarDay)})[e.settings.selection.day](),(t=e.selectedDates)==null||t.sort((s,c)=>+new Date(s)-+new Date(c)),e.actions.clickDay&&e.actions.clickDay(a,e),e.input&&e.HTMLInputElement&&e.HTMLElement&&e.actions.changeToInput&&e.actions.changeToInput(a,e);const i=n(e.CSSClasses.dayBtnPrev),o=n(e.CSSClasses.dayBtnNext);({prev:()=>Ae(e,"prev"),next:()=>Ae(e,"next"),default:()=>de(e)})[i?"prev":o?"next":"default"]()},Ma=(e,a,t,r,n)=>
710{const l=e.HTMLElement.querySelectorAll(`.${e.CSSClasses.column}`),i=Array.from(l).findIndex(s=>s.classList.contains(a)),o=Number(l[i].querySelector(`.${t}`).getAttribute(n));return e.currentType==="month"&&i>=0?r-i:e.currentType==="year"&&e.selectedYear!==o?r-1:r},Cn=(e,a,t,r,n)=>{const l={year:()=>{var i,o;return(o=(i=e.actions).clickYear)==null?void 0:o.call(i,a,e)},month:()=>{var i,o;return(o=(i=e.actions).clickMonth)==null?void 0:o.call(i,a,e)}};({year:()=>{if(e.type==="multiple"){const i=Ma(e,e.CSSClasses.columnYear,e.CSSClasses.year,Number(n.dataset.calendarYear),"data-calendar-selected-year"),o=e.selectedMonth<e.dateMin.getMonth()&&i<=e.dateMin.getFullYear(),s=e.selectedMonth>e.dateMax.getMonth()&&i>=e.dateMax.getFullYear(),c=i<e.dateMin.getFullYear(),d=i>e.dateMax.getFullYear();o||c?(e.selectedYear=e.dateMin.getFullYear(),e.selectedMonth=e.dateMin.getMonth()):s||d?(e.selectedYear=e.dateMax.getFullYear(),e.selectedMonth=e.dateMax.getMonth()):e.selectedYear=i}else e.selectedYear=Number(n.dataset.calendarYear)},month:()=>{if(e.type==="multiple"){const i=Ma(e,e.CSSClasses.columnMonth,e.CSSClasses.month,Number(n.dataset.calendarMonth),"data-calendar-selected-month"),o=n.closest(`.${r.column}`).querySelector(`.${e.CSSClasses.year}`);e.selectedYear=Number(o.dataset.calendarSelectedYear);const s=i<e.dateMin.getMonth()&&e.selectedYear<=e.dateMin.getFullYear(),c=i>e.dateMax.getMonth()&&e.selectedYear>=e.dateMax.getFullYear();e.selectedMonth=s?e.dateMin.getMonth():c?e.dateMax.getMonth():i}else e.selectedMonth=Number(n.dataset.calendarMonth)}})[t](),l[t](),e.currentType=e.type,ae(e)},xa=(e,a,t,r)=>{if(!e.settings.selection[t])return;const n=a.target,l=d=>n.closest(`.${d}`),i=l(r.header),o=l(r.item),s=l(e.CSSClasses.grid),c=l(e.CSSClasses.column);e.currentType!==t&&i?{year:()=>Ee(e,n),month:()=>ua(e,n)}[t]():o?Cn(e,a,t,r,o):(e.currentType===t&&i||e.type==="multiple"&&e.currentType===t&&s&&!c)&&(e.currentType=e.type,ae(e))},$a=e=>{const a=t=>{on(e,t),dn(e,t),Sn(e,t),xa(e,t,"month",{header:e.CSSClasses.month,item:e.CSSClasses.monthsMonth,column:e.CSSClasses.columnMonth}),xa(e,t,"year",{header:e.CSSClasses.year,item:e.CSSClasses.yearsYear,column:e.CSSClasses.columnYear})};return e.HTMLElement.addEventListener("click",a),()=>e.HTMLElement.removeEventListener("click",a)},Da=(e,{year:a,month:t,dates:r,holidays:n,time:l}={})=>{var i;const o=la({},e.settings.selected);e.settings.selected.year=a?o.year:e.selectedYear,e.settings.selected.month=t?o.month:e.selectedMonth,e.settings.selected.holidays=n?o.holidays:e.selectedHolidays,e.settings.selected.time=l?o.time:e.selectedTime,e.settings.selected.dates=r==="only-first"&&((i=e.selectedDates)!=null&&i[0])?[e.selectedDates[0]]:r===!0?o.dates:e.selectedDates,ia(e),ae(e),e.settings.selected=o,e.settings.selection.day==="multiple-ranged"&&r&&Ca(e)},Aa=(e,a=!0)=>{e.isInputInit=!0;const t=document.createElement("div");return t.className=`${e.CSSClasses.calendar} ${e.CSSClasses.calendarToInput} ${e.CSSClasses.calendarHidden}`,e.HTMLElement=t,document.body.appendChild(e.HTMLElement),e.HTMLElement.style.visibility="hidden",a&&queueMicrotask(()=>{$e(e.HTMLInputElement,t,e.settings.visibility.positionToInput,e.CSSClasses),e.HTMLElement.style.visibility="visible",e.show()}),Da(e,{year:!0,month:!0,dates:!0,holidays:!0,time:!0}),e.actions.initCalendar&&e.actions.initCalendar(e),$a(e)},kn=e=>{const a=[];e.HTMLInputElement=e.HTMLElement;const t=()=>$e(e.HTMLInputElement,e.HTMLElement,e.settings.visibility.positionToInput,e.CSSClasses),r=i=>{i.key==="Escape"&&(e!=null&&e.HTMLInputElement&&(e!=null&&e.HTMLElement)&&e.hide(),document.removeEventListener("keydown",r))},n=i=>{var o;e&&i.target!==e.HTMLInputElement&&!((o=e.HTMLElement)!=null&&o.contains(i.target))&&(e.HTMLInputElement&&e.HTMLElement&&e.hide(),window.removeEventListener("resize",t),document.removeEventListener("click",n,{capture:!0}))},l=()=>{e.isInputInit?($e(e.HTMLInputElement,e.HTMLElement,e.settings.visibility.positionToInput,e.CSSClasses),e.HTMLElement.style.visibility="visible",e.show()):a.push(Aa(e)),window.addEventListener("resize",t),document.addEventListener("click",n,{capture:!0}),document.addEventListener("keydown",r)};return e.HTMLInputElement.addEventListener("click",l),e.HTMLInputElement.addEventListener("focus",l),()=>{a.forEach(i=>
710i())}},Mn=(e,{year:a,month:t,dates:r,holidays:n,time:l}={})=>{if(!e.isInit)throw new Error(q.notInit);e.input&&!e.isInputInit&&Aa(e,!1),Da(e,{year:a,month:t,dates:r,holidays:n,time:l}),e.actions.updateCalendar&&e.actions.updateCalendar(e)},xn=e=>{var a,t,r,n,l,i;if(!e.isInit)throw new Error(q.notInit);e.input?((t=(a=e.HTMLElement)==null?void 0:a.parentElement)==null||t.removeChild(e.HTMLElement),(n=(r=e.HTMLInputElement)==null?void 0:r.replaceWith)==null||n.call(r,e.HTMLOriginalElement),e.HTMLInputElement=void 0):(i=(l=e.HTMLElement)==null?void 0:l.replaceWith)==null||i.call(l,e.HTMLOriginalElement),e.HTMLElement=e.HTMLOriginalElement,e.actions.destroyCalendar&&e.actions.destroyCalendar(e)};class $n extends xt{constructor(a,t){if(super(),g(this,"init",()=>{return(n=this).HTMLOriginalElement=n.HTMLElement.cloneNode(!0),n.isInit=!0,n.input?kn(n):(ia(n),ae(n),n.actions.initCalendar&&n.actions.initCalendar(n),$a(n));var n}),g(this,"update",n=>Mn(this,n)),g(this,"destroy",()=>xn(this)),g(this,"show",()=>{var n;(n=this).currentType?(n.HTMLElement.classList.remove(n.CSSClasses.calendarHidden),n.actions.showCalendar&&n.actions.showCalendar(n)):n.HTMLElement.click()}),g(this,"hide",()=>{var n;(n=this).currentType&&(n.HTMLElement.classList.add(n.CSSClasses.calendarHidden),n.actions.hideCalendar&&n.actions.hideCalendar(n))}),this.HTMLElement=typeof a=="string"?document.querySelector(a):a,!this.HTMLElement)throw new Error(q.notFoundSelector(a));if(!t)return;const r=(n,l)=>{Object.keys(l).forEach(i=>{typeof n[i]!="object"||typeof l[i]!="object"||l[i]instanceof Date?n[i]=l[i]:r(n[i],l[i])})};r(this,t)}}const Dn='/*! name: vanilla-calendar-pro v2.9.10 | url: https://github.com/uvarov-frontend/vanilla-calendar-pro */.vanilla-calendar{position:relative;box-sizing:border-box;display:flex;width:300px;min-width:272px;max-width:100%;flex-direction:column;border-radius:.75rem;padding:1rem;opacity:1;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@supports ((width: -webkit-max-content) or (width: max-content)) and ((height: -webkit-max-content) or (height: max-content)){.vanilla-calendar{height:-webkit-max-content;height:max-content;width:-webkit-max-content;width:max-content}}.vanilla-calendar_multiple{width:550px}@supports ((width: -webkit-fit-content) or (width: -moz-fit-content) or (width: fit-content)){.vanilla-calendar_multiple{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}.vanilla-calendar button:focus-visible{border-radius:.5rem;outline-style:solid;outline-width:1px;outline-offset:-1px}.vanilla-calendar.vanilla-calendar_multiple .vanilla-calendar-days{flex-grow:0}.vanilla-calendar_hidden{pointer-events:none;opacity:0}.vanilla-calendar_hidden *{pointer-events:none!important}.vanilla-calendar_to-input{position:absolute}.vanilla-calendar_to-input_bottom{margin-top:.25rem}.vanilla-calendar_to-input_top{margin-top:-.25rem}.vanilla-calendar-controls{pointer-events:none;position:absolute;left:0;right:0;top:0;z-index:20;box-sizing:content-box;display:flex;align-items:center;justify-content:space-between;padding-left:1rem;padding-right:1rem;padding-top:1.25rem}.vanilla-calendar-arrow{pointer-events:auto;position:relative;display:block;height:1.5rem;width:1.5rem;cursor:pointer;border-width:0px;background-color:transparent}.vanilla-calendar-arrow:before{position:absolute;left:0;top:0;height:100%;width:100%;background-position:center;background-repeat:no-repeat;--tw-content: "";content:var(--tw-content)}.vanilla-calendar-arrow.vanilla-calendar-arrow_prev:before{transform:rotate(90deg)}.vanilla-calendar-arrow.vanilla-calendar-arrow_next:before{transform:rotate(-90deg)}.vanilla-calendar-grid{display:flex;flex-grow:1;flex-wrap:wrap;justify-content:center;gap:1.75rem}.vanilla-calendar-grid.vanilla-calendar-grid_disabled .vanilla-calendar-column{pointer-events:none;opacity:.3}.vanilla-calendar-grid.vanilla-calendar-grid_disabled .vanilla-calendar-column.vanilla-calendar-column_month,.vanilla-calendar-grid.vanilla-calendar-grid_disabled .vanilla-calendar-column.vanilla-calendar-column_year{pointer-events:auto;opacity:1}.vanilla-calendar-column{display:flex;min-width:-webkit-min-content;min-width:min-content;flex-direction:column}.vanilla-calendar-header{position:relative;margin-bottom:.75rem;display:flex;align-items:center}.vanilla-calendar-header__content{display:grid;flex-grow:1;grid-auto-columns:-webkit-max-content;grid-auto-columns:max-content;grid-auto-flow:column;align-items:center;justify-content:center;white-space:pre-wrap;padding-left:1rem;padding-right:1rem}.vanilla-calendar-month,.vanilla-calendar-year{cursor:pointer;border-radius:.25rem;border-width:0px;background-color:transparent;padding:.25rem;font-size:1rem;line-height:1.5rem;font-weight:700}.vanilla-calendar-month.vanilla-calendar-month_disabled,.vanilla-calendar-year.vanilla-calendar-year_disabled{pointer-events:none}.vanilla-calendar-months{display:grid;flex-grow:1;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;row-gap:1rem;column-gap:.5rem}.vanilla-calendar-years{display:grid;flex-grow:1;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;row-gap:1rem;column-gap:.5rem}.vanilla-calendar-months_selecting .vanilla-calendar-months__month,.vanilla-calendar-years_selecting .vanilla-calendar-years__year{cursor:pointer}.vanilla-calendar-months_selecting .vanilla-calendar-months__month .vanilla-calendar-months__month_disabled,.vanilla-calendar-years_selecting .vanilla-calendar-years__year .vanilla-calendar-years__year_disabled{cursor:default}.vanilla-calendar-months__month,.vanilla-calendar-years__year{display:flex;height:2.5rem;align-items:center;justify-content:center;word-break:break-all;border-radius:.5rem;border-width:0px;padding:.25rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:600}.vanilla-calendar-months__month.vanilla-calendar-months__month_disabled,.vanilla-calendar-years__year.vanilla-calendar-years__year_disabled{pointer-events:none}.vanilla-calendar-week-numbers{display:flex;flex-direction:column}.vanilla-calendar-week-numbers__title{margin-bottom:.5rem;display:flex;align-items:center;justify-content:center;font-size:.75rem;line-height:1rem;font-weight:700}.vanilla-calendar-week-numbers__content{display:grid;grid-auto-flow:row;align-items:center;justify-items:center;row-gap:.25rem}.vanilla-calendar-week-number{margin:0;display:flex;min-height:1.875rem;width:100%;min-width:1.875rem;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding:0;font-size:.75rem;line-height:1rem;font-weight:600}.vanilla-calendar-wrapper{display:flex;flex-grow:1}.vanilla-calendar-content{display:flex;flex-grow:1;flex-direction:column}.vanilla-calendar-week{margin-bottom:.5rem;display:grid;grid-template-columns:repeat(7,1fr);
710justify-items:center}.vanilla-calendar-week__day{display:flex;width:100%;min-width:1.875rem;align-items:center;justify-content:center;font-size:.75rem;line-height:1rem;font-weight:700}.vanilla-calendar-days{display:grid;flex-grow:1;grid-template-columns:repeat(7,1fr);align-items:center;justify-items:center;row-gap:.25rem}.vanilla-calendar-days_selecting .vanilla-calendar-day__btn{cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:75ms}.vanilla-calendar-days_selecting .vanilla-calendar-day__btn_disabled{cursor:default}.vanilla-calendar-day{position:relative;display:flex;width:100%;align-items:center;justify-content:center}.vanilla-calendar-day_hover-intermediate .vanilla-calendar-day__btn{border-radius:0}.vanilla-calendar-day_hover-first .vanilla-calendar-day__btn{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.vanilla-calendar-day_hover-last .vanilla-calendar-day__btn{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.vanilla-calendar-day_hover-first.vanilla-calendar-day_hover-last .vanilla-calendar-day__btn{border-radius:.5rem}.vanilla-calendar-day:focus-visible .vanilla-calendar-day__popup,.vanilla-calendar-day:hover .vanilla-calendar-day__popup{pointer-events:auto;opacity:1}.vanilla-calendar-day_selected-first .vanilla-calendar-day__btn_selected{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.vanilla-calendar-day_selected-last .vanilla-calendar-day__btn_selected{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.vanilla-calendar-day_selected-first.vanilla-calendar-day_selected-last .vanilla-calendar-day__btn_selected{border-radius:.5rem}.vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected{border-radius:0}.vanilla-calendar-day__btn{display:flex;height:100%;min-height:1.875rem;width:100%;min-width:1.875rem;cursor:default;align-items:center;justify-content:center;border-radius:.5rem;border-width:0px;padding:0;font-size:.75rem;line-height:1rem;font-weight:400}.vanilla-calendar-day__btn_today{font-weight:700}.vanilla-calendar-day__btn_disabled{pointer-events:none}.vanilla-calendar-day__popup{transform:translate(-50%);pointer-events:none;position:absolute;left:50%;top:100%;z-index:20;width:8rem;padding:.5rem .75rem;font-size:.75rem;line-height:1rem;font-weight:400;opacity:0}
710.vanilla-calendar-day__popup:before{content:var(--tw-content);position:absolute}.vanilla-calendar-day__popup:after{content:var(--tw-content);position:absolute}.vanilla-calendar-day__popup:hover{pointer-events:auto;opacity:1}.vanilla-calendar-day__popup:before{content:"";left:0;bottom:0;z-index:-10;display:block;height:calc(100% - 4px);width:100%;border-radius:.5rem}.vanilla-calendar-time{margin-top:.75rem;display:grid;grid-template-columns:auto 1fr;gap:.75rem;border-top-width:1px;border-bottom-width:0px;border-left-width:0px;border-right-width:0px;border-style:solid;padding-top:.75rem}.vanilla-calendar-time__content{display:grid;grid-auto-flow:column;align-items:center}.vanilla-calendar-time__hours{position:relative;margin-right:.35rem;width:1.75rem}.vanilla-calendar-time__hours:after{position:absolute;right:-5px;top:50%;margin-top:calc(-50% + 1px);display:block;--tw-content: ":";content:var(--tw-content)}.vanilla-calendar-time__minutes{width:1.75rem}.vanilla-calendar-time__hours input,.vanilla-calendar-time__minutes input{position:relative;margin:0;box-sizing:border-box;display:block;width:100%;border-radius:.25rem;border-width:0px;padding:.125rem;text-align:center;font-size:1.125rem;font-weight:600;line-height:1.125rem}.vanilla-calendar-time__hours input:focus-visible,.vanilla-calendar-time__minutes input:focus-visible{outline-style:solid;outline-width:1px}.vanilla-calendar-time__hours input:disabled,.vanilla-calendar-time__minutes input:disabled{cursor:default}.vanilla-calendar-time__hours input:hover:disabled,.vanilla-calendar-time__minutes input:hover:disabled{background-color:transparent}.vanilla-calendar-time__keeping{margin-left:1px;margin-top:.25rem;width:22px;cursor:pointer;border-radius:.25rem;border-width:0px;background-color:transparent;padding:0;font-size:.69rem}.vanilla-calendar-time__keeping:focus-visible{outline-style:solid;outline-width:1px}.vanilla-calendar-time__keeping:disabled{cursor:default}.vanilla-calendar-time__keeping:hover:disabled{background-color:transparent}.vanilla-calendar-time__ranges{display:grid;grid-auto-flow:row}.vanilla-calendar-time__range{position:relative;z-index:10;font-size:0}.vanilla-calendar-time__range:before{content:var(--tw-content);left:0}.vanilla-calendar-time__range:after{content:var(--tw-content);right:0}.vanilla-calendar-time__range:before,.vanilla-calendar-time__range:after{content:"";transform:translateY(-50%);pointer-events:none;position:absolute;top:50%;z-index:10;height:.5rem;width:1px}.vanilla-calendar-time__range input{position:relative;margin:0;height:1.25rem;width:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline-width:0px}.vanilla-calendar-time__range input::-webkit-slider-thumb{position:relative;z-index:20;margin-top:-.5rem;box-sizing:border-box;height:1rem;width:.75rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.25rem;border-width:1px;border-style:solid;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-sha
710dow)}.vanilla-calendar-time__range input::-moz-range-thumb{position:relative;z-index:20;box-sizing:border-box;height:1rem;width:.75rem;cursor:pointer;border-radius:.25rem;border-width:1px;border-style:solid;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vanilla-calendar-time__range input::-webkit-slider-runnable-track{margin-top:1px;box-sizing:border-box;height:1px;width:100%;cursor:pointer;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vanilla-calendar-time__range input::-moz-range-track{margin-top:1px;box-sizing:border-box;height:1px;width:100%;cursor:pointer;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-calendar-theme=light].vanilla-calendar{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));color:#0f172a}[data-calendar-theme=light].vanilla-calendar_to-input{--tw-shadow: 0 9px 20px rgba(0,0,0,.1);
710--tw-shadow-colored: 0 9px 20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-calendar-theme=light].vanilla-calendar button:focus-visible{outline-color:#fdba74}[data-calendar-theme=light] .vanilla-calendar-arrow{background-color:transparent}[data-calendar-theme=light] .vanilla-calendar-arrow:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZmlsbD0nIzBmMTcyYScgZD0nTTEyIDE2Yy0uMyAwLS41LS4xLS43LS4zbC02LTZjLS40LS40LS40LTEgMC0xLjRzMS0uNCAxLjQgMGw1LjMgNS4zIDUuMy01LjNjLjQtLjQgMS0uNCAxLjQgMHMuNCAxIDAgMS40bC02IDZjLS4yLjItLjQuMy0uNy4zeicvPjwvc3ZnPg==)}[data-calendar-theme=light] .vanilla-calendar-arrow:hover:before{opacity:.6}[data-calendar-theme=light] .vanilla-calendar-header__content,[data-calendar-theme=light] .vanilla-calendar-month,[data-calendar-theme=light] .vanilla-calendar-year{color:#0f172a}[data-calendar-theme=light] .vanilla-calendar-month:hover,[data-calendar-theme=light] .vanilla-calendar-year:hover{color:#64748b}[data-calendar-theme=light] .vanilla-calendar-month.vanilla-calendar-month_not-active,[data-calendar-theme=light] .vanilla-calendar-year.vanilla-calendar-year_not-active{color:#94a3b8}[data-calendar-theme=light] .vanilla-calendar-month.vanilla-calendar-month_disabled,[data-calendar-theme=light] .vanilla-calendar-year.vanilla-calendar-year_disabled{color:#cbd5e1}[data-calendar-theme=light] .vanilla-calendar-months__month{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));color:#64748b}[data-calendar-theme=light] .vanilla-calendar-months__month:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-months__month.vanilla-calendar-months__month_selected,[data-calendar-theme=light] .vanilla-calendar-months__month.vanilla-calendar-months__month_selected:hover{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=light] .vanilla-calendar-months__month.vanilla-calendar-months__month_disabled,[data-calendar-theme=light] .vanilla-calendar-months__month.vanilla-calendar-months__month_disabled:hover{color:#cbd5e1}[data-calendar-theme=light] .vanilla-calendar-years__year{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));color:#64748b}[data-calendar-theme=light] .vanilla-calendar-years__year:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-years__year.vanilla-calendar-years__year_selected,[data-calendar-theme=light] .vanilla-calendar-years__year.vanilla-calendar-years__year_selected:hover{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=light] .vanilla-calendar-years__year.vanilla-calendar-years__year_disabled,[data-calendar-theme=light] .vanilla-calendar-years__year.vanilla-calendar-years__year_disabled:hover{color:#cbd5e1}[data-calendar-theme=light] .vanilla-calendar-week-numbers__title,[data-calendar-theme=light] .vanilla-calendar-week-number{color:#64748b}[data-calendar-theme=light] .vanilla-calendar-week-number:hover{color:#475569}[data-calendar-theme=light] .vanilla-calendar-week__day{color:#64748b}[data-calendar-theme=light] .vanilla-calendar-week__day_weekend{color:#f43f5e}[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_selected:hover{background-color:rgb(244 63 94 / var(--tw-bg-opacity));--tw-bg-opacity: .7;color:#fff}[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity));color:#64748b}[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected:hover{background-color:rgb(6 182 212 / var(--tw-bg-opacity));--tw-bg-opacity: .7;color:#fff}[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_prev,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_next,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_prev:hover,[data-calendar-theme=light] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_next:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity));color:#64748b}[data-calendar-theme=light] .vanilla-calendar-day__btn{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));color:#0f172a}[data-calendar-theme=light] .vanilla-calendar-day__btn:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-day__btn_today{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity));color:#06b6d4}[data-calendar-theme=light] .vanilla-calendar-day__btn_today:hover{color:#06b6d4}[data-calendar-theme=light] .vanilla-calendar-day__btn_today.vanilla-calendar-day__btn_prev,[data-calendar-theme=light] .vanilla-calendar-day__btn_today.vanilla-calendar-day__btn_next{color:#64748b}[data-calendar-theme=light] .vanilla-calendar-day__btn_prev,[data-calendar-theme=light] .vanilla-calendar-day__btn_next{color:#94a3b8}[data-calendar-theme=light] .vanilla-calendar-day__btn_disabled{color:#cbd5e1}[data-calendar-theme=light] .vanilla-calendar-day__btn_hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday{color:#f43f5e}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_hover{--tw-bg-opacity: 1;background-color:rgb(255 241 242 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_disabled,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_disabled{color:#cbd5e1}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_today,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_today{color:#f43f5e}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_today.vanilla-calendar-day__btn_disabled,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_today.vanilla-calendar-day__btn_disabled{color:#cbd5e1}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));color:#94a3b8}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_today,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_today,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_today,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_today{color:#94a3b8}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_disabled,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_disabled,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_disabled,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_disabled{color:#cbd5e1}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_selected:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected:hover{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity));color:#64748b}[data-calendar-theme=light] .vanilla-calendar-day__btn_selected,[data-calendar-theme=light] .vanilla-calendar-day__btn_selected:hover{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=light] .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_prev,[data-calendar-theme=light] .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_next,[data-calendar-theme=light] .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_prev:hover,[data-calendar-theme=light] .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_next:hover{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity));color:#64748b}[data-calendar-theme=light] .vanilla-calendar-day__popup{color:#0f172a}[data-calendar-theme=light] .vanilla-calendar-day__popup:before{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-shadow: 0 3px 15px rgba(85, 85, 85, .2);
710--tw-shadow-colored: 0 3px 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-calendar-theme=light] .vanilla-calendar-time{border-color:#cbd5e1}[data-calendar-theme=light] .vanilla-calendar-time__hours:after{content:var(--tw-content);color:#0f172a}[data-calendar-theme=light] .vanilla-calendar-time__hours input,[data-calendar-theme=light] .vanilla-calendar-time__minutes input{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));color:#0f172a}[data-calendar-theme=light] .vanilla-calendar-time__hours input:hover,[data-calendar-theme=light] .vanilla-calendar-time__minutes input:hover{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-time__hours input:focus-visible,[data-calendar-theme=light] .vanilla-calendar-time__minutes input:focus-visible{outline-color:#fdba74}[data-calendar-theme=light] .vanilla-calendar-time__hours input.vanilla-calendar-is-focus,[data-calendar-theme=light] .vanilla-calendar-time__minutes input.vanilla-calendar-is-focus{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-time__keeping{color:#64748b}[data-calendar-theme=light] .vanilla-calendar-time__keeping:hover{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-time__keeping:focus-visible{outline-color:#fdba74}[data-calendar-theme=light] .vanilla-calendar-time__range input{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-time__range:before,[data-calendar-theme=light] .vanilla-calendar-time__range:after{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-time__range:hover input::-webkit-slider-thumb{border-color:#94a3b8}[data-calendar-theme=light] .vanilla-calendar-time__range:hover input::-moz-range-thumb{border-color:#94a3b8}[data-calendar-theme=light] .vanilla-calendar-time__range input:focus-visible::-webkit-slider-thumb{border-color:#fdba74}[data-calendar-theme=light] .vanilla-calendar-time__range input:focus-visible::-moz-range-thumb{border-color:#fdba74}[data-calendar-theme=light] .vanilla-calendar-time__range input::-webkit-slider-thumb{border-color:#cbd5e1;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-time__range input::-moz-range-thumb{border-color:#cbd5e1;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-time__range input::-webkit-slider-runnable-track{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}[data-calendar-theme=light] .vanilla-calendar-time__range input::-moz-range-track{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}[data-calendar-theme=dark].vanilla-calendar{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=dark].vanilla-calendar_to-input{--tw-shadow: 0 9px 20px rgba(0,0,0,.1);
710--tw-shadow-colored: 0 9px 20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-calendar-theme=dark].vanilla-calendar button:focus-visible{outline-color:#fdba74}[data-calendar-theme=dark] .vanilla-calendar-arrow{background-color:transparent}[data-calendar-theme=dark] .vanilla-calendar-arrow:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZmlsbD0nI2ZmZicgZD0nTTEyIDE2Yy0uMyAwLS41LS4xLS43LS4zbC02LTZjLS40LS40LS40LTEgMC0xLjRzMS0uNCAxLjQgMGw1LjMgNS4zIDUuMy01LjNjLjQtLjQgMS0uNCAxLjQgMHMuNCAxIDAgMS40bC02IDZjLS4yLjItLjQuMy0uNy4zeicvPjwvc3ZnPg==)}[data-calendar-theme=dark] .vanilla-calendar-arrow:hover:before{opacity:.6}[data-calendar-theme=dark] .vanilla-calendar-header__content,[data-calendar-theme=dark] .vanilla-calendar-month,[data-calendar-theme=dark] .vanilla-calendar-year{color:#fff}[data-calendar-theme=dark] .vanilla-calendar-month:hover,[data-calendar-theme=dark] .vanilla-calendar-year:hover,[data-calendar-theme=dark] .vanilla-calendar-month.vanilla-calendar-month_not-active,[data-calendar-theme=dark] .vanilla-calendar-year.vanilla-calendar-year_not-active{color:#64748b}[data-calendar-theme=dark] .vanilla-calendar-month.vanilla-calendar-month_disabled,[data-calendar-theme=dark] .vanilla-calendar-year.vanilla-calendar-year_disabled{color:#334155;opacity:.8}[data-calendar-theme=dark] .vanilla-calendar-months__month,[data-calendar-theme=dark] .vanilla-calendar-years__year{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=dark] .vanilla-calendar-months__month:hover,[data-calendar-theme=dark] .vanilla-calendar-years__year:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-months__month.vanilla-calendar-months__month_selected,[data-calendar-theme=dark] .vanilla-calendar-years__year.vanilla-calendar-years__year_selected,[data-calendar-theme=dark] .vanilla-calendar-months__month.vanilla-calendar-months__month_selected:hover,[data-calendar-theme=dark] .vanilla-calendar-years__year.vanilla-calendar-years__year_selected:hover{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=dark] .vanilla-calendar-months__month.vanilla-calendar-months__month_disabled,[data-calendar-theme=dark] .vanilla-calendar-years__year.vanilla-calendar-years__year_disabled{color:#334155;opacity:.8}[data-calendar-theme=dark] .vanilla-calendar-months__month.vanilla-calendar-months__month_disabled:hover,[data-calendar-theme=dark] .vanilla-calendar-years__year.vanilla-calendar-years__year_disabled:hover{color:#334155}[data-calendar-theme=dark] .vanilla-calendar-week-numbers__title,[data-calendar-theme=dark] .vanilla-calendar-week-number{color:#fff}[data-calendar-theme=dark] .vanilla-calendar-week-number:hover{color:#cbd5e1}[data-calendar-theme=dark] .vanilla-calendar-week__day{color:#fff}[data-calendar-theme=dark] .vanilla-calendar-week__day_weekend{color:#f43f5e}[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_selected:hover{background-color:rgb(244 63 94 / var(--tw-bg-opacity));--tw-bg-opacity: .8;color:#fff}[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity));color:#cbd5e1}[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected:hover{background-color:rgb(6 182 212 / var(--tw-bg-opacity));--tw-bg-opacity: .8;
710color:#fff}[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_prev,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_next,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_prev:hover,[data-calendar-theme=dark] .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_next:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity));color:#cbd5e1}[data-calendar-theme=dark] .vanilla-calendar-day__btn{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity));color:#94a3b8}[data-calendar-theme=dark] .vanilla-calendar-day__btn:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity));color:#e2e8f0}[data-calendar-theme=dark] .vanilla-calendar-day__btn_today{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity));color:#06b6d4}[data-calendar-theme=dark] .vanilla-calendar-day__btn_today:hover{color:#06b6d4}[data-calendar-theme=dark] .vanilla-calendar-day__btn_today.vanilla-calendar-day__btn_prev,[data-calendar-theme=dark] .vanilla-calendar-day__btn_today.vanilla-calendar-day__btn_next,[data-calendar-theme=dark] .vanilla-calendar-day__btn_prev,[data-calendar-theme=dark] .vanilla-calendar-day__btn_next{color:#475569}[data-calendar-theme=dark] .vanilla-calendar-day__btn_disabled{color:#334155;opacity:.8}[data-calendar-theme=dark] .vanilla-calendar-day__btn_hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday{color:#f43f5e}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity));color:#f43f5e}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_disabled,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_disabled{color:#334155;opacity:.8}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_today,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_today{color:#f43f5e}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_today.vanilla-calendar-day__btn_disabled,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_today.vanilla-calendar-day__btn_disabled{color:#334155}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity));color:#475569}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity));color:#cbd5e1}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_today,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_today,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_today,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_today{color:#94a3b8}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_disabled,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_disabled,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_disabled,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_disabled{color:#334155;opacity:.8}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_selected:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_prev.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_next.vanilla-calendar-day__btn_selected:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity));color:#cbd5e1}[data-calendar-theme=dark] .vanilla-calendar-day__btn_selected,[data-calendar-theme=dark] .vanilla-calendar-day__btn_selected:hover{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=dark] .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_prev,[data-calendar-theme=dark] .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_next,[data-calendar-theme=dark] .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_prev:hover,[data-calendar-theme=dark] .vanilla-calendar-day__btn_selected.vanilla-calendar-day__btn_next:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity));color:#cbd5e1}[data-calendar-theme=dark] .vanilla-calendar-day__popup{color:#fff}[data-calendar-theme=dark] .vanilla-calendar-day__popup:before{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity));--tw-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
710--tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-calendar-theme=dark] .vanilla-calendar-time{border-color:#1e293b}[data-calendar-theme=dark] .vanilla-calendar-time__hours:after{content:var(--tw-content);color:#fff}[data-calendar-theme=dark] .vanilla-calendar-time__hours input,[data-calendar-theme=dark] .vanilla-calendar-time__minutes input{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity));color:#fff}[data-calendar-theme=dark] .vanilla-calendar-time__hours input:hover,[data-calendar-theme=dark] .vanilla-calendar-time__minutes input:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-time__hours input:focus-visible,[data-calendar-theme=dark] .vanilla-calendar-time__minutes input:focus-visible{outline-color:#fdba74}[data-calendar-theme=dark] .vanilla-calendar-time__hours input.vanilla-calendar-is-focus,[data-calendar-theme=dark] .vanilla-calendar-time__minutes input.vanilla-calendar-is-focus{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-time__keeping{color:#64748b}[data-calendar-theme=dark] .vanilla-calendar-time__keeping:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity));color:#94a3b8}[data-calendar-theme=dark] .vanilla-calendar-time__keeping:focus-visible{outline-color:#fdba74}[data-calendar-theme=dark] .vanilla-calendar-time__range input{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-time__range:before,[data-calendar-theme=dark] .vanilla-calendar-time__range:after{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-time__range:hover input::-webkit-slider-thumb{border-color:#94a3b8}[data-calendar-theme=dark] .vanilla-calendar-time__range:hover input::-moz-range-thumb{border-color:#94a3b8}[data-calendar-theme=dark] .vanilla-calendar-time__range input:focus-visible::-webkit-slider-thumb{border-color:#fdba74}[data-calendar-theme=dark] .vanilla-calendar-time__range input:focus-visible::-moz-range-thumb{border-color:#fdba74}[data-calendar-theme=dark] .vanilla-calendar-time__range input::-webkit-slider-thumb{border-color:#475569;--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-time__range input::-moz-range-thumb{border-color:#475569;--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-time__range input::-webkit-slider-runnable-track{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}[data-calendar-theme=dark] .vanilla-calendar-time__range input::-moz-range-track{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}';var Ta=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Tn=(e,a,t)=>a in e?Ta(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,Ea=(e,a,t,r)=>{for(var n=r>1?void 0:r?An(a,t):a,l=e.length-1,i;l>=0;l--)(i=e[l])&&(n=(r?i(a,t,n):i(n))||n);return r&&n&&Ta(a,t,n),n},En=(e,a,t)=>Tn(e,a+"",t);_.JNeutralCalendar=class extends k{constructor(){super(...arguments);p(this,"id",`calendar-${Math.random().toString(36).substr(2,9)}`);p(this,"config",{})}connectedCallback(){super.connectedCallback(),setTimeout(()=>{const t=this.renderRoot.querySelector(`#${this.id}`);if(t instanceof HTMLElement){let r="";const n=new $n(t,{type:"default",settings:{iso8601:!1,visibility:{theme:"light",today:!1}},actions:{clickArrow(i,o){var s,c;i.stopPropagation(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"calender_interaction",interaction_type:"carousel_interaction",action:i.target.dataset.calendarArrow,case_month:o.locale.months[o.selectedMonth],neutral_name:(s=document.querySelector("h1[data-jams-neutral-id]"))==null?void 0:s.innerText,practice_areas:[...document.querySelectorAll("div[data-section=practice-areas] > ul > li > strong")].map(d=>d.innerText.trim()).join(","),type_of_services:[...document.querySelectorAll(".tag-neutral")].map(d=>d.innerText).join(","),in_person_or_virtual:[...document.querySelectorAll(".availability-buttons > button")].map(d=>d.innerText).join(","),preferred_location:(c=document.querySelector(".location-heading"))==null?void 0:c.innerText})}},...this.config});n.init();const l=()=>{const[i=""]=n.selectedDates||[];i!==r&&(r=i,this.dispatchEvent(new CustomEvent("calendar-date-change",{detail:{selectedDate:i,calendar:n},bubbles:!0,composed:!0})))};l(),t.addEventListener("click",()=>{setTimeout(()=>{l()},0)}),this.dispatchEvent(new CustomEvent("calendar-ready",{detail:n,bubbles:!0,composed:!0}))}},0)}render(){return S`
711      <div class="neutral-calendar">
712        <div id="${this.id}"></div>
713      </div>
714    `}},En(_.JNeutralCalendar,"styles",[E(Dn),E(pt)]),Ea([f({type:Object})],_.JNeutralCalendar.prototype,"config",2),_.JNeutralCalendar=Ea([P("j-neutral-calendar")],_.JNeutralCalendar);/**
715 * @license
716 * Copyright 2017 Google LLC
717 * SPDX-License-Identifier: BSD-3-Clause
718 */const Ln={CHILD:2},In=e=>(...a)=>({_$litDirective$:e,values:a});let Nn=class{constructor(a){}get _$AU(){return this._$AM._$AU}_$AT(a,t,r){this._$Ct=a,this._$AM=t,this._$Ci=r}_$AS(a,t){return this.update(a,t)}update(a,t){return this.render(...t)}};/**
719 * @license
720 * Copyright 2017 Google LLC
721 * SPDX-License-Identifier: BSD-3-Clause
722 */class je extends Nn{constructor(a){if(super(a),this.it=w,a.type!==Ln.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(a){if(a===w||a==null)return this._t=void 0,this.it=a;if(a===N)return a;
722if(typeof a!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(a===this.it)return this._t;this.it=a;const t=[a];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}je.directiveName="unsafeHTML",je.resultType=1;const jn=In(je),Hn=':host,:root{--container-width: 1236px;--gutter-xs: .25rem;--gutter-s: .5rem;--gutter: 1rem;--gutter-m: 1.5rem;--gutter-l: 2rem;--gutter-xl: 3rem;--color-primary: #012168;--color-gray-900: #1c1c1c;--color-gray-500: #6d7176;--color-gray-300: #a2b2c8;--color-gray-200: #e7e7e9;--color-gray-100: #f7f7f9;--color-blue-100: #f2f5fa;--color-blue-500: #00468b;--color-blue-700: #012168;--color-blue-800: #232c64;--color-blue-900: #011541;--color-red-700: #8f3237;--color-red-300: #d85058;--color-red-100: #da9498;--color-yellow-700: #f6b333;--color-orange-800: #A75217;--color-orange-700: #c4622d;--color-orange-500: #ef7622;--color-teal-900: #007fa3;--color-teal-700: #4f868e;--color-teal-500: #67b3e7;--color-teal-950: #006b8a;--color-green-100: #EAFDE8;--color-green-500: #50a684;--color-green-600: #387a65;--color-green-700: #008751;--color-light: #fff;--border-radius: 8px;--border-radius-s: 4px;--box-shadow: 0 3px 6px rgba(0, 0, 0, .1);--font-primary: "korolev-condensed", "korolevCdn", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-primary-bold: "korolevCdnBold", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-secondary: "proxima-nova", "Proxima_Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-size-s: .75rem}:root{--neutral-clear-icon-url: url(data:image/svg+xml;base64,PHN2ZwogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICA8Y2lyY2xlIGZpbGw9IiNGMkY0RjciIGN4PSIxMiIgY3k9IjEyIiByPSIxMCI+PC9jaXJjbGU+CiAgICA8cGF0aAogICAgICBkPSJNMTYuMjQzIDE1LjU4IDEyLjY2MyAxMmwzLjU4LTMuNThhLjQ2OS40NjkgMCAxIDAtLjY2My0uNjYzTDEyIDExLjMzN2wtMy41OC0zLjU4YS40NjkuNDY5IDAgMSAwLS42NjMuNjYzbDMuNTggMy41OC0zLjU4IDMuNThhLjQ2OS40NjkgMCAxIDAgLjY2My42NjNsMy41OC0zLjU4IDMuNTggMy41OGEuNDY5LjQ2OSAwIDEgMCAuNjYzLS42NjN6IgogICAgICBmaWxsPSIjMjMyYzY0IgogICAgICBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgPC9wYXRoPgogIDwvZz4KPC9zdmc+Cg==)}*{box-sizing:border-box}.j-neutral-hero-calendar{display:flex;flex-direction:column;padding:0 8px 8px;background-color:#fff;border-radius:4px;max-width:400px;background-color:var(--color-light-blue)}.j-neutral-hero-calendar__title{display:inline-flex;align-items:center;color:var(--color-navy);gap:8px;margin:0 0 8px;line-height:1;position:relative;font-size:20px}@media screen and (max-width: 768px){.j-neutral-hero-calendar__title{font-size:18px}}.j-neutral-hero-calendar__title .reverse{transform:rotate(180deg)}@media screen and (max-width: 1200px){.j-neutral-hero-calendar__title{justify-content:center;margin-bottom:0;text-transform:uppercase}.j-neutral-hero-calendar__title j-chevron-down-icon{position:absolute;right:12px;top:auto;display:flex;align-items:center}}@media screen and (min-width: 1200px){.j-neutral-hero-calendar__title j-chevron-down-icon{display:none}}.j-neutral-hero-calendar .status-container{display:flex;gap:12px;margin-top:8px;justify-items:start;padding:0 4px;flex-wrap:wrap}.j-neutral-hero-calendar .status-container .status-item{display:flex;align-items:center;line-height:1;gap:4px;color:var(--color-navy);font-family:var(--font-secondary);font-size:14px}.j-neutral-hero-calendar .status-container .status-item__status{width:20px;height:20px}.j-neutral-hero-calendar .status-container .status-item--available{background-color:#adea97;border:.5px solid #071D49}.j-neutral-hero-calendar .status-container .status-item--pending{background-color:#f2d705;border:.5px solid #071D49}.j-neutral-hero-calendar .status-container .status-item--unavailable{background-color:#dbdbdb}.j-neutral-hero-calendar .status-container .status-item--selected{background-color:var(--color-navy)}.j-neutral-hero-calendar .actions{margin-top:6px;font-family:var(--font-primary-bold)}.j-neutral-hero-calendar .actions__warning{margin-top:8px;color:var(--color-navy);font-family:var(--font-secondary)}.j-neutral-hero-calendar__loading{display:flex;justify-content:center;align-items:center;color:var(--color-navy);padding:48px 0}.j-neutral-hero-calendar__spinner{width:48px;height:48px;border:5px solid var(--color-navy);border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.j-neutral-hero-calendar .warning-container{font-size:14px;margin-top:8px;font-family:var(--font-secondary)}.j-neutral-hero-calendar .warning-container p{margin-top:8px;margin-bottom:0}';/**
723 * @license
724 * Copyright 2017 Google LLC
725 * SPDX-License-Identifier: BSD-3-Clause
726 */const Pn=Symbol();class Yn{get taskComplete(){return this.t||(this.i===1?this.t=new Promise((a,t)=>{this.o=a,this.h=t}):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(a,t,r){var l;this.p=0,this.i=0,(this._=a).addController(this);const n=typeof t=="object"?t:{task:t,args:r};this.v=n.task,this.j=n.args,this.m=n.argsEqual??On,this.k=n.onComplete,this.A=n.onError,this.autoRun=n.autoRun??!0,"initialValue"in n&&(this.u=n.initialValue,this.i=2,this.O=(l=this.T)==null?void 0:l.call(this))}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;const a=this.j();if(!Array.isArray(a))throw Error("The args function must return an array");return a}
726async S(){const a=this.T(),t=this.O;this.O=a,a===t||a===void 0||t!==void 0&&this.m(t,a)||await this.run(a)}async run(a){var i,o,s,c,d;let t,r;a??(a=this.T()),this.O=a,this.i===1?(i=this.q)==null||i.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask(()=>this._.requestUpdate()):this._.requestUpdate();const n=++this.p;this.q=new AbortController;let l=!1;try{t=await this.v(a,{signal:this.q.signal})}catch(h){l=!0,r=h}if(this.p===n){if(t===Pn)this.i=0;else{if(l===!1){try{(o=this.k)==null||o.call(this,t)}catch{}this.i=2,(s=this.o)==null||s.call(this,t)}else{try{(c=this.A)==null||c.call(this,r)}catch{}this.i=3,(d=this.h)==null||d.call(this,r)}this.u=t,this.l=r}this._.requestUpdate()}}abort(a){var t;this.i===1&&((t=this.q)==null||t.abort(a))}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(a){var t,r,n,l;switch(this.i){case 0:return(t=a.initial)==null?void 0:t.call(a);case 1:return(r=a.pending)==null?void 0:r.call(a);case 2:return(n=a.complete)==null?void 0:n.call(a,this.value);case 3:return(l=a.error)==null?void 0:l.call(a,this.error);default:throw Error("Unexpected status: "+this.i)}}}const On=(e,a)=>e===a||e.length===a.length&&e.every((t,r)=>!ne(t,a[r])),zn=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Rn=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Un=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Fn(e,a){if(e==="__proto__"||e==="constructor"&&a&&typeof a=="object"&&"prototype"in a){Bn(e);return}return a}function Bn(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function qn(e,a={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const t=e.trim();if(t.length<=9)switch(t.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Un.test(e)){if(a.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(zn.test(e)||Rn.test(e)){if(a.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Fn)}return JSON.parse(e)}catch(r){if(a.strict)throw r;return e}}const Wn=/#/g,Jn=/&/g,Zn=/\//g,Gn=/=/g,He=/\+/g,Kn=/%5e/gi,Vn=/%60/gi,Qn=/%7c/gi,Xn=/%20/gi;function er(e){return encodeURI(""+e).replace(Qn,"|")}function Pe(e){return er(typeof e=="string"?e:JSON.stringify(e)).replace(He,"%2B").replace(Xn,"+").replace(Wn,"%23").replace(Jn,"%26").replace(Vn,"`").replace(Kn,"^").replace(Zn,"%2F")}function Ye(e){return Pe(e).replace(Gn,"%3D")}function La(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function ar(e){return La(e.replace(He," "))}function tr(e){return La(e.replace(He," "))}function nr(e=""){const a=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const t of e.split("&")){const r=t.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const n=ar(r[1]);if(n==="__proto__"||n==="constructor")continue;const l=tr(r[2]||"");a[n]===void 0?a[n]=l:Array.isArray(a[n])?a[n].push(l):a[n]=[a[n],l]}return a}function rr(e,a){return(typeof a=="number"||typeof a=="boolean")&&(a=String(a)),a?Array.isArray(a)?a.map(t=>`${Ye(e)}=${Pe(t)}`).join("&"):`${Ye(e)}=${Pe(a)}`:Ye(e)}function lr(e){return Object.keys(e).filter(a=>e[a]!==void 0).map(a=>rr(a,e[a])).filter(Boolean).join("&")}const ir=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,or=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,dr=/^([/\\]\s*){2,}[^/\\]/,sr=/^\.?\//;function Ia(e,a={}){return typeof a=="boolean"&&(a={acceptRelative:a}),a.strict?ir.test(e):or.test(e)||(a.acceptRelative?dr.test(e):!1)}function cr(e="",a){return e.endsWith("/")}function hr(e="",a){return(cr(e)?e.slice(0,-1):e)||"/"}function ur(e="",a){return e.endsWith("/")?e:e+"/"}function _r(e,a){if(gr(a)||Ia(e))return e;const t=hr(a);if(e.startsWith(t)){const r=e[t.length];if(!r||r==="/"||r==="?")return e}return br(t,e)}function mr(e,a){const t=pr(e),r={...nr(t.search),...a};return t.search=lr(r),vr(t)}function gr(e){return!e||e==="/"}function yr(e){return e&&e!=="/"}function br(e,...a){let t=e||"";for(const r of a.filter(n=>yr(n)))if(t){const n=r.replace(sr,"");t=ur(t)+n}else t=r;return t}const Na=Symbol.for("ufo:protocolRelative");function pr(e="",a){const t=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(t){const[,h,u=""]=t;return{protocol:h.toLowerCase(),pathname:u,href:h+u,auth:"",host:"",search:"",hash:""}}if(!Ia(e,{acceptRelative:!0}))return ja(e);const[,r="",n,l=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",o=""]=l.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(o=o.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:s,search:c,hash:d}=ja(o);return{protocol:r.toLowerCase(),auth:n?n.slice(0,Math.max(0,n.length-1)):"",host:i,pathname:s,search:c,hash:d,[Na]:!r}}function ja(e=""){const[a="",t="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:a,search:t,hash:r}}function vr(e){const a=e.pathname||"",t=e.search?(e.search.startsWith("?")?""
726:"?")+e.search:"",r=e.hash||"",n=e.auth?e.auth+"@":"",l=e.host||"";return(e.protocol||e[Na]?(e.protocol||"")+"//":"")+n+l+a+t+r}class fr extends Error{constructor(a,t){super(a,t),this.name="FetchError",t!=null&&t.cause&&!this.cause&&(this.cause=t.cause)}}function wr(e){var s,c,d,h,u;const a=((s=e.error)==null?void 0:s.message)||((c=e.error)==null?void 0:c.toString())||"",t=((d=e.request)==null?void 0:d.method)||((h=e.options)==null?void 0:h.method)||"GET",r=((u=e.request)==null?void 0:u.url)||String(e.request)||"/",n=`[${t}] ${JSON.stringify(r)}`,l=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${n}: ${l}${a?` ${a}`:""}`,o=new fr(i,e.error?{cause:e.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(o,m,{get(){return e[m]}});for(const[m,b]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,m,{get(){return e.response&&e.response[b]}});return o}const Sr=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ha(e="GET"){return Sr.has(e.toUpperCase())}function Cr(e){if(e===void 0)return!1;const a=typeof e;return a==="string"||a==="number"||a==="boolean"||a===null?!0:a!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const kr=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Mr=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function xr(e=""){if(!e)return"json";const a=e.split(";").shift()||"";return Mr.test(a)?"json":a==="text/event-stream"?"stream":kr.has(a)||a.startsWith("text/")?"text":"blob"}function $r(e,a,t,r){const n=Dr((a==null?void 0:a.headers)??(e==null?void 0:e.headers),t==null?void 0:t.headers,r);let l;return(t!=null&&t.query||t!=null&&t.params||a!=null&&a.params||a!=null&&a.query)&&(l={...t==null?void 0:t.params,...t==null?void 0:t.query,...a==null?void 0:a.params,...a==null?void 0:a.query}),{...t,...a,query:l,params:l,headers:n}}function Dr(e,a,t){if(!a)return new t(e);const r=new t(a);if(e)for(const[n,l]of Symbol.iterator in e||Array.isArray(e)?e:new t(e))r.set(n,l);return r}async function ue(e,a){if(a)if(Array.isArray(a))for(const t of a)await t(e);else await a(e)}const Ar=new Set([408,409,425,429,500,502,503,504]),Tr=new Set([101,204,205,304]);function Pa(e={}){const{fetch:a=globalThis.fetch,Headers:t=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function n(o){const s=o.error&&o.error.name==="AbortError"&&!o.options.timeout||!1;if(o.options.retry!==!1&&!s){let d;typeof o.options.retry=="number"?d=o.options.retry:d=Ha(o.options.method)?0:1;const h=o.response&&o.response.status||500;if(d>0&&(Array.isArray(o.options.retryStatusCodes)?o.options.retryStatusCodes.includes(h):Ar.has(h))){const u=typeof o.options.retryDelay=="function"?o.options.retryDelay(o):o.options.retryDelay||0;return u>0&&await new Promise(m=>setTimeout(m,u)),l(o.request,{...o.options,retry:d-1})}}const c=wr(o);throw Error.captureStackTrace&&Error.captureStackTrace(c,l),c}const l=async function(s,c={}){const d={request:s,options:$r(s,c,e.defaults,t),response:void 0,error:void 0};if(d.options.method&&(d.options.method=d.options.method.toUpperCase()),d.options.onRequest&&(await ue(d,d.options.onRequest),d.options.headers instanceof t||(d.options.headers=new t(d.options.headers||{}))),typeof d.request=="string"&&(d.options.baseURL&&(d.request=_r(d.request,d.options.baseURL)),d.options.query&&(d.request=mr(d.request,d.options.query),delete d.options.query),"query"in d.options&&delete d.options.query,"params"in d.options&&delete d.options.params),d.options.body&&Ha(d.options.method))if(Cr(d.options.body)){const m=d.options.headers.get("content-type");typeof d.options.body!="string"&&(d.options.body=m==="application/x-www-form-urlencoded"?new URLSearchParams(d.options.body).toString():JSON.stringify(d.options.body)),m||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")}else("pipeTo"in d.options.body&&typeof d.options.body.pipeTo=="function"||typeof d.options.body.pipe=="function")&&("duplex"in d.options||(d.options.duplex="half"));let h;if(!d.options.signal&&d.options.timeout){const m=new r;h=setTimeout(()=>{const b=new Error("[TimeoutError]: The operation was aborted due to timeout");b.name="TimeoutError",b.code=23,m.abort(b)},d.options.timeout),d.options.signal=m.signal}try{d.response=await a(d.request,d.options)}catch(m){return d.error=m,d.options.onRequestError&&await ue(d,d.options.onRequestError),await n(d)}finally{h&&clearTimeout(h)}if((d.response.body||d.response._bodyInit)&&!Tr.has(d.response.status)&&d.options.method!=="HEAD"){const m=(d.options.parseResponse?"json":d.options.responseType)||xr(
726d.response.headers.get("content-type")||"");switch(m){case"json":{const b=await d.response.text(),x=d.options.parseResponse||qn;d.response._data=x(b);break}case"stream":{d.response._data=d.response.body||d.response._bodyInit;break}default:d.response._data=await d.response[m]()}}return d.options.onResponse&&await ue(d,d.options.onResponse),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600?(d.options.onResponseError&&await ue(d,d.options.onResponseError),await n(d)):d.response},i=async function(s,c){return(await l(s,c))._data};return i.raw=l,i.native=(...o)=>a(...o),i.create=(o={},s={})=>Pa({...e,...s,defaults:{...e.defaults,...s.defaults,...o}}),i}const _e=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Er=_e.fetch?(...e)=>_e.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Lr=_e.Headers,Ir=_e.AbortController,Nr=Pa({fetch:Er,Headers:Lr,AbortController:Ir}),jr='.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff!important;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box a{color:#fff}';var Ya=Object.defineProperty,Hr=Object.getOwnPropertyDescriptor,Pr=(e,a,t)=>a in e?Ya(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,T=(e,a,t,r)=>{for(var n=r>1?void 0:r?Hr(a,t):a,l=e.length-1,i;l>=0;l--)(i=e[l])&&(n=(r?i(a,t,n):i(n))||n);return r&&n&&Ya(a,t,n),n},Yr=(e,a,t)=>Pr(e,a+"",t);_.JNeutralHeroCalendar=class extends k{constructor(){super();p(this,"panelistId","");p(this,"closeDateWarning","");p(this,"pendingTooltip","");p(this,"pendingView",!1);p(this,"_config",{date:{min:`${new Date().getFullYear()}-02-14`,max:"2038-12-31",disableWeekday:[0,6]},popups:{},settings:{iso8601:!1,visibility:{theme:"light",today:!1},selection:{year:"only-arrows",month:"only-arrows"}}});p(this,"_calendar",null);p(this,"_selectedDate","");p(this,"_isCalendarWarningVisible",!1);p(this,"_calendarInfoTask",new Yn(this,{task:async([t])=>{if(!(t!=null&&t.trim()))return;const r=new Date;r.setDate(r.getDate()+1),r.setHours(0,0,0,0);const n=Math.floor(r.getTime()/1e3),l=new Date(this._getLastDayOfThirdMonthFormatted());l.setHours(23,59,59,999);const i=Math.floor(l.getTime()/1e3),o=this._formatLocalDate(r),s=this._formatLocalDate(l),c=await Nr(this._getCalendarFetchUrl(t,n,i),{cache:"no-store",headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}}),d=this._findAndAddMissingDaysExcludingWeekends(c,o,s);this._applySyntheticPendingDisplay(d);const h={"Not Available":"Unavailable",Pending:"Pending",Available:"Available"},u=d.reduce((m,b)=>(m[b.date]={modifier:h[b.status].toLocaleLowerCase()||"unavailable",html:""},m),{});this._config.popups=u,this._config.date.min=o,this._config.date.max=s},args:()=>[this.panelistId]}))}_parseLocalDate(t){if(!t||typeof t!="string")return null;if(/^\d{4}-\d{2}-\d{2}$/.test(t)){const[n,l,i]=t.split("-").map(Number),o=new Date(n,l-1,i);if(o.getFullYear()===n&&o.getMonth()===l-1&&o.getDate()===i)return o}const r=new Date(t);return isNaN(r.getTime())?null:r}_isDateInThisOrNextWeek(t){const r=new Date(t),n=new Date,l=n.getDay(),i=new Date(n.getFullYear(),n.getMonth(),n.getDate()-l+(l===0?-6:1)),o=new Date(i.getFullYear(),i.getMonth(),i.getDate()+13);return r>=i&&r<=o}_initCalendar(t){this._calendar=t.detail,this._calendar&&(this._calendar.actions.clickDay=()=>{var r,n,l;if(((r=this._calendar)==null?void 0:r.selectedDates.length)>0){const[i]=this._calendar.selectedDates;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"calender_interaction",interaction_type:"date_interaction",case_date:i,case_month:this._calendar.locale.months[this._calendar.selectedMonth],neutral_name:(n=document.querySelector("h1[data-jams-neutral-id]"))==null?void 0:n.innerText,practice_areas:[...document.querySelectorAll("div[data-section=practice-areas] > ul > li > strong")].map(o=>o.innerText.trim()).join(","),type_of_services:[...document.querySelectorAll(".tag-neutral")].map(o=>o.innerText).join(","),in_person_or_virtual:[...document.querySelectorAll(".availability-buttons > button")].map(o=>o.innerText).join(","),preferred_location:(l=document.querySelector(".location-heading"))==null?void 0:l.innerText}),this._selectedDate=i,this._isCalendarWarningVisible=i&&this._isDateInThisOrNextWeek(i),this.requestUpdate()}else this._selectedDate="",this._isCalendarWarningVisible=!1,this.requestUpdate(),window.neutralDetail={...window.neutralDetail||{},selectedDate:""}})}_getLastDayOfThirdMonthFormatted(){const t=new Date,r=t.getMonth(),n=new Date(t.getFullYear(),r+4,0),l=n.getFullYear(),i=(n.getMonth()+1).toString().padStart(2,"0"),o=n.getDate().toString().padStart(2,"0");return`${l}-${i}-${o}`}_getCalendarFetchUrl(t,r,n){const l=Date.now();return`/api/jamsware/neutral-calendar/${t}/${r}/${n}?_=${l}`}_formatLocalDate(t){const r=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),l=t.getDate().toString().padStart(2,"0");return`${r}-${n}-${l}`}_addCalendarDaysToYmd(t,r){const[n,l,i]=t.split("-").map(Number),o=new Date(n,l-1,i);return o.setDate(o.getDate()+r),this._formatLocalDate(o)}_applySyntheticPendingDisplay(t){if(this.pendingView){const r=new Map;for(const n of t){const l=n.date.slice(0,7),i=r.get(l)??[];i.push(n),r.set(l,i)}for(const n of r.values()){const i=n.filter(u=>u.status==="Available").map(u=>u.date).sort().length;if(i<=1)continue;const o=Math.floor(i*.25);if(o===0)continue;const s=new Set(n.filter(u=>u.status==="Pending").map(u=>u.date));let c=0;const d=u=>{if(c>=o)return!1;const m=this._addCalendarDaysToYmd(u,-1),b=this._addCalendarDaysToYmd(u,1);if(s.has(m)||s.has(b))return!1;const x=n.find(R=>R.date===u&&R.status==="Available");return x?(x.status="Pending",x.statusCode=1,s.add(u),c+=1,!0):!1};for(;c<o;){const u=n.filter(b=>b.status==="Available").map(b=>b.date).sort();let m=!1;for(let b=0;b<u.length-1;b+=1){const x=u[b],R=u[b+1];if(this._addCalendarDaysToYmd(x,1)===R&&(d(R)||d(x))){m=!0;break}}if(!m)break}const h=n.filter(u=>u.status==="Available").map(u=>u.date).sort();for(const u of h){if(c>=o)break;d(u)}}}}_handleContinueClick(t){var r,n;if(this._selectedDate){const l=document.querySelector(".button-case-mgr");if(l){const i=l.getAttribute("data-neutral-id");
726i&&typeof window.openModal=="function"?window.openModal({neutral_id:i,selected_date:this._selectedDate}):console.error("❌ Cannot open modal: neutral_id or window.openModal not available")}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"calender_interaction",interaction_type:"cta_interaction",cta_text:t.target.innerText,case_date:this._selectedDate,case_month:(()=>{const l=this._parseLocalDate(this._selectedDate);return l?l.toLocaleString("en-US",{month:"long"}):""})(),neutral_name:(r=document.querySelector("h1[data-jams-neutral-id]"))==null?void 0:r.innerText,practice_areas:[...document.querySelectorAll("div[data-section=practice-areas] > ul > li > strong")].map(l=>l.innerText.trim()).join(","),type_of_services:[...document.querySelectorAll(".tag-neutral")].map(l=>l.innerText).join(","),in_person_or_virtual:[...document.querySelectorAll(".availability-buttons > button")].map(l=>l.innerText).join(","),preferred_location:(n=document.querySelector(".location-heading"))==null?void 0:n.innerText})}_findAndAddMissingDaysExcludingWeekends(t,r,n){t.sort((c,d)=>new Date(c.date).getTime()-new Date(d.date).getTime());const l=[],i=new Date(r+"T00:00:00Z"),o=new Date(n+"T00:00:00Z");for(let c=new Date(i);c<=o;c.setUTCDate(c.getUTCDate()+1)){const d=c.getUTCDay();if(d!==0&&d!==6){const h=c.toISOString().split("T")[0];t.some(u=>u.date===h)||l.push({date:h,status:"Available",statusCode:1})}}const s=[...t,...l];return s.sort((c,d)=>new Date(c.date).getTime()-new Date(d.date).getTime()),s}connectedCallback(){super.connectedCallback(),setTimeout(()=>{window.tippy(this.renderRoot.querySelector(".status-item:has(.status-item--pending) > j-info-icon"),{content:this.pendingTooltip,allowHTML:!0,placement:"bottom",interactive:!0})},0)}render(){var r;if(!((r=this.panelistId)!=null&&r.trim()))return S``;const t=this._calendarInfoTask.render({pending:()=>S`
727        <div class="j-neutral-hero-calendar__loading">
728          <span class="j-neutral-hero-calendar__spinner"></span>
729        </div>
730      `,complete:()=>S`
731        <j-neutral-calendar
732          config=${JSON.stringify(this._config)}
733          @calendar-ready=${this._initCalendar}
734        ></j-neutral-calendar>
735      `,error:n=>S`<p>Error: ${n}</p>`});return S`
736      <div class="j-neutral-hero-calendar">
737        ${S`
738        ${t}
739
740          <div class=status-container>
741            <div class="status-item">
742              <span class="status-item__status status-item--available"></span>
743              <span>Available</span>
744            </div>
745            <div class="status-item">
746              <span class="status-item__status status-item--pending"></span>
747              <span>Pending</span>
748              <j-info-icon size="18"></j-info-icon>
749            </div>
750            <div class="status-item">
751              <span class="status-item__status status-item--unavailable"></span>
752              <span>Unavailable</span>
753            </div>
754            <div class="status-item">
755              <span class="status-item__status status-item--selected"></span>
756              <span>Selected</span>
757            </div>
758          </div>
759          <input type="hidden" name="selected-date" value="${this._selectedDate}">
760
761          ${this._isCalendarWarningVisible?S`
762            <div class="warning-container">
763              ${jn(this.closeDateWarning)}
764            </div>
765          `:""}
766
767          <div class="actions">
768            ${!this._selectedDate||this._selectedDate.length===0?S`
769              <div class="actions__warning">
770                <b>Select an available date</b> to submit your request.
771              </div>
772            `:""}
773          </div>
774        `}
775      </div>
776    `}},Yr(_.JNeutralHeroCalendar,"styles",[E(Hn),E(jr),E(aa)]),T([f({type:String,attribute:"panelist-id"})],_.JNeutralHeroCalendar.prototype,"panelistId",2),T([f({type:String,attribute:"close-date-warning"})],_.JNeutralHeroCalendar.prototype,"closeDateWarning",2),T([f({type:String,attribute:"pending-tooltip"})],_.JNeutralHeroCalendar.prototype,"pendingTooltip",2),T([f({type:Boolean,attribute:"pending-view"})],_.JNeutralHeroCalendar.prototype,"pendingView",2),T([ve()],_.JNeutralHeroCalendar.prototype,"_config",2),T([ve()],_.JNeutralHeroCalendar.prototype,"_selectedDate",2),T([ve()],_.JNeutralHeroCalendar.prototype,"_isCalendarWarningVisible",2),_.JNeutralHeroCalendar=T([P("j-neutral-hero-calendar")],_.JNeutralHeroCalendar),Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})})(this.JamsCalendar=this.JamsCalendar||{});
777;
778var ha=Object.defineProperty;var fa=(q,P,j)=>P in q?ha(q,P,{enumerable:!0,configurable:!0,writable:!0,value:j}):q[P]=j;
vendor: 21,039 bytes, lines 778-782
778var v=(q,P,j)=>fa(q,typeof P!="symbol"?P+"":P,j);(function(q){"use strict";var M,Di,Mi;var P=!1,j=!1,K=[],Be=-1;function ki(e){xi(e)}function xi(e){K.includes(e)||K.push(e),Ai()}function Ei(e){let t=K.indexOf(e);t!==-1&&t>Be&&K.splice(t,1)}function Ai(){!j&&!P&&(P=!0,queueMicrotask($i))}function $i(){P=!1,j=!0;for(let e=0;e<K.length;e++)K[e](),Be=e;K.length=0,Be=-1,j=!1}var te,J,ne,Nt,Ve=!0;function Li(e){Ve=!1,e(),Ve=!0}function Ti(e){te=e.reactive,ne=e.release,J=t=>e.effect(t,{scheduler:n=>{Ve?ki(n):n()}}),Nt=e.raw}function Ot(e){J=e}function Pi(e){let t=()=>{};return[i=>{let s=J(i);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(r=>r())}),e._x_effects.add(s),t=()=>{s!==void 0&&(e._x_effects.delete(s),ne(s))},s},()=>{t()}]}function It(e,t){let n=!0,i,s=J(()=>{let r=e();JSON.stringify(r),n?i=r:queueMicrotask(()=>{t(r,i),i=r}),n=!1});return()=>ne(s)}var Ft=[],qt=[],Yt=[];function Ni(e){Yt.push(e)}function ze(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,qt.push(t))}function Rt(e){Ft.push(e)}function Ht(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function jt(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,i])=>{(t===void 0||t.includes(n))&&(i.forEach(s=>s()),delete e._x_attributeCleanups[n])})}function Oi(e){var t,n;for((t=e._x_effects)==null||t.forEach(Ei);(n=e._x_cleanups)!=null&&n.length;)e._x_cleanups.pop()()}var Ue=new MutationObserver(Qe),Ke=!1;function Je(){Ue.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ke=!0}function Bt(){Ii(),Ue.disconnect(),Ke=!1}var le=[];function Ii(){let e=Ue.takeRecords();le.push(()=>e.length>0&&Qe(e));let t=le.length;queueMicrotask(()=>{if(le.length===t)for(;le.length>0;)le.shift()()})}function D(e){if(!Ke)return e();Bt();let t=e();return Je(),t}var We=!1,be=[];function Fi(){We=!0}function qi(){We=!1,Qe(be),be=[]}function Qe(e){if(We){be=be.concat(e);return}let t=[],n=new Set,i=new Map,s=new Map;for(let r=0;r<e.length;r++)if(!e[r].target._x_ignoreMutationObserver&&(e[r].type==="childList"&&(e[r].removedNodes.forEach(a=>{a.nodeType===1&&a._x_marker&&n.add(a)}),e[r].addedNodes.forEach(a=>{if(a.nodeType===1){if(n.has(a)){n.delete(a);return}a._x_marker||t.push(a)}})),e[r].type==="attributes")){let a=e[r].target,o=e[r].attributeName,l=e[r].oldValue,d=()=>{i.has(a)||i.set(a,[]),i.get(a).push({name:o,value:a.getAttribute(o)})},u=()=>{s.has(a)||s.set(a,[]),s.get(a).push(o)};a.hasAttribute(o)&&l===null?d():a.hasAttribute(o)?(u(),d()):u()}s.forEach((r,a)=>{jt(a,r)}),i.forEach((r,a)=>{Ft.forEach(o=>o(a,r))});for(let r of n)t.some(a=>a.contains(r))||qt.forEach(a=>a(r));for(let r of t)r.isConnected&&Yt.forEach(a=>a(r));t=null,n=null,i=null,s=null}function Vt(e){return ue(ie(e))}function ce(e,t,n){return e._x_dataStack=[t,...ie(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(i=>i!==t)}}function ie(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?ie(e.host):e.parentNode?ie(e.parentNode):[]}function ue(e){return new Proxy({objects:e},Yi)}var Yi={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t)||Reflect.has(n,t))},get({objects:e},t,n){return t=="toJSON"?Ri:Reflect.get(e.find(i=>Reflect.has(i,t))||{},t,n)},set({objects:e},t,n,i){const s=e.find(a=>Object.prototype.hasOwnProperty.call(a,t))||e[e.length-1],r=Object.getOwnPropertyDescriptor(s,t);return r!=null&&r.set&&(r!=null&&r.get)?r.set.call(i,n)||!0:Reflect.set(s,t,n)}};function Ri(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function zt(e){let t=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,n=(i,s="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([r,{value:a,enumerable:o}])=>{if(o===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let l=s===""?r:`${s}.${r}`;typeof a=="object"&&a!==null&&a._x_interceptor?i[r]=a.initialize(e,l,r):t(a)&&a!==i&&!(a instanceof Element)&&n(a,l)})};return n(e)}function Ut(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(i,s,r){return e(this.initialValue,()=>Hi(i,s),a=>Ge(i,s,a),s,r)}};return t(n),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let s=n.initialize.bind(n);n.initialize=(r,a,o)=>{let l=i.initialize(r,a,o);return n.initialValue=l,s(r,a,o)}}else n.initialValue=i;return n}}function Hi(e,t){return t.split(".").reduce((n,i)=>n[i],e)}function Ge(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Ge(e[t[0]],t.slice(1),n)}}var Kt={};function N(e,t){Kt[e]=t}function Ze(e,t){let n=ji(t);return Object.entries(Kt).forEach(([i,s])=>{Object.defineProperty(e,`$${i}`,{get(){return s(t,n)},enumerable:!1})}),e}function ji(e){let[t,n]=en(e),i={interceptor:Ut,...t};return ze(e,n),i}function Bi(e,t,n,...i){try{return n(...i)}catch(s){de(s,e,t)}}function de(...e){return Jt(...e)}var Jt=zi;function Vi(e){Jt=e}function zi(e,t,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
779
780${n?'Expression: "'+n+`"
781
782`:""}`,t),setTimeout(()=>{throw e},0)}var we=!0;function Wt(e){let t=we;we=!1;let n=e();return we=t,n}function W(e,t,n={}){let i;return A(e,t)(s=>i=s,n),i}function A(...e){return Qt(...e)}var Qt=Gt;function Ui(e){Qt=e}function Gt(e,t){let n={};Ze(n,e);let i=[n,...ie(e)],s=typeof t=="function"?Ki(i,t):Wi(i,t,e);return Bi.bind(null,e,t,s)}function Ki(e,t){return(n=()=>{},{scope:i={},params:s=[],context:r}={})=>{let a=t.apply(ue([i,...e]),s);Ce(n,a)}}var Xe={};function Ji(e,t){if(Xe[e])return Xe[e];let n=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,r=(()=>{try{let a=new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(a,"name",{value:`[Alpine] ${e}`}),a}catch(a){return de(a,t,e),Promise.resolve()}})();return Xe[e]=r,r}function Wi(e,t,n){let i=Ji(t,n);return(s=()=>{},{scope:r={},params:a=[],context:o}={})=>{i.result=void 0,i.finished=!1;let l=ue([r,...e]);if(typeof i=="function"){let d=i.call(o,i,l).catch(u=>de(u,n,t));i.finished?(Ce(s,i.result,l,a,n),i.result=void 0):d.then(u=>{Ce(s,u,l,a,n)}).catch(u=>de(u,n,t)).finally(()=>i.result=void 0)}}}function Ce(e,t,n,i,s){if(we&&typeof t=="function"){let r=t.apply(n,i);r instanceof Promise?r.then(a=>Ce(e,a,n,i)).catch(a=>de(a,s,t)):e(r)}else typeof t=="object"&&t instanceof Promise?t.then(r=>e(r)):e(t)}var et="x-";function se(e=""){return et+e}function Qi(e){et=e}var De={};function S(e,t){return De[e]=t,{before(n){if(!De[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}const i=Q.indexOf(n);Q.splice(i>=0?i:Q.indexOf("DEFAULT"),0,e)}}}function Gi(e){return Object.keys(De).includes(e)}function tt(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let r=Object.entries(e._x_virtualDirectives).map(([o,l])=>({name:o,value:l})),a=Zt(r);r=r.map(o=>a.find(l=>l.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),t=t.concat(r)}let i={};return t.map(sn((r,a)=>i[r]=a)).filter(an).map(es(i,n)).sort(ts).map(r=>Xi(e,r))}function Zt(e){return Array.from(e).map(sn()).filter(t=>!an(t))}var nt=!1,he=new Map,Xt=Symbol();function Zi(e){nt=!0;let t=Symbol();Xt=t,he.set(t,[]);let n=()=>{for(;he.get(t).length;)he.get(t).shift()();he.delete(t)},i=()=>{nt=!1,n()};e(n),i()}function en(e){let t=[],n=o=>t.push(o),[i,s]=Pi(e);return t.push(s),[{Alpine:ge,effect:i,cleanup:n,evaluateLater:A.bind(A,e),evaluate:W.bind(W,e)},()=>t.forEach(o=>o())]}function Xi(e,t){let n=()=>{},i=De[t.type]||n,[s,r]=en(e);Ht(e,t.original,r);let a=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,s),i=i.bind(i,e,t,s),nt?he.get(Xt).push(i):i())};return a.runCleanups=r,a}var tn=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i}),nn=e=>e;function sn(e=()=>{}){return({name:t,value:n})=>{let{name:i,value:s}=rn.reduce((r,a)=>a(r),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:s}}}var rn=[];function it(e){rn.push(e)}function an({name:e}){return on().test(e)}var on=()=>new RegExp(`^${et}([^:^.]+)\\b`);function es(e,t){return({name:n,value:i})=>{let s=n.match(on()),r=n.match(/:([a-zA-Z0-9\-_:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],o=t||e[n]||n;return{type:s?s[1]:null,value:r?r[1]:null,modifiers:a.map(l=>l.replace(".","")),expression:i,original:o}}}var st="DEFAULT",Q=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",st,"teleport"];function ts(e,t){let n=Q.indexOf(e.type)===-1?st:e.type,i=Q.indexOf(t.type)===-1?st:t.type;return Q.indexOf(n)-Q.indexOf(i)}function fe(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function G(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(s=>G(s,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let i=e.firstElementChild;for(;i;)G(i,t),i=i.nextElementSibling}function T(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var ln=!1;function ns(){ln&&T("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),ln=!0,document.body||T("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),fe(document,"alpine:init"),fe(document,"alpine:initializing"),Je(),Ni(t=>Y(t,G)),ze(t=>ae(t)),Rt((t,n)=>{tt(t,n).forEach(i=>i())});let e=t=>!Me(t.parentElement,!0);Array.from(document.querySelectorAll(dn().join(","))).filter(e).forEach(t=>{Y(t)}),fe(document,"alpine:initialized"),setTimeout(()=>{as()})}var rt=[],cn=[];function un(){return rt.map(e=>e())}function dn(){return rt.concat(cn).map(e=>e())}function hn(e){rt.push(e)}function fn(e){cn.push(e)}function Me(e,t=!1){return re(e,n=>{if((t?dn():un()).some(s=>n.matches(s)))return!0})}function re(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return re(e.parentElement,t)}}function is(e){return un().some(t=>e.matches(t))}var pn=[];function ss(e){pn.push(e)}var rs=1;function Y(e,t=G,n=()=>{}){re(e,i=>i._x_ignore)||Zi(()=>{t(e,(i,s)=>{i._x_marker||(n(i,s),pn.forEach(r=>r(i,s)),tt(i,i.attributes).forEach(r=>r()),i._x_ignore||(i._x_marker=rs++),i._x_ignore&&s())})})}function ae(e,t=G){t(e,n=>{Oi(n),jt(n),delete n._x_marker})}function as(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,n,i])=>{Gi(n)||i.some(s=>{if(document.querySelector(s))return T(`found "${s}", but missing ${t} plugin`),!0})})}var at=[],ot=!1;function lt(e=()=>{}){return queueMicrotask(()=>{ot||setTimeout(()=>{ct()})}),new Promise(t=>{at.push(()=>{e(),t()})})}function ct(){for(ot=!1;at.length;)at.shift()()}function os(){ot=!0}function ut(e,t){return Array.isArray(t)?gn(e,t.join(" ")):typeof t=="object"&&t!==null?ls(e,t):typeof t=="function"?ut(e,t()):gn(e,t)}function gn(e,t){let n=s=>s.split(" ").filter(r=>!e.classList.contains(r)).filter(Boolean),i=s=>(e.classList.add(...s),()=>{e.classList.remove(...s)});return t=t===!0?t="":t||"",i(n(t))}function ls(e,t){let n=o=>o.split(" ").filter(Boolean),i=Object.entries(t).flatMap(([o,l])=>l?n(o):!1).filter(Boolean),s=Object.entries(t).flatMap(([o,l])=>l?!1:n(o)).filter(Boolean),r=[],a=[];return s.forEach(o=>{e.classList.contains(o)&&(e.classList.remove(o),a.push(o))}),i.forEach(o=>{e.classList.contains(o)||(e.classList.add(o),r.push(o))}),()=>{a.forEach(o=>e.classList.add(o)),r.forEach(o=>e.classList.remove(o))}}function Se(e,t){return typeof t=="object"&&t!==null?cs(e,t):us(e,t)}function cs(e,t){let n={};return Object.entries(t).forEach(([i,s])=>{n[i]=e.style[i],i.startsWith("--")||(i=ds(i)),e.style.setProperty(i,s)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Se(e,n)}}function us(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function ds(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function dt(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}S("transition",(e,{value:t,modifiers:n,expression:i},{evaluate:s})=>{typeof i=="function"&&(i=s(i)),i!==!1&&(!i||typeof i=="boolean"?fs(e,n,t):hs(e,i,t))});function hs(e,t,n){mn(e,ut,""),{enter:s=>{e._x_transition.enter.during=s},"enter-start":s=>{e._x_transition.enter.start=s},"enter-end":s=>{e._x_transition.enter.end=s},leave:s=>{e._x_transition.leave.during=s},"leave-start":s=>{e._x_transition.leave.start=s},"leave-end":s=>{e._x_transition.leave.end=s}}[n](t)}function fs(e,t,n){mn(e,Se);let i=!t.includes("in")&&!t.includes("out")&&!n,s=i||t.includes("in")||["enter"].includes(n),r=i||t.includes("out")||["leave"].includes(n);t.includes("in")&&!i&&(t=t.filter((m,b)=>b<t.indexOf("out"))),t.includes("out")&&!i&&(t=t.filter((m,b)=>b>t.indexOf("out")));let a=!t.includes("opacity")&&!t.includes("scale"),o=a||t.includes("opacity"),l=a||t.includes("scale"),d=o?0:1,u=l?pe(t,"scale",95)/100:1,f=pe(t,"delay",0)/1e3,g=pe(t,"origin","center"),_="opacity, transform",y=pe(t,"duration",150)/1e3,L=pe(t,"duration",75)/1e3,p="cubic-bezier(0.4, 0.0, 0.2, 1)";s&&(e._x_transition.enter.during={transformOrigin:g,transitionDelay:`${f}s`,transitionProperty:_,transitionDuration:`${y}s`,transitionTimingFunction:p},e._x_transition.enter.start={opacity:d,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),r&&(e._x_transition.leave.during={transformOrigin:g,transitionDelay:`${f}s`,transitionProperty:_,transitionDuration:`${L}s`,transitionTimingFunction:p},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:d,transform:`scale(${u})`})}function mn(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(i=()=>{},s=()=>{}){ht(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,s)},out(i=()=>{},s=()=>{}){ht(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,s)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,i){const s=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let r=()=>s(n);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):r():e._x_transition?e._x_transition.in(n):r();return}e._x_hidePromise=e._x_transition?new Promise((a,o)=>{e._x_transition.out(()=>{},()=>a(i)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>o({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let a=_n(e);a?(a._x_hideChildren||(a._x_hideChildren=[]),a._x_hideChildren.push(e)):s(()=>{let o=l=>{let d=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(o)]).then(([u])=>u==null?void 0:u());return delete l._x_hidePromise,delete l._x_hideChildren,d};o(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function _n(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:_n(t)}function ht(e,t,{during:n,start:i,end:s}={},r=()=>{},a=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(i).length===0&&Object.keys(s).length===0){r(),a();return}let o,l,d;ps(e,{start(){o=t(e,i)},during(){l=t(e,n)},before:r,end(){o(),d=t(e,s)},after:a,cleanup(){l(),d()}})}function ps(e,t){let n,i,s,r=dt(()=>{D(()=>{n=!0,i||t.before(),s||(t.end(),ct()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:dt(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();r()}),finish:r},D(()=>{t.start(),t.during()}),os(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,o=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),D(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{n||(D(()=>{t.end()}),ct(),setTimeout(e._x_transitioning.finish,a+o),s=!0)})})}function pe(e,t,n){if(e.indexOf(t)===-1)return n;const i=e[e.indexOf(t)+1];if(!i||t==="scale"&&isNaN(i))return n;if(t==="duration"||t==="delay"){let s=i.match(/([0-9]+)ms/);if(s)return s[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}var B=!1;function V(e,t=()=>{}){return(...n)=>B?t(...n):e(...n)}function gs(e){return(...t)=>B&&e(...t)}var yn=[];function ke(e){yn.push(e)}function ms(e,t){yn.forEach(n=>n(e,t)),B=!0,vn(()=>{Y(t,(n,i)=>{i(n,()=>{})})}),B=!1}var ft=!1;function _s(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),B=!0,ft=!0,vn(()=>{ys(t)}),B=!1,ft=!1}function ys(e){let t=!1;Y(e,(i,s)=>{G(i,(r,a)=>{if(t&&is(r))return a();t=!0,s(r,a)})})}function vn(e){let t=J;Ot((n,i)=>{let s=t(n);return ne(s),()=>{}}),e(),Ot(t)}function bn(e,t,n,i=[]){switch(e._x_bindings||(e._x_bindings=te({})),e._x_bindings[t]=n,t=i.includes("camel")?ks(t):t,t){case"value":vs(e,n);break;case"style":ws(e,n);break;case"class":bs(e,n);break;case"selected":case"checked":Cs(e,t,n);break;default:wn(e,t,n);break}}function vs(e,t){if(Sn(e))e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=xe(e.value)===t:e.checked=Cn(e.value,t));else if(pt(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>Cn(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Ss(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function bs(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=ut(e,t)}function ws(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Se(e,t)}function Cs(e,t,n){wn(e,t,n),Ms(e,t,n)}function wn(e,t,n){[null,void 0,!1].includes(n)&&Es(t)?e.removeAttribute(t):(Dn(t)&&(n=t),Ds(e,t,n))}function Ds(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function Ms(e,t,n){e[t]!==n&&(e[t]=n)}function Ss(e,t){const n=[].concat(t).map(i=>i+"");Array.from(e.options).forEach(i=>{i.selected=n.includes(i.value)})}function ks(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Cn(e,t){return e==t}function xe(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var xs=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Dn(e){return xs.has(e)}function Es(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function As(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:Mn(e,t,n)}function $s(e,t,n,i=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let s=e._x_inlineBindings[t];return s.extract=i,Wt(()=>W(e,s.expression))}return Mn(e,t,n)}function Mn(e,t,n){let i=e.getAttribute(t);return i===null?typeof n=="function"?n():n:i===""?!0:Dn(t)?!![t,"true"].includes(i):i}function pt(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function Sn(e){return e.type==="radio"||e.localName==="ui-radio"}function kn(e,t){let n;return function(){const i=this,s=arguments,r=function(){n=null,e.apply(i,s)};clearTimeout(n),n=setTimeout(r,t)}}function xn(e,t){let n;return function(){let i=this,s=arguments;n||(e.apply(i,s),n=!0,setTimeout(()=>n=!1,t))}}function En({get:e,set:t},{get:n,set:i}){let s=!0,r,a=J(()=>{let o=e(),l=n();if(s)i(gt(o)),s=!1;else{let d=JSON.stringify(o),u=JSON.stringify(l);d!==r?i(gt(o)):d!==u&&t(gt(l))}r=JSON.stringify(e()),JSON.stringify(n())});return()=>{ne(a)}}function gt(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Ls(e){(Array.isArray(e)?e:[e]).forEach(n=>n(ge))}var Z={},An=!1;function Ts(e,t){if(An||(Z=te(Z),An=!0),t===void 0)return Z[e];Z[e]=t,zt(Z[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&Z[e].init()}function Ps(){return Z}var $n={};function Ns(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?Ln(e,n()):($n[e]=n,()=>{})}
782function Os(e){return Object.entries($n).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...i)=>n(...i)}})}),e}function Ln(e,t,n){let i=[];for(;i.length;)i.pop()();let s=Object.entries(t).map(([a,o])=>({name:a,value:o})),r=Zt(s);return s=s.map(a=>r.find(o=>o.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),tt(e,s,n).map(a=>{i.push(a.runCleanups),a()}),()=>{for(;i.length;)i.pop()()}}var Tn={};function Is(e,t){Tn[e]=t}function Fs(e,t){return Object.entries(Tn).forEach(([n,i])=>{Object.defineProperty(e,n,{get(){return(...s)=>i.bind(t)(...s)},enumerable:!1})}),e}var qs={get reactive(){return te},get release(){return ne},get effect(){return J},get raw(){return Nt},version:"3.15.2",flushAndStopDeferringMutations:qi,dontAutoEvaluateFunctions:Wt,disableEffectScheduling:Li,startObservingMutations:Je,stopObservingMutations:Bt,setReactivityEngine:Ti,onAttributeRemoved:Ht,onAttributesAdded:Rt,closestDataStack:ie,skipDuringClone:V,onlyDuringClone:gs,addRootSelector:hn,addInitSelector:fn,setErrorHandler:Vi,interceptClone:ke,addScopeToNode:ce,deferMutations:Fi,mapAttributes:it,evaluateLater:A,interceptInit:ss,setEvaluator:Ui,mergeProxies:ue,extractProp:$s,findClosest:re,onElRemoved:ze,closestRoot:Me,destroyTree:ae,interceptor:Ut,transition:ht,setStyles:Se,mutateDom:D,directive:S,entangle:En,throttle:xn,debounce:kn,evaluate:W,initTree:Y,nextTick:lt,prefixed:se,prefix:Qi,plugin:Ls,magic:N,store:Ts,start:ns,clone:_s,cloneNode:ms,bound:As,$data:Vt,watch:It,walk:G,data:Is,bind:Ns},ge=qs;function Ys(e,t){const n=Object.create(null),i=e.split(",");for(let s=0;s<i.length;s++)n[i[s]]=!0;return s=>!!n[s]}var Rs=Object.freeze({}),Hs=Object.prototype.hasOwnProperty,Ee=(e,t)=>Hs.call(e,t),X=Array.isArray,me=e=>Pn(e)==="[object Map]",js=e=>typeof e=="string",mt=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",Bs=Object.prototype.toString,Pn=e=>Bs.call(e),Nn=e=>Pn(e).slice(8,-1),_t=e=>js(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zs=Vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),On=(e,t)=>e!==t&&(e===e||t===t),yt=new WeakMap,_e=[],I,ee=Symbol("iterate"),vt=Symbol("Map key iterate");function Us(e){return e&&e._isEffect===!0}function Ks(e,t=Rs){Us(e)&&(e=e.raw);const n=Qs(e,t);return t.lazy||n(),n}function Js(e){e.active&&(In(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var Ws=0;function Qs(e,t){const n=function(){if(!n.active)return e();if(!_e.includes(n)){In(n);try{return Zs(),_e.push(n),I=n,e()}finally{_e.pop(),Fn(),I=_e[_e.length-1]}}};return n.id=Ws++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function In(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var oe=!0,bt=[];function Gs(){bt.push(oe),oe=!1}function Zs(){bt.push(oe),oe=!0}function Fn(){const e=bt.pop();oe=e===void 0?!0:e}function O(e,t,n){if(!oe||I===void 0)return;let i=yt.get(e);i||yt.set(e,i=new Map);let s=i.get(n);s||i.set(n,s=new Set),s.has(I)||(s.add(I),I.deps.push(s),I.options.onTrack&&I.options.onTrack({effect:I,target:e,type:t,key:n}))}function z(e,t,n,i,s,r){const a=yt.get(e);if(!a)return;const o=new Set,l=u=>{u&&u.forEach(f=>{(f!==I||f.allowRecurse)&&o.add(f)})};
782if(t==="clear")a.forEach(l);else if(n==="length"&&X(e))a.forEach((u,f)=>{(f==="length"||f>=i)&&l(u)});else switch(n!==void 0&&l(a.get(n)),t){case"add":X(e)?_t(n)&&l(a.get("length")):(l(a.get(ee)),me(e)&&l(a.get(vt)));break;case"delete":X(e)||(l(a.get(ee)),me(e)&&l(a.get(vt)));break;case"set":me(e)&&l(a.get(ee));break}const d=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:e,key:n,type:t,newValue:i,oldValue:s,oldTarget:r}),u.options.scheduler?u.options.scheduler(u):u()};o.forEach(d)}var Xs=Ys("__proto__,__v_isRef,__isVue"),qn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(mt)),er=Rn(),tr=Rn(!0),Yn=nr();function nr(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=w(this);for(let r=0,a=this.length;r<a;r++)O(i,"get",r+"");const s=i[t](...n);return s===-1||s===!1?i[t](...n.map(w)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Gs();const i=w(this)[t].apply(this,n);return Fn(),i}}),e}function Rn(e=!1,t=!1){return function(i,s,r){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_raw"&&r===(e?t?mr:Jn:t?gr:Kn).get(i))return i;const a=X(i);if(!e&&a&&Ee(Yn,s))return Reflect.get(Yn,s,r);const o=Reflect.get(i,s,r);return(mt(s)?qn.has(s):Xs(s))||(e||O(i,"get",s),t)?o:St(o)?!a||!_t(s)?o.value:o:Ae(o)?e?Wn(o):Mt(o):o}}var ir=sr();function sr(e=!1){return function(n,i,s,r){let a=n[i];if(!e&&(s=w(s),a=w(a),!X(n)&&St(a)&&!St(s)))return a.value=s,!0;const o=X(n)&&_t(i)?Number(i)<n.length:Ee(n,i),l=Reflect.set(n,i,s,r);return n===w(r)&&(o?On(s,a)&&z(n,"set",i,s,a):z(n,"add",i,s)),l}}function rr(e,t){const n=Ee(e,t),i=e[t],s=Reflect.deleteProperty(e,t);return s&&n&&z(e,"delete",t,void 0,i),s}function ar(e,t){const n=Reflect.has(e,t);return(!mt(t)||!qn.has(t))&&O(e,"has",t),n}function or(e){return O(e,"iterate",X(e)?"length":ee),Reflect.ownKeys(e)}var lr={get:er,set:ir,deleteProperty:rr,has:ar,ownKeys:or},cr={get:tr,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},wt=e=>Ae(e)?Mt(e):e,Ct=e=>Ae(e)?Wn(e):e,Dt=e=>e,$e=e=>Reflect.getPrototypeOf(e);function Le(e,t,n=!1,i=!1){e=e.__v_raw;const s=w(e),r=w(t);t!==r&&!n&&O(s,"get",t),!n&&O(s,"get",r);const{has:a}=$e(s),o=i?Dt:n?Ct:wt;if(a.call(s,t))return o(e.get(t));if(a.call(s,r))return o(e.get(r));e!==s&&e.get(t)}function Te(e,t=!1){const n=this.__v_raw,i=w(n),s=w(e);return e!==s&&!t&&O(i,"has",e),!t&&O(i,"has",s),e===s?n.has(e):n.has(e)||n.has(s)}function Pe(e,t=!1){return e=e.__v_raw,!t&&O(w(e),"iterate",ee),Reflect.get(e,"size",e)}function Hn(e){e=w(e);const t=w(this);return $e(t).has.call(t,e)||(t.add(e),z(t,"add",e,e)),this}function jn(e,t){t=w(t);const n=w(this),{has:i,get:s}=$e(n);let r=i.call(n,e);r?Un(n,i,e):(e=w(e),r=i.call(n,e));const a=s.call(n,e);return n.set(e,t),r?On(t,a)&&z(n,"set",e,t,a):z(n,"add",e,t),this}function Bn(e){const t=w(this),{has:n,get:i}=$e(t);let s=n.call(t,e);s?Un(t,n,e):(e=w(e),s=n.call(t,e));const r=i?i.call(t,e):void 0,a=t.delete(e);return s&&z(t,"delete",e,void 0,r),a}function Vn(){const e=w(this),t=e.size!==0,n=me(e)?new Map(e):new Set(e),i=e.clear();return t&&z(e,"clear",void 0,void 0,n),i}function Ne(e,t){return function(i,s){const r=this,a=r.__v_raw,o=w(a),l=t?Dt:e?Ct:wt;return!e&&O(o,"iterate",ee),a.forEach((d,u)=>i.call(s,l(d),l(u),r))}}function Oe(e,t,n){return function(...i){const s=this.__v_raw,r=w(s),a=me(r),o=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,d=s[e](...i),u=n?Dt:t?Ct:wt;return!t&&O(r,"iterate",l?vt:ee),{next(){const{value:f,done:g}=d.next();return g?{value:f,done:g}:{value:o?[u(f[0]),u(f[1])]:u(f),done:g}},[Symbol.iterator](){return this}}}}function U(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${zs(e)} operation ${n}failed: target is readonly.`,w(this))}return e==="delete"?!1:this}}function ur(){const e={get(r){return Le(this,r)},get size(){return Pe(this)},has:Te,add:Hn,set:jn,delete:Bn,clear:Vn,forEach:Ne(!1,!1)},t={get(r){return Le(this,r,!1,!0)},get size(){return Pe(this)},has:Te,add:Hn,set:jn,delete:Bn,clear:Vn,forEach:Ne(!1,!0)},n={get(r){return Le(this,r,!0)},get size(){return Pe(this,!0)},has(r){return Te.call(this,r,!0)},add:U("add"),set:U("set"),delete:U("delete"),clear:U("clear"),forEach:Ne(!0,!1)},i={get(r){return Le(this,r,!0,!0)},get size(){return Pe(this,!0)},has(r){return Te.call(this,r,!0)},add:U("add"),set:U("set"),delete:U("delete"),clear:U("clear"),forEach:Ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Oe(r,!1,!1),n[r]=Oe(r,!0,!1),t[r]=Oe(r,!1,!0),i[r]=Oe(r,!0,!0)}),[e,n,t,i]}var[dr,hr]=ur();function zn(e,t){const n=e?hr:dr;return(i,s,r)=>
782s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(Ee(n,s)&&s in i?n:i,s,r)}var fr={get:zn(!1)},pr={get:zn(!0)};function Un(e,t,n){const i=w(n);if(i!==n&&t.call(e,i)){const s=Nn(e);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Kn=new WeakMap,gr=new WeakMap,Jn=new WeakMap,mr=new WeakMap;function _r(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yr(e){return e.__v_skip||!Object.isExtensible(e)?0:_r(Nn(e))}function Mt(e){return e&&e.__v_isReadonly?e:Qn(e,!1,lr,fr,Kn)}function Wn(e){return Qn(e,!0,cr,pr,Jn)}function Qn(e,t,n,i,s){if(!Ae(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=s.get(e);if(r)return r;const a=yr(e);if(a===0)return e;const o=new Proxy(e,a===2?i:n);return s.set(e,o),o}function w(e){return e&&w(e.__v_raw)||e}function St(e){return!!(e&&e.__v_isRef===!0)}N("nextTick",()=>lt),N("dispatch",e=>fe.bind(fe,e)),N("watch",(e,{evaluateLater:t,cleanup:n})=>(i,s)=>{let r=t(i),o=It(()=>{let l;return r(d=>l=d),l},s);n(o)}),N("store",Ps),N("data",e=>Vt(e)),N("root",e=>Me(e)),N("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=ue(vr(e))),e._x_refs_proxy));function vr(e){let t=[];return re(e,n=>{n._x_refs&&t.push(n._x_refs)}),t}var kt={};function Gn(e){return kt[e]||(kt[e]=0),++kt[e]}function br(e,t){return re(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function wr(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Gn(t))}N("id",(e,{cleanup:t})=>(n,i=null)=>{let s=`${n}${i?`-${i}`:""}`;return Cr(e,s,t,()=>{let r=br(e,n),a=r?r._x_ids[n]:Gn(n);return i?`${n}-${a}-${i}`:`${n}-${a}`})}),ke((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Cr(e,t,n,i){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let s=i();return e._x_id[t]=s,n(()=>{delete e._x_id[t]}),s}N("el",e=>e),Zn("Focus","focus","focus"),Zn("Persist","persist","persist");function Zn(e,t,n){N(t,i=>T(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}S("modelable",(e,{expression:t},{effect:n,evaluateLater:i,cleanup:s})=>{let r=i(t),a=()=>{let u;return r(f=>u=f),u},o=i(`${t} = __placeholder`),l=u=>o(()=>{},{scope:{__placeholder:u}}),d=a();l(d),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,f=e._x_model.set,g=En({get(){return u()},set(_){f(_)}},{get(){return a()},set(_){l(_)}});s(g)})}),S("teleport",(e,{modifiers:t,expression:n},{cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&T("x-teleport can only be used on a <template> tag",e);let s=Xn(n),r=e.content.cloneNode(!0).firstElementChild;e._x_teleport=r,r._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),r.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(o=>{r.addEventListener(o,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),ce(r,{},e);let a=(o,l,d)=>{d.includes("prepend")?l.parentNode.insertBefore(o,l):d.includes("append")?l.parentNode.insertBefore(o,l.nextSibling):l.appendChild(o)};D(()=>{a(r,s,t),V(()=>{Y(r)})()}),e._x_teleportPutBack=()=>{let o=Xn(n);D(()=>{a(e._x_teleport,o,t)})},i(()=>D(()=>{r.remove(),ae(r)}))});var Dr=document.createElement("div");function Xn(e){let t=V(()=>document.querySelector(e),()=>Dr)();return t||T(`Cannot find x-teleport element for selector: "${e}"`),t}var ei=()=>{};ei.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})},S("ignore",ei),S("effect",V((e,{expression:t},{effect:n})=>{n(A(e,t))}));function xt(e,t,n,i){let s=e,r=l=>i(l),a={},o=(l,d)=>u=>d(l,u);if(n.includes("dot")&&(t=Mr(t)),n.includes("camel")&&(t=Sr(t)),n.includes("passive")&&(a.passive=!0),n.includes("capture")&&(a.capture=!0),n.includes("window")&&(s=window),n.includes("document")&&(s=document),n.includes("debounce")){let l=n[n.indexOf("debounce")+1]||"invalid-wait",d=Ie(l.split("ms")[0])?Number(l.split("ms")[0]):250;r=kn(r,d)}if(n.includes("throttle")){let l=n[n.indexOf("throttle")+1]||"invalid-wait",d=Ie(l.split("ms")[0])?Number(l.split("ms")[0]):250;r=xn(r,d)}return n.includes("prevent")&&(r=o(r,(l,d)=>{d.preventDefault(),l(d)})),n.includes("stop")&&(r=o(r,(l,d)=>{d.stopPropagation(),l(d)})),n.includes("once")&&(r=o(r,(l,d)=>{l(d),s.removeEventListener(t,r,a)})),(n.includes("away")||n.includes("outside"))&&(s=document,r=o(r,(l,d)=>{e.contains(d.target)||d.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(d))})),n.includes("self")&&(r=o(r,(l,d)=>{d.target===e&&l(d)})),(xr(t)||ti(t))&&(r=o(r,(l,d)=>{Er(d,n)||l(d)}
vendor: 2,885 bytes, line 782
782)),s.addEventListener(t,r,a),()=>{s.removeEventListener(t,r,a)}}function Mr(e){return e.replace(/-/g,".")}function Sr(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Ie(e){return!Array.isArray(e)&&!isNaN(e)}function kr(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function xr(e){return["keydown","keyup"].includes(e)}function ti(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function Er(e,t){let n=t.filter(r=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll"].includes(r));if(n.includes("debounce")){let r=n.indexOf("debounce");n.splice(r,Ie((n[r+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let r=n.indexOf("throttle");n.splice(r,Ie((n[r+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&ni(e.key).includes(n[0]))return!1;const s=["ctrl","shift","alt","meta","cmd","super"].filter(r=>n.includes(r));return n=n.filter(r=>!s.includes(r)),!(s.length>0&&s.filter(a=>((a==="cmd"||a==="super")&&(a="meta"),e[`${a}Key`])).length===s.length&&(ti(e.type)||ni(e.key).includes(n[0])))}function ni(e){if(!e)return[];e=kr(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}S("model",(e,{modifiers:t,expression:n},{effect:i,cleanup:s})=>{let r=e;t.includes("parent")&&(r=e.parentNode);let a=A(r,n),o;typeof n=="string"?o=A(r,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?o=A(r,`${n()} = __placeholder`):o=()=>{};let l=()=>{let g;return a(_=>g=_),ii(g)?g.get():g},d=g=>{let _;a(y=>_=y),ii(_)?_.set(g):o(()=>{},{scope:{__placeholder:g}})};typeof n=="string"&&e.type==="radio"&&D(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});let u=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input",f=B?()=>{}:xt(e,u,t,g=>{d(Et(e,t,g,l()))});if(t.includes("fill")&&([void 0,null,""].includes(l())||pt(e)&&Array.isArray(l())||e.tagName.toLowerCase()==="select"&&e.multiple)&&d(Et(e,t,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=f,s(()=>e._x_removeModelListeners.default()),e.form){let g=xt(e.form,"reset",[],_=>{lt(()=>e._x_model&&e._x_model.set(Et(e,t,{target:e},l())))});s(()=>g())}e._x_model={get(){return l()},set(g){d(g)}},e._x_forceModelUpdate=g=>{g===void 0&&typeof n=="string"&&n.match(/\./)&&(g=""),window.fromModel=!0,D(()=>bn(e,"value",g)),delete window.fromModel},i(()=>{let g=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(g)})});function Et(e,t,n,i){return D(()=>
782{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(pt(e))if(Array.isArray(i)){let s=null;return t.includes("number")?s=At(n.target.value):t.includes("boolean")?s=xe(n.target.value):s=n.target.value,n.target.checked?i.includes(s)?i:i.concat([s]):i.filter(r=>!Ar(r,s))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(s=>{let r=s.value||s.text;return At(r)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(s=>{let r=s.value||s.text;return xe(r)}):Array.from(n.target.selectedOptions).map(s=>s.value||s.text);{let s;return Sn(e)?n.target.checked?s=n.target.value:s=i:s=n.target.value,t.includes("number")?At(s):t.includes("boolean")?xe(s):t.includes("trim")?s.trim():s}}})}function At(e){let t=e?parseFloat(e):null;return $r(t)?t:e}function Ar(e,t){return e==t}function $r(e){return!Array.isArray(e)&&!isNaN(e)}function ii(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}S("cloak",e=>queueMicrotask(()=>D(()=>e.removeAttribute(se("cloak"))))),fn(()=>`[${se("init")}]`),S("init",V((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1))),S("text",(e,{expression:t},{effect:n,evaluateLater:i})=>{let s=i(t);n(()=>{s(r=>{D(()=>{e.textContent=r})})})}),S("html",(e,{expression:t},{effect:n,evaluateLater:i})=>{let s=i(t);n(()=>{s(r=>{D(()=>{e.innerHTML=r,e._x_ignoreSelf=!0,Y(e),delete e._x_ignoreSelf})})})}),it(tn(":",nn(se("bind:"))));var si=(e,{value:t,modifiers:n,expression:i,original:s},{effect:r,cleanup:a})=>{if(!t){let l={};Os(l),A(e,i)(u=>{Ln(e,u,s)},{scope:l});return}if(t==="key")return Lr(e,i);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let o=A(e,i);r(()=>o(l=>{l===void 0&&typeof i=="string"&&i.match(/\./)&&(l=""),D(()=>bn(e,t,l,n))})),a(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};si.inline=(e,{value:t,modifiers:n,expression:i})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:i,extract:!1})},S("bind",si);function Lr(e,t){e._x_keyExpression=t}hn(()=>`[${se("data")}]`),S("data",(e,{expression:t},{cleanup:n})=>{if(Tr(e))return;t=t===""?"{}":t;let i={};Ze(i,e);let s={};Fs(s,i);let r=W(e,t,{scope:s});(r===void 0||r===!0)&&(r={}),Ze(r,e);let a=te(r);zt(a);let o=ce(e,a);a.init&&W(e,a.init),n(()=>{a.destroy&&W(e,a.destroy),o()})}),ke((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Tr(e){return B?ft?!0:e.hasAttribute("data-has-alpine-state"):!1}S("show",(e,{modifiers:t,expression:n},{effect:i})=>{let s=A(e,n);e._x_doHide||(e._x_doHide=()=>{D(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{D(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let r=()=>{e._x_doHide(),e._x_isShown=!1},a=()=>{e._x_doShow(),e._x_isShown=!0},o=()=>setTimeout(a),l=dt(f=>f?a():r(),f=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,f,a,r):f?o():r()}),d,u=!0;i(()=>s(f=>{!u&&f===d||(t.includes("immediate")&&(f?o():r()),l(f),d=f,u=!1)}))}),S("for",(e,{expression:t},{effect:n,cleanup:i})=>{let s=Nr(t),r=A(e,s.items),a=A(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>Pr(e,s,r,a)),i(()=>{Object.values(e._x_lookup).forEach(o=>D(()=>{ae(o),o.remove()})),delete e._x_prevKeys,delete e._x_lookup})});function Pr(e,t,n,i){let s=a=>typeof a=="object"&&!Array.isArray(a),r=e;n(a=>{Or(a)&&a>=0&&(a=Array.from(Array(a).keys(),p=>p+1)),a===void 0&&(a=[]);let o=e._x_lookup,l=e._x_prevKeys,d=[],u=[];if(s(a))a=Object.entries(a).map(([p,m])=>{let b=ri(t,m,p,a);i(C=>{u.includes(C)&&T("Duplicate key on x-for",e),u.push(C)},{scope:{index:p,...b}}),d.push(b)});else for(let p=0;p<a.length;p++){let m=ri(t,a[p],p,a);i(b=>{u.includes(b)&&T("Duplicate key on x-for",e),u.push(b)}
782,{scope:{index:p,...m}}),d.push(m)}let f=[],g=[],_=[],y=[];for(let p=0;p<l.length;p++){let m=l[p];u.indexOf(m)===-1&&_.push(m)}l=l.filter(p=>!_.includes(p));let L="template";for(let p=0;p<u.length;p++){let m=u[p],b=l.indexOf(m);if(b===-1)l.splice(p,0,m),f.push([L,p]);else if(b!==p){let C=l.splice(p,1)[0],$=l.splice(b-1,1)[0];l.splice(p,0,$),l.splice(b,0,C),g.push([C,$])}else y.push(m);L=m}for(let p=0;p<_.length;p++){let m=_[p];m in o&&(D(()=>{ae(o[m]),o[m].remove()}),delete o[m])}for(let p=0;p<g.length;p++){let[m,b]=g[p],C=o[m],$=o[b],H=document.createElement("div");D(()=>{$||T('x-for ":key" is undefined or invalid',r,b,o),$.after(H),C.after($),$._x_currentIfEl&&$.after($._x_currentIfEl),H.before(C),C._x_currentIfEl&&C.after(C._x_currentIfEl),H.remove()}),$._x_refreshXForScope(d[u.indexOf(b)])}for(let p=0;p<f.length;p++){let[m,b]=f[p],C=m==="template"?r:o[m];C._x_currentIfEl&&(C=C._x_currentIfEl);let $=d[b],H=u[b],ve=document.importNode(r.content,!0).firstElementChild,Si=te($);ce(ve,Si,r),ve._x_refreshXForScope=ca=>{Object.entries(ca).forEach(([ua,da])=>{Si[ua]=da})},D(()=>{C.after(ve),V(()=>Y(ve))()}),typeof H=="object"&&T("x-for key cannot be an object, it must be a string or an integer",r),o[H]=ve}for(let p=0;p<y.length;p++)o[y[p]]._x_refreshXForScope(d[u.indexOf(y[p])]);r._x_prevKeys=u})}function Nr(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,s=e.match(i);if(!s)return;let r={};r.items=s[2].trim();let a=s[1].replace(n,"").trim(),o=a.match(t);return o?(r.item=a.replace(t,"").trim(),r.index=o[1].trim(),o[2]&&(r.collection=o[2].trim())):r.item=a,r}function ri(e,t,n,i){let s={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(a=>a.trim()).forEach((a,o)=>{s[a]=t[o]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(a=>a.trim()).forEach(a=>{s[a]=t[a]}):s[e.item]=t,e.index&&(s[e.index]=n),e.collection&&(s[e.collection]=i),s}function Or(e){return!Array.isArray(e)&&!isNaN(e)}function ai(){}ai.inline=(e,{expression:t},{cleanup:n})=>{let i=Me(e);i._x_refs||(i._x_refs={}),i._x_refs[t]=e,n(()=>delete i._x_refs[t])},S("ref",ai),S("if",(e,{expression:t},{effect:n,cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&T("x-if can only be used on a <template> tag",e);let s=A(e,t),r=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let o=e.content.cloneNode(!0).firstElementChild;return ce(o,{},e),D(()=>{e.after(o),V(()=>Y(o))()}),e._x_currentIfEl=o,e._x_undoIf=()=>{D(()=>{ae(o),o.remove()}),delete e._x_currentIfEl},o},a=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>s(o=>{o?r():a()})),i(()=>e._x_undoIf&&e._x_undoIf())}),S("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(s=>wr(e,s))}),ke((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)}),it(tn("@",nn(se("on:")))),S("on",V((e,{value:t,modifiers:n,expression:i},{cleanup:s})=>{let r=i?A(e,i):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let a=xt(e,t,n,o=>{r(()=>{},{scope:{$event:o},params:[o]})});s(()=>a())})),Fe("Collapse","collapse","collapse"),Fe("Intersect","intersect","intersect"),Fe("Focus","trap","focus"),Fe("Mask","mask","mask");function Fe(e,t,n){S(t,i=>T(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}ge.setEvaluator(Gt),ge.setReactivityEngine({reactive:Mt,effect:Ks,release:Js,raw:w});var Ir=ge,c=Ir;let R=(M=class extends Date{constructor(n=null,i="YYYY-MM-DD",s="en-US"){super(M.parseDateTime(n,i,s));v(this,"lang");this.lang=s}static parseDateTime(n,i="YYYY-MM-DD",s="en-US"){if(!n)return new Date(new Date().setHours(0,0,0,0));if(n instanceof M)return n.toJSDate();if(n instanceof Date)return n;if(/^-?\d{10,}$/.test(String(n)))return new Date(Number(n));if(typeof n=="string"){const r=[];let a=null;for(;(a=M.regex.exec(i))!=null;)a[1]!=="\\"&&r.push(a);if(r.length){const o={year:null,month:null,shortMonth:null,longMonth:null,day:null,hour:0,minute:0,second:0,ampm:null,value:""};r[0].index>0&&(o.value+=".*?");for(const[d,u]of Object.entries(r)){const f=Number(d),{group:g,pattern:_}=M.formatPatterns(u[0],s);o[g]=f+1,o.value+=_,o.value+=".*?"}const l=new RegExp(`^${o.value}$`);if(l.test(n)){const d=l.exec(n),u=Number(d[o.year]);let f=null;o.month?f=Number(d[o.month])-1:o.shortMonth?f=M.shortMonths(s).indexOf(d[o.shortMonth]):o.longMonth&&(f=M.longMonths(s).indexOf(d[o.longMonth]));const g=Number(d[o.day])||1,_=Number(d[o.hour]);let y=Number.isNaN(_)?0:_;const L=Number(d[o.minute]),p=Number.isNaN(L)?0:L,m=Number(d[o.second]),b=Number.isNaN(m)?0:m,C=d[o.ampm];return C&&C==="PM"&&(y+=12,y===24&&(y=0)),new Date(u,f,g,y,p,b,0)}}}return new Date(new Date().setHours(0,0,0,0))}static shortMonths(n){return M.MONTH_JS.map(i=>
vendor: 5,689 bytes, line 782
782new Date(2019,i).toLocaleString(n,{month:"short"}))}static longMonths(n){return M.MONTH_JS.map(i=>new Date(2019,i).toLocaleString(n,{month:"long"}))}static formatPatterns(n,i){switch(n){case"YY":case"YYYY":return{group:"year",pattern:`(\\d{${n.length}})`};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:`(${M.shortMonths(i).join("|")})`};case"MMMM":return{group:"longMonth",pattern:`(${M.longMonths(i).join("|")})`};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"};case"h":case"H":return{group:"hour",pattern:"(\\d{1,2})"};case"hh":case"HH":return{group:"hour",pattern:"(\\d{2})"};case"m":return{group:"minute",pattern:"(\\d{1,2})"};case"mm":return{group:"minute",pattern:"(\\d{2})"};case"s":return{group:"second",pattern:"(\\d{1,2})"};case"ss":return{group:"second",pattern:"(\\d{2})"};case"a":case"A":return{group:"ampm",pattern:"(AM|PM|am|pm)"}}}getWeek(n){const i=new Date(this.midnight_ts(this)),s=(this.getDay()+(7-n))%7;i.setDate(i.getDate()-s);const r=i.getTime();return i.setMonth(0,1),i.getDay()!==n&&i.setMonth(0,1+(4-i.getDay()+7)%7),1+Math.ceil((r-i.getTime())/6048e5)}clone(){return new M(this)}toJSDate(){return new Date(this)}inArray(n,i="[]"){return n.some(s=>s instanceof Array?this.isBetween(s[0],s[1],i):this.isSame(s,"day"))}isBetween(n,i,s="()"){switch(s){default:case"()":return this.midnight_ts(this)>this.midnight_ts(n)&&this.midnight_ts(this)<this.midnight_ts(i);case"[)":return this.midnight_ts(this)>=this.midnight_ts(n)&&this.midnight_ts(this)<this.midnight_ts(i);case"(]":return this.midnight_ts(this)>this.midnight_ts(n)&&this.midnight_ts(this)<=this.midnight_ts(i);case"[]":return this.midnight_ts()>=this.midnight_ts(n)&&this.midnight_ts()<=this.midnight_ts(i)}}isBefore(n,i="days"){switch(i){case"day":case"days":return new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(n.getFullYear(),n.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return n.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")}isSameOrBefore(n,i="days"){switch(i){case"day":case"days":return new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(n.getFullYear(),n.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")}isAfter(n,i="days"){switch(i){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(n.getFullYear(),n.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>n.getFullYear()}throw new Error("isAfter: Invalid unit!")}isSameOrAfter(n,i="days"){switch(i){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(n.getFullYear(),n.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")}isSame(n,i="days"){switch(i){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(n.getFullYear(),n.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")}add(n,i="days"){switch(i){case"day":case"days":this.setDate(this.getDate()+n);break;case"month":case"months":this.setMonth(this.getMonth()+n)}return this}subtract(n,i="days"){switch(i){case"day":case"days":this.setDate(this.getDate()-n);break;case"month":case"months":this.setMonth(this.getMonth()-n)}return this}diff(n,i="days"){switch(i){default:case"day":case"days":return Math.round((this.midnight_ts()-this.midnight_ts(n))/864e5);case"month":case"months":let s=12*(n.getFullYear()-this.getFullYear());return s-=n.getMonth(),s+=this.getMonth(),s}}format(n,i="en-US"){let s="";const r=[];let a=null;for(;(a=M.regex.exec(n))!=null;)a[1]!=="\\"&&r.push(a);if(r.length){r[0].index>0&&(s+=n.substring(0,r[0].index));for(const[o,l]of Object.entries(r)){const d=Number(o);s+=this.formatTokens(l[0],i),r[d+1]&&(s+=n.substring(l.index+l[0].length,r[d+1].index)),d===r.length-1&&(s+=n.substring(l.index+l[0].length))}}return s.replace(/\\/g,"")}midnight_ts(n){return n?new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0,0).getTime():new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()}formatTokens(n,i){switch(n){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return`0${this.getMonth()+1}`.slice(-2);case"MMM":return M.shortMonths(i)[this.getMonth()];case"MMMM":return M.longMonths(i)[this.getMonth()];case"D":return String(this.getDate());case"DD":return`0${this.getDate()}`.slice(-2);case"H":return String(this.getHours());case"HH":return`0${this.getHours()}`.slice(-2);case"h":return String(this.getHours()%12||12);case"hh":return`0${this.getHours()%12||12}`.slice(-2);case"m":return String(this.getMinutes());case"mm":return`0${this.getMinutes()}`.slice(-2);case"s":return String(this.getSeconds());
782case"ss":return`0${this.getSeconds()}`.slice(-2);case"a":return this.getHours()<12||this.getHours()===24?"am":"pm";case"A":return this.getHours()<12||this.getHours()===24?"AM":"PM";default:return""}}},v(M,"regex",/(\\)?(Y{2,4}|M{1,4}|D{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|A|a)/g),v(M,"MONTH_JS",[0,1,2,3,4,5,6,7,8,9,10,11]),M),Fr=class{constructor(t){v(this,"picker");this.picker=t}render(t,n){t||(t=new R),t.setDate(1),t.setHours(0,0,0,0),typeof this[`get${n}View`]=="function"&&this[`get${n}View`](t)}getContainerView(t){this.picker.ui.container.innerHTML="",this.picker.options.header&&this.picker.trigger("render",{date:t.clone(),view:"Header"}),this.picker.trigger("render",{date:t.clone(),view:"Main"}),this.picker.options.autoApply||this.picker.trigger("render",{date:t.clone(),view:"Footer"})}getHeaderView(t){const n=document.createElement("header");this.picker.options.header instanceof HTMLElement&&n.appendChild(this.picker.options.header),typeof this.picker.options.header=="string"&&(n.innerHTML=this.picker.options.header),this.picker.ui.container.appendChild(n),this.picker.trigger("view",{target:n,date:t.clone(),view:"Header"})}getMainView(t){const n=document.createElement("main");this.picker.ui.container.appendChild(n);const i=document.createElement("div");i.className=`calendars grid-${this.picker.options.grid}`;for(let s=0;s<this.picker.options.calendars;s++){const r=document.createElement("div");r.className="calendar",i.appendChild(r);const a=this.getCalendarHeaderView(t.clone());r.appendChild(a),this.picker.trigger("view",{date:t.clone(),view:"CalendarHeader",index:s,target:a});const o=this.getCalendarDayNamesView();r.appendChild(o),this.picker.trigger("view",{date:t.clone(),view:"CalendarDayNames",index:s,target:o});const l=this.getCalendarDaysView(t.clone());r.appendChild(l),this.picker.trigger("view",{date:t.clone(),view:"CalendarDays",index:s,target:l});const d=this.getCalendarFooterView(this.picker.options.lang,t.clone());r.appendChild(d),this.picker.trigger("view",{date:t.clone(),view:"CalendarFooter",index:s,target:d}),this.picker.trigger("view",{date:t.clone(),view:"CalendarItem",index:s,target:r}),t.add(1,"month")}n.appendChild(i),this.picker.trigger("view",{date:t.clone(),view:"Calendars",target:i}),this.picker.trigger("view",{date:t.clone(),view:"Main",target:n})}getFooterView(t){const n=document.createElement("footer"),i=document.createElement("div");i.className="footer-buttons";const s=document.createElement("button");s.className="cancel-button unit",s.innerHTML=this.picker.options.locale.cancel,i.appendChild(s);const r=document.createElement("button");r.className="apply-button unit",r.innerHTML=this.picker.options.locale.apply,r.disabled=!0,i.appendChild(r),n.appendChild(i),this.picker.ui.container.appendChild(n),this.picker.trigger("view",{date:t,target:n,view:"Footer"})}getCalendarHeaderView(t){const n=document.createElement("div");n.className="header";const i=document.createElement("div");i.className="month-name",i.innerHTML=`<span>${t.toLocaleString(this.picker.options.lang,{month:"long"})}</span> ${t.format("YYYY")}`,n.appendChild(i);const s=document.createElement("button");s.className="previous-button unit",s.innerHTML=this.picker.options.locale.previousMonth,n.appendChild(s);const r=document.createElement("button");return r.className="next-button unit",r.innerHTML=this.picker.options.locale.nextMonth,n.appendChild(r),n}getCalendarDayNamesView(){const t=document.createElement("div");t.className="daynames-row";for(let n=1;n<=7;n++){const i=3+this.picker.options.firstDay+n,s=document.createElement("div");s.className="dayname",s.innerHTML=new Date(1970,0,i,12,0,0,0).toLocaleString(this.picker.options.lang,{weekday:"short"}),s.title=new Date(1970,0,i,12,0,0,0).toLocaleString(this.picker.options.lang,{weekday:"long"}),t.appendChild(s),this.picker.trigger("view",{dayIdx:i,view:"CalendarDayName",target:s})}return t}getCalendarDaysView(t){const n=document.createElement("div");n.className="days-grid";const i=this.calcOffsetDays(t,this.picker.options.firstDay),s=32-new Date(t.getFullYear(),t.getMonth(),32).getDate();for(let r=0;r<i;r++){const a=document.createElement("div");a.className="offset",n.appendChild(a)}for(let r=1;r<=s;r++){t.setDate(r);const a=this.getCalendarDayView(t);n.appendChild(a),this.picker.trigger("view",{date:t,view:"CalendarDay",target:a})}return n}getCalendarDayView(t){const n=this.picker.options.date?new R(this.picker.options.date):null,i=new R,s=document.createElement("div");return s.className="day unit",s.innerHTML=t.format("D"),s.dataset.time=String(t.getTime()),t.isSame(i,"day")&&s.classList.add("today"),[0,6].includes(t.getDay())&&s.classList.add("weekend"),this.picker.datePicked.length?this.picker.datePicked[0].isSame(t,"day")&&s.classList.add("selected"):n&&t.isSame(n,"day")&&s.classList.add("selected"),this.picker.trigger("view",{date:t,view:"CalendarDay",target:s}),s}getCalendarFooterView(t,n){const i=document.createElement("div");return i.className="footer",i}calcOffsetDays(t,n){let i=t.getDay()-n;return i<0&&(i+=7),i}},qr=class{constructor(t){v(this,"picker");v(this,"instances",{});this.picker=t}initialize(){const t=[];this.picker.options.plugins.forEach(n=>{typeof n=="function"?t.push(new n):typeof n=="string"&&typeof easepick<"u"&&Object.prototype.hasOwnProperty.call(easepick,n)?t.push(new easepick[n]):console.warn(`easepick: ${n} not found.`)}),t.sort((n,i)=>n.priority>i.priority?-1:n.priority<i.priority||n.dependencies.length>i.dependencies.length?1:n.dependencies.length<i.dependencies.length?-1:0),t.forEach(n=>
782{n.attach(this.picker),this.instances[n.getName()]=n})}getInstance(t){return this.instances[t]}addInstance(t){if(Object.prototype.hasOwnProperty.call(this.instances,t))console.warn(`easepick: ${t} already added.`);else{if(typeof easepick<"u"&&Object.prototype.hasOwnProperty.call(easepick,t)){const n=new easepick[t];return n.attach(this.picker),this.instances[n.getName()]=n,n}if(this.getPluginFn(t)!=="undefined"){const n=new(this.getPluginFn(t));return n.attach(this.picker),this.instances[n.getName()]=n,n}console.warn(`easepick: ${t} not found.`)}return null}removeInstance(t){return t in this.instances&&this.instances[t].detach(),delete this.instances[t]}reloadInstance(t){return this.removeInstance(t),this.addInstance(t)}getPluginFn(t){return[...this.picker.options.plugins].filter(n=>typeof n=="function"&&new n().getName()===t).shift()}};class oi{constructor(t){v(this,"Calendar",new Fr(this));v(this,"PluginManager",new qr(this));v(this,"calendars",[]);v(this,"datePicked",[]);v(this,"cssLoaded",0);v(this,"binds",{hidePicker:this.hidePicker.bind(this),show:this.show.bind(this)});v(this,"options",{doc:document,css:[],element:null,firstDay:1,grid:1,calendars:1,lang:"en-US",date:null,format:"YYYY-MM-DD",readonly:!0,autoApply:!0,header:!1,inline:!1,scrollToDate:!0,locale:{nextMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',previousMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',cancel:"Cancel",apply:"Apply"},documentClick:this.binds.hidePicker,plugins:[]});v(this,"ui",{container:null,shadowRoot:null,wrapper:null});v(this,"version","1.2.1");const n={...this.options.locale,...t.locale};this.options={...this.options,...t},this.options.locale=n,this.handleOptions(),this.ui.wrapper=document.createElement("span"),this.ui.wrapper.style.display="none",this.ui.wrapper.style.position="absolute",this.ui.wrapper.style.pointerEvents="none",this.ui.wrapper.className="easepick-wrapper",this.ui.wrapper.attachShadow({mode:"open"}),this.ui.shadowRoot=this.ui.wrapper.shadowRoot,this.ui.container=document.createElement("div"),this.ui.container.className="container",this.options.zIndex&&(this.ui.container.style.zIndex=String(this.options.zIndex)),this.options.inline&&(this.ui.wrapper.style.position="relative",this.ui.container.classList.add("inline")),this.ui.shadowRoot.appendChild(this.ui.container),this.options.element.after(this.ui.wrapper),this.handleCSS(),this.options.element.addEventListener("click",this.binds.show),this.on("view",this.onView.bind(this)),this.on("render",this.onRender.bind(this)),this.PluginManager.initialize(),this.parseValues(),typeof this.options.setup=="function"&&this.options.setup(this),this.on("click",this.onClick.bind(this));const i=this.options.scrollToDate?this.getDate():null;this.renderAll(i)}on(t,n,i={}){this.ui.container.addEventListener(t,n,i)}off(t,n,i={}){this.ui.container.removeEventListener(t,n,i)}trigger(t,n={}){return this.ui.container.dispatchEvent(new CustomEvent(t,{detail:n}))}destroy(){this.options.element.removeEventListener("click",this.binds.show),typeof this.options.documentClick=="function"&&document.removeEventListener("click",this.options.documentClick,!0),Object.keys(this.PluginManager.instances).forEach(t=>{this.PluginManager.removeInstance(t)}),this.ui.wrapper.remove()}onRender(t){const{view:n,date:i}=t.detail;this.Calendar.render(i,n)}onView(t){const{view:n,target:i}=t.detail;n==="Footer"&&this.datePicked.length&&(i.querySelector(".apply-button").disabled=!1)}onClickHeaderButton(t){this.isCalendarHeaderButton(t)&&(t.classList.contains("next-button")?this.calendars[0].add(1,"month"):this.calendars[0].subtract(1,"month"),this.renderAll(this.calendars[0]))}onClickCalendarDay(t){if(this.isCalendarDay(t)){const n=new R(t.dataset.time);this.options.autoApply?(this.setDate(n),this.trigger("select",{date:this.getDate()}),this.hide()):(this.datePicked[0]=n,this.trigger("preselect",{date:this.getDate()}),this.renderAll())}}onClickApplyButton(t){if(this.isApplyButton(t)){if(this.datePicked[0]instanceof Date){const n=this.datePicked[0].clone();this.setDate(n)}this.hide(),this.trigger("select",{date:this.getDate()})}}onClickCancelButton(t){this.isCancelButton(t)&&this.hide()}onClick(t){const n=t.target;if(n instanceof HTMLElement){const i=n.closest(".unit");if(!(i instanceof HTMLElement))return;this.onClickHeaderButton(i),this.onClickCalendarDay(i),this.onClickApplyButton(i),this.onClickCancelButton(i)}}isShown(){return this.ui.container.classList.contains("inline")||this.ui.container.classList.contains("show")}show(t){if(this.isShown())return;const n=t&&"target"in t?t.target:this.options.element,{top:i,left:s}=this.adjustPosition(n);this.ui.container.style.top=`${i}px`,this.ui.container.style.left=`${s}px`,this.ui.container.classList.add("show"),this.trigger("show",{target:n})}hide(){this.ui.container.classList.remove("show"),this.datePicked.length=0,this.renderAll(),this.trigger("hide")}setDate(t){const n=new R(t,this.options.format);
782this.options.date=n.clone(),this.updateValues(),this.calendars.length&&this.renderAll()}getDate(){return this.options.date instanceof R?this.options.date.clone():null}parseValues(){this.options.date?this.setDate(this.options.date):this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.setDate(this.options.element.value),this.options.date instanceof Date||(this.options.date=null)}updateValues(){const t=this.getDate(),n=t instanceof Date?t.format(this.options.format,this.options.lang):"",i=this.options.element;i instanceof HTMLInputElement?i.value=n:i instanceof HTMLElement&&(i.innerText=n)}hidePicker(t){let n=t.target,i=null;n.shadowRoot&&(n=t.composedPath()[0],i=n.getRootNode().host),this.isShown()&&i!==this.ui.wrapper&&n!==this.options.element&&this.hide()}renderAll(t){this.trigger("render",{view:"Container",date:(t||this.calendars[0]).clone()})}isCalendarHeaderButton(t){return["previous-button","next-button"].some(n=>t.classList.contains(n))}isCalendarDay(t){return t.classList.contains("day")}isApplyButton(t){return t.classList.contains("apply-button")}isCancelButton(t){return t.classList.contains("cancel-button")}gotoDate(t){const n=new R(t,this.options.format);n.setDate(1),this.calendars[0]=n.clone(),this.renderAll()}clear(){this.options.date=null,this.datePicked.length=0,this.updateValues(),this.renderAll(),this.trigger("clear")}handleOptions(){this.options.element instanceof HTMLElement||(this.options.element=this.options.doc.querySelector(this.options.element)),typeof this.options.documentClick=="function"&&document.addEventListener("click",this.options.documentClick,!0),this.options.element instanceof HTMLInputElement&&(this.options.element.readOnly=this.options.readonly),this.options.date?this.calendars[0]=new R(this.options.date,this.options.format):this.calendars[0]=new R}handleCSS(){if(Array.isArray(this.options.css))this.options.css.forEach(t=>{const n=document.createElement("link");n.href=t,n.rel="stylesheet";const i=()=>{this.cssLoaded++,this.cssLoaded===this.options.css.length&&(this.ui.wrapper.style.display="")};n.addEventListener("load",i),n.addEventListener("error",i),this.ui.shadowRoot.append(n)});else if(typeof this.options.css=="string"){const t=document.createElement("style"),n=document.createTextNode(this.options.css);t.appendChild(n),this.ui.shadowRoot.append(t),this.ui.wrapper.style.display=""}else typeof this.options.css=="function"&&(this.options.css.call(this,this),this.ui.wrapper.style.display="")}adjustPosition(t){const n=t.getBoundingClientRect(),i=this.ui.wrapper.getBoundingClientRect();this.ui.container.classList.add("calc");const s=this.ui.container.getBoundingClientRect();this.ui.container.classList.remove("calc");let r=n.bottom-i.bottom,a=n.left-i.left;return typeof window<"u"&&(window.innerHeight<r+s.height&&r-s.height>=0&&(r=n.top-i.top-s.height),window.innerWidth<a+s.width&&n.right-s.width>=0&&(a=n.right-i.right-s.width)),{left:a,top:r}}}var Yr=Object.freeze({__proto__:null,Core:oi,create:oi});const x=class x extends Date{constructor(n=null,i="YYYY-MM-DD",s="en-US"){super(x.parseDateTime(n,i,s));v(this,"lang");this.lang=s}static parseDateTime(n,i="YYYY-MM-DD",s="en-US"){if(!n)return new Date(new Date().setHours(0,0,0,0));if(n instanceof x)return n.toJSDate();if(n instanceof Date)return n;if(/^-?\d{10,}$/.test(String(n)))return new Date(Number(n));if(typeof n=="string"){const r=[];let a=null;for(;(a=x.regex.exec(i))!=null;)a[1]!=="\\"&&r.push(a);if(r.length){const o={year:null,month:null,shortMonth:null,longMonth:null,day:null,hour:0,minute:0,second:0,ampm:null,value:""};r[0].index>0&&(o.value+=".*?");for(const[d,u]of Object.entries(r)){const f=Number(d),{group:g,pattern:_}=x.formatPatterns(u[0],s);o[g]=f+1,o.value+=_,o.value+=".*?"}const l=new RegExp(`^${o.value}$`);if(l.test(n)){const d=l.exec(n),u=Number(d[o.year]);let f=null;o.month?f=Number(d[o.month])-1:o.shortMonth?f=x.shortMonths(s).indexOf(d[o.shortMonth]):o.longMonth&&(f=x.longMonths(s).indexOf(d[o.longMonth]));const g=Number(d[o.day])||1,_=Number(d[o.hour]);let y=Number.isNaN(_)?0:_;const L=Number(d[o.minute]),p=Number.isNaN(L)?0:L,m=Number(d[o.second]),b=Number.isNaN(m)?0:m,C=d[o.ampm];return C&&C==="PM"&&(y+=12,y===24&&(y=0)),new Date(u,f,g,y,p,b,0)}}}return new Date(new Date().setHours(0,0,0,0))}static shortMonths(n){return x.MONTH_JS.map(i=>
vendor: 5,689 bytes, line 782
782new Date(2019,i).toLocaleString(n,{month:"short"}))}static longMonths(n){return x.MONTH_JS.map(i=>new Date(2019,i).toLocaleString(n,{month:"long"}))}static formatPatterns(n,i){switch(n){case"YY":case"YYYY":return{group:"year",pattern:`(\\d{${n.length}})`};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:`(${x.shortMonths(i).join("|")})`};case"MMMM":return{group:"longMonth",pattern:`(${x.longMonths(i).join("|")})`};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"};case"h":case"H":return{group:"hour",pattern:"(\\d{1,2})"};case"hh":case"HH":return{group:"hour",pattern:"(\\d{2})"};case"m":return{group:"minute",pattern:"(\\d{1,2})"};case"mm":return{group:"minute",pattern:"(\\d{2})"};case"s":return{group:"second",pattern:"(\\d{1,2})"};case"ss":return{group:"second",pattern:"(\\d{2})"};case"a":case"A":return{group:"ampm",pattern:"(AM|PM|am|pm)"}}}getWeek(n){const i=new Date(this.midnight_ts(this)),s=(this.getDay()+(7-n))%7;i.setDate(i.getDate()-s);const r=i.getTime();return i.setMonth(0,1),i.getDay()!==n&&i.setMonth(0,1+(4-i.getDay()+7)%7),1+Math.ceil((r-i.getTime())/6048e5)}clone(){return new x(this)}toJSDate(){return new Date(this)}inArray(n,i="[]"){return n.some(s=>s instanceof Array?this.isBetween(s[0],s[1],i):this.isSame(s,"day"))}isBetween(n,i,s="()"){switch(s){default:case"()":return this.midnight_ts(this)>this.midnight_ts(n)&&this.midnight_ts(this)<this.midnight_ts(i);case"[)":return this.midnight_ts(this)>=this.midnight_ts(n)&&this.midnight_ts(this)<this.midnight_ts(i);case"(]":return this.midnight_ts(this)>this.midnight_ts(n)&&this.midnight_ts(this)<=this.midnight_ts(i);case"[]":return this.midnight_ts()>=this.midnight_ts(n)&&this.midnight_ts()<=this.midnight_ts(i)}}isBefore(n,i="days"){switch(i){case"day":case"days":return new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(n.getFullYear(),n.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return n.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")}isSameOrBefore(n,i="days"){switch(i){case"day":case"days":return new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(n.getFullYear(),n.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")}isAfter(n,i="days"){switch(i){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(n.getFullYear(),n.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>n.getFullYear()}throw new Error("isAfter: Invalid unit!")}isSameOrAfter(n,i="days"){switch(i){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(n.getFullYear(),n.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")}isSame(n,i="days"){switch(i){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(n.getFullYear(),n.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")}add(n,i="days"){switch(i){case"day":case"days":this.setDate(this.getDate()+n);break;case"month":case"months":this.setMonth(this.getMonth()+n)}return this}subtract(n,i="days"){switch(i){case"day":case"days":this.setDate(this.getDate()-n);break;case"month":case"months":this.setMonth(this.getMonth()-n)}return this}diff(n,i="days"){switch(i){default:case"day":case"days":return Math.round((this.midnight_ts()-this.midnight_ts(n))/864e5);case"month":case"months":let s=12*(n.getFullYear()-this.getFullYear());return s-=n.getMonth(),s+=this.getMonth(),s}}format(n,i="en-US"){let s="";const r=[];let a=null;for(;(a=x.regex.exec(n))!=null;)a[1]!=="\\"&&r.push(a);if(r.length){r[0].index>0&&(s+=n.substring(0,r[0].index));for(const[o,l]of Object.entries(r)){const d=Number(o);s+=this.formatTokens(l[0],i),r[d+1]&&(s+=n.substring(l.index+l[0].length,r[d+1].index)),d===r.length-1&&(s+=n.substring(l.index+l[0].length))}}return s.replace(/\\/g,"")}midnight_ts(n){return n?new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0,0).getTime():new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()}formatTokens(n,i){switch(n){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return`0${this.getMonth()+1}`.slice(-2);case"MMM":return x.shortMonths(i)[this.getMonth()];case"MMMM":return x.longMonths(i)[this.getMonth()];case"D":return String(this.getDate());case"DD":return`0${this.getDate()}`.slice(-2);case"H":return String(this.getHours());case"HH":return`0${this.getHours()}`.slice(-2);case"h":return String(this.getHours()%12||12);case"hh":return`0${this.getHours()%12||12}`.slice(-2);case"m":return String(this.getMinutes());case"mm":return`0${this.getMinutes()}`.slice(-2);case"s":return String(this.getSeconds());
782case"ss":return`0${this.getSeconds()}`.slice(-2);case"a":return this.getHours()<12||this.getHours()===24?"am":"pm";case"A":return this.getHours()<12||this.getHours()===24?"AM":"PM";default:return""}}};v(x,"regex",/(\\)?(Y{2,4}|M{1,4}|D{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|A|a)/g),v(x,"MONTH_JS",[0,1,2,3,4,5,6,7,8,9,10,11]);let k=x;class li{constructor(){v(this,"picker");v(this,"options");v(this,"priority",0);v(this,"dependencies",[])}attach(t){const n=this.getName(),i={...this.options};this.options={...this.options,...t.options[n]||{}};for(const r of Object.keys(i))if(i[r]!==null&&typeof i[r]=="object"&&Object.keys(i[r]).length&&n in t.options&&r in t.options[n]){const a={...t.options[n][r]};a!==null&&typeof a=="object"&&Object.keys(a).length&&Object.keys(a).every(o=>Object.keys(i[r]).includes(o))&&(this.options[r]={...i[r],...a})}if(this.picker=t,this.dependenciesNotFound()){const r=this.dependencies.filter(a=>!this.pluginsAsStringArray().includes(a));return void console.warn(`${this.getName()}: required dependencies (${r.join(", ")}).`)}const s=this.camelCaseToKebab(this.getName());this.picker.ui.container.classList.add(s),this.onAttach()}detach(){const t=this.camelCaseToKebab(this.getName());this.picker.ui.container.classList.remove(t),typeof this.onDetach=="function"&&this.onDetach()}dependenciesNotFound(){return this.dependencies.length&&!this.dependencies.every(t=>this.pluginsAsStringArray().includes(t))}pluginsAsStringArray(){return this.picker.options.plugins.map(t=>typeof t=="function"?new t().getName():t)}camelCaseToKebab(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}}class Rr extends li{constructor(){super(...arguments);v(this,"tooltipElement");v(this,"triggerElement");v(this,"binds",{setStartDate:this.setStartDate.bind(this),setEndDate:this.setEndDate.bind(this),setDateRange:this.setDateRange.bind(this),getStartDate:this.getStartDate.bind(this),getEndDate:this.getEndDate.bind(this),onView:this.onView.bind(this),onShow:this.onShow.bind(this),onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),onClickCalendarDay:this.onClickCalendarDay.bind(this),onClickApplyButton:this.onClickApplyButton.bind(this),parseValues:this.parseValues.bind(this),updateValues:this.updateValues.bind(this),clear:this.clear.bind(this)});v(this,"options",{elementEnd:null,startDate:null,endDate:null,repick:!1,strict:!0,delimiter:" - ",tooltip:!0,tooltipNumber:n=>n,locale:{zero:"",one:"day",two:"",few:"",many:"",other:"days"},documentClick:this.hidePicker.bind(this)})}getName(){return"RangePlugin"}onAttach(){this.binds._setStartDate=this.picker.setStartDate,this.binds._setEndDate=this.picker.setEndDate,this.binds._setDateRange=this.picker.setDateRange,this.binds._getStartDate=this.picker.getStartDate,this.binds._getEndDate=this.picker.getEndDate,this.binds._parseValues=this.picker.parseValues,this.binds._updateValues=this.picker.updateValues,this.binds._clear=this.picker.clear,this.binds._onClickCalendarDay=this.picker.onClickCalendarDay,this.binds._onClickApplyButton=this.picker.onClickApplyButton,Object.defineProperties(this.picker,{setStartDate:{configurable:!0,value:this.binds.setStartDate},setEndDate:{configurable:!0,value:this.binds.setEndDate},setDateRange:{configurable:!0,value:this.binds.setDateRange},getStartDate:{configurable:!0,value:this.binds.getStartDate},getEndDate:{configurable:!0,value:this.binds.getEndDate},parseValues:{configurable:!0,value:this.binds.parseValues},updateValues:{configurable:!0,value:this.binds.updateValues},clear:{configurable:!0,value:this.binds.clear},onClickCalendarDay:{configurable:!0,value:this.binds.onClickCalendarDay},onClickApplyButton:{configurable:!0,value:this.binds.onClickApplyButton}}),this.options.elementEnd&&(this.options.elementEnd instanceof HTMLElement||(this.options.elementEnd=this.picker.options.doc.querySelector(this.options.elementEnd)),this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.readOnly=this.picker.options.readonly),typeof this.picker.options.documentClick=="function"&&(document.removeEventListener("click",this.picker.options.documentClick,!0),typeof this.options.documentClick=="function"&&document.addEventListener("click",this.options.documentClick,!0)),this.options.elementEnd.addEventListener("click",this.picker.show.bind(this.picker))),this.options.repick=this.options.repick&&this.options.elementEnd instanceof HTMLElement,this.picker.options.date=null,this.picker.on("view",this.binds.onView),this.picker.on("show",this.binds.onShow),this.picker.on("mouseenter",this.binds.onMouseEnter,!0),this.picker.on("mouseleave",this.binds.onMouseLeave,!0),this.checkIntlPluralLocales()}onDetach(){Object.defineProperties(this.picker,{setStartDate:{configurable:!0,value:this.binds._setStartDate},setEndDate:{configurable:!0,value:this.binds._setEndDate},setDateRange:{configurable:!0,value:this.binds._setDateRange},getStartDate:{configurable:!0,value:this.binds._getStartDate},getEndDate:{configurable:!0,value:this.binds._getEndDate},parseValues:{configurable:!0,value:this.binds._parseValues}
vendor: 4,421 bytes, line 782
782,updateValues:{configurable:!0,value:this.binds._updateValues},clear:{configurable:!0,value:this.binds._clear},onClickCalendarDay:{configurable:!0,value:this.binds._onClickCalendarDay},onClickApplyButton:{configurable:!0,value:this.binds._onClickApplyButton}}),this.picker.off("view",this.binds.onView),this.picker.off("show",this.binds.onShow),this.picker.off("mouseenter",this.binds.onMouseEnter,!0),this.picker.off("mouseleave",this.binds.onMouseLeave,!0)}parseValues(){if(this.options.startDate||this.options.endDate)this.options.strict?this.options.startDate&&this.options.endDate?this.setDateRange(this.options.startDate,this.options.endDate):(this.options.startDate=null,this.options.endDate=null):(this.options.startDate&&this.setStartDate(this.options.startDate),this.options.endDate&&this.setEndDate(this.options.endDate));else if(this.options.elementEnd)this.options.strict?this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length&&this.setDateRange(this.picker.options.element.value,this.options.elementEnd.value):(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length&&this.setStartDate(this.picker.options.element.value),this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length&&this.setEndDate(this.options.elementEnd.value));else if(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length){const[n,i]=this.picker.options.element.value.split(this.options.delimiter);this.options.strict?n&&i&&this.setDateRange(n,i):(n&&this.setStartDate(n),i&&this.setEndDate(i))}}updateValues(){const n=this.picker.options.element,i=this.options.elementEnd,s=this.picker.getStartDate(),r=this.picker.getEndDate(),a=s instanceof Date?s.format(this.picker.options.format,this.picker.options.lang):"",o=r instanceof Date?r.format(this.picker.options.format,this.picker.options.lang):"";if(i)n instanceof HTMLInputElement?n.value=a:n instanceof HTMLElement&&(n.innerText=a),i instanceof HTMLInputElement?i.value=o:i instanceof HTMLElement&&(i.innerText=o);else{const l=`${a}${a||o?this.options.delimiter:""}${o}`;n instanceof HTMLInputElement?n.value=l:n instanceof HTMLElement&&(n.innerText=l)}}clear(){this.options.startDate=null,this.options.endDate=null,this.picker.datePicked.length=0,this.updateValues(),this.picker.renderAll(),this.picker.trigger("clear")}onShow(n){const{target:i}=n.detail;this.triggerElement=i,this.picker.options.scrollToDate&&this.getStartDate()instanceof Date&&this.picker.gotoDate(this.getStartDate()),this.initializeRepick()}onView(n){const{view:i,target:s}=n.detail;if(i==="Main"&&(this.tooltipElement=document.createElement("span"),this.tooltipElement.className="range-plugin-tooltip",s.appendChild(this.tooltipElement)),i==="CalendarDay"){const r=new k(s.dataset.time),a=this.picker.datePicked,o=a.length?this.picker.datePicked[0]:this.getStartDate(),l=a.length?this.picker.datePicked[1]:this.getEndDate();o&&o.isSame(r,"day")&&s.classList.add("start"),o&&l&&(l.isSame(r,"day")&&s.classList.add("end"),r.isBetween(o,l)&&s.classList.add("in-range"))}if(i==="Footer"){const r=this.picker.datePicked.length===1&&!this.options.strict||this.picker.datePicked.length===2;s.querySelector(".apply-button").disabled=!r}}hidePicker(n){let i=n.target,s=null;i.shadowRoot&&(i=n.composedPath()[0],s=i.getRootNode().host),this.picker.isShown()&&s!==this.picker.ui.wrapper&&i!==this.picker.options.element&&i!==this.options.elementEnd&&this.picker.hide()}setStartDate(n){const i=new k(n,this.picker.options.format);this.options.startDate=i?i.clone():null,this.updateValues(),this.picker.renderAll()}setEndDate(n){const i=new k(n,this.picker.options.format);this.options.endDate=i?i.clone():null,this.updateValues(),this.picker.renderAll()}setDateRange(n,i){const s=new k(n,this.picker.options.format),r=new k(i,this.picker.options.format);this.options.startDate=s?s.clone():null,this.options.endDate=r?r.clone():null,this.updateValues(),this.picker.renderAll()}getStartDate(){return this.options.startDate instanceof Date?this.options.startDate.clone():null}getEndDate(){return this.options.endDate instanceof Date?this.options.endDate.clone():null}onMouseEnter(n){const i=n.target;if(i instanceof HTMLElement){this.isContainer(i)&&this.initializeRepick();
782const s=i.closest(".unit");if(!(s instanceof HTMLElement))return;if(this.picker.isCalendarDay(s)){if(this.picker.datePicked.length!==1)return;let r=this.picker.datePicked[0].clone(),a=new k(s.dataset.time),o=!1;if(r.isAfter(a,"day")){const l=r.clone();r=a.clone(),a=l.clone(),o=!0}if([...this.picker.ui.container.querySelectorAll(".day")].forEach(l=>{const d=new k(l.dataset.time),u=this.picker.Calendar.getCalendarDayView(d);d.isBetween(r,a)&&u.classList.add("in-range"),d.isSame(this.picker.datePicked[0],"day")&&(u.classList.add("start"),u.classList.toggle("flipped",o)),l===s&&(u.classList.add("end"),u.classList.toggle("flipped",o)),l.className=u.className}),this.options.tooltip){const l=this.options.tooltipNumber(a.diff(r,"day")+1);if(l>0){const d=new Intl.PluralRules(this.picker.options.lang).select(l),u=`${l} ${this.options.locale[d]}`;this.showTooltip(s,u)}else this.hideTooltip()}}}}onMouseLeave(n){if(this.isContainer(n.target)&&this.options.repick){const i=this.getStartDate(),s=this.getEndDate();i&&s&&(this.picker.datePicked.length=0,this.picker.renderAll())}}onClickCalendarDay(n){if(this.picker.isCalendarDay(n)){this.picker.datePicked.length===2&&(this.picker.datePicked.length=0);const i=new k(n.dataset.time);if(this.picker.datePicked[this.picker.datePicked.length]=i,this.picker.datePicked.length===2&&this.picker.datePicked[0].isAfter(this.picker.datePicked[1])){const s=this.picker.datePicked[1].clone();this.picker.datePicked[1]=this.picker.datePicked[0].clone(),this.picker.datePicked[0]=s.clone()}this.picker.datePicked.length!==1&&this.picker.options.autoApply||this.picker.trigger("preselect",{start:this.picker.datePicked[0]instanceof Date?this.picker.datePicked[0].clone():null,end:this.picker.datePicked[1]instanceof Date?this.picker.datePicked[1].clone():null}),this.picker.datePicked.length===1&&(!this.options.strict&&this.picker.options.autoApply&&(this.picker.options.element===this.triggerElement&&this.setStartDate(this.picker.datePicked[0]),this.options.elementEnd===this.triggerElement&&this.setEndDate(this.picker.datePicked[0]),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()})),this.picker.renderAll()),this.picker.datePicked.length===2&&(this.picker.options.autoApply?(this.setDateRange(this.picker.datePicked[0],this.picker.datePicked[1]),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()}),this.picker.hide()):(this.hideTooltip(),this.picker.renderAll()))}}onClickApplyButton(n){this.picker.isApplyButton(n)&&(this.picker.datePicked.length!==1||this.options.strict||(this.picker.options.element===this.triggerElement&&(this.options.endDate=null,this.setStartDate(this.picker.datePicked[0])),this.options.elementEnd===this.triggerElement&&(this.options.startDate=null,this.setEndDate(this.picker.datePicked[0]))),this.picker.datePicked.length===2&&this.setDateRange(this.picker.datePicked[0],this.picker.datePicked[1]),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()}),this.picker.hide())}showTooltip(n,i){this.tooltipElement.style.visibility="visible",this.tooltipElement.innerHTML=i;const s=this.picker.ui.container.getBoundingClientRect(),r=this.tooltipElement.getBoundingClientRect(),a=n.getBoundingClientRect();let o=a.top,l=a.left;o-=s.top,l-=s.left,o-=r.height,l-=r.width/2,l+=a.width/2,this.tooltipElement.style.top=`${o}px`,this.tooltipElement.style.left=`${l}px`}hideTooltip(){this.tooltipElement.style.visibility="hidden"}checkIntlPluralLocales(){if(!this.options.tooltip)return;const n=[...new Set([new Intl.PluralRules(this.picker.options.lang).select(0),new Intl.PluralRules(this.picker.options.lang).select(1),new Intl.PluralRules(this.picker.options.lang).select(2),new Intl.PluralRules(this.picker.options.lang).select(6),new Intl.PluralRules(this.picker.options.lang).select(18)])],i=Object.keys(this.options.locale);n.every(s=>i.includes(s))||console.warn(`${this.getName()}: provide locales (${n.join(", ")}) for correct tooltip text.`)}initializeRepick(){if(!this.options.repick)return;const n=this.getStartDate(),i=this.getEndDate();i&&this.triggerElement===this.picker.options.element&&(this.picker.datePicked[0]=i),n&&this.triggerElement===this.options.elementEnd&&(this.picker.datePicked[0]=n)}isContainer(n){return n===this.picker.ui.container}}
782class Hr extends li{constructor(){super(...arguments);v(this,"priority",1);v(this,"binds",{onView:this.onView.bind(this)});v(this,"options",{minDate:null,maxDate:null,minDays:null,maxDays:null,selectForward:null,selectBackward:null,presets:!0,inseparable:!1,filter:null})}getName(){return"LockPlugin"}onAttach(){if(this.options.minDate&&(this.options.minDate=new k(this.options.minDate,this.picker.options.format,this.picker.options.lang)),this.options.maxDate&&(this.options.maxDate=new k(this.options.maxDate,this.picker.options.format,this.picker.options.lang),this.options.maxDate instanceof k&&this.picker.options.calendars>1&&this.picker.calendars[0].isSame(this.options.maxDate,"month"))){const n=this.picker.calendars[0].clone().subtract(1,"month");this.picker.gotoDate(n)}if((this.options.minDays||this.options.maxDays||this.options.selectForward||this.options.selectBackward)&&!this.picker.options.plugins.includes("RangePlugin")){const n=["minDays","maxDays","selectForward","selectBackward"];console.warn(`${this.getName()}: options ${n.join(", ")} required RangePlugin.`)}this.picker.on("view",this.binds.onView)}onDetach(){this.picker.off("view",this.binds.onView)}onView(n){const{view:i,target:s,date:r}=n.detail;if(i==="CalendarHeader"&&(this.options.minDate instanceof k&&r.isSameOrBefore(this.options.minDate,"month")&&s.classList.add("no-previous-month"),this.options.maxDate instanceof k&&r.isSameOrAfter(this.options.maxDate,"month")&&s.classList.add("no-next-month")),i==="CalendarDay"){const a=this.picker.datePicked.length?this.picker.datePicked[0]:null;if(this.testFilter(r))return void s.classList.add("locked");if(this.options.inseparable){if(this.options.minDays){const o=r.clone().subtract(this.options.minDays-1,"day"),l=r.clone().add(this.options.minDays-1,"day");let d=!1,u=!1;for(;o.isBefore(r,"day");){if(this.testFilter(o)){d=!0;break}o.add(1,"day")}for(;l.isAfter(r,"day");){if(this.testFilter(l)){u=!0;break}l.subtract(1,"day")}d&&u&&s.classList.add("not-available")}this.rangeIsNotAvailable(r,a)&&s.classList.add("not-available")}this.dateIsNotAvailable(r,a)&&s.classList.add("not-available")}if(this.options.presets&&i==="PresetPluginButton"){const a=new k(Number(s.dataset.start)),o=new k(Number(s.dataset.end)),l=o.diff(a,"day"),d=this.options.minDays&&l<this.options.minDays,u=this.options.maxDays&&l>this.options.maxDays;(d||u||this.lockMinDate(a)||this.lockMaxDate(a)||this.lockMinDate(o)||this.lockMaxDate(o)||this.rangeIsNotAvailable(a,o))&&s.setAttribute("disabled","disabled")}}dateIsNotAvailable(n,i){return this.lockMinDate(n)||this.lockMaxDate(n)||this.lockMinDays(n,i)||this.lockMaxDays(n,i)||this.lockSelectForward(n)||this.lockSelectBackward(n)}rangeIsNotAvailable(n,i){if(!n||!i)return!1;const s=(n.isSameOrBefore(i,"day")?n:i).clone(),r=(i.isSameOrAfter(n,"day")?i:n).clone();for(;s.isSameOrBefore(r,"day");){if(this.testFilter(s))return!0;s.add(1,"day")}return!1}lockMinDate(n){return this.options.minDate instanceof k&&n.isBefore(this.options.minDate,"day")}lockMaxDate(n){return this.options.maxDate instanceof k&&n.isAfter(this.options.maxDate,"day")}lockMinDays(n,i){if(this.options.minDays&&i){const s=i.clone().subtract(this.options.minDays-1,"day"),r=i.clone().add(this.options.minDays-1,"day");return n.isBetween(s,r)}return!1}lockMaxDays(n,i){if(this.options.maxDays&&i){const s=i.clone().subtract(this.options.maxDays,"day"),r=i.clone().add(this.options.maxDays,"day");return!n.isBetween(s,r)}return!1}lockSelectForward(n){if(this.picker.datePicked.length===1&&this.options.selectForward){const i=this.picker.datePicked[0].clone();return n.isBefore(i,"day")}return!1}lockSelectBackward(n){if(this.picker.datePicked.length===1&&this.options.selectBackward){const i=this.picker.datePicked[0].clone();return n.isAfter(i,"day")}return!1}testFilter(n){return typeof this.options.filter=="function"&&this.options.filter(n,this.picker.datePicked)}}const E={solrUrl:typeof drupalSettings<"u"&&((Di=drupalSettings.jamsNeutrals)!=null&&Di.solrUrl)?drupalSettings.jamsNeutrals.solrUrl+"?":void 0,solrToken:typeof drupalSettings<"u"&&((Mi=drupalSettings.jamsNeutrals)!=null&&Mi.solrToken)?drupalSettings.jamsNeutrals.solrToken:void 0};function ci(e){return String(e||"").trim().replace(/\s+([,;:])/g,"$1").replace(/([^\s])\(/g,"$1 (")}function jr(){var t;const e=typeof drupalSettings<"u"&&((t=drupalSettings.jamsNeutrals)!=null&&t.hiddenCaseManagerPracticeAreaSlugs)?drupalSettings.jamsNeutrals.hiddenCaseManagerPracticeAreaSlugs:[];return new Set(e.map(n=>String(n).toLowerCase()))}function $t(e){const t=jr();return t.size?e.filter(n=>!t.has(String(n.value).toLowerCase())):e}function Br(e){return Array.isArray(e)?e.filter(t=>t==null?void 0:t.slug).map(t=>({label:t.label||t.name,value:t.slug})):[]}function Vr(e){if(!Array.isArray(e))return[];const t=[];for(let n=0;n<e.length;n+=2){const i=e[n];if(!i||i==="|")continue;const s=i.split("|"),r=s[0]||i,a=s[1]||r;r&&t.push({slug:r,label:a,name:a,type:s[2]||""})}return t.sort((n,i)=>(n.label||n.name).localeCompare(i.label||i.name,"en",{sensitivity:"base"}))}function ui(e){return(e||[]).map(t=>{const n=t.split("|");return{label:n[1]||n[0],value:n[0]||t}})}function di(e){return(e||[]).map(t=>{const n=t.split("|");return{label:n[1]||n[0],value:n[0]||t}})}function zr(e){if(!Array.isArray(e))return[];const t=[];for(let n=0;n<e.length;n+=2){const i=e[n];if(!i||i==="|")continue;const s=i.split("|"),r=s[0]||i,a=s[1]||r;r&&t.push({label:a,value:r})}return t.sort((n,i)=>n.label.localeCompare(i.label,"en",{sensitivity:"base"}))}const h={caseManagerDialog:null,form:null,howDidYouHearSelect:null,occupationalSelect:null,caseManagerForm:null,neutralContainer:null,sessionDateContainer:null,dropdownContainer:null,caseManagerThankYou:null,thankYouCloseButton:null,submitterCountryEl:null,headerRight:null,caseManagerInfo:null,serviceOtherInput:null,neutralSearchInput:null,requiredFieldsLabel:null,scheduleCaseSubt
782itle:null,appointmentAvailability:null,scheduleCaseTitle:null,neutralInquiryTitle:null};function Ur(e,t=null){return t&&Array.isArray(t)&&t.length>0&&t.some(s=>s&&s.includes("|"))?t.filter(s=>s).map(s=>{const r=s.split("|");return{locationId:r[0],delta:parseInt(r[1],10)||0}}).sort((s,r)=>s.delta-r.delta).map(s=>s.locationId):!e||!Array.isArray(e)?[]:e.some(i=>i&&i.includes("|"))?e.filter(i=>i).map(i=>{const s=i.split("|");return{locationId:s[0],delta:parseInt(s[1],10)||0}}).sort((i,s)=>i.delta-s.delta).map(i=>i.locationId):e}function hi(e){if(!e||typeof e!="string")return null;if(/^\d{4}-\d{2}-\d{2}$/.test(e)){const[n,i,s]=e.split("-").map(Number),r=new Date(n,i-1,s);if(r.getFullYear()===n&&r.getMonth()===i-1&&r.getDate()===s)return r}const t=new Date(e);return isNaN(t.getTime())?null:t}class qe{static toQueryString(t){let n="";return Object.keys(t).forEach(i=>{if(typeof t[i]=="object")t[i]!=null&&(i==="fl"&&Array.isArray(t[i])?n+=`&${i}=${t[i].join(",")}`:t[i].forEach(s=>{n+=`&${i}=${[s]}`}));else{let s=t[i];i=="q"&&(s=s.replace(/&/,"%26")),n+=`&${i}=${s}`}}),n.substring(1)}}class Kr{constructor(){this.config={url:E.solrUrl,queryParams:{q:"*",wt:"json"}}}async fetchNeutral(t){if(!E.solrUrl||!E.solrToken)return null;const n={q:"*",fq:["ss_category:neutrals",`its_nid:${t}`],fl:["id","its_nid","ss_neutral_fname","ss_neutral_lname","ss_neutral_prefix","ss_neutral_suffix","ss_neutral_fullname","ss_neutral_fullname_prefix_sufix","ss_neutral_image_thumb","ss_url","ss_panelist_id","sm_neutral_title","sm_neutral_title_label","sm_neutral_title_label_ordered","sm_neutral_all_location","sm_neutral_all_locations_label","sm_neutral_all_location_home_office","sm_neutral_all_location_home_office_ordered","sm_neutral_all_location_available_to_travel","ss_field_hubspot_location_id","sm_neutral_specialties","sm_neutral_specialties_labels","sm_neutral_language","sm_neutral_language_label","sm_available","ss_manager_first_name","ss_manager_last_name","ss_manager_email","ss_manager_phone","ss_manager_fax","ss_manager_address_1","ss_manager_address_2","ss_manager_city","ss_manager_state","ss_manager_zip"],rows:1,wt:"json"};try{const i=qe.toQueryString(n),r=await(await fetch(E.solrUrl+i,{headers:{Authorization:`Token ${E.solrToken}`}})).json();return r.response&&r.response.docs&&r.response.docs.length>0?r.response.docs[0]:null}catch{return null}}async fetchAllNeutrals(){if(!E.solrUrl||!E.solrToken)return[];const t={q:"*",fq:["ss_category:neutrals"],fl:["id","its_nid","ss_neutral_fullname","ss_neutral_fullname_prefix_sufix","ss_neutral_image_thumb","ss_url","ss_panelist_id","ss_manager_first_name","ss_manager_last_name","ss_manager_email","sm_neutral_all_location_home_office"],rows:9999,sort:"ss_neutral_lname asc",wt:"json"};try{const n=qe.toQueryString(t),s=await(await fetch(E.solrUrl+n,{headers:{Authorization:`Token ${E.solrToken}`}})).json();return s.response&&s.response.docs?s.response.docs:[]}catch{return[]}}async fetchShortlistFacets(){var t;if(!E.solrUrl||!E.solrToken)return{practiceAreas:[],services:[]};if(this._shortlistFacetsCache)return this._shortlistFacetsCache;try{const n={q:"*",fq:['ss_category:"neutrals"'],metadata:!1,fl:"",rows:1,facet:!0,"facet.field":["sm_neutral_specialties_labels","sm_neutral_title_label"],"facet.mincount":1,"facet.limit":1e3,wt:"json"},i=qe.toQueryString(n),s=await fetch(E.solrUrl+i,{headers:{Authorization:`Token ${E.solrToken}`}});if(!s.ok)return{practiceAreas:[],services:[]};const r=await s.json(),a=((t=r==null?void 0:r.facet_counts)==null?void 0:t.facet_fields)||{};return this._shortlistFacetsCache={practiceAreas:Vr(a.sm_neutral_specialties_labels||[]),services:zr(a.sm_neutral_title_label||[])},this._shortlistFacetsCache}catch{return{practiceAreas:[],services:[]}}}async fetchPracticeAreas(){return(await this.fetchShortlistFacets()).practiceAreas}async fetchLocation(t){if(!E.solrUrl||!E.solrToken)return null;const n={q:"*",fq:["ss_category:locations",`ss_location_id:${t}`],fl:["ss_location_id","ss_title","ss_url"],rows:1,wt:"json"};try{const i=qe.toQueryString(n),r=await(await fetch(E.solrUrl+i,{headers:{Authorization:`Token ${E.solrToken}`}})).json();return r.response&&r.response.docs&&r.response.docs.length>0?r.response.docs[0]:null}catch{return null}}}const Ye=new Kr;function Lt(){h.caseManagerDialog=document.querySelector("#modal
782-neutral-case-manager"),h.form=document.querySelector("#case-manager-form"),h.howDidYouHearSelect=document.querySelector("#how-did-you-hear"),h.occupationalSelect=document.querySelector("#clnttype"),h.caseManagerForm=document.querySelector("#case-manager-form"),h.neutralContainer=document.querySelector(".modal-neutral-inquiry-form .neutrals-container"),h.scheduleCaseTitle=document.querySelector(".modal-neutral-inquiry-form .schedule-case-title"),h.neutralInquiryTitle=document.querySelector(".modal-neutral-inquiry-form .neutral-inquiry-title"),h.sessionDateContainer=document.querySelector(".modal-neutral-inquiry-form .session-dates-container"),h.dropdownContainer=document.querySelector(".modal-neutral-inquiry-form .dropdown-container"),h.caseManagerThankYou=document.querySelector(".modal-neutral-inquiry-form .case-manager-form-thank-you"),h.thankYouCloseButton=document.querySelector(".modal-neutral-inquiry-form .button-case-mgr-close"),h.submitterCountryEl=document.querySelector("#submittor-country"),h.headerRight=document.querySelector(".modal-neutral-inquiry-form .modal-header__right"),h.caseManagerInfo=document.querySelector(".modal-neutral-inquiry-form .case-manager-info"),h.serviceOtherInput=document.querySelector('.field-radio input[x-ref="labelInput"]'),h.neutralSearchInput=document.querySelector(".modal-neutral-inquiry-form .neutrals-container .field-search input"),h.requiredFieldsLabel=document.querySelector(".modal-neutral-inquiry-form .required-fields-label"),h.scheduleCaseSubtitle=document.querySelector(".modal-neutral-inquiry-form  .schedule-case-subtitle"),h.appointmentAvailability=document.querySelector(".modal-neutral-inquiry-form .j-appointment-availability"),h.neutralInquiryInfoContainer=document.querySelector(".modal-neutral-inquiry-form-header--neutral-inquiry")}let F,fi=!1;function Jr(){fi||(document.addEventListener("calendar-date-change",e=>{var t;try{const n=c.store("contactCaseManager");if(!n)return;const i=((t=e==null?void 0:e.detail)==null?void 0:t.selectedDate)||null;n.selectedDate=i,i&&Re()}catch{}}),fi=!0)}const Wr=()=>{if(!h.neutralContainer||!h.sessionDateContainer||!h.dropdownContainer||!h.caseManagerForm||!h.caseManagerThankYou||!h.caseManagerInfo||!h.scheduleCaseSubtitle||!h.appointmentAvailability||!h.scheduleCaseTitle||!h.neutralInquiryTitle)return;h.neutralContainer.style.display="none",h.sessionDateContainer.style.display="none",h.dropdownContainer.style.display="none",h.caseManagerForm.style.display="none",h.caseManagerThankYou.style.display="block",h.caseManagerInfo.style.display="none",h.sessionDateContainer.style.display="none",h.neutralContainer.style.display="none",h.requiredFieldsLabel.style.display="none",h.scheduleCaseSubtitle.style.display="none",h.appointmentAvailability.style.display="none",h.scheduleCaseTitle.style.textAlign="center",h.neutralInquiryInfoContainer.style.borderTop="none",h.thankYouCloseButton=document.querySelector(".modal-neutral-inquiry-form .button-case-mgr-close"),Pt();const e=c.store("contactCaseManager");e&&(e.submissionSuccessShown=!0)},ye=({message:e,type:t})=>{c.store("contactCaseManager").addNotification({message:e,type:t})},Qr=e=>{const t=document.querySelector("#case-manager-form .button-case-submit");if(!t)return;t.setAttribute("disabled",!0),t.classList.add("btn-loading");const n="6Lfje3ApAAAAAMaIb9Rekbm6b6EzM48W6p1y3TDl";typeof grecaptcha<"u"&&grecaptcha.ready(function(){grecaptcha.execute(n,{action:"submit"}).then(function(i){var d;const s=new FormData(e.target);s.append("grecaptcha_token",i);const r={};for(const[u,f]of s.entries())r[u]=f;const a=c.store("contactCaseManager");if(a.selectedPracticeAreas&&a.selectedPracticeAreas.length>0){const u=a.selectedPracticeAreas.filter(g=>g.value!=="other").map(g=>g.value);u.length>0&&(r.practice_areas_industries=u);const f=a.selectedPracticeAreas.find(g=>g.value==="other");f&&f.label&&(r.practice_areas_industries_other=f.label)}if(a.selectedService&&(r.type_of_services=a.selectedService.value),a.serviceOther&&(r.type_of_services_other=a.serviceOther),a.selectedLocationType&&typeof a.selectedLocationType=="object"&&a.selectedLocationType.value&&(r.requested_hearing_format=a.selectedLocationType.value),a.selectedLocation&&typeof a.selectedLocation=="object"&&(a.selectedLocation.hubspotId?r.select_preferred_location=a.selectedLocation.hubspotId:a.selectedLocation.value&&(r.select_preferred_location=a.selectedLocation.value)),a.selectedSessionDate&&a.selectedSessionDate.value!=="custom-date"&&(r.requested_session_dates_within=a.selectedSessionDate.value),a.selectedSessionDate&&a.selectedSessionDate.value==="custom-date"&&a.selectedCustomDates&&a.selectedCustomDates.length>0){const u=a.selectedCustomDates.map(f=>f==null?void 0:f.value).filter(f=>f&&f.trim()!=="");u.length>0&&(r.date_range=u.join("; "))}if(a.selectedDate)try{const u=hi(a.selectedDate);if(u&&!isNaN(u.getTime())){const f=String(u.getMonth()+1).padStart(2,"0"),g=String(u.getDate()).padStart(2,"0"),_=u.getFullYear(),y=`${f}/${g}/${_}`;r.date_range=y,r.scheduled_date=y}
782else r.date_range=a.selectedDate,r.scheduled_date=a.selectedDate}catch{r.date_range=a.selectedDate,r.scheduled_date=a.selectedDate}a.neutralData&&(r.neutral_name=a.neutralData.titleString||"",r.case_manager_e_mail=a.neutralData.managerEmail||"",r.case_manager_name=a.neutralData.managerFullName||"");const o=[],l=(d=a.neutralData)!=null&&d.panelistId?String(a.neutralData.panelistId).trim():null;l&&o.push(l),a.selectedNeutrals&&a.selectedNeutrals.length>0&&a.selectedNeutrals.forEach((u,f)=>{const g=f+2;if(g<=9){r[`neutral_name${g}`]=u.name||r[`neutral-name-${g}`]||"",r[`case_manager_e_mail_${g}`]=u.managerEmail||u.case_manager_email||r[`case-manager-email-${g}`]||"",r[`case_manager_name_${g}`]=u.managerName||u.case_manager_name||r[`case-manager-name-${g}`]||"";const _=u.panelist_id||u.panelistId||u.id;if(_){const y=String(_).trim();y&&y!==l&&o.push(y)}}}),o.length>0&&(r.selected_panelists=o.join("|")),r.form_submission_type=a.isAppointmentMode?"calendar":"regular",fetch("/api/case-manager/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(u=>{if(!u.ok)throw new Error(`HTTP error! Status: ${u.status}`);return u.json()}).then(u=>{var f,g,_,y;if(u.success){h.caseManagerDialog&&h.caseManagerDialog.scroll({top:0,behavior:"smooth"}),Wr();const p=c.store("contactCaseManager").isAppointmentMode?((g=(f=document.querySelector(".schedule-case-title"))==null?void 0:f.textContent)==null?void 0:g.trim())??"":((y=(_=document.querySelector(".neutral-inquiry-title"))==null?void 0:_.textContent)==null?void 0:y.trim())??"";document.dispatchEvent(new CustomEvent("jams-case-manager-form-submission-success",{bubbles:!0,detail:{formTitle:p}}))}else ye({message:u.message||"Submission failed",type:"error"})}).catch(u=>{ye({message:"Could not send. Please try again.",type:"error"})}).finally(()=>{t.removeAttribute("disabled"),t.classList.remove("btn-loading")})})})},Tt=()=>{var i;const e=document.querySelector(".dropdown-services .field-select"),t=(i=document.querySelector(".dropdown-services"))==null?void 0:i.parentElement;if(!e||!t)return;e.classList.remove("is-invalid");const n=t.querySelector(".invalid-feedback");n&&n.remove()},Re=()=>{const e=document.querySelector(".j-appointment-availability"),t=document.querySelector(".appointment-date-error");e==null||e.classList.remove("is-invalid"),t&&(t.textContent="",t.classList.add("hidden"))},Gr=()=>{const e=c.store("contactCaseManager");if(!(e!=null&&e.isAppointmentMode))return Re(),!0;const t=e.selectedDate;if(typeof t=="string"?t.trim().length>0:!!t)return Re(),!0;const i=document.querySelector(".j-appointment-availability"),s=document.querySelector(".appointment-date-error");return i==null||i.classList.add("is-invalid"),s&&(s.textContent="Please select a date from the calendar.",s.classList.remove("hidden")),!1},Zr=()=>{var e,t;if((e=c.store("contactCaseManager").selectedService)!=null&&e.value)Tt();else{const n=document.querySelector(".dropdown-services .field-select"),i=(t=document.querySelector(".dropdown-services"))==null?void 0:t.parentElement;if(!n||!i)return;if(n.classList.add("is-invalid"),!i.querySelector(".invalid-feedback")){const r=document.createElement("div");r.innerText="Type of Services field is required.",r.classList.add("invalid-feedback"),i.appendChild(r)}}};function pi(e){let t;const n=e.dataset.label||"field";e.validity.valueMissing?t=`${n} is required`:e.validity.typeMismatch&&(t=`${n} value is not in correct format`);const i=e.nextElementSibling||e.parentElement.nextElementSibling;i&&(i.textContent=t||"",i.classList.toggle("hidden",!t),e.setAttribute("is-dirty","true"))}function Xr(e){gi(e).forEach(t=>pi(t))}function gi(e){return[...e.elements].filter(t=>["input","textarea","select"].includes(t.nodeName.toLowerCase())&&t.type!=="hidden")}function ea(e){return!e||!e.nodeName?!1:["input","textarea","select"].includes(e.nodeName.toLowerCase())&&e.type!=="hidden"}function ta(e){const t=n=>{const i=n.target;ea(i)&&pi(i)};e.addEventListener("input",t),e.addEventListener("change",t),e.addEventListener("blur",t,!0)}function na(){const e=document.querySelector("#submittor-state"),t=document.querySelector("#submittor-state-text");e&&e.setAttribute("required",""),t&&t.removeAttribute("required")}function ia(e){e.addEventListener("change",t=>{const n=t.target;(n==null?void 0:n.id)==="submittor-country"&&requestAnimationFrame(()=>{na()})})}function sa(e){const t=c.store("contactCaseManager");if(!t)return;const n=e.querySelector("#requested-session-date");n&&(t.isAppointmentMode?(n.removeAttribute("required"),t.selectedDate&&(n.value=t.selectedDate)):n.setAttribute("required",""))}function ra(){var n;const e=c.store("contactCaseManager"),t=(n=e==null?void 0:e.selectedPracticeAreas)==null?void 0:n.find(i=>i.value==="other");return t?String(t.label||"").trim().length>0:!0}function aa(e){const t=e.nextElementSibling||e.parentElement.nextElementSibling;t&&(t.textContent="",t.classList.toggle("hidden",!0)),e.removeAttribute("is-dirty")}function mi(){F=document.getElementById("case-manager-form"),F&&(F.addEventListener("submit",e=>{var a,o;e.preventDefault();let t="";sa(F);const n=((o=(a=c.store("contactCaseManager"))==null?void 0:a.selectedService)==null?void 0:o.value)||"",i=F.querySelector("#type-of-service");i&&(i.value=n);const s=Gr(),r=ra();return n||(t="Type of Services field is required.",Zr()),s||(t=t||"Please select a date from the calendar."),r||(t=t||"Please specify the Other practice area."),F.checkValidity()||(t=t||"Please fill all required fields.",Xr(F)),F.checkValidity()&&n&&s&&r?Qr(e):ye({message:t,type:"error"}),!1}),ta(F),ia(F))}function oa(){c.store("contactCaseManager",{selectedPracticeAreas:[],get selectedPracticeCount(){return c.store("contactCaseManager").selectedPracticeAreas.filter(e=>e.label).length},get isOtherSelected(){return this.selectedPracticeAreas.find(e=>e.value==="other")},selectedService:"",get selectedServiceCount(){return this.selectedService?1:0},selectedLocationType:"",selectedLocation:"",selectedSessionDate:"",selectedCustomDates:[],neutrals:[],selectedNeutrals:[],neutralQuery:"",get filteredNeutrals(){return this.neutrals.filter(e=>e.name.toLowerCase().includes(this.neutralQuery.toLowerCase()))},neutralData:{id:"",panelistId:"",titleHTML:"",titleString:"",image:"",managerFullName:"",managerEmail:"",managerPhone:"",managerFax:"",managerAddress1:"",managerAddress2:"",practiceAreas:[],services:[],locations:[],hubspotLocationIds:[],neutralTags:[],homeOfficeLocation:"",homeOfficeLocations:[]},notifications:[],isOtherFieldVisible:!1,selectedDate:null,openFromCalendarCta:!1,modalType:null,get isAppointmentMode(){return this.selectedDate!==null&&this.selectedDate!==void 0||this.openFromCalendarCta},get isShortlistMode(){return this.modalType==="shortlist"},get maxSelectedNeutrals(){return this.isShortlistMode?10:8},submissionSuccessShown:!1,isFormDirty(){const e=document.querySelector("#case-manager-form");if(!e)return!1;const t=["case-manager-email","case-manager-name","neutral-name","submittor-country","selected-panelists","occupational","case-manager-id","grecaptcha_token","form_submission_type","scheduled_date"];return!![...e.elements].filter(i=>!t.includes(i.name)).filter(i=>i.value).length},async fetchNeutrals(){try{const e=await Ye.fetchAllNeutrals();this.neutrals=e.map(t=>({id:t.its_nid||t.id,panelistId:t.ss_panelist_id||"",name:ci(t.ss_neutral_fullname_prefix_sufix||t.ss_neutral_fullname||""),photo:t.ss_neutral_image_thumb||"",url:t.ss_url||"",managerName:t.ss_manager_first_name||"",managerEmail:t.ss_manager_email||"",homeOfficeLocations:t.sm_neutral_all_location_home_office||[]}))}catch{this.neutrals=[]}},async getLocationInfo(e){const t=await Ye.fetchLocation(e);return t?{locationKey:t.ss_location_id||"",locationUrl:t.ss_url||"",locationTitle:t.ss_title||""}:{locationKey:"",locationUrl:"",locationTitle:""}},async fetchNeutral({neutralId:e}){try{const t=await Ye.fetchNeutral(e);if(!t)return;const n=t.ss_neutral_prefix||"",i=t.ss_neutral_fname||"",s=t.ss_neutral_lname||"",r=String(t.ss_neutral_suffix||"").trim(),a=[n,i,s].filter(
782Boolean).join(" "),o=r&&/^[\p{L}\p{N}(]/u.test(r)?" ":"",l=`<span>${a}</span>${r?`${o}<span>${r}</span>`:""}`;this.neutralData.id=t.its_nid||t.id,this.neutralData.panelistId=t.ss_panelist_id||"",this.neutralData.titleHTML=l,this.neutralData.titleString=ci(t.ss_neutral_fullname_prefix_sufix||t.ss_neutral_fullname||""),this.neutralData.image=t.ss_neutral_image_thumb||"";const d=t.sm_neutral_all_location_home_office_ordered[0].split("|")[0]||"";if(d){const p=await this.getLocationInfo(d);this.neutralData.locationTitle=p.locationTitle,this.neutralData.locationUrl=p.locationUrl}if(this.neutralData.managerFullName=t.ss_manager_first_name||"",this.neutralData.managerEmail=t.ss_manager_email||"",this.neutralData.managerPhone=t.ss_manager_phone||"",this.neutralData.managerFax=t.ss_manager_fax||"",this.neutralData.managerAddress1=`${t.ss_manager_address_1||""} ${t.ss_manager_address_2||""}`.trim(),this.neutralData.managerAddress2=`${t.ss_manager_city||""}, ${t.ss_manager_state||""} ${t.ss_manager_zip||""}`.trim(),this.isShortlistMode){const p=await Ye.fetchShortlistFacets(),m=Br(p.practiceAreas);this.neutralData.practiceAreas=$t(m.length?m:ui(t.sm_neutral_specialties_labels)),this.neutralData.services=p.services.length?p.services:di(t.sm_neutral_title_label)}else this.neutralData.practiceAreas=$t(ui(t.sm_neutral_specialties_labels)),this.neutralData.services=di(t.sm_neutral_title_label);const u=t.sm_neutral_all_locations_label||[],f=t.ss_field_hubspot_location_id||[],g=t.sm_neutral_all_location||[],_={};Array.isArray(f)&&Array.isArray(g)?g.forEach((p,m)=>{f[m]&&(_[p]=f[m])}):f&&!Array.isArray(f)&&g.forEach(p=>{_[p]=f}),this.neutralData.locations=u.map((p,m)=>{const b=p.split("|"),C=`${b[2]||""}, ${b[3]||""}`.trim(),$=g[m]||"",H=_[$]||"";return{label:C,value:H||C,hubspotId:H,locationKey:$}}),this.neutralData.hubspotLocationIds=Object.values(_).filter(p=>p);const y=(t.sm_neutral_title_label_ordered||[]).sort((p,m)=>p.split("|")[2]-m.split("|")[2]);this.neutralData.neutralTags=y.map(p=>{const m=p.split("|");return m[1]||m[0]});const L=Ur(t.sm_neutral_all_location_home_office||[],t.sm_neutral_all_location_home_office_ordered);this.neutralData.homeOfficeLocation=L[0]||"",this.neutralData.homeOfficeLocations=L}catch{this.neutralData={}}},clear({close:e=!1,preserveAppointmentMode:t=!1}={}){this.submissionSuccessShown=!1,t||(this.selectedDate=null,this.openFromCalendarCta=!1),Re(),this.selectedPracticeAreas=[],this.selectedService="",this.selectedLocationType="",this.selectedLocation="",this.selectedSessionDate="",this.selectedCustomDates=[],this.selectedNeutrals=[],this.neutralQuery="",this.isOtherFieldVisible=!1,this.isUsaSelected=!0,h.form&&h.form.reset();const n=document.querySelector('[x-ref="labelInput"]');n&&(n.value=""),h.neutralSearchInput&&(h.neutralSearchInput.value=""),h.caseManagerForm&&gi(h.caseManagerForm).forEach(i=>{aa(i)}),Tt(),document.querySelectorAll("[data-selected]").forEach(i=>{i.dataset.selected=!1}),h.submitterCountryEl&&(h.submitterCountryEl.value="United States",h.submitterCountryEl.dataset.selected="true"),h.serviceOtherInput&&(h.serviceOtherInput.value=""),e&&(this.neutrals=[])},removeNotification(e){this.notifications=this.notifications.filter(t=>t.id!==e)},addNotification({message:e,duration:t=3e3,type:n="success"}){const i=Date.now().valueOf();this.notifications.push({message:e,id:i,type:n}),setTimeout(()=>{this.removeNotification(i)},t)},isNeutralExclusivelyFromLocation(e,t){var n;return((n=e==null?void 0:e.homeOfficeLocations)==null?void 0:n.length)===1&&(e==null?void 0:e.homeOfficeLocations.includes(t))},toggleNeutralsContainer({visible:e=!0}){const t=document.querySelector(".neutrals-container");t&&(e?t.style.removeProperty("display"):t.style.display="none")},isOccupationalOtherFieldVisible:!1,isUsaSelected:!0})}function la(){c.bind("CloseButton",()=>({"@click"(){const e=c.store("contactCaseManager");e.isFormDirty()&&!e.submissionSuccessShown?confirm("You have unsaved changes. Your changes will be lost if you continue. Are you sure you want to continue?")&&He():He()}})),c.bind("CaseManagerFormDialog",()=>({"x-data"(){return{get managerId(){return c.store("contactCaseManager").neutralData.panelistId||""},get managerName(){return c.store("contactCaseManager").neutralData.managerFullName||""},get managerAddress1(){return c.store("contactCaseManager").neutralData.managerAddress1||""},get managerAddress2(){return c.store("contactCaseManager").neutralData.managerAddress2||""},get managerPhone(){return c.store("contactCaseManager").neutralData.managerPhone||""},get managerEmail(){return c.store("contactCaseManager").neutralData.managerEmail||""},get neutralPhoto(){return c.store("contactCaseManager").neutralData.image||""},get neutralNameHtml(){return c.store("contactCaseManager").neutralData.titleHTML||""},get neutralName(){return c.store("contactCaseManager").neutralData.titleString||""},get neutralLocationTitle(){return c.store("contactCaseManager").neutralData.locationTitle||""},get neutralLocationUrl(){return c.store("contactCaseManager").neutralData.locationUrl||""},get neutralTags(){return c.store("contactCaseManager").neutralData.neutralTags||[]},get practiceAreas(){return $t(c.store("contactCaseManager").neutralData.practiceAreas||[])},get services(){return c.store("contactCaseManager").neutralData.services||[]},get locations(){return c.store("contactCaseManager").neutralData.locations||[]},get selectedPracticeAreas(){const e=c.store("contactCaseManager").selectedPracticeAreas.map(t=>t.value).filter(t=>t!=="other").join(";");return e.length?e:null},get selectedService(){const{value:e=""}=c.store("contactCaseManager").selectedService||{};return e},get selectedServiceOtherValue(){const{other:e=""}=c.store("contactCaseManager").selectedService||{};return e},get selectedHearingFormat(){const e=c.store("contactCaseManager").selectedLocationType;return e?e.value:""},get selectedLocation(){const e=c.store("contactCaseManager").selectedLocation;return e?e.label:""}
782,get selectedSessionDate(){return c.store("contactCaseManager").selectedSessionDate.label||""},get selectedDates(){return["date_range","date_range_2","date_range_3"].map((e,t)=>{var a;const{start:n,end:i}=((a=c.store("contactCaseManager").selectedCustomDates[t])==null?void 0:a.value)||{},s=n&&i,r=`${n==null?void 0:n.format("MM/DD/YYYY")} - ${i==null?void 0:i.format("MM/DD/YYYY")}`;return{inputValue:s?r:"",inputName:e}})},get selectedNeutrals(){return c.store("contactCaseManager").selectedNeutrals},get neutralPanelistId(){return{panelistId:c.store("contactCaseManager").neutralData.panelistId}},get selectedNeutralsField(){return[this.neutralPanelistId,...c.store("contactCaseManager").selectedNeutrals].map(e=>e.panelistId).join("|")},get practiceAreaOtherValue(){const e=c.store("contactCaseManager").selectedPracticeAreas.find(t=>t.value==="other");return e?e.label:""},get selectedCaseManagers(){const e=c.store("contactCaseManager").maxSelectedNeutrals;return Array(e).fill(0).map((t,n)=>{var i,s;return{name:((i=this.selectedNeutrals[n])==null?void 0:i.managerName)||"",email:((s=this.selectedNeutrals[n])==null?void 0:s.managerEmail)||"",inputNameEmail:`case-manager-email-${n+2}`,inputNameName:`case-manager-name-${n+2}`}})},get otherNeutrals(){const e=c.store("contactCaseManager").maxSelectedNeutrals;return Array(e).fill(0).map((t,n)=>{var i;return{name:((i=this.selectedNeutrals[n])==null?void 0:i.name)||"",inputNameName:`neutral_name${n+2}`}})},get isAppointmentMode(){return c.store("contactCaseManager").isAppointmentMode},get isShortlistMode(){return c.store("contactCaseManager").isShortlistMode},get maxSelectedNeutrals(){return c.store("contactCaseManager").maxSelectedNeutrals},get formattedSelectedDate(){const e=c.store("contactCaseManager").selectedDate;if(!e)return"";try{const t=hi(e);if(!t||isNaN(t.getTime()))return e;const n={weekday:"long",year:"numeric",month:"long",day:"numeric"};return t.toLocaleDateString("en-US",n)}catch{return e}},get selectedDates(){return["date_range","date_range_2","date_range_3"].map((e,t)=>{var a;const{start:n,end:i}=((a=c.store("contactCaseManager").selectedCustomDates[t])==null?void 0:a.value)||{};return{inputValue:n&&i?`${n==null?void 0:n.format("MM/DD/YYYY")} - ${i==null?void 0:i.format("MM/DD/YYYY")}`:"",inputName:e}})},get submissionSuccessShown(){return c.store("contactCaseManager").submissionSuccessShown},clearAll(){var e,t,n,i;if(window.confirm("Are you sure you want to clear all form fields?")){const s=c.store("contactCaseManager"),r=s.isAppointmentMode?((t=(e=document.querySelector(".schedule-case-title"))==null?void 0:e.textContent)==null?void 0:t.trim())??"":((i=(n=document.querySelector(".neutral-inquiry-title"))==null?void 0:n.textContent)==null?void 0:i.trim())??"";document.dispatchEvent(new CustomEvent("jams-case-manager-form-submission-clear-all",{bubbles:!0,detail:{formTitle:r}})),s.clear({close:!1,preserveAppointmentMode:s.isAppointmentMode})}}}}})),c.bind("DropdownPractice",()=>({"x-data"(){return{selectedCount(){return c.store("contactCaseManager").selectedPracticeCount},handleOutsideClick(e){this.$refs.menu.contains(e.target)||this.close()},open(){if(this.$el.dataset.expanded==="false"){const e=document.querySelector("#modal-neutral-case-manager .dropdown-container"),t=e==null?void 0:e.offsetWidth;this.$refs.menu.classList.contains("dropdown__menu--expanded")&&t&&(this.$refs.menu.style.width=`${t}px`),this.$refs.field.style.pointerEvents="none",this.$el.dataset.expanded=!0,this.$refs.menu.focus(),Promise.resolve().then(()=>{document.body.addEventListener("click",this.handleOutsideClick.bind(this),!0)})}},close(){this.$el.dataset.expanded=!1,this.$refs.field.style.removeProperty("pointer-events"),document.body.removeEventListener("click",this.handleOutsideClick,!0)},SelectedCount:{"x-data"(){return{get selectedCount(){return c.store("contactCaseManager").selectedPracticeCount}}},"x-text"(){return this.selectedCount>0?this.selectedCount:""}},MarkerIcon:{"x-data"(){return{get selectedCount(){return c.store("contactCaseManager").selectedPracticeCount}}},"x-init"(){this.selectedCount?this.$el.setAttribute("hidden",!0):this.$el.removeAttribute("hidden"),this.$watch("selectedCount",e=>{e?this.$el.setAttribute("hidden",!0):this.$el.removeAttribute("hidden")})}},ResetIcon:{"x-data"(){return{get selectedCount(){return c.store("contactCaseManager").selectedPracticeCount}}},"x-init"(){this.selectedCount?this.$el.removeAttribute("hidden",!1):this.$el.setAttribute("hidden",!0),this.$watch("selectedCount",e=>{e?this.$el.removeAttribute("hidden",!1):this.$el.setAttribute("hidden",!0)})},"@click"(){c.store("contactCaseManager").selectedPracticeAreas=[]}}}},"x-init"(){this.$refs.field.addEventListener("click",this.open.bind(this)),this.$watch("selectedCount",e=>{e?this.$el.classList.add("dropdown--selected"):this.$el.classList.remove("dropdown--selected")})}})),c.bind("PracticeCheckbox",()=>({"x-data"(){return{get selectedCount(){return c.store("contactCaseManager").selectedPracticeAreas.length},get isActive(){return c.store("contactCaseManager").selectedPracticeAreas.find(e=>String(e.value)===String(this.$refs.input.value))},handleChange(e){var r;const{value:t}=e.target,n=t==="other"?this.$refs.labelInput.value:(r=this.$refs.label.querySelector("span"))==null?void 0:r.innerText,i=t==="other"?"other":t;e.target.checked?c.store("contactCaseManager").selectedPracticeAreas.push({value:i,label:n}):c.store("contactCaseManager").selectedPracticeAreas=c.store("contactCaseManager").selectedPracticeAreas.filter(a=>String(a.value)!==String(i))}}},"x-init"(){var e;this.$refs.input.addEventListener("input",t=>{t.preventDefault(),this.selectedCount===4&&t.target.checked?(t.target.checked=!1,c.store("contactCaseManager").addNotification({message:"You can only select up to 4 practice areas.",type:"error"})):this.handleChange(t)}
782),(e=this.$refs.labelInput)==null||e.addEventListener("input",t=>{this.$store.contactCaseManager.selectedPracticeAreas.some(i=>i.value==="other")&&(this.$store.contactCaseManager.selectedPracticeAreas=this.$store.contactCaseManager.selectedPracticeAreas.filter(i=>i.value!=="other"),this.$store.contactCaseManager.selectedPracticeAreas.push({value:"other",label:t.target.value}))}),this.$watch("isActive",t=>{t?this.$refs.input.checked=!0:this.$refs.input.checked=!1})}})),c.bind("PracticeTagContainer",()=>({"x-data"(){return{items(){return c.store("contactCaseManager").selectedPracticeAreas.filter(e=>e.label)},TagItem:{"@click"(){c.store("contactCaseManager").selectedPracticeAreas=c.store("contactCaseManager").selectedPracticeAreas.filter(e=>String(e.value)!==String(this.$data.tag.value))}}}}})),c.bind("DropdownService",()=>({"x-data"(){return{selectedCount(){return c.store("contactCaseManager").selectedServiceCount},handleOutsideClick(e){this.$refs.menu.contains(e.target)||this.close()},open(){this.$el.dataset.expanded==="false"&&(this.$refs.field.style.pointerEvents="none",this.$el.dataset.expanded=!0,this.$refs.menu.focus(),Promise.resolve().then(()=>{document.body.addEventListener("click",this.handleOutsideClick.bind(this),!0)}))},close(){this.$el.dataset.expanded=!1,this.$refs.field.style.removeProperty("pointer-events"),document.body.removeEventListener("click",this.handleOutsideClick,!0)},SelectedCount:{"x-data"(){return{get selectedCount(){return c.store("contactCaseManager").selectedServiceCount}}},"x-text"(){return this.selectedCount>0?this.selectedCount:""}},MarkerIcon:{"x-data"(){return{get selectedCount(){return c.store("contactCaseManager").selectedServiceCount}}},"x-init"(){this.selectedCount?this.$el.setAttribute("hidden",!0):this.$el.removeAttribute("hidden"),this.$watch("selectedCount",e=>{e?this.$el.setAttribute("hidden",!0):this.$el.removeAttribute("hidden")})}},ResetIcon:{"x-data"(){return{get selectedCount(){return c.store("contactCaseManager").selectedServiceCount}}},"x-init"(){this.selectedCount?this.$el.removeAttribute("hidden",!1):this.$el.setAttribute("hidden",!0),this.$watch("selectedCount",e=>{e?this.$el.removeAttribute("hidden",!1):this.$el.setAttribute("hidden",!0)})},"@click"(){c.store("contactCaseManager").selectedService=""}}}},"x-init"(){this.$refs.field.addEventListener("click",this.open.bind(this)),this.$watch("selectedCount",e=>{e?(this.$el.classList.add("dropdown--selected"),Tt()):this.$el.classList.remove("dropdown--selected")})}})),c.bind("ServiceRadio",()=>({"x-data"(){return{get selectedCount(){return c.store("contactCaseManager").selectedServiceCount},get isActive(){return c.store("contactCaseManager").selectedService.value===this.$refs.inputService.value},handleChange(e){var r,a,o,l;const{value:t}=e.target,n=t==="other"?(a=(r=this.$refs)==null?void 0:r.labelInput)==null?void 0:a.value:(o=this.$refs.labelService.querySelector("span"))==null?void 0:o.innerText,i=t==="other"?"other":t,s=((l=this.$refs.labelInput)==null?void 0:l.value)||"";i==="other"&&!n?(ye({message:"Please enter a value for the Other field.",type:"error"}),e.target.checked=!1):e.target.checked?c.store("contactCaseManager").selectedService={value:i,label:n,other:s}:c.store("contactCaseManager").selectedService=""}}},"x-init"(){var e;this.$refs.inputService.addEventListener("input",t=>{this.handleChange(t)}),this.$refs.inputService.addEventListener("change",t=>{this.handleChange(t)}),(e=this.$refs.labelInput)==null||e.addEventListener("input",t=>{const n=c.store("contactCaseManager").selectedService.value==="other";t.target.value?(c.store("contactCaseManager").selectedService={value:"other",label:t.target.value,other:t.target.value},this.$refs.inputService.checked=!0):!t.target.value&&n&&(c.store("contactCaseManager").selectedService="",this.$el.checked=!1)}),this.$watch("isActive",t=>{t||(this.$refs.inputService.checked=!1)})}})),c.bind("ServiceTagContainer",()=>({"x-data"(){return{get tag(){return c.store("contactCaseManager").selectedService},TagItem:{"@click"(){c.store("contactCaseManager").selectedService=""}}}}})),c.bind("ArbitratorServiceInfo",()=>({"x-data"(){const e=t=>{if(!t||typeof t!="object")return!1;const n=t.value!=null?String(t.value).toLowerCase():"",i=t.label!=null?String(t.label).trim().toLowerCase():"";return n==="arbitrator"||i==="arbitrator"};return{dismissed:!1,get isArbitrator(){return e(c.store("contactCaseManager").selectedService)},get showCard(){return e(c.store("contactCaseManager").selectedService)&&!this.dismissed}}},"x-effect"(){!this.isArbitrator&&this.dismissed&&(this.dismissed=!1)}})),c.bind("DropdownLocation",()=>({"x-data"(){return{isActive(){return!!c.store("contactCaseManager").selectedLocationType},fieldLabel(){return c.store("contactCaseManager").selectedLocationType.label||"Requested Hearing Format"},handleOutsideClick(e){this.$refs.menu.contains(e.target)||this.close()},open(){if(this.$el.dataset.expanded==="false"){const e=document.querySelector("#modal
782-neutral-case-manager .dropdown-container"),t=e==null?void 0:e.offsetWidth;this.$refs.menu.classList.contains("dropdown__menu--expanded")&&t&&(this.$refs.menu.style.width=`${t}px`),this.$refs.field.style.pointerEvents="none",this.$el.dataset.expanded=!0,this.$refs.menu.focus(),Promise.resolve().then(()=>{document.body.addEventListener("click",this.handleOutsideClick.bind(this),!0)})}},close(){this.$el.dataset.expanded=!1,this.$refs.field.style.removeProperty("pointer-events"),document.body.removeEventListener("click",this.handleOutsideClick,!0)},MarkerIcon:{"x-data"(){return{get isActive(){return c.store("contactCaseManager").selectedLocationType}}},"x-init"(){this.isActive?this.$el.setAttribute("hidden",!0):this.$el.removeAttribute("hidden"),this.$watch("isActive",e=>{e?this.$el.setAttribute("hidden",!0):this.$el.removeAttribute("hidden")})}},ResetIcon:{"x-data"(){return{get isActive(){return c.store("contactCaseManager").selectedLocationType}}},"x-init"(){this.isActive?this.$el.removeAttribute("hidden",!1):this.$el.setAttribute("hidden",!0),this.$watch("isActive",e=>{e?this.$el.removeAttribute("hidden",!1):this.$el.setAttribute("hidden",!0)})},"@click"(){c.store("contactCaseManager").selectedLocationType="",c.store("contactCaseManager").selectedLocation=""}}}},"x-init"(){this.$refs.field.addEventListener("click",this.open.bind(this)),this.$watch("isActive",e=>{e?this.$el.classList.add("dropdown--selected"):this.$el.classList.remove("dropdown--selected")})}})),c.bind("LocationTypeRadio",()=>({"x-data"(){return{get isActive(){return c.store("contactCaseManager").selectedLocationType.value===this.$refs.input.value},handleChange(e){var s,r,a,o;const{value:t}=e.target,n=this.$refs.label.querySelector(".label").innerText;e.target.checked?(c.store("contactCaseManager").selectedLocationType={value:t,label:n},(t==="virtual"||t==="not-sure")&&(c.store("contactCaseManager").selectedLocation=""),(s=this.$refs.menu.querySelector(".input-container-title"))==null||s.classList.remove("input-container-title--disabled"),(r=this.$refs.menu.querySelector("#location-list"))==null||r.classList.remove("input-container--disabled")):(c.store("contactCaseManager").selectedLocationType="",(a=this.$refs.menu.querySelector(".input-container-title"))==null||a.classList.add("input-container-title--disabled"),(o=this.$refs.menu.querySelector("#location-list"))==null||o.classList.add("input-container--disabled"))}}},"x-init"(){this.$refs.input.addEventListener("change",e=>{this.handleChange(e)}),this.$watch("isActive",e=>{e||(this.$refs.input.checked=!1)})}})),c.bind("LocationRadio",()=>({"x-data"(){return{get isActive(){const e=c.store("contactCaseManager").selectedLocationType.value,t=["virtual","not-sure"].includes(c.store("contactCaseManager").selectedLocationType.value);return e&&!t},get isSelected(){const e=c.store("contactCaseManager").selectedLocation;return e&&typeof e=="object"&&e.value===this.$refs.input.value},handleChange(e){const{value:t}=e.target,n=this.$refs.label.innerText;if(e.target.checked){const r=c.store("contactCaseManager").neutralData.locations.find(a=>a.value===t||a.label===n);c.store("contactCaseManager").selectedLocation=r||{value:t,label:n}}else c.store("contactCaseManager").selectedLocation=""}}},"x-init"(){this.$refs.input.addEventListener("change",e=>{this.handleChange(e)}),this.$watch("isSelected",e=>{this.$refs.input.checked=e}),this.$refs.input.checked=this.isSelected,this.$watch("isActive",e=>{var t,n;e?this.$refs.input.disabled=!1:(this.$refs.input.disabled=!0,(t=this.$refs.menu.querySelector(".input-container-title"))==null||t.classList.add("input-container-title--disabled"),(n=this.$refs.menu.querySelector("#location-list"))==null||n.classList.add("input-container--disabled"))})}})),c.bind("LocationTagContainer",()=>({"x-data"(){return{get tag(){return c.store("contactCaseManager").selectedLocation},TagItem:{"@click"(){c.store("contactCaseManager").selectedLocation=""}}}}})),c.bind("SessionDateRadio",()=>({"x-data"(){return{get isActive(){var t;const e=this.$refs.input.value;return((t=c.store("contactCaseManager").selectedSessionDate)==null?void 0:t.value)===e},handleChange(e){const{value:t}=e.target,n=this.$refs.label.innerText;e.target.checked?(c.store("contactCaseManager").selectedSessionDate={value:t,label:n},t!=="custom-date"&&(c.store("contactCaseManager").selectedCustomDates=[])):c.store("contactCaseManager").selectedSessionDate=""}}},"x-init"(){this.$refs.input.addEventListener("change",e=>{this.handleChange(e)}
782),this.$watch("isActive",e=>{this.$refs.input.checked=e})}})),c.bind("CustomDateRange",()=>({"x-data"(){return{picker:null,get id(){return this.$el.id},get item(){return c.store("contactCaseManager").selectedCustomDates.find(e=>{var t;return String(e.id)===String((t=this.$data)==null?void 0:t.id)})},DeleteButton:{"x-show"(){const e=c.store("contactCaseManager").selectedCustomDates[0];return(e==null?void 0:e.id)!==this.$data.id},"@click"(){const e=this.$el.parentNode.id;c.store("contactCaseManager").selectedCustomDates=[...c.store("contactCaseManager").selectedCustomDates.filter(t=>String(t.id)!==String(e))],this.$el.parentNode.remove()}},saveDateRange(e){var i;const t=(i=this.$el)==null?void 0:i.id;let n=c.store("contactCaseManager").selectedCustomDates.findIndex(s=>String(s.id)===String(t));if(n!==-1){c.store("contactCaseManager").selectedCustomDates[n]={...c.store("contactCaseManager").selectedCustomDates[n],value:e},c.store("contactCaseManager").selectedSessionDate={value:"custom-date",label:"Schedule a specific date range"};const s=document.querySelector("#custom-date");s&&(s.checked=!0)}}}},"x-init"(){try{this.picker=new Yr.create({element:this.$el.querySelector("input"),css:["/modules/custom/jams_alpine_components/css/datepicker.css","/modules/custom/jams_alpine_components/css/vendor/datepicker.css"],plugins:[Rr,Hr],RangePlugin:{tooltip:!0,delimiter:" - ",startDate:Date.now().valueOf()},LockPlugin:{minDate:Date.now().valueOf()},zIndex:9999,format:"MM/DD/YYYY"}),this.picker&&this.picker.ui&&this.picker.ui.container&&this.picker.ui.container.classList.add("easepick-wrapper"),this.picker.on("select",t=>{const n=this.$el.querySelector("input"),i=n==null?void 0:n.value;i&&this.saveDateRange(i)});const e=this.$el.querySelector("input");e&&e.addEventListener("input",()=>{const t=e.value;t&&this.saveDateRange(t)}),this.$refs.icon.addEventListener("click",t=>{this.$refs.input.click()}),this.$watch("item",t=>{t||this.$el.remove()})}catch{}}})),c.bind("AddMoreDateButton",()=>({"x-data"(){return{get isActive(){return c.store("contactCaseManager").selectedCustomDates.length<3},get selectedDateCount(){return c.store("contactCaseManager").selectedCustomDates.length},pushItem(){const e={id:String(Date.now().valueOf()),value:null};c.store("contactCaseManager").selectedCustomDates.push(e);const t=document.querySelector("#custom-date-template"),n=document.querySelector(".date-range-list");if(!t||!n)return;const i=t.content.cloneNode(!0).firstElementChild;i&&(i.setAttribute("id",e.id),n.insertBefore(i,t),c.initTree(i))},Button:{"@click"(){c.store("contactCaseManager").selectedCustomDates.every(t=>t.value)?this.pushItem():ye({message:"Please choose a date range before adding a new one",type:"error"})}}}},"x-init"(){setTimeout(()=>{c.store("contactCaseManager").selectedCustomDates.length===0&&this.pushItem();const e=document.querySelector(".date-range-list");e&&(e.style.display="flex")},100),this.$watch("selectedDateCount",e=>{e===0&&this.pushItem()}),this.$watch("isActive",e=>{e?this.$el.style.display="block":this.$el.style.display="none"})}}))}function _i(e){const t=new URL(window.location.href);if(e){const n=c.store("contactCaseManager"),i=!!(n&&n.openFromCalendarCta);t.searchParams.delete("inquiry"),t.searchParams.delete("calendar"),i?t.searchParams.set("calendar","true"):t.searchParams.set("inquiry","true")}else t.searchParams.delete("inquiry"),t.searchParams.delete("calendar");t.href!==window.location.href&&window.history.replaceState({},"",t)}function He(){const e=h.caseManagerDialog;e&&(e.getAttributeNames().includes("hidden")?(_i(!0),e.removeAttribute("hidden"),document.body.classList.add("modal-open","modal-neutral-inquiry-form-open"),e.isConnected&&!e._x_dataStack&&c.initTree(e)):(_i(!1),c.store("contactCaseManager").clear(),c.store("contactCaseManager").modalType=null,c.store("contactCaseManager").selectedDate=null,c.store("contactCaseManager").openFromCalendarCta=!1,e.setAttribute("hidden",""),document.body.classList.remove("modal-open","modal-neutral-inquiry-form-open"),h.neutralContainer&&h.neutralContainer.style.removeProperty("display"),h.sessionDateContainer&&h.sessionDateContainer.style.removeProperty("display"),h.dropdownContainer&&h.dropdownContainer.style.removeProperty("display"),h.caseManagerForm&&h.caseManagerForm.style.removeProperty("display"),h.caseManagerInfo&&h.caseManagerInfo.style.removeProperty("display"),h.headerRight&&h.headerRight.style.removeProperty("display"),h.caseManagerThankYou&&(h.caseManagerThankYou.style.display="none"),h.scheduleCaseTitle&&(h.scheduleCaseTitle.style.textAlign="left"),h.neutralInquiryInfoContainer&&(h.neutralInquiryInfoContainer.style.borderTop="1px solid var(--cm-border);"),setTimeout(()=>{document.activeElement.blur()},0)))}
782window.openModal=async function({neutral_id:e,selected_date:t=null,appointment_mode:n=!1,modalType:i=null}){if(e)try{h.caseManagerDialog||Lt();const s=h.caseManagerDialog;if(!s)return;const r=c.store("contactCaseManager");r.selectedDate=t,r.openFromCalendarCta=!!n,i&&(r.modalType=i),s&&s.classList.add("modal-loading"),await Promise.all([c.store("contactCaseManager").fetchNeutral({neutralId:e}),t?Promise.resolve():c.store("contactCaseManager").fetchNeutrals()]),He(),s&&s.classList.remove("modal-loading")}catch{const r=h.caseManagerDialog;r&&r.classList.remove("modal-loading")}},window.openModalFromShortlist=async function(e){if(!Array.isArray(e)||e.length===0)return;const[...t]=e;if(c.store("contactCaseManager").modalType="shortlist",await window.openModal({neutral_id:e[0].id,modalType:"shortlist"}),t.length===0)return;const n=c.store("contactCaseManager");t.forEach(i=>{const s=n.neutrals.find(r=>String(r.id)===String(i.id));!s||s.selected||(s.selected=!0,n.selectedNeutrals.push({...s}))})};function yi(e){const t=e.getAttribute("data-neutral-id"),n=e.classList.contains("neutral-detail-hero__cta_calendar");if(t)return window.openModal({neutral_id:t,appointment_mode:n})}function je(){document.querySelectorAll(".case-manager-trigger").forEach(t=>{t.hasAttribute("data-case-manager-attached")||(t.setAttribute("data-case-manager-attached","true"),t.addEventListener("click",async function(n){n.preventDefault(),n.stopPropagation(),await yi(this)}))})}function Pt(){const e=h.thankYouCloseButton;if(!e)return;const t=e.cloneNode(!0);e.parentNode.replaceChild(t,e),h.thankYouCloseButton=t,t.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),He()})}function vi(){new MutationObserver(t=>{t.forEach(n=>{n.addedNodes.forEach(i=>{i.nodeType===Node.ELEMENT_NODE&&(i.classList&&i.classList.contains("case-manager-trigger")&&je(),i.querySelectorAll&&i.querySelectorAll(".case-manager-trigger").length>0&&je())})})}).observe(document.body,{childList:!0,subtree:!0})}c.bind("NeutralList",()=>({"x-data"(){return{get selectedCount(){return c.store("contactCaseManager").selectedNeutrals.length},get maxSelectedNeutrals(){return c.store("contactCaseManager").maxSelectedNeutrals},handleOutsideClick(e){this.$refs.menu.contains(e.target)||this.close()},open(){this.$el.dataset.expanded==="false"&&this.selectedCount<this.maxSelectedNeutrals&&(this.$el.dataset.expanded=!0)},close(e){this.$refs.menu.contains(e.relatedTarget)||Promise.resolve().then(()=>{this.$el.dataset.expanded=!1})},get neutralList(){const e=c.store("contactCaseManager");if(!e||!e.neutrals||!Array.isArray(e.neutrals))return[];const{neutralData:t,neutrals:n,neutralQuery:i,isNeutralExclusivelyFromLocation:s}=e;let r=n.filter(o=>o&&o.name);const a=(i||"").trim().toLowerCase();return a&&(r=r.filter(o=>o.name.toLowerCase().includes(a))),r=r.filter(o=>o.id&&o.id!==(t==null?void 0:t.id)&&!o.selected),s&&t&&(s(t,"denver")?r=r.filter(o=>o&&s(o,"denver")):r=r.filter(o=>o&&!s(o,"denver"))),r},NeutralMenuItem:{"@click"(){const e=c.store("contactCaseManager");if(e.selectedNeutrals.length>=e.maxSelectedNeutrals)return;const t=parseInt(this.$el.dataset.neutralId,10),n=e.neutrals.find(s=>s.id===t);n&&(n.selected=!0,e.selectedNeutrals.push({...n}));const i=document.querySelector(".field-search");i.dataset.expanded=!1}}}},"x-init"(){this.$refs.search.addEventListener("focus",this.open.bind(this)),this.$refs.search.addEventListener("blur",this.close.bind(this)),this.$refs.search.addEventListener("keydown",t=>{t.key==="Escape"&&this.$refs.search.blur()}),this.$watch("selectedCount",t=>{t?this.$el.classList.add("dropdown--selected"):this.$el.classList.remove("dropdown--selected")});const e=c.store("contactCaseManager");this.$watch(()=>e.neutrals.length,()=>{this.neutralList}),this.$watch(()=>e.neutralQuery,()=>{this.neutralList}),this.$watch(()=>{var t;return(t=e.neutralData)==null?void 0:t.id},()=>{this.neutralList}),this.$watch(()=>e.selectedNeutrals.length,()=>{this.neutralList}),this.$watch(()=>e.neutrals.filter(t=>t.selected).length,()=>{this.neutralList})}})),c.bind("SelectedNeutralItem",()=>({"x-init"(){const e=this.$el.querySelector(".btn-delete");e&&e.addEventListener("click",t=>{const i=t.currentTarget.dataset.id;if(!i)return;const s=c.store("contactCaseManager").neutrals.find(r=>String(r.id)===String(i));s&&(s.selected=!1,c.store("contactCaseManager").selectedNeutrals=[...c.store("contactCaseManager").selectedNeutrals.filter(r=>String(r.id)!==String(i))])})}})),c.bind("NotificationContainer",()=>({"x-data"(){return{get notifications(){return c.store("contactCaseManager").notifications}}}})),c.bind("Notification",()=>({"x-bind"(){return{class:this.$data.notification.type==="error"?"notification--error":"notification--success"}},"x-init"(){this.$refs.button.addEventListener("click",()=>{c.store("contactCaseManager").removeNotification(this.$data.notification.id)})}}));const bi=()=>{const e=document.querySelector(".notification-container");!(e!=null&&e.parentElement)||e.parentElement.matches("body")||(document.body.appendChild(e),e.isConnected&&!e._x_dataStack&&c.initTree(e))};function wi(){oa(),Jr(),la(),window.addEventListener("new-neutral-search:submit-inquiry",async e=>{var n;const t=(n=e.detail)==null?void 0:n.shortlist;
782!(t!=null&&t.length)||typeof window.openModalFromShortlist!="function"||await window.openModalFromShortlist(t)}),window.addEventListener("new-neutral-search:open-contact-case-manager",async e=>{var n;const t=(n=e.detail)==null?void 0:n.neutralId;!t||typeof window.openModal!="function"||await window.openModal({neutral_id:t})}),console.warn("initCaseManagerForm"),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Lt(),mi(),je(),vi(),Pt(),setTimeout(bi,100),Ci()}):(Lt(),mi(),je(),vi(),Pt(),setTimeout(bi,100),Ci())}function Ci(){const e=new URL(window.location.href);let t=null;e.searchParams.has("calendar")?t=document.querySelector(".case-manager-trigger.neutral-detail-hero__cta_calendar"):e.searchParams.has("inquiry")&&(t=document.querySelector(".case-manager-trigger.neutral-detail-hero__cta_inquiry")||document.querySelector(".case-manager-trigger:not(.neutral-detail-hero__cta_calendar)")),t&&yi(t)}console.log("JAMS Alpine Components Bundle loaded"),window.Alpine||(window.Alpine=c),wi(),!c.version&&!window.__alpineStarted?(console.log("Alpine.js starting..."),window.__alpineStarted=!0,c.start(),console.log("Alpine.js started successfully!")):console.log("Alpine.js already initialized"),q.Alpine=c,q.initCaseManagerForm=wi,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})})(this.JamsAlpineComponents=this.JamsAlpineComponents||{});
783;
784(function(){"use strict";var kt=!1,$t=!1,le=[],Ft=-1,Dt=!1;function bs(e){Ts(e)}function xs(){Dt=!0}function Es(){Dt=!1,qi()}function Ts(e){le.includes(e)||le.push(e),qi()}function As(e){let t=le.indexOf(e);t!==-1&&t>Ft&&le.splice(t,1)}function qi(){if(!$t&&!kt){if(Dt)return;kt=!0,queueMicrotask(Cs)}}function Cs(){kt=!1,$t=!0;for(let e=0;e<le.length;e++)le[e](),Ft=e;le.length=0,Ft=-1,$t=!1}var Se,ce,ve,Wi,Rt=!0;function Ls(e){Rt=!1,e(),Rt=!0}function Ms(e){Se=e.reactive,ve=e.release,ce=t=>e.effect(t,{scheduler:i=>{Rt?bs(i):i()}}),Wi=e.raw}function Ui(e){ce=e}function Os(e){let t=()=>{};return[n=>{let r=ce(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(s=>s())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),ve(r))},r},()=>{t()}]}function Ki(e,t){let i=!0,n,r,s=ce(()=>{let a=e(),o=JSON.stringify(a);if(!i&&(typeof a=="object"||a!==n)){let l=typeof n=="object"?JSON.parse(r):n;queueMicrotask(()=>{t(a,l)})}n=a,r=o,i=!1});return()=>ve(s)}async function Ps(e){xs();try{await e(),await Promise.resolve()}finally{Es()}}var Yi=[],Xi=[],Qi=[];function Is(e){Qi.push(e)}function Nt(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Xi.push(t))}function Ji(e){Yi.push(e)}function Zi(e,t,i){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(i)}function en(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([i,n])=>{(t===void 0||t.includes(i))&&(n.forEach(r=>r()),delete e._x_attributeCleanups[i])})}function ks(e){var t,i;for((t=e._x_effects)==null||t.forEach(As);(i=e._x_cleanups)!=null&&i.length;)e._x_cleanups.pop()()}var zt=new MutationObserver(Gt),Ht=!1;function Bt(){zt.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ht=!0}function tn(){$s(),zt.disconnect(),Ht=!1}var Pe=[];function $s(){let e=zt.takeRecords();Pe.push(()=>e.length>0&&Gt(e));let t=Pe.length;queueMicrotask(()=>{if(Pe.length===t)for(;Pe.length>0;)Pe.shift()()})}function F(e){if(!Ht)return e();tn();let t=e();return Bt(),t}var Vt=!1,Ye=[];function Fs(){Vt=!0}function Ds(){Vt=!1,Gt(Ye),Ye=[]}function Gt(e){if(Vt){Ye=Ye.concat(e);return}let t=[],i=new Set,n=new Map,r=new Map;for(let s=0;s<e.length;s++)if(!e[s].target._x_ignoreMutationObserver&&(e[s].type==="childList"&&(e[s].removedNodes.forEach(a=>{a.nodeType===1&&a._x_marker&&i.add(a)}),e[s].addedNodes.forEach(a=>{if(a.nodeType===1){if(i.has(a)){i.delete(a);return}a._x_marker||t.push(a)}})),e[s].type==="attributes")){let a=e[s].target,o=e[s].attributeName,l=e[s].oldValue,c=()=>{n.has(a)||n.set(a,[]),n.get(a).push({name:o,value:a.getAttribute(o)})},u=()=>{r.has(a)||r.set(a,[]),r.get(a).push(o)};a.hasAttribute(o)&&l===null?c():a.hasAttribute(o)?(u(),c()):u()}r.forEach((s,a)=>{en(a,s)}
vendor: 19,279 bytes, lines 784-788
784),n.forEach((s,a)=>{Yi.forEach(o=>o(a,s))});for(let s of i)t.some(a=>a.contains(s))||Xi.forEach(a=>a(s));for(let s of t)s.isConnected&&Qi.forEach(a=>a(s));t=null,i=null,n=null,r=null}function nn(e){return de(ue(e))}function Ie(e,t,i){return e._x_dataStack=[t,...ue(i||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function ue(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?ue(e.host):e.parentNode?ue(e.parentNode):[]}function de(e){return new Proxy({objects:e},Rs)}function rn(e,t){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:rn(Object.getPrototypeOf(e),t)}var Rs={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(i=>Object.prototype.hasOwnProperty.call(i,t)||Reflect.has(i,t))},get({objects:e},t,i){return t=="toJSON"?Ns:Reflect.get(e.find(n=>Reflect.has(n,t))||{},t,i)},set({objects:e},t,i,n){let r;for(const a of e)if(r=rn(a,t),r)break;r||(r=e[e.length-1]);const s=Object.getOwnPropertyDescriptor(r,t);return s!=null&&s.set&&(s!=null&&s.get)?s.set.call(n,i)||!0:Reflect.set(r,t,i)}};function Ns(){return Reflect.ownKeys(this).reduce((t,i)=>(t[i]=Reflect.get(this,i),t),{})}function jt(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,i=(n,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([s,{value:a,enumerable:o}])=>{if(o===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let l=r===""?s:`${r}.${s}`;typeof a=="object"&&a!==null&&a._x_interceptor?n[s]=a.initialize(e,l,s):t(a)&&a!==n&&!(a instanceof Element)&&i(a,l)})};return i(e)}function sn(e,t=()=>{}){let i={initialValue:void 0,_x_interceptor:!0,initialize(n,r,s){return e(this.initialValue,()=>zs(n,r),a=>qt(n,r,a),r,s)}};return t(i),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let r=i.initialize.bind(i);i.initialize=(s,a,o)=>{let l=n.initialize(s,a,o);return i.initialValue=l,r(s,a,o)}}else i.initialValue=n;return i}}function zs(e,t){return t.split(".").reduce((i,n)=>i[n],e)}function qt(e,t,i){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=i;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),qt(e[t[0]],t.slice(1),i)}}var an={};function q(e,t){an[e]=t}function ke(e,t){let i=Hs(t);return Object.entries(an).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){return r(t,i)},enumerable:!1})}),e}function Hs(e){let[t,i]=pn(e),n={interceptor:sn,...t};return Nt(e,i),n}function Bs(e,t,i,...n){try{return i(...n)}catch(r){$e(r,e,t)}}function $e(...e){return on(...e)}var on=Gs;function Vs(e){on=e}function Gs(e,t,i=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:i}),console.warn(`Alpine Expression Error: ${e.message}
785
786${i?'Expression: "'+i+`"
787
788`:""}`,t),setTimeout(()=>{throw e},0)}var ye=!0;function ln(e){let t=ye;ye=!1;let i=e();return ye=t,i}function fe(e,t,i={}){let n;return N(e,t)(r=>n=r,i),n}function N(...e){return cn(...e)}var cn=()=>{};function js(e){cn=e}var un;function qs(e){un=e}function Ws(e,t){let i={};ke(i,e);let n=[i,...ue(e)],r=typeof t=="function"?Us(n,t):Ys(n,t,e);return Bs.bind(null,e,t,r)}function Us(e,t){return(i=()=>{},{scope:n={},params:r=[],context:s}={})=>{if(!ye){Fe(i,t,de([n,...e]),r);return}let a=t.apply(de([n,...e]),r);Fe(i,a)}}var Wt={};function Ks(e,t){if(Wt[e])return Wt[e];let i=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,s=(()=>{try{let a=new i(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(a,"name",{value:`[Alpine] ${e}`}),a}catch(a){return $e(a,t,e),Promise.resolve()}})();return Wt[e]=s,s}function Ys(e,t,i){let n=Ks(t,i);return(r=()=>{},{scope:s={},params:a=[],context:o}={})=>{n.result=void 0,n.finished=!1;let l=de([s,...e]);if(typeof n=="function"){let c=n.call(o,n,l).catch(u=>$e(u,i,t));n.finished?(Fe(r,n.result,l,a,i),n.result=void 0):c.then(u=>{Fe(r,u,l,a,i)}).catch(u=>$e(u,i,t)).finally(()=>n.result=void 0)}}}function Fe(e,t,i,n,r){if(ye&&typeof t=="function"){let s=t.apply(i,n);s instanceof Promise?s.then(a=>Fe(e,a,i,n)).catch(a=>$e(a,r,t)):e(s)}else typeof t=="object"&&t instanceof Promise?t.then(s=>e(s)):e(t)}function Xs(...e){return un(...e)}function Qs(e,t,i={}){let n={};ke(n,e);let r=[n,...ue(e)],s=de([i.scope??{},...r]),a=i.params??[];if(t.includes("await")){let o=Object.getPrototypeOf(async function(){}).constructor,l=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t;return new o(["scope"],`with (scope) { let __result = ${l}; return __result }`).call(i.context,s)}else{let o=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,c=new Function(["scope"],`with (scope) { let __result = ${o}; return __result }`).call(i.context,s);return typeof c=="function"&&ye?c.apply(s,a):c}}var Ut="x-";function be(e=""){return Ut+e}function Js(e){Ut=e}var Xe={};function D(e,t){return Xe[e]=t,{before(i){if(!Xe[i]){console.warn(String.raw`Cannot find directive \`${i}\`. \`${e}\` will use the default order of execution`);return}const n=pe.indexOf(i);pe.splice(n>=0?n:pe.indexOf("DEFAULT"),0,e)}}}function Zs(e){return Object.keys(Xe).includes(e)}function Kt(e,t,i){if(t=Array.from(t),e._x_virtualDirectives){let s=Object.entries(e._x_virtualDirectives).map(([o,l])=>({name:o,value:l})),a=dn(s);s=s.map(o=>a.find(l=>l.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),t=t.concat(s)}let n={};return t.map(mn((s,a)=>n[s]=a)).filter(wn).map(ia(n,i)).sort(na).map(s=>ta(e,s))}function dn(e){return Array.from(e).map(mn()).filter(t=>!wn(t))}var Yt=!1,De=new Map,fn=Symbol();function ea(e){Yt=!0;let t=Symbol();fn=t,De.set(t,[]);let i=()=>{for(;De.get(t).length;)De.get(t).shift()();De.delete(t)},n=()=>{Yt=!1,i()};e(i),n()}function pn(e){let t=[],i=o=>t.push(o),[n,r]=Os(e);return t.push(r),[{Alpine:ze,effect:n,cleanup:i,evaluateLater:N.bind(N,e),evaluate:fe.bind(fe,e)},()=>t.forEach(o=>o())]}function ta(e,t){let i=()=>{},n=Xe[t.type]||i,[r,s]=pn(e);Zi(e,t.original,s);let a=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,r),n=n.bind(n,e,t,r),Yt?De.get(fn).push(n):n())};return a.runCleanups=s,a}var hn=(e,t)=>({name:i,value:n})=>(i.startsWith(e)&&(i=i.replace(e,t)),{name:i,value:n}),gn=e=>e;function mn(e=()=>{}){return({name:t,value:i})=>{let{name:n,value:r}=_n.reduce((s,a)=>a(s),{name:t,value:i});return n!==t&&e(n,t),{name:n,value:r}}}var _n=[];function Xt(e){_n.push(e)}function wn({name:e}){return Sn().test(e)}var Sn=()=>new RegExp(`^${Ut}([^:^.]+)\\b`);function ia(e,t){return({name:i,value:n})=>{i===n&&(n="");let r=i.match(Sn()),s=i.match(/:([a-zA-Z0-9\-_:]+)/),a=i.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],o=t||e[i]||i;return{type:r?r[1]:null,value:s?s[1]:null,modifiers:a.map(l=>l.replace(".","")),expression:n,original:o}}}var Qt="DEFAULT",pe=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",Qt,"teleport"];function na(e,t){let i=pe.indexOf(e.type)===-1?Qt:e.type,n=pe.indexOf(t.type)===-1?Qt:t.type;return pe.indexOf(i)-pe.indexOf(n)}function Re(e,t,i={},n={}){return e.dispatchEvent(new CustomEvent(t,{detail:i,bubbles:!0,composed:!0,cancelable:!0,...n}))}function he(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(r=>he(r,t));return}let i=!1;if(t(e,()=>i=!0),i)return;let n=e.firstElementChild;for(;n;)he(n,t),n=n.nextElementSibling}function U(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var vn=!1;function ra(){vn&&U("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),vn=!0,document.body||U("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Re(document,"alpine:init"),Re(document,"alpine:initializing"),Bt(),Is(t=>Q(t,he)),Nt(t=>xe(t)),Ji((t,i)=>{Kt(t,i).forEach(n=>n())});let e=t=>!Qe(t.parentElement,!0);Array.from(document.querySelectorAll(xn().join(","))).filter(e).forEach(t=>{Q(t)}),Re(document,"alpine:initialized"),setTimeout(()=>{la()})}var Jt=[],yn=[];function bn(){return Jt.map(e=>e())}function xn(){return Jt.concat(yn).map(e=>e())}function En(e){Jt.push(e)}function Tn(e){yn.push(e)}function Qe(e,t=!1){return X(e,i=>{if((t?xn():bn()).some(r=>i.matches(r)))return!0})}function X(e,t){if(e){if(t(e))return e;if(e._x_teleportBack)return X(e._x_teleportBack,t);if(e.parentNode instanceof ShadowRoot)return X(e.parentNode.host,t);if(e.parentElement)return X(e.parentElement,t)}}function sa(e){return bn().some(t=>e.matches(t))}var An=[];function aa(e){An.push(e)}var oa=1;function Q(e,t=he,i=()=>{}){X(e,n=>n._x_ignore)||ea(()=>{t(e,(n,r)=>{n._x_marker||(i(n,r),An.forEach(s=>s(n,r)),Kt(n,n.attributes).forEach(s=>s()),n._x_ignore||(n._x_marker=oa++),n._x_ignore&&r())})})}function xe(e,t=he){t(e,i=>{ks(i),en(i),delete i._x_marker})}function la(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,i,n])=>{Zs(i)||n.some(r=>{if(document.querySelector(r))return U(`found "${r}", but missing ${t} plugin`),!0})})}var Zt=[],ei=!1;function ti(e=()=>{}){return queueMicrotask(()=>{ei||setTimeout(()=>{ii()})}),new Promise(t=>{Zt.push(()=>{e(),t()})})}function ii(){for(ei=!1;Zt.length;)Zt.shift()()}function ca(){ei=!0}function ni(e,t){return Array.isArray(t)?Cn(e,t.join(" ")):typeof t=="object"&&t!==null?ua(e,t):typeof t=="function"?ni(e,t()):Cn(e,t)}function ri(e){return e.split(/\s/).filter(Boolean)}function Cn(e,t){let i=r=>ri(r).filter(s=>!e.classList.contains(s)).filter(Boolean),n=r=>(e.classList.add(...r),()=>{e.classList.remove(...r)});return t=t===!0?t="":t||"",n(i(t))}function ua(e,t){let i=Object.entries(t).flatMap(([a,o])=>o?ri(a):!1).filter(Boolean),n=Object.entries(t).flatMap(([a,o])=>o?!1:ri(a)).filter(Boolean),r=[],s=[];return n.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),i.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),r.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),r.forEach(a=>e.classList.remove(a))}}function Je(e,t){return typeof t=="object"&&t!==null?da(e,t):fa(e,t)}function da(e,t){let i={};return Object.entries(t).forEach(([n,r])=>{i[n]=e.style[n],n.startsWith("--")||(n=pa(n)),e.style.setProperty(n,r)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Je(e,i)}}function fa(e,t){let i=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",i||"")}}function pa(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function si(e,t=()=>{}){let i=!1;return function(){i?t.apply(this,arguments):(i=!0,e.apply(this,arguments))}}D("transition",(e,{value:t,modifiers:i,expression:n},{evaluate:r})=>{typeof n=="function"&&(n=r(n)),n!==!1&&(!n||typeof n=="boolean"?ga(e,i,t):ha(e,n,t))});function ha(e,t,i){Ln(e,ni,""),{enter:r=>{e._x_transition.enter.during=r},"enter-start":r=>{e._x_transition.enter.start=r},"enter-end":r=>{e._x_transition.enter.end=r},leave:r=>{e._x_transition.leave.during=r},"leave-start":r=>{e._x_transition.leave.start=r},"leave-end":r=>{e._x_transition.leave.end=r}}[i](t)}function ga(e,t,i){Ln(e,Je);let n=!t.includes("in")&&!t.includes("out")&&!i,r=n||t.includes("in")||["enter"].includes(i),s=n||t.includes("out")||["leave"].includes(i);t.includes("in")&&!n&&(t=t.filter((S,f)=>f<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((S,f)=>f>t.indexOf("out")));let a=!t.includes("opacity")&&!t.includes("scale"),o=a||t.includes("opacity"),l=a||t.includes("scale"),c=o?0:1,u=l?Ne(t,"scale",95)/100:1,d=Ne(t,"delay",0)/1e3,p=Ne(t,"origin","center"),h="opacity, transform",m=Ne(t,"duration",150)/1e3,_=Ne(t,"duration",75)/1e3,y="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:p,transitionDelay:`${d}s`,transitionProperty:h,transitionDuration:`${m}s`,transitionTimingFunction:y},e._x_transition.enter.start={opacity:c,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),s&&(e._x_transition.leave.during={transformOrigin:p,transitionDelay:`${d}s`,transitionProperty:h,transitionDuration:`${_}s`,transitionTimingFunction:y},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}function Ln(e,t,i={}){e._x_transition||(e._x_transition={enter:{during:i,start:i,end:i},leave:{during:i,start:i,end:i},in(n=()=>{},r=()=>{}){ai(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=()=>{},r=()=>{}){ai(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,i,n){const r=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let s=()=>r(i);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(i):s():e._x_transition?e._x_transition.in(i):s();return}e._x_hidePromise=e._x_transition?new Promise((a,o)=>{e._x_transition.out(()=>{},()=>a(n)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>o({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let a=Mn(e);a?(a._x_hideChildren||(a._x_hideChildren=[]),a._x_hideChildren.push(e)):r(()=>{let o=l=>{let c=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(o)]).then(([u])=>u==null?void 0:u());return delete l._x_hidePromise,delete l._x_hideChildren,c};o(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function Mn(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Mn(t)}function ai(e,t,{during:i,start:n,end:r}={},s=()=>{},a=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(i).length===0&&Object.keys(n).length===0&&Object.keys(r).length===0){s(),a();return}let o,l,c;ma(e,{start(){o=t(e,n)},during(){l=t(e,i)},before:s,end(){o(),c=t(e,r)},after:a,cleanup(){l(),c()}})}function ma(e,t){let i,n,r,s=si(()=>{F(()=>{i=!0,n||t.before(),r||(t.end(),ii()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:si(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()}),finish:s},F(()=>{t.start(),t.during()}),ca(),requestAnimationFrame(()=>{if(i)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,o=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),F(()=>{t.before()}),n=!0,requestAnimationFrame(()=>{i||(F(()=>{t.end()}),ii(),setTimeout(e._x_transitioning.finish,a+o),r=!0)})})}function Ne(e,t,i){if(e.indexOf(t)===-1)return i;const n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return i;if(t==="duration"||t==="delay"){let r=n.match(/([0-9]+)ms/);if(r)return r[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var te=!1;function ie(e,t=()=>{}){return(...i)=>te?t(...i):e(...i)}function _a(e){return(...t)=>te&&e(...t)}var On=[];function Ze(e){On.push(e)}function wa(e,t){On.forEach(i=>i(e,t)),te=!0,Pn(()=>{Q(t,(i,n)=>{n(i,()=>{})})}),te=!1}var oi=!1;function Sa(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),te=!0,oi=!0,Pn(()=>{va(t)}),te=!1,oi=!1}function va(e){let t=!1;Q(e,(n,r)=>{he(n,(s,a)=>{if(t&&sa(s))return a();t=!0,r(s,a)})})}function Pn(e){let t=ce;Ui((i,n)=>{let r=t(i);return ve(r),()=>{}}),e(),Ui(t)}function In(e,t,i,n=[]){switch(e._x_bindings||(e._x_bindings=Se({})),e._x_bindings[t]=i,t=n.includes("camel")?La(t):t,t){case"value":ya(e,i);break;case"style":xa(e,i);break;case"class":ba(e,i);break;case"selected":case"checked":Ea(e,t,i);break;default:kn(e,t,i);break}}function ya(e,t){if(li(e))e.attributes.value===void 0&&(e.value=t);else if(tt(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(i=>Ma(i,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Ca(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function ba(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=ni(e,t)}function xa(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Je(e,t)}function Ea(e,t,i){kn(e,t,i),Aa(e,t,i)}function kn(e,t,i){[null,void 0,!1].includes(i)&&Pa(t)?e.removeAttribute(t):($n(t)&&(i=t),Ta(e,t,i))}function Ta(e,t,i){e.getAttribute(t)!=i&&e.setAttribute(t,i)}function Aa(e,t,i){e[t]!==i&&(e[t]=i)}function Ca(e,t){const i=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=i.includes(n.value)})}function La(e){return e.toLowerCase().replace(/-(\w)/g,(t,i)=>i.toUpperCase())}function Ma(e,t){return e==t}function et(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var Oa=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function $n(e){return Oa.has(e)}function Pa(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Ia(e,t,i){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:Fn(e,t,i)}function ka(e,t,i,n=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let r=e._x_inlineBindings[t];return r.extract=n,ln(()=>fe(e,r.expression))}return Fn(e,t,i)}function Fn(e,t,i){let n=e.getAttribute(t);return n===null?typeof i=="function"?i():i:n===""?!0:$n(t)?!![t,"true"].includes(n):n}function tt(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function li(e){return e.type==="radio"||e.localName==="ui-radio"}function Dn(e,t){let i;return function(){const n=this,r=arguments,s=function(){i=null,e.apply(n,r)};clearTimeout(i),i=setTimeout(s,t)}}function Rn(e,t){let i;return function(){let n=this,r=arguments;i||(e.apply(n,r),i=!0,setTimeout(()=>i=!1,t))}}function Nn({get:e,set:t},{get:i,set:n}){let r=!0,s,a=ce(()=>{let o=e(),l=i();if(r)n(ci(o)),r=!1;else{let c=JSON.stringify(o),u=JSON.stringify(l);c!==s?n(ci(o)):c!==u&&t(ci(l))}s=JSON.stringify(e()),JSON.stringify(i())});return()=>{ve(a)}}function ci(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function $a(e){(Array.isArray(e)?e:[e]).forEach(i=>i(ze))}var ge={},zn=!1;function Fa(e,t){if(zn||(ge=Se(ge),zn=!0),t===void 0)return ge[e];ge[e]=t,jt(ge[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&ge[e].init()}function Da(){return ge}var Hn={};function Ra(e,t){let i=typeof t!="function"?()=>t:t;return e instanceof Element?Bn(e,i()):(Hn[e]=i,()=>{})}
788function Na(e){return Object.entries(Hn).forEach(([t,i])=>{Object.defineProperty(e,t,{get(){return(...n)=>i(...n)}})}),e}function Bn(e,t,i){let n=[];for(;n.length;)n.pop()();let r=Object.entries(t).map(([a,o])=>({name:a,value:o})),s=dn(r);return r=r.map(a=>s.find(o=>o.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),Kt(e,r,i).map(a=>{n.push(a.runCleanups),a()}),()=>{for(;n.length;)n.pop()()}}var Vn={};function za(e,t){Vn[e]=t}function Ha(e,t){return Object.entries(Vn).forEach(([i,n])=>{Object.defineProperty(e,i,{get(){return(...r)=>n.bind(t)(...r)},enumerable:!1})}),e}var Ba={get reactive(){return Se},get release(){return ve},get effect(){return ce},get raw(){return Wi},get transaction(){return Ps},version:"3.15.12",flushAndStopDeferringMutations:Ds,dontAutoEvaluateFunctions:ln,disableEffectScheduling:Ls,startObservingMutations:Bt,stopObservingMutations:tn,setReactivityEngine:Ms,onAttributeRemoved:Zi,onAttributesAdded:Ji,closestDataStack:ue,skipDuringClone:ie,onlyDuringClone:_a,addRootSelector:En,addInitSelector:Tn,setErrorHandler:Vs,interceptClone:Ze,addScopeToNode:Ie,deferMutations:Fs,mapAttributes:Xt,evaluateLater:N,interceptInit:aa,initInterceptors:jt,injectMagics:ke,setEvaluator:js,setRawEvaluator:qs,mergeProxies:de,extractProp:ka,findClosest:X,onElRemoved:Nt,closestRoot:Qe,destroyTree:xe,interceptor:sn,transition:ai,setStyles:Je,mutateDom:F,directive:D,entangle:Nn,throttle:Rn,debounce:Dn,evaluate:fe,evaluateRaw:Xs,initTree:Q,nextTick:ti,prefixed:be,prefix:Js,plugin:$a,magic:q,store:Fa,start:ra,clone:Sa,cloneNode:wa,bound:Ia,$data:nn,watch:Ki,walk:he,data:za,bind:Ra},ze=Ba;function Va(e,t){const i=Object.create(null),n=e.split(",");for(let r=0;r<n.length;r++)i[n[r]]=!0;return r=>!!i[r]}var Ga=Object.freeze({}),ja=Object.prototype.hasOwnProperty,it=(e,t)=>ja.call(e,t),me=Array.isArray,He=e=>Gn(e)==="[object Map]",qa=e=>typeof e=="string",ui=e=>typeof e=="symbol",nt=e=>e!==null&&typeof e=="object",Wa=Object.prototype.toString,Gn=e=>Wa.call(e),jn=e=>Gn(e).slice(8,-1),di=e=>qa(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ua=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},Ka=Ua(e=>e.charAt(0).toUpperCase()+e.slice(1)),qn=(e,t)=>e!==t&&(e===e||t===t),fi=new WeakMap,Be=[],K,_e=Symbol("iterate"),pi=Symbol("Map key iterate");function Ya(e){return e&&e._isEffect===!0}function Xa(e,t=Ga){Ya(e)&&(e=e.raw);const i=Za(e,t);return t.lazy||i(),i}function Qa(e){e.active&&(Wn(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var Ja=0;function Za(e,t){const i=function(){if(!i.active)return e();if(!Be.includes(i)){Wn(i);try{return to(),Be.push(i),K=i,e()}finally{Be.pop(),Un(),K=Be[Be.length-1]}}};return i.id=Ja++,i.allowRecurse=!!t.allowRecurse,i._isEffect=!0,i.active=!0,i.raw=e,i.deps=[],i.options=t,i}function Wn(e){const{deps:t}=e;if(t.length){for(let i=0;i<t.length;i++)t[i].delete(e);t.length=0}}var Ee=!0,hi=[];function eo(){hi.push(Ee),Ee=!1}function to(){hi.push(Ee),Ee=!0}function Un(){const e=hi.pop();Ee=e===void 0?!0:e}function W(e,t,i){if(!Ee||K===void 0)return;let n=fi.get(e);n||fi.set(e,n=new Map);let r=n.get(i);r||n.set(i,r=new Set),r.has(K)||(r.add(K),K.deps.push(r),K.options.onTrack&&K.options.onTrack({effect:K,target:e,type:t,key:i}))}function ne(e,t,i,n,r,s){const a=fi.get(e);if(!a)return;const o=new Set,l=u=>{u&&u.forEach(d=>{(d!==K||d.allowRecurse)&&o.add(d)})};
788if(t==="clear")a.forEach(l);else if(i==="length"&&me(e))a.forEach((u,d)=>{(d==="length"||d>=n)&&l(u)});else switch(i!==void 0&&l(a.get(i)),t){case"add":me(e)?di(i)&&l(a.get("length")):(l(a.get(_e)),He(e)&&l(a.get(pi)));break;case"delete":me(e)||(l(a.get(_e)),He(e)&&l(a.get(pi)));break;case"set":He(e)&&l(a.get(_e));break}const c=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:e,key:i,type:t,newValue:n,oldValue:r,oldTarget:s}),u.options.scheduler?u.options.scheduler(u):u()};o.forEach(c)}var io=Va("__proto__,__v_isRef,__isVue"),Kn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(ui)),no=Xn(),ro=Xn(!0),Yn=so();function so(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const n=I(this);for(let s=0,a=this.length;s<a;s++)W(n,"get",s+"");const r=n[t](...i);return r===-1||r===!1?n[t](...i.map(I)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){eo();const n=I(this)[t].apply(this,i);return Un(),n}}),e}function Xn(e=!1,t=!1){return function(n,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_raw"&&s===(e?t?vo:rr:t?So:nr).get(n))return n;const a=me(n);if(!e&&a&&it(Yn,r))return Reflect.get(Yn,r,s);const o=Reflect.get(n,r,s);return(ui(r)?Kn.has(r):io(r))||(e||W(n,"get",r),t)?o:Si(o)?!a||!di(r)?o.value:o:nt(o)?e?sr(o):wi(o):o}}var ao=oo();function oo(e=!1){return function(i,n,r,s){let a=i[n];if(!e&&(r=I(r),a=I(a),!me(i)&&Si(a)&&!Si(r)))return a.value=r,!0;const o=me(i)&&di(n)?Number(n)<i.length:it(i,n),l=Reflect.set(i,n,r,s);return i===I(s)&&(o?qn(r,a)&&ne(i,"set",n,r,a):ne(i,"add",n,r)),l}}function lo(e,t){const i=it(e,t),n=e[t],r=Reflect.deleteProperty(e,t);return r&&i&&ne(e,"delete",t,void 0,n),r}function co(e,t){const i=Reflect.has(e,t);return(!ui(t)||!Kn.has(t))&&W(e,"has",t),i}function uo(e){return W(e,"iterate",me(e)?"length":_e),Reflect.ownKeys(e)}var fo={get:no,set:ao,deleteProperty:lo,has:co,ownKeys:uo},po={get:ro,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},gi=e=>nt(e)?wi(e):e,mi=e=>nt(e)?sr(e):e,_i=e=>e,rt=e=>Reflect.getPrototypeOf(e);function st(e,t,i=!1,n=!1){e=e.__v_raw;const r=I(e),s=I(t);t!==s&&!i&&W(r,"get",t),!i&&W(r,"get",s);const{has:a}=rt(r),o=n?_i:i?mi:gi;if(a.call(r,t))return o(e.get(t));if(a.call(r,s))return o(e.get(s));e!==r&&e.get(t)}function at(e,t=!1){const i=this.__v_raw,n=I(i),r=I(e);return e!==r&&!t&&W(n,"has",e),!t&&W(n,"has",r),e===r?i.has(e):i.has(e)||i.has(r)}function ot(e,t=!1){return e=e.__v_raw,!t&&W(I(e),"iterate",_e),Reflect.get(e,"size",e)}function Qn(e){e=I(e);const t=I(this);return rt(t).has.call(t,e)||(t.add(e),ne(t,"add",e,e)),this}function Jn(e,t){t=I(t);const i=I(this),{has:n,get:r}=rt(i);let s=n.call(i,e);s?ir(i,n,e):(e=I(e),s=n.call(i,e));const a=r.call(i,e);return i.set(e,t),s?qn(t,a)&&ne(i,"set",e,t,a):ne(i,"add",e,t),this}function Zn(e){const t=I(this),{has:i,get:n}=rt(t);let r=i.call(t,e);r?ir(t,i,e):(e=I(e),r=i.call(t,e));const s=n?n.call(t,e):void 0,a=t.delete(e);return r&&ne(t,"delete",e,void 0,s),a}function er(){const e=I(this),t=e.size!==0,i=He(e)?new Map(e):new Set(e),n=e.clear();return t&&ne(e,"clear",void 0,void 0,i),n}function lt(e,t){return function(n,r){const s=this,a=s.__v_raw,o=I(a),l=t?_i:e?mi:gi;return!e&&W(o,"iterate",_e),a.forEach((c,u)=>n.call(r,l(c),l(u),s))}}function ct(e,t,i){return function(...n){const r=this.__v_raw,s=I(r),a=He(s),o=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=r[e](...n),u=i?_i:t?mi:gi;return!t&&W(s,"iterate",l?pi:_e),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:o?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function re(e){return function(...t){{const i=t[0]?`on key "${t[0]}" `:"";console.warn(`${Ka(e)} operation ${i}failed: target is readonly.`,I(this))}return e==="delete"?!1:this}}function ho(){const e={get(s){return st(this,s)},get size(){return ot(this)},has:at,add:Qn,set:Jn,delete:Zn,clear:er,forEach:lt(!1,!1)},t={get(s){return st(this,s,!1,!0)},get size(){return ot(this)},has:at,add:Qn,set:Jn,delete:Zn,clear:er,forEach:lt(!1,!0)},i={get(s){return st(this,s,!0)},get size(){return ot(this,!0)},has(s){return at.call(this,s,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:lt(!0,!1)},n={get(s){return st(this,s,!0,!0)},get size(){return ot(this,!0)},has(s){return at.call(this,s,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:lt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>
788{e[s]=ct(s,!1,!1),i[s]=ct(s,!0,!1),t[s]=ct(s,!1,!0),n[s]=ct(s,!0,!0)}),[e,i,t,n]}var[go,mo]=ho();function tr(e,t){const i=e?mo:go;return(n,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(it(i,r)&&r in n?i:n,r,s)}var _o={get:tr(!1)},wo={get:tr(!0)};function ir(e,t,i){const n=I(i);if(n!==i&&t.call(e,n)){const r=jn(e);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var nr=new WeakMap,So=new WeakMap,rr=new WeakMap,vo=new WeakMap;function yo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bo(e){return e.__v_skip||!Object.isExtensible(e)?0:yo(jn(e))}function wi(e){return e&&e.__v_isReadonly?e:ar(e,!1,fo,_o,nr)}function sr(e){return ar(e,!0,po,wo,rr)}function ar(e,t,i,n,r){if(!nt(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const a=bo(e);if(a===0)return e;const o=new Proxy(e,a===2?n:i);return r.set(e,o),o}function I(e){return e&&I(e.__v_raw)||e}function Si(e){return!!(e&&e.__v_isRef===!0)}q("nextTick",()=>ti),q("dispatch",e=>Re.bind(Re,e)),q("watch",(e,{evaluateLater:t,cleanup:i})=>(n,r)=>{let s=t(n),o=Ki(()=>{let l;return s(c=>l=c),l},r);i(o)}),q("store",Da),q("data",e=>nn(e)),q("root",e=>Qe(e)),q("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=de(xo(e))),e._x_refs_proxy));function xo(e){let t=[];return X(e,i=>{i._x_refs&&t.push(i._x_refs)}),t}var vi={};function or(e){return vi[e]||(vi[e]=0),++vi[e]}function Eo(e,t){return X(e,i=>{if(i._x_ids&&i._x_ids[t])return!0})}function To(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=or(t))}q("id",(e,{cleanup:t})=>(i,n=null)=>{let r=`${i}${n?`-${n}`:""}`;return Ao(e,r,t,()=>{let s=Eo(e,i),a=s?s._x_ids[i]:or(i);return n?`${i}-${a}-${n}`:`${i}-${a}`})}),Ze((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Ao(e,t,i,n){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let r=n();return e._x_id[t]=r,i(()=>{delete e._x_id[t]}),r}q("el",e=>e),lr("Focus","focus","focus"),lr("Persist","persist","persist");function lr(e,t,i){q(t,n=>U(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${i}`,n))}D("modelable",(e,{expression:t},{effect:i,evaluateLater:n,cleanup:r})=>{let s=n(t),a=()=>{let u;return s(d=>u=d),u},o=n(`${t} = __placeholder`),l=u=>o(()=>{},{scope:{__placeholder:u}}),c=a();l(c),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,d=e._x_model.setWithModifiers,p=Nn({get(){return u()},set(h){d(h)}},{get(){return a()},set(h){l(h)}});r(p)})}),D("teleport",(e,{modifiers:t,expression:i},{cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&U("x-teleport can only be used on a <template> tag",e);let r=cr(i),s=e.content.cloneNode(!0).firstElementChild;e._x_teleport=s,s._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),s.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(o=>{s.addEventListener(o,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),Ie(s,{},e);let a=(o,l,c)=>{c.includes("prepend")?l.parentNode.insertBefore(o,l):c.includes("append")?l.parentNode.insertBefore(o,l.nextSibling):l.appendChild(o)};F(()=>{ie(()=>{a(s,r,t),Q(s)})()}),e._x_teleportPutBack=()=>{let o=cr(i);F(()=>{a(e._x_teleport,o,t)})},n(()=>F(()=>{s.remove(),xe(s)}))});var Co=document.createElement("div");function cr(e){let t=ie(()=>document.querySelector(e),()=>Co)();return t||U(`Cannot find x-teleport element for selector: "${e}"`),t}var ur=()=>{};ur.inline=(e,{modifiers:t},{cleanup:i})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,i(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})},D("ignore",ur),D("effect",ie((e,{expression:t},{effect:i})=>{i(N(e,t))}));function Te(e,t,i,n){let r=e,s=l=>n(l),a={},o=(l,c)=>u=>c(l,u);return i.includes("dot")&&(t=Lo(t)),i.includes("camel")&&(t=Mo(t)),i.includes("capture")&&(a.c
vendor: 8,742 bytes, line 788
788apture=!0),i.includes("window")&&(r=window),i.includes("document")&&(r=document),i.includes("passive")&&(a.passive=i[i.indexOf("passive")+1]!=="false"),s=dr(i,s),i.includes("prevent")&&(s=o(s,(l,c)=>{c.preventDefault(),l(c)})),i.includes("stop")&&(s=o(s,(l,c)=>{c.stopPropagation(),l(c)})),i.includes("once")&&(s=o(s,(l,c)=>{l(c),r.removeEventListener(t,s,a)})),(i.includes("away")||i.includes("outside"))&&(r=document,s=o(s,(l,c)=>{e.contains(c.target)||c.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(c))})),i.includes("self")&&(s=o(s,(l,c)=>{c.target===e&&l(c)})),t==="submit"&&(s=o(s,(l,c)=>{c.target._x_pendingModelUpdates&&c.target._x_pendingModelUpdates.forEach(u=>u()),l(c)})),(Po(t)||fr(t))&&(s=o(s,(l,c)=>{Io(c,i)||l(c)})),r.addEventListener(t,s,a),()=>{r.removeEventListener(t,s,a)}}function dr(e,t){if(e.includes("debounce")){let i=e[e.indexOf("debounce")+1]||"invalid-wait",n=ut(i.split("ms")[0])?Number(i.split("ms")[0]):250;t=Dn(t,n)}if(e.includes("throttle")){let i=e[e.indexOf("throttle")+1]||"invalid-wait",n=ut(i.split("ms")[0])?Number(i.split("ms")[0]):250;t=Rn(t,n)}return t}function Lo(e){return e.replace(/-/g,".")}function Mo(e){return e.toLowerCase().replace(/-(\w)/g,(t,i)=>i.toUpperCase())}function ut(e){return!Array.isArray(e)&&!isNaN(e)}function Oo(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Po(e){return["keydown","keyup"].includes(e)}function fr(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function Io(e,t){let i=t.filter(s=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(s));if(i.includes("debounce")){let s=i.indexOf("debounce");i.splice(s,ut((i[s+1]||"invalid-wait").split("ms")[0])?2:1)}if(i.includes("throttle")){let s=i.indexOf("throttle");i.splice(s,ut((i[s+1]||"invalid-wait").split("ms")[0])?2:1)}if(i.length===0||i.length===1&&pr(e.key).includes(i[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(s=>i.includes(s));return i=i.filter(s=>!r.includes(s)),!(r.length>0&&r.filter(a=>((a==="cmd"||a==="super")&&(a="meta"),e[`${a}Key`])).length===r.length&&(fr(e.type)||pr(e.key).includes(i[0])))}function pr(e){if(!e)return[];e=Oo(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(i=>{if(t[i]===e)return i}).filter(i=>i)}D("model",(e,{modifiers:t,expression:i},{effect:n,cleanup:r})=>{let s=e;t.includes("parent")&&(s=X(e,_=>_!==e));let a=N(s,i),o;typeof i=="string"?o=N(s,`${i} = __placeholder`):typeof i=="function"&&typeof i()=="string"?o=N(s,`${i()} = __placeholder`):o=()=>{};let l=()=>{let _;return a(y=>_=y),hr(_)?_.get():_},c=_=>{let y;a(S=>y=S),hr(y)?y.set(_):o(()=>{},{scope:{__placeholder:_}})};typeof i=="string"&&e.type==="radio"&&F(()=>{e.hasAttribute("name")||e.setAttribute("name",i)});let u=t.includes("change")||t.includes("lazy"),d=t.includes("blur"),p=t.includes("enter"),h=u||d||p,m;if(te)m=()=>{};else if(h){let _=[],y=S=>c(dt(e,t,S,l()));if(u&&_.push(Te(e,"change",t,y)),d&&(_.push(Te(e,"blur",t,y)),e.form)){let S=e.form,f=()=>y({target:e});S._x_pendingModelUpdates||(S._x_pendingModelUpdates=[]),S._x_pendingModelUpdates.push(f),r(()=>{S._x_pendingModelUpdates&&S._x_pendingModelUpdates.splice(S._x_pendingModelUpdates.indexOf(f),1)})}p&&_.push(Te(e,"keydown",t,S=>{S.key==="Enter"&&y(S)})),m=()=>_.forEach(S=>S())}else{let _=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)?"change":"input";m=Te(e,_,t,y=>{c(dt(e,t,y,l()))})}if(t.includes("fill")&&([void 0,null,""].includes(l())||tt(e)&&Array.isArray(l())||e.tagName.toLowerCase()==="select"&&e.multiple)&&c(dt(e,t,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=m,r(()=>e._x_removeModelListeners.default()),e.form){let _=Te(e.form,"reset",[],y=>{ti(()=>e._x_model&&e._x_model.set(dt(e,t,{target:e},l())))});r(()=>_())}e._x_model={get(){return l()},set(_){c(_)},setWithModifiers:dr(t,c)},e._x_forceModelUpdate=_=>{_===void 0&&typeof i=="string"&&i.match(/\./)&&(_=""),F(()=>{tt(e)?Array.isArray(_)?e.checked=_.some(y=>y==e.value):e.checked=!!_:li(e)?typeof _=="boolean"?e.checked=et(e.value)===_:e.checked=e.value==_:In(e,"value",_)})},n(()=>{let _=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(_)})});function dt(e,t,i,n){return F(()=>{if(i instanceof CustomEvent&&i.detail!==void 0)return i.detail!==null&&i.detail!==void 0?i.detail:i.target.value;if(tt(e))if(Array.isArray(n)){let r=null;return t.includes("number")?r=yi(i.target.value):t.includes("boolean")?r=et(i.target.value):r=i.target.value,i.target.checked?n.includes(r)?n:n.concat([r]):n.filter(s=>!ko(s,r))}else return i.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(i.target.selectedOptions).map(r=>{let s=r.value||r.text;return yi(s)}):t.includes("boolean")?Array.from(i.target.selectedOptions).map(r=>{let s=r.value||r.text;return et(s)}):Array.from(i.target.selectedOptions).map(r=>r.value||r.text);{let r;return li(e)?i.target.checked?r=i.target.value:r=n:r=i.target.value,t.includes("number")?yi(r):t.includes("boolean")?et(r):t.includes("trim")?r.trim():r}}})}function yi(e){let t=e?parseFloat(e):null;return $o(t)?t:e}function ko(e,t){return e==t}function $o(e){return!Array.isArray(e)&&!isNaN(e)}function hr(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}D("cloak",e=>queueMicrotask(()=>F(()=>e.removeAttribute(be("cloak"))))),Tn(()=>`[${be("init")}]`),D("init",ie((e,{expression:t},{evaluate:i})=>typeof t=="string"?!!t.trim()&&i(t,{},!1):i(t,{},!1))),D("text",(e,{expression:t},{effect:i,evaluateLater:n})=>{let r=n(t);i(()=>{r(s=>{F(()=>{e.textContent=s})})})}),D("html",(e,{expression:t},{effect:i,evaluateLater:n})=>{let r=n(t);i(()=>{r(s=>{F(()=>{e.innerHTML=s??"",e._x_ignoreSelf=!0,Q(e),delete e._x_ignoreSelf})})})}),Xt(hn(":",gn(be("bind:"))));var gr=(e,{value:t,modifiers:i,expression:n,original:r},{effect:s,cleanup:a})=>{if(!t){let l={};Na(l),N(e,n)(u=>{Bn(e,u,r)},{scope:l});return}if(t==="key")return Fo(e,n);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let o=N(e,n);s(()=>o(l=>{l===void 0&&typeof n=="string"&&n.match(/\./)&&(l=""),F(()=>In(e,t,l,i))})),a(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};gr.inline=(e,{value:t,modifiers:i,expression:n})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:n,extract:!1})},D("bind",gr);function Fo(e,t){e._x_keyExpression=t}En(()=>`[${be("data")}]`),D("data",(e,{expression:t},{cleanup:i})=>{if(Do(e))return;t=t===""?"{}":t;let n={};ke(n,e);let r={};Ha(r,n);let s=fe(e,t,{scope:r});(s===void 0||s===!0)&&(s={}),ke(s,e);let a=Se(s);jt(a);let o=Ie(e,a);a.init&&fe(e,a.init),i(()=>{a.destroy&&fe(e,a.destroy),o()})}),Ze((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Do(e){return te?oi?!0:e.hasAttribute("data-has-alpine-state"):!1}D("show",(e,{modifiers:t,expression:i},{effect:n})=>{let r=N(e,i);e._x_doHide||(e._x_doHide=()=>{F(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{F(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let s=()=>{e._x_doHide(),e._x_isShown=!1},a=()=>{e._x_doShow(),e._x_isShown=!0},o=()=>setTimeout(a),l=si(d=>d?a():s(),d=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,d,a,s):d?o():s()}),c,u=!0;n(()=>r(d=>{!u&&d===c||(t.includes("immediate")&&(d?o():s()),l(d),c=d,u=!1)}))}),D("for",(e,{expression:t},{effect:i,cleanup:n})=>{let r=zo(t),s=N(e,r.items),a=N(e,e._x_keyExpression||"index");e._x_lookup=new Map,i(()=>No(e,r,s,a)),n(()=>{e._x_lookup.forEach(o=>F(()=>{xe(o),o.remove()})),delete e._x_lookup})});function Ro(e){return t=>{Object.entries(t).forEach(([i,n])=>{e[i]=n})}}function No(e,t,i,n){i(r=>{Bo(r)&&(r=Array.from({length:r},(c,u)=>u+1)),r==null&&(r=[]),r instanceof Set&&(r=Array.from(r)),r instanceof Map&&(r=Array.from(r));let s=e._x_lookup,a=new Map;e._x_lookup=a;let o=Vo(r),l=Object.entries(r).map(([c,u])=>{o||(c=parseInt(c));let d=Ho(t,u,c,r),p;return n(h=>{typeof h=="object"&&U("x-for key cannot be an object, it must be a string or an integer",e),s.has(h)&&(a.set(h,s.get(h)),s.delete(h)),p=
788h},{scope:{index:c,...d}}),[p,d]});F(()=>{s.forEach(d=>{xe(d),d.remove()});let c=new Set,u=e;l.forEach(([d,p])=>{if(a.has(d)){let _=a.get(d);_._x_refreshXForScope(p),u.nextElementSibling!==_&&(u.nextElementSibling&&_.replaceWith(u.nextElementSibling),u.after(_)),u=_,_._x_currentIfEl&&(_.nextElementSibling!==_._x_currentIfEl&&u.after(_._x_currentIfEl),u=_._x_currentIfEl);return}e.content.children.length>1&&U("x-for templates require a single root element, additional elements will be ignored.",e);let h=document.importNode(e.content,!0).firstElementChild,m=Se(p);Ie(h,m,e),h._x_refreshXForScope=Ro(m),a.set(d,h),c.add(h),u.after(h),u=h}),ie(()=>c.forEach(d=>Q(d)))()})})}function zo(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,i=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=e.match(n);if(!r)return;let s={};s.items=r[2].trim();let a=r[1].replace(i,"").trim(),o=a.match(t);return o?(s.item=a.replace(t,"").trim(),s.index=o[1].trim(),o[2]&&(s.collection=o[2].trim())):s.item=a,s}function Ho(e,t,i,n){let r={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(a=>a.trim()).forEach((a,o)=>{r[a]=t[o]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(a=>a.trim()).forEach(a=>{r[a]=t[a]}):r[e.item]=t,e.index&&(r[e.index]=i),e.collection&&(r[e.collection]=n),r}function Bo(e){return typeof e!="object"&&!isNaN(e)}function Vo(e){return typeof e=="object"&&!Array.isArray(e)}function mr(){}mr.inline=(e,{expression:t},{cleanup:i})=>{let n=Qe(e);n&&(n._x_refs||(n._x_refs={}),n._x_refs[t]=e,i(()=>delete n._x_refs[t]))},D("ref",mr),D("if",(e,{expression:t},{effect:i,cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&U("x-if can only be used on a <template> tag",e);let r=N(e,t),s=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let o=e.content.cloneNode(!0).firstElementChild;return Ie(o,{},e),F(()=>{e.after(o),ie(()=>Q(o))()}),e._x_currentIfEl=o,e._x_undoIf=()=>{F(()=>{xe(o),o.remove()}),delete e._x_currentIfEl},o},a=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};i(()=>r(o=>{o?s():a()})),n(()=>e._x_undoIf&&e._x_undoIf())}),D("id",(e,{expression:t},{evaluate:i})=>{i(t).forEach(r=>To(e,r))}),Ze((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)}),Xt(hn("@",gn(be("on:")))),D("on",ie((e,{value:t,modifiers:i,expression:n},{cleanup:r})=>{let s=n?N(e,n):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let a=Te(e,t,i,o=>{s(()=>{},{scope:{$event:o},params:[o]})});r(()=>a())})),ft("Collapse","collapse","collapse"),ft("Intersect","intersect","intersect"),ft("Focus","trap","focus"),ft("Mask","mask","mask");function ft(e,t,i){D(t,n=>U(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${i}`,n))}ze.setEvaluator(Ws),ze.setRawEvaluator(Qs),ze.setReactivityEngine({reactive:wi,effect:Xa,release:Qa,raw:I});const Ve=["location","legalExperience","role","practice","language"],H="virtual",Ae=10,Go=3e3,_r=1024,wr=1e3,jo=wr,qo=12,Wo=1,bi=200,Uo=140,pt=["location","legalExperience","role","practice","language"],Ce={location:"sm_neutral_all_location",legalExperience:"sm_legal_experience",role:"sm_neutral_title",practice:"sm_neutral_specialties",language:"sm_neutral_language"},Ge={location:"OR",legalExperience:"OR",role:"AND",practice:"AND",language:"AND"},ht={name_asc:"ss_neutral_fname asc",name_desc:"ss_neutral_fname desc",lastname_asc:"ss_neutral_lname asc",lastname_desc:"ss_neutral_lname desc"},Sr=["name_asc","name_desc","lastname_asc","lastname_desc"],vr={name_asc:"Name (ascending)",name_desc:"Name (descending)",lastname_asc:"Last Name (ascending)",lastname_desc:"Last Name (descending)"},Ko=["id","its_nid","ss_url","ss_neutral_fname","ss_neutral_lname","ss_neutral_suffix","ss_neutral_fullname","ss_neutral_fullname_prefix_sufix","ss_neutral_image","ss_neutral_image_thumb","ss_neutral_office_location_display","ss_neutral_titles","sm_neutral_title_label","sm_neutral_all_location_home_office","sm_neutral_all_locations_label","sm_neutral_all_location_home_office_ordered"],Yo={"century-city-california-southern":"Southern California, CA","inland-empire-california":"Southern California, CA","los-angeles-california":"Southern California, CA","orange-county-california-southern":"Southern California, CA","san-diego-california":"Southern California, CA","sacramento-california-northern":"Sacramento, CA","san-francisco-california":"San Francisco Bay Area, CA","silicon-valley-california":"San Francisco Bay Area, CA","walnut-creek-california":"San Francisco Bay Area, CA","santa-rosa-california":"Santa Rosa, CA"},Xo=["sm_neutral_all_location","sm_neutral_all_location_available_to_travel"];function Qo(e={}){const t=[...Ko],i=Array.isArray(e==null?void 0:e.location)?e.location.filter(
788Boolean):[],n=i.length>0,r=i.includes(H);return n&&t.push(...Xo),r&&t.push("sm_available"),t}function J(){var t,i,n,r;const e=document.querySelector("#neutral-search-fixtures");if(e)try{const s=JSON.parse(e.textContent||"{}");if(s!=null&&s.searchConfig)return{solrUrl:String(s.searchConfig.solrUrl||""),solrToken:String(s.searchConfig.solrToken||"")}}catch{}return{solrUrl:String(((i=(t=window==null?void 0:window.drupalSettings)==null?void 0:t.jamsNeutrals)==null?void 0:i.solrUrl)||""),solrToken:String(((r=(n=window==null?void 0:window.drupalSettings)==null?void 0:n.jamsNeutrals)==null?void 0:r.solrToken)||"")}}function Jo(){var t,i;const e=(i=(t=window==null?void 0:window.drupalSettings)==null?void 0:t.jamsNeutralSearch)==null?void 0:i.legalExperienceGroups;return Array.isArray(e)?e:[]}function gt(e){e.set("facet","false")}async function je(e,t){let i=null;try{i=await fetch(e,{headers:t?{Authorization:`Token ${t}`}:void 0})}catch{i=null}if(i&&(i.status===401||i.status===403)&&t)try{i=await fetch(e)}catch{i=null}if(!i||!i.ok)return null;try{return await i.json()}catch{return null}}const yr="new-neutral-search:facet-metadata:v6",Zo=8*60*60*1e3;let mt=null,_t=0,wt=null;function br(e){return!!e&&Date.now()-e<=Zo}function el(){var e;if(mt&&br(_t))return mt;if(typeof window>"u")return null;try{const t=(e=window.sessionStorage)==null?void 0:e.getItem(yr);if(!t)return null;const i=JSON.parse(t),n=Number((i==null?void 0:i.fetchedAt)||0),r=i==null?void 0:i.metadata;return!n||!r||!br(n)?null:(mt=r,_t=n,r)}catch{return null}}function tl(e){var t;if(mt=e,_t=Date.now(),!(typeof window>"u"))try{(t=window.sessionStorage)==null||t.setItem(yr,JSON.stringify({fetchedAt:_t,metadata:e}))}catch{}}function il(e){const t=el();return t?Promise.resolve(t):(wt||(wt=Promise.resolve().then(e).then(i=>(tl(i),i)).catch(i=>{throw wt=null,i})),wt)}function nl(e){return String(e||"").replace(/(["\\])/g,"\\$1")}const xr=/[()\[\]{}$+:%"'<>®§©™!^*?~\\|,;=\u2018\u2019\u201c\u201d\u201e\u201a\u00ab\u00bb]/g,rl=/[&/-]/;function Er(e){return/[\p{L}\p{N}]/u.test(e)}function sl(e){return String(e||"").trim().replace(/^["']+|["']+$/g,"")}function xi(e){const t=String(e||"").replace(xr," ").replace(/\s+/g," ").trim().toLowerCase();return t?Array.from(new Set(t.split(/\s+/).map(i=>sl(i)).filter(i=>i&&Er(i)))):[]}function Ei(e){return String(e||"").trim().length>0&&xi(e).length===0}function Tr(e,t=3){const i=String(e||"").replace(xr," ").replace(/\s+/g," ").trim();if(!i)return"";const n=[],r=[];i.split(" ").forEach(a=>{Er(a)&&(rl.test(a)?r.push(a):n.push(a))});const s=[];return n.length&&s.push(`"${n.join(" ")}"~${t}`),r.forEach(a=>s.push(`"${a}"`)),s.join(" AND ")}function Ti(e){return xi(e).sort((t,i)=>i.length-t.length)}function al(e){const t=xi(e);return t.length?t.map(i=>{const n=nl(i);return`(tm_X3b_en_content:(*${n}*) OR ss_neutral_fullname:(*${n}*) OR ss_neutral_fname:(*${n}*) OR ss_neutral_lname:(*${n}*))`}).join(" AND "):""}function ol(e){if(!e)return"";const t=e.match(/(?:tm_X3b_en_content|content):\("([^"]+)"\)/);if(t)return t[1].replace(/\+/g," ");const i=e.match(/(?:tm_X3b_en_content|content):\(\*([^)"]+?)\*\)/);return i?i[1].replace(/\+/g," "):e.includes(":")?"":e.replace(/\+/g," ")}function St(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ar(e){return String(e||"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const se="",ae="";function Ai(e){return String(e||"").replace(/<[^>]+>/g," ")}function ll(e){return String(e||"").replace(/<mark\b[^>]*>/gi,se).replace(/<\/mark>/gi,ae).replace(/&nbsp;/gi," ").replace(/<[^>]+>/g," ").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/(\d)([A-Za-z])/g,"$1 $2").replace(/([.!?])([A-Za-z])/g,"$1 $2").replace(/([a-z])(\d{4})/g,"$1 $2").replace(/\s+/g," ").replaceAll(se,"<mark>").replaceAll(ae,"</mark>").trim()}function cl(e,t){let i=Math.max(0,t);for(;i>0;){const n=e[i-1];if(/\s|[.,;:!?()[\]{}-]/.test(n))break;i--}for(;i<e.length&&/\s/.test(e[i]);)i++;return i}function ul(e,t,i,{prefix:n="",suffix:r=""}={}){let s=String(e||"").replace(/<mark\b[^>]*>/gi,se).replace(/<\/mark>/gi,ae);s=s.replace(/<[^>]+>/g," ");let a=0,o="",l=!1;for(let c=0;c<s.length;c++){const u=s[c];if(u===se){if(a>=i)break;a>=t&&(l||(o+=n,l=!0),o+=se);continue}if(u===ae){l&&(o+=ae);continue}a>=t&&a<i&&(l||(o+=n,l=!0),o+=u),a++}return l&&r&&(o+=r),o.trim().replaceAll(se,"<mark>").replaceAll(ae,"</mark>")}function dl(e,{maxLength:t=bi,contextBefore:i=Uo}={}){const n=ll(e);
788if(!n.trim())return"";const r=n.match(/<mark\b[^>]*>[\s\S]*?<\/mark>/i);if(!r){const u=Ai(n).replace(/\s+/g," ").trim();return u.length<=t?u:`${u.slice(0,t).trim()}…`}const s=n.indexOf(r[0]),a=Ai(n).replace(/\s+/g," ").trim(),o=Ai(n.slice(0,s)).replace(/\s+/g," ").trim().length,l=cl(a,o-i),c=Math.min(a.length,l+t);return ul(n,l,c,{prefix:l>0?"…":"",suffix:c<a.length?"…":""})}function Cr(e){const t=String(e||"").trim();return t?dl(t).replace(/^(\s*---\s*)+/g,"").trim():""}function fl(e){const t=Cr(e);if(!t)return"";const i=t.replace(/<mark\b[^>]*>/gi,se).replace(/<\/mark>/gi,ae).replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim();return String(i||"").trim().replaceAll(se,'<mark class="new-neutral-highlight">').replaceAll(ae,"</mark>")}function vt(e,t){const i=String(e||"");if(!i)return"";if(!t||t.length===0)return St(i);const n=new RegExp(`(${t.map(a=>Ar(a)).join("|")})`,"gi"),r=new Set(t.map(a=>a.toLowerCase()));return i.split(n).map(a=>{if(!a)return"";const o=St(a);return r.has(a.toLowerCase())?`<mark class="new-neutral-highlight">${o}</mark>`:o}).join("")}function Lr(e,t){const i=String(e||"");if(!i)return"";if(!t||t.length===0)return St(i);const n=new RegExp(`(${t.map(s=>Ar(s)).join("|")})`,"gi"),r=new Set(t.map(s=>s.toLowerCase()));return i.split(n).map(s=>{if(!s)return"";const a=St(s);return r.has(s.toLowerCase())?`<strong>${a}</strong>`:a}).join("")}function Mr(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Ci(e,t){e===void 0&&(e={}),t===void 0&&(t={});const i=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Mr(t[n])&&Mr(e[n])&&Object.keys(t[n]).length>0&&Ci(e[n],t[n])})}const Or={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function we(){const e=typeof document<"u"?document:{};return Ci(e,Or),e}const pl={document:Or,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function z(){const e=typeof window<"u"?window:{};return Ci(e,pl),e}function hl(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function gl(e){const t=e;Object.keys(t).forEach(i=>{try{t[i]=null}catch{}try{delete t[i]}catch{}})}function Pr(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function yt(){return Date.now()}function ml(e){const t=z();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}function _l(e,t){t===void 0&&(t="x");const i=z();let n,r,s;const a=ml(e);return i.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new i.WebKitCSSMatrix(r==="none"?"":r)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),t==="x"&&(i.WebKitCSSMatrix?r=s.m41:n.length===16?r=parseFloat(n[12]):r=parseFloat(n[4])),t==="y"&&(i.WebKitCSSMatrix?r=s.m42:n.length===16?r=parseFloat(n[13]):r=parseFloat(n[5])),r||0}function bt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function wl(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function V(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!wl(n)){const r=Object.keys(Object(n)).filter(s=>t.indexOf(s)<0);for(let s=0,a=r.length;s<a;s+=1){const o=r[s],l=Object.getOwnPropertyDescriptor(n,o);l!==void 0&&l.enumerable&&(bt(e[o])&&bt(n[o])?n[o].__swiper__?e[o]=n[o]:V(e[o],n[o]):!bt(e[o])&&bt(n[o])?(e[o]={},n[o].__swiper__?e[o]=n[o]:V(e[o],n[o])):e[o]=n[o])}}}return e}function xt(e,t,i){e.style.setProperty(t,i)}function Ir(e){let{swiper:t,targetPosition:i,side:n}=e;const r=z(),s=-t.translate;let a=null,o;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const c=i>s?"next":"prev",u=(p,h)=>c==="next"&&p>=h||c==="prev"&&p<=h,d=()=>{o=new Date().getTime(),a===null&&(a=o);const p=Math.max(Math.min((o-a)/l,1),0),h=.5-Math.cos(p*Math.PI)/2;let m=s+h*(i-s);if(u(m,i)&&(m=i),t.wrapperEl.scrollTo({[n]:m}),u(m,i)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:m})}),r.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=r.requestAnimationFrame(d)};d()}function Y(e,t){t===void 0&&(t="");const i=z(),n=[...e.children];return i.HTMLSlotElement&&e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(r=>r.matches(t)):n}function Sl(e,t){const i=[t];for(;i.length>0;){const n=i.shift();if(e===n)return!0;
788i.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function vl(e,t){const i=z();let n=t.contains(e);return!n&&i.HTMLSlotElement&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=Sl(e,t))),n}function Et(e){try{console.warn(e);return}catch{}}function Tt(e,t){t===void 0&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:hl(t)),i}function yl(e,t){const i=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&i.push(n):i.push(n),e=n}return i}function bl(e,t){const i=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&i.push(n):i.push(n),e=n}return i}function oe(e,t){return z().getComputedStyle(e,null).getPropertyValue(t)}function At(e){let t=e,i;if(t){for(i=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(i+=1);return i}}function kr(e,t){const i=[];let n=e.parentElement;for(;n;)t?n.matches(t)&&i.push(n):i.push(n),n=n.parentElement;return i}function Li(e,t,i){const n=z();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Z(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function $r(e,t){t===void 0&&(t=""),typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:i=>i}).createHTML(t):e.innerHTML=t}let Mi;function xl(){const e=z(),t=we();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Fr(){return Mi||(Mi=xl()),Mi}let Oi;function El(e){let{userAgent:t}=e===void 0?{}:e;const i=Fr(),n=z(),r=n.navigator.platform,s=t||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,l=n.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let u=s.match(/(iPad).*OS\s([\d_]+)/);const d=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=r==="Win32";let m=r==="MacIntel";const _=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&m&&i.touch&&_.indexOf(`${o}x${l}`)>=0&&(u=s.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),c&&!h&&(a.os="android",a.android=!0),(u||p||d)&&(a.os="ios",a.ios=!0),a}function Dr(e){return e===void 0&&(e={}),Oi||(Oi=El(e)),Oi}let Pi;function Tl(){const e=z(),t=Dr();let i=!1;function n(){const o=e.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(n()){const o=String(e.navigator.userAgent);if(o.includes("Version/")){const[l,c]=o.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));i=l<16||l===16&&c<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=n(),a=s||r&&t.ios;return{isSafari:i||s,needPerspectiveFix:i,need3dFix:a,isWebView:r}}function Rr(){return Pi||(Pi=Tl()),Pi}function Al(e){let{swiper:t,on:i,emit:n}=e;const r=z();let s=null,a=null;const o=()=>{!t||t.destroyed||!t.initialized||(n("beforeResize"),n("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(d=>{a=r.requestAnimationFrame(()=>{const{width:p,height:h}=t;let m=p,_=h;d.forEach(y=>{let{contentBoxSize:S,contentRect:f,target:g}=y;g&&g!==t.el||(m=f?f.width:(S[0]||S).inlineSize,_=f?f.height:(S[0]||S).blockSize)}),(m!==p||_!==h)&&o()})}),s.observe(t.el))},c=()=>{a&&r.cancelAnimationFrame(a),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},u=()=>{!t||t.destroyed||!t.initialized||n("orientationchange")};i("init",()=>{if(t.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",u)}),i("destroy",()=>{c(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",u)})}function Cl(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const s=[],a=z(),o=function(u,d){d===void 0&&(d={});const p=a.MutationObserver||a.WebkitMutationObserver,h=new p(m=>{if(t.__preventObserver__)return;if(m.length===1){r("observerUpdate",m[0]);return}const _=function(){r("observerUpdate",m[0])};a.requestAnimationFrame?a.requestAnimationFrame(_):a.setTimeout(_,0)});h.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:t.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),s.push(h)},l=()=>{if(t.params.observer){if(t.params.observeParents){const u=kr(t.hostEl);for(let d=0;d<u.length;d+=1)o(u[d])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}},c=()=>
788{s.forEach(u=>{u.disconnect()}),s.splice(0,s.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",c)}var Ll={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const r=i?"unshift":"push";return e.split(" ").forEach(s=>{n.eventsListeners[s]||(n.eventsListeners[s]=[]),n.eventsListeners[s][r](t)}),n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;function r(){n.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];t.apply(n,a)}return r.__emitterProxy=t,n.on(e,r,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const n=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[n](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||e.split(" ").forEach(n=>{typeof t>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((r,s)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&i.eventsListeners[n].splice(s,1)})}),i},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,i,n;for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];return typeof s[0]=="string"||Array.isArray(s[0])?(t=s[0],i=s.slice(1,s.length),n=e):(t=s[0].events,i=s[0].data,n=s[0].context||e),i.unshift(n),(Array.isArray(t)?t:t.split(" ")).forEach(l=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(c=>{c.apply(n,[l,...i])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(c=>{c.apply(n,i)})}),e}};function Ml(){const e=this;let t,i;const n=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=n.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?i=e.params.height:i=n.clientHeight,!(t===0&&e.isHorizontal()||i===0&&e.isVertical())&&(t=t-parseInt(oe(n,"padding-left")||0,10)-parseInt(oe(n,"padding-right")||0,10),i=i-parseInt(oe(n,"padding-top")||0,10)-parseInt(oe(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))}function Ol(){const e=this;function t(b,x){return parseFloat(b.getPropertyValue(e.getDirectionLabel(x))||0)}const i=e.params,{wrapperEl:n,slidesEl:r,size:s,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=Y(r,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:u.length;let p=[];const h=[],m=[];let _=i.slidesOffsetBefore;typeof _=="function"&&(_=i.slidesOffsetBefore.call(e));let y=i.slidesOffsetAfter;typeof y=="function"&&(y=i.slidesOffsetAfter.call(e));const S=e.snapGrid.length,f=e.slidesGrid.length;let g=i.spaceBetween,w=-_,v=0,E=0;if(typeof s>"u")return;typeof g=="string"&&g.indexOf("%")>=0?g=parseFloat(g.replace("%",""))/100*s:typeof g=="string"&&(g=parseFloat(g)),e.virtualSize=-g,u.forEach(b=>{a?b.style.marginLeft="":b.style.marginRight="",b.style.marginBottom="",b.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(xt(n,"--swiper-centered-offset-before",""),xt(n,"--swiper-centered-offset-after",""));const C=i.grid&&i.grid.rows>1&&e.grid;C?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let L;const O=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(b=>typeof i.breakpoints[b].slidesPerView<"u").length>0;for(let b=0;b<d;b+=1){L=0;let x;if(u[b]&&(x=u[b]),C&&e.grid.updateSlide(b,x,u),!(u[b]&&oe(x,"display")==="none")){if(i.slidesPerView==="auto"){O&&(u[b].style[e.getDirectionLabel("width")]="");const M=getComputedStyle(x),P=x.style.transform,k=x.style.webkitTransform;if(P&&(x.style.transform="none"),k&&(x.style.webkitTransform="none"),i.roundLengths)L=e.isHorizontal()?Li(x,"width"):Li(x,"height");else{const $=t(M,"width"),A=t(M,"padding-left"),R=t(M,"padding-right"),B=t(M,"margin-left"),ee=t
788(M,"margin-right"),ys=M.getPropertyValue("box-sizing");if(ys&&ys==="border-box")L=$+B+ee;else{const{clientWidth:_d,offsetWidth:wd}=x;L=$+A+R+B+ee+(wd-_d)}}P&&(x.style.transform=P),k&&(x.style.webkitTransform=k),i.roundLengths&&(L=Math.floor(L))}else L=(s-(i.slidesPerView-1)*g)/i.slidesPerView,i.roundLengths&&(L=Math.floor(L)),u[b]&&(u[b].style[e.getDirectionLabel("width")]=`${L}px`);u[b]&&(u[b].swiperSlideSize=L),m.push(L),i.centeredSlides?(w=w+L/2+v/2+g,v===0&&b!==0&&(w=w-s/2-g),b===0&&(w=w-s/2-g),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),E%i.slidesPerGroup===0&&p.push(w),h.push(w)):(i.roundLengths&&(w=Math.floor(w)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&p.push(w),h.push(w),w=w+L+g),e.virtualSize+=L+g,v=L,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+y,a&&o&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${e.virtualSize+g}px`),i.setWrapperSize&&(n.style[e.getDirectionLabel("width")]=`${e.virtualSize+g}px`),C&&e.grid.updateWrapperSize(L,p),!i.centeredSlides){const b=[];for(let x=0;x<p.length;x+=1){let M=p[x];i.roundLengths&&(M=Math.floor(M)),p[x]<=e.virtualSize-s&&b.push(M)}p=b,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(l&&i.loop){const b=m[0]+g;if(i.slidesPerGroup>1){const x=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),M=b*i.slidesPerGroup;for(let P=0;P<x;P+=1)p.push(p[p.length-1]+M)}for(let x=0;x<e.virtual.slidesBefore+e.virtual.slidesAfter;x+=1)i.slidesPerGroup===1&&p.push(p[p.length-1]+b),h.push(h[h.length-1]+b),e.virtualSize+=b}if(p.length===0&&(p=[0]),g!==0){const b=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");u.filter((x,M)=>!i.cssMode||i.loop?!0:M!==u.length-1).forEach(x=>{x.style[b]=`${g}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let b=0;m.forEach(M=>{b+=M+(g||0)}),b-=g;const x=b>s?b-s:0;p=p.map(M=>M<=0?-_:M>x?x+y:M)}if(i.centerInsufficientSlides){let b=0;m.forEach(M=>{b+=M+(g||0)}),b-=g;const x=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(b+x<s){const M=(s-b-x)/2;p.forEach((P,k)=>{p[k]=P-M}),h.forEach((P,k)=>{h[k]=P+M})}}if(Object.assign(e,{slides:u,snapGrid:p,slidesGrid:h,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){xt(n,"--swiper-centered-offset-before",`${-p[0]}px`),xt(n,"--swiper-centered-offset-after",`${e.size/2-m[m.length-1]/2}px`);const b=-e.snapGrid[0],x=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+b),e.slidesGrid=e.slidesGrid.map(M=>M+x)}if(d!==c&&e.emit("slidesLengthChange"),p.length!==S&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==f&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const b=`${i.containerModifierClass}backface-hidden`,x=e.el.classList.contains(b);d<=i.maxBackfaceHiddenSlides?x||e.el.classList.add(b):x&&e.el.classList.remove(b)}}function Pl(e){const t=this,i=[],n=t.virtual&&t.params.virtual.enabled;let r=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=o=>n?t.slides[t.getSlideIndexByData(o)]:t.slides[o];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(o=>{i.push(o)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const o=t.activeIndex+s;if(o>t.slides.length&&!n)break;i.push(a(o))}else i.push(a(t.activeIndex));for(s=0;s<i.length;s+=1)if(typeof i[s]<"u"){const o=i[s].offsetHeight;r=o>r?o:r}(r||r===0)&&(t.wrapperEl.style.height=`${r}px`)}function Il(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-i-e.cssOverflowAdjustment()}const Nr=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};function kl(e){e===void 0&&(e=this&&this.translate||0);const t=this,i=t.params,{slides:n,rtlTranslate:r,snapGrid:s}=t;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;r&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=i.spaceBetween;
788typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l<n.length;l+=1){const c=n[l];let u=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(u-=n[0].swiperSlideOffset);const d=(a+(i.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+o),p=(a-s[0]+(i.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+o),h=-(a-u),m=h+t.slidesSizesGrid[l],_=h>=0&&h<=t.size-t.slidesSizesGrid[l],y=h>=0&&h<t.size-1||m>1&&m<=t.size||h<=0&&m>=t.size;y&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l)),Nr(c,y,i.slideVisibleClass),Nr(c,_,i.slideFullyVisibleClass),c.progress=r?-d:d,c.originalProgress=r?-p:p}}function $l(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const i=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:s,isEnd:a,progressLoop:o}=t;const l=s,c=a;if(n===0)r=0,s=!0,a=!0;else{r=(e-t.minTranslate())/n;const u=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;s=u||r<=0,a=d||r>=1,u&&(r=0),d&&(r=1)}if(i.loop){const u=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[u],h=t.slidesGrid[d],m=t.slidesGrid[t.slidesGrid.length-1],_=Math.abs(e);_>=p?o=(_-p)/m:o=(_+m-h)/m,o>1&&(o-=1)}Object.assign(t,{progress:r,progressLoop:o,isBeginning:s,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!a)&&t.emit("fromEdge"),t.emit("progress",r)}const Ii=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};function Fl(){const e=this,{slides:t,params:i,slidesEl:n,activeIndex:r}=e,s=e.virtual&&i.virtual.enabled,a=e.grid&&i.grid&&i.grid.rows>1,o=d=>Y(n,`.${i.slideClass}${d}, swiper-slide${d}`)[0];let l,c,u;if(s)if(i.loop){let d=r-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${d}"]`)}else l=o(`[data-swiper-slide-index="${r}"]`);else a?(l=t.find(d=>d.column===r),u=t.find(d=>d.column===r+1),c=t.find(d=>d.column===r-1)):l=t[r];l&&(a||(u=bl(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u&&(u=t[0]),c=yl(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=t[t.length-1]))),t.forEach(d=>{Ii(d,d===l,i.slideActiveClass),Ii(d,d===u,i.slideNextClass),Ii(d,d===c,i.slidePrevClass)}),e.emitSlidesClasses()}const Ct=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,n=t.closest(i());if(n){let r=n.querySelector(`.${e.params.lazyPreloaderClass}`);!r&&e.isElement&&(n.shadowRoot?r=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(r=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},ki=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},$i=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const n=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const a=r,o=[a-t];o.push(...Array.from({length:t}).map((l,c)=>a+n+c)),e.slides.forEach((l,c)=>{o.includes(l.column)&&ki(e,c)});return}const s=r+n-1;if(e.params.rewind||e.params.loop)for(let a=r-t;a<=s+t;a+=1){const o=(a%i+i)%i;(o<r||o>s)&&ki(e,o)}else for(let a=Math.max(r-t,0);a<=Math.min(s+t,i-1);a+=1)a!==r&&(a>s||a<r)&&ki(e,a)};function Dl(e){const{slidesGrid:t,params:i}=e,n=e.rtlTranslate?e.translate:-e.translate;let r;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?n>=t[s]&&n<t[s+1]-(t[s+1]-t[s])/2?r=s:n>=t[s]&&n<t[s+1]&&(r=s+1):n>=t[s]&&(r=s);return i.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function Rl(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:r,activeIndex:s,realIndex:a,snapIndex:o}=t;let l=e,c;const u=h=>{let m=h-t.virtual.slidesBefore;return m<0&&(m=t.virtual.slides.length+m),m>=t.virtual.slides.length&&(m-=t.virtual.slides.length),m};if(typeof l>"u"&&(l=Dl(t)),n.indexOf(i)>=0)c=n.indexOf(i);else{const h=Math.min(r.slidesPerGroupSkip,l);c=h+Math.floor((l-h)/r.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),l===s&&!t.params.loop){c!==o&&(t.snapIndex=c,t.emit("snapIndexChange"));return}if(l===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=u(l);return}const d=t.grid&&r.grid&&r.grid.rows>1;let p;if(t.virtual&&r.virtual.enabled&&r.loop)p=u(l);else if(d){const h=t.slides.find(_=>_.column===l);let m=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(t.slides.indexOf(h),0)),p=Math.floor(m/r.grid.rows)}else if(t.slides[l]){const h=t.slides[l].getAttribute("data-swiper-slide-index");h?p=parseInt(h,10):p=l}else p=l;Object.assign(t,{previousSnapIndex:o,snapIndex:c,previousRealIndex:a,realIndex:p,previousIndex:s,activeIndex:l}),t.initialized&&$i(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==p&&t.emit("realIndexChange"),t.emit("slideChange"))}function Nl(e,t){const i=this,n=i.params;let r=e.closest(`.${n.slideClass}, swiper-slide`);!r&&i.isElement&&t&&t.length>
vendor: 7,700 bytes, line 788
7881&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(o=>{!r&&o.matches&&o.matches(`.${n.slideClass}, swiper-slide`)&&(r=o)});let s=!1,a;if(r){for(let o=0;o<i.slides.length;o+=1)if(i.slides[o]===r){s=!0,a=o;break}}if(r&&s)i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var zl={updateSize:Ml,updateSlides:Ol,updateAutoHeight:Pl,updateSlidesOffset:Il,updateSlidesProgress:kl,updateProgress:$l,updateSlidesClasses:Fl,updateActiveIndex:Rl,updateClickedSlide:Nl};function Hl(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:i,rtlTranslate:n,translate:r,wrapperEl:s}=t;if(i.virtualTranslate)return n?-r:r;if(i.cssMode)return r;let a=_l(s,e);return a+=t.cssOverflowAdjustment(),n&&(a=-a),a||0}function Bl(e,t){const i=this,{rtlTranslate:n,params:r,wrapperEl:s,progress:a}=i;let o=0,l=0;const c=0;i.isHorizontal()?o=n?-e:e:l=e,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:l,r.cssMode?s[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-o:-l:r.virtualTranslate||(i.isHorizontal()?o-=i.cssOverflowAdjustment():l-=i.cssOverflowAdjustment(),s.style.transform=`translate3d(${o}px, ${l}px, ${c}px)`);let u;const d=i.maxTranslate()-i.minTranslate();d===0?u=0:u=(e-i.minTranslate())/d,u!==a&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function Vl(){return-this.snapGrid[0]}function Gl(){return-this.snapGrid[this.snapGrid.length-1]}function jl(e,t,i,n,r){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const s=this,{params:a,wrapperEl:o}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let u;if(n&&e>l?u=l:n&&e<c?u=c:u=e,s.updateProgress(u),a.cssMode){const d=s.isHorizontal();if(t===0)o[d?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return Ir({swiper:s,targetPosition:-u,side:d?"left":"top"}),!0;o.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(u),i&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(u),i&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(p){!s||s.destroyed||p.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,i&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var ql={getTranslate:Hl,setTranslate:Bl,minTranslate:Vl,maxTranslate:Gl,translateTo:jl};function Wl(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=e===0?"0ms":""),i.emit("setTransition",e,t)}function zr(e){let{swiper:t,runCallbacks:i,direction:n,step:r}=e;const{activeIndex:s,previousIndex:a}=t;let o=n;o||(s>a?o="next":s<a?o="prev":o="reset"),t.emit(`transition${r}`),i&&o==="reset"?t.emit(`slideResetTransition${r}`):i&&s!==a&&(t.emit(`slideChangeTransition${r}`),o==="next"?t.emit(`slideNextTransition${r}`):t.emit(`slidePrevTransition${r}`))}function Ul(e,t){e===void 0&&(e=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),zr({swiper:i,runCallbacks:e,direction:t,step:"Start"}))}function Kl(e,t){e===void 0&&(e=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),zr({swiper:i,runCallbacks:e,direction:t,step:"End"}))}var Yl={setTransition:Wl,transitionStart:Ul,transitionEnd:Kl};function Xl(e,t,i,n,r){e===void 0&&(e=0),i===void 0&&(i=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:h,enabled:m}=s;if(!m&&!n&&!r||s.destroyed||s.animating&&o.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=s.params.speed);const _=Math.min(s.params.slidesPerGroupSkip,a);let y=_+Math.floor((a-_)/s.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const S=-l[y];if(o.normalizeSlideIndex)for(let C=0;C<c.length;C+=1){const L=-Math.floor(S*100),O=Math.floor(c[C]*100),b=Math.floor(c[C+1]*100);typeof c[C+1]<"u"?L>=O&&L<b-(b-O)/2?a=C:L>=O&&L<b&&(a=C+1):L>=O&&(a=C)}if(s.initialized&&a!==d&&(!s.allowSlideNext&&(p?S>s.translate&&S>s.minTranslate():S<s.translate&&S<s.minTranslate())||!s.allowSlidePrev&&S>s.translate&&S>s.maxTranslate()&&(d||0)!==a))return!1;a!==(u||0)&&i&&s.emit("beforeSlideChangeStart"),s.updateProgress(S);let f;a>d?f="next":a<d?f="prev":f="reset";const g=s.virtual&&s.params.virtual.enabled;if(!(g&&r)&&(p&&-S===s.translate||!p&&S===s.translate))return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),o.effect!=="slide"&&s.setTranslate(S),f!=="reset"&&(s.transitionStart(i,f),s.transitionEnd(i,f)),!1;if(o.cssMode){const C=s.isHorizontal(),L=p?S:-S;if(t===0)g&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),g&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[C?"scrollLeft":"scrollTop"]=L})):h[C?"scrollLeft":"scrollTop"]=L,g&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return Ir({swiper:s,targetPosition:L,side:C?"left":"top"}),!0;h.scrollTo({[C?"left":"top"]:L,behavior:"smooth"})}return!0}const E=Rr().isSafari;return g&&!r&&E&&s.isElement&&s.virtual.update(!1,!1,a),s.setTransition(t),s.setTranslate(S),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,n),s.transitionStart(i,f),t===0?s.transitionEnd(i,f):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(L){!s||s.destroyed||L.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,f))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Ql(e,t,i,n){e===void 0&&(e=0),i===void 0&&(i=!0),typeof e=="string"&&(e=parseInt(e,10));const r=this;if(r.destroyed)return;typeof t>"u"&&(t=r.params.speed);const s=r.grid&&r.params.grid&&r.params.grid.rows>1;let a=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)a=a+r.virtual.slidesBefore;else{let o;if(s){const p=a*r.params.grid.rows;o=r.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===p).column}else o=r.getSlideIndexByData(a);const l=s?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:c}=r.params;let u=r.params.slidesPerView;u==="auto"?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),c&&u%2===0&&(u=u+1));let d=l-o<u;if(c&&(d=d||o<Math.ceil(u/2)),n&&c&&r.params.slidesPerView!=="auto"&&!s&&(d=!1),d){const p=c?o<r.activeIndex?"prev":"next":o-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:p,slideTo:!0,activeSlideIndex:p==="next"?o+1:o-l+1,slideRealIndex:p==="next"?r.realIndex:void 0})}if(s){const p=a*r.params.grid.rows;a=r.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===p).column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame(()=>{r.slideTo(a,t,i,n)}),r}function Jl(e,t,i){t===void 0&&(t=!0);const n=this,{enabled:r,params:s,animating:a}=n;
788if(!r||n.destroyed)return n;typeof e>"u"&&(e=n.params.speed);let o=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<s.slidesPerGroupSkip?1:o,c=n.virtual&&s.virtual.enabled;if(s.loop){if(a&&!c&&s.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+l,e,t,i)}),!0}return s.rewind&&n.isEnd?n.slideTo(0,e,t,i):n.slideTo(n.activeIndex+l,e,t,i)}function Zl(e,t,i){t===void 0&&(t=!0);const n=this,{params:r,snapGrid:s,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=n;if(!l||n.destroyed)return n;typeof e>"u"&&(e=n.params.speed);const u=n.virtual&&r.virtual.enabled;if(r.loop){if(c&&!u&&r.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const d=o?n.translate:-n.translate;function p(f){return f<0?-Math.floor(Math.abs(f)):Math.floor(f)}const h=p(d),m=s.map(f=>p(f)),_=r.freeMode&&r.freeMode.enabled;let y=s[m.indexOf(h)-1];if(typeof y>"u"&&(r.cssMode||_)){let f;s.forEach((g,w)=>{h>=g&&(f=w)}),typeof f<"u"&&(y=_?s[f]:s[f>0?f-1:f])}let S=0;if(typeof y<"u"&&(S=a.indexOf(y),S<0&&(S=n.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(S=S-n.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),r.rewind&&n.isBeginning){const f=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(f,e,t,i)}else if(r.loop&&n.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{n.slideTo(S,e,t,i)}),!0;return n.slideTo(S,e,t,i)}function ec(e,t,i){t===void 0&&(t=!0);const n=this;if(!n.destroyed)return typeof e>"u"&&(e=n.params.speed),n.slideTo(n.activeIndex,e,t,i)}function tc(e,t,i,n){t===void 0&&(t=!0),n===void 0&&(n=.5);const r=this;if(r.destroyed)return;typeof e>"u"&&(e=r.params.speed);let s=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const c=r.snapGrid[o],u=r.snapGrid[o+1];l-c>(u-c)*n&&(s+=r.params.slidesPerGroup)}else{const c=r.snapGrid[o-1],u=r.snapGrid[o];l-c<=(u-c)*n&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,e,t,i)}function ic(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e,n=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let r=e.getSlideIndexWhenGrid(e.clickedIndex),s;const a=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(s):r>(o?(e.slides.length-n)/2-(e.params.grid.rows-1):e.slides.length-n)?(e.loopFix(),r=e.getSlideIndex(Y(i,`${a}[data-swiper-slide-index="${s}"]`)[0]),Pr(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}var nc={slideTo:Xl,slideToLoop:Ql,slideNext:Jl,slidePrev:Zl,slideReset:ec,slideToClosest:tc,slideToClickedSlide:ic};function rc(e,t){const i=this,{params:n,slidesEl:r}=i;if(!n.loop||i.virtual&&i.params.virtual.enabled)return;const s=()=>{Y(r,`.${n.slideClass}, swiper-slide`).forEach((h,m)=>{h.setAttribute("data-swiper-slide-index",m)})},a=()=>{const p=Y(r,`.${n.slideBlankClass}`);p.forEach(h=>{h.remove()}),p.length>0&&(i.recalcSlides(),i.updateSlides())},o=i.grid&&n.grid&&n.grid.rows>1;n.loopAddBlankSlides&&(n.slidesPerGroup>1||o)&&a();const l=n.slidesPerGroup*(o?n.grid.rows:1),c=i.slides.length%l!==0,u=o&&i.slides.length%n.grid.rows!==0,d=p=>{for(let h=0;h<p;h+=1){const m=i.isElement?Tt("swiper-slide",[n.slideBlankClass]):Tt("div",[n.slideClass,n.slideBlankClass]);i.slidesEl.append(m)}};if(c){if(n.loopAddBlankSlides){const p=l-i.slides.length%l;d(p),i.recalcSlides(),i.updateSlides()}else Et("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(u){if(n.loopAddBlankSlides){const p=n.grid.rows-i.slides.length%n.grid.rows;d(p),i.recalcSlides(),i.updateSlides()}else Et("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may 
788not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();i.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next",initial:t})}function sc(e){let{slideRealIndex:t,slideTo:i=!0,direction:n,setTranslate:r,activeSlideIndex:s,initial:a,byController:o,byMousewheel:l}=e===void 0?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:p,slidesEl:h,params:m}=c,{centeredSlides:_,initialSlide:y}=m;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):m.centeredSlides&&c.snapIndex<m.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=p,c.emit("loopFix");return}let S=m.slidesPerView;S==="auto"?S=c.slidesPerViewDynamic():(S=Math.ceil(parseFloat(m.slidesPerView,10)),_&&S%2===0&&(S=S+1));const f=m.slidesPerGroupAuto?S:m.slidesPerGroup;let g=_?Math.max(f,Math.ceil(S/2)):f;g%f!==0&&(g+=f-g%f),g+=m.loopAdditionalSlides,c.loopedSlides=g;const w=c.grid&&m.grid&&m.grid.rows>1;u.length<S+g||c.params.effect==="cards"&&u.length<S+g*2?Et("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):w&&m.grid.fill==="row"&&Et("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const v=[],E=[],C=w?Math.ceil(u.length/m.grid.rows):u.length,L=a&&C-y<S&&!_;let O=L?y:c.activeIndex;typeof s>"u"?s=c.getSlideIndex(u.find(A=>A.classList.contains(m.slideActiveClass))):O=s;const b=n==="next"||!n,x=n==="prev"||!n;let M=0,P=0;const $=(w?u[s].column:s)+(_&&typeof r>"u"?-S/2+.5:0);if($<g){M=Math.max(g-$,f);for(let A=0;A<g-$;A+=1){const R=A-Math.floor(A/C)*C;if(w){const B=C-R-1;for(let ee=u.length-1;ee>=0;ee-=1)u[ee].column===B&&v.push(ee)}else v.push(C-R-1)}}else if($+S>C-g){P=Math.max($-(C-g*2),f),L&&(P=Math.max(P,S-C+y+1));for(let A=0;A<P;A+=1){const R=A-Math.floor(A/C)*C;w?u.forEach((B,ee)=>{B.column===R&&E.push(ee)}):E.push(R)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&u.length<S+g*2&&(E.includes(s)&&E.splice(E.indexOf(s),1),v.includes(s)&&v.splice(v.indexOf(s),1)),x&&v.forEach(A=>{u[A].swiperLoopMoveDOM=!0,h.prepend(u[A]),u[A].swiperLoopMoveDOM=!1}),b&&E.forEach(A=>{u[A].swiperLoopMoveDOM=!0,h.append(u[A]),u[A].swiperLoopMoveDOM=!1}),c.recalcSlides(),m.slidesPerView==="auto"?c.updateSlides():w&&(v.length>0&&x||E.length>0&&b)&&c.slides.forEach((A,R)=>{c.grid.updateSlide(R,A,c.slides)}),m.watchSlidesProgress&&c.updateSlidesOffset(),i){if(v.length>0&&x){if(typeof t>"u"){const A=c.slidesGrid[O],B=c.slidesGrid[O+M]-A;l?c.setTranslate(c.translate-B):(c.slideTo(O+Math.ceil(M),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-B,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-B))}else if(r){const A=w?v.length/m.grid.rows:v.length;c.slideTo(c.activeIndex+A,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(E.length>0&&b)if(typeof t>"u"){const A=c.slidesGrid[O],B=c.slidesGrid[O-P]-A;l?c.setTranslate(c.translate-B):(c.slideTo(O-P,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-B,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-B))}else{const A=w?E.length/m.grid.rows:E.length;c.slideTo(c.activeIndex-A,0,!1,!0)}}if(c.allowSlidePrev=d,c.allowSlideNext=p,c.controller&&c.controller.control&&!o){const A={slideRealIndex:t,direction:n,setTranslate:r,activeSlideIndex:s,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(R=>{!R.destroyed&&R.params.loop&&R.loopFix({...A,slideTo:R.params.slidesPerView===m.slidesPerView?i:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...A,slideTo:c.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}c.emit("loopFix")}function ac(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||!i||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];
vendor: 13,445 bytes, line 788
788e.slides.forEach(r=>{const s=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;n[s]=r}),e.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),n.forEach(r=>{i.append(r)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var oc={loopCreate:rc,loopFix:sc,loopDestroy:ac};function lc(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function cc(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var uc={setGrabCursor:lc,unsetGrabCursor:cc};function dc(e,t){t===void 0&&(t=this);function i(n){if(!n||n===we()||n===z())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return!r&&!n.getRootNode?null:r||i(n.getRootNode().host)}return i(t)}function Hr(e,t,i){const n=z(),{params:r}=e,s=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return s&&(i<=a||i>=n.innerWidth-a)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function fc(e){const t=this,i=we();let n=e;n.originalEvent&&(n=n.originalEvent);const r=t.touchEventsData;if(n.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==n.pointerId)return;r.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(r.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Hr(t,n,n.targetTouches[0].pageX);return}const{params:s,touches:a,enabled:o}=t;if(!o||!s.simulateTouch&&n.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=n.target;if(s.touchEventsTarget==="wrapper"&&!vl(l,t.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||r.isTouched&&r.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",u=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&u&&(l=u[0]);const d=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,p=!!(n.target&&n.target.shadowRoot);if(s.noSwiping&&(p?dc(d,l):l.closest(d))){t.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const h=a.currentX,m=a.currentY;if(!Hr(t,n,h))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=m,r.touchStartTime=yt(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let _=!0;l.matches(r.focusableElements)&&(_=!1,l.nodeName==="SELECT"&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==l&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!l.matches(r.focusableElements))&&i.activeElement.blur();const y=_&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||y)&&!l.isContentEditable&&n.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function pc(e){const t=we(),i=this,n=i.touchEventsData,{params:r,touches:s,rtlTranslate:a,enabled:o}=i;if(!o||!r.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(v=>v.identifier===n.touchId),!c||c.identifier!==n.touchId)return}else c=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",l);return}const u=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){s.startX=u,s.startY=d;return}if(!i.allowTouchMove){l.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(s,{startX:u,startY:d,currentX:u,currentY:d}),n.touchStartTime=yt());return}if(r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(d<s.startY&&i.translate<=i.maxTranslate()||d>s.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else{if(a&&(u>s.startX&&-i.translate<=i.maxTranslate()||u<s.startX&&-i.translate>=i.minTranslate()))return;if(!a&&(u<s.startX&&i.translate<=i.maxTranslate()||u>s.startX&&i.translate>=i.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==l.target&&l.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&l.target===t.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=u,s.currentY=d;const p=s.currentX-s.startX,h=s.currentY-s.startY;if(i.params.threshold&&Math.sqrt(p**2+h**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let v;i.isHorizontal()&&s.currentY===s.startY||i.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:p*p+h*h>=25&&(v=Math.atan2(Math.abs(h),Math.abs(p))*180/Math.PI,n.isScrolling=i.isHorizontal()?v>r.touchAngle:90-v>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let m=i.isHorizontal()?p:h,_=i.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),_=Math.abs(_)*(a?1:-1)),s.diff=m,m*=r.touchRatio,a&&(m=-m,_=-_);const y=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=_>0?"prev":"next";const S=i.params.loop&&!r.cssMode,f=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(S&&f&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const v=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(v)}n.allowMomentumBounce=!1,r.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",l)}if(new Date().getTime(),r._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&y!==i.touchesDirection&&S&&f&&Math.abs(m)>=1){Object.assign(s,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=m+n.startTranslate;let g=!0,w=r.resistanceRatio;if(r.touchReleaseOnEdges&&(w=0),m>0?(S&&f&&n.allowThresholdMove&&n.currentTranslate>(r.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(r.slidesPerView!=="auto"&&i.slides.length-r.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(g=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+m)**w))):m<0&&(S&&f&&n.allowThresholdMove&&n.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(r.slidesPerView!=="auto"&&i.slides.length-r.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(r.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(g=!1,r.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-m)**w))),g&&(l.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),r.threshold>0)if(Math.abs(m)>r.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{n.currentTranslate=n.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function hc(e){const t=this,i=t.touchEventsData;let n=e;n.originalEvent&&(n=n.originalEvent);let r;if(n.type==="touchend"||n.type==="touchcancel"){if(r=[...n.changedTouches].find(v=>v.identifier===i.touchId),!r||r.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;r=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(t.browser.isSafari||t.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:o,rtlTranslate:l,slidesGrid:c,enabled:u}=t;if(!u||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&t.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=yt(),p=d-i.touchStartTime;if(t.allowClick){const v=n.path||n.composedPath&&n.composedPath();t.updateClickedSlide(v&&v[0]||n.target,v),t.emit("tap click",n),p<300&&d-i.lastClickTime<300&&t.emit("doubleTap doubleClick",n)}if(i.lastClickTime=yt(),Pr(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||o.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let h;if(a.followFinger?h=l?t.translate:-t.translate:h=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:h});return}const m=h>=-t.maxTranslate()&&!t.params.loop;let _=0,y=t.slidesSizesGrid[0];for(let v=0;v<c.length;v+=v<a.slidesPerGroupSkip?1:a.slidesPerGroup){const E=v<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[v+E]<"u"?(m||h>=c[v]&&h<c[v+E])&&(_=v,y=c[v+E]-c[v]):(m||h>=c[v])&&(_=v,y=c[c.length-1]-c[c.length-2])}let S=null,f=null;a.rewind&&(t.isBeginning?f=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(S=0));const g=(h-c[_])/y,w=_<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(p>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?S:_+w):t.slideTo(_)),t.swipeDirection==="prev"&&(g>1-a.longSwipesRatio?t.slideTo(_+w):f!==null&&g<0&&Math.abs(g)>a.longSwipesRatio?t.slideTo(f):t.slideTo(_))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(n.target===t.navigation.nextEl||n.target===t.navigation.prevEl)?n.target===t.navigation.nextEl?t.slideTo(_+w):t.slideTo(_):(t.swipeDirection==="next"&&t.slideTo(S!==null?S:_+w),t.swipeDirection==="prev"&&t.slideTo(f!==null?f:_))}}function Br(){const e=this,{params:t,el:i}=e;if(i&&i.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:r,snapGrid:s}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!o?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=n,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function gc(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function mc(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:n}=e;if(!n)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let r;const s=e.maxTranslate()-e.minTranslate();s===0?r=0:r=(e.translate-e.minTranslate())/s,r!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function _c(e){const t=this;Ct(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function wc(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Vr=(e,t)=>
788{const i=we(),{params:n,el:r,wrapperEl:s,device:a}=e,o=!!n.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;!r||typeof r=="string"||(i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[l]("click",e.onClick,!0),n.cssMode&&s[l]("scroll",e.onScroll),n.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Br,!0):e[c]("observerUpdate",Br,!0),r[l]("load",e.onLoad,{capture:!0}))};function Sc(){const e=this,{params:t}=e;e.onTouchStart=fc.bind(e),e.onTouchMove=pc.bind(e),e.onTouchEnd=hc.bind(e),e.onDocumentTouchStart=wc.bind(e),t.cssMode&&(e.onScroll=mc.bind(e)),e.onClick=gc.bind(e),e.onLoad=_c.bind(e),Vr(e,"on")}function vc(){Vr(this,"off")}var yc={attachEvents:Sc,detachEvents:vc};const Gr=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function bc(){const e=this,{realIndex:t,initialized:i,params:n,el:r}=e,s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const a=we(),o=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?e.el:a.querySelector(n.breakpointsBase),c=e.getBreakpoint(s,o,l);if(!c||e.currentBreakpoint===c)return;const d=(c in s?s[c]:void 0)||e.originalParams,p=Gr(e,n),h=Gr(e,d),m=e.params.grabCursor,_=d.grabCursor,y=n.enabled;p&&!h?(r.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&h&&(r.classList.add(`${n.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&n.grid.fill==="column")&&r.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),m&&!_?e.unsetGrabCursor():!m&&_&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(E=>{if(typeof d[E]>"u")return;const C=n[E]&&n[E].enabled,L=d[E]&&d[E].enabled;C&&!L&&e[E].disable(),!C&&L&&e[E].enable()});const S=d.direction&&d.direction!==n.direction,f=n.loop&&(d.slidesPerView!==n.slidesPerView||S),g=n.loop;S&&i&&e.changeDirection(),V(e.params,d);const w=e.params.enabled,v=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),y&&!w?e.disable():!y&&w&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",d),i&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&v?(e.loopCreate(t),e.updateSlides()):g&&!v&&e.loopDestroy()),e.emit("breakpoint",d)}function xc(e,t,i){if(t===void 0&&(t="window"),!e||t==="container"&&!i)return;let n=!1;const r=z(),s=t==="window"?r.innerHeight:i.clientHeight,a=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:s*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>
vendor: 9,845 bytes, line 788
788parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){const{point:l,value:c}=a[o];t==="window"?r.matchMedia(`(min-width: ${c}px)`).matches&&(n=l):c<=i.clientWidth&&(n=l)}return n||"max"}var Ec={setBreakpoint:bc,getBreakpoint:xc};function Tc(e,t){const i=[];return e.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(r=>{n[r]&&i.push(t+r)}):typeof n=="string"&&i.push(t+n)}),i}function Ac(){const e=this,{classNames:t,params:i,rtl:n,el:r,device:s}=e,a=Tc(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...a),r.classList.add(...t),e.emitContainerClasses()}function Cc(){const e=this,{el:t,classNames:i}=e;!t||typeof t=="string"||(t.classList.remove(...i),e.emitContainerClasses())}var Lc={addClasses:Ac,removeClasses:Cc};function Mc(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:n}=i;if(n){const r=e.slides.length-1,s=e.slidesGrid[r]+e.slidesSizesGrid[r]+n*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;i.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),i.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Oc={checkOverflow:Mc},jr={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Pc(e,t){return function(n){n===void 0&&(n={});const r=Object.keys(n)[0],s=n[r];if(typeof s!="object"||s===null){V(t,n);return}if(e[r]===!0&&(e[r]={enabled:!0}),r==="navigation"&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),!(r in e&&"enabled"in s)){V(t,n);return}typeof e[r]=="object"&&!("enabled"in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),V(t,n)}}const Fi={eventsEmitter:Ll,update:zl,translate:ql,transition:Yl,slide:nc,loop:oc,grabCursor:uc,events:yc,breakpoints:Ec,checkOverflow:Oc,classes:Lc},Di={};class G{constructor(){let t,i;for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];r.length===1&&r[0].constructor&&Object.prototype.toString.call(r[0]).slice(8,-1)==="Object"?i=r[0]:[t,i]=r,i||(i={}),i=V({},i),t&&!i.el&&(i.el=t);const a=we();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const u=[];return a.querySelectorAll(i.el).forEach(d=>{const p=V({},i,{el:d});u.push(new G(p))}),u}const o=this;o.__swiper__=!0,o.support=Fr(),o.device=Dr({userAgent:i.userAgent}),o.browser=Rr(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);const l={};o.modules.forEach(u=>{u({params:i,swiper:o,extendParams:Pc(i,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=V({},jr,l);return o.params=V({},c,Di,i),o.originalParams=V({},o.params),o.passedParams=V({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(u=>{o.on(u,o.params.on[u])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:i,params:n}=this,r=Y(i,`.${n.slideClass}, swiper-slide`),s=At(r[0]);return At(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(i=>i.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:i,params:n}=t;t.slides=Y(i,`.${n.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,i){const n=this;t=Math.min(Math.max(t,0),1);const r=n.minTranslate(),a=(n.maxTranslate()-r)*t+r;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=t.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",i.join(" "))}getSlideClasses(t){const i=this;return i.destroyed?"":t.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=[];t.slides.forEach(n=>{const r=t.getSlideClasses(n);i.push({slideEl:n,classNames:r}),t.emit("_slideClass",n,r)}),t.emit("_slideClasses",i)}slidesPerViewDynamic(t,i){t===void 0&&(t="current"),i===void 0&&(i=!1);const n=this,{params:r,slides:s,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:c}=n;let u=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let d=s[c]?Math.ceil(s[c].swiperSlideSize):0,p;for(let h=c+1;h<s.length;h+=1)s[h]&&!p&&(d+=Math.ceil(s[h].swiperSlideSize),u+=1,d>l&&(p=!0));for(let h=c-1;h>=0;h-=1)s[h]&&!p&&(d+=s[h].swiperSlideSize,u+=1,d>l&&(p=!0))}else if(t==="current")for(let d=c+1;d<s.length;d+=1)(i?a[d]+o[d]-a[c]<l:a[d]-a[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)a[c]-a[d]<l&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:i,params:n}=t;n.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Ct(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function r(){const a=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&t.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&t.isEnd&&!n.centeredSlides){const a=t.virtual&&n.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(a.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||r()}n.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,i){i===void 0&&(i=!0);const n=this,r=n.params.direction;return t||(t=r==="horizontal"?"vertical":"horizontal"),t===r||t!=="horizontal"&&t!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${t}`),n.emitContainerClasses(),n.params.direction=t,n.slides.forEac
788h(s=>{t==="vertical"?s.style.width="":s.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(t){const i=this;i.rtl&&t==="rtl"||!i.rtl&&t==="ltr"||(i.rtl=t==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(t){const i=this;if(i.mounted)return!0;let n=t||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):Y(n,r())[0];return!a&&i.params.createElements&&(a=Tt("div",i.params.wrapperClass),n.append(a),Y(n,`.${i.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||oe(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||oe(n,"direction")==="rtl"),wrongRTL:oe(a,"display")==="-webkit-box"}),!0}init(t){const i=this;if(i.initialized||i.mount(t)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(void 0,!0),i.attachEvents();const r=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(s=>{s.complete?Ct(i,s):s.addEventListener("load",a=>{Ct(i,a.target)})}),$i(i),i.initialized=!0,$i(i),i.emit("init"),i.emit("afterInit"),i}destroy(t,i){t===void 0&&(t=!0),i===void 0&&(i=!0);const n=this,{params:r,el:s,wrapperEl:a,slides:o}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),i&&(n.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),t!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),gl(n)),n.destroyed=!0),null}static extendDefaults(t){V(Di,t)}static get extendedDefaults(){return Di}static get defaults(){return jr}static installModule(t){G.prototype.__modules__||(G.prototype.__modules__=[]);const i=G.prototype.__modules__;typeof t=="function"&&i.indexOf(t)<0&&i.push(t)}static use(t){return Array.isArray(t)?(t.forEach(i=>G.installModule(i)),G):(G.installModule(t),G)}}Object.keys(Fi).forEach(e=>{Object.keys(Fi[e]).forEach(t=>{G.prototype[t]=Fi[e][t]})}),G.use([Al,Cl]);function Ic(e,t,i,n){return e.params.createElements&&Object.keys(n).forEach(r=>{if(!i[r]&&i.auto===!0){let s=Y(e.el,`.${n[r]}`)[0];s||(s=Tt("div",n[r]),s.className=n[r],e.el.append(s)),i[r]=s,t[r]=s}}),i}function qe(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function kc(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const s="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:f=>f,formatFractionTotal:f=>f,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let a,o=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(f,g){const{bulletActiveClass:w}=t.params.pagination;f&&(f=f[`${g==="prev"?"previous":"next"}ElementSibling`],f&&(f.classList.add(`${w}-${g}`),f=f[`${g==="prev"?"previous":"next"}ElementSibling`],f&&f.classList.add(`${w}-${g}-${g}`)))}function u(f,g,w){if(f=f%w,g=g%w,g===f+1)return"next";if(g===f-1)return"previous"}function d(f){const g=f.target.closest(qe(t.params.pagination.bulletClass));if(!g)return;f.preventDefault();const w=At(g)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===w)return;const v=u(t.realIndex,w,t.slides.length);v==="next"?t.slideNext():v==="previous"?t.slidePrev():t.slideToLoop(w)}else t.slideTo(w)}function p(){const f=t.rtl,g=t.params.pagination;if(l())return;let w=t.pagination.el;w=Z(w);let v,E;const C=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,L=t.params.loop?Math.
788ceil(C/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(E=t.previousRealIndex||0,v=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(v=t.snapIndex,E=t.previousSnapIndex):(E=t.previousIndex||0,v=t.activeIndex||0),g.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const O=t.pagination.bullets;let b,x,M;if(g.dynamicBullets&&(a=Li(O[0],t.isHorizontal()?"width":"height"),w.forEach(P=>{P.style[t.isHorizontal()?"width":"height"]=`${a*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&E!==void 0&&(o+=v-(E||0),o>g.dynamicMainBullets-1?o=g.dynamicMainBullets-1:o<0&&(o=0)),b=Math.max(v-o,0),x=b+(Math.min(O.length,g.dynamicMainBullets)-1),M=(x+b)/2),O.forEach(P=>{const k=[...["","-next","-next-next","-prev","-prev-prev","-main"].map($=>`${g.bulletActiveClass}${$}`)].map($=>typeof $=="string"&&$.includes(" ")?$.split(" "):$).flat();P.classList.remove(...k)}),w.length>1)O.forEach(P=>{const k=At(P);k===v?P.classList.add(...g.bulletActiveClass.split(" ")):t.isElement&&P.setAttribute("part","bullet"),g.dynamicBullets&&(k>=b&&k<=x&&P.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),k===b&&c(P,"prev"),k===x&&c(P,"next"))});else{const P=O[v];if(P&&P.classList.add(...g.bulletActiveClass.split(" ")),t.isElement&&O.forEach((k,$)=>{k.setAttribute("part",$===v?"bullet-active":"bullet")}),g.dynamicBullets){const k=O[b],$=O[x];for(let A=b;A<=x;A+=1)O[A]&&O[A].classList.add(...`${g.bulletActiveClass}-main`.split(" "));c(k,"prev"),c($,"next")}}if(g.dynamicBullets){const P=Math.min(O.length,g.dynamicMainBullets+4),k=(a*P-a)/2-M*a,$=f?"right":"left";O.forEach(A=>{A.style[t.isHorizontal()?$:"top"]=`${k}px`})}}w.forEach((O,b)=>{if(g.type==="fraction"&&(O.querySelectorAll(qe(g.currentClass)).forEach(x=>{x.textContent=g.formatFractionCurrent(v+1)}),O.querySelectorAll(qe(g.totalClass)).forEach(x=>{x.textContent=g.formatFractionTotal(L)})),g.type==="progressbar"){let x;g.progressbarOpposite?x=t.isHorizontal()?"vertical":"horizontal":x=t.isHorizontal()?"horizontal":"vertical";const M=(v+1)/L;let P=1,k=1;x==="horizontal"?P=M:k=M,O.querySelectorAll(qe(g.progressbarFillClass)).forEach($=>{$.style.transform=`translate3d(0,0,0) scaleX(${P}) scaleY(${k})`,$.style.transitionDuration=`${t.params.speed}ms`})}g.type==="custom"&&g.renderCustom?($r(O,g.renderCustom(t,v+1,L)),b===0&&r("paginationRender",O)):(b===0&&r("paginationRender",O),r("paginationUpdate",O)),t.params.watchOverflow&&t.enabled&&O.classList[t.isLocked?"add":"remove"](g.lockClass)})}function h(){const f=t.params.pagination;if(l())return;const g=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let w=t.pagination.el;w=Z(w);let v="";if(f.type==="bullets"){let E=t.params.loop?Math.ceil(g/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&E>g&&(E=g);for(let C=0;C<E;C+=1)f.renderBullet?v+=f.renderBullet.call(t,C,f.bulletClass):v+=`<${f.bulletElement} ${t.isElement?'part="bullet"':""} class="${f.bulletClass}"></${f.bulletElement}>`}f.type==="fraction"&&(f.renderFraction?v=f.renderFraction.call(t,f.currentClass,f.totalClass):v=`<span class="${f.currentClass}"></span> / <span class="${f.totalClass}"></span>`),f.type==="progressbar"&&(f.renderProgressbar?v=f.renderProgressbar.call(t,f.progressbarFillClass):v=`<span class="${f.progressbarFillClass}"></span>`),t.pagination.bullets=[],w.forEach(E=>{f.type!=="custom"&&$r(E,v||""),f.type==="bullets"&&t.pagination.bullets.push(...E.querySelectorAll(qe(f.bulletClass)))}),f.type!=="custom"&&r("paginationRender",w[0])}function m(){t.params.pagination=Ic(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const f=t.params.pagination;if(!f.el)return;let g;typeof f.el=="string"&&t.isElement&&(g=t.el.querySelector(f.el)),!g&&typeof f.el=="string"&&(g=[...document.querySelectorAll(f.el)]),g||(g=f.el),!(!g||g.length===0)&&(t.params.uniqueNavElements&&typeof f.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...t.el.querySelectorAll(f.el)],g.length>1&&(g=g.find(w=>kr(w,".swiper")[0]===t.el))),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(t.pagination,{el:g}),g=Z(g),g.forEach(w=>{f.type==="bullets"&&f.clickable&&w.classList.add(...(f.clickableClass||"").split(" ")),w.classList.add(f.modifierClass+f.type),w.classList.add(t.isHorizontal()?f.horizontalClass:f.verticalClass),f.type==="bullets"&&f.dynamicBullets&&(w.classList.add(`${f.modifierClass}${f.type}-dynamic`),o=0,f.dynamicMainBullets<1&&(f.dynamicMainBullets=1)),f.type==="progressbar"&&f.progressbarOpposite&&w.classList.add(f.progressbarOppositeClass),f.clickable&&w.addEventListener("click",d),t.enabled||w.classList.add(f.lockClass)}))}function _(){const f=t.params.pagination;if(l())return;let g=t.pagination.el;g&&(g=Z(g),g.forEach(w=>{w.classList.remove(f.hiddenClass),w.classList.remove(f.modifierClass+f.type),w.classList.remove(t.isHorizontal()?f.horizontalClass:f.verticalClass),f.clickable&&(w.classList.remove(...(f.clickableClass||"").split(" ")),w.removeEventListener("click",d))}
788)),t.pagination.bullets&&t.pagination.bullets.forEach(w=>w.classList.remove(...f.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const f=t.params.pagination;let{el:g}=t.pagination;g=Z(g),g.forEach(w=>{w.classList.remove(f.horizontalClass,f.verticalClass),w.classList.add(t.isHorizontal()?f.horizontalClass:f.verticalClass)})}),n("init",()=>{t.params.pagination.enabled===!1?S():(m(),h(),p())}),n("activeIndexChange",()=>{typeof t.snapIndex>"u"&&p()}),n("snapIndexChange",()=>{p()}),n("snapGridLengthChange",()=>{h(),p()}),n("destroy",()=>{_()}),n("enable disable",()=>{let{el:f}=t.pagination;f&&(f=Z(f),f.forEach(g=>g.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),n("lock unlock",()=>{p()}),n("click",(f,g)=>{const w=g.target,v=Z(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&v&&v.length>0&&!w.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&w===t.navigation.nextEl||t.navigation.prevEl&&w===t.navigation.prevEl))return;const E=v[0].classList.contains(t.params.pagination.hiddenClass);r(E===!0?"paginationShow":"paginationHide"),v.forEach(C=>C.classList.toggle(t.params.pagination.hiddenClass))}});const y=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:f}=t.pagination;f&&(f=Z(f),f.forEach(g=>g.classList.remove(t.params.pagination.paginationDisabledClass))),m(),h(),p()},S=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:f}=t.pagination;f&&(f=Z(f),f.forEach(g=>g.classList.add(t.params.pagination.paginationDisabledClass))),_()};Object.assign(t.pagination,{enable:y,disable:S,render:h,update:p,init:m,destroy:_})}function T(e){return Array.isArray(e)?e[0]??"":e??""}function j(e){return Array.isArray(e)?e.filter(Boolean):e==null||e===""?[]:[e]}function qr(e){return String(e||"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()}function $c(e){return String(e||"").toLowerCase().normalize("NFKD").replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-")}function Wr(e){return String(e||"").toLowerCase().replace(/&nbsp;/g," ").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()}function Fc(e){return qr(String(e||"").replace(/&nbsp;/gi," "))}function Ur(e){return qr(String(e||"").replace(/&nbsp;/gi," ")).replace(/\s+/g," ").trim().length}function Dc(e){const t=(Array.isArray(e)?e:[]).map(s=>String(s||"").trim()).filter(Boolean);if(!t.length)return"";const i=t.filter(s=>/<mark\b/i.test(s)),n=i.length?i:t,r=bi;return n.slice().sort((s,a)=>Math.abs(Ur(s)-r)-Math.abs(Ur(a)-r))[0]}function Le(e){var n;const t=String(e||"").trim();return t?(((n=t.split("|")[0])==null?void 0:n.trim())||t).replace(/:/g,"_").replace(/_/g,"-").toLowerCase():""}function Rc(e){const t=String(e||"").trim();if(!t)return"";const i=t.split("|").map(n=>n.trim()).filter(Boolean);return i.length>=2?i[1]:t}function We(e){const t=[];if(!Array.isArray(e))return t;for(let i=0;i<e.length;i+=2){const n=String(e[i]||"").trim();!n||n==="|"||t.push({raw:n,count:Number(e[i+1]||0),parts:n.split("|").map(r=>r.trim())})}return t}function Kr(e){const t=[];return(e||[]).forEach(i=>{i.selectableHeading&&i.headingValue&&t.push({label:i.heading,value:i.headingValue}),(i.options||[]).forEach(n=>{n.value&&t.push(n)})}),t}function Nc(e){const t={};return Object.keys(e).forEach(i=>{t[i]={},Kr(e[i]).forEach(n=>{t[i][n.value]=n.label})}),t}function zc(e){const t={},i=(n,r,s)=>{const a=String(r||"").trim().toLowerCase();a&&(n[a]=s)};return Object.keys(e).forEach(n=>{const r={};Kr(e[n]).forEach(s=>{const a=String(s.value||"").trim().toLowerCase();if(!a)return;const o=$c(s.label||"");if(i(r,a,a),i(r,a.replace(/-/g,"_"),a),i(r,a.replace(/_/g,"-"),a),i(r,o,a),i(r,o.replace(/-/g,"_"),a),a.endsWith("-law")){const l=a.replace(/-law$/,"");i(r,l,a),i(r,l.replace(/-/g,"_"),a)}}),t[n]=r}),t}function Hc(e){const t=new Map;return We(e).forEach(({parts:i})=>{const n=String(i[0]||"").trim(),r=String(i[1]||i[0]||"").trim();if(!n||!r)return;const s=String(i[2]||"").trim(),a=String(i[3]||s||"").trim(),o=s||"__ungrouped__";t.has(o)||t.set(o,{heading:a,headingValue:s,selectableHeading:!!s,options:[]});const l=t.get(o);l.options.some(c=>c.value===n)||l.options.push({label:r,value:n})}),Array.from(t.values()).map(i=>(i.options.sort((n,r)=>n.label.localeCompare(r.label,"en",{sensitivity:"base"})),i)).filter(i=>i.options.length>0).sort((i,n)=>String(i.heading||"").localeCompare(String(n.heading||""),"en",{sensitivity:"base"}))}function Yr(e){const t={};
788return(Array.isArray(e)?e:[]).forEach(i=>{const n=String((i==null?void 0:i.headingValue)||"").trim();n&&(t[n]=n),(Array.isArray(i==null?void 0:i.options)?i.options:[]).forEach(r=>{const s=String((r==null?void 0:r.value)||"").trim();s&&(t[s]=s)})}),t}function Xr(e){return String(e||"").split("|")[0].trim().toLowerCase()}function Qr(e,t=null){const i=Array.isArray(t)?t:[],n=Array.isArray(e)?e:[],r=i.length>0?i:n;return r.length?r.some(a=>String(a||"").includes("|"))?r.filter(Boolean).map(a=>{const o=String(a).split("|");return{locationId:String(o[0]||"").trim(),delta:Number.parseInt(o[1],10)||0}}).sort((a,o)=>a.delta-o.delta).map(a=>a.locationId):r.map(a=>String(a||"").trim()).filter(Boolean):[]}function Ri(e){const t=String(e||"").trim().replace(/\|+$/,"");if(!t)return[];const i=t.split("|").map(n=>n.trim());for(;i.length>1&&!i[i.length-1];)i.pop();return i}function Ni(e){const t=Ri(e);if(!t.length)return"";if(t.length>=4&&t[2]&&t[3])return`${t[2]}, ${t[3]}`;if(t.length>=3&&t[1]&&t[2])return`${t[2]}, ${t[1]}`;if(t.length>=2){const i=t.slice(1).filter(Boolean);if(i.length)return i.join(", ")}return t[0]}function Bc(e){const t=j(e)[0];return t?Ni(t):""}function Vc(e,t){const i=Xr(t);if(!i)return"";const n=j(e).find(r=>Xr(Ri(r)[0])===i);return n?Ni(n):""}function Jr(e){const t=Qr(j(e.sm_neutral_all_location_home_office),j(e.sm_neutral_all_location_home_office_ordered)),i=Vc(e.sm_neutral_all_locations_label,t[0]);return i||T(e.ss_neutral_office_location_display)||Bc(e.sm_neutral_all_locations_label)}function Gc(e){const t={};return j(e).forEach(i=>{const n=Ri(i),r=Le(n[0]);r&&(t[r]=Ni(i))}),t}function jc(e){const t=Le(e);return Yo[t]||""}function qc(e,t){const i=(e==null?void 0:e.homeOfficeLocationValues)||[],n=((e==null?void 0:e.homeOfficeLocationsOrdered)||[]).map(a=>a.location_key);if(t.length===1)return i.find(a=>a===t[0])||"";const r=new Set(t.map(Lt));return n.some(a=>r.has(Lt(a)))&&n[0]||""}function Wc(e,t,i){const n=(i||[]).map(String).filter(Boolean);if(t==="home"){const c=qc(e,n);if(c){const u=jc(c);return u||(e==null?void 0:e.allLocationDisplayMap[c])||""}}if(t!=="all"||!n.length)return(e==null?void 0:e.location)||"";const r=new Set(((e==null?void 0:e.locationValues)||[]).map(String)),s=new Set(((e==null?void 0:e.homeOfficeLocationValues)||[]).map(String)),a=n.filter(c=>r.has(c));if(!a.length)return(e==null?void 0:e.location)||"";const o=a.filter(c=>!s.has(c));if(!o.length)return(e==null?void 0:e.location)||"";const l=(e==null?void 0:e.allLocationDisplayMap)||{};if(o.length===1){const c=l[o[0]];return c?`Available to travel to ${c}`:"Available to travel to selected location."}return"Available to travel to all selected locations."}function Lt(e){return String(e||"").replace(/-/g,"_")}function Uc(e){return String(e||"").replace(/_/g,"-")}function Kc(e){const t=String(e||"").trim();if(!t)return[];const i=t.startsWith("(")&&t.endsWith(")")?t.slice(1,-1).trim():t;if(!i)return[];const n=/\s+AND\s+/i.test(i)?/\s+AND\s+/i:/\s+OR\s+/i.test(i)?/\s+OR\s+/i:null;return n?i.split(n).map(r=>r.trim()).filter(Boolean):[i]}function Yc(e,t){const i=String(e||"").trim().toLowerCase(),n=String(t||"").trim().toLowerCase();return!i||!n?!1:!!(i===n||i.startsWith(`${n}-`)||n.startsWith(`${i}-`))}function Mt(e,t,i){return String(t||"").trim()}function Ue(e,t,i="AND"){const n=(t||[]).map(s=>String(s||"").trim()).filter(Boolean);if(n.length===0)return"";if(n.length===1)return`${e}:${n[0]}`;const r=i==="OR"?" OR ":" AND ";return`${e}:(${n.join(r)})`}function Zr(e,t,i,n){const r=[e,t,i].map(s=>String(s||"").trim()).filter(Boolean).join(" ");return es(r,n)}function es(e,t){const i=String(e||"").trim(),n=String(t||"").trim();if(!n)return i;const r=/^[\p{L}\p{N}(]/u.test(n)?" ":"";return`${i}${r}${n}`.trim()}function Xc(e,t){const i=String((e==null?void 0:e.prefix)||"").trim(),n=String((e==null?void 0:e.fname)||"").trim(),r=String((e==null?void 0:e.lname)||"").trim(),s=String((e==null?void 0:e.suffix)||"").trim(),a=[i,n,r].filter(Boolean).join(" ").trim(),o=vt(a,t),l=vt(s,t),c=a&&/^[\p{L}\p{N}(]/u.test(s)?" ":"";return{highlightedNamePrimaryHtml:o,highlightedNameSuffixHtml:l,highlightedNameHtml:s?`${o}${c}<span>${l}</span>`:o}}function Qc(e,t){const i=String(T(e.its_nid)||""),n=String(T(e.id)||""),r=String(i||n||""),s=(t==null?void 0:t[n])||(t==null?void 0:t[r]),a=Dc(s==null?void 0:s.tm_X3b_en_content),o=Cr(a),l=j(e.sm_neutral_all_location).map(Le),c=j(e.sm_neutral_all_location_home_office).map(Le),u=j(e.sm_neutral_all_location_available_to_travel).map(Le),d=j(e.sm_available).map(w=>String(w||"").trim().toLowerCase()),p=j(e.sm_neutral_title_label).map(Rc).filter(
788Boolean),h=T(e.ss_neutral_titles)||p.join(", "),m=String(T(e.ss_neutral_prefix)||"").trim(),_=String(T(e.ss_neutral_fname)||"").trim(),y=String(T(e.ss_neutral_lname)||"").trim(),S=String(T(e.ss_neutral_suffix)||"").trim(),f=Zr(m,_,y,S)||String(T(e.ss_neutral_fullname_prefix_sufix)||"").trim()||String(T(e.ss_neutral_fullname)||"").trim(),g=String(T(e.ss_neutral_office_location_display)||"").trim()||Jr(e);return{id:r,solrId:n,name:f,prefix:m,fname:_,lname:y,suffix:S,location:g,roleSummary:h,profileDescription:"",allLocationDisplayMap:Gc(e.sm_neutral_all_locations_label),contentHighlightSnippets:o?[o]:[],snippet:o,imageSrc:T(e.ss_neutral_image)||T(e.ss_neutral_image_thumb)||"",imageAlt:f||"Neutral profile photo",profileHref:T(e.ss_url)||"#",contactHref:"#",roleValues:j(e.sm_neutral_title_label).map(Le),locationValues:l,homeOfficeLocationValues:c,travelLocationValues:u,availableValues:d,homeOfficeLocationsOrdered:j(e.sm_neutral_all_location_home_office_ordered).map(Jc).sort((w,v)=>w.id-v.id)}}function Jc(e){const t=String(e||"").split("|");return{id:t[1],location_key:t[0]}}function Zc(){return Array.from(document.querySelectorAll("[data-results-list] .new-neutral-result-card")).map(t=>({id:t.dataset.id||"",name:t.dataset.name||"",location:"",roleSummary:"",imageSrc:"",imageAlt:"",profileHref:"#",contactHref:"#",roleValues:(t.dataset.roleValues||"").split("|").filter(Boolean),locationValues:(t.dataset.locationValues||"").split("|").filter(Boolean),travelLocationValues:(t.dataset.travelLocationValues||"").split("|").filter(Boolean),practiceValues:(t.dataset.practiceValues||"").split("|").filter(Boolean),legalExperienceValues:(t.dataset.legalExperienceValues||"").split("|").filter(Boolean),languageValues:(t.dataset.languageValues||"").split("|").filter(Boolean),el:t}))}function eu(e,t){if(Ei(t))return[];const i=String(t||"").trim().toLowerCase(),n=i?Ti(t):[],r=new Set;return(e||[]).filter(s=>!i||String(s.name||"").toLowerCase().includes(i)).filter(s=>r.has(s.id)?!1:(r.add(s.id),!0)).slice(0,jo).map(s=>({id:s.id,name:s.name,highlightedNameHtml:Lr(s.name,n),profileHref:s.profileHref||"#",imageSrc:s.imageSrc||"",imageAlt:s.imageAlt||s.name||"Neutral profile photo"}))}function ts(e){const t=Array.isArray(e==null?void 0:e.practice)?e.practice:[],i=[];return t.forEach(n=>{((n==null?void 0:n.options)||[]).forEach(r=>{const s=String((r==null?void 0:r.label)||"").trim(),a=String((r==null?void 0:r.value)||"").trim();if(!s||!a)return;const o=String((r==null?void 0:r.searchTerms)||"").split(",").map(l=>l.trim()).filter(Boolean);i.push({label:s,value:a,searchTerms:o})})}),i}function tu(e,t){const i=String(t||"").trim(),n=i.toLowerCase(),r=new Set,s=[],a=o=>{const l=String(o||"").trim();if(!l)return;const c=l.toLowerCase();r.has(c)||i&&!c.includes(n)||(r.add(c),s.push({text:l,highlightedHtml:Lr(l,i?[i]:[])}))};return(e||[]).forEach(o=>{if(!i){a(o.label);return}[...o.searchTerms||[],o.label].forEach(a)}),s.sort((o,l)=>o.text.localeCompare(l.text,"en",{sensitivity:"base"}))}const iu=1;function nu(e,t){const i=e.length,n=t.length;if(i===0)return n;if(n===0)return i;let r=Array.from({length:n+1},(a,o)=>o),s=new Array(n+1);for(let a=1;a<=i;a++){s[0]=a;for(let o=1;o<=n;o++){const l=e[a-1]===t[o-1]?0:1;s[o]=Math.min(r[o]+1,s[o-1]+1,r[o-1]+l)}[r,s]=[s,r]}return r[n]}function ru(e,t){return t.some(i=>i.startsWith(e)||e.length>=3&&i.includes(e)?!0:e.length>=6&&i.length>=6?nu(e,i)<=iu:!1)}function su(e,t){return t.some(i=>i===e||e.length>=5&&i.startsWith(e))}function is(e){return Wr([e==null?void 0:e.fname,e==null?void 0:e.lname,e==null?void 0:e.suffix].filter(Boolean).join(" "))}function au(e){return Wr([e==null?void 0:e.profileDescription,e==null?void 0:e.roleSummary,...(e==null?void 0:e.roleValues)||[],...(e==null?void 0:e.practiceValues)||[],...(e==null?void 0:e.languageValues)||[],...(e==null?void 0:e.locationValues)||[],is(e)].join(" "))}function ou(e,t){if(!(t!=null&&t.length))return!0;const i=is(e).split(/\s+/).filter(Boolean);if(t.every(r=>ru(r,i)))return!0;const n=au(e).split(/\s+/).filter(Boolean);return t.every(r=>su(r,n))}function lu(e){var t;return Fc((t=e==null?void 0:e.contentHighlightSnippets)==null?void 0:t[0])}function Ke(e,t,i="or"){if(!t||t.length===0)return!0;const n=r=>(e||[]).some(s=>Yc(s,r));return i==="and"?t.every(r=>n(r)):t.some(r=>n(r))}
788function zi(e,t,i="home"){const n=(t||[]).map(String).filter(Boolean);if(!n.length)return!0;if(n.includes(H))return((e==null?void 0:e.availableValues)||[]).includes("virtual");const r=i==="all"?(e==null?void 0:e.locationValues)||[]:(e==null?void 0:e.homeOfficeLocationValues)||[];return Ke(r,n,"or")}function cu(e,t){if(!String(t||"").trim())return!0;const i=Ti(t);return i.length?ou(e,i):!1}function uu(e,t,i){const n=i==="name_asc"||i==="lastname_asc",r=i.startsWith("lastname")?"lname":"fname",s=r==="lname"?"fname":"lname",a=(c,u)=>c===u?0:c<u?n?-1:1:n?1:-1,o=a(String((e==null?void 0:e[r])||"").toLowerCase(),String((t==null?void 0:t[r])||"").toLowerCase());if(o!==0)return o;const l=a(String((e==null?void 0:e[s])||"").toLowerCase(),String((t==null?void 0:t[s])||"").toLowerCase());return l!==0?l:a(String((e==null?void 0:e.suffix)||"").toLowerCase(),String((t==null?void 0:t.suffix)||"").toLowerCase())}function Me(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const du=6;function fu(){return`
789    <div class="swiper-slide neutral-search-newest__slide neutral-search-newest__slide--loading loading-slide">
790      <div class="neutral-search-newest__loading" aria-hidden="true">
791        <div class="neutral-search-newest__loading-image"></div>
792        <div class="neutral-search-newest__loading-name"></div>
793        <div class="neutral-search-newest__loading-location"></div>
794      </div>
795    </div>
796  `}function pu(e,t=du){var n;const i=(n=e==null?void 0:e.querySelector)==null?void 0:n.call(e,"[data-neutral-search-newest-swiper] .swiper-wrapper");i&&(i.setAttribute("data-loading","true"),i.setAttribute("aria-busy","true"),i.innerHTML=Array.from({length:t},fu).join(""))}function hu(e,t){var n;const i=(n=e==null?void 0:e.querySelector)==null?void 0:n.call(e,"[data-neutral-search-newest-swiper] .swiper-wrapper");!i||!(t!=null&&t.length)||(i.removeAttribute("data-loading"),i.innerHTML=t.map((r,s)=>{const a=r.summary?`<div class="neutral-search-newest__overlay"><p>${r.summary}</p></div>`:"";return`
797        <div class="swiper-slide neutral-search-newest__slide">
798          <a
799            class="neutral-search-newest__card"
800            href="${Me(r.profileHref)}"
801            aria-label="View profile of ${Me(r.name)}"
802          >
803            <div class="neutral-search-newest__image-wrap" style="aspect-ratio: 1 / 1;">
804              <img
805                src="${Me(r.imageSrc)}"
806                alt="${Me(r.imageAlt)}"
807                width="580"
808                height="580"
809              />
810              ${a}
811            </div>
812            <h3 class="neutral-search-newest__name">${Me(r.name)}</h3>
813            <p class="neutral-search-newest__location">${Me(r.location)}</p>
814          </a>
815        </div>
816      `}).join(""))}async function gu(e,t){var o,l;const i=(o=e==null?void 0:e.querySelector)==null?void 0:o.call(e,"[data-component-name='neutral-search-newest']"),n=(l=e==null?void 0:e.querySelector)==null?void 0:l.call(e,"[data-neutral-search-newest-swiper]");if(!i||!n||typeof t!="function")return;const r=n.querySelector(".swiper-wrapper"),s=!!(r!=null&&r.querySelector(".loading-slide")),a=!!(r!=null&&r.querySelector(".neutral-search-newest__card"));r&&!s&&!a?pu(e):r&&s&&(r.setAttribute("data-loading","true"),r.setAttribute("aria-busy","true"));try{const c=await t();c.length?hu(e,c):r&&(r.removeAttribute("data-loading"),r.innerHTML="")}catch(c){console.debug("[new-neutral-search] newest slider fetch failed:",c),r&&(r.removeAttribute("data-loading"),r.innerHTML="")}finally{r&&r.removeAttribute("aria-busy"),mu(e)}}function mu(e){var n,r;const t=(n=e==null?void 0:e.querySelector)==null?void 0:n.call(e,"[data-neutral-search-newest-swiper]"),i=(r=e==null?void 0:e.querySelector)==null?void 0:r.call(e,"[data-neutral-search-newest-pagination]");t&&(t.swiper&&t.swiper.destroy(!0,!0),new G(t,{modules:[kc],slidesPerView:"auto",spaceBetween:24,pagination:{el:i,clickable:!0,type:"bullets"}}))}function _u(e=""){return{cards:[],total:0,locationCounts:{home:0,all:0},requestUrl:e}}const wu=["sm_neutral_title_label","sm_neutral_all_locations_label","sm_neutral_specialties_search_labels","sm_neutral_language_label"];let Ot=null;const ns="locationScope",rs="location_scope_home",ss="location_scope_all";function Su(){return il(vu)}async function vu(){var l;const e=Hi(),{solrUrl:t,solrToken:i}=J();if(!t)return{tokenMap:{legalExperience:Yr(e)},optionGroups:{...yu().optionGroups,legalExperience:e}};const n=String(t).endsWith("?")?t:`${t}?`,r=new URLSearchParams;r.set("q","*"),r.set("wt","json"),r.set("rows","0"),r.set("fl","id"),r.set("hl","false"),r.set("rerank","false"),r.set("omitHeader","true"),r.set("echoParams","none"),r.set("facet","true"),r.set("facet.mincount","1"),r.set("facet.limit","100"),r.set("hl.fragsize",3),r.append("fq","ss_category:neutrals"),wu.forEach(c=>r.append("facet.field",c));const s=await je(`${n}${r.toString()}`,i),a=((l=s==null?void 0:s.facet_counts)==null?void 0:l.facet_fields)||{};return{tokenMap:bu(a,e),optionGroups:xu(a,e)}}function Hi(e={}){const t=Jo();return t.length?t:Hc(e.sm_legal_experience_label)}function yu(){return{tokenMap:{},optionGroups:{location:[],legalExperience:[],role:[],practice:[],language:[]}}}function bu(e,t=Hi(e)){const i={role:{},location:{},practice:{},legalExperience:{},language:{}},n=(r,s)=>{var a;if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const l=String(r[o]||"").trim();if(!l||l==="|")continue;const c=(a=l.split("|")[0])==null?void 0:a.trim();c&&(i[s][c]=c)}};return n(e.sm_neutral_title_label,"role"),n(e.sm_neutral_all_locations_label,"location"),n(e.sm_neutral_specialties_search_labels,"practice"),n(e.sm_neutral_language_label,"language"),i.legalExperience
816=Yr(t),i}function xu(e,t=Hi(e)){const i=(c,u)=>c.label.localeCompare(u.label,"en",{sensitivity:"base"}),n=We(e.sm_neutral_title_label).map(({parts:c})=>({label:c[1]||c[0],value:c[0]})).filter(c=>c.label&&c.value).sort(i),r={};We(e.sm_neutral_all_locations_label).forEach(({parts:c})=>{const u=c[0],[,d="",p=""]=c,h=p||d;!d||!h||!u||(r[d]||(r[d]=[])).push({label:h,value:u})});const s=[{heading:"",options:[{label:"Virtual",value:"virtual"}]}];Object.keys(r).sort((c,u)=>c.localeCompare(u,"en",{sensitivity:"base"})).forEach(c=>{const u=r[c].sort(i).filter((d,p,h)=>h.findIndex(m=>m.value===d.value)===p);u.length&&s.push({heading:c,options:u})});const a=[],o=[];We(e.sm_neutral_specialties_search_labels).forEach(({parts:c})=>{const u=c[0],d=c[1]||c[0];if(!u||!d)return;const p=(c[2]||"").toLowerCase()==="practice_area"?a:o,h=c.length>3?c[c.length-1]:"";p.push({label:d,value:u,searchTerms:h})}),a.sort(i),o.sort(i);const l=We(e.sm_neutral_language_label).map(({parts:c})=>({label:c[1]||c[0],value:c[0]})).filter(c=>c.label&&c.value).sort(i);return{role:[{heading:"Neutral Role",options:n}],location:s,practice:[{heading:"Practice Areas",options:a},{heading:"Industries",options:o}],legalExperience:t,language:[{heading:"",options:l}]}}async function as({filters:e={},keyword:t="",sort:i="lastname_asc",page:n=1,pageSize:r=18,locationScope:s="home",valueTokenMap:a={},legalExperienceMeta:o={}}={}){const{solrUrl:l,solrToken:c}=J();if(!l)return{cards:[],total:0,requestUrl:""};const u=String(l).endsWith("?")?l:`${l}?`,d=new URLSearchParams;if(Ei(t))return _u();const p=Tr(t),h=!!p;d.set("wt","json"),d.set("defType","edismax"),d.set("df","tm_X3b_en_content"),d.set("qf","tm_X3b_en_title sm_name tm_X3b_en_content"),d.set("q",h?p:"*");const m=Math.max(0,(Number(n)-1)*Number(r));d.set("start",String(m)),d.set("rows",String(Math.max(1,Number(r)||18))),d.set("page",String(Math.max(0,Number(n)-1))),d.set("sort",ht[i]||ht.lastname_asc),d.set("hl",h?"true":"false"),h&&(d.set("hl.fl","tm_X3b_en_content"),d.set("hl.fragsize",String(bi)),d.set("hl.snippets",String(Wo)),d.set("hl.simple.pre","<mark>"),d.set("hl.simple.post","</mark>"),d.set("hl.method","unified"),d.set("hl.bs.type","WORD"),d.set("hl.offsetSource","ANALYSIS")),gt(d),d.append("fq","ss_category:neutrals"),ls(d,e,s,a,o),Mu(d,e,s),d.set("fl",Qo(e).join(","));const _=`${u}${d.toString()}`,y=await je(_,c);if(!(y!=null&&y.response))return{cards:[],total:0,requestUrl:_};const S=Array.isArray(y.response.docs)?y.response.docs:[],f=y.highlighting||{};return{cards:S.map(g=>Qc(g,f)),total:Number(y.response.numFound||0),locationCounts:Ou(y,e,s),requestUrl:_}}const Eu=["id","its_nid","ss_url","ss_neutral_prefix","ss_neutral_fname","ss_neutral_lname","ss_neutral_suffix","ss_neutral_fullname","ss_neutral_fullname_prefix_sufix","ss_neutral_image_thumb","sm_neutral_all_location","sm_neutral_all_locations_label","sm_neutral_all_location_home_office","sm_neutral_all_location_home_office_ordered","sm_neutral_practice_areas_export","ss_manager_first_name","ss_manager_last_name","ss_manager_phone","ss_manager_address_1","ss_manager_address_2","ss_manager_city","ss_manager_state","ss_manager_zip"];async function Tu({filters:e={},keyword:t="",sort:i="lastname_asc",locationScope:n="home",valueTokenMap:r={},legalExperienceMeta:s={},maxRows:a=1e4}={}){var m;const{solrUrl:o,solrToken:l}=J();if(!o)return[];const c=String(o).endsWith("?")?o:`${o}?`,u=new URLSearchParams;if(Ei(t))return[];const d=Tr(t);u.set("wt","json"),u.set("defType","edismax"),u.set("df","tm_X3b_en_content"),u.set("qf","tm_X3b_en_title sm_name tm_X3b_en_content"),u.set("q",d||"*"),u.set("start","0"),u.set("rows",String(Math.max(1,Math.min(Number(a)||1e4,1e4)))),u.set("page","0"),u.set("sort",ht[i]||ht.lastname_asc),u.set("hl","false"),gt(u),u.append("fq","ss_category:neutrals"),ls(u,e,n,r,s),u.set("fl",Eu.join(","));const p=`${c}${u.toString()}`,h=await je(p,l);return Array.isArray((m=h==null?void 0:h.response)==null?void 0:m.docs)?h.response.docs:[]}function Au(e,t,i,n){const r=new Set(t.map(String)),s=Array.isArray(i==null?void 0:i.groups)?i.groups:[],a=Ce.legalExperience,o=new Set(s.flatMap(p=>[String(p.headingValue||""),...Array.isArray(p.childValues)?p.childValues.map(String):[]])),l=[],c=new Set,u=p=>{const h=Mt("legalExperience",p);!h||c.has(h)||(c.add(h),l.push(h))};
816s.forEach(p=>{const h=String(p.headingValue||""),m=Array.isArray(p.childValues)?p.childValues.map(String):[],_=m.filter(S=>r.has(S));if(!_.length)return;(h&&r.has(h)||m.length>0&&_.length===m.length?m:_).forEach(u)}),t.filter(p=>!o.has(String(p))).forEach(u);const d=Ue(a,l,Ge.legalExperience);d&&e.append("fq",d)}function Cu(e,t,i,n){const r=(t||[]).map(String),s=r.includes(H),a=r.filter(c=>c!==H);if(s){e.append("fq","sm_available:virtual");return}if(!a.length)return;const o=a.map(c=>Mt("location",c)),l=Ue("sm_neutral_all_location",o,Ge.location);if(l&&e.append("fq",l),i!=="all"){const c=Ue("sm_neutral_all_location_home_office",o,Ge.location);c&&e.append("fq",`{!tag=${ns}}${c}`)}}function Lu(e,t){return((e==null?void 0:e.location)||[]).map(String).filter(i=>i&&i!==H).map(i=>Mt("location",i)).filter(Boolean)}function Mu(e,t,i,n){const s=((t==null?void 0:t.location)||[]).map(String).includes(H),a=Lu(t);if(!(s||!a.length))if(e.set("facet","true"),e.set("facet.limit","0"),i==="all"){const o=Ue("sm_neutral_all_location_home_office",a,Ge.location);o&&e.append("facet.query",`{!key=${rs}}${o}`)}else e.append("facet.query",`{!key=${ss} ex=${ns}}*:*`)}function os(e,t){var r;const n=(((r=e==null?void 0:e.facet_counts)==null?void 0:r.facet_queries)||{})[t];return Number.isFinite(Number(n))?Number(n):null}function Ou(e,t,i){var a;const n=Number(((a=e==null?void 0:e.response)==null?void 0:a.numFound)||0),r=((t==null?void 0:t.location)||[]).map(String);return!r.some(o=>o&&o!==H)||r.includes(H)?{home:n,all:n}:i==="all"?{home:os(e,rs)??n,all:n}:{home:n,all:os(e,ss)??n}}function ls(e,t,i,n,r){pt.forEach(s=>{const a=Ce[s];if(!a)return;const o=((t==null?void 0:t[s])||[]).slice();if(s==="legalExperience"){Au(e,o,r);return}if(s==="location"){Cu(e,o,i);return}const l=o.map(u=>Mt(s,u)),c=Ue(a,l,Ge[s]);c&&e.append("fq",c)})}const Pu=["id","ss_url","ss_neutral_image_thumb","ss_neutral_prefix","ss_neutral_fname","ss_neutral_lname","ss_neutral_suffix","ss_neutral_fullname","ss_neutral_fullname_prefix_sufix","sm_neutral_all_locations_label","sm_neutral_all_location_home_office","sm_neutral_all_location_home_office_ordered","tm_X3b_en_content","ss_field_highlight_sentence"].join(",");function Iu(e){const t=Zr(T(e.ss_neutral_prefix),T(e.ss_neutral_fname),T(e.ss_neutral_lname),T(e.ss_neutral_suffix))||String(T(e.ss_neutral_fullname_prefix_sufix)||T(e.ss_neutral_fullname)||"").trim(),i=String(T(e.ss_field_highlight_sentence)||"").trim()||String(T(e.tm_X3b_en_content)||"").trim();return{id:T(e.id)||T(e.ss_url)||t,name:t,location:Jr(e),imageSrc:T(e.ss_neutral_image_thumb)||"",imageAlt:t||"Neutral profile photo",profileHref:T(e.ss_url)||"#",summary:i||void 0}}async function ku(){var a;const{solrUrl:e,solrToken:t}=J();if(!e)return[];const i=String(e).endsWith("?")?e:`${e}?`,n=new URLSearchParams;n.set("q","*"),n.set("wt","json"),gt(n),n.set("hl","false"),n.set("rerank","false"),n.set("metadata","false"),n.set("omitHeader","true"),n.set("echoParams","none"),n.set("start","0"),n.set("rows",String(qo)),n.set("sort","its_nid desc"),n.append("fq","ss_category:neutrals"),n.append("fq","bs_newest_neutral:true"),n.set("fl",Pu);const r=await je(`${i}${n.toString()}`,t);return(Array.isArray((a=r==null?void 0:r.response)==null?void 0:a.docs)?r.response.docs:[]).map(Iu)}function $u(){return Ot||(Ot=Fu().catch(e=>{throw Ot=null,e})),Ot}async function Fu(){var a;const{solrUrl:e,solrToken:t}=J();if(!e)return[];const i=String(e).endsWith("?")?e:`${e}?`,n=new URLSearchParams;n.set("q","*"),n.set("wt","json"),gt(n),n.set("hl","false"),n.set("rerank","false"),n.set("metadata","false"),n.set("omitHeader","true"),n.set("echoParams","none"),n.set("start","0"),n.set("rows",String(wr)),n.set("sort","ss_neutral_lname asc"),n.append("fq","ss_category:neutrals"),n.set("fl",["ss_url","ss_neutral_fullname","ss_neutral_image_thumb"].join(","));const r=await je(`${i}${n.toString()}`,t);return(Array.isArray((a=r==null?void 0:r.response)==null?void 0:a.docs)?r.response.docs:[]).map(o=>{const l=T(o.ss_url)||"#",c=String(T(o.ss_neutral_fullname)||"").trim();return{id:l||c,name:c,profileHref:l,imageSrc:T(o.ss_neutral_image_thumb)||"",imageAlt:c||"Neutral profile photo"}})}const cs="new-neutral-search:shortlist";function Du(){var e;if(typeof window>"u")return[];try{const t=(e=window.localStorage)==null?void 0:e.getItem(cs);if(!t)return[];const i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}}function us(e){var t;try{(t=window.localStorage)==null||t.setItem(cs,JSON.stringify(e))}catch{}}const ds=1e4,Ru="Neutral Search.pdf",Nu="/api/v1/page-pdf",zu="|||",Hu={marginBottom:"13",marginTop:"10",marginLeft:"8",marginRight:"15",orientation:"Portrait",pageSize:"A4",footer1:"Neutral Search | JAMS Mediation, Arbitration, ADR Services"},Bu=`@media print{
817.pdf-export{
818    display:block!important;
819    font-family:sans-serif !important;
820}
821.pdf-export a {
822    text-decoration: none !important;
823    color: #111 !important;
824}
825.pdf-export .profile-card {
826    display: block !important;
827    margin-bottom: 40px !important;
828    page-break-inside: avoid !important;
829    clear: both !important;
830    overflow: hidden !important;
831}
832.pdf-export .profile-card::after {
833    content: "" !important;
834    display: table !important;
835    clear: both !important;
836}
837.pdf-export .profile-media {
838    width: 180px !important;
839    float: left !important;
840    margin-right: 20px !important;
841    margin-bottom: 10px !important;
842}
843.pdf-export .profile-media img {
844    width: 100% !important;
845    height: auto !important;
846    object-fit: contain !important;
847    max-height: 240px !important;
848    display: block !important;
849}
850.pdf-export .profile-info {
851    overflow: hidden !important;
852    display: block !important;
853}
854.pdf-export .profile-name {
855    font-size: 18px !important;
856    font-weight: bold !important;
857    margin-bottom: 0 !important;
858    display: block !important;
859    text-decoration: none !important;
860    color: #111 !important;
861}
862.pdf-export .profile-name span {
863    display: inline !important;
864}
865.pdf-export .location-info {
866    font-size: 16px !important;
867    margin-bottom: 12px !important;
868    margin-top: 0 !important;
869    color: #111 !important;
870}
871.pdf-export .location-info > p {
872    margin-top: 0 !important;
873}
874.pdf-export .location-info .locations {
875    font-weight: normal !important;
876    font-size: 16px !important;
877    margin-top: 0 !important;
878}
879.pdf-export .case-manager-info {
880    margin-top: 12px !important;
881    margin-bottom: 12px !important;
882}
883.pdf-export .case-manager-info .heading-medium {
884    font-size: 13px !important;
885    font-weight: bold !important;
886    margin-bottom: 0 !important;
887    margin-top: 0 !important;
888}
889.pdf-export .case-manager-info .subtitle {
890    font-size: 16px !important;
891    font-weight: normal !important;
892    margin-bottom: 0 !important;
893    margin-top: 0 !important;
894}
895.pdf-export .case-manager-info p {
896    font-size: 16px !important;
897    line-height: 1.6 !important;
898    margin-bottom: 0!important;
899    margin-top: 0!important;
900}
901.pdf-export .case-manager-info p span {
902    margin-bottom: 0!important;
903    margin-top: 0!important;
904}
905.pdf-export .profile-link a {
906    color: #000000 !important;
907    text-decoration: underline !important;
908    font-size: 12px !important;
909}
910.section-neutrals-search-results .profile-card .location-info .locations {
911    font-weight: normal !important;
912    color: #111 !important;
913}
914.pdf-export .new-neutral-search-hero__description {
915    margin-top: 40px !important;
916    font-family: sans-serif !important;
917    font-size: 16px !important;
918    line-height: 1.5 !important;
919    color: #111 !important;
920}}`,Vu=`<div style="margin-bottom: 64px; text-align: left;">
921<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 300 84" width="200" height="56" style="display: block;">
922<defs><style>.st0{fill:#071d49;}.st1{fill:#a39452;}</style></defs>
923<path class="st0" d="M119.2,24.2c0-3.9,1.9-4.7,5.9-5.1v-2.9h-23.3v2.9c4,.4,5.9,1.2,5.9,5.1v31.1c0,6.5-1.7,9.2-5.8,9.2s-4.6-1.6-4.6-3.6,1.5-2.6,1.5-5.3-2.4-5.4-5.5-5.4-6.6,3.1-6.6,7c0,6.9,6.8,11.4,15.2,11.4s17.3-6.5,17.3-18.6v-25.9Z"/>
924<path class="st0" d="M135.8,47.7l8.1-20.1,8.2,20.1h-16.3ZM238.9,19.1v-2.9h-19.7l-12.8,33.2-12.9-33.2h-21.1v2.9c4.7.4,6.8,1.2,6.8,5.1v29c0,2.4-.2,5-1.1,7.3-.6,1.5-1.8,3.2-3.5,3.4-2,.2-3.5-1.9-4.5-3.3h0c-.8-1.3-1.5-2.8-2-4.1l-16.3-40.2h-8.6l-15.6,38.7c-2.1,5.1-4.6,9.6-8.4,10v2.9h19.5v-2.9c-4.6-.5-7.4-4-4.8-12.1h20.4l1.9,4.6c1.8,4.3.5,7.1-3.6,7.4v2.9h40v-2.9c-5.7-.5-8.2-3.9-8.2-11.8v-28.7l16.7,43.4h3.7l16.7-43.4v35.4c0,3.9-1.9,4.7-5.9,5.1v2.9h23.3v-2.9c-4-.4-5.9-1.2-5.9-5.1V24.2c0-3.9,1.9-4.7,5.9-5.1"/>
925<path class="st0" d="M29.5,42c0-8.4,6.2-15.3,14.2-16.6v-10.1c-10.7,1-19.5,8.3-22.8,18.2,2.7,1.8,4.5,4.9,4.5,8.5s-1.8,6.6-4.5,8.5c3.3,9.9,12.1,17.2,22.8,18.2v-10.1c-8-1.2-14.2-8.2-14.2-16.6"/>
926<path class="st0" d="M15.2,49.7c4.3,0,7.7-3.5,7.7-7.7s-3.5-7.7-7.7-7.7-7.7,3.5-7.7,7.7,3.5,7.7,7.7,7.7"/>
927<path class="st1" d="M67.1,42c0-3.5,1.8-6.6,4.5-8.5-3.3-9.9-12.1-17.2-22.8-18.2v10.1c8,1.2,14.2,8.2,14.2,16.6s-6.2,15.3-14.2,16.6v10.1c10.7-1,19.5-8.3,22.8-18.2-2.7-1.8-4.5-4.9-4.5-8.5"/>
928<path class="st1" d="M77.3,34.3c-4.3,0-7.7,3.5-7.7,7.7s3.5,7.7,7.7,7.7,7.7-3.5,7.7-7.7-3.5-7.7-7.7-7.7"/>
929<path class="st0" d="M262.6,35c-6.4-1.9-12.2-3.7-12.2-9.1s3.8-6.3,8.9-6.3,13,4.2,14.4,12.7h2.9v-13.2c-3.7-2.1-11.1-3.8-16.4-3.8-11.9,0-19.3,6.1-19.3,14.6s9.4,14.2,17.7,17c6.5,2.1,12.5,4,12.5,9.5s-3.4,7.8-9.7,7.8-15.8-3.7-18-14.7h-2.9v14.6c2.6,1.6,9.1,4.5,20.1,4.5s20-6.2,20-16.4-9.6-14.6-18-17.2"/>
930<path class="st0" d="M283,23c0-2.7,2.1-4.8,4.8-4.8s4.8,2.1,4.8,4.8-2.1,4.8-4.8,4.8-4.8-2.1-4.8-4.8ZM283.7,23c0,2.2,1.8,4,4,4s4-1.8,4-4-1.8-4-4-4-4,1.8-4,4ZM289.1,25.7l-1.4-2.2h-.9v2.2h-.8v-5.5h2.2c1,0,1.8.7,1.8,1.7s-1.1,1.6-1.4,1.6l1.5,2.2h-.9ZM286.7,20.9v1.9h1.5c.5,0,1-.4,1-.9s-.5-1-1-1h-1.5Z"/>
931</svg></div>`;function Gu(e){return`<div style="width:100%;display:block;font-family:Arial;font-size:10px;text-align:center;padding-top:23px;">
932    ${e.footer1?`${e.footer1}<br/>`:""}
933    ${e.footer1?`${e.footer2}<br/>`:""}
934    Page %page of %topage
935  </div>`}function ju(e,t){return{filename:t.fileName||document.title,title:t.title||document.title,orientation:t.orientation,page_size:t.pageSize,top:t.marginTop,left:t.marginLeft,right:t.marginRight,bottom:t.marginBottom,footer:Gu(t),css_media_type:"print",html:e}}function qu(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Wu(e){const t=window.URL.createObjectURL(e),i=document.createElement("a");i.style.display="none",i.href=t,i.download=Ru,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(t)}async function Uu(e){if(!(e.headers.get("content-type")||"").includes("application/json"))return`PDF generation failed: ${e.status} ${e.statusText}`;try{const i=await e.json();return(i==null?void 0:i.error)||`PDF generation failed: ${e.status}`}catch{return`PDF generation failed: ${e.status}`}}function fs(){return{...Hu,title:document.title,fileName:document.title,footer2:document.location.href}}function Ku(e){var i;const t=((i=document.querySelector(".footer-text"))==null?void 0:i.innerText)||"";return`<!DOCTYPE html>
936<html>
937  <head>
938    <title>${document.title}</title>
939    <style>${Bu}</style>
940  </head>
941  <body>
942    <div class="pdf-export">
943      ${Vu}
944      ${e.map(n=>n.outerHTML).join("")}
945      <div>${t}</div>
946    </div>
947  </body>
948</html>`}async function Yu(e,t=fs()){const i=await fetch(Nu,{method:"POST",credentials:"same-origin",headers:{"Content-type":"application/x-www-form-urlencoded"}
948,body:qu(ju(e,t))});if(!i.ok)throw new Error(await Uu(i));const n=await i.blob();if(n.size===0)throw new Error("PDF blob is empty");Wu(n)}function ps(e){const t=T(e);return t?t.startsWith("http://")||t.startsWith("https://")?t:`${window.location.origin}${t.startsWith("/")?t:`/${t}`}`:""}function Xu(e){return!Array.isArray(e)||e.length===0?"":e.map(t=>{const[i="",n="",r=""]=String(t||"").split(zu),s=[];return n?s.push(n):i&&s.push(i),r&&s.push(r),s.join(": ")}).filter(Boolean).join(`
949`)}function Qu(e){if(!e)return null;const t=e.ss_manager_first_name,i=T(e.ss_manager_address_1),n=[T(e.ss_manager_address_2),T(e.ss_manager_city),T(e.ss_manager_state),T(e.ss_manager_zip)].filter(Boolean).join(", "),r=T(e.ss_manager_phone);return!t&&!r&&!i?null:{name:t,address1:i,address2:n,phone:r}}function Ju(e){const t=e.sm_neutral_all_locations_label;if(!Array.isArray(t)||t.length===0)return"";const i=Qr(e.sm_neutral_all_location_home_office||[],e.sm_neutral_all_location_home_office_ordered)[0];if(i){const n=t.find(r=>{const[s=""]=String(r).split("|");return s.includes(i)});if(n){const[,,r="",s=""]=String(n).split("|");return r&&s?`${r}, ${s}`:n}}return t[0]}function Zu(e,t){const i=document.createElement("a");i.className="profile-name",i.href=ps(t.ss_url);const n=T(t.ss_neutral_prefix),r=T(t.ss_neutral_fullname),s=T(t.ss_neutral_suffix),a=es([n,r].filter(Boolean).join(" "),s);i.innerHTML=`
950    ${a?`<span>${a}</span>`:""}
951    ${a?`<span>${a}</span>`:""}
952  `,e.appendChild(i)}function ed(e,t){const i=Ju(t);if(!i)return;const n=document.createElement("div");n.className="location-info";const r=document.createElement("p"),s=document.createElement("span");s.className="locations",s.textContent=i,r.appendChild(s),n.appendChild(r),e.appendChild(n)}function td(e,t){const i=Xu(t.sm_neutral_practice_areas_export);if(!i)return;const n=document.createElement("div");n.className="practice-areas-export",n.innerHTML=`<p class="heading-medium">Practice Areas</p><p class="practice-areas-content">${i.replace(/\n/g,"<br>")}</p>`,e.appendChild(n)}function id(e,t){if(!t||!t.name&&!t.phone&&!t.address1)return;const i=document.createElement("div");i.className="case-manager-info",i.innerHTML=`
953    <p class="heading-medium">Case Manager</p>
954    <h2 class="subtitle">${t.name||""}</h2>
955    <p>
956      ${t.address1?`<span>${t.address1}</span><br>`:""}
957      ${t.address2?`<span>${t.address2}</span><br>`:""}
958      ${t.phone?`T: <span>${t.phone}</span><br>`:""}
959    </p>
960  `,e.appendChild(i)}function nd(e,t){const i=document.createElement("div");i.className="profile-link";const n=document.createElement("a"),r=ps(t.ss_url);n.href=r,n.textContent=r,i.appendChild(n),e.appendChild(i)}function rd(e,t=null){const i=document.createElement("div");i.className="profile-card";const n=document.createElement("div");n.className="profile-media";const r=document.createElement("img");r.src=T(e.ss_neutral_image_thumb)||"",r.alt=T(e.ss_neutral_fullname)||"",n.appendChild(r);const s=document.createElement("div");return s.className="profile-info",Zu(s,e),ed(s,e),td(s,e),id(s,t),nd(s,e),i.appendChild(n),i.appendChild(s),i}function sd(e){typeof window.dataLayer>"u"||window.dataLayer.push({event:"export_neutral_results",export_type:e})}function ad(e){return typeof e.getLegalExperienceQueryMeta=="function"?e.getLegalExperienceQueryMeta():{groups:[]}}function od(e){const t=Number(e.totalResults)||0;return t>0?Math.min(t,ds):ds}async function ld(e){var t;return Tu({filters:e.filters,keyword:e.keywordCommitted,sort:e.sort,locationScope:((t=e.filters)==null?void 0:t.locationScope)||"home",valueTokenMap:e.valueTokenMap||{},legalExperienceMeta:ad(e),maxRows:od(e)})}function cd(e){return e.map(t=>rd(t,Qu(t)))}async function ud(e){if(!(e!=null&&e.hasActiveFilters))return;const t=await ld(e);if(!t.length)throw new Error("No neutrals found to export");const i=cd(t),n=Ku(i);await Yu(n,fs()),sd("pdf")}const Bi="page-tool-pdf-loading-overlay",hs="page-tool-pdf-loading";function dd(){let e=document.getElementById(Bi);return e||(e=document.createElement("div"),e.id=Bi,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-hidden","true"),e.innerHTML='<div id="page-tool-pdf-loading-spinner"></div>',document.body.appendChild(e),e)}function fd(){const e=dd();e.classList.add("is-visible"),e.setAttribute("aria-busy","true"),e.setAttribute("aria-hidden","false"),document.body.classList.add(hs)}function pd(){const e=document.getElementById(Bi);e&&(e.classList.remove("is-visible"),e.setAttribute("aria-busy","false"),e.setAttribute("aria-hidden","true")),document.body.classList.remove(hs)}const gs=".new-neutral-search-hero__tools",ms=new WeakSet;let Oe=!1,Vi=null;function _s(){return!!document.querySelector('[data-component-name="new-neutral-search-page"]')}function ws(){if(typeof Vi=="function"){const i=Vi();if(i)return i}const e=document.querySelector('[data-component-name="new-neutral-search-page"]'),t=window.Alpine;return!e||!t||typeof t.$data!="function"?null:t.$data(e)}function Ss(e=document){const t=[];return e.querySelectorAll(`${gs} j-icon-pdf`).forEach(i=>
960t.push(i)),e.querySelectorAll(`${gs} j-page-tool`).forEach(i=>{var n;(n=i.shadowRoot)==null||n.querySelectorAll("j-icon-pdf").forEach(r=>t.push(r))}),t}function Pt(){if(!_s())return;const e=ws(),t=!!(e!=null&&e.hasActiveFilters)&&!Oe;Ss().forEach(i=>{i.classList.toggle("is-disabled",!t),i.classList.toggle("is-loading",Oe),i.toggleAttribute("aria-disabled",!t),i.toggleAttribute("aria-busy",Oe),i.style.pointerEvents=t?"":"none",i.style.opacity=t?"":"0.45",i.style.cursor=t?"pointer":"not-allowed"})}async function hd(e){if(e.preventDefault(),e.stopPropagation(),typeof e.stopImmediatePropagation=="function"&&e.stopImmediatePropagation(),Oe)return;const t=ws();if(t!=null&&t.hasActiveFilters){Oe=!0,Pt(),fd();try{await ud(t)}catch(i){console.error("[new-neutral-search] PDF export failed:",i),window.alert("Failed to generate PDF. Please try again.")}finally{Oe=!1,pd(),Pt()}}}function gd(e){if(ms.has(e))return;ms.add(e);const t=i=>{hd(i)};e.addEventListener("click",t),e.addEventListener("keydown",i=>{i.key!=="Enter"&&i.key!==" "||t(i)})}function Gi(e=document){_s()&&(Ss(e).forEach(gd),Pt())}function md(e){Vi=e,Gi(),window.requestAnimationFrame(()=>Gi()),window.setTimeout(()=>Gi(),500)}function ji(){Pt()}let It=null;function vs(){const e=window.Alpine;!e||typeof e.data!="function"||window.__newNeutralSearchDataDefined||(window.__newNeutralSearchDataDefined=!0,e.data("newNeutralSearch",()=>({filters:{keyword:"",location:[],legalExperience:[],role:[],practice:[],language:[],locationScope:"home"},keywordCommitted:"",optionGroups:{},labelMap:{},valueAliasMap:{},valueTokenMap:{},cards:[],allCards:[],visibleResults:[],totalResults:0,homeOfficeCount:0,allAvailableCount:0,openDropdown:null,sortDropdownOpen:!1,dropdownQuery:{location:"",legalExperience:"",role:"",practice:"",language:""},keywordSuggestions:[],keywordSuggestionsOpen:!1,keywordSuggestionsShowAllLabel:!1,keywordSuggestionActiveIndex:-1,practiceSuggestions:[],practiceSuggestionsOpen:!1,practiceSuggestionActiveIndex:-1,keywordPool:[],keywordPoolReady:!1,keywordPoolLoading:!1,mobileFiltersOpen:!1,mobileShortlistOpen:!1,shortlist:[],shortlistOpen:!1,shortlistMax:Ae,toasts:[],page:1,pageSize:14,sort:"lastname_asc",isDesktop:typeof window<"u"?window.innerWidth>=_r:!0,isLoading:!1,isLoadingMore:!1,resultsListEl:null,resultsSentinelEl:null,lastRequestUrl:"",_toastSeq:0,_resizeHandler:null,_docClickHandler:null,_escKeyHandler:null,_suppressUrlSync:!1,_requestSeq:0,_infiniteObserver:null,_infiniteScrollHandler:null,_infiniteScrollIntentHandler:null,_infiniteCheckRaf:null,_hasUserScrolled:!1,_scrollBaselineY:0,_keywordInputTimer:null,get hasQueryIntent(){var t;return(t=this.keywordCommitted)!=null&&t.trim()?!0:Ve.some(i=>(this.filters[i]||[]).length>0)},get hasActiveFilters(){return this.keywordCommitted.trim().length>0||Ve.some(t=>(this.filters[t]||[]).length>0)},get showLocationScopeToggle(){var i;const t=((i=this.filters)==null?void 0:i.location)||[];return t.length?!t.includes(H):!1},get activeChips(){const t=[],i=this.keywordCommitted.trim();return i&&t.push({field:"keyword",value:i,label:`“${i}”`}),Ve.forEach(n=>{(n==="location"?this.orderValuesByOptionGroups(n,this.filters[n]||[]):this.filters[n]||[]).forEach(s=>{var a;t.push({field:n,value:s,label:((a=this.labelMap[n])==null?void 0:a[s])||s})})}),t},get hasMoreResults(){var t;return(((t=this.visibleResults)==null?void 0:t.length)||0)<(this.totalResults||0)},get sortLabel(){return vr[this.sort]||vr.lastname_asc},async init(){return It||(It=this.runInit(),It)},async runInit(){var n,r;Ve.forEach(s=>{this.optionGroups[s]=[]}),this.labelMap={},this.valueAliasMap={},this.resultsListEl=document.querySelector("[data-results-list]"),this.resultsSentinelEl=document.querySelector("[data-results-sentinel]");const t=document.querySelector("[data-component-name='new-neutral-search-results']");if(t){const s=parseInt(t.dataset.pageSize||"14",10);Number.isFinite(s)&&s>0&&(this.pageSize=s)}this.shortlist=Du();try{const s=await Su();s!=null&&s.optionGroups&&(this.optionGroups=s.optionGroups);const a=(r=(n=window==null?void 0:window.drupalSettings)==null?void 0:n.jamsNeutralSearch)==null?void 0:r.legalExperienceGroups;
960Array.isArray(a)&&a.length&&(this.optionGroups.legalExperience=a),this.valueTokenMap=(s==null?void 0:s.tokenMap)||{},this.labelMap=Nc(this.optionGroups),this.valueAliasMap=zc(this.optionGroups),this.filters.legalExperience=this.normalizeLegalExperienceSelection(this.filters.legalExperience)}catch(s){console.debug("[new-neutral-search] facet metadata fetch failed:",s)}const{solrUrl:i}=J();if(!i){const s=Zc();s.length&&(this.cards=s,this.allCards=s.slice(),this.visibleResults=this.decorateCardsWithHighlights(s.slice(0,this.pageSize)),this.totalResults=s.length,this.homeOfficeCount=s.length,this.allAvailableCount=s.length)}this._resizeHandler=()=>{this.isDesktop=window.innerWidth>=_r,this.isDesktop&&(this.mobileFiltersOpen=!1,this.mobileShortlistOpen=!1)},this._resizeHandler(),window.addEventListener("resize",this._resizeHandler),this._docClickHandler=s=>{var a,o,l,c;(o=(a=s==null?void 0:s.target)==null?void 0:a.closest)!=null&&o.call(a,".new-neutral-filters__keyword")||(this.keywordSuggestionsOpen=!1,this.keywordSuggestionActiveIndex=-1,(c=(l=s==null?void 0:s.target)==null?void 0:l.closest)!=null&&c.call(l,"[data-practice-autocomplete]")||(this.practiceSuggestionsOpen=!1,this.practiceSuggestionActiveIndex=-1))},document.addEventListener("click",this._docClickHandler),this.setupInfiniteObserver(),this.setupInfiniteScrollFallback(),gu(document,ku),this._escKeyHandler=s=>{s.key==="Escape"&&(this.closeDropdown(),this.sortDropdownOpen=!1,this.keywordSuggestionsOpen=!1,this.practiceSuggestionsOpen=!1,this.practiceSuggestionActiveIndex=-1)},document.addEventListener("keydown",this._escKeyHandler),this.hydrateFromUrl(),md(()=>{const s=document.querySelector('[data-component-name="new-neutral-search-page"]'),a=window.Alpine;return!s||!a||typeof a.$data!="function"?null:a.$data(s)}),this.hasQueryIntent?this.applyFilters():(this.syncUrl(),this.visibleResults=this.visibleResults||[],this.queueInfiniteCheck()),ji()},destroy(){this._resizeHandler&&window.removeEventListener("resize",this._resizeHandler),this._docClickHandler&&document.removeEventListener("click",this._docClickHandler),this._escKeyHandler&&(document.removeEventListener("keydown",this._escKeyHandler),this._escKeyHandler=null),this._infiniteObserver&&(this._infiniteObserver.disconnect(),this._infiniteObserver=null),this._infiniteScrollHandler&&(window.removeEventListener("scroll",this._infiniteScrollHandler),this._infiniteScrollHandler=null),this._infiniteScrollIntentHandler&&(window.removeEventListener("wheel",this._infiniteScrollIntentHandler),window.removeEventListener("touchmove",this._infiniteScrollIntentHandler),this._infiniteScrollIntentHandler=null),this._infiniteCheckRaf&&(window.cancelAnimationFrame(this._infiniteCheckRaf),this._infiniteCheckRaf=null),this._keywordInputTimer&&(window.clearTimeout(this._keywordInputTimer),this._keywordInputTimer=null)},toggleDropdown(t){this.sortDropdownOpen=!1,this.openDropdown=this.openDropdown===t?null:t},closeDropdown(){this.openDropdown=null,this.practiceSuggestionsOpen=!1,this.practiceSuggestionActiveIndex=-1},toggleSortDropdown(){this.closeDropdown(),this.sortDropdownOpen=!this.sortDropdownOpen},setSort(t){Sr.includes(t)&&(this.sort=t,this.sortDropdownOpen=!1,this.applyFilters())},closeOnOutsideDropdown(t){var i,n;(n=(i=t==null?void 0:t.target)==null?void 0:i.closest)!=null&&n.call(i,".new-neutral-filter-field__trigger")||this.closeDropdown()},getGroupsForField(t){var i;return Array.isArray((i=this.optionGroups)==null?void 0:i[t])?this.optionGroups[t]:[]},orderValuesByOptionGroups(t,i){const n=new Set((i||[]).map(String));if(!n.size)return[];const r=[],s=(a,o)=>{var u,d;const l=((u=this.labelMap[t])==null?void 0:u[a])||a,c=((d=this.labelMap[t])==null?void 0:d[o])||o;return l.localeCompare(c,"en",{sensitivity:"base"})};return this.getGroupsForField(t).forEach(a=>{const o=[];a!=null&&a.selectableHeading&&(a!=null&&a.headingValue)&&o.push(String(a.headingValue)),((a==null?void 0:a.options)||[]).forEach(c=>{const u=String((c==null?void 0:c.value)||"");u&&o.push(u)});let l=o.filter(c=>n.has(c));t==="location"&&l.length>1&&(l=l.sort(s)),l.forEach(c=>{r.includes(c)||r.push(c)})}
960),(i||[]).forEach(a=>{const o=String(a);r.includes(o)||r.push(o)}),r},getLocationVirtualOptions(t){var i,n;return((n=(i=this.getGroupsForField(t))==null?void 0:i[0])==null?void 0:n.options)||[]},getLocationColumnGroups(t){return this.getGroupsForField(t).slice(1)},matchesQuery(t,i,n,r=""){const s=(this.dropdownQuery[t]||"").trim().toLowerCase();return!s||String(i||"").toLowerCase().includes(s)||String(r||"").toLowerCase().includes(s)?!0:t==="location"||t==="language"||t==="legalExperience"?this.groupHeadingMatchesQuery(t,n):!1},groupHeadingMatchesQuery(t,i){var a;const n=(this.dropdownQuery[t]||"").trim().toLowerCase();if(!n)return!1;const r=Number(i);if(!Number.isInteger(r)||r<0)return!1;const s=String(((a=this.getGroupsForField(t)[r])==null?void 0:a.heading)||"").trim().toLowerCase();return!!s&&s.includes(n)},groupMatchesQuery(t,i,n){const r=(this.dropdownQuery[t]||"").trim().toLowerCase();return r?String((i==null?void 0:i.heading)||"").toLowerCase().includes(r)?!0:((i==null?void 0:i.options)||[]).some(s=>this.matchesQuery(t,(s==null?void 0:s.label)||"",n,s==null?void 0:s.searchTerms)):!1},resetInfiniteScrollSession(){this._hasUserScrolled=!1,this._scrollBaselineY=window.scrollY},markUserScrollIntent(){if(this._hasUserScrolled)return;Math.abs(window.scrollY-this._scrollBaselineY)>=12&&(this._hasUserScrolled=!0)},setupInfiniteObserver(){this._infiniteObserver&&this._infiniteObserver.disconnect(),!(!this.resultsSentinelEl||typeof IntersectionObserver>"u")&&(this._infiniteObserver=new IntersectionObserver(t=>{var i;(i=t[0])!=null&&i.isIntersecting&&this.loadMoreResults({autoTriggered:!0})},{rootMargin:"800px 0px 800px 0px",threshold:0}),this._infiniteObserver.observe(this.resultsSentinelEl))},setupInfiniteScrollFallback(){this._infiniteScrollHandler&&window.removeEventListener("scroll",this._infiniteScrollHandler),this._infiniteScrollIntentHandler&&(window.removeEventListener("wheel",this._infiniteScrollIntentHandler),window.removeEventListener("touchmove",this._infiniteScrollIntentHandler)),this._infiniteScrollHandler=()=>{this.markUserScrollIntent(),this._hasUserScrolled&&this.queueInfiniteCheck()},this._infiniteScrollIntentHandler=()=>{this._hasUserScrolled=!0,this.queueInfiniteCheck()},window.addEventListener("scroll",this._infiniteScrollHandler,{passive:!0}),window.addEventListener("wheel",this._infiniteScrollIntentHandler,{passive:!0}),window.addEventListener("touchmove",this._infiniteScrollIntentHandler,{passive:!0})},shouldLoadMoreByViewportThreshold(){if(!this._hasUserScrolled||!this.hasActiveFilters||this.isLoading||this.isLoadingMore||!this.hasMoreResults||!this.resultsListEl)return!1;const t=this.resultsListEl.getBoundingClientRect(),i=t.top+window.pageYOffset+t.height/2;return window.innerHeight+window.pageYOffset>=i},queueInfiniteCheck(){this._infiniteCheckRaf||(this._infiniteCheckRaf=window.requestAnimationFrame(()=>{this._infiniteCheckRaf=null,this.shouldLoadMoreByViewportThreshold()&&this.loadMoreResults({autoTriggered:!0})}))},normalizeLocationSelection(t){const i=this.orderValuesByOptionGroups("location",Array.from(new Set((t||[]).map(String))));return i.includes(H)&&i.length>1?[H]:i},getLegalExperienceGroups(){return this.getGroupsForField("legalExperience")},getLegalExperienceSelectableGroups(){return this.getLegalExperienceGroups().filter(t=>(t==null?void 0:t.selectableHeading)&&(t==null?void 0:t.headingValue))},getLegalExperienceChildValues(t){return(Array.isArray(t==null?void 0:t.options)?t.options:[]).map(i=>String((i==null?void 0:i.value)||"")).filter(Boolean)},getLegalExperienceQueryMeta(){return{groups:this.getLegalExperienceSelectableGroups().map(t=>({headingValue:String(t.headingValue),childValues:this.getLegalExperienceChildValues(t)}))}},syncLegalExperienceParentCheckboxes(t){const i=new Set((t||[]).map(String));return this.getLegalExperienceSelectableGroups().forEach(n=>{const r=String(n.headingValue),s=this.getLegalExperienceChildValues(n);if(!s.length)return;s.every(o=>i.has(o))?i.add(r):i.delete(r)}),Array.from(i)},normalizeLegalExperienceSelection(t){const i=new Set((t||[]).map(String));
960return this.getLegalExperienceSelectableGroups().forEach(n=>{const r=String(n.headingValue),s=this.getLegalExperienceChildValues(n);s.length&&i.has(r)&&s.forEach(a=>i.add(a))}),this.syncLegalExperienceParentCheckboxes(Array.from(i))},decorateCardsWithHighlights(t){const i=String(this.keywordCommitted||"").trim(),n=!!i,r=Ti(i);return(t||[]).map(s=>{var h;const a=String(((h=s==null?void 0:s.contentHighlightSnippets)==null?void 0:h[0])||(s==null?void 0:s.snippet)||"").trim(),o=n?lu(s):"",l=n&&!!o,c=vt((s==null?void 0:s.roleSummary)||"",r),u=!!(s!=null&&s.roleSummary)&&(!n||!l),d=a&&/<mark\b/i.test(a)?fl(a):vt(o,r),p=Xc(s,r);return{...s,...p,locationDisplayText:Wc(s,this.filters.locationScope,this.filters.location),showProfileDescription:l,showRoleSummary:u,highlightedRoleSummaryHtml:c,highlightedProfileDescriptionHtml:d}})},updatePracticeSuggestions(){const t=String(this.dropdownQuery.practice||"").trim(),i=ts(this.optionGroups);this.practiceSuggestions=tu(i,t),this.practiceSuggestionActiveIndex=-1},showPracticeSuggestions(){this.practiceSuggestionsOpen=!0,this.updatePracticeSuggestions()},handlePracticeDropdownInput(){this.practiceSuggestionsOpen=!0,this.updatePracticeSuggestions()},selectPracticeSuggestion(t){const i=String((t==null?void 0:t.text)||"").trim().toLowerCase();if(!i)return;const n=ts(this.optionGroups),r=new Set((this.filters.practice||[]).map(String));let s=!1;n.forEach(a=>{(a.label.toLowerCase()===i||(a.searchTerms||[]).some(l=>l.toLowerCase()===i))&&!r.has(a.value)&&(r.add(a.value),s=!0)}),s&&(this.filters.practice=Array.from(r),this.page=1,this.applyFilters()),this.dropdownQuery.practice="",this.practiceSuggestionsOpen=!1,this.practiceSuggestionActiveIndex=-1,this.updatePracticeSuggestions()},setActivePracticeSuggestion(t){var r,s;const i=Number(t);if(!Number.isInteger(i)||i<0||i>=this.practiceSuggestions.length)return;this.practiceSuggestionActiveIndex=i,(s=(r=document.querySelectorAll(".new-neutral-filter-dropdown__practice-suggestion")[i])==null?void 0:r.scrollIntoView)==null||s.call(r,{block:"nearest"})},onPracticeSuggestionsMouseLeave(){this.practiceSuggestionActiveIndex=-1},onPracticeSuggestionKeydown(t){const i=t==null?void 0:t.key;if(i){if(i==="Escape"){if(String(this.dropdownQuery.practice||"").trim()){t.preventDefault(),t.stopPropagation(),this.dropdownQuery.practice="",this.updatePracticeSuggestions();return}this.practiceSuggestionsOpen=!1,this.practiceSuggestionActiveIndex=-1;return}if(i==="Tab"){this.practiceSuggestionsOpen=!1;return}if(!this.practiceSuggestionsOpen&&this.practiceSuggestions.length>0&&(i==="ArrowDown"||i==="ArrowUp")){t.preventDefault(),this.practiceSuggestionsOpen=!0,this.setActivePracticeSuggestion(i==="ArrowDown"?0:this.practiceSuggestions.length-1);return}if(!(!this.practiceSuggestionsOpen||this.practiceSuggestions.length===0)){if(i==="ArrowDown"){t.preventDefault();const n=this.practiceSuggestionActiveIndex<this.practiceSuggestions.length-1?this.practiceSuggestionActiveIndex+1:0;this.setActivePracticeSuggestion(n);return}if(i==="ArrowUp"){t.preventDefault();const n=this.practiceSuggestionActiveIndex>0?this.practiceSuggestionActiveIndex-1:this.practiceSuggestions.length-1;this.setActivePracticeSuggestion(n);return}i==="Enter"&&(t.preventDefault(),this.practiceSuggestionActiveIndex>=0&&this.practiceSuggestionActiveIndex<this.practiceSuggestions.length&&this.selectPracticeSuggestion(this.practiceSuggestions[this.practiceSuggestionActiveIndex]))}}},async ensureKeywordPool(){if(!this.keywordPoolReady){if(this._keywordPoolPromise){await this._keywordPoolPromise;return}this._keywordPoolPromise=(async()=>{this.keywordPoolLoading=!0;try{const t=await $u();this.keywordPool=Array.isArray(t)?t:[]}catch{this.keywordPool=[]}finally{this.keywordPoolReady=!0,this.keywordPoolLoading=!1,this._keywordPoolPromise=null}})(),await this._keywordPoolPromise}},getKeywordSuggestionSource(){var t,i;return((t=this.keywordPool)==null?void 0:t.length)>0?this.keywordPool:((i=this.cards)==null?void 0:i.length)>0?this.cards:this.visibleResults},updateKeywordSuggestions(){const t=String(this.filters.keyword||"").trim(),i=this.getKeywordSuggestionSource();this.keywordSuggestions=eu(i,t),this.keywordSuggestionsShowAllLabel=!t&&this.keywordSuggestions.length>0,this.keywordSuggestionActiveIndex=-1},async handleKeywordInput(){const t=String(this.filters.keyword||"").trim();if(!t&&this.keywordSuggestionsOpen){this.keywordPoolReady||await this.ensureKeywordPool(),this.updateKeywordSuggestions();return}this.updateKeywordSuggestions(),t&&(this._keywordInputTimer&&window.clearTimeout(this._keywordInputTimer),this._keywordInputTimer=window.setTimeout(async()=>{this.keywordPoolReady||(await this.ensureKeywordPool(),this.updateKeywordSuggestions())},120))},async showKeywordSuggestions(){this.keywordSuggestionsOpen=!0,await this.ensureKeywordPool(),this.updateKeywordSuggestions()},clearKeyword(){this.filters.keyword="",this.keywordCommitted="",this.keywordSuggestionsOpen=!1,this.keywordSuggestions=[],this.keywordSuggestionActiveIndex=-1,this.page=1,this.applyFilters()},selectKeywordSuggestion(t){if(t){if(t.profileHref&&t.profileHref!=="#"){window.location.href=t.profileHref;return}this.filters.keyword=t.name||"",this.keywordCommitted=this.filters.keyword,this.keywordSuggestionsOpen=!1,this.keywordSuggestionsShowAllLabel=!1,this.keywordSuggestionActiveIndex=-1,this.page=1,this.applyFilters()}}
960,setActiveKeywordSuggestion(t){var r,s;const i=Number(t);if(!Number.isInteger(i)||i<0||i>=this.keywordSuggestions.length)return;this.keywordSuggestionActiveIndex=i,(s=(r=document.querySelectorAll(".new-neutral-filters__keyword-suggestion")[i])==null?void 0:r.scrollIntoView)==null||s.call(r,{block:"nearest"})},onKeywordSuggestionsMouseLeave(){this.keywordSuggestionActiveIndex=-1},onKeywordKeydown(t){const i=t==null?void 0:t.key;if(i){if(i==="Escape"){this.keywordSuggestionsOpen=!1,this.keywordSuggestionActiveIndex=-1;return}if(i==="Tab"){this.keywordSuggestionsOpen=!1;return}if(!this.keywordSuggestionsOpen&&this.keywordSuggestions.length>0&&(i==="ArrowDown"||i==="ArrowUp")){t.preventDefault(),this.keywordSuggestionsOpen=!0,this.setActiveKeywordSuggestion(i==="ArrowDown"?0:this.keywordSuggestions.length-1);return}if(!this.keywordSuggestionsOpen||this.keywordSuggestions.length===0){i==="Enter"&&(t.preventDefault(),this.applyKeyword());return}if(i==="ArrowDown"){t.preventDefault();const n=this.keywordSuggestionActiveIndex<this.keywordSuggestions.length-1?this.keywordSuggestionActiveIndex+1:0;this.setActiveKeywordSuggestion(n);return}if(i==="ArrowUp"){t.preventDefault();const n=this.keywordSuggestionActiveIndex>0?this.keywordSuggestionActiveIndex-1:this.keywordSuggestions.length-1;this.setActiveKeywordSuggestion(n);return}i==="Enter"&&(t.preventDefault(),this.keywordSuggestionActiveIndex>=0&&this.keywordSuggestionActiveIndex<this.keywordSuggestions.length?this.selectKeywordSuggestion(this.keywordSuggestions[this.keywordSuggestionActiveIndex]):this.applyKeyword())}},toggleValue(t,i){if(t==="location"){const r=new Set((this.filters[t]||[]).map(String)),s=String(i||"");r.has(s)?r.delete(s):s===H?(r.clear(),r.add(H)):(r.delete(H),r.add(s)),this.filters[t]=this.normalizeLocationSelection(Array.from(r)),this.page=1,this.applyFilters();return}if(t==="legalExperience"){const r=new Set((this.filters[t]||[]).map(String)),s=String(i||""),a=this.getLegalExperienceSelectableGroups().find(o=>String(o.headingValue)===s);if(a){const o=this.getLegalExperienceChildValues(a);r.has(s)?(r.delete(s),o.forEach(l=>r.delete(l))):(r.add(s),o.forEach(l=>r.add(l)))}else r.has(s)?r.delete(s):r.add(s);this.filters[t]=this.syncLegalExperienceParentCheckboxes(Array.from(r)),this.page=1,this.applyFilters();return}const n=this.filters[t]||[];this.filters[t]=n.includes(i)?n.filter(r=>r!==i):[...n,i],this.page=1,this.applyFilters()},clearField(t){this.filters[t]=[],this.page=1,this.applyFilters()},clearAllFilters(){Ve.forEach(t=>{this.filters[t]=[]}),this.filters.locationScope="home",this.filters.keyword="",this.keywordCommitted="",this.page=1,this.applyFilters()},removeChip(t){t&&(t.field==="keyword"?(this.filters.keyword="",this.keywordCommitted=""):this.filters[t.field]=(this.filters[t.field]||[]).filter(i=>i!==t.value),this.page=1,this.applyFilters())},applyKeyword(){this.keywordCommitted=this.filters.keyword||"",this.keywordSuggestionsOpen=!1,this.keywordSuggestionsShowAllLabel=!1,this.page=1,this.applyFilters()},hydrateFromUrl(){const t=new URLSearchParams(window.location.search),i=(s,a)=>{var l;const o=Uc(a).replace(/^"+|"+$/g,"").trim().toLowerCase();return o?((l=this.valueAliasMap[s])==null?void 0:l[o])||o:""};this._suppressUrlSync=!0,this.filters.keyword=t.get("keyword")||"",this.filters.keyword||(this.filters.keyword=ol(t.get("q")||"")),this.keywordCommitted=this.filters.keyword,this.filters.locationScope=t.get("scope")==="all"?"all":"home",pt.forEach(s=>{const o=(t.get(s)||"").split(",").map(l=>l.trim()).filter(Boolean).map(l=>i(s,l)).filter(Boolean);this.filters[s]=Array.from(new Set(o))}),this.filters.location=this.normalizeLocationSelection(this.filters.location),this.filters.legalExperience
960=this.normalizeLegalExperienceSelection(this.filters.legalExperience);const n=t.get("filters");n&&(pt.forEach(s=>{this.filters[s]=[]}),n.split(";").forEach(s=>{const a=s.indexOf(":");if(a<0)return;const o=s.slice(0,a).trim(),l=s.slice(a+1).trim();if(!o||!l)return;const c=Object.keys(Ce).find(u=>Ce[u]===o)||(o==="sm_judicial_background"?"legalExperience":null);c&&Kc(l).forEach(u=>{const d=i(c,u);d&&!this.filters[c].includes(d)&&this.filters[c].push(d)})})),this.filters.location=this.normalizeLocationSelection(this.filters.location),this.filters.legalExperience=this.normalizeLegalExperienceSelection(this.filters.legalExperience);const r=t.get("sort");Sr.includes(r)&&(this.sort=r),this._suppressUrlSync=!1},syncUrl(){var s;if(this._suppressUrlSync)return;const t=new URLSearchParams,i=(s=this.keywordCommitted)==null?void 0:s.trim();if(i){t.set("keyword",i);const a=al(i);a&&t.set("q",a)}this.filters.locationScope==="all"&&t.set("scope","all");const n=[];pt.forEach(a=>{const o=this.filters[a]||[];if(a==="legalExperience"){this.collectLegalExperienceLegacyFilters(o,n);return}const l=Ce[a];o.forEach(c=>{l&&c&&n.push(`${l}:${Lt(c)}`)})}),n.length>0&&t.set("filters",n.join(";")),this.sort&&this.sort!=="lastname_asc"&&t.set("sort",this.sort);const r=t.toString();window.history.replaceState({},"",`${window.location.pathname}${r?`?${r}`:""}`)},collectLegalExperienceLegacyFilters(t,i){const n=new Set(t.map(String)),r=new Set(this.getLegalExperienceGroups().flatMap(o=>[...o.selectableHeading&&o.headingValue?[String(o.headingValue)]:[],...this.getLegalExperienceChildValues(o)])),s=new Set,a=o=>
960{s.has(o)||(s.add(o),i.push(`${Ce.legalExperience}:${Lt(o)}`))};this.getLegalExperienceQueryMeta().groups.forEach(o=>{const l=o.childValues.filter(u=>n.has(u));(n.has(o.headingValue)&&l.length>0?[o.headingValue]:l).forEach(a)}),t.map(String).filter(o=>o&&!r.has(o)&&!s.has(o)).forEach(a)},setLocationScope(t){this.filters.locationScope=t==="all"?"all":"home";const{solrUrl:i}=J();if(!i&&this.filters.location.length&&this.cards.length){this.page=1,this.applyLocalFilters(),this.syncUrl();return}this.applyFilters()},async loadMoreResults({autoTriggered:t=!1}={}){if(!this.hasActiveFilters||this.isLoading||this.isLoadingMore||!this.hasMoreResults||t&&!this._hasUserScrolled)return;const{solrUrl:i}=J();if(!i){this.page+=1,this.applyLocalFilters();return}const n=this.page+1,r=++this._requestSeq;this.isLoadingMore=!0;try{const s=await as({filters:this.filters,keyword:this.keywordCommitted,sort:this.sort,page:n,pageSize:this.pageSize,locationScope:this.filters.locationScope,valueTokenMap:this.valueTokenMap,legalExperienceMeta:this.getLegalExperienceQueryMeta()});if(r!==this._requestSeq)return;this.page=n;const a=new Set(this.cards.map(l=>String(l.id))),o=(s.cards||[]).filter(l=>!a.has(String(l.id)));this.cards=[...this.cards,...o],this.visibleResults=this.decorateCardsWithHighlights(this.cards.slice()),this.queueInfiniteCheck()}finally{r===this._requestSeq&&(this.isLoadingMore=!1)}},toShortlistEntry(t){return{id:t.id,name:t.name||"",location:t.location||"",imageSrc:t.imageSrc||"",imageAlt:t.imageAlt||"Neutral profile photo",profileUrl:window.location.origin+t.profileHref||"#"}},applyLocalFilters(){const t=this.filters,i=this.keywordCommitted,r=(this.allCards.length?this.allCards:this.cards).filter(l=>!(!cu(l,i)||!Ke(l.roleValues,t.role,"or")||!Ke(l.practiceValues,t.practice,"or")||!Ke(l.legalExperienceValues,t.legalExperience,"or")||!Ke(l.languageValues,t.language,"or")));this.homeOfficeCount=r.filter(l=>zi(l,t.location,"home")).length,this.allAvailableCount=r.filter(l=>zi(l,t.location,"all")).length;const s=r.filter(l=>zi(l,t.location,t.locationScope));s.sort((l,c)=>uu(l,c,this.sort)),this.totalResults=s.length;const a=Math.max(1,Math.ceil((this.totalResults||0)/this.pageSize));this.page>a&&(this.page=a);const o=this.page*this.pageSize;this.visibleResults=this.decorateCardsWithHighlights(s.slice(0,o)),this.queueInfiniteCheck(),this.syncUrl(),ji()},async applyFilters(){var n,r;const{solrUrl:t}=J();if(!t){this.applyLocalFilters();return}if(!this.hasQueryIntent){this.page=1,this.cards=[],this.visibleResults=[],this.totalResults=0,this.homeOfficeCount=0,this.allAvailableCount=0,this.lastRequestUrl="",this.isLoading=!1,this.isLoadingMore=!1,this.syncUrl();return}this.page=1;const i=++this._requestSeq;this.isLoading=!0,this.isLoadingMore=!1,this.resetInfiniteScrollSession(),this.syncUrl(),this.visibleResults=[];try{const s=this.getLegalExperienceQueryMeta(),a=await as({filters:this.filters,keyword:this.keywordCommitted,sort:this.sort,page:1,pageSize:this.pageSize,locationScope:this.filters.locationScope,valueTokenMap:this.valueTokenMap,legalExperienceMeta:s});if(i!==this._requestSeq)return;this.lastRequestUrl=a.requestUrl||"",this.allCards=[],this.cards=a.cards||[],this.totalResults=Number(a.total||0),this.homeOfficeCount=Number(((n=a.locationCounts)==null?void 0:n.home)??this.totalResults),this.allAvailableCount=Number(((r=a.locationCounts)==null?void 0:r.all)??this.totalResults),this.visibleResults=this.decorateCardsWithHighlights(this.cards.slice())}finally{i===this._requestSeq&&(this.isLoading=!1)}ji()},isShortlisted(t){return this.shortlist.some(i=>String(i.id)===String(t))},toggleShortlist(t){if(t!=null&&t.id){if(t.id=String(t.id),this.isShortlisted(t.id)){this.removeFromShortlist(t.id);return}if(this.shortlist.length>=Ae){this.pushToast({message:`You can shortlist up to ${Ae} neutrals at a time.`,count:`(${this.shortlist.length}/${Ae})`});return}this.shortlist=[...this.shortlist,t],us(this.shortlist),this.pushToast({message:`${t.name} added to your contact list`,count:`(${this.shortlist.length}/${Ae})`})}},removeFromShortlist(t){const i=String(t),n=this.shortlist.find(r=>String(r.id)===i);this.shortlist=this.shortlist.filter(r=>String(r.id)!==i),us(this.shortlist),n&&this.pushToast({message:`${n.name} removed from your contact list`,count:`(${this.shortlist.length}/${Ae})`})},submitInquiry(){this.shortlist.length!==0&&(console.info("[new-neutral-search] submit inquiry",this.shortlist),window.dispatchEvent(new CustomEvent("new-neutral-search:submit-inquiry",{detail:{shortlist:this.shortlist.slice()}})))},openContactCaseManager(t){window.dispatchEvent(new CustomEvent("new-neutral-search:open-contact-case-manager",{detail:{neutralId:t}}))},pushToast(t){const i=++this._toastSeq;this.toasts=[...this.toasts,{id:i,...t}],setTimeout(()=>{this.toasts=this.toasts.filter(n=>n.id!==i)},Go)}})))}document.addEventListener("alpine:init",()=>{vs()}),function(){let t=0;const i=100;function n(){const r=window.Alpine;if(!r||typeof r.start!="function"){++t<i&&setTimeout(n,50);return}if(typeof r.data=="function"&&vs(),typeof r.start=="function"&&!window.__alpineStarted){window.__alpineStarted=!0;try{r.start()}catch(s){window.__alpineStarted=!1,console.debug("[new-neutral-search] Alpine already started:",s)}}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n):n()}()})();
961;
962(function(Drupal,once){'use strict';var videoHeroBannerOnceId='video-hero-banner-seamless-loop';var isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);var loadingClass='vhb-loading';var readyClass='vhb-ready';function getBanner(video){if(!video||typeof video.closest!=='function')return null;return video.closest('.video-hero-banner');}function markLoading(video){var banner=getBanner(video);if(!banner||banner.classList.contains(readyClass))return;banner.classList.add(loadingClass);}function markReady(video){var banner=getBanner(video);if(!banner)return;banner.classList.remove(loadingClass);banner.classList.add(readyClass);}function normalizeSourceType(video){if(!video||typeof video.querySelectorAll!=='function')return;
962var sources=video.querySelectorAll('source[video]');for(var i=0;i<sources.length;i++){var declaredType=sources[i].getAttribute('video');if(declaredType&&!sources[i].getAttribute('type'))sources[i].setAttribute('type',declaredType);}}function bindLoadState(video){if(!video)return;markLoading(video);normalizeSourceType(video);video.muted=true;video.defaultMuted=true;video.autoplay=true;video.loop=true;video.playsInline=true;video.setAttribute('preload','auto');video.setAttribute('muted','');video.setAttribute('autoplay','');video.setAttribute('loop','');video.setAttribute('playsinline','');var readyTimeout=window.setTimeout(function(){markReady(video);},4500);var clearReadyTimeout=function(){if(readyTimeout){window.clearTimeout(readyTimeout);readyTimeout=0;}};var onReady=function(){clearReadyTimeout();markReady(video);};video.addEventListener('loadeddata',onReady,{once:true});video.addEventListener('canplay',onReady,{once:true});video.addEventListener('playing',onReady,{once:true});video.addEventListener('error',function(){clearReadyTimeout();var banner=getBanner(video);if(banner){banner.classList.remove(loadingClass);banner.classList.add(readyClass);}},{once:true});if(video.readyState>=2){clearReadyTimeout();markReady(video);}else try{video.load();}catch(e){}try{var playPromise=video.play();if(playPromise&&typeof playPromise.catch==='function')playPromise.catch(function(){});}catch(e){}video.addEventListener('canplay',function(){try{var p=video.play();if(p&&typeof p.catch==='function')p.catch(function(){});}catch(e){}});}function coverDraw(ctx,video,cw,ch){var vw=video.videoWidth;var vh=video.videoHeight;if(!vw||!vh||!cw||!ch)return;var scale=Math.max(cw/vw,ch/vh);var dw=vw*scale;var dh=vh*scale;ctx.drawImage(video,(cw-dw)/2,(ch-dh)/2,dw,dh);}function patchVideo(video){bindLoadState(video);if(!isSafari)return;var container=video.closest('.video-hero-banner-background-video');if(!container)return;var canvas=document.createElement('canvas');canvas.className='vhb-canvas';container.appendChild(canvas);var ctx=canvas.getContext('2d');var raf=0;function resize(){var dpr=window.devicePixelRatio||1;canvas.width=Math.round((canvas.clientWidth||window.innerWidth)*dpr);canvas.height=Math.round((canvas.clientHeight||window.innerHeight)*dpr);}function paint(){if(video.readyState>=2&&!video.paused)coverDraw(ctx,video,canvas.width,canvas.height);raf=requestAnimationFrame(paint);}function start(){if(!raf){resize();paint();}}video.style.opacity='0';video.removeAttribute('loop');video.addEventListener('playing',start);video.addEventListener('ended',function(){video.currentTime=0;video.play();});window.addEventListener('resize',resize);if(!video.paused&&video.readyState>=2)start();}function patchVideosIn(root){if(!root||root.nodeType!==1)return;var videos=once(videoHeroBannerOnceId,'video',root);for(var i=0;i<videos.length;i++)if(videos[i].closest('.video-hero-banner-background-video'))patchVideo(videos[i]);}Drupal.behaviors.videoHeroBannerSeamlessLoop={attach:function(context){var videos=once(videoHeroBannerOnceId,'.video-hero-banner-background-video video',context);for(var i=0;i<videos.length;i++)patchVideo(videos[i]);if(window._videoHeroBannerObserver)return;var containers=document.querySelectorAll('.video-hero-banner-background-video');if(!containers.length)return;var observer=new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++){var added=mutations[i].addedNodes;for(var j=0;j<added.length;j++){var node=added[j];if(node.nodeType!==1)continue;if(node.tagName==='VIDEO')patchVideosIn(node.parentElement||document);else patchVideosIn(node);}}});for(var i=0;i<containers.length;i++)observer.observe(containers[i],{childList:true,subtree:true});window._videoHeroBannerObserver=observer;}};})(Drupal,once);;
963const VideoModal={init(triggerSelector=null){const videoContainers=document.querySelectorAll("[data-video-id]");videoContainers.forEach((container)=>{const videoId=container.dataset.videoId;if(!videoId)return;let trigger=null;if(triggerSelector)trigger=container.querySelector(triggerSelector);else trigger=container.querySelector(".modal-trigger")||container.querySelector("button")||container.querySelector("[role='button']")||container.querySelector("[data-vi
963deo-trigger]")||container;if(trigger){trigger.addEventListener("click",(e)=>{if(trigger.tagName!=="BUTTON")e.preventDefault();e.stopPropagation();this.openModal(videoId,trigger);});trigger.addEventListener("keydown",(e)=>{if(e.key==="Enter"||e.key===" "){e.preventDefault();e.stopPropagation();this.openModal(videoId,trigger);}});}});},openModal(videoId,trigger=null){const event=new CustomEvent("open-video-modal",{detail:{videoId,trigger},bubbles:true});window.dispatchEvent(event);}};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",()=>{VideoModal.init();});else VideoModal.init();if(typeof module!=="undefined"&&module.exports)module.exports=VideoModal;;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.