@visitscotland/component-library 2.0.7 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/manifest.json +1193 -1241
- package/dist/client/scripts/014696e80aae9192e359.js +1 -0
- package/dist/client/scripts/{768110f244f934f60565.js → 01ea361e28a56b3eefcd.js} +1 -1
- package/dist/client/scripts/02035cfde2b723d41fd2.js +1 -0
- package/dist/client/scripts/{d18b2a62bcce47355906.js → 03328a60362cb3651016.js} +1 -1
- package/dist/client/scripts/{8fca3cf4a6b47dd03ec2.js → 066d7b3e707ba3f07a31.js} +1 -1
- package/dist/client/scripts/{a3e65b8f7187d6fef46c.js → 09e119c9d66ee67f1eb8.js} +1 -1
- package/dist/client/scripts/0a96c285d8c41c9f354b.js +1 -0
- package/dist/client/scripts/{0fb04884047cd78dd040.js → 0e46b322bdc18ef31644.js} +1 -1
- package/dist/client/scripts/0ea050cf21103a863726.js +1 -0
- package/dist/client/scripts/0f504c087caa45ac5a91.js +1 -0
- package/dist/client/scripts/10892f1b937b50ba1d62.js +1 -0
- package/dist/client/scripts/{6ba1d8736d354a72a929.js → 108d85dc7a4a383fd057.js} +1 -1
- package/dist/client/scripts/{6ba1d8736d354a72a929.js.LICENSE.txt → 108d85dc7a4a383fd057.js.LICENSE.txt} +1 -1
- package/dist/client/scripts/12414a385315618f4bb6.js +1 -0
- package/dist/client/scripts/{0767f178d388149bd392.js → 13014086fd8244546995.js} +1 -1
- package/dist/client/scripts/{15d19d418d289240628e.js → 1bb7e57b0ae059acb355.js} +1 -1
- package/dist/client/scripts/1c6fc241a7b9c4e10e81.js +1 -0
- package/dist/client/scripts/{894868e2b1aece1929b7.js → 1d2c28937df8b811947c.js} +1 -1
- package/dist/client/scripts/1ea58060bdd59b73f2cc.js +1 -0
- package/dist/client/scripts/{bcdf505d7af0a5b549f7.js → 20f54bb89165798ab7fa.js} +1 -1
- package/dist/client/scripts/{f7e21bd1ee3194fe4f9e.js → 27b848b5c58ce522eff9.js} +1 -1
- package/dist/client/scripts/{77565fda654b75c8d300.js → 285efd3dc49962c1ffb9.js} +1 -1
- package/dist/client/scripts/{06be5a40788608220924.js → 2dfbe8e2da6ca6808d5b.js} +1 -1
- package/dist/client/scripts/31a2579101bbbb9e5f30.js +1 -0
- package/dist/client/scripts/{f3c88f10ff0cecee4136.js → 31f9d972fa4753eaee60.js} +1 -1
- package/dist/client/scripts/35336d2943dd00299222.js +1 -0
- package/dist/client/scripts/{881b30f178e1a6dd0f5b.js → 35459f8c87dadd27e132.js} +1 -1
- package/dist/client/scripts/{0e20aaa05a36cd8048f2.js → 380522fadda741c9b3dc.js} +1 -1
- package/dist/client/scripts/3b406b51b28c32a41fa7.js +1 -0
- package/dist/client/scripts/{767ced5019a52e377db7.js → 3b782f9b1a48bb37ea1b.js} +1 -1
- package/dist/client/scripts/{946ddf507f7126cacd6f.js → 3f7b9965307d21e64c2d.js} +1 -1
- package/dist/client/scripts/4009c947df35b4d5c491.js +1 -0
- package/dist/client/scripts/{a5cac0ea963732ab4842.js → 42746f68f9fa10db59ad.js} +1 -1
- package/dist/client/scripts/{fc21280be0db72746eb1.js → 43310958bc4363082dd8.js} +1 -1
- package/dist/client/scripts/45f0025aa5e0e67e90af.js +1 -0
- package/dist/client/scripts/4859f9d07ba3901fa2d2.js +1 -0
- package/dist/client/scripts/4888c910526a478af55c.js +1 -0
- package/dist/client/scripts/{b1297de176912ca3e016.js → 48d53e3631b7bf81ef29.js} +1 -1
- package/dist/client/scripts/{f299c91e3375f635d678.js → 48e4dad7a650579d6b4e.js} +1 -1
- package/dist/client/scripts/{dc8ffc859bf0fa24a73a.js → 4f262ff6d88d67a5edb0.js} +1 -1
- package/dist/client/scripts/{39cea2687ae01dc1aa3f.js → 5101f1488ecbe8daf71c.js} +2 -2
- package/dist/client/scripts/{39cea2687ae01dc1aa3f.js.LICENSE.txt → 5101f1488ecbe8daf71c.js.LICENSE.txt} +3 -3
- package/dist/client/scripts/{5a695262345dd67bcf57.js → 57f474f5e19eb8baccea.js} +1 -1
- package/dist/client/scripts/5e005447771fd3cd6b2b.js +1 -0
- package/dist/client/scripts/62bdbadba4db64715c90.js +1 -0
- package/dist/client/scripts/{b6e3ad8ca787b28a3686.js → 62be177284dcb3826d3e.js} +1 -1
- package/dist/client/scripts/693c9fdb2abddc041fc8.js +1 -0
- package/dist/client/scripts/6c1ef7ce05ae842acdde.js +1 -0
- package/dist/client/scripts/{ec7a03c7626a87900e8f.js → 6cde0c4a56ffc9a6948a.js} +1 -1
- package/dist/client/scripts/6ce50cc9d208b577f33b.js +1 -0
- package/dist/client/scripts/{e8027df65498e3962468.js → 71533bdc41e1b0d7cf00.js} +1 -1
- package/dist/client/scripts/72914614ed8843afe8e7.js +1 -0
- package/dist/client/scripts/{7bdcf2afcd8cdec0a5d5.js → 72d1baeb2e66131db0da.js} +1 -1
- package/dist/client/scripts/{8b56fe1517ab4d98ad60.js → 743d1b4c9f1c3f1b0fec.js} +1 -1
- package/dist/client/scripts/{89f69635eb151c0743fd.js → 7454ae168051d0e27e19.js} +1 -1
- package/dist/client/scripts/{29a2484751dbe1c5dd1b.js → 756ad53dc252a74decdb.js} +2 -2
- package/dist/client/scripts/{29a2484751dbe1c5dd1b.js.LICENSE.txt → 756ad53dc252a74decdb.js.LICENSE.txt} +2 -2
- package/dist/client/scripts/790f51d005d7150b9f08.js +1 -0
- package/dist/client/scripts/7bec5bb5f97f2464b576.js +1 -0
- package/dist/client/scripts/{a4a4ccf4ff06adbfc89d.js → 7d1b6fb07a662ab1b389.js} +1 -1
- package/dist/client/scripts/7f0830b7d5e434d7a977.js +1 -0
- package/dist/client/scripts/{07c664894dd40b1ec2c4.js → 808a63db7e326de214a9.js} +1 -1
- package/dist/client/scripts/815727531bfef1c70c8f.js +1 -0
- package/dist/client/scripts/{e31b9fc0f6cf4e2bf822.js → 8278060cf6716a57e62c.js} +1 -1
- package/dist/client/scripts/{55fd4c070115ba389108.js → 829fb548fb318cc6c227.js} +1 -1
- package/dist/client/scripts/835ff83b6597e828c6fb.js +1 -0
- package/dist/client/scripts/{0742b07f5cbe3bd13a0e.js → 83e6099b792b76d2ee7f.js} +1 -1
- package/dist/client/scripts/{972d95b6bbc4747a583d.js → 87481837088a84e90ef5.js} +1 -1
- package/dist/client/scripts/8751d1ac21308fc7e78b.js +1 -0
- package/dist/client/scripts/{d6e2bcb97349bafc6845.js → 87c81786aba52ad2c8de.js} +1 -1
- package/dist/client/scripts/{169621f626f3b9a146f0.js → 8a8fc3d15b5f1307b1f3.js} +1 -1
- package/dist/client/scripts/{c0149c75a57e805eba11.js → 8b7ae0ee4655791853d1.js} +1 -1
- package/dist/client/scripts/{76eb53ffa89359303ca5.js → 8d66c9c61aafbfb8863a.js} +1 -1
- package/dist/client/scripts/8f688a3a5f483ff3f90f.js +1 -0
- package/dist/client/scripts/8fc24289899913dd4b9c.js +1 -0
- package/dist/client/scripts/{6e83c6f7c0a90b34622d.js → 90d734ebff6ad86a760a.js} +1 -1
- package/dist/client/scripts/{08084fd865f1ec5277ab.js → 91b2d5bc3c73cd4f18d5.js} +1 -1
- package/dist/client/scripts/{044bfb9482afdccb2697.js → 9423bad82a9386c620dd.js} +1 -1
- package/dist/client/scripts/{b81386e81ff33d989871.js → 951369ed2dd2c6687978.js} +1 -1
- package/dist/client/scripts/95b719eee541df398cb7.js +2 -0
- package/dist/client/scripts/{65d2c51e2beb03874a14.js.LICENSE.txt → 95b719eee541df398cb7.js.LICENSE.txt} +2 -0
- package/dist/client/scripts/{02f9c39b72d346193242.js → 981e11371f3edd17cf06.js} +1 -1
- package/dist/client/scripts/9999938ef7d992beb718.js +1 -0
- package/dist/client/scripts/{9f6f0e367cc189e40326.js → 9a0913e2bb7e116e722a.js} +1 -1
- package/dist/client/scripts/{a21d0b85ce3c288a603a.js → 9c28a3896802882e7e36.js} +1 -1
- package/dist/client/scripts/9cfa0f253a3aebd930a2.js +1 -0
- package/dist/client/scripts/{0f345f8314db04d9d435.js → 9e7c278f3a7892d627bc.js} +1 -1
- package/dist/client/scripts/{ebf40b1e9787e4c1bc89.js → 9faa3989454af4ae1646.js} +1 -1
- package/dist/client/scripts/{ba4de7594bba69128088.js → 9fc3879dcd92ead8420a.js} +1 -1
- package/dist/client/scripts/{2345cfa214f3fd86e5a7.js → a44a0614320595c1e401.js} +1 -1
- package/dist/client/scripts/{594d4a275d4ecc149321.js → a5720cb035b84b05a681.js} +1 -1
- package/dist/client/scripts/a6db4893a81bbd0fa783.js +1 -0
- package/dist/client/scripts/{dc0b35c5cbada76c8f91.js → a7873e3d286e50fba6c9.js} +1 -1
- package/dist/client/scripts/a78ff92ceead2d31f3a9.js +1 -0
- package/dist/client/scripts/a852c8dcfb617afa93f1.js +1 -0
- package/dist/client/scripts/a92bcf3f9625c73de815.js +1 -0
- package/dist/client/scripts/{58dc3d271d377f63d669.js → aea24adeebd8a85f0d9f.js} +1 -1
- package/dist/client/scripts/{768cf090f25d407328a7.js → afae1410930b1f62a50a.js} +1 -1
- package/dist/client/scripts/b0e6c2314243d68e28b0.js +1 -0
- package/dist/client/scripts/b4a23e7a73eae4480216.js +1 -0
- package/dist/client/scripts/{71fa1ec8ea0c9f1362ea.js → b4bb9618e977e9850320.js} +1 -1
- package/dist/client/scripts/{73ed30880b13b6906513.js → b5f382bd1ef86330d29d.js} +1 -1
- package/dist/client/scripts/b5fad640f69afe308f11.js +1 -0
- package/dist/client/scripts/{2e6f4d08f2c68a9da0a6.js → b6a50a2b854d09970111.js} +1 -1
- package/dist/client/scripts/{59722ca7df6b49712bfa.js → b780d82de69f5dc4cc7a.js} +1 -1
- package/dist/client/scripts/b9d33994c69b2a8de5fe.js +1 -0
- package/dist/client/scripts/{d0c0934289c2e798b85d.js → ba790fc15aa9dd2a524f.js} +1 -1
- package/dist/client/scripts/bdb8608eddf7bc7915c8.js +1 -0
- package/dist/client/scripts/{47fa21781c0aa040e130.js → bf90fba0f91fafe15a5e.js} +1 -1
- package/dist/client/scripts/{b1b153480a5b85445472.js → bfa150726b9638580f7f.js} +1 -1
- package/dist/client/scripts/c01ba1121e07f8275c28.js +1 -0
- package/dist/client/scripts/{2806750528d85460028f.js → c05223da24c7e1792d39.js} +1 -1
- package/dist/client/scripts/c2a488a59af6b939a61e.js +1 -0
- package/dist/client/scripts/{dcbb81204c96a54514b3.js → c31b6bc76dcbb113e1c3.js} +1 -1
- package/dist/client/scripts/{6f404e26a825f73c1d7d.js → c3dcd9d23d027dd49374.js} +1 -1
- package/dist/client/scripts/{d5aa3e50a36f5ee91c13.js → c5f754ac600e401a00d3.js} +1 -1
- package/dist/client/scripts/{6cc4b48d94ba68abe2c8.js → c7b72bcfc9e8773232d1.js} +1 -1
- package/dist/client/scripts/{90c6f26e959510c73a4f.js → ccd9487062dbcc1ebfc5.js} +1 -1
- package/dist/client/scripts/{ceb147d872c2cc6d8e43.js → cd7968f5815183867103.js} +1 -1
- package/dist/client/scripts/cdab1ed393767e094329.js +1 -0
- package/dist/client/scripts/{a5841e51763678db6089.js → ce05b548e362b5886d8d.js} +1 -1
- package/dist/client/scripts/{c3ccea24a5c73faaf99e.js → d26a3d80e6c77f61e906.js} +1 -1
- package/dist/client/scripts/{2313512dca4cba19c5cf.js → d2c54ba404a1cf66db40.js} +1 -1
- package/dist/client/scripts/{479f361ffb749af3a689.js → d4eeb46194941881aa05.js} +1 -1
- package/dist/client/scripts/{1166a7c8cccc5e33a8fa.js → d835aaf47a47f0edb3e6.js} +1 -1
- package/dist/client/scripts/{e5b18709069828a4363d.js → d8e6b1ff37198ab047be.js} +1 -1
- package/dist/client/scripts/{1a6fd9c46a800c7022a2.js → d903f620379252e22fa0.js} +1 -1
- package/dist/client/scripts/d942e5ec658c176d6750.js +1 -0
- package/dist/client/scripts/d9a1dbb415d11641ff9f.js +1 -0
- package/dist/client/scripts/{b71233fab69a4991c295.js → de4f0e5200e9af12acbd.js} +1 -1
- package/dist/client/scripts/{7239ca3af4d08b5e2c26.js → e19939887bfd61bfa771.js} +1 -1
- package/dist/client/scripts/e58799bb10a7008421cf.js +1 -0
- package/dist/client/scripts/{ad29eaecaf598090855e.js → e77e41fd26bfb87d7e49.js} +1 -1
- package/dist/client/scripts/{7061fd6c9ef6c41788c5.js → e7a8d37da2ffba5d13f1.js} +1 -1
- package/dist/client/scripts/{101d5fcbe71d6029396c.js → e9354c5fa1fa19dd1c4c.js} +1 -1
- package/dist/client/scripts/{d8471fe1072bae39c0d4.js → e9e4c7e535bc1ca52762.js} +1 -1
- package/dist/client/scripts/{6415433fa4aa0ec17e21.js → ea3032cf5cb7ce6ce3ca.js} +1 -1
- package/dist/client/scripts/ebfecb5cb9655ada3826.js +1 -0
- package/dist/client/scripts/{7017f9066e3a3499e110.js → ec628a75cf6053fcd008.js} +1 -1
- package/dist/client/scripts/{5da4558386ae97434fb7.js → ec98e9fccfc20586c905.js} +1 -1
- package/dist/client/scripts/f03174e16f719c89d9d5.js +1 -0
- package/dist/client/scripts/{229f593f0dcaff056aca.js → f03f3b5330d83aee3dc5.js} +1 -1
- package/dist/client/scripts/f304d9429842a3472c24.js +1 -0
- package/dist/client/scripts/{409fd959bc8c3f49497c.js → f345e980b578a38dcc9a.js} +1 -1
- package/dist/client/scripts/f4709b00f96deef67c51.js +1 -0
- package/dist/client/scripts/f5685cc9549af21468a2.js +1 -0
- package/dist/client/scripts/{9118978a47a3fcaaeeb3.js → f6a0b11764b771115ce2.js} +1 -1
- package/dist/client/scripts/{99adfd75fdf24fa48da0.js → fa9e094c4c8faa227f78.js} +1 -1
- package/dist/client/scripts/{e1ec993bb5b202cb69d5.js → fc5b93e6951cd07be80d.js} +1 -1
- package/dist/client/scripts/{581c0d593f05f48c8b33.js → fe7fd3da91146a0ad576.js} +1 -1
- package/dist/client/scripts/{41968f6b286ccfb1b6f2.js → fe88eb43d773b18a9f11.js} +1 -1
- package/dist/client/scripts/{8fea7091b1b3af2f8c5f.js → ff019a30624b95c825db.js} +1 -1
- package/dist/client/styles/d9a1dbb415d11641ff9f.css +1 -0
- package/dist/client/styles/ebfecb5cb9655ada3826.css +1 -0
- package/dist/client/styles/{229f593f0dcaff056aca.css → f03f3b5330d83aee3dc5.css} +1 -1
- package/dist/components/brandscotland-logo-BbDMkgti.js +1 -0
- package/dist/components/brandscotland-logo-CFk2vaAQ.mjs +4 -0
- package/dist/components/component-entry.d.ts +2 -0
- package/dist/components/components/accordion/Accordion.vue.d.ts +24 -0
- package/dist/components/components/accordion/components/AccordionItem.vue.d.ts +94 -0
- package/dist/components/components/accordion/components/AccordionToggle.vue.d.ts +39 -0
- package/dist/components/components/accordion/index.d.ts +103 -0
- package/dist/components/components/address/Address.vue.d.ts +2 -0
- package/dist/components/components/address/index.d.ts +5 -0
- package/dist/components/components/alert/Alert.vue.d.ts +2 -0
- package/dist/components/components/alert/index.d.ts +5 -0
- package/dist/components/components/article/Article.vue.d.ts +34 -0
- package/dist/components/components/article/components/ArticleSection.vue.d.ts +24 -0
- package/dist/components/components/article/components/ArticleSidebar.vue.d.ts +24 -0
- package/dist/components/components/article/index.d.ts +9 -0
- package/dist/components/components/banner/Banner.vue.d.ts +55 -0
- package/dist/components/components/banner/index.d.ts +3 -0
- package/dist/components/components/blog-details/BlogDetails.vue.d.ts +46 -0
- package/dist/components/components/blog-details/index.d.ts +3 -0
- package/dist/components/components/breadcrumb/Breadcrumb.vue.d.ts +2 -0
- package/dist/components/components/breadcrumb/components/BreadcrumbItem.vue.d.ts +67 -0
- package/dist/components/components/breadcrumb/index.d.ts +4 -0
- package/dist/components/components/button/Button.vue.d.ts +228 -0
- package/dist/components/components/button/index.d.ts +2 -0
- package/dist/components/components/button-toggle-group/ButtonToggleGroup.vue.d.ts +68 -0
- package/dist/components/components/button-toggle-group/index.d.ts +2 -0
- package/dist/components/components/canned-search/CannedSearch.vue.d.ts +135 -0
- package/dist/components/components/canned-search/components/CannedSearchBadges.vue.d.ts +76 -0
- package/dist/components/components/canned-search/components/CannedSearchCategories.vue.d.ts +28 -0
- package/dist/components/components/canned-search/components/CannedSearchCuisines.vue.d.ts +22 -0
- package/dist/components/components/canned-search/components/CannedSearchDates.vue.d.ts +41 -0
- package/dist/components/components/canned-search/components/CannedSearchDuration.vue.d.ts +35 -0
- package/dist/components/components/canned-search/components/CannedSearchLogos.vue.d.ts +73 -0
- package/dist/components/components/canned-search/components/CannedSearchPrice.vue.d.ts +50 -0
- package/dist/components/components/canned-search/components/CannedSearchProductCard.vue.d.ts +141 -0
- package/dist/components/components/canned-search/components/CannedSearchStars.vue.d.ts +39 -0
- package/dist/components/components/canned-search/components/CannedSearchSubHeading.vue.d.ts +43 -0
- package/dist/components/components/canned-search/components/CannedSearchSummaryBox.vue.d.ts +67 -0
- package/dist/components/components/canned-search/components/CannedSearchTourDeparts.vue.d.ts +43 -0
- package/dist/components/components/canned-search/components/CannedSearchTourRuns.vue.d.ts +59 -0
- package/dist/components/components/canned-search/index.d.ts +27 -0
- package/dist/components/components/caption/Caption.vue.d.ts +82 -0
- package/dist/components/components/caption/components/CaptionImageMap.vue.d.ts +67 -0
- package/dist/components/components/caption/index.d.ts +7 -0
- package/dist/components/components/carbon-calculator/CarbonCalculator.vue.d.ts +239 -0
- package/dist/components/components/carbon-calculator/components/CarbonCalculatorIntro.vue.d.ts +2 -0
- package/dist/components/components/carbon-calculator/components/CarbonCalculatorQuestion.vue.d.ts +151 -0
- package/dist/components/components/carbon-calculator/components/CarbonCalculatorResults.vue.d.ts +204 -0
- package/dist/components/components/carbon-calculator/components/CarbonCalculatorRunningTotal.vue.d.ts +45 -0
- package/dist/components/components/carbon-calculator/components/CarbonCalculatorTip.vue.d.ts +23 -0
- package/dist/components/components/carbon-calculator/index.d.ts +5 -0
- package/dist/components/components/carousel/Carousel.vue.d.ts +134 -0
- package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +176 -0
- package/dist/components/components/carousel/index.d.ts +7 -0
- package/dist/components/components/checkbox/Checkbox.vue.d.ts +218 -0
- package/dist/components/components/checkbox/index.d.ts +2 -0
- package/dist/components/components/cookie-checker/CookieChecker.vue.d.ts +17 -0
- package/dist/components/components/cookie-checker/index.d.ts +2 -0
- package/dist/components/components/description-list/DescriptionList.vue.d.ts +20 -0
- package/dist/components/components/description-list/components/DescriptionListItem.vue.d.ts +20 -0
- package/dist/components/components/description-list/index.d.ts +4 -0
- package/dist/components/components/dropdown/Dropdown.vue.d.ts +16 -0
- package/dist/components/components/dropdown/components/DropdownItem.vue.d.ts +2 -0
- package/dist/components/components/dropdown/index.d.ts +4 -0
- package/dist/components/components/embed-wrapper/EmbedWrapper.vue.d.ts +78 -0
- package/dist/components/components/embed-wrapper/index.d.ts +5 -0
- package/dist/components/components/footer/Footer.vue.d.ts +2 -0
- package/dist/components/components/footer/components/FooterAccordionItem.vue.d.ts +84 -0
- package/dist/components/components/footer/components/FooterCopyright.vue.d.ts +36 -0
- package/dist/components/components/footer/components/FooterNavList.vue.d.ts +24 -0
- package/dist/components/components/footer/components/FooterNavListItem.vue.d.ts +54 -0
- package/dist/components/components/footer/components/FooterSocialItem.vue.d.ts +53 -0
- package/dist/components/components/footer/components/FooterSocialMenu.vue.d.ts +2 -0
- package/dist/components/components/footer/components/FooterUtilityList.vue.d.ts +2 -0
- package/dist/components/components/footer/index.d.ts +19 -0
- package/dist/components/components/form/Form.vue.d.ts +339 -0
- package/dist/components/components/form/index.d.ts +5 -0
- package/dist/components/components/global-menu/GlobalMenu.vue.d.ts +39 -0
- package/dist/components/components/global-menu/components/GlobalMenuDropdown.vue.d.ts +48 -0
- package/dist/components/components/global-menu/components/GlobalMenuLanguage.vue.d.ts +49 -0
- package/dist/components/components/global-menu/components/GlobalMenuLanguageItem.vue.d.ts +66 -0
- package/dist/components/components/global-menu/components/GlobalMenuList.vue.d.ts +32 -0
- package/dist/components/components/global-menu/index.d.ts +13 -0
- package/dist/components/components/grid/Col.vue.d.ts +2 -0
- package/dist/components/components/grid/Container.vue.d.ts +2 -0
- package/dist/components/components/grid/Row.vue.d.ts +2 -0
- package/dist/components/components/grid/index.d.ts +5 -0
- package/dist/components/components/heading/Heading.vue.d.ts +78 -0
- package/dist/components/components/heading/index.d.ts +2 -0
- package/dist/components/components/html-error/HtmlError.vue.d.ts +35 -0
- package/dist/components/components/html-error/index.d.ts +5 -0
- package/dist/components/components/icentre/Icentre.vue.d.ts +2 -0
- package/dist/components/components/icentre/index.d.ts +5 -0
- package/dist/components/components/icon/Icon.vue.d.ts +142 -0
- package/dist/components/components/icon/index.d.ts +88 -0
- package/dist/components/components/icon-list/IconList.vue.d.ts +20 -0
- package/dist/components/components/icon-list/components/IconListItem.vue.d.ts +32 -0
- package/dist/components/components/icon-list/index.d.ts +7 -0
- package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +276 -0
- package/dist/components/components/image-with-caption/index.d.ts +5 -0
- package/dist/components/components/img/Img.vue.d.ts +121 -0
- package/dist/components/components/img/index.d.ts +2 -0
- package/dist/components/components/index.d.ts +115 -0
- package/dist/components/components/input/Input.vue.d.ts +310 -0
- package/dist/components/components/input/index.d.ts +2 -0
- package/dist/components/components/itineraries/Itinerary.vue.d.ts +43 -0
- package/dist/components/components/itineraries/components/ItineraryDay.vue.d.ts +66 -0
- package/dist/components/components/itineraries/components/ItineraryStop.vue.d.ts +46 -0
- package/dist/components/components/itineraries/components/ItineraryStopInfo.vue.d.ts +175 -0
- package/dist/components/components/itineraries/components/ItineraryTips.vue.d.ts +8 -0
- package/dist/components/components/itineraries/index.d.ts +8 -0
- package/dist/components/components/itineraries/itineraries.store.d.ts +31 -0
- package/dist/components/components/link/Link.vue.d.ts +133 -0
- package/dist/components/components/link/index.d.ts +5 -0
- package/dist/components/components/link-list/LinkList.vue.d.ts +2 -0
- package/dist/components/components/link-list/components/LinkListItem.vue.d.ts +77 -0
- package/dist/components/components/link-list/index.d.ts +7 -0
- package/dist/components/components/list/List.vue.d.ts +50 -0
- package/dist/components/components/list/index.d.ts +2 -0
- package/dist/components/components/listicle/ListicleItem.vue.d.ts +52 -0
- package/dist/components/components/listicle/index.d.ts +5 -0
- package/dist/components/components/loading-spinner/LoadingSpinner.vue.d.ts +18 -0
- package/dist/components/components/loading-spinner/index.d.ts +5 -0
- package/dist/components/components/map/Map.vue.d.ts +370 -0
- package/dist/components/components/map/components/MapMarker.vue.d.ts +87 -0
- package/dist/components/components/map/index.d.ts +7 -0
- package/dist/components/components/map-index.d.ts +4 -0
- package/dist/components/components/map-marker-icon/MapMarkerIcon.vue.d.ts +50 -0
- package/dist/components/components/map-marker-icon/index.d.ts +5 -0
- package/dist/components/components/map-with-sidebar/MapWithSidebar.vue.d.ts +366 -0
- package/dist/components/components/map-with-sidebar/components/MapWithSidebarButtons.vue.d.ts +39 -0
- package/dist/components/components/map-with-sidebar/components/MapWithSidebarCategory.vue.d.ts +57 -0
- package/dist/components/components/map-with-sidebar/components/MapWithSidebarControls.vue.d.ts +16 -0
- package/dist/components/components/map-with-sidebar/components/MapWithSidebarDetail.vue.d.ts +36 -0
- package/dist/components/components/map-with-sidebar/components/MapWithSidebarListItem.vue.d.ts +65 -0
- package/dist/components/components/map-with-sidebar/components/MapWithSidebarPanel.vue.d.ts +274 -0
- package/dist/components/components/map-with-sidebar/components/MapWithSidebarSubcategory.vue.d.ts +35 -0
- package/dist/components/components/map-with-sidebar/index.d.ts +19 -0
- package/dist/components/components/mega-nav/MegaNav.vue.d.ts +169 -0
- package/dist/components/components/mega-nav/components/MegaNavAccordionItem.vue.d.ts +84 -0
- package/dist/components/components/mega-nav/components/MegaNavDropdown.vue.d.ts +44 -0
- package/dist/components/components/mega-nav/components/MegaNavDropdownContainer.vue.d.ts +57 -0
- package/dist/components/components/mega-nav/components/MegaNavFeaturedEvent.vue.d.ts +29 -0
- package/dist/components/components/mega-nav/components/MegaNavFeaturedItem.vue.d.ts +48 -0
- package/dist/components/components/mega-nav/components/MegaNavList.vue.d.ts +22 -0
- package/dist/components/components/mega-nav/components/MegaNavListItem.vue.d.ts +58 -0
- package/dist/components/components/mega-nav/components/MegaNavMobileMenu.vue.d.ts +24 -0
- package/dist/components/components/mega-nav/components/MegaNavStaticLink.vue.d.ts +54 -0
- package/dist/components/components/mega-nav/components/MegaNavTopMenu.vue.d.ts +2 -0
- package/dist/components/components/megalinks/Megalinks.vue.d.ts +128 -0
- package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +194 -0
- package/dist/components/components/megalinks/components/megalink-link-list/index.d.ts +5 -0
- package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +233 -0
- package/dist/components/components/megalinks/components/megalink-multi-image/index.d.ts +5 -0
- package/dist/components/components/megalinks/components/megalink-single-image/MegalinkSingleImage.vue.d.ts +59 -0
- package/dist/components/components/megalinks/components/megalink-single-image/index.d.ts +5 -0
- package/dist/components/components/megalinks/index.d.ts +5 -0
- package/dist/components/components/modal/Modal.vue.d.ts +82 -0
- package/dist/components/components/modal/index.d.ts +2 -0
- package/dist/components/components/module-wrapper/ModuleWrapper.vue.d.ts +22 -0
- package/dist/components/components/module-wrapper/index.d.ts +5 -0
- package/dist/components/components/number-input/NumberInput.vue.d.ts +294 -0
- package/dist/components/components/number-input/index.d.ts +2 -0
- package/dist/components/components/page-intro/PageIntro.vue.d.ts +60 -0
- package/dist/components/components/page-intro/index.d.ts +2 -0
- package/dist/components/components/panel/Panel.vue.d.ts +2 -0
- package/dist/components/components/panel/index.d.ts +2 -0
- package/dist/components/components/product-search/ProductSearch.vue.d.ts +64 -0
- package/dist/components/components/product-search/components/Autocomplete.vue.d.ts +37 -0
- package/dist/components/components/product-search/components/DateInput.vue.d.ts +27 -0
- package/dist/components/components/product-search/components/DateRange.vue.d.ts +48 -0
- package/dist/components/components/product-search/components/GuestSelector.vue.d.ts +15 -0
- package/dist/components/components/product-search/components/GuestSelectorNumberGroup.vue.d.ts +45 -0
- package/dist/components/components/product-search/components/GuestSelectorRow.vue.d.ts +31 -0
- package/dist/components/components/product-search/components/ProductSearchEmbed.vue.d.ts +55 -0
- package/dist/components/components/product-search/index.d.ts +2 -0
- package/dist/components/components/progress-bar/ProgressBar.vue.d.ts +96 -0
- package/dist/components/components/progress-bar/index.d.ts +5 -0
- package/dist/components/components/quote/Quote.vue.d.ts +21 -0
- package/dist/components/components/quote/index.d.ts +23 -0
- package/dist/components/components/radio-button/RadioButton.vue.d.ts +233 -0
- package/dist/components/components/recaptcha/Recaptcha.vue.d.ts +111 -0
- package/dist/components/components/recaptcha/index.d.ts +5 -0
- package/dist/components/components/rich-text-wrapper/RichTextWrapper.vue.d.ts +24 -0
- package/dist/components/components/rich-text-wrapper/index.d.ts +5 -0
- package/dist/components/components/select/Select.vue.d.ts +213 -0
- package/dist/components/components/select/index.d.ts +2 -0
- package/dist/components/components/site-search/SiteSearch.vue.d.ts +27 -0
- package/dist/components/components/site-search/components/SiteSearchForm.vue.d.ts +100 -0
- package/dist/components/components/site-search/index.d.ts +7 -0
- package/dist/components/components/ski-scotland/ski-scotland-card/SkiScotlandCard.vue.d.ts +336 -0
- package/dist/components/components/ski-scotland/ski-scotland-card/index.d.ts +5 -0
- package/dist/components/components/ski-scotland/ski-scotland-status/SkiScotlandStatus.vue.d.ts +689 -0
- package/dist/components/components/ski-scotland/ski-scotland-status/index.d.ts +5 -0
- package/dist/components/components/skip-to/SkipTo.vue.d.ts +28 -0
- package/dist/components/components/skip-to/index.d.ts +5 -0
- package/dist/components/components/social-credit-link/SocialCreditLink.vue.d.ts +50 -0
- package/dist/components/components/social-credit-link/index.d.ts +5 -0
- package/dist/components/components/social-share/SocialShare.vue.d.ts +141 -0
- package/dist/components/components/social-share/components/SocialShareItem.vue.d.ts +76 -0
- package/dist/components/components/social-share/index.d.ts +7 -0
- package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +219 -0
- package/dist/components/components/stretched-link-card/components/StretchedLinkPanels.vue.d.ts +67 -0
- package/dist/components/components/stretched-link-card/index.d.ts +7 -0
- package/dist/components/components/summary-box/SummaryBoxList.vue.d.ts +2 -0
- package/dist/components/components/summary-box/components/SummaryBoxDistanceListItem.vue.d.ts +99 -0
- package/dist/components/components/summary-box/components/SummaryBoxListItem.vue.d.ts +67 -0
- package/dist/components/components/summary-box/index.d.ts +5 -0
- package/dist/components/components/svg/Svg.vue.d.ts +75 -0
- package/dist/components/components/svg/index.d.ts +5 -0
- package/dist/components/components/svg-link/SvgLink.vue.d.ts +126 -0
- package/dist/components/components/svg-link/index.d.ts +5 -0
- package/dist/components/components/table/Table.vue.d.ts +41 -0
- package/dist/components/components/table/components/TableBody.vue.d.ts +2 -0
- package/dist/components/components/table/components/TableDataCell.vue.d.ts +20 -0
- package/dist/components/components/table/components/TableFooter.vue.d.ts +2 -0
- package/dist/components/components/table/components/TableHead.vue.d.ts +2 -0
- package/dist/components/components/table/components/TableHeaderCell.vue.d.ts +20 -0
- package/dist/components/components/table/components/TableRow.vue.d.ts +2 -0
- package/dist/components/components/table/index.d.ts +9 -0
- package/dist/components/components/tabs/Tabs.vue.d.ts +2 -0
- package/dist/components/components/tabs/components/TabItem.vue.d.ts +18 -0
- package/dist/components/components/tabs/index.d.ts +9 -0
- package/dist/components/components/tag/Tag.vue.d.ts +18 -0
- package/dist/components/components/tag/index.d.ts +5 -0
- package/dist/components/components/tag-manager-wrapper/TagManagerWrapper.vue.d.ts +48 -0
- package/dist/components/components/tag-manager-wrapper/index.d.ts +2 -0
- package/dist/components/components/toggle-button/ToggleButton.vue.d.ts +24 -0
- package/dist/components/components/toggle-button/index.d.ts +5 -0
- package/dist/components/components/tooltip/Tooltip.vue.d.ts +39 -0
- package/dist/components/components/tooltip/index.d.ts +2 -0
- package/dist/components/components/video/Video.vue.d.ts +264 -0
- package/dist/components/components/video-caption/VideoCaption.vue.d.ts +96 -0
- package/dist/components/components/video-caption/index.d.ts +5 -0
- package/dist/components/components/warning/Warning.vue.d.ts +60 -0
- package/dist/components/components/warning/index.d.ts +5 -0
- package/dist/components/constants.d.ts +14 -0
- package/dist/components/cookie-coo-Bc1O8aR_.js +1 -0
- package/dist/components/cookie-coo-BpVlZYES.mjs +4 -0
- package/dist/components/deprecated-BJ2e68Yo.js +13 -0
- package/dist/components/deprecated-SV4OJNeR.mjs +16 -0
- package/dist/components/directives/click-outside.d.ts +5 -0
- package/dist/components/directives/hand-down-focus.d.ts +7 -0
- package/dist/components/fonts.css +1 -0
- package/dist/components/highland-cow-6AoCzBpF.mjs +18 -0
- package/dist/components/highland-cow-DlMGnebG.js +15 -0
- package/dist/components/iCentre-BLimkPxI.mjs +46 -0
- package/dist/components/iCentre-BnLcpIw8.js +43 -0
- package/dist/components/icons.css +9 -0
- package/dist/components/instagram-filled-CGGEG-Rb.mjs +4 -0
- package/dist/components/instagram-filled-CvF3WA5q.js +1 -0
- package/dist/components/maps.css +1 -0
- package/dist/components/maps.js +508 -0
- package/dist/components/maps.mjs +20815 -0
- package/dist/components/mixins/__mocks__/verifyCookiesMixin.d.ts +13 -0
- package/dist/components/mixins/ariaDescriptionMixin.d.ts +6 -0
- package/dist/components/mixins/cookieMixin.d.ts +12 -0
- package/dist/components/mixins/dataLayerMixin.d.ts +19 -0
- package/dist/components/mixins/mapIconMapping.d.ts +8 -0
- package/dist/components/mixins/srcSetMixin.d.ts +9 -0
- package/dist/components/mixins/validateFormElementMixin.d.ts +37 -0
- package/dist/components/mixins/verifyCookiesMixin.d.ts +13 -0
- package/dist/components/no-js-coo-BEt1aICD.js +1 -0
- package/dist/components/no-js-coo-BgxQI1Or.mjs +4 -0
- package/dist/components/os-logo-maps-DUN8X-lQ.mjs +13 -0
- package/dist/components/os-logo-maps-QXAuept_.js +10 -0
- package/dist/components/os-logo-maps-white-BTtf_Eki.js +7 -0
- package/dist/components/os-logo-maps-white-SKYtuD6d.mjs +10 -0
- package/dist/components/prototype-DQocvgQh.js +13 -0
- package/dist/components/prototype-lvwJzV8T.mjs +16 -0
- package/dist/components/ready-CWPx4e9A.mjs +15 -0
- package/dist/components/ready-D9pdKFkx.js +12 -0
- package/dist/components/review-7L3On10m.js +12 -0
- package/dist/components/review-CknihZl_.mjs +15 -0
- package/dist/components/stores/cookies.store.d.ts +19 -0
- package/dist/components/stores/dataLayer.store.d.ts +32 -0
- package/dist/components/stores/index.d.ts +4 -0
- package/dist/components/stores/map.store.d.ts +49 -0
- package/dist/components/stores/video.store.d.ts +21 -0
- package/dist/components/types/types.d.ts +33 -0
- package/dist/components/utils/axios.d.ts +1 -0
- package/dist/components/utils/breakpoints.d.ts +2 -0
- package/dist/components/utils/check-vendor-library.d.ts +2 -0
- package/dist/components/utils/data-layer-templates.d.ts +17 -0
- package/dist/components/utils/event-bus.d.ts +15 -0
- package/dist/components/utils/get-env-value.d.ts +2 -0
- package/dist/components/utils/get-token.d.ts +2 -0
- package/dist/components/utils/hash-code.d.ts +2 -0
- package/dist/components/utils/js-is-disabled.d.ts +2 -0
- package/dist/components/utils/lang.d.ts +8 -0
- package/dist/components/utils/one-trust.d.ts +11 -0
- package/dist/components/utils/os-branding.d.ts +14 -0
- package/dist/components/utils/required-cookies-data.d.ts +8 -0
- package/dist/components/utils/svg-context.d.ts +2 -0
- package/dist/components/utils/utils.d.ts +11 -0
- package/dist/components/v4-Dx4zqkIC.mjs +7197 -0
- package/dist/components/v4-tWlzORDj.js +36 -0
- package/dist/components/v4.css +1 -0
- package/dist/components/visitscotland-logo-BEiiuSpo.mjs +7 -0
- package/dist/components/visitscotland-logo-NoymCLtN.js +4 -0
- package/dist/components/vs-component-library.css +1 -0
- package/dist/components/vs-component-library.js +334 -0
- package/dist/components/vs-component-library.mjs +33376 -0
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{7de538737e9da242b06b.css → 211d08bce5200444ec34.css} +7 -6
- package/package.json +231 -201
- package/CHANGELOG.md +0 -1226
- package/dist/client/scripts/22667a258087a1250b73.js +0 -1
- package/dist/client/scripts/23348ae8c72907e38980.js +0 -1
- package/dist/client/scripts/2a6eb9437415815a7c8b.js +0 -1
- package/dist/client/scripts/2d1919731dec95c3ab78.js +0 -1
- package/dist/client/scripts/2e55f379e6484c0f2739.js +0 -1
- package/dist/client/scripts/377d2b3d73725d46c3b9.js +0 -1
- package/dist/client/scripts/386f7ca55b7614ccfff6.js +0 -1
- package/dist/client/scripts/478bda1ed98f48e890ad.js +0 -1
- package/dist/client/scripts/49598e01d3e5612354ed.js +0 -1
- package/dist/client/scripts/4c79c3b75fe74372b440.js +0 -1
- package/dist/client/scripts/4d939c5862fea5e64e5c.js +0 -1
- package/dist/client/scripts/4ef6e4944d6fdb2418e8.js +0 -1
- package/dist/client/scripts/5017a70de73841a396da.js +0 -1
- package/dist/client/scripts/53a30f855892e62d2940.js +0 -1
- package/dist/client/scripts/5569bb64f8f5205efa41.js +0 -1
- package/dist/client/scripts/57a4d1a4d7414143c481.js +0 -1
- package/dist/client/scripts/58a7210037a7cf7843b0.js +0 -1
- package/dist/client/scripts/5a78fd7739edf164bffc.js +0 -1
- package/dist/client/scripts/5ca7c046bdea4196601e.js +0 -1
- package/dist/client/scripts/5d1af8b5899f0a7d20b5.js +0 -1
- package/dist/client/scripts/5d25dbe04690abb995ba.js +0 -1
- package/dist/client/scripts/64719834daea9cc3b873.js +0 -1
- package/dist/client/scripts/65d2c51e2beb03874a14.js +0 -2
- package/dist/client/scripts/6738510c4fca5f603347.js +0 -1
- package/dist/client/scripts/6845c21345c034494aab.js +0 -1
- package/dist/client/scripts/729011a4abbe01b0cea6.js +0 -1
- package/dist/client/scripts/7579965411b0db902771.js +0 -1
- package/dist/client/scripts/758ca7e7bbf77700b5d7.js +0 -1
- package/dist/client/scripts/779a65202af7a338c32d.js +0 -1
- package/dist/client/scripts/7d93bd4d75d38f0c1081.js +0 -1
- package/dist/client/scripts/81d43a254f83ac1fac0e.js +0 -1
- package/dist/client/scripts/84a4ea2c7d457a79308f.js +0 -1
- package/dist/client/scripts/8be9f3f7c4f0ecaea47f.js +0 -1
- package/dist/client/scripts/919631fb24656f33aa98.js +0 -1
- package/dist/client/scripts/9533abb03a5f0ad78094.js +0 -1
- package/dist/client/scripts/9ee700f699a455060e6a.js +0 -1
- package/dist/client/scripts/a317639b5ddbe33db1d2.js +0 -1
- package/dist/client/scripts/a5d6f1695cd294d57e3b.js +0 -1
- package/dist/client/scripts/b0abfbd0ce8ee009bbaa.js +0 -1
- package/dist/client/scripts/b2ea6a5920815ba86d22.js +0 -1
- package/dist/client/scripts/b52dbf68eb33409ade23.js +0 -1
- package/dist/client/scripts/b9b99f2c079244b8b432.js +0 -1
- package/dist/client/scripts/bca4c55702f5864efab5.js +0 -1
- package/dist/client/scripts/bcfd753d0a237fa59b10.js +0 -1
- package/dist/client/scripts/be11d55bc40fb537c896.js +0 -1
- package/dist/client/scripts/c7926d3671e25f37b18c.js +0 -1
- package/dist/client/scripts/c984c5ad55ad99e7a7fb.js +0 -1
- package/dist/client/scripts/cca6d4f7491cd652d4a3.js +0 -1
- package/dist/client/scripts/cd29f6c4eb6a02d22d9f.js +0 -1
- package/dist/client/scripts/d27968d1a36d191eb9e9.js +0 -1
- package/dist/client/scripts/d6908717cd98b1d8fa93.js +0 -1
- package/dist/client/scripts/dc21fd6b49512f41b9c3.js +0 -1
- package/dist/client/scripts/dd47fa74f0feee2a3c07.js +0 -1
- package/dist/client/scripts/e3c091de489a13ec670e.js +0 -1
- package/dist/client/scripts/fcc93c767715a1bfc0ca.js +0 -1
- package/dist/client/styles/84a4ea2c7d457a79308f.css +0 -1
- /package/dist/client/scripts/{8c3b19634e8fd15ad558.js → 2109495bcb3ad9b2c1bc.js} +0 -0
- /package/dist/client/scripts/{931783350ba482ac58ea.js → 30915f258985633764de.js} +0 -0
- /package/dist/client/styles/{9ee700f699a455060e6a.css → 014696e80aae9192e359.css} +0 -0
- /package/dist/client/styles/{768110f244f934f60565.css → 01ea361e28a56b3eefcd.css} +0 -0
- /package/dist/client/styles/{7d93bd4d75d38f0c1081.css → 02035cfde2b723d41fd2.css} +0 -0
- /package/dist/client/styles/{8fca3cf4a6b47dd03ec2.css → 066d7b3e707ba3f07a31.css} +0 -0
- /package/dist/client/styles/{a3e65b8f7187d6fef46c.css → 09e119c9d66ee67f1eb8.css} +0 -0
- /package/dist/client/styles/{5d1af8b5899f0a7d20b5.css → 0a96c285d8c41c9f354b.css} +0 -0
- /package/dist/client/styles/{0fb04884047cd78dd040.css → 0e46b322bdc18ef31644.css} +0 -0
- /package/dist/client/styles/{c7926d3671e25f37b18c.css → 0ea050cf21103a863726.css} +0 -0
- /package/dist/client/styles/{4ef6e4944d6fdb2418e8.css → 0f504c087caa45ac5a91.css} +0 -0
- /package/dist/client/styles/{22667a258087a1250b73.css → 10892f1b937b50ba1d62.css} +0 -0
- /package/dist/client/styles/{b9b99f2c079244b8b432.css → 12414a385315618f4bb6.css} +0 -0
- /package/dist/client/styles/{15d19d418d289240628e.css → 1bb7e57b0ae059acb355.css} +0 -0
- /package/dist/client/styles/{b52dbf68eb33409ade23.css → 1c6fc241a7b9c4e10e81.css} +0 -0
- /package/dist/client/styles/{386f7ca55b7614ccfff6.css → 1ea58060bdd59b73f2cc.css} +0 -0
- /package/dist/client/styles/{77565fda654b75c8d300.css → 285efd3dc49962c1ffb9.css} +0 -0
- /package/dist/client/styles/{06be5a40788608220924.css → 2dfbe8e2da6ca6808d5b.css} +0 -0
- /package/dist/client/styles/{2d1919731dec95c3ab78.css → 31a2579101bbbb9e5f30.css} +0 -0
- /package/dist/client/styles/{f3c88f10ff0cecee4136.css → 31f9d972fa4753eaee60.css} +0 -0
- /package/dist/client/styles/{d27968d1a36d191eb9e9.css → 35336d2943dd00299222.css} +0 -0
- /package/dist/client/styles/{0e20aaa05a36cd8048f2.css → 380522fadda741c9b3dc.css} +0 -0
- /package/dist/client/styles/{b2ea6a5920815ba86d22.css → 3b406b51b28c32a41fa7.css} +0 -0
- /package/dist/client/styles/{767ced5019a52e377db7.css → 3b782f9b1a48bb37ea1b.css} +0 -0
- /package/dist/client/styles/{946ddf507f7126cacd6f.css → 3f7b9965307d21e64c2d.css} +0 -0
- /package/dist/client/styles/{8be9f3f7c4f0ecaea47f.css → 4009c947df35b4d5c491.css} +0 -0
- /package/dist/client/styles/{a317639b5ddbe33db1d2.css → 45f0025aa5e0e67e90af.css} +0 -0
- /package/dist/client/styles/{779a65202af7a338c32d.css → 4888c910526a478af55c.css} +0 -0
- /package/dist/client/styles/{b1297de176912ca3e016.css → 48d53e3631b7bf81ef29.css} +0 -0
- /package/dist/client/styles/{f299c91e3375f635d678.css → 48e4dad7a650579d6b4e.css} +0 -0
- /package/dist/client/styles/{dc8ffc859bf0fa24a73a.css → 4f262ff6d88d67a5edb0.css} +0 -0
- /package/dist/client/styles/{5a695262345dd67bcf57.css → 57f474f5e19eb8baccea.css} +0 -0
- /package/dist/client/styles/{dc21fd6b49512f41b9c3.css → 5e005447771fd3cd6b2b.css} +0 -0
- /package/dist/client/styles/{5569bb64f8f5205efa41.css → 62bdbadba4db64715c90.css} +0 -0
- /package/dist/client/styles/{be11d55bc40fb537c896.css → 6c1ef7ce05ae842acdde.css} +0 -0
- /package/dist/client/styles/{ec7a03c7626a87900e8f.css → 6cde0c4a56ffc9a6948a.css} +0 -0
- /package/dist/client/styles/{4c79c3b75fe74372b440.css → 6ce50cc9d208b577f33b.css} +0 -0
- /package/dist/client/styles/{e8027df65498e3962468.css → 71533bdc41e1b0d7cf00.css} +0 -0
- /package/dist/client/styles/{a5d6f1695cd294d57e3b.css → 72914614ed8843afe8e7.css} +0 -0
- /package/dist/client/styles/{7bdcf2afcd8cdec0a5d5.css → 72d1baeb2e66131db0da.css} +0 -0
- /package/dist/client/styles/{89f69635eb151c0743fd.css → 7454ae168051d0e27e19.css} +0 -0
- /package/dist/client/styles/{b0abfbd0ce8ee009bbaa.css → 790f51d005d7150b9f08.css} +0 -0
- /package/dist/client/styles/{49598e01d3e5612354ed.css → 7bec5bb5f97f2464b576.css} +0 -0
- /package/dist/client/styles/{a4a4ccf4ff06adbfc89d.css → 7d1b6fb07a662ab1b389.css} +0 -0
- /package/dist/client/styles/{e3c091de489a13ec670e.css → 7f0830b7d5e434d7a977.css} +0 -0
- /package/dist/client/styles/{07c664894dd40b1ec2c4.css → 808a63db7e326de214a9.css} +0 -0
- /package/dist/client/styles/{377d2b3d73725d46c3b9.css → 815727531bfef1c70c8f.css} +0 -0
- /package/dist/client/styles/{55fd4c070115ba389108.css → 829fb548fb318cc6c227.css} +0 -0
- /package/dist/client/styles/{64719834daea9cc3b873.css → 835ff83b6597e828c6fb.css} +0 -0
- /package/dist/client/styles/{972d95b6bbc4747a583d.css → 87481837088a84e90ef5.css} +0 -0
- /package/dist/client/styles/{cd29f6c4eb6a02d22d9f.css → 8751d1ac21308fc7e78b.css} +0 -0
- /package/dist/client/styles/{d6e2bcb97349bafc6845.css → 87c81786aba52ad2c8de.css} +0 -0
- /package/dist/client/styles/{c0149c75a57e805eba11.css → 8b7ae0ee4655791853d1.css} +0 -0
- /package/dist/client/styles/{76eb53ffa89359303ca5.css → 8d66c9c61aafbfb8863a.css} +0 -0
- /package/dist/client/styles/{7579965411b0db902771.css → 8f688a3a5f483ff3f90f.css} +0 -0
- /package/dist/client/styles/{23348ae8c72907e38980.css → 8fc24289899913dd4b9c.css} +0 -0
- /package/dist/client/styles/{6e83c6f7c0a90b34622d.css → 90d734ebff6ad86a760a.css} +0 -0
- /package/dist/client/styles/{08084fd865f1ec5277ab.css → 91b2d5bc3c73cd4f18d5.css} +0 -0
- /package/dist/client/styles/{044bfb9482afdccb2697.css → 9423bad82a9386c620dd.css} +0 -0
- /package/dist/client/styles/{5d25dbe04690abb995ba.css → 9999938ef7d992beb718.css} +0 -0
- /package/dist/client/styles/{9f6f0e367cc189e40326.css → 9a0913e2bb7e116e722a.css} +0 -0
- /package/dist/client/styles/{758ca7e7bbf77700b5d7.css → 9cfa0f253a3aebd930a2.css} +0 -0
- /package/dist/client/styles/{ebf40b1e9787e4c1bc89.css → 9faa3989454af4ae1646.css} +0 -0
- /package/dist/client/styles/{ba4de7594bba69128088.css → 9fc3879dcd92ead8420a.css} +0 -0
- /package/dist/client/styles/{594d4a275d4ecc149321.css → a5720cb035b84b05a681.css} +0 -0
- /package/dist/client/styles/{dc0b35c5cbada76c8f91.css → a7873e3d286e50fba6c9.css} +0 -0
- /package/dist/client/styles/{5a78fd7739edf164bffc.css → a78ff92ceead2d31f3a9.css} +0 -0
- /package/dist/client/styles/{2a6eb9437415815a7c8b.css → a92bcf3f9625c73de815.css} +0 -0
- /package/dist/client/styles/{58dc3d271d377f63d669.css → aea24adeebd8a85f0d9f.css} +0 -0
- /package/dist/client/styles/{fcc93c767715a1bfc0ca.css → b0e6c2314243d68e28b0.css} +0 -0
- /package/dist/client/styles/{cca6d4f7491cd652d4a3.css → b4a23e7a73eae4480216.css} +0 -0
- /package/dist/client/styles/{73ed30880b13b6906513.css → b5f382bd1ef86330d29d.css} +0 -0
- /package/dist/client/styles/{57a4d1a4d7414143c481.css → b5fad640f69afe308f11.css} +0 -0
- /package/dist/client/styles/{59722ca7df6b49712bfa.css → b780d82de69f5dc4cc7a.css} +0 -0
- /package/dist/client/styles/{bca4c55702f5864efab5.css → b9d33994c69b2a8de5fe.css} +0 -0
- /package/dist/client/styles/{d0c0934289c2e798b85d.css → ba790fc15aa9dd2a524f.css} +0 -0
- /package/dist/client/styles/{4d939c5862fea5e64e5c.css → bdb8608eddf7bc7915c8.css} +0 -0
- /package/dist/client/styles/{5017a70de73841a396da.css → c01ba1121e07f8275c28.css} +0 -0
- /package/dist/client/styles/{2806750528d85460028f.css → c05223da24c7e1792d39.css} +0 -0
- /package/dist/client/styles/{81d43a254f83ac1fac0e.css → c2a488a59af6b939a61e.css} +0 -0
- /package/dist/client/styles/{6f404e26a825f73c1d7d.css → c3dcd9d23d027dd49374.css} +0 -0
- /package/dist/client/styles/{6cc4b48d94ba68abe2c8.css → c7b72bcfc9e8773232d1.css} +0 -0
- /package/dist/client/styles/{ceb147d872c2cc6d8e43.css → cd7968f5815183867103.css} +0 -0
- /package/dist/client/styles/{c984c5ad55ad99e7a7fb.css → cdab1ed393767e094329.css} +0 -0
- /package/dist/client/styles/{a5841e51763678db6089.css → ce05b548e362b5886d8d.css} +0 -0
- /package/dist/client/styles/{c3ccea24a5c73faaf99e.css → d26a3d80e6c77f61e906.css} +0 -0
- /package/dist/client/styles/{2313512dca4cba19c5cf.css → d2c54ba404a1cf66db40.css} +0 -0
- /package/dist/client/styles/{e5b18709069828a4363d.css → d8e6b1ff37198ab047be.css} +0 -0
- /package/dist/client/styles/{5ca7c046bdea4196601e.css → d942e5ec658c176d6750.css} +0 -0
- /package/dist/client/styles/{b71233fab69a4991c295.css → de4f0e5200e9af12acbd.css} +0 -0
- /package/dist/client/styles/{919631fb24656f33aa98.css → e58799bb10a7008421cf.css} +0 -0
- /package/dist/client/styles/{7061fd6c9ef6c41788c5.css → e7a8d37da2ffba5d13f1.css} +0 -0
- /package/dist/client/styles/{5da4558386ae97434fb7.css → ec98e9fccfc20586c905.css} +0 -0
- /package/dist/client/styles/{bcfd753d0a237fa59b10.css → f03174e16f719c89d9d5.css} +0 -0
- /package/dist/client/styles/{478bda1ed98f48e890ad.css → f304d9429842a3472c24.css} +0 -0
- /package/dist/client/styles/{6738510c4fca5f603347.css → f4709b00f96deef67c51.css} +0 -0
- /package/dist/client/styles/{729011a4abbe01b0cea6.css → f5685cc9549af21468a2.css} +0 -0
- /package/dist/client/styles/{9118978a47a3fcaaeeb3.css → f6a0b11764b771115ce2.css} +0 -0
- /package/dist/client/styles/{581c0d593f05f48c8b33.css → fe7fd3da91146a0ad576.css} +0 -0
- /package/dist/client/styles/{8fea7091b1b3af2f8c5f.css → ff019a30624b95c825db.css} +0 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
"use strict";var ve=Object.defineProperty;var he=(e,r,t)=>r in e?ve(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var le=(e,r,t)=>(he(e,typeof r!="symbol"?r+"":r,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vue=require("vue"),v4=require("./v4-tWlzORDj.js"),bootstrapVueNext=require("bootstrap-vue-next"),pinia=require("pinia");var _documentCurrentScript=typeof document<"u"?document.currentScript:null;const _sfc_main$28={name:"VsAccordion",status:"prototype",release:"0.0.1",provide(){return{breakPoint:this.breakPoint}},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$1J={class:"vs-accordion","data-test":"vs-accordion"};function _sfc_render$21(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1J,[vue.renderSlot(e.$slots,"default")])}const VsAccordion=v4._export_sfc(_sfc_main$28,[["render",_sfc_render$21]]),_sfc_main$27={name:"VsAccordionToggle",status:"prototype",release:"0.0.1",components:{VsButton:v4.VsButton},props:{variant:{type:String,default:"primary"},visible:{type:Boolean,default:!0}},emits:["toggle-panel"],methods:{triggerToggle(){this.$emit("toggle-panel")}}},_hoisted_1$1I={class:"vs-accordion-toggle__text"},_hoisted_2$17={class:"vs-accordion-toggle__icon"};function _sfc_render$20(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(s,{animate:!1,"aria-expanded":t.visible?"true":"false","aria-haspopup":"true",onClick:a.triggerToggle,class:vue.normalizeClass(["vs-accordion-toggle clearfix",t.visible?"vs-accordion-toggle--open":""]),variant:t.variant},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$1I,[vue.renderSlot(e.$slots,"default")]),vue.createElementVNode("span",_hoisted_2$17,[t.visible?vue.renderSlot(e.$slots,"icon-open",{key:0}):vue.renderSlot(e.$slots,"icon-closed",{key:1})])]),_:3},8,["aria-expanded","onClick","class","variant"])}const VsAccordionToggle=v4._export_sfc(_sfc_main$27,[["render",_sfc_render$20]]),_sfc_main$26={name:"VsAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionToggle,BCard:bootstrapVueNext.BCard,VsIcon:v4.VsIcon,BCardHeader:bootstrapVueNext.BCardHeader,BCardBody:bootstrapVueNext.BCardBody,VsHeading:v4.VsHeading},inject:{breakPoint:{default:"lg"}},props:{colourBadge:{type:String,required:!1,default:""},controlId:{type:String,required:!0},itemBreakPoint:{type:String,default(){return vue.inject("breakPoint","lg")},validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},variant:{type:String,default:"primary"}},data(){return{show:this.openByDefault}},computed:{toggleAccordionBtn(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-none":`d-${this.itemBreakPoint}-none`:"d-flex"},toggleResponsiveItem(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-block":`d-${this.itemBreakPoint}-block`:""}},methods:{onButtonClick(){this.show=!this.show}}};function _sfc_render$1$(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsAccordionToggle"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("BCardHeader"),c=vue.resolveComponent("BCardBody"),d=vue.resolveComponent("BCard");return vue.openBlock(),vue.createBlock(d,{"no-body":"",class:vue.normalizeClass(["vs-accordion-item",a.breakPoint?"vs-accordion-item__responsive":""]),"data-test":"vs-accordion__item"},{default:vue.withCtx(()=>[vue.createVNode(u,{class:"vs-accordion-item__card-header","data-test":"vs-accordion__item-header"},{default:vue.withCtx(()=>[vue.createVNode(i,{"aria-controls":t.controlId,visible:o.show,variant:t.variant,class:vue.normalizeClass(a.toggleAccordionBtn),onTogglePanel:a.onButtonClick},{"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open",{},()=>[vue.createVNode(s,{name:"chevron",size:"sm"})])]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed",{},()=>[vue.createVNode(s,{name:"chevron",orientation:"down",size:"sm"})])]),default:vue.withCtx(()=>[t.colourBadge?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"vs-accordion-item__card-colour-badge","data-test":"vs-accordion-item__card-colour-badge",style:vue.normalizeStyle("background-color: "+t.colourBadge)},null,4)):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"title")]),_:3},8,["aria-controls","visible","variant","class","onTogglePanel"]),vue.createVNode(l,{level:"2","override-style-level":"6",class:vue.normalizeClass(["d-none vs-accordion-item__title",a.toggleResponsiveItem]),"data-test":"vs-accordion__item-title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3},8,["class"])]),_:3}),vue.withDirectives(vue.createVNode(c,{id:t.controlId,class:vue.normalizeClass(["vs-accordion-item__panel",a.toggleResponsiveItem]),"data-test":"vs-accordion__item-body"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["id","class"]),[[vue.vShow,o.show]])]),_:3},8,["class"])}const VsAccordionItem=v4._export_sfc(_sfc_main$26,[["render",_sfc_render$1$]]),_sfc_main$25={name:"VsAddress",status:"prototype",release:"0.1.0",components:{VsIcon:v4.VsIcon}},_hoisted_1$1H={class:"vs-address","data-test":"vs-address"},_hoisted_2$16={class:"vs-address__address-box"};function _sfc_render$1_(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1H,[vue.createVNode(s,{name:"map-marker",class:"vs-address__map-marker me-2"}),vue.createElementVNode("address",_hoisted_2$16,[vue.renderSlot(e.$slots,"default")])])}const Address=v4._export_sfc(_sfc_main$25,[["render",_sfc_render$1_]]),_sfc_main$24={name:"VsAlert",status:"prototype",release:"0.1.0",components:{VsIcon:v4.VsIcon}},_hoisted_1$1G={class:"vs-alert","data-test":"vs-alert"},_hoisted_2$15={class:"vs-alert__icon-holder"},_hoisted_3$V={class:"vs-alert__content-wrapper"},_hoisted_4$G={class:"vs-alert__content"};function _sfc_render$1Z(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1G,[vue.createElementVNode("div",_hoisted_2$15,[vue.createVNode(s,{class:"vs-alert__icon",name:"information",variant:"inverse"})]),vue.createElementVNode("div",_hoisted_3$V,[vue.createElementVNode("div",_hoisted_4$G,[vue.renderSlot(e.$slots,"default")])])])}const Alert=v4._export_sfc(_sfc_main$24,[["render",_sfc_render$1Z]]),_sfc_main$23={name:"VsRichTextWrapper",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"normal",validator:e=>e.match(/(normal|lead)/)}}};function _sfc_render$1Y(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-rich-text-wrapper",[`vs-rich-text-wrapper--${t.variant}`]])},[vue.renderSlot(e.$slots,"default")],2)}const VsRichTextWrapper=v4._export_sfc(_sfc_main$23,[["render",_sfc_render$1Y]]),_sfc_main$22={name:"VsArticle",status:"prototype",release:"0.0.1",components:{VsCol:v4.VsCol,VsRow:v4.VsRow,VsContainer:v4.VsContainer,VsRichTextWrapper,VsHeading:v4.VsHeading},props:{title:{type:String,required:!0},anchorLink:{type:String,default:""}}},_hoisted_1$1F={class:"vs-article__wrapper mb-9 mb-md-11"},_hoisted_2$14={class:"vs-article__header mx-6 mx-md-0 mt-9 mt-lg-11"},_hoisted_3$U=["id"],_hoisted_4$F={class:"vs-article__content"};function _sfc_render$1X(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsRichTextWrapper"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("article",vue.mergeProps({class:"vs-article","data-test":"vs-article"},e.$attrs),[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"col-xxl-10 offset-xxl-1"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1F,[vue.renderSlot(e.$slots,"vs-article-img"),vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"10","offset-md":"1"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$14,[vue.createVNode(s,{level:"2",class:"text-center mb-8 mb-lg-9"},{default:vue.withCtx(()=>[vue.createElementVNode("span",{id:t.anchorLink?t.anchorLink:""},vue.toDisplayString(t.title),9,_hoisted_3$U)]),_:1}),vue.createVNode(i,{variant:"lead",class:"text-center mb-9 mb-lg-10"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-article-intro")]),_:3})]),vue.createElementVNode("div",_hoisted_4$F,[vue.renderSlot(e.$slots,"default")])]),_:3})]),_:3})])]),_:3})]),_:3})]),_:3})],16)}const Article=v4._export_sfc(_sfc_main$22,[["render",_sfc_render$1X]]),_sfc_main$21={name:"VsArticleSection",status:"prototype",release:"0.0.1",components:{VsCol:v4.VsCol,VsRow:v4.VsRow,VsRichTextWrapper},props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-section--sidebar-right":"vs-article-section--sidebar-left"}}},_hoisted_1$1E={class:"mx-6 mx-md-0"};function _sfc_render$1W(e,r,t,n,o,a){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRichTextWrapper"),l=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-section mb-8 mb-md-10",a.sidebarAlignClass]),"data-test":"vs-article-section"},[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",md:"5",xl:"4","data-test":"vs-article-section__sidebar",class:vue.normalizeClass(["col-xxl-4",t.sidebarAlign==="right"?"pe-md-0":"ps-md-0"]),"offset-xl":t.sidebarAlign==="right"?"1":null,"order-md":t.sidebarAlign==="right"?"2":null},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"article-sidebar")]),_:3},8,["class","offset-xl","order-md"]),vue.createVNode(s,{cols:"12",md:"7","data-test":"vs-article-section__content","offset-xl":t.sidebarAlign==="left"?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1E,[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})])]),_:3},8,["offset-xl"])]),_:3})],2)}const ArticleSection=v4._export_sfc(_sfc_main$21,[["render",_sfc_render$1W]]),_sfc_main$20={name:"VsArticleSidebar",status:"prototype",release:"0.0.1",props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-sidebar--right":"vs-article-sidebar--left"}}};function _sfc_render$1V(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-sidebar",a.sidebarAlignClass]),"data-test":"vs-article-sidebar"},[vue.createElementVNode("div",{class:vue.normalizeClass([e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?"pb-8":"","vs-article-sidebar__img-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-img")],2),e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass([e.$slots["vs-article-sidebar-img"]&&e.$slots["vs-article-sidebar-img"]()?"pt-0":"","vs-article-sidebar__quote-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-quote")],2)):vue.createCommentVNode("",!0)],2)}const ArticleSidebar=v4._export_sfc(_sfc_main$20,[["render",_sfc_render$1V]]),cookieMixin={computed:{selectedLanguage(){return this.language.substr(0,2).toUpperCase()},localeCookie(){return this.language.replace("_","-").toLowerCase()},translationCookie(){return`/en/${this.language.substr(0,2).toLowerCase()}`}},methods:{cookieExists(e){return document.cookie.indexOf(`${e}=`)>=0},setCookie(e,r,t,n=!1){let o="";if(o=`${e}=${r};`,o+="path=/;",t&&!n){const a=new Date;a.setFullYear(a.getFullYear()+1),o+=`expires=${a};`}document.cookie=o}}},_sfc_main$1$={name:"VsBanner",status:"prototype",release:"0.0.1",components:{VsButton:v4.VsButton,VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsRichTextWrapper,VsIcon:v4.VsIcon},mixins:[cookieMixin],props:{closeBtnText:{type:String,required:!0},dontShowAgain:{type:Boolean,default:!0}},data(){return{showBanner:!0}},mounted(){const e=this.cookieExists("vs_showbanner");this.showBanner=!e},methods:{hideBanner(){this.showBanner=!this.showBanner,this.dontShowAgain&&this.setHiddenCookie()},setHiddenCookie(){const e=this.cookieExists("vs_showbanner");this.setCookie("vs_showbanner",this.showBanner,!e,!0)}}},_hoisted_1$1D={key:0,class:"vs-banner","data-test":"vs-banner",role:"banner"},_hoisted_2$13={key:0,class:"vs-banner__cta-link"},_hoisted_3$T={class:"visually-hidden"};function _sfc_render$1U(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRichTextWrapper"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsContainer");return o.showBanner?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1D,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"11",class:"vs-banner__content-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"1",class:"vs-banner__icon-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(s,{size:"sm",name:"review",class:"vs-banner__icon"})]),_:1}),vue.createVNode(i,{cols:"11"},{default:vue.withCtx(()=>[e.$slots["banner-text"]||e.$slots["banner-cta"]?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-banner__text"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"banner-text"),e.$slots["banner-cta"]?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$13,[vue.renderSlot(e.$slots,"banner-cta")])):vue.createCommentVNode("",!0)]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3}),vue.createVNode(i,{cols:"1"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"vs-banner__close-btn","data-test":"vs-banner__close-btn",variant:"transparent",icon:"close-circle",size:"md","icon-only":"",onClick:a.hideBanner},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$T,vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1})]),_:3})]),_:3})])):vue.createCommentVNode("",!0)}const Banner=v4._export_sfc(_sfc_main$1$,[["render",_sfc_render$1U]]),_sfc_main$1_={name:"VsBlogDetails",status:"prototype",release:"0.0.1",props:{blogAuthor:{type:String,required:!0},blogPublishDate:{type:String,required:!0},blogReadTime:{type:String,required:!0}}},_hoisted_1$1C={class:"vs-blog-details","data-test":"vs-blog-details"},_hoisted_2$12={class:"vs-blog-details__author"},_hoisted_3$S=vue.createElementVNode("span",{class:"vs-blog-details__divider"},"·",-1),_hoisted_4$E={class:"vs-blog-details__date"},_hoisted_5$t={class:"vs-blog-details__read-time"};function _sfc_render$1T(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1C,[vue.createElementVNode("span",_hoisted_2$12,[vue.createTextVNode(vue.toDisplayString(t.blogAuthor)+" ",1),_hoisted_3$S,vue.createElementVNode("span",_hoisted_4$E,vue.toDisplayString(t.blogPublishDate),1)]),vue.createElementVNode("span",_hoisted_5$t,vue.toDisplayString(t.blogReadTime),1)])}const BlogDetails=v4._export_sfc(_sfc_main$1_,[["render",_sfc_render$1T]]),_sfc_main$1Z={name:"VsBreadcrumb",status:"prototype",release:"0.0.1",components:{BBreadcrumb:bootstrapVueNext.BBreadcrumb}},_hoisted_1$1B={"aria-label":"breadcrumbs",class:"vs-breadcrumb py-2"};function _sfc_render$1S(e,r,t,n,o,a){const s=vue.resolveComponent("BBreadcrumb");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$1B,[vue.createVNode(s,vue.mergeProps({class:"flex-nowrap p-0 mb-0"},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)])}const Breadcrumb=v4._export_sfc(_sfc_main$1Z,[["render",_sfc_render$1S]]),_sfc_main$1Y={name:"VsBreadcrumbItem",status:"prototype",release:"0.0.1",components:{BBreadcrumbItem:bootstrapVueNext.BBreadcrumbItem},props:{href:{type:String,default:""},active:{type:Boolean,default:!1},ariaCurrent:{type:String,default:"page"},text:{type:String,default:"",required:!0}}};function _sfc_render$1R(e,r,t,n,o,a){const s=vue.resolveComponent("BBreadcrumbItem");return vue.openBlock(),vue.createBlock(s,vue.mergeProps({class:"vs-breadcrumb-item",active:t.active,"aria-current":t.ariaCurrent,href:t.href,text:t.text},e.$attrs),null,16,["active","aria-current","href","text"])}const BreadcrumbItem=v4._export_sfc(_sfc_main$1Y,[["render",_sfc_render$1R]]),_sfc_main$1X={name:"VsLink",status:"prototype",release:"0.0.2",components:{VsIcon:v4.VsIcon},mixins:[v4.dataLayerMixin],props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download)/)},variant:{type:String,default:"primary",validator:e=>e.match(/(primary|on-dark)/)},iconSize:{type:String,default:"xxs",validator:e=>e.match(/(xxs|xs|sm|md|lg|xl)/)},disabled:{type:Boolean,default:!1},dataLayerValue:{type:String,default:null}},computed:{variantClass(){return`vs-link--variant-${this.variant}`}},methods:{clickHandler(e){e.preventDefault(),this.dataLayerValue?this.createDataLayerObject(this.dataLayerValue,e,this.href):this.type==="external"?this.createDataLayerObject("externalLinkDataEvent",e,this.href):this.createDataLayerObject("internalLinkDataEvent",e,this.href),this.href!=="#"&&this.href!==null&&(window.location.href=this.href)},keyHandler(e){(e.keyCode===13||e.keyCode===32)&&(e.preventDefault(),this.clickHandler(e))}}},_hoisted_1$1A=["href","download","disabled","tabindex"];function _sfc_render$1Q(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("a",vue.mergeProps({class:["vs-link",[`vs-link--variant-${t.variant}`]],href:t.href,target:"_self",download:t.type==="download"?"true":null,disabled:t.disabled,tabindex:t.disabled?"-1":"0"},e.$attrs,{onClick:r[0]||(r[0]=i=>a.clickHandler(i)),onKeydown:r[1]||(r[1]=i=>a.keyHandler(i))}),[vue.renderSlot(e.$slots,"default"),t.type!=="default"?(vue.openBlock(),vue.createBlock(s,{key:0,name:`${t.type}-link`,variant:"primary",size:t.iconSize,class:"ms-1 vs-link__icon"},null,8,["name","size"])):vue.createCommentVNode("",!0)],16,_hoisted_1$1A)}const VsLink=v4._export_sfc(_sfc_main$1X,[["render",_sfc_render$1Q]]),_sfc_main$1W={name:"VsCannedSearchProductCard",status:"prototype",release:"0.0.1",components:{VsImg:v4.VsImg,VsHeading:v4.VsHeading,VsLink,VsCol:v4.VsCol},inject:["slideCols","visibleSlides"],provide(){return{slideVisible:this.isVisible}},props:{searchType:{type:String,default:""},imgSrc:{required:!0,type:String},title:{required:!0,type:String},inBodyDuration:{type:Object,default:null},description:{type:String,default:""},detailLink:{type:Object,required:!0},slideIndex:{type:String,required:!0}},computed:{modCardBody(){return this.searchType==="even"||this.searchType==="cate"?"card-body--short":""},useGenericLqip(){return this.searchType==="tour"}},methods:{isVisible(){const e=parseInt(this.slideIndex,10);return this.visibleSlides.indexOf(e)>=0}}},_hoisted_1$1z={class:"vs-product-card__image-container"},_hoisted_2$11={class:"vs-product-card__image-inner-container"},_hoisted_3$R={class:"vs-product-card__description"},_hoisted_4$D={key:0,class:"vs-product-card__description-inner"},_hoisted_5$s={class:"visually-hidden"},_hoisted_6$n={class:"vs-product-card__logos-container","data-chromatic":"ignore"};function _sfc_render$1P(e,r,t,n,o,a){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(u,{cols:a.slideCols.xs,sm:a.slideCols.sm,lg:a.slideCols.md,xl:a.slideCols.lg,class:"vs-carousel-slide__card","aria-disabled":!a.isVisible()},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-product-card",a.isVisible()?"":"vs-product-card--disabled"]),"data-test":"vs-product-card"},[vue.createElementVNode("section",vue.mergeProps({class:"card"},e.$attrs),[vue.createElementVNode("div",_hoisted_1$1z,[vue.createElementVNode("div",_hoisted_2$11,[vue.createVNode(s,{src:t.imgSrc,alt:"",sizes:"(min-width: 768px) 50vw, 100vw","use-generic-lqip":a.useGenericLqip,class:"vs-product-card__img","data-test":"vs-product-card__img","data-chromatic":"ignore"},null,8,["src","use-generic-lqip"])]),vue.renderSlot(e.$slots,"vs-canned-search-badges")]),vue.createElementVNode("div",{class:vue.normalizeClass(["card-body",a.modCardBody])},[vue.createVNode(l,{level:"3",class:"card-title vs-product-card__title","data-test":"vs-product-card__title"},{default:vue.withCtx(()=>[vue.createVNode(i,{href:t.detailLink.link,class:"stretched-link vs-product-card__link","data-test":"vs-product-card__link",disabled:!a.isVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1},8,["href","disabled"])]),_:1}),vue.renderSlot(e.$slots,"vs-canned-search-sub-heading"),vue.renderSlot(e.$slots,"vs-canned-search-star-rating"),vue.renderSlot(e.$slots,"vs-canned-search-categories"),vue.createElementVNode("div",_hoisted_3$R,[vue.renderSlot(e.$slots,"vs-canned-search-tour-info"),t.description?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$D,vue.toDisplayString(t.description),1)):vue.createCommentVNode("",!0),vue.createVNode(i,{href:t.detailLink.link,class:"vs-product-card__description-link",disabled:!a.isVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.detailLink.label)+" ",1),vue.createElementVNode("span",_hoisted_5$s,": "+vue.toDisplayString(t.title),1)]),_:1},8,["href","disabled"])])],2),vue.createElementVNode("div",_hoisted_6$n,[vue.renderSlot(e.$slots,"vs-canned-search-logos")])],16),vue.renderSlot(e.$slots,"vs-canned-search-summary")],2)]),_:3},8,["cols","sm","lg","xl","aria-disabled"])}const VsCannedSearchProductCard=v4._export_sfc(_sfc_main$1W,[["render",_sfc_render$1P]]),_sfc_main$1V={name:"VsCannedSearchStars",status:"prototype",release:"0.0.1",props:{min:{type:Number,default:null},max:{type:Number,default:null}}},_hoisted_1$1y={class:"vs-canned-search-stars","data-test":"vs-canned-search-stars"},_hoisted_2$10={key:0},_hoisted_3$Q=vue.createElementVNode("span",{class:"vs-canned-search-stars__star"}," ★ ",-1),_hoisted_4$C={key:1};function _sfc_render$1O(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1y,[t.min&&t.max&&t.min!==t.max?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$10,[_hoisted_3$Q,vue.createTextVNode(" "+vue.toDisplayString(t.min)+"-"+vue.toDisplayString(t.max),1)])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$C,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.min,s=>(vue.openBlock(),vue.createElementBlock("span",{key:s,class:"vs-canned-search-stars__star"}," ★ "))),128))]))])}const VsCannedSearchStars=v4._export_sfc(_sfc_main$1V,[["render",_sfc_render$1O]]),_sfc_main$1U={name:"VsTooltip",status:"prototype",release:"0.0.1",components:{VsButton:v4.VsButton},directives:{"b-tooltip":bootstrapVueNext.vBTooltip},props:{title:{type:String,default:""},position:{type:String,default:"top",validator:e=>e.match(/(top|right|left|bottom)/)}}};function _sfc_render$1N(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton"),i=vue.resolveDirective("b-tooltip");return vue.withDirectives((vue.openBlock(),vue.createBlock(s,vue.mergeProps(e.$attrs,{class:"vs-tooltip position-relative",title:t.title}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["title"])),[[i,{placement:t.position}]])}const VsTooltip=v4._export_sfc(_sfc_main$1U,[["render",_sfc_render$1N]]),_sfc_main$1T={name:"VsCannedSearchLogos",status:"prototype",release:"0.0.1",components:{VsTooltip,VsImg:v4.VsImg},inject:["slideVisible"],props:{goodToGoLogo:{type:Object,default:null},safeTravelsLogo:{type:Object,default:null},awards:{type:Array,default:null},accessGuide:{type:Object,default:null}}},_hoisted_1$1x={class:"vs-canned-search-logos"};function _sfc_render$1M(e,r,t,n,o,a){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsTooltip");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1x,[t.goodToGoLogo?(vue.openBlock(),vue.createBlock(i,{key:0,title:t.goodToGoLogo.name,href:"#",class:"p-0",variant:"transparent","data-test":"vs-canned-search-logos__good-to-go",disabled:!a.slideVisible(),tabindex:a.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{alt:t.goodToGoLogo.name,src:t.goodToGoLogo.image,class:"vs-canned-search-logos__logo"},null,8,["alt","src"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0),t.safeTravelsLogo?(vue.openBlock(),vue.createBlock(i,{key:1,title:t.safeTravelsLogo.name,href:"#",class:"p-0",variant:"transparent","data-test":"vs-canned-search-logos__safe-travels",disabled:!a.slideVisible(),tabindex:a.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{alt:t.safeTravelsLogo.name,src:t.safeTravelsLogo.image,class:"vs-canned-search-logos__logo"},null,8,["alt","src"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.awards,l=>(vue.openBlock(),vue.createBlock(i,{title:l.name,key:l.id,href:"#",class:"p-0",variant:"transparent",disabled:!a.slideVisible(),tabindex:a.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{src:l.image,alt:l.name,class:"vs-canned-search-logos__logo","data-test":"vs-canned-search-logos__award-logo"},null,8,["src","alt"])]),_:2},1032,["title","disabled","tabindex"]))),128)),t.accessGuide?(vue.openBlock(),vue.createBlock(i,{key:2,title:t.accessGuide.name,href:"#",variant:"transparent",class:"vs-canned-search-logos__access p-0","data-test":"vs-canned-search-logos__access-guide",disabled:!a.slideVisible(),tabindex:a.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{src:t.accessGuide.image,alt:t.accessGuide.name,class:"vs-canned-search-logos__logo"},null,8,["src","alt"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0)])}const VsCannedSearchLogos=v4._export_sfc(_sfc_main$1T,[["render",_sfc_render$1M]]),_sfc_main$1S={name:"VsCannedSearchCategories",status:"prototype",release:"0.0.1",props:{categories:{type:Array,default:null}},computed:{transformedCategories(){return this.categories?this.categories.slice(0,3).map(e=>e.name).join(" | "):""}}},_hoisted_1$1w={class:"vs-canned-search-categories","data-test":"vs-canned-search-categories"};function _sfc_render$1L(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1w,vue.toDisplayString(a.transformedCategories),1)}const VsCannedSearchCategories=v4._export_sfc(_sfc_main$1S,[["render",_sfc_render$1L]]),_sfc_main$1R={name:"VsCannedSearchPrice",status:"prototype",release:"0.0.1",props:{price:{type:String,default:""},priceIntro:{type:String,default:""},priceOutro:{type:String,default:""}}},_hoisted_1$1v={class:"vs-canned-search-price"},_hoisted_2$$={key:0,class:"vs-canned-search-price__intro"},_hoisted_3$P={key:1,class:"vs-canned-search-price__main"},_hoisted_4$B={key:2,class:"vs-canned-search-price__outro"};function _sfc_render$1K(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1v,[t.priceIntro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$$,vue.toDisplayString(t.priceIntro),1)):vue.createCommentVNode("",!0),t.price?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$P,vue.toDisplayString(t.price),1)):vue.createCommentVNode("",!0),t.priceOutro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$B,vue.toDisplayString(t.priceOutro),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchPrice=v4._export_sfc(_sfc_main$1R,[["render",_sfc_render$1K]]),_sfc_main$1Q={name:"VsCannedSearchDuration",status:"prototype",release:"0.0.1",props:{duration:{type:String,default:""},durationIntro:{type:String,default:""}}},_hoisted_1$1u={class:"vs-canned-search-duration"},_hoisted_2$_={key:0,class:"vs-canned-search-duration__intro"},_hoisted_3$O={key:1,class:"vs-canned-search-duration__main"};function _sfc_render$1J(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1u,[t.durationIntro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$_,vue.toDisplayString(t.durationIntro),1)):vue.createCommentVNode("",!0),t.duration?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$O,vue.toDisplayString(t.duration),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchDuration=v4._export_sfc(_sfc_main$1Q,[["render",_sfc_render$1J]]),_sfc_main$1P={name:"VsCannedSearchSummaryBox",status:"prototype",release:"0.0.1",components:{VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsLink},inject:["slideVisible"],props:{linkHref:{type:String,default:""},linkLabel:{type:String,default:""},linkType:{type:String,default:""},linkTitle:{type:String,default:""}}},_hoisted_1$1t=["disabled"],_hoisted_2$Z={class:"visually-hidden"};function _sfc_render$1I(e,r,t,n,o,a){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsLink"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",{class:"vs-canned-search-summary-box",disabled:!a.slideVisible()},[vue.createVNode(u,null,{default:vue.withCtx(()=>[e.$slots["vs-canned-search-summary-top"]&&e.$slots["vs-canned-search-summary-top"]()?(vue.openBlock(),vue.createBlock(i,{key:0},{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-top")]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"row--tall"},{default:vue.withCtx(()=>[e.$slots["vs-canned-search-summary-left"]&&e.$slots["vs-canned-search-summary-left"]()?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-left")]),_:3})):vue.createCommentVNode("",!0),e.$slots["vs-canned-search-summary-centre"]&&e.$slots["vs-canned-search-summary-centre"]()?(vue.openBlock(),vue.createBlock(s,{key:1,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-centre")]),_:3})):vue.createCommentVNode("",!0),t.linkHref?(vue.openBlock(),vue.createBlock(s,{key:2,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.createVNode(l,{"data-test":"vs-canned-search-summary-box__link",href:t.linkHref,type:t.linkType.toLowerCase(),disabled:!a.slideVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.linkLabel)+" ",1),vue.createElementVNode("span",_hoisted_2$Z,": "+vue.toDisplayString(t.linkTitle),1)]),_:1},8,["href","type","disabled"])]),_:1})):vue.createCommentVNode("",!0)]),_:3})]),_:3})],8,_hoisted_1$1t)}const VsCannedSearchSummaryBox=v4._export_sfc(_sfc_main$1P,[["render",_sfc_render$1I]]),_sfc_main$1O={name:"VsCannedSearchDates",status:"prototype",release:"0.0.1",props:{period:{type:Object,default:null},label:{type:String,default:""}},computed:{datePeriod(){return this.period&&this.period.startDay?this.period.endDay?`${this.period.startDay} - ${this.period.endDay}`:this.period.startDay:""}}},_hoisted_1$1s={class:"vs-canned-search-dates"},_hoisted_2$Y={class:"vs-canned-search-dates__intro"},_hoisted_3$N={class:"vs-canned-search-dates__main"};function _sfc_render$1H(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1s,[vue.createElementVNode("div",_hoisted_2$Y,vue.toDisplayString(t.label),1),vue.createElementVNode("div",_hoisted_3$N,vue.toDisplayString(a.datePeriod),1)])}const VsCannedSearchDates=v4._export_sfc(_sfc_main$1O,[["render",_sfc_render$1H]]),_sfc_main$1N={name:"VsCannedSearchBadges",status:"prototype",release:"0.0.1",props:{badgeOne:{type:String,default:""},multiBadgeOne:{type:Array,default:null},badgeTwo:{type:String,default:""},badgeThree:{type:String,default:""}},computed:{limitedMulti(){return this.multiBadgeOne?this.multiBadgeOne.slice(0,3):[]}}},_hoisted_1$1r={class:"vs-canned-search-badges"},_hoisted_2$X={key:0,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--category vs-canned-search-badges__badge--tr"},_hoisted_3$M={key:1,class:"vs-canned-search-badges__multi-badge-holder"},_hoisted_4$A={key:2,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--offer vs-canned-search-badges__badge--tr2"},_hoisted_5$r={key:3,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--open vs-canned-search-badges__badge--br"};function _sfc_render$1G(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1r,[t.badgeOne?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$X,vue.toDisplayString(t.badgeOne),1)):t.multiBadgeOne&&t.multiBadgeOne.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$M,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.limitedMulti,(s,i)=>(vue.openBlock(),vue.createElementBlock("div",{key:i,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--category vs-canned-search-badges__multi-badge"},vue.toDisplayString(s),1))),128))])):vue.createCommentVNode("",!0),t.badgeTwo?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$A,vue.toDisplayString(t.badgeTwo),1)):vue.createCommentVNode("",!0),t.badgeThree?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$r,vue.toDisplayString(t.badgeThree),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchBadges=v4._export_sfc(_sfc_main$1N,[["render",_sfc_render$1G]]),_sfc_main$1M={name:"VsCannedSearchCuisines",status:"prototype",release:"0.0.1",props:{cuisines:{type:Array,default:null}}},_hoisted_1$1q={class:"vs-canned-search-cuisines","data-test":"vs-canned-search-cuisines"};function _sfc_render$1F(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1q,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.cuisines,(s,i)=>(vue.openBlock(),vue.createElementBlock("span",{class:"vs-canned-search-cuisines__cuisine",key:i},vue.toDisplayString(s.name),1))),128))])}const VsCannedSearchCuisines=v4._export_sfc(_sfc_main$1M,[["render",_sfc_render$1F]]),_sfc_main$1L={name:"VsCannedSearchSubHeading",status:"prototype",release:"0.0.1",components:{VsHeading:v4.VsHeading},props:{subHeading:{type:String,default:""},lineLimit:{type:Number,default:null,validator:e=>[1,2].includes(e)}}};function _sfc_render$1E(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createBlock(s,{level:"4",class:vue.normalizeClass(["vs-canned-search-sub-heading",t.lineLimit?"vs-canned-search-sub-heading--lines-"+t.lineLimit:""]),"data-test":"vs-canned-search-sub-heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subHeading),1)]),_:1},8,["class"])}const VsCannedSearchSubHeading=v4._export_sfc(_sfc_main$1L,[["render",_sfc_render$1E]]),_sfc_main$1K={name:"VsCannedSearchTourRuns",status:"prototype",release:"0.0.1",props:{label:{type:String,default:""},startDay:{type:String,default:""},endDay:{type:String,default:""}},computed:{formattedPeriod(){let e=`${this.label}: ${this.startDay}`;return this.endDay&&(e=`${e} - ${this.endDay}`),e}}},_hoisted_1$1p={class:"vs-canned-search-tour-runs"};function _sfc_render$1D(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("p",_hoisted_1$1p,vue.toDisplayString(a.formattedPeriod),1)}const VsCannedSearchTourRuns=v4._export_sfc(_sfc_main$1K,[["render",_sfc_render$1D]]),_sfc_main$1J={name:"VsCannedSearchTourDeparts",status:"prototype",release:"0.0.1",props:{label:{type:String,default:null},origins:{type:Array,default:null}},computed:{transformedOrigins(){return this.origins?this.origins.map(e=>e.name).join(", "):""}}},_hoisted_1$1o={class:"vs-canned-search-tour-departs"},_hoisted_2$W={class:"vs-canned-search-tour-departs__label"};function _sfc_render$1C(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("p",_hoisted_1$1o,[vue.createElementVNode("span",_hoisted_2$W,vue.toDisplayString(t.label)+":",1),vue.createTextVNode(" "+vue.toDisplayString(a.transformedOrigins),1)])}const VsCannedSearchTourDeparts=v4._export_sfc(_sfc_main$1J,[["render",_sfc_render$1C]]),_sfc_main$1I={name:"VsCarousel",status:"prototype",release:"0.0.1",components:{VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsButton:v4.VsButton},provide(){const e={},r=this.activeSlides;return Object.keys(this.slidesPerPage).forEach(t=>{const n=12/this.slidesPerPage[t];e[t]=n}),{slideCols:e,visibleSlides:r}},props:{prevText:{type:String,default:"Previous slide"},nextText:{type:String,default:"Next slide"},slidesXs:{type:Number,default:1},slidesSm:{type:Number,default:2},slidesMd:{type:Number,default:3},slidesLg:{type:Number,default:4}},data(){return{totalSlides:null,currentPage:0,maxPages:1,nextDisabled:!1,prevDisabled:!0,currentWidth:"lg",activeSlides:[],remainderOffset:0,navigating:!1}},computed:{slidesPerPage(){const e={};return e.lg=this.slidesLg,e.md=this.slidesMd,e.sm=this.slidesSm,e.xs=this.slidesXs,e},trackOffset(){return this.remainderOffset?`-${(this.currentPage-1)*100+this.remainderOffset}%`:`-${this.currentPage*100}%`}},mounted(){window.addEventListener("resize",()=>{this.setActivePage(),this.sliderNavigate(null,this.currentPage)}),this.defineActiveSlides(),this.initNavigation()},methods:{defineActiveSlides(e){this.calcViewport(),this.activeSlides.length=0;const r=this.$refs.carousel.getElementsByClassName("vs-carousel-slide__card");let t=0;r.length>0&&Array.from(r).forEach((o,a)=>{const s=this.currentPage*this.slidesPerPage[this.currentWidth],i=parseInt(this.currentPage*this.slidesPerPage[this.currentWidth],10)+parseInt(this.slidesPerPage[this.currentWidth],10);e&&typeof e<"u"?a>=this.totalSlides-this.slidesPerPage[this.currentWidth]&&this.activeSlides.push(a):a>=s&&a<i&&this.activeSlides.push(a),t+=1}),this.totalSlides=t,this.maxPages=Math.ceil(t/this.slidesPerPage[this.currentWidth])},calcViewport(){window.matchMedia("(min-width: 1200px)").matches?this.currentWidth="lg":window.matchMedia("(min-width: 992px)").matches?this.currentWidth="md":window.matchMedia("(min-width: 576px)").matches?this.currentWidth="sm":this.currentWidth="xs"},setActivePage(){let e;this.currentWidth==="xs"&&this.slidesXs===1?e=this.currentPage+1:e=this.currentPage*this.slidesPerPage[this.currentWidth]+1,this.calcViewport();let r;this.currentWidth==="xs"&&this.slidesXs===1?r=e:r=Math.ceil(e/this.slidesPerPage[this.currentWidth]),this.currentPage=r-1,this.sliderNavigate(null,this.currentPage)},sliderNavigate(e,r){const t=this.activeSlides[0];if(e&&e.preventDefault(),this.navigating)return;this.navigating=!0,setTimeout(()=>{this.navigating=!1},250),r==="next"?this.currentPage+1<this.maxPages&&(this.currentPage+=1):r==="prev"?this.currentPage>0&&(this.currentPage-=1):this.currentPage=r,this.initNavigation();const n=this.slidesPerPage[this.currentWidth]*(this.currentPage+1);let o=!1;if(n>this.totalSlides?(this.remainderOffset=this.checkRemainder(n),o=!0):this.remainderOffset=0,this.defineActiveSlides(o),r==="next"){const a=this.getFirstActiveSlide();if(a){const s=a.querySelectorAll("a")[0];setTimeout(()=>{s.focus()},250)}}else if(r==="prev"&&this.currentPage>=0){const a=this.$refs.carousel.querySelectorAll(".card")[t-1];if(a){const s=a.querySelectorAll("a")[0];setTimeout(()=>{s.focus()},250)}}},getFirstActiveSlide(){return this.$refs.carousel.querySelectorAll(".card")[this.currentPage*this.slidesPerPage[this.currentWidth]]},getLastActiveSlide(){return this.$refs.carousel.querySelectorAll(".card")[this.currentPage*this.slidesPerPage[this.currentWidth]+this.slidesPerPage[this.currentWidth]-1]},initNavigation(){this.currentPage+1>=this.totalSlides/this.slidesPerPage[this.currentWidth]?this.nextDisabled=!0:this.nextDisabled=!1,this.currentPage>0?this.prevDisabled=!1:this.prevDisabled=!0},checkRemainder(e){const r=this.slidesPerPage[this.currentWidth]-(e-this.totalSlides);return 100/this.slidesPerPage[this.currentWidth]*r}}},_hoisted_1$1n={class:"vs-carousel","data-test":"vs-carousel",ref:"carousel"},_hoisted_2$V={class:"slider"},_hoisted_3$L={class:"vs-carousel__control-label-container"},_hoisted_4$z={class:"vs-carousel__control-label vs-carousel__control-label--prev"},_hoisted_5$q={class:"vs-carousel__control-label-container"},_hoisted_6$m={class:"vs-carousel__control-label vs-carousel__control-label--next"},_hoisted_7$g={key:2,class:"vs-carousel__navigation"},_hoisted_8$8=["onClick","onKeypress","data-test"],_hoisted_9$5={class:"visually-hidden"},_hoisted_10$5={key:0,class:"vs-carousel__mobile-pagination-wrapper"},_hoisted_11$5={class:"vs-carousel__mobile-pagination","data-test":"vs-carousel__mobile-pagination"};function _sfc_render$1B(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$1n,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"10",offset:"1",sm:"12","offset-sm":"0",class:"position-relative"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$V,[o.prevDisabled?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-carousel__control vs-carousel__control--prev",onClick:r[0]||(r[0]=c=>a.sliderNavigate(c,"prev")),onKeypress:r[1]||(r[1]=c=>a.sliderNavigate(c,"prev",!0)),icon:"internal-link","icon-orientation":"down",ref:"prevButton"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$L,[vue.createElementVNode("span",_hoisted_4$z,vue.toDisplayString(t.prevText),1)])]),_:1},512)),vue.createVNode(i,{class:"vs-carousel__track",style:vue.normalizeStyle({transform:`translateX(${a.trackOffset})`})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["style"]),o.nextDisabled?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:1,class:"vs-carousel__control vs-carousel__control--next",onKeypress:r[2]||(r[2]=c=>a.sliderNavigate(c,"next",!0)),onClick:r[3]||(r[3]=c=>a.sliderNavigate(c,"next")),icon:"internal-link","icon-position":"right",ref:"nextButton"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$q,[vue.createElementVNode("span",_hoisted_6$m,vue.toDisplayString(t.nextText),1)])]),_:1},512)),o.totalSlides>a.slidesPerPage[o.currentWidth]?(vue.openBlock(),vue.createElementBlock("ul",_hoisted_7$g,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.maxPages,c=>(vue.openBlock(),vue.createElementBlock("li",{key:c},[vue.createElementVNode("button",{type:"button",class:vue.normalizeClass(["vs-carousel__navigation-item",c===o.currentPage+1?"vs-carousel__navigation-item--active":""]),onClick:vue.withModifiers(d=>a.sliderNavigate(d,c-1),["prevent"]),onKeypress:vue.withModifiers(d=>a.sliderNavigate(d,c-1,!0),["prevent"]),tabindex:"0","data-test":`vs-carousel__nav-${c}`},[vue.createElementVNode("span",_hoisted_9$5,[vue.renderSlot(e.$slots,"vs-carousel-navigate"),vue.createTextVNode(" "+vue.toDisplayString(c),1)])],42,_hoisted_8$8)]))),128))])):vue.createCommentVNode("",!0)]),o.totalSlides>a.slidesPerPage[o.currentWidth]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10$5,[vue.createElementVNode("p",_hoisted_11$5,[vue.createTextVNode(vue.toDisplayString(o.currentPage+1)+" ",1),vue.renderSlot(e.$slots,"vs-carousel-of"),vue.createTextVNode(" "+vue.toDisplayString(o.totalSlides),1)])])):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3})],512)}const VsCarousel=v4._export_sfc(_sfc_main$1I,[["render",_sfc_render$1B]]),_sfc_main$1H={name:"VsModuleWrapper",status:"prototype",release:"0.0.1",components:{VsHeading:v4.VsHeading,VsRichTextWrapper,VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol},props:{theme:{type:String,default:"light",validator:e=>e.match(/(light|grey|neutral)/)}}};function _sfc_render$1A(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRichTextWrapper"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",vue.mergeProps({class:["vs-module-wrapper",`vs-module-wrapper--${t.theme}`],"data-test":"vs-module-wrapper"},e.$attrs),[e.$slots["vs-module-wrapper-heading"]&&e.$slots["vs-module-wrapper-heading"]||e.$slots["vs-module-wrapper-intro"]&&e.$slots["vs-module-wrapper-intro"]?(vue.openBlock(),vue.createBlock(c,{key:0},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[e.$slots["vs-module-wrapper-heading"]&&e.$slots["vs-module-wrapper-heading"]?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"10",offset:"1",md:"8","offset-md":"2"},{default:vue.withCtx(()=>[vue.createVNode(s,{level:"2",class:"vs-module-wrapper__heading","data-test":"vs-module-wrapper__heading"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-wrapper-heading")]),_:3})]),_:3})):vue.createCommentVNode("",!0),e.$slots["vs-module-wrapper-intro"]&&e.$slots["vs-module-wrapper-intro"]?(vue.openBlock(),vue.createBlock(i,{key:1,cols:"12",sm:"10","offset-sm":"1",md:"8","offset-md":"2"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-module-wrapper__intro","data-test":"vs-module-wrapper__intro",variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-wrapper-intro")]),_:3})]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"default")],16)}const VsModuleWrapper=v4._export_sfc(_sfc_main$1H,[["render",_sfc_render$1A]]),_sfc_main$1G={name:"VsCannedSearch",status:"prototype",release:"0.0.1",components:{VsCannedSearchProductCard,VsCannedSearchStars,VsCannedSearchLogos,VsCannedSearchCategories,VsCannedSearchPrice,VsCannedSearchDuration,VsCannedSearchSummaryBox,VsCannedSearchDates,VsCannedSearchBadges,VsCannedSearchCuisines,VsCannedSearchSubHeading,VsCannedSearchTourRuns,VsCannedSearchTourDeparts,VsCarousel,VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsModuleWrapper},props:{apiUrl:{type:String,default:""},searchType:{type:String,default:""},heading:{type:String,default:""},carouselNextText:{type:String,default:"Next slide"},carouselPreviousText:{type:String,default:"Previous slide"}},data(){return{products:[]}},computed:{showLogos(){for(let e=0;e<this.products.length;e++){const r=this.products[e];if(r.awards&&r.awards.length||r.accessGuide||r.covidInformation&&r.covidInformation.goodToGo||r.covidInformation&&r.covidInformation.safeTravels)return!0}return!1}},mounted(){this.apiUrl&&this.retrieveProducts()},methods:{retrieveProducts(){v4.axios.get(this.apiUrl).then(e=>{this.products=e.data.data.products}).catch(()=>{this.products=[]})},fetchSubHeading(e){return this.searchType==="tour"?this.fetchCategoryStrings(e):this.fetchAddress(e)},fetchCategoryStrings(e){return e.category&&e.category.length?e.category.map(r=>r.name).join(", "):""},fetchAddress(e){return e.onlineEvent?e.onlineEvent:e.address?this.searchType==="even"?`${e.eventVenue}, ${e.address.city}`:`${e.address.city}, ${e.address.county}`:""},fetchBadgeOne(e){return this.searchType!=="tour"&&e.category&&e.category.length&&e.category[0]?e.category[0].name:null},fetchMultiBadgeOne(e){return this.searchType==="tour"&&e.tourVehicles&&e.tourVehicles.length?e.tourVehicles.map(r=>r.name):null},fetchBadgeThree(e){return e.covidInformation&&e.covidInformation.weAreOpen?e.covidInformation.weAreOpen:e.opening&&e.opening.nowOn?e.opening.nowOn:""}}},_hoisted_1$1m={class:"vs-canned-search","data-test":"vs-canned-search"};function _sfc_render$1z(e,r,t,n,o,a){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsContainer"),u=vue.resolveComponent("VsCannedSearchTourRuns"),c=vue.resolveComponent("VsCannedSearchTourDeparts"),d=vue.resolveComponent("VsCannedSearchSubHeading"),p=vue.resolveComponent("VsCannedSearchStars"),f=vue.resolveComponent("VsCannedSearchCategories"),m=vue.resolveComponent("VsCannedSearchLogos"),v=vue.resolveComponent("VsCannedSearchBadges"),h=vue.resolveComponent("VsCannedSearchDates"),g=vue.resolveComponent("VsCannedSearchDuration"),_=vue.resolveComponent("VsCannedSearchPrice"),C=vue.resolveComponent("VsCannedSearchCuisines"),b=vue.resolveComponent("VsCannedSearchSummaryBox"),S=vue.resolveComponent("VsCannedSearchProductCard"),E=vue.resolveComponent("VsCarousel"),N=vue.resolveComponent("VsModuleWrapper");return vue.withDirectives((vue.openBlock(),vue.createBlock(N,null,vue.createSlots({default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1m,[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-canned-search__buttons"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-buttons")]),_:3})]),_:3})]),_:3}),o.products.length?(vue.openBlock(),vue.createBlock(E,{key:0,"next-text":t.carouselNextText,"prev-text":t.carouselPreviousText,"slides-xs":1,"slides-md":2,"slides-lg":3},{"vs-carousel-of":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-of")]),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.products,(V,L)=>(vue.openBlock(),vue.createBlock(S,{key:L,"slide-index":""+L,"img-src":V.images?V.images[0].mediaUrl:"",title:V.name,"detail-link":{link:V.productLink.link,label:V.productLink.label,type:V.productLink.type.toLowerCase()},description:V.description,"search-type":t.searchType},vue.createSlots({"vs-canned-search-sub-heading":vue.withCtx(()=>[vue.createVNode(d,{"sub-heading":a.fetchSubHeading(V),"line-limit":t.searchType==="tour"?1:2},null,8,["sub-heading","line-limit"])]),"vs-canned-search-badges":vue.withCtx(()=>[vue.createVNode(v,{"badge-one":a.fetchBadgeOne(V),"multi-badge-one":a.fetchMultiBadgeOne(V),"badge-two":V.offers,"badge-three":a.fetchBadgeThree(V)},null,8,["badge-one","multi-badge-one","badge-two","badge-three"])]),"vs-canned-search-summary":vue.withCtx(()=>[vue.createVNode(b,{"link-href":V.website.link,"link-type":V.website.type,"link-label":V.website.label,"link-title":V.name},vue.createSlots({"vs-canned-search-summary-left":vue.withCtx(()=>[t.searchType==="tour"&&V.tourLength?(vue.openBlock(),vue.createBlock(g,{key:0,"duration-intro":V.tourLength.label,duration:V.tourLength.value},null,8,["duration-intro","duration"])):V.price&&t.searchType!=="tour"?(vue.openBlock(),vue.createBlock(_,{key:1,"price-intro":V.price.priceLabel,price:V.price.price,"price-outro":V.price.priceBasis},null,8,["price-intro","price","price-outro"])):V.cuisines?(vue.openBlock(),vue.createBlock(C,{key:2,cuisines:V.cuisines},null,8,["cuisines"])):vue.createCommentVNode("",!0)]),_:2},[V.opening&&t.searchType!=="tour"?{name:"vs-canned-search-summary-top",fn:vue.withCtx(()=>[vue.createVNode(h,{period:V.opening.period,label:V.opening.period.label},null,8,["period","label"])]),key:"0"}:void 0,V.price&&t.searchType==="tour"?{name:"vs-canned-search-summary-centre",fn:vue.withCtx(()=>[vue.createVNode(_,{"price-intro":V.price.priceLabel,price:V.price.price,"price-outro":V.price.priceBasis},null,8,["price-intro","price","price-outro"])]),key:"1"}:void 0]),1032,["link-href","link-type","link-label","link-title"])]),_:2},[t.searchType==="tour"?{name:"vs-canned-search-tour-info",fn:vue.withCtx(()=>[vue.createElementVNode("div",null,[V.opening&&V.opening.period&&V.opening.period.startDay?(vue.openBlock(),vue.createBlock(u,{key:0,label:V.opening.period.label,"start-day":V.opening.period.startDay,"end-day":V.opening.period.endDay},null,8,["label","start-day","end-day"])):vue.createCommentVNode("",!0),V.tourOrigin&&V.tourOrigin.tourOrigin?(vue.openBlock(),vue.createBlock(c,{key:1,label:V.tourOrigin.label,origins:V.tourOrigin.tourOrigin},null,8,["label","origins"])):vue.createCommentVNode("",!0)])]),key:"0"}:void 0,V.grading?{name:"vs-canned-search-star-rating",fn:vue.withCtx(()=>[vue.createVNode(p,{min:V.grading.minStars,max:V.grading.maxStars},null,8,["min","max"])]),key:"1"}:void 0,V.locations?{name:"vs-canned-search-categories",fn:vue.withCtx(()=>[vue.createVNode(f,{categories:V.locations},null,8,["categories"])]),key:"2"}:void 0,a.showLogos?{name:"vs-canned-search-logos",fn:vue.withCtx(()=>[vue.createVNode(m,{"good-to-go-logo":V.covidInformation&&V.covidInformation.goodToGo?V.covidInformation.goodToGo:null,"safe-travels-logo":V.covidInformation&&V.covidInformation.safeTravels?V.covidInformation.safeTravels:null,"access-guide":V.accessGuide||null,awards:V.awards},null,8,["good-to-go-logo","safe-travels-logo","access-guide","awards"])]),key:"3"}:void 0]),1032,["slide-index","img-src","title","detail-link","description","search-type"]))),128))]),_:3},8,["next-text","prev-text"])):vue.createCommentVNode("",!0),e.$slots["vs-canned-search-credit"]?(vue.openBlock(),vue.createBlock(l,{key:1,class:"vs-canned-search__credit-container"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-credit")]),_:3})):vue.createCommentVNode("",!0)])]),_:2},[t.heading?{name:"vs-module-wrapper-heading",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),key:"0"}:void 0,e.$slots["vs-canned-search-intro"]?{name:"vs-module-wrapper-intro",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-intro")]),key:"1"}:void 0]),1536)),[[vue.vShow,o.products.length]])}const CannedSearch=v4._export_sfc(_sfc_main$1G,[["render",_sfc_render$1z]]),font_weight_bold="700",font_weight_semi_bold="600",font_weight_normal="400",font_weight_light="300",font_family_sans_serif="'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",headings_font_family="'evelethclean-regular', sans-serif, $font-family-sans-serif",headings_font_family_thin="'evelethclean-thin', 'evelethclean-thin', sans-serif, $font-family-sans-serif",icon_size_xxs="12px",icon_size_xs="16px",icon_size_sm="20px",icon_size_md="24px",icon_size_lg="30px",icon_size_xl="40px",opacity_100="1",opacity_50="0.5",opacity_0="0",duration_quickly=".08s",duration_base=".2s",duration_slowly=".5s",breakpoint_xl="1200px",breakpoint_md="768px",max_container_width_xl="1140px",breakpoint_sm="576px",breakpoint_lg="992px",breakpoint_xs="0",max_container_width_md="720px",max_container_width_sm="540px",max_container_width_lg="960px",max_container_width_xxl="1340px",breakpoint_xxl="1400px",letter_spacing_xxl="2px",letter_spacing_xl="1.4px",letter_spacing_l="1px",letter_spacing_m="0.5px",letter_spacing_s="-0.5px",letter_spacing_xs="-1px",border_radius_default="0.25rem",border_radius_xl="0.5rem",border_radius_lg="0.3rem",border_radius_sm="0.2rem",border_radius_pill="50rem",line_height_lead="1.55",line_height_xl="2",line_height_l="1.8",line_height_m="1.6",line_height_s="1.3",line_height_standard="1.2",line_height_xs="1",grid_columns="12",grid_gutter_width="24px",no_javascript="no-js",theme_dark="rgb(42, 40, 41)",theme_grey="rgb(239, 239, 239)",designTokens={"vs-color-background-brand":"rgb(91, 36, 135)","vs-color-background-primary":"rgb(31, 73, 214)","vs-color-background-hover":"rgb(18, 43, 128)","vs-color-background-active":"rgb(164, 244, 242)","vs-color-background-inverse":"rgb(255, 255, 255)","vs-color-background-tertiary":"rgb(168, 48, 140)","vs-color-background-input":"rgb(255, 255, 255)","vs-color-background-disabled":"rgb(195, 191, 214)","vs-color-background-success":"rgb(4, 200, 82)","vs-color-background-danger":"rgb(231, 24, 69)","vs-color-background-neutral":"rgb(222, 219, 230)","vs-color-background-bold":"rgb(39, 20, 56)","vs-color-background-information":"rgb(240, 239, 244)","vs-color-background-accent-lavender":"rgb(83, 83, 150)","vs-color-background-accent-etive":"rgb(114, 167, 254)","vs-color-background-accent-heather":"rgb(35, 1, 74)","vs-color-background-accent-glencoe":"rgb(4, 200, 82)","vs-color-background-accent-bog-myrtle":"rgb(78, 228, 138)","vs-color-background-accent-kelp":"rgb(115, 252, 170)","vs-color-background-accent-unicorn":"rgb(245, 81, 188)","vs-color-background-accent-foxglove":"rgb(251, 177, 234)","vs-color-background-accent-cuillin":"rgb(231, 24, 69)","vs-color-background-accent-cranachan":"rgb(255, 71, 111)","vs-color-background-accent-bluebell":"rgb(175, 175, 213)","vs-color-background-accent-oatcake":"rgb(254, 202, 133)","vs-color-background-accent-tolsta":"rgb(25, 200, 197)","vs-color-background-accent-dunnock":"rgb(55, 230, 227)","vs-color-background-accent-harr":"rgb(164, 244, 242)","vs-color-background-accent-salmon":"rgb(249, 179, 194)","vs-color-background-accent-whisky":"rgb(241, 135, 1)","vs-color-background-accent-irn-bru":"rgb(254, 175, 72)","vs-color-background-accent-buachaille":"rgb(255, 212, 0)","vs-color-background-accent-gorse":"rgb(255, 228, 92)","vs-color-background-accent-limestone":"rgb(255, 241, 173)","vs-color-background-accent-grey-01":"rgb(93, 84, 120)","vs-color-background-accent-grey-02":"rgb(117, 109, 148)","vs-color-background-accent-grey-03":"rgb(159, 154, 184)","vs-color-background-accent-grey-04":"rgb(195, 191, 214)","vs-color-background-accent-grey-05":"rgb(222, 219, 230)","vs-color-border":"rgb(222, 219, 230)","vs-color-border-primary":"rgb(31, 73, 214)","vs-color-border-primary-hover":"rgb(18, 43, 128)","vs-color-border-input":"rgb(93, 84, 120)","vs-color-border-bold":"rgb(39, 20, 56)","vs-color-border-focus":"rgb(31, 73, 214)","vs-color-border-disabled":"rgb(195, 191, 214)","vs-color-border-tertiary":"rgb(168, 48, 140)","vs-color-border-danger":"rgb(231, 24, 69)","vs-color-border-inverse":"rgb(255, 255, 255)","vs-color-border-accent-lavender":"rgb(83, 83, 150)","vs-color-border-accent-etive":"rgb(114, 167, 254)","vs-color-border-accent-heather":"rgb(35, 1, 74)","vs-color-border-accent-glencoe":"rgb(4, 200, 82)","vs-color-border-accent-bog-myrtle":"rgb(78, 228, 138)","vs-color-border-accent-kelp":"rgb(115, 252, 170)","vs-color-border-accent-unicorn":"rgb(245, 81, 188)","vs-color-border-accent-foxglove":"rgb(251, 177, 234)","vs-color-border-accent-cranachan":"rgb(255, 71, 111)","vs-color-border-accent-bluebell":"rgb(175, 175, 213)","vs-color-border-accent-tolsta":"rgb(25, 200, 197)","vs-color-border-accent-dunnock":"rgb(55, 230, 227)","vs-color-border-accent-harr":"rgb(164, 244, 242)","vs-color-border-accent-salmon":"rgb(249, 179, 194)","vs-color-border-accent-whisky":"rgb(241, 135, 1)","vs-color-border-accent-irn-bru":"rgb(254, 175, 72)","vs-color-border-accent-buachaille":"rgb(255, 212, 0)","vs-color-border-accent-gorse":"rgb(255, 228, 92)","vs-color-border-accent-limestone":"rgb(255, 241, 173)","vs-color-border-accent-grey-01":"rgb(93, 84, 120)","vs-color-border-accent-grey-02":"rgb(117, 109, 148)","vs-color-border-accent-grey-03":"rgb(159, 154, 184)","vs-color-border-accent-grey-04":"rgb(195, 191, 214)","vs-color-border-accent-grey-05":"rgb(222, 219, 230)","vs-color-icon":"rgb(32, 15, 46)","vs-color-icon-primary":"rgb(31, 73, 214)","vs-color-icon-inverse":"rgb(255, 255, 255)","vs-color-icon-disabled":"rgb(159, 154, 184)","vs-color-icon-tertiary":"rgb(168, 48, 140)","vs-color-icon-danger":"rgb(231, 24, 69)","vs-color-icon-warning":"rgb(255, 212, 0)","vs-color-icon-ski-grade-easy":"rgb(4, 200, 82)","vs-color-icon-ski-grade-intermediate":"rgb(18, 43, 128)","vs-color-icon-ski-grade-difficult":"rgb(231, 24, 69)","vs-color-icon-ski-grade-very-difficult":"rgb(32, 15, 46)","vs-color-icon-ski-grade-itineraries":"rgb(254, 175, 72)","vs-color-icon-ski-grade-other":"rgb(195, 191, 214)","vs-color-icon-accent-lavender":"rgb(83, 83, 150)","vs-color-icon-accent-etive":"rgb(114, 167, 254)","vs-color-icon-accent-heather":"rgb(35, 1, 74)","vs-color-icon-accent-glencoe":"rgb(4, 200, 82)","vs-color-icon-accent-bog-myrtle":"rgb(78, 228, 138)","vs-color-icon-accent-kelp":"rgb(115, 252, 170)","vs-color-icon-accent-unicorn":"rgb(245, 81, 188)","vs-color-icon-accent-foxglove":"rgb(251, 177, 234)","vs-color-icon-accent-cranachan":"rgb(255, 71, 111)","vs-color-icon-accent-bluebell":"rgb(175, 175, 213)","vs-color-icon-accent-tolsta":"rgb(25, 200, 197)","vs-color-icon-accent-dunnock":"rgb(55, 230, 227)","vs-color-icon-accent-harr":"rgb(164, 244, 242)","vs-color-icon-accent-salmon":"rgb(249, 179, 194)","vs-color-icon-accent-whisky":"rgb(241, 135, 1)","vs-color-icon-accent-irn-bru":"rgb(254, 175, 72)","vs-color-icon-accent-bramble":"rgb(168, 48, 140)","vs-color-icon-accent-saltire":"rgb(31, 73, 214)","vs-color-icon-accent-buachaille":"rgb(255, 212, 0)","vs-color-icon-accent-gorse":"rgb(255, 228, 92)","vs-color-icon-accent-limestone":"rgb(255, 241, 173)","vs-color-icon-accent-loch-ness":"rgb(18, 43, 128)","vs-color-icon-accent-grey-01":"rgb(93, 84, 120)","vs-color-icon-accent-grey-02":"rgb(117, 109, 148)","vs-color-icon-accent-grey-03":"rgb(159, 154, 184)","vs-color-icon-accent-grey-04":"rgb(195, 191, 214)","vs-color-icon-accent-grey-05":"rgb(222, 219, 230)","vs-color-link":"rgb(31, 73, 214)","vs-color-link-pressed":"rgb(18, 43, 128)","vs-color-text-visited":"rgb(168, 48, 140)","vs-color-brand":"rgb(91, 36, 135)","vs-color-primary":"rgb(31, 73, 214)","vs-color-inverse":"rgb(255, 255, 255)","vs-color-tertiary":"rgb(168, 48, 140)","vs-color-neutral":"rgb(72, 64, 99)","vs-color-danger":"rgb(231, 24, 69)","vs-color-warning":"rgb(255, 228, 92)","vs-color-success":"rgb(4, 200, 82)","vs-color-disabled":"rgb(222, 219, 230)","vs-color-information":"rgb(240, 239, 244)","vs-color-text":"rgb(32, 15, 46)","vs-color-text-primary":"rgb(31, 73, 214)","vs-color-text-inverse":"rgb(255, 255, 255)","vs-color-text-tertiary":"rgb(168, 48, 140)","vs-color-text-danger":"rgb(231, 24, 69)","vs-color-text-disabled":"rgb(159, 154, 184)","vs-color-text-less-subtle":"rgb(93, 84, 120)","vs-color-text-subtle":"rgb(117, 109, 148)","vs-color-text-accent-lavender":"rgb(83, 83, 150)","vs-color-text-accent-etive":"rgb(114, 167, 254)","vs-color-text-accent-heather":"rgb(35, 1, 74)","vs-color-text-accent-glencoe":"rgb(4, 200, 82)","vs-color-text-accent-bog-myrtle":"rgb(78, 228, 138)","vs-color-text-accent-kelp":"rgb(115, 252, 170)","vs-color-text-accent-unicorn":"rgb(245, 81, 188)","vs-color-text-accent-foxglove":"rgb(251, 177, 234)","vs-color-text-accent-cranachan":"rgb(255, 71, 111)","vs-color-text-accent-bluebell":"rgb(175, 175, 213)","vs-color-text-accent-tolsta":"rgb(25, 200, 197)","vs-color-text-accent-dunnock":"rgb(55, 230, 227)","vs-color-text-accent-harr":"rgb(164, 244, 242)","vs-color-text-accent-salmon":"rgb(249, 179, 194)","vs-color-text-accent-whisky":"rgb(241, 135, 1)","vs-color-text-accent-irn-bru":"rgb(254, 175, 72)","vs-color-text-accent-buachaille":"rgb(255, 212, 0)","vs-color-text-accent-gorse":"rgb(255, 228, 92)","vs-color-text-accent-limestone":"rgb(255, 241, 173)","vs-elevation-shadow-raised":"0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)","vs-elevation-shadow-overlay":"0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)","vs-elevation-surface":"#ffffff","vs-elevation-surface-section":"#F0EFF4","vs-elevation-surface-raised":"#ffffff","vs-elevation-surface-overlay":"#ffffff","font-size-1":"0.625rem","font-size-2":"0.75rem","font-size-3":"0.875rem","font-size-4":"1rem","font-size-5":"1.125rem","font-size-6":"1.25rem","font-size-7":"1.375rem","font-size-8":"1.5rem","font-size-9":"1.875rem","font-size-10":"2.5rem","font-size-body":"1rem","font-size-body-md":"1.125rem","font-size-lead":"1.125rem","font-size-lead-md":"1.25rem","font-size-teaser":"1rem",font_weight_bold,font_weight_semi_bold,font_weight_normal,font_weight_light,font_family_sans_serif,headings_font_family,headings_font_family_thin,icon_size_xxs,icon_size_xs,icon_size_sm,icon_size_md,icon_size_lg,icon_size_xl,opacity_100,opacity_50,opacity_0,duration_quickly,duration_base,duration_slowly,breakpoint_xl,breakpoint_md,max_container_width_xl,breakpoint_sm,breakpoint_lg,breakpoint_xs,max_container_width_md,max_container_width_sm,max_container_width_lg,max_container_width_xxl,breakpoint_xxl,"vs-box-shadow-focus":"0 0 0 2px $vs-color-border-focus","vs-box-shadow-focus-on-dark":"0 0 0 2px $vs-color-border-accent-gorse","font-size-h1":"1.5rem","font-size-h1-md":"1.875rem","font-size-h2":"1.25rem","font-size-h2-md":"1.5rem","font-size-h3":"1.125rem","font-size-h3-md":"1.25rem","font-size-h4":"1rem","font-size-h5":"1.25rem","font-size-h5-md":"1.375rem","font-size-h6":"1.125rem","font-size-h6-md":"1.25rem","font-size-h3-sub":"1rem","font-size-h2-sub":"1.25rem",letter_spacing_xxl,letter_spacing_xl,letter_spacing_l,letter_spacing_m,letter_spacing_s,letter_spacing_xs,border_radius_default,border_radius_xl,border_radius_lg,border_radius_sm,border_radius_pill,"spacer-0":"0","spacer-1":"0.25rem","spacer-2":"0.5rem","spacer-3":"0.75rem","spacer-4":"1rem","spacer-5":"1.25rem","spacer-6":"1.5rem","spacer-7":"1.75rem","spacer-8":"2rem","spacer-9":"3rem","spacer-10":"4rem","spacer-11":"5rem","spacer-12":"6rem",line_height_lead,line_height_xl,line_height_l,line_height_m,line_height_s,line_height_standard,line_height_xs,grid_columns,grid_gutter_width,no_javascript,theme_dark,theme_grey},_sfc_main$1F={name:"VsCaptionImageMap",status:"prototype",release:"0.0.1",props:{latitude:{type:String,default:""},longitude:{type:String,default:""},mapOutlineColor:{type:String,default:"#191919"},mapMarkerColor:{type:String,default:"#191919"}},data(){return{cornerCoordinates:{NE:61.3,NW:54.4,SE:-9.1,SW:.4},mapWidth:75,mapHeight:104}},computed:{positionY(){const e=Number(this.latitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.NE,this.cornerCoordinates.NW,e,this.mapHeight))},positionX(){const e=Number(this.longitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.SE,this.cornerCoordinates.SW,e,this.mapWidth))}},methods:{calculateAxisPosition(e,r,t,n){return(t-e)*n/(r-e)}}},_hoisted_1$1l=["width","height"],_hoisted_2$U=["stroke"],_hoisted_3$K=["stroke"],_hoisted_4$y=["stroke"],_hoisted_5$p=["stroke"],_hoisted_6$l=["stroke"],_hoisted_7$f=["stroke"],_hoisted_8$7=["stroke"],_hoisted_9$4=["stroke"],_hoisted_10$4=["stroke"],_hoisted_11$4=["stroke"],_hoisted_12$3=["stroke"],_hoisted_13$3=["stroke"],_hoisted_14$3=["stroke"],_hoisted_15$3=["stroke"],_hoisted_16$2=["stroke"],_hoisted_17$2=["stroke"],_hoisted_18$1=["stroke"],_hoisted_19$1=["stroke"],_hoisted_20$1=["stroke"],_hoisted_21=["stroke"],_hoisted_22=["stroke"],_hoisted_23=["stroke"],_hoisted_24=["stroke"],_hoisted_25=["stroke"],_hoisted_26=["stroke"],_hoisted_27=["stroke"],_hoisted_28=["stroke"],_hoisted_29=["stroke"],_hoisted_30=["stroke"],_hoisted_31=["stroke"],_hoisted_32=["width","height"],_hoisted_33=["fill","cx","cy"];function _sfc_render$1y(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:o.mapWidth,height:o.mapHeight,viewBox:"0 0 76 105.9",class:"vs-caption-image-map","data-test":"vs-caption-image-map"},[vue.createElementVNode("path",{"data-test":"vs-caption-image-map__first-path",d:"M65.9965,9.0973l-.167.736.668.184Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_2$U),vue.createElementVNode("path",{d:`M64.6595,9.4653l-.668,2.391,\r
|
|
2
|
+
1.169.368-.334-1.287C64.8265,\r
|
|
3
|
+
10.2013,65.1605,10.2013,64.6595,9.4653Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_3$K),vue.createElementVNode("path",{d:"M66.1635,11.4883l1.336.184-.336-.736Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_4$y),vue.createElementVNode("path",{d:`M62.1546,11.3043l-1.5,1.1c.5.92.8349.736,\r
|
|
4
|
+
1.837.736l-.3341.368h-.173a1.6911,1.6911,0,0,0,1.336.92c-.668,\r
|
|
5
|
+
1.287-1.67,1.1-2.8389,1.655v.368c1.67.736,1.336,1.1,2.506-.184,\r
|
|
6
|
+
1.169,2.391-.5,2.759.668,4.966h.334l.334-1.471v-1.837l.5-1.1-.835-1.655a3.6491,\r
|
|
7
|
+
3.6491,0,0,0,.835-1.839c-.668.368-.668.368-1.336,0C62.3215,\r
|
|
8
|
+
12.7753,62.8235,12.2243,62.1546,11.3043Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_5$p),vue.createElementVNode("path",{d:"M65.9965,13.8793l-.668,1.287,1.169-.368Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_6$l),vue.createElementVNode("path",{d:"M49.46,30.2483l1,.736C50.96,30.2483,50.2945,29.5123,49.46,30.2483Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_7$f),vue.createElementVNode("path",{d:"M52.8005,31.1643l1.67-.552-.17-.548C53.1345,30.2483,52.9675,29.88,52.8005,31.1643Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_8$7),vue.createElementVNode("path",{d:"M51.2975,30.9843l.167,1.655,1.169-1.287Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_9$4),vue.createElementVNode("path",{d:`M48.6245,31.72c.1671,1.655-1,.552-1.5.92s-.334,\r
|
|
9
|
+
1.655-.167,2.207l1.336-.184c.167.92.5.552,1.169.736l.835.368a1.5181,1.5181,0,0,0,\r
|
|
10
|
+
1.8371-.736l-2.172.184.167-.736-1.3421-.184v-.363l.668-.368-.668-.552c.668-.552,\r
|
|
11
|
+
1-.368,1.5-1.287A2.6,2.6,0,0,0,48.6245,31.72Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_10$4),vue.createElementVNode("path",{d:"M50.4625,33.1913l.334.92.835-.92-.169-.184Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_11$4),vue.createElementVNode("path",{d:`M46.6205,36.1343c0,.184.167.552.167.736.167.184.167.368.334.368,\r
|
|
12
|
+
1.169.92,1.336-1.287.167-1.287C46.9545,35.95,46.7875,35.95,46.6205,36.1343Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_12$3),vue.createElementVNode("path",{d:"M49.6265,37.0533l-.334.92,1,.552.334-1.471Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_13$3),vue.createElementVNode("path",{d:`M46.12,39.6283c-1,1.287-1.5.736-2.505.92-.334.184-.668.552-1,\r
|
|
13
|
+
.552-.5.184-1.5-.184-2-.184a14.9016,14.9016,0,0,\r
|
|
14
|
+
0-3.007,1.1l.167.736-1.343-1.469a1.64,1.64,0,0,1-1.5,\r
|
|
15
|
+
1.287l.5-1.655-1.169.368-.668-1.1-1.336,1.1v.552c.5.368.668.368.334.92l.334,\r
|
|
16
|
+
1.1-1.169-.184,1.5,2.207-1.837-.184h-1.5c.668,1.839.835.92-.167,\r
|
|
17
|
+
2.759l-.5-.736c-.167.736.334,1.1.835,1.471a26.8342,26.8342,0,0,1,2.171,\r
|
|
18
|
+
2.207c-1.67,0-1.169-.736-2-1.1-.668-.368-1.5.184-2.171.552l-.835-.92.167,\r
|
|
19
|
+
1.839c-.668-.552-2-1.1-1.5.552,1,0,1,.736-.167,1.1l1.169,1.1,1,\r
|
|
20
|
+
1.287c-1.67.184-1.5-.92-3.174-.368a3.4256,3.4256,0,0,1,.668,2.207c1.336,\r
|
|
21
|
+
0,1.837-.7359,2.673.552h-2.515c.5.736.835.5521,1.5.736l1,\r
|
|
22
|
+
.736c-.668.368-.668.368-1.336.184l.167,1.287.668-.184c0,1.655-.334,\r
|
|
23
|
+
1.1-1.169,1.1l-1.169.184c.835,1.655,1.169.368,2.339,1.471a3.9245,3.9245,0,0,\r
|
|
24
|
+
1-2.506-.184c0,.552-.167,1.288.167,1.655l-.835.184v.92c-1.837-.552-1.67,\r
|
|
25
|
+
0-3.174.552,2.171,1.471,3.174-.552,5.178.368-1.5,1.471-.835-.184-3.341,\r
|
|
26
|
+
1.287.835.92,2.339.552,3.341.552.668-1.471,2-1.1,\r
|
|
27
|
+
2.506-2.023.334-.7359-.334-1.839.668-2.207.668-.368,1.169.552,1,\r
|
|
28
|
+
1.1a1.1582,1.1582,0,0,1-1,.552,3.54,3.54,0,0,0,2.673.7359l-1.5,\r
|
|
29
|
+
1.287-1.837.552-.334,1.655.668.1841,1.336-1.287c-.167.92-.5,\r
|
|
30
|
+
2.207-1.5,2.207-.668,0-1.5-.92-2.171,0-1,.92-.167,2.207-.5,\r
|
|
31
|
+
3.6779l.5.1841-.334.92c1.67.552,2.171-1.1,3.174-2.2071a6.619,\r
|
|
32
|
+
6.619,0,0,1,1.5-.92c.334,1.4709-.668,1.839-1.67,2.207,0,1.287-.835.7359-1,\r
|
|
33
|
+
2.5749a3.8062,3.8062,0,0,1,1.67,1.655l.668-.552.5-3.862h.835l-.167,2.207,\r
|
|
34
|
+
1.837.552c1.336.1841,1.169,0,2.339,1.1-1.169.184-1.67-.1841-2.84-.368a.9569.9569,\r
|
|
35
|
+
0,0,0-1.169.184c-.5.368-.167,1.1-.334,1.655l-.167,1.287c1,.736,2.673,2.023,\r
|
|
36
|
+
1.837,3.678a8.1472,8.1472,0,0,1-1.169,1.287c-.334.552,0,1.1-.5,\r
|
|
37
|
+
1.839-.334.552-1,.736-1.5,1.471-.5,1.1,0,1.655-.167,2.207,0,.368-.334.736-.5,\r
|
|
38
|
+
1.1-.167-.368-.668-1.471-1-1.471-.5-.184-1.169.736-.835,1.471s1.169.736,1.67,\r
|
|
39
|
+
1.1c.668.92.167,1.839,1.5,2.391.167-1.287-.668-2.207.167-2.759,1.169-.552,\r
|
|
40
|
+
2.84,1.839,3.341,2.023,1.5.552,1.336-.736.835-1.655a4.7548,4.7548,0,0,\r
|
|
41
|
+
1-.668-1.287c.334-.184.668-.368,1-.184.668.368.167,1.1,\r
|
|
42
|
+
1.336.736.167.368.167.552.5.7359a2.5229,2.5229,0,0,0,2,.368c.334,0,\r
|
|
43
|
+
.668-.552,1.169-.7359s1.336.184,1.67-.552c.5-.5521.167-1.8391,0-2.575,\r
|
|
44
|
+
1.5.7359,1.5.368,2.673.552.668.184,1.67.552,2.338.184.5-.184.5-.552,\r
|
|
45
|
+
1.336-1.287,2.171-1.655,4.51-3.862,7.015-4.6-.334-1.287-.835-1.287-1-2.023-.334-1.1,\r
|
|
46
|
+
1-2.207,1.837-2.575l-1-2.391-2.672-.92-2-1.1-1.5.3679c0,.552,0,\r
|
|
47
|
+
.92-.5,1.287-1.5.92-3.007-.7359-4.176-.92-.668,0-2.171.552-2.673-.368-.334-.368,\r
|
|
48
|
+
0-.736.334-.92.668-.368,1.336,0,2,.184l1.837.184.167-.552.835.368a2.3569,\r
|
|
49
|
+
2.3569,0,0,1,1.5-2.207c.334,0,.835.368,1.336.184l1.837-.736v-.368a5.49,\r
|
|
50
|
+
5.49,0,0,0-2.84-1.1l.334-.736-.668-.184c-.835,1.1-1.336.736-2.506,\r
|
|
51
|
+
1.1-.334,0-1,.184-1.336,0-.167-.184-.167-.368-.334-.736,2.171.368,\r
|
|
52
|
+
2.171-.92,3.508-1.287.668-.368,1,0,1.837,0a3.77,3.77,0,0,0,3.341-2.207,\r
|
|
53
|
+
5.2019,5.2019,0,0,1-1-.736c-.334-1.1,1.336-1.1,\r
|
|
54
|
+
1.5-1.287.334-.184.668-.92.835-1.1.334-.552,1.169-1.471,\r
|
|
55
|
+
1.336-1.839l.835-2.943.835-.92.668-1.839c.334-.552.668-.368,\r
|
|
56
|
+
1.169-1.471-1.336-1.288-.835-2.575-2-2.943s-2.505.736-4.176\r
|
|
57
|
+
.92-2.673-.92-3.341-.92l-1.837.368-2.338-.552c-1,\r
|
|
58
|
+
0-3.174,1.287-4.176,1.655l-1.169.552c-.334.184-.835.92-1.5,\r
|
|
59
|
+
1.471-.5.184-2.338.736-2.673.184-.334-.184-.167-.552,0-.736.5-.368,1,0,\r
|
|
60
|
+
1.5,0a8.5374,8.5374,0,0,0,2.171-2.207c-1.5-.552-1.336.736-3.007,\r
|
|
61
|
+
1.1l.5-1.839c1.67.184,1.336-.368,2.506-.552a4.4993,4.4993,0,0,1,1.5.368c0-1.471.5-.92,\r
|
|
62
|
+
1.169-2.207l-1.837.736c-1-.368-2.338.184-3.007-1.1h2.673l-.668-1.287a8.2712,\r
|
|
63
|
+
8.2712,0,0,0,2.506-1.1,6.33,6.33,0,0,0,1.837-1.1l.835-1.1,1.336-1.1c.835-.736,\r
|
|
64
|
+
2.171-1.2871,2-2.7591h.5c-.334-1.287-.668-1.287.167-2.0229l-1.67-.1841Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_14$3),vue.createElementVNode("path",{d:`M17.2225,46.4343c-.5-1.1-.835-1.1-1.837-.736l.167.736c-1.169.736-.835,\r
|
|
65
|
+
1.471.167,1.1l.334.92h-1l-.167.552a1.521,1.521,0,0,1,1.169,1.471l-1.339.555c.5.736,\r
|
|
66
|
+
1.336,1.287,2,.552.334-.184.5-.92.835-1.1.167-.184.835,0,1.169,0a3.0538,\r
|
|
67
|
+
3.0538,0,0,0-1.336-2.207l.835-.368a.8581.8581,0,0,0,.5.92c.835.736,1.67,0,\r
|
|
68
|
+
2.506-.368-.334-1.287-1.336-1.1-2.338-1.1l2.673-.736c-.5-2.023.5-1.839,\r
|
|
69
|
+
2-2.391l-.334-1.287c0-.368.334-1.1-.334-1.471-.5-.552-1.5.736-1.837,1.1-1.336,\r
|
|
70
|
+
1.287-1.837.92-2.506,1.471S18.5585,45.1463,17.2225,46.4343Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_15$3),vue.createElementVNode("path",{d:"M22.0665,45.33v.736c1-.368,1.5.184,2-.92Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_16$2),vue.createElementVNode("path",{d:`M20.8965,52.8713l-1,.92.5,1.471c-1.5.184-1-.736-2.171-1.1l.334,\r
|
|
71
|
+
2.759-1.5-.92c-.167,1.1.334,1.655,1.169,2.391l.5-.552c1.5-.552.668,2.575,\r
|
|
72
|
+
1.67,2.943.835.552,1.169-1.1,2,.184.5-.184,1.5-.552,1.336.552-.167.368-.668.736-.835,\r
|
|
73
|
+
1.1,1.336,0,1.336-.736,1.837-1.655l.668-.92a3.848,3.848,0,0,\r
|
|
74
|
+
1-2.84-1.839l-.5-3.311A3.0591,3.0591,0,0,0,20.8965,52.8713Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_17$2),vue.createElementVNode("path",{d:`M12.5415,54.1593c-.5-.736-.668-.552-1.336-.736l-.167.736c.167,0,\r
|
|
75
|
+
.5.184.668.184,1.336.92,0,2.575-.167,3.678-.167.92.167,1.655-.334,\r
|
|
76
|
+
3.311h1.169a22.2511,22.2511,0,0,1,.334-3.311c.167-1.287,0-1.839,\r
|
|
77
|
+
1-2.759l-.167-1.1c.668-.184.835-.184,1.169-.92C13.38,53.0553,\r
|
|
78
|
+
13.2125,52.8713,12.5415,54.1593Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_18$1),vue.createElementVNode("path",{d:`M23.9035,55.8133c-.334.736-.5,1.1-1.169,1.287,0,2.023,1,\r
|
|
79
|
+
1.471,1.169,1.1A11.4313,11.4313,0,0,0,23.9035,55.8133Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_19$1),vue.createElementVNode("path",{d:`M10.5405,62.0673l-.835.736a4.3288,4.3288,0,0,\r
|
|
80
|
+
1-.835,2.942l.167.184,1.333-2.023.5-1.1Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_20$1),vue.createElementVNode("path",{d:"M19.8945,62.6193l-.334,1.1,1.837-.184Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_21),vue.createElementVNode("path",{d:`M18.7255,67.5843c-1.169.92-1.837.92-2,2.207a5.2615,5.2615,0,0,\r
|
|
81
|
+
0-2.84.92c.167.184.167.368.5.368.835.184,2.84-1.471,3.508-2.023C18.3915,\r
|
|
82
|
+
68.6843,18.8925,68.32,18.7255,67.5843Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_22),vue.createElementVNode("path",{d:`M21.3975,68.1363c-1,1.1-1.336.368-1.5,1.655.668.184.668.368,1,\r
|
|
83
|
+
.92l1.336.184-1,.736,1.169.736-3.343.919c.167.184.167.368.334.552.5.184,\r
|
|
84
|
+
1.5.368,1.837,0a1.5054,1.5054,0,0,0,.167-.736c1.67.552.835-.552,\r
|
|
85
|
+
2.673-.184a1.6551,1.6551,0,0,1,1.67-.92c-.167-1.839-.835-1.287-1.837-2.023C23.0685,\r
|
|
86
|
+
69.4233,23.2355,69.0563,21.3975,68.1363Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_23),vue.createElementVNode("path",{d:`M22.4,80.4613c.5-1.1.668-1.1.167-2.207.334,0,.668.184,1,0,\r
|
|
87
|
+
.668-.184,1.336-1.839,1.5-2.391-1.169,0-2.171,1.1-2.84,2.0231C21.7315,\r
|
|
88
|
+
78.62,20.73,79.3563,22.4,80.4613Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_24),vue.createElementVNode("path",{d:`M26.0755,76.4133c-.835,1.287-.334,1.287-.5,\r
|
|
89
|
+
2.207-.334.92-.668.736-.835,2.207,1.169.184,1.169.184,2.171-.736-.167,\r
|
|
90
|
+
1.471-3.174,2.943-1.837,4.966l-.334.3681v.1839c2.171-.368,2-2.575,\r
|
|
91
|
+
2.506-3.4939.167-.736.835-.92.668-1.655,0-.552-.668-1.287-.835-1.839,\r
|
|
92
|
+
0-.552.167-.92.167-1.471Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_25),vue.createElementVNode("path",{d:"M20.5605,76.5973l-1,.736C20.0605,77.5173,20.73,77.3333,20.5605,76.5973Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_26),vue.createElementVNode("path",{d:"M27.5785,78.9883c.668.92,2,2.391,3.174,2.207-.334-.552-.334-.92-1-1.1v-.736Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_27),vue.createElementVNode("path",{d:`M18.7255,83.4023c.668-.1839.668-.1839.835-.92.167,0,\r
|
|
93
|
+
.334.184.668,0,1.5,0,.835-1.287.5-2.207l-.333-1.103c-1.169.552-.668.92-1,\r
|
|
94
|
+
2.023A6.64,6.64,0,0,0,18.7255,83.4023Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_28),vue.createElementVNode("path",{d:`M18.8885,79.3553l-1.336,1.1.167.736-.835.92.167.184C18.2245,\r
|
|
95
|
+
81.93,19.7285,81.01,18.8885,79.3553Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_29),vue.createElementVNode("path",{d:`M28.2465,82.1143c-.668.92-.5,1.287-.5,2.391,0,.552,0,\r
|
|
96
|
+
1.288.668,1.288C29.75,85.6083,29.2485,82.85,28.2465,82.1143Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_30),vue.createElementVNode("path",{d:`M23.2355,88.1793c1.5-.92.5-.736,2.506-.92C24.5725,\r
|
|
97
|
+
85.0573,23.0685,85.9793,23.2355,88.1793Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_31),vue.createElementVNode("rect",{width:o.mapWidth,height:o.mapHeight,fill:"none"},null,8,_hoisted_32),vue.createElementVNode("circle",{r:"4","data-test":"vs-caption-image-map__marker",fill:t.mapMarkerColor,cx:a.positionX,cy:a.positionY},null,8,_hoisted_33)],8,_hoisted_1$1l)}const VsCaptionImageMap=v4._export_sfc(_sfc_main$1F,[["render",_sfc_render$1y]]),_sfc_main$1E={name:"VsCaption",status:"prototype",release:"0.0.1",components:{VsRow:v4.VsRow,VsCol:v4.VsCol,VsCaptionImageMap},props:{variant:{type:String,default:"fullwidth",validator:e=>e.match(/(fullwidth|large)/)},latitude:{type:String,default:""},longitude:{type:String,default:""},textAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},data(){return{tokens:designTokens}},computed:{showMap(){return!!(this.longitude&&this.latitude)},isLargeCaption(){return this.variant==="large"},captionClasses(){return[{"vs-caption--large":this.isLargeCaption,"vs-caption--fullwidth":!this.isLargeCaption},`vs-caption--${this.textAlign}`]}}},_hoisted_1$1k={class:"vs-caption__caption-info"},_hoisted_2$T={key:0,class:"vs-caption__image-caption"},_hoisted_3$J={key:1,class:"vs-caption__image-credit"},_hoisted_4$x={class:"vs-caption__map-wrapper pt-3 pt-sm-2 pb-sm-2 pe-sm-4 mx-auto"};function _sfc_render$1x(e,r,t,n,o,a){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsCaptionImageMap"),l=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"vs-caption",class:vue.normalizeClass(["vs-caption",a.captionClasses])},[vue.createVNode(l,{class:"justify-content-center justify-content-sm-start"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:vue.normalizeClass(["order-2 order-sm-1",[a.showMap?"":"align-self-center"]])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1k,[e.$slots.caption?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$T,[vue.renderSlot(e.$slots,"caption")])):vue.createCommentVNode("",!0),e.$slots.credit?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$J,[vue.renderSlot(e.$slots,"credit")])):vue.createCommentVNode("",!0)])]),_:3},8,["class"]),a.showMap&&a.isLargeCaption?(vue.openBlock(),vue.createBlock(s,{key:0,class:"col-12 col-sm-auto order-1 order-sm-2 ps-sm-0 align-self-end align-self-sm-start"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_4$x,[vue.createVNode(i,{latitude:t.latitude,longitude:t.longitude,"map-outline-color":o.tokens["vs-color-icon-inverse"],"map-marker-color":o.tokens["vs-color-icon-accent-tolsta"]},null,8,["latitude","longitude","map-outline-color","map-marker-color"])])]),_:1})):vue.createCommentVNode("",!0)]),_:3})],2)}const Caption=v4._export_sfc(_sfc_main$1E,[["render",_sfc_render$1x]]),_sfc_main$1D={name:"VsProgressBar",status:"prototype",release:"0.1.0",components:{BProgress:bootstrapVueNext.BProgress,BProgressBar:bootstrapVueNext.BProgressBar},props:{max:{type:Number,required:!0},currentStep:{type:Number,required:!0},isStepped:{type:Boolean,required:!1},isFull:{type:Boolean,required:!1},progressLabel:{type:String,default:""}},data(){return{compId:null}},computed:{computedClasses(){let e="";return this.isFull&&(e+="vs-progress-bar--full "),this.isStepped&&(e+="vs-progress-bar--stepped "),e},interpolProgressLabel(){if(this.progressLabel){let e=this.progressLabel.replace("xxx",this.currentStep);return e=e.replace("yyy",this.max),e}return""}},mounted(){const e=vue.getCurrentInstance();this.compId=vue.ref(e.uid)}},_hoisted_1$1j={key:1,class:"vs-progress-bar__stepper"},_hoisted_2$S=["id"],_hoisted_3$I=["id"];function _sfc_render$1w(e,r,t,n,o,a){const s=vue.resolveComponent("BProgressBar"),i=vue.resolveComponent("BProgress");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-progress-bar",a.computedClasses]),"data-test":"vs-progress-bar"},[!t.isStepped||t.max>5?(vue.openBlock(),vue.createBlock(i,{key:0,max:t.max},{default:vue.withCtx(()=>[vue.createVNode(s,{value:t.currentStep,"aria-labelledBy":"progress-bar-"+o.compId},null,8,["value","aria-labelledBy"])]),_:1},8,["max"])):vue.createCommentVNode("",!0),t.isStepped&&t.max<=5?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1j,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.max,l=>(vue.openBlock(),vue.createBlock(i,{key:l,max:1},{default:vue.withCtx(()=>[vue.createVNode(s,{value:l<=t.currentStep?1:0,"aria-labelledBy":"progress-bar-"+o.compId},null,8,["value","aria-labelledBy"])]),_:2},1024))),128))])):vue.createCommentVNode("",!0),a.interpolProgressLabel?(vue.openBlock(),vue.createElementBlock("p",{key:2,class:"vs-progress-bar__label",id:"progress-bar-"+o.compId},vue.toDisplayString(a.interpolProgressLabel),9,_hoisted_2$S)):(vue.openBlock(),vue.createElementBlock("p",{key:3,class:"vs-progress-bar__label",id:"progress-bar-"+o.compId},vue.toDisplayString(t.currentStep)+" / "+vue.toDisplayString(t.max),9,_hoisted_3$I))],2)}const VsProgressBar=v4._export_sfc(_sfc_main$1D,[["render",_sfc_render$1w]]),_sfc_main$1C={name:"VsCarbonCalculatorTip",status:"prototype",release:"0.0.1",components:{VsIcon:v4.VsIcon,VsHeading:v4.VsHeading},inject:["labelsMap"],props:{tip:{type:String,default:""},showingAllTips:{type:Boolean,default:!1}}},_hoisted_1$1i={class:"vs-carbon-calculator-tip","data-test":"vs-carbon-calculator-tip"},_hoisted_2$R={class:"vs-carbon-calculator-tip__icon-container"},_hoisted_3$H={class:"vs-carbon-calculator-tip__content"},_hoisted_4$w=["innerHTML"],_hoisted_5$o=["innerHTML"];function _sfc_render$1v(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1i,[vue.createElementVNode("div",_hoisted_2$R,[vue.createVNode(s,{name:"coo",size:"lg",class:"vs-carbon-calculator-tip__icon"})]),vue.createElementVNode("div",_hoisted_3$H,[vue.createVNode(i,{level:"3",overrideStyleLevel:"6"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.labelsMap.topTip),1)]),_:1}),t.showingAllTips?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__summary",innerHTML:a.labelsMap.allTips},null,8,_hoisted_4$w)):vue.createCommentVNode("",!0),t.showingAllTips?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__content",innerHTML:t.tip},null,8,_hoisted_5$o))])])}const VsCarbonCalculatorTip=v4._export_sfc(_sfc_main$1C,[["render",_sfc_render$1v]]);function _isPlaceholder(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function _curry1(e){return function r(t){return arguments.length===0||_isPlaceholder(t)?r:e.apply(this,arguments)}}function _curry2(e){return function r(t,n){switch(arguments.length){case 0:return r;case 1:return _isPlaceholder(t)?r:_curry1(function(o){return e(t,o)});default:return _isPlaceholder(t)&&_isPlaceholder(n)?r:_isPlaceholder(t)?_curry1(function(o){return e(o,n)}):_isPlaceholder(n)?_curry1(function(o){return e(t,o)}):e(t,n)}}}function _arity(e,r){switch(e){case 0:return function(){return r.apply(this,arguments)};case 1:return function(t){return r.apply(this,arguments)};case 2:return function(t,n){return r.apply(this,arguments)};case 3:return function(t,n,o){return r.apply(this,arguments)};case 4:return function(t,n,o,a){return r.apply(this,arguments)};case 5:return function(t,n,o,a,s){return r.apply(this,arguments)};case 6:return function(t,n,o,a,s,i){return r.apply(this,arguments)};case 7:return function(t,n,o,a,s,i,l){return r.apply(this,arguments)};case 8:return function(t,n,o,a,s,i,l,u){return r.apply(this,arguments)};case 9:return function(t,n,o,a,s,i,l,u,c){return r.apply(this,arguments)};case 10:return function(t,n,o,a,s,i,l,u,c,d){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(e,r,t){return function(){for(var n=[],o=0,a=e,s=0;s<r.length||o<arguments.length;){var i;s<r.length&&(!_isPlaceholder(r[s])||o>=arguments.length)?i=r[s]:(i=arguments[o],o+=1),n[s]=i,_isPlaceholder(i)||(a-=1),s+=1}return a<=0?t.apply(this,n):_arity(a,_curryN(e,n,t))}}var curryN=_curry2(function(r,t){return r===1?_curry1(t):_arity(r,_curryN(r,[],t))});function _curry3(e){return function r(t,n,o){switch(arguments.length){case 0:return r;case 1:return _isPlaceholder(t)?r:_curry2(function(a,s){return e(t,a,s)});case 2:return _isPlaceholder(t)&&_isPlaceholder(n)?r:_isPlaceholder(t)?_curry2(function(a,s){return e(a,n,s)}):_isPlaceholder(n)?_curry2(function(a,s){return e(t,a,s)}):_curry1(function(a){return e(t,n,a)});default:return _isPlaceholder(t)&&_isPlaceholder(n)&&_isPlaceholder(o)?r:_isPlaceholder(t)&&_isPlaceholder(n)?_curry2(function(a,s){return e(a,s,o)}):_isPlaceholder(t)&&_isPlaceholder(o)?_curry2(function(a,s){return e(a,n,s)}):_isPlaceholder(n)&&_isPlaceholder(o)?_curry2(function(a,s){return e(t,a,s)}):_isPlaceholder(t)?_curry1(function(a){return e(a,n,o)}):_isPlaceholder(n)?_curry1(function(a){return e(t,a,o)}):_isPlaceholder(o)?_curry1(function(a){return e(t,n,a)}):e(t,n,o)}}}var _isArray=Array.isArray||function(r){return r!=null&&r.length>=0&&Object.prototype.toString.call(r)==="[object Array]"};function _isTransformer(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function _dispatchable(e,r,t){return function(){if(arguments.length===0)return t();var n=arguments[arguments.length-1];if(!_isArray(n)){for(var o=0;o<e.length;){if(typeof n[e[o]]=="function")return n[e[o]].apply(n,Array.prototype.slice.call(arguments,0,-1));o+=1}if(_isTransformer(n)){var a=r.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(n)}}return t.apply(this,arguments)}}var _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function _map(e,r){for(var t=0,n=r.length,o=Array(n);t<n;)o[t]=e(r[t]),t+=1;return o}function _isString(e){return Object.prototype.toString.call(e)==="[object String]"}var _isArrayLike=_curry1(function(r){return _isArray(r)?!0:!r||typeof r!="object"||_isString(r)?!1:r.length===0?!0:r.length>0?r.hasOwnProperty(0)&&r.hasOwnProperty(r.length-1):!1}),XWrap=function(){function e(r){this.f=r}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(r){return r},e.prototype["@@transducer/step"]=function(r,t){return this.f(r,t)},e}();function _xwrap(e){return new XWrap(e)}var bind=_curry2(function(r,t){return _arity(r.length,function(){return r.apply(t,arguments)})});function _arrayReduce(e,r,t){for(var n=0,o=t.length;n<o;){if(r=e["@@transducer/step"](r,t[n]),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n+=1}return e["@@transducer/result"](r)}function _iterableReduce(e,r,t){for(var n=t.next();!n.done;){if(r=e["@@transducer/step"](r,n.value),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n=t.next()}return e["@@transducer/result"](r)}function _methodReduce(e,r,t,n){return e["@@transducer/result"](t[n](bind(e["@@transducer/step"],e),r))}var symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(e,r,t){if(typeof e=="function"&&(e=_xwrap(e)),_isArrayLike(t))return _arrayReduce(e,r,t);if(typeof t["fantasy-land/reduce"]=="function")return _methodReduce(e,r,t,"fantasy-land/reduce");if(t[symIterator]!=null)return _iterableReduce(e,r,t[symIterator]());if(typeof t.next=="function")return _iterableReduce(e,r,t);if(typeof t.reduce=="function")return _methodReduce(e,r,t,"reduce");throw new TypeError("reduce: list must be array or iterable")}var XMap=function(){function e(r,t){this.xf=t,this.f=r}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,this.f(t))},e}(),_xmap=_curry2(function(r,t){return new XMap(r,t)});function _has(e,r){return Object.prototype.hasOwnProperty.call(r,e)}var toString$1=Object.prototype.toString,_isArguments=function(){return toString$1.call(arguments)==="[object Arguments]"?function(r){return toString$1.call(r)==="[object Arguments]"}:function(r){return _has("callee",r)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(r,t){for(var n=0;n<r.length;){if(r[n]===t)return!0;n+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(r){return Object(r)!==r?[]:Object.keys(r)}:function(r){if(Object(r)!==r)return[];var t,n,o=[],a=hasArgsEnumBug&&_isArguments(r);for(t in r)_has(t,r)&&(!a||t!=="length")&&(o[o.length]=t);if(hasEnumBug)for(n=nonEnumerableProps.length-1;n>=0;)t=nonEnumerableProps[n],_has(t,r)&&!contains(o,t)&&(o[o.length]=t),n-=1;return o}),map$1=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(r,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return curryN(t.length,function(){return r.call(this,t.apply(this,arguments))});case"[object Object]":return _reduce(function(n,o){return n[o]=r(t[o]),n},{},keys(t));default:return _map(r,t)}})),map$2=map$1,_isInteger=Number.isInteger||function(r){return r<<0===r},nth=_curry2(function(r,t){var n=r<0?t.length+r:r;return _isString(t)?t.charAt(n):t[n]}),nth$1=nth,prop=_curry2(function(r,t){if(t!=null)return _isInteger(r)?nth$1(r,t):t[r]}),prop$1=prop,reduce=_curry3(_reduce),reduce$1=reduce,values=_curry1(function(r){for(var t=keys(r),n=t.length,o=[],a=0;a<n;)o[a]=r[t[a]],a+=1;return o}),values$1=values;function _isFunction(e){var r=Object.prototype.toString.call(e);return r==="[object Function]"||r==="[object AsyncFunction]"||r==="[object GeneratorFunction]"||r==="[object AsyncGeneratorFunction]"}var type=_curry1(function(r){return r===null?"Null":r===void 0?"Undefined":Object.prototype.toString.call(r).slice(8,-1)});function _pipe(e,r){return function(){return r.call(this,e.apply(this,arguments))}}function _checkForMethod(e,r){return function(){var t=arguments.length;if(t===0)return r();var n=arguments[t-1];return _isArray(n)||typeof n[e]!="function"?r.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,t-1))}}var slice=_curry3(_checkForMethod("slice",function(r,t,n){return Array.prototype.slice.call(n,r,t)})),tail=_curry1(_checkForMethod("tail",slice(1,1/0))),tail$1=tail;function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,reduce$1(_pipe,arguments[0],tail$1(arguments)))}function _arrayFromIterator(e){for(var r=[],t;!(t=e.next()).done;)r.push(t.value);return r}function _includesWith(e,r,t){for(var n=0,o=t.length;n<o;){if(e(r,t[n]))return!0;n+=1}return!1}function _functionName(e){var r=String(e).match(/^function (\w*)/);return r==null?"":r[1]}function _objectIs(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}var _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;function _uniqContentEquals(e,r,t,n){var o=_arrayFromIterator(e),a=_arrayFromIterator(r);function s(i,l){return _equals(i,l,t.slice(),n.slice())}return!_includesWith(function(i,l){return!_includesWith(s,l,i)},a,o)}function _equals(e,r,t,n){if(_objectIs$1(e,r))return!0;var o=type(e);if(o!==type(r))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof r["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](r)&&typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof r.equals=="function")return typeof e.equals=="function"&&e.equals(r)&&typeof r.equals=="function"&&r.equals(e);switch(o){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&_functionName(e.constructor)==="Promise")return e===r;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof r&&_objectIs$1(e.valueOf(),r.valueOf())))return!1;break;case"Date":if(!_objectIs$1(e.valueOf(),r.valueOf()))return!1;break;case"Error":return e.name===r.name&&e.message===r.message;case"RegExp":if(!(e.source===r.source&&e.global===r.global&&e.ignoreCase===r.ignoreCase&&e.multiline===r.multiline&&e.sticky===r.sticky&&e.unicode===r.unicode))return!1;break}for(var a=t.length-1;a>=0;){if(t[a]===e)return n[a]===r;a-=1}switch(o){case"Map":return e.size!==r.size?!1:_uniqContentEquals(e.entries(),r.entries(),t.concat([e]),n.concat([r]));case"Set":return e.size!==r.size?!1:_uniqContentEquals(e.values(),r.values(),t.concat([e]),n.concat([r]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=keys(e);if(s.length!==keys(r).length)return!1;var i=t.concat([e]),l=n.concat([r]);for(a=s.length-1;a>=0;){var u=s[a];if(!(_has(u,r)&&_equals(r[u],e[u],i,l)))return!1;a-=1}return!0}var equals=_curry2(function(r,t){return _equals(r,t,[],[])});function _indexOf(e,r,t){var n,o;if(typeof e.indexOf=="function")switch(typeof r){case"number":if(r===0){for(n=1/r;t<e.length;){if(o=e[t],o===0&&1/o===n)return t;t+=1}return-1}else if(r!==r){for(;t<e.length;){if(o=e[t],typeof o=="number"&&o!==o)return t;t+=1}return-1}return e.indexOf(r,t);case"string":case"boolean":case"function":case"undefined":return e.indexOf(r,t);case"object":if(r===null)return e.indexOf(r,t)}for(;t<e.length;){if(equals(e[t],r))return t;t+=1}return-1}function _includes(e,r){return _indexOf(r,e,0)>=0}function _quote(e){var r=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+r.replace(/"/g,'\\"')+'"'}var pad=function(r){return(r<10?"0":"")+r},_toISOString=typeof Date.prototype.toISOString=="function"?function(r){return r.toISOString()}:function(r){return r.getUTCFullYear()+"-"+pad(r.getUTCMonth()+1)+"-"+pad(r.getUTCDate())+"T"+pad(r.getUTCHours())+":"+pad(r.getUTCMinutes())+":"+pad(r.getUTCSeconds())+"."+(r.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(e){return function(){return!e.apply(this,arguments)}}function _filter(e,r){for(var t=0,n=r.length,o=[];t<n;)e(r[t])&&(o[o.length]=r[t]),t+=1;return o}function _isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}var XFilter=function(){function e(r,t){this.xf=t,this.f=r}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):r},e}(),_xfilter=_curry2(function(r,t){return new XFilter(r,t)}),filter$1=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(e,r){return _isObject(r)?_reduce(function(t,n){return e(r[n])&&(t[n]=r[n]),t},{},keys(r)):_filter(e,r)})),reject=_curry2(function(r,t){return filter$1(_complement(r),t)});function _toString(e,r){var t=function(s){var i=r.concat([e]);return _includes(s,i)?"<Circular>":_toString(s,i)},n=function(a,s){return _map(function(i){return _quote(i)+": "+t(a[i])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+_map(t,e).join(", ")+"))";case"[object Array]":return"["+_map(t,e).concat(n(e,reject(function(a){return/^\d+$/.test(a)},keys(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+t(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?t(NaN):_quote(_toISOString(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+t(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+t(e.valueOf())+")":_quote(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var o=e.toString();if(o!=="[object Object]")return o}return"{"+n(e,keys(e)).join(", ")+"}"}}var toString=_curry1(function(r){return _toString(r,[])}),curry=_curry1(function(r){return curryN(r.length,r)}),curry$1=curry,invoker=_curry2(function(r,t){return curryN(r+1,function(){var n=arguments[r];if(n!=null&&_isFunction(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,r));throw new TypeError(toString(n)+' does not have a method named "'+t+'"')})}),invoker$1=invoker,is=_curry2(function(r,t){return t instanceof r||t!=null&&(t.constructor===r||r.name==="Object"&&typeof t=="object")}),is$1=is,join=invoker$1(1,"join"),join$1=join,mergeWithKey=_curry3(function(r,t,n){var o={},a;for(a in t)_has(a,t)&&(o[a]=_has(a,n)?r(a,t[a],n[a]):t[a]);for(a in n)_has(a,n)&&!_has(a,o)&&(o[a]=n[a]);return o}),mergeDeepWithKey=_curry3(function e(r,t,n){return mergeWithKey(function(o,a,s){return _isObject(a)&&_isObject(s)?e(r,a,s):r(o,a,s)},t,n)}),mergeDeepLeft=_curry2(function(r,t){return mergeDeepWithKey(function(n,o,a){return o},r,t)}),mergeDeepLeft$1=mergeDeepLeft,omit=_curry2(function(r,t){for(var n={},o={},a=0,s=r.length;a<s;)o[r[a]]=1,a+=1;for(var i in t)o.hasOwnProperty(i)||(n[i]=t[i]);return n}),omit$1=omit,pickBy=_curry2(function(r,t){var n={};for(var o in t)r(t[o],o,t)&&(n[o]=t[o]);return n}),pickBy$1=pickBy,split=invoker$1(1,"split"),split$1=split,toLower=invoker$1(0,"toLowerCase"),toLower$1=toLower,zipObj=_curry2(function(r,t){for(var n=0,o=Math.min(r.length,t.length),a={};n<o;)a[r[n]]=t[n],n+=1;return a}),zipObj$1=zipObj;pipe(toLower$1,split$1(" "),join$1("-"));const getCol=curry$1((e,r)=>is$1(Number)?map$2(t=>nth$1(e,t)||"",r).filter(t=>t!==""):map$2(prop$1(e),r)),mapKeys=(e,r)=>zipObj$1(map$2(e,keys(r)),values$1(r)),kebabize=e=>e.split("").map((r,t)=>r.toUpperCase()===r?`${t!==0?"-":""}${r.toLowerCase()}`:r).join("");function ascending$1(e,r){return e==null||r==null?NaN:e<r?-1:e>r?1:e>=r?0:NaN}function descending$1(e,r){return e==null||r==null?NaN:r<e?-1:r>e?1:r>=e?0:NaN}function bisector(e){let r,t,n;e.length!==2?(r=ascending$1,t=(i,l)=>ascending$1(e(i),l),n=(i,l)=>e(i)-l):(r=e===ascending$1||e===descending$1?e:zero$1,t=e,n=e);function o(i,l,u=0,c=i.length){if(u<c){if(r(l,l)!==0)return c;do{const d=u+c>>>1;t(i[d],l)<0?u=d+1:c=d}while(u<c)}return u}function a(i,l,u=0,c=i.length){if(u<c){if(r(l,l)!==0)return c;do{const d=u+c>>>1;t(i[d],l)<=0?u=d+1:c=d}while(u<c)}return u}function s(i,l,u=0,c=i.length){const d=o(i,l,u,c-1);return d>u&&n(i[d-1],l)>-n(i[d],l)?d-1:d}return{left:o,center:s,right:a}}function zero$1(){return 0}function number$2(e){return e===null?NaN:+e}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right,bisectCenter=bisector(number$2).center;function extent(e,r){let t,n;for(const o of e)o!=null&&(t===void 0?o>=o&&(t=n=o):(t>o&&(t=o),n<o&&(n=o)));return[t,n]}class InternMap extends Map{constructor(r,t=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),r!=null)for(const[n,o]of r)this.set(n,o)}get(r){return super.get(intern_get(this,r))}has(r){return super.has(intern_get(this,r))}set(r,t){return super.set(intern_set(this,r),t)}delete(r){return super.delete(intern_delete(this,r))}}function intern_get({_intern:e,_key:r},t){const n=r(t);return e.has(n)?e.get(n):t}function intern_set({_intern:e,_key:r},t){const n=r(t);return e.has(n)?e.get(n):(e.set(n,t),t)}function intern_delete({_intern:e,_key:r},t){const n=r(t);return e.has(n)&&(t=e.get(n),e.delete(n)),t}function keyof(e){return e!==null&&typeof e=="object"?e.valueOf():e}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(e,r,t){const n=(r-e)/Math.max(0,t),o=Math.floor(Math.log10(n)),a=n/Math.pow(10,o),s=a>=e10?10:a>=e5?5:a>=e2?2:1;let i,l,u;return o<0?(u=Math.pow(10,-o)/s,i=Math.round(e*u),l=Math.round(r*u),i/u<e&&++i,l/u>r&&--l,u=-u):(u=Math.pow(10,o)*s,i=Math.round(e/u),l=Math.round(r/u),i*u<e&&++i,l*u>r&&--l),l<i&&.5<=t&&t<2?tickSpec(e,r,t*2):[i,l,u]}function ticks(e,r,t){if(r=+r,e=+e,t=+t,!(t>0))return[];if(e===r)return[e];const n=r<e,[o,a,s]=n?tickSpec(r,e,t):tickSpec(e,r,t);if(!(a>=o))return[];const i=a-o+1,l=new Array(i);if(n)if(s<0)for(let u=0;u<i;++u)l[u]=(a-u)/-s;else for(let u=0;u<i;++u)l[u]=(a-u)*s;else if(s<0)for(let u=0;u<i;++u)l[u]=(o+u)/-s;else for(let u=0;u<i;++u)l[u]=(o+u)*s;return l}function tickIncrement(e,r,t){return r=+r,e=+e,t=+t,tickSpec(e,r,t)[2]}function tickStep(e,r,t){r=+r,e=+e,t=+t;const n=r<e,o=n?tickIncrement(r,e,t):tickIncrement(e,r,t);return(n?-1:1)*(o<0?1/-o:o)}function max$1(e,r){let t;if(r===void 0)for(const n of e)n!=null&&(t<n||t===void 0&&n>=n)&&(t=n);else{let n=-1;for(let o of e)(o=r(o,++n,e))!=null&&(t<o||t===void 0&&o>=o)&&(t=o)}return t}function min$1(e,r){let t;if(r===void 0)for(const n of e)n!=null&&(t>n||t===void 0&&n>=n)&&(t=n);else{let n=-1;for(let o of e)(o=r(o,++n,e))!=null&&(t>o||t===void 0&&o>=o)&&(t=o)}return t}function range(e,r,t){e=+e,r=+r,t=(o=arguments.length)<2?(r=e,e=0,1):o<3?1:+t;for(var n=-1,o=Math.max(0,Math.ceil((r-e)/t))|0,a=new Array(o);++n<o;)a[n]=e+n*t;return a}function initRange(e,r){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(r).domain(e);break}return this}function initInterpolator(e,r){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof r=="function"?this.interpolator(r):this.range(r);break}}return this}const implicit=Symbol("implicit");function ordinal(){var e=new InternMap,r=[],t=[],n=implicit;function o(a){let s=e.get(a);if(s===void 0){if(n!==implicit)return n;e.set(a,s=r.push(a)-1)}return t[s%t.length]}return o.domain=function(a){if(!arguments.length)return r.slice();r=[],e=new InternMap;for(const s of a)e.has(s)||e.set(s,r.push(s)-1);return o},o.range=function(a){return arguments.length?(t=Array.from(a),o):t.slice()},o.unknown=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return ordinal(r,t).unknown(n)},initRange.apply(o,arguments),o}function band(){var e=ordinal().unknown(void 0),r=e.domain,t=e.range,n=0,o=1,a,s,i=!1,l=0,u=0,c=.5;delete e.unknown;function d(){var p=r().length,f=o<n,m=f?o:n,v=f?n:o;a=(v-m)/Math.max(1,p-l+u*2),i&&(a=Math.floor(a)),m+=(v-m-a*(p-l))*c,s=a*(1-l),i&&(m=Math.round(m),s=Math.round(s));var h=range(p).map(function(g){return m+a*g});return t(f?h.reverse():h)}return e.domain=function(p){return arguments.length?(r(p),d()):r()},e.range=function(p){return arguments.length?([n,o]=p,n=+n,o=+o,d()):[n,o]},e.rangeRound=function(p){return[n,o]=p,n=+n,o=+o,i=!0,d()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(p){return arguments.length?(i=!!p,d()):i},e.padding=function(p){return arguments.length?(l=Math.min(1,u=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(u=+p,d()):u},e.align=function(p){return arguments.length?(c=Math.max(0,Math.min(1,p)),d()):c},e.copy=function(){return band(r(),[n,o]).round(i).paddingInner(l).paddingOuter(u).align(c)},initRange.apply(d(),arguments)}function define(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function extend(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=reHex.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?rgbn(r):t===3?new Rgb(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?rgba(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?rgba(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=reRgbInteger.exec(e))?new Rgb(r[1],r[2],r[3],1):(r=reRgbPercent.exec(e))?new Rgb(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=reRgbaInteger.exec(e))?rgba(r[1],r[2],r[3],r[4]):(r=reRgbaPercent.exec(e))?rgba(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=reHslPercent.exec(e))?hsla(r[1],r[2]/100,r[3]/100,1):(r=reHslaPercent.exec(e))?hsla(r[1],r[2]/100,r[3]/100,r[4]):named.hasOwnProperty(e)?rgbn(named[e]):e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,e&255,1)}function rgba(e,r,t,n){return n<=0&&(e=r=t=NaN),new Rgb(e,r,t,n)}function rgbConvert(e){return e instanceof Color||(e=color(e)),e?(e=e.rgb(),new Rgb(e.r,e.g,e.b,e.opacity)):new Rgb}function rgb$1(e,r,t,n){return arguments.length===1?rgbConvert(e):new Rgb(e,r,t,n??1)}function Rgb(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}define(Rgb,rgb$1,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const e=clampa(this.opacity);return`${e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${e===1?")":`, ${e})`}`}function clampa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function clampi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hex(e){return e=clampi(e),(e<16?"0":"")+e.toString(16)}function hsla(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Hsl(e,r,t,n)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;e=e.rgb();var r=e.r/255,t=e.g/255,n=e.b/255,o=Math.min(r,t,n),a=Math.max(r,t,n),s=NaN,i=a-o,l=(a+o)/2;return i?(r===a?s=(t-n)/i+(t<n)*6:t===a?s=(n-r)/i+2:s=(r-t)/i+4,i/=l<.5?a+o:2-a-o,s*=60):i=l>0&&l<1?0:s,new Hsl(s,i,l,e.opacity)}function hsl(e,r,t,n){return arguments.length===1?hslConvert(e):new Hsl(e,r,t,n??1)}function Hsl(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}define(Hsl,hsl,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,o=2*t-n;return new Rgb(hsl2rgb(e>=240?e-240:e+120,o,n),hsl2rgb(e,o,n),hsl2rgb(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=clampa(this.opacity);return`${e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function clamph(e){return e=(e||0)%360,e<0?e+360:e}function clampt(e){return Math.max(0,Math.min(1,e||0))}function hsl2rgb(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}const radians=Math.PI/180,degrees=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0=4/29,t1=6/29,t2=3*t1*t1,t3=t1*t1*t1;function labConvert(e){if(e instanceof Lab)return new Lab(e.l,e.a,e.b,e.opacity);if(e instanceof Hcl)return hcl2lab(e);e instanceof Rgb||(e=rgbConvert(e));var r=rgb2lrgb(e.r),t=rgb2lrgb(e.g),n=rgb2lrgb(e.b),o=xyz2lab((.2225045*r+.7168786*t+.0606169*n)/Yn),a,s;return r===t&&t===n?a=s=o:(a=xyz2lab((.4360747*r+.3850649*t+.1430804*n)/Xn),s=xyz2lab((.0139322*r+.0971045*t+.7141733*n)/Zn)),new Lab(116*o-16,500*(a-o),200*(o-s),e.opacity)}function lab(e,r,t,n){return arguments.length===1?labConvert(e):new Lab(e,r,t,n??1)}function Lab(e,r,t,n){this.l=+e,this.a=+r,this.b=+t,this.opacity=+n}define(Lab,lab,extend(Color,{brighter(e){return new Lab(this.l+K*(e??1),this.a,this.b,this.opacity)},darker(e){return new Lab(this.l-K*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=Xn*lab2xyz(r),e=Yn*lab2xyz(e),t=Zn*lab2xyz(t),new Rgb(lrgb2rgb(3.1338561*r-1.6168667*e-.4906146*t),lrgb2rgb(-.9787684*r+1.9161415*e+.033454*t),lrgb2rgb(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));function xyz2lab(e){return e>t3?Math.pow(e,1/3):e/t2+t0}function lab2xyz(e){return e>t1?e*e*e:t2*(e-t0)}function lrgb2rgb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rgb2lrgb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hclConvert(e){if(e instanceof Hcl)return new Hcl(e.h,e.c,e.l,e.opacity);if(e instanceof Lab||(e=labConvert(e)),e.a===0&&e.b===0)return new Hcl(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*degrees;return new Hcl(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hcl$1(e,r,t,n){return arguments.length===1?hclConvert(e):new Hcl(e,r,t,n??1)}function Hcl(e,r,t,n){this.h=+e,this.c=+r,this.l=+t,this.opacity=+n}function hcl2lab(e){if(isNaN(e.h))return new Lab(e.l,0,0,e.opacity);var r=e.h*radians;return new Lab(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}define(Hcl,hcl$1,extend(Color,{brighter(e){return new Hcl(this.h,this.c,this.l+K*(e??1),this.opacity)},darker(e){return new Hcl(this.h,this.c,this.l-K*(e??1),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));var constant$3=e=>()=>e;function linear$1(e,r){return function(t){return e+t*r}}function exponential(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}function hue(e,r){var t=r-e;return t?linear$1(e,t>180||t<-180?t-360*Math.round(t/360):t):constant$3(isNaN(e)?r:e)}function gamma(e){return(e=+e)==1?nogamma:function(r,t){return t-r?exponential(r,t,e):constant$3(isNaN(r)?t:r)}}function nogamma(e,r){var t=r-e;return t?linear$1(e,t):constant$3(isNaN(e)?r:e)}var rgb=function e(r){var t=gamma(r);function n(o,a){var s=t((o=rgb$1(o)).r,(a=rgb$1(a)).r),i=t(o.g,a.g),l=t(o.b,a.b),u=nogamma(o.opacity,a.opacity);return function(c){return o.r=s(c),o.g=i(c),o.b=l(c),o.opacity=u(c),o+""}}return n.gamma=e,n}(1);function numberArray(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,n=r.slice(),o;return function(a){for(o=0;o<t;++o)n[o]=e[o]*(1-a)+r[o]*a;return n}}function isNumberArray(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function genericArray(e,r){var t=r?r.length:0,n=e?Math.min(t,e.length):0,o=new Array(n),a=new Array(t),s;for(s=0;s<n;++s)o[s]=interpolate(e[s],r[s]);for(;s<t;++s)a[s]=r[s];return function(i){for(s=0;s<n;++s)a[s]=o[s](i);return a}}function date(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}function interpolateNumber(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}function object(e,r){var t={},n={},o;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(o in r)o in e?t[o]=interpolate(e[o],r[o]):n[o]=r[o];return function(a){for(o in t)n[o]=t[o](a);return n}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(e){return function(){return e}}function one(e){return function(r){return e(r)+""}}function string$1(e,r){var t=reA.lastIndex=reB.lastIndex=0,n,o,a,s=-1,i=[],l=[];for(e=e+"",r=r+"";(n=reA.exec(e))&&(o=reB.exec(r));)(a=o.index)>t&&(a=r.slice(t,a),i[s]?i[s]+=a:i[++s]=a),(n=n[0])===(o=o[0])?i[s]?i[s]+=o:i[++s]=o:(i[++s]=null,l.push({i:s,x:interpolateNumber(n,o)})),t=reB.lastIndex;return t<r.length&&(a=r.slice(t),i[s]?i[s]+=a:i[++s]=a),i.length<2?l[0]?one(l[0].x):zero(r):(r=l.length,function(u){for(var c=0,d;c<r;++c)i[(d=l[c]).i]=d.x(u);return i.join("")})}function interpolate(e,r){var t=typeof r,n;return r==null||t==="boolean"?constant$3(r):(t==="number"?interpolateNumber:t==="string"?(n=color(r))?(r=n,rgb):string$1:r instanceof color?rgb:r instanceof Date?date:isNumberArray(r)?numberArray:Array.isArray(r)?genericArray:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?object:interpolateNumber)(e,r)}function interpolateRound(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}function hcl(e){return function(r,t){var n=e((r=hcl$1(r)).h,(t=hcl$1(t)).h),o=nogamma(r.c,t.c),a=nogamma(r.l,t.l),s=nogamma(r.opacity,t.opacity);return function(i){return r.h=n(i),r.c=o(i),r.l=a(i),r.opacity=s(i),r+""}}}var interpolateHcl=hcl(hue);function constants$2(e){return function(){return e}}function number$1(e){return+e}var unit=[0,1];function identity$3(e){return e}function normalize$1(e,r){return(r-=e=+e)?function(t){return(t-e)/r}:constants$2(isNaN(r)?NaN:.5)}function clamper(e,r){var t;return e>r&&(t=e,e=r,r=t),function(n){return Math.max(e,Math.min(r,n))}}function bimap(e,r,t){var n=e[0],o=e[1],a=r[0],s=r[1];return o<n?(n=normalize$1(o,n),a=t(s,a)):(n=normalize$1(n,o),a=t(a,s)),function(i){return a(n(i))}}function polymap(e,r,t){var n=Math.min(e.length,r.length)-1,o=new Array(n),a=new Array(n),s=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),r=r.slice().reverse());++s<n;)o[s]=normalize$1(e[s],e[s+1]),a[s]=t(r[s],r[s+1]);return function(i){var l=bisectRight(e,i,1,n)-1;return a[l](o[l](i))}}function copy$1(e,r){return r.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function transformer$1(){var e=unit,r=unit,t=interpolate,n,o,a,s=identity$3,i,l,u;function c(){var p=Math.min(e.length,r.length);return s!==identity$3&&(s=clamper(e[0],e[p-1])),i=p>2?polymap:bimap,l=u=null,d}function d(p){return p==null||isNaN(p=+p)?a:(l||(l=i(e.map(n),r,t)))(n(s(p)))}return d.invert=function(p){return s(o((u||(u=i(r,e.map(n),interpolateNumber)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,number$1),c()):e.slice()},d.range=function(p){return arguments.length?(r=Array.from(p),c()):r.slice()},d.rangeRound=function(p){return r=Array.from(p),t=interpolateRound,c()},d.clamp=function(p){return arguments.length?(s=p?!0:identity$3,c()):s!==identity$3},d.interpolate=function(p){return arguments.length?(t=p,c()):t},d.unknown=function(p){return arguments.length?(a=p,d):a},function(p,f){return n=p,o=f,c()}}function continuous(){return transformer$1()(identity$3,identity$3)}function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,r){if((t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"))<0)return null;var t,n=e.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+e.slice(t+1)]}function exponent(e){return e=formatDecimalParts(Math.abs(e)),e?e[1]:NaN}function formatGroup(e,r){return function(t,n){for(var o=t.length,a=[],s=0,i=e[0],l=0;o>0&&i>0&&(l+i+1>n&&(i=Math.max(1,n-l)),a.push(t.substring(o-=i,o+i)),!((l+=i+1)>n));)i=e[s=(s+1)%e.length];return a.reverse().join(r)}}function formatNumerals(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(r=re.exec(e)))throw new Error("invalid format: "+e);var r;return new FormatSpecifier({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(e){e:for(var r=e.length,t=1,n=-1,o;t<r;++t)switch(e[t]){case".":n=o=t;break;case"0":n===0&&(n=t),o=t;break;default:if(!+e[t])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var prefixExponent;function formatPrefixAuto(e,r){var t=formatDecimalParts(e,r);if(!t)return e+"";var n=t[0],o=t[1],a=o-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+formatDecimalParts(e,Math.max(0,r+a-1))[0]}function formatRounded(e,r){var t=formatDecimalParts(e,r);if(!t)return e+"";var n=t[0],o=t[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}var formatTypes={"%":(e,r)=>(e*100).toFixed(r),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal,e:(e,r)=>e.toExponential(r),f:(e,r)=>e.toFixed(r),g:(e,r)=>e.toPrecision(r),o:e=>Math.round(e).toString(8),p:(e,r)=>formatRounded(e*100,r),r:formatRounded,s:formatPrefixAuto,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function identity$2(e){return e}var map$3=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale(e){var r=e.grouping===void 0||e.thousands===void 0?identity$2:formatGroup(map$3.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?identity$2:formatNumerals(map$3.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",i=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=formatSpecifier(d);var p=d.fill,f=d.align,m=d.sign,v=d.symbol,h=d.zero,g=d.width,_=d.comma,C=d.precision,b=d.trim,S=d.type;S==="n"?(_=!0,S="g"):formatTypes[S]||(C===void 0&&(C=12),b=!0,S="g"),(h||p==="0"&&f==="=")&&(h=!0,p="0",f="=");var E=v==="$"?t:v==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",N=v==="$"?n:/[%p]/.test(S)?s:"",V=formatTypes[S],L=/[defgprs%]/.test(S);C=C===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function B(I){var H=E,T=N,R,X,Y;if(S==="c")T=V(I)+T,I="";else{I=+I;var J=I<0||1/I<0;if(I=isNaN(I)?l:V(Math.abs(I),C),b&&(I=formatTrim(I)),J&&+I==0&&m!=="+"&&(J=!1),H=(J?m==="("?m:i:m==="-"||m==="("?"":m)+H,T=(S==="s"?prefixes[8+prefixExponent/3]:"")+T+(J&&m==="("?")":""),L){for(R=-1,X=I.length;++R<X;)if(Y=I.charCodeAt(R),48>Y||Y>57){T=(Y===46?o+I.slice(R+1):I.slice(R))+T,I=I.slice(0,R);break}}}_&&!h&&(I=r(I,1/0));var k=H.length+I.length+T.length,A=k<g?new Array(g-k+1).join(p):"";switch(_&&h&&(I=r(A+I,A.length?g-T.length:1/0),A=""),f){case"<":I=H+I+T+A;break;case"=":I=H+A+I+T;break;case"^":I=A.slice(0,k=A.length>>1)+H+I+T+A.slice(k);break;default:I=A+H+I+T;break}return a(I)}return B.toString=function(){return d+""},B}function c(d,p){var f=u((d=formatSpecifier(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(exponent(p)/3)))*3,v=Math.pow(10,-m),h=prefixes[8+m/3];return function(g){return f(v*g)+h}}return{format:u,formatPrefix:c}}var locale,format,formatPrefix;defaultLocale({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale(e){return locale=formatLocale(e),format=locale.format,formatPrefix=locale.formatPrefix,locale}function precisionFixed(e){return Math.max(0,-exponent(Math.abs(e)))}function precisionPrefix(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(r)/3)))*3-exponent(Math.abs(e)))}function precisionRound(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,exponent(r)-exponent(e))+1}function tickFormat(e,r,t,n){var o=tickStep(e,r,t),a;switch(n=formatSpecifier(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(r));return n.precision==null&&!isNaN(a=precisionPrefix(o,s))&&(n.precision=a),formatPrefix(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=precisionRound(o,Math.max(Math.abs(e),Math.abs(r))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=precisionFixed(o))&&(n.precision=a-(n.type==="%")*2);break}}return format(n)}function linearish(e){var r=e.domain;return e.ticks=function(t){var n=r();return ticks(n[0],n[n.length-1],t??10)},e.tickFormat=function(t,n){var o=r();return tickFormat(o[0],o[o.length-1],t??10,n)},e.nice=function(t){t==null&&(t=10);var n=r(),o=0,a=n.length-1,s=n[o],i=n[a],l,u,c=10;for(i<s&&(u=s,s=i,i=u,u=o,o=a,a=u);c-- >0;){if(u=tickIncrement(s,i,t),u===l)return n[o]=s,n[a]=i,r(n);if(u>0)s=Math.floor(s/u)*u,i=Math.ceil(i/u)*u;else if(u<0)s=Math.ceil(s*u)/u,i=Math.floor(i*u)/u;else break;l=u}return e},e}function linear(){var e=continuous();return e.copy=function(){return copy$1(e,linear())},initRange.apply(e,arguments),linearish(e)}function transformer(){var e=0,r=1,t,n,o,a,s=identity$3,i=!1,l;function u(d){return d==null||isNaN(d=+d)?l:s(o===0?.5:(d=(a(d)-t)*o,i?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,r]=d,t=a(e=+e),n=a(r=+r),o=t===n?0:1/(n-t),u):[e,r]},u.clamp=function(d){return arguments.length?(i=!!d,u):i},u.interpolator=function(d){return arguments.length?(s=d,u):s};function c(d){return function(p){var f,m;return arguments.length?([f,m]=p,s=d(f,m),u):[s(0),s(1)]}}return u.range=c(interpolate),u.rangeRound=c(interpolateRound),u.unknown=function(d){return arguments.length?(l=d,u):l},function(d){return a=d,t=d(e),n=d(r),o=t===n?0:1/(n-t),u}}function copy(e,r){return r.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sequential(){var e=linearish(transformer()(identity$3));return e.copy=function(){return copy(e,sequential())},initInterpolator.apply(e,arguments)}class Scale{constructor(e){this.config=e,this.createScale(e.type)}createScale(e){switch(e){case"band":this.scale=band();break;case"linear":this.scale=linear();break}}changeConfig(e){this.createScale(e.type),this.config=e}get type(){return this.config.type}bandwidth(){return this.type==="band"?this.scale.bandwidth():0}updateRange(e){this.scale=this.scale.copy().range(e)}updateDomain(e,r,t){const n=this.config.type==="band"?this.categoryDomain(e,t):this.numericDomain(e,r,t);this.scale=this.scale.copy().domain(n)}map(e){return e.map(r=>this.mapOne(r))}mapOne(e){const{type:r}=this.config;return r==="band"?this.scale(e)+this.scale.bandwidth()/2:this.scale(e)}ticks(){const{type:e}=this.config;return this.config.tickValues!==void 0?this.config.tickValues:e==="band"?this.scale.domain():this.scale.ticks(this.config.ticks||5)}categoryDomain(e,r){const t=r.reduce((n,o)=>n.concat(getCol(o,e)),[]);return Array.from(new Set(t))}numericDomain(data,stackedData,keys){const{domain}=this.config,values=keys.reduce((e,r)=>e.concat(getCol(r,data)),[]),valueMax=max$1(stackedData,e=>max$1(e,r=>max$1(r)))||0,valueMin=min$1(stackedData,e=>min$1(e,r=>min$1(r)))||0,[dataMin,dataMax]=extent(Array.from(new Set(values.concat([valueMin,valueMax])))),yMin=eval(`
|
|
98
|
+
let dataMin = ${dataMin||0}
|
|
99
|
+
${domain[0]}
|
|
100
|
+
`),yMax=eval(`
|
|
101
|
+
let dataMax = ${dataMax||0}
|
|
102
|
+
${domain[1]}
|
|
103
|
+
`);return[yMin,yMax]}}class Scales{constructor(r){this.config=r,this.primary=new Scale(r.primary),this.secondary=new Scale(r.secondary)}changeConfig(r){this.config=r,this.primary.changeConfig(r.primary),this.secondary.changeConfig(r.secondary)}updateRange(r,t){t==="horizontal"?(this.primary.updateRange([r.x,r.width]),this.secondary.updateRange([r.height,r.y])):t==="vertical"&&(this.primary.updateRange([r.y,r.height]),this.secondary.updateRange([r.x,r.width]))}updateDomain(r,t,n){this.primary.updateDomain(r,t,getCol(0,n)),this.secondary.updateDomain(r,t,getCol(1,n))}}function constant$2(e){return function(){return e}}const abs=Math.abs,atan2=Math.atan2,cos=Math.cos,max=Math.max,min=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon$2=1e-12,pi$1=Math.PI,halfPi=pi$1/2,tau$1=2*pi$1;function acos(e){return e>1?0:e<-1?pi$1:Math.acos(e)}function asin(e){return e>=1?halfPi:e<=-1?-halfPi:Math.asin(e)}const pi=Math.PI,tau=2*pi,epsilon$1=1e-6,tauEpsilon=tau-epsilon$1;function append(e){this._+=e[0];for(let r=1,t=e.length;r<t;++r)this._+=arguments[r]+e[r]}function appendRound(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return append;const t=10**r;return function(n){this._+=n[0];for(let o=1,a=n.length;o<a;++o)this._+=Math.round(arguments[o]*t)/t+n[o]}}class Path{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?append:appendRound(r)}moveTo(r,t){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,t){this._append`L${this._x1=+r},${this._y1=+t}`}quadraticCurveTo(r,t,n,o){this._append`Q${+r},${+t},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(r,t,n,o,a,s){this._append`C${+r},${+t},${+n},${+o},${this._x1=+a},${this._y1=+s}`}arcTo(r,t,n,o,a){if(r=+r,t=+t,n=+n,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,i=this._y1,l=n-r,u=o-t,c=s-r,d=i-t,p=c*c+d*d;if(this._x1===null)this._append`M${this._x1=r},${this._y1=t}`;else if(p>epsilon$1)if(!(Math.abs(d*l-u*c)>epsilon$1)||!a)this._append`L${this._x1=r},${this._y1=t}`;else{let f=n-s,m=o-i,v=l*l+u*u,h=f*f+m*m,g=Math.sqrt(v),_=Math.sqrt(p),C=a*Math.tan((pi-Math.acos((v+p-h)/(2*g*_)))/2),b=C/_,S=C/g;Math.abs(b-1)>epsilon$1&&this._append`L${r+b*c},${t+b*d}`,this._append`A${a},${a},0,0,${+(d*f>c*m)},${this._x1=r+S*l},${this._y1=t+S*u}`}}arc(r,t,n,o,a,s){if(r=+r,t=+t,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let i=n*Math.cos(o),l=n*Math.sin(o),u=r+i,c=t+l,d=1^s,p=s?o-a:a-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>epsilon$1||Math.abs(this._y1-c)>epsilon$1)&&this._append`L${u},${c}`,n&&(p<0&&(p=p%tau+tau),p>tauEpsilon?this._append`A${n},${n},0,1,${d},${r-i},${t-l}A${n},${n},0,1,${d},${this._x1=u},${this._y1=c}`:p>epsilon$1&&this._append`A${n},${n},0,${+(p>=pi)},${d},${this._x1=r+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}rect(r,t,n,o){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function withPath(e){let r=3;return e.digits=function(t){if(!arguments.length)return r;if(t==null)r=null;else{const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);r=n}return e},()=>new Path(r)}function arcInnerRadius(e){return e.innerRadius}function arcOuterRadius(e){return e.outerRadius}function arcStartAngle(e){return e.startAngle}function arcEndAngle(e){return e.endAngle}function arcPadAngle(e){return e&&e.padAngle}function intersect(e,r,t,n,o,a,s,i){var l=t-e,u=n-r,c=s-o,d=i-a,p=d*l-c*u;if(!(p*p<epsilon$2))return p=(c*(r-a)-d*(e-o))/p,[e+p*l,r+p*u]}function cornerTangents(e,r,t,n,o,a,s){var i=e-t,l=r-n,u=(s?a:-a)/sqrt(i*i+l*l),c=u*l,d=-u*i,p=e+c,f=r+d,m=t+c,v=n+d,h=(p+m)/2,g=(f+v)/2,_=m-p,C=v-f,b=_*_+C*C,S=o-a,E=p*v-m*f,N=(C<0?-1:1)*sqrt(max(0,S*S*b-E*E)),V=(E*C-_*N)/b,L=(-E*_-C*N)/b,B=(E*C+_*N)/b,I=(-E*_+C*N)/b,H=V-h,T=L-g,R=B-h,X=I-g;return H*H+T*T>R*R+X*X&&(V=B,L=I),{cx:V,cy:L,x01:-c,y01:-d,x11:V*(o/S-1),y11:L*(o/S-1)}}function arc(){var e=arcInnerRadius,r=arcOuterRadius,t=constant$2(0),n=null,o=arcStartAngle,a=arcEndAngle,s=arcPadAngle,i=null,l=withPath(u);function u(){var c,d,p=+e.apply(this,arguments),f=+r.apply(this,arguments),m=o.apply(this,arguments)-halfPi,v=a.apply(this,arguments)-halfPi,h=abs(v-m),g=v>m;if(i||(i=c=l()),f<p&&(d=f,f=p,p=d),!(f>epsilon$2))i.moveTo(0,0);else if(h>tau$1-epsilon$2)i.moveTo(f*cos(m),f*sin(m)),i.arc(0,0,f,m,v,!g),p>epsilon$2&&(i.moveTo(p*cos(v),p*sin(v)),i.arc(0,0,p,v,m,g));else{var _=m,C=v,b=m,S=v,E=h,N=h,V=s.apply(this,arguments)/2,L=V>epsilon$2&&(n?+n.apply(this,arguments):sqrt(p*p+f*f)),B=min(abs(f-p)/2,+t.apply(this,arguments)),I=B,H=B,T,R;if(L>epsilon$2){var X=asin(L/p*sin(V)),Y=asin(L/f*sin(V));(E-=X*2)>epsilon$2?(X*=g?1:-1,b+=X,S-=X):(E=0,b=S=(m+v)/2),(N-=Y*2)>epsilon$2?(Y*=g?1:-1,_+=Y,C-=Y):(N=0,_=C=(m+v)/2)}var J=f*cos(_),k=f*sin(_),A=p*cos(S),D=p*sin(S);if(B>epsilon$2){var U=f*cos(C),q=f*sin(C),w=p*cos(b),P=p*sin(b),O;if(h<pi$1)if(O=intersect(J,k,w,P,U,q,A,D)){var F=J-O[0],M=k-O[1],G=U-O[0],j=q-O[1],W=1/sin(acos((F*G+M*j)/(sqrt(F*F+M*M)*sqrt(G*G+j*j)))/2),z=sqrt(O[0]*O[0]+O[1]*O[1]);I=min(B,(p-z)/(W-1)),H=min(B,(f-z)/(W+1))}else I=H=0}N>epsilon$2?H>epsilon$2?(T=cornerTangents(w,P,J,k,f,H,g),R=cornerTangents(U,q,A,D,f,H,g),i.moveTo(T.cx+T.x01,T.cy+T.y01),H<B?i.arc(T.cx,T.cy,H,atan2(T.y01,T.x01),atan2(R.y01,R.x01),!g):(i.arc(T.cx,T.cy,H,atan2(T.y01,T.x01),atan2(T.y11,T.x11),!g),i.arc(0,0,f,atan2(T.cy+T.y11,T.cx+T.x11),atan2(R.cy+R.y11,R.cx+R.x11),!g),i.arc(R.cx,R.cy,H,atan2(R.y11,R.x11),atan2(R.y01,R.x01),!g))):(i.moveTo(J,k),i.arc(0,0,f,_,C,!g)):i.moveTo(J,k),!(p>epsilon$2)||!(E>epsilon$2)?i.lineTo(A,D):I>epsilon$2?(T=cornerTangents(A,D,U,q,p,-I,g),R=cornerTangents(J,k,w,P,p,-I,g),i.lineTo(T.cx+T.x01,T.cy+T.y01),I<B?i.arc(T.cx,T.cy,I,atan2(T.y01,T.x01),atan2(R.y01,R.x01),!g):(i.arc(T.cx,T.cy,I,atan2(T.y01,T.x01),atan2(T.y11,T.x11),!g),i.arc(0,0,p,atan2(T.cy+T.y11,T.cx+T.x11),atan2(R.cy+R.y11,R.cx+R.x11),g),i.arc(R.cx,R.cy,I,atan2(R.y11,R.x11),atan2(R.y01,R.x01),!g))):i.arc(0,0,p,S,b,g)}if(i.closePath(),c)return i=null,c+""||null}return u.centroid=function(){var c=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,d=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-pi$1/2;return[cos(d)*c,sin(d)*c]},u.innerRadius=function(c){return arguments.length?(e=typeof c=="function"?c:constant$2(+c),u):e},u.outerRadius=function(c){return arguments.length?(r=typeof c=="function"?c:constant$2(+c),u):r},u.cornerRadius=function(c){return arguments.length?(t=typeof c=="function"?c:constant$2(+c),u):t},u.padRadius=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:constant$2(+c),u):n},u.startAngle=function(c){return arguments.length?(o=typeof c=="function"?c:constant$2(+c),u):o},u.endAngle=function(c){return arguments.length?(a=typeof c=="function"?c:constant$2(+c),u):a},u.padAngle=function(c){return arguments.length?(s=typeof c=="function"?c:constant$2(+c),u):s},u.context=function(c){return arguments.length?(i=c??null,u):i},u}function array$1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function line(e,r){var t=constant$2(!0),n=null,o=curveLinear,a=null,s=withPath(i);e=typeof e=="function"?e:e===void 0?x:constant$2(e),r=typeof r=="function"?r:r===void 0?y:constant$2(r);function i(l){var u,c=(l=array$1(l)).length,d,p=!1,f;for(n==null&&(a=o(f=s())),u=0;u<=c;++u)!(u<c&&t(d=l[u],u,l))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(d,u,l),+r(d,u,l));if(f)return a=null,f+""||null}return i.x=function(l){return arguments.length?(e=typeof l=="function"?l:constant$2(+l),i):e},i.y=function(l){return arguments.length?(r=typeof l=="function"?l:constant$2(+l),i):r},i.defined=function(l){return arguments.length?(t=typeof l=="function"?l:constant$2(!!l),i):t},i.curve=function(l){return arguments.length?(o=l,n!=null&&(a=o(n)),i):o},i.context=function(l){return arguments.length?(l==null?n=a=null:a=o(n=l),i):n},i}function area(e,r,t){var n=null,o=constant$2(!0),a=null,s=curveLinear,i=null,l=withPath(u);e=typeof e=="function"?e:e===void 0?x:constant$2(+e),r=typeof r=="function"?r:constant$2(r===void 0?0:+r),t=typeof t=="function"?t:t===void 0?y:constant$2(+t);function u(d){var p,f,m,v=(d=array$1(d)).length,h,g=!1,_,C=new Array(v),b=new Array(v);for(a==null&&(i=s(_=l())),p=0;p<=v;++p){if(!(p<v&&o(h=d[p],p,d))===g)if(g=!g)f=p,i.areaStart(),i.lineStart();else{for(i.lineEnd(),i.lineStart(),m=p-1;m>=f;--m)i.point(C[m],b[m]);i.lineEnd(),i.areaEnd()}g&&(C[p]=+e(h,p,d),b[p]=+r(h,p,d),i.point(n?+n(h,p,d):C[p],t?+t(h,p,d):b[p]))}if(_)return i=null,_+""||null}function c(){return line().defined(o).curve(s).context(a)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:constant$2(+d),n=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:constant$2(+d),u):e},u.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:constant$2(+d),u):n},u.y=function(d){return arguments.length?(r=typeof d=="function"?d:constant$2(+d),t=null,u):r},u.y0=function(d){return arguments.length?(r=typeof d=="function"?d:constant$2(+d),u):r},u.y1=function(d){return arguments.length?(t=d==null?null:typeof d=="function"?d:constant$2(+d),u):t},u.lineX0=u.lineY0=function(){return c().x(e).y(r)},u.lineY1=function(){return c().x(e).y(t)},u.lineX1=function(){return c().x(n).y(r)},u.defined=function(d){return arguments.length?(o=typeof d=="function"?d:constant$2(!!d),u):o},u.curve=function(d){return arguments.length?(s=d,a!=null&&(i=s(a)),u):s},u.context=function(d){return arguments.length?(d==null?a=i=null:i=s(a=d),u):a},u}function descending(e,r){return r<e?-1:r>e?1:r>=e?0:NaN}function identity$1(e){return e}function pie(){var e=identity$1,r=descending,t=null,n=constant$2(0),o=constant$2(tau$1),a=constant$2(0);function s(i){var l,u=(i=array$1(i)).length,c,d,p=0,f=new Array(u),m=new Array(u),v=+n.apply(this,arguments),h=Math.min(tau$1,Math.max(-tau$1,o.apply(this,arguments)-v)),g,_=Math.min(Math.abs(h)/u,a.apply(this,arguments)),C=_*(h<0?-1:1),b;for(l=0;l<u;++l)(b=m[f[l]=l]=+e(i[l],l,i))>0&&(p+=b);for(r!=null?f.sort(function(S,E){return r(m[S],m[E])}):t!=null&&f.sort(function(S,E){return t(i[S],i[E])}),l=0,d=p?(h-u*C)/p:0;l<u;++l,v=g)c=f[l],b=m[c],g=v+(b>0?b*d:0)+C,m[c]={data:i[c],index:l,value:b,startAngle:v,endAngle:g,padAngle:_};return m}return s.value=function(i){return arguments.length?(e=typeof i=="function"?i:constant$2(+i),s):e},s.sortValues=function(i){return arguments.length?(r=i,t=null,s):r},s.sort=function(i){return arguments.length?(t=i,r=null,s):t},s.startAngle=function(i){return arguments.length?(n=typeof i=="function"?i:constant$2(+i),s):n},s.endAngle=function(i){return arguments.length?(o=typeof i=="function"?i:constant$2(+i),s):o},s.padAngle=function(i){return arguments.length?(a=typeof i=="function"?i:constant$2(+i),s):a},s}function sign(e){return e<0?-1:1}function slope3(e,r,t){var n=e._x1-e._x0,o=r-e._x1,a=(e._y1-e._y0)/(n||o<0&&-0),s=(t-e._y1)/(o||n<0&&-0),i=(a*o+s*n)/(n+o);return(sign(a)+sign(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(i))||0}function slope2(e,r){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-r)/2:r}function point(e,r,t){var n=e._x0,o=e._y0,a=e._x1,s=e._y1,i=(a-n)/3;e._context.bezierCurveTo(n+i,o+i*r,a-i,s-i*t,a,s)}function MonotoneX(e){this._context=e}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){var t=NaN;if(e=+e,r=+r,!(e===this._x1&&r===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,t=slope3(this,e,r)),t);break;default:point(this,this._t0,t=slope3(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=t}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,r){MonotoneX.prototype.point.call(this,r,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,t,n,o,a){this._context.bezierCurveTo(r,e,n,t,a,o)}};function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),t===2)this._context.lineTo(e[1],r[1]);else for(var n=controlPoints(e),o=controlPoints(r),a=0,s=1;s<t;++a,++s)this._context.bezierCurveTo(n[0][a],o[0][a],n[1][a],o[1][a],e[s],r[s]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,r){this._x.push(+e),this._y.push(+r)}};function controlPoints(e){var r,t=e.length-1,n,o=new Array(t),a=new Array(t),s=new Array(t);for(o[0]=0,a[0]=2,s[0]=e[0]+2*e[1],r=1;r<t-1;++r)o[r]=1,a[r]=4,s[r]=4*e[r]+2*e[r+1];for(o[t-1]=2,a[t-1]=7,s[t-1]=8*e[t-1]+e[t],r=1;r<t;++r)n=o[r]/a[r-1],a[r]-=n,s[r]-=n*s[r-1];for(o[t-1]=s[t-1]/a[t-1],r=t-2;r>=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[t-1]=(e[t]+o[t-1])/2,r=0;r<t-1;++r)a[r]=2*e[r+1]-o[r+1];return[o,a]}function curveNatural(e){return new Natural(e)}function Step(e,r){this._context=e,this._t=r}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,r)}break}}this._x=e,this._y=r}};function curveStep(e){return new Step(e,.5)}function stepAfter(e){return new Step(e,1)}function none$1(e,r){if((s=e.length)>1)for(var t=1,n,o,a=e[r[0]],s,i=a.length;t<s;++t)for(o=a,a=e[r[t]],n=0;n<i;++n)a[n][1]+=a[n][0]=isNaN(o[n][1])?o[n][0]:o[n][1]}function stackOrderNone(e){for(var r=e.length,t=new Array(r);--r>=0;)t[r]=r;return t}function stackValue(e,r){return e[r]}function stackSeries(e){const r=[];return r.key=e,r}function stack(){var e=constant$2([]),r=stackOrderNone,t=none$1,n=stackValue;function o(a){var s=Array.from(e.apply(this,arguments),stackSeries),i,l=s.length,u=-1,c;for(const d of a)for(i=0,++u;i<l;++i)(s[i][u]=[0,+n(d,s[i].key,u,a)]).data=d;for(i=0,c=array$1(r(s));i<l;++i)s[c[i]].index=i;return t(s,c),s}return o.keys=function(a){return arguments.length?(e=typeof a=="function"?a:constant$2(Array.from(a)),o):e},o.value=function(a){return arguments.length?(n=typeof a=="function"?a:constant$2(+a),o):n},o.order=function(a){return arguments.length?(r=a==null?stackOrderNone:typeof a=="function"?a:constant$2(Array.from(a)),o):r},o.offset=function(a){return arguments.length?(t=a??none$1,o):t},o}const defaultConfig={size:{width:500,height:400},margin:{top:0,right:0,bottom:0,left:0},direction:"horizontal",axis:{primary:{domain:["dataMin","dataMax"],type:"band"},secondary:{domain:["dataMin","dataMax"],type:"linear"}},axisSpace:{x:40,y:20}};class Chart{constructor(r,t){this.data=r,this.layers=[],this.config=mergeDeepLeft$1(pickBy$1(n=>n!==void 0,t),defaultConfig),this.scales=new Scales(this.config.axis),this.updates=vue.ref(0)}get bandScale(){return this.scales.primary.type==="band"?this.scales.primary:this.scales.secondary.type==="band"?this.scales.secondary:null}get canvas(){const{margin:r,size:t}=this.config,n=this.config.axisSpace;return this.config.axis.primary.hide&&(n.y=0),this.config.axis.secondary.hide&&(n.x=0),{x:r.left+n.x,y:r.top,width:t.width-r.right,height:t.height-r.bottom-n.y}}getStackedData(r){return stack().keys(r).order(stackOrderNone)(this.data)}changeData(r){this.data=r,this.update("data")}changeConfig(r){this.config=mergeDeepLeft$1(pickBy$1(t=>t!==void 0,r),this.config),this.scales.changeConfig(this.config.axis),this.update("config")}addLayer(r){this.layers.push(r),this.update("layers")}removeLayer(r){this.layers=this.layers.filter(t=>t.id!==r),this.update("layers")}getLayers(r){return r?this.layers.filter(t=>t.type===r):this.layers}getData(r){return r.reduce((t,n)=>t.concat(getCol(n,this.data)),[])}getKeys(r=-1,t=null){const n=this.layers.filter(o=>t?o.type===t:!0).map(o=>o.dataKeys);return r===-1?n:getCol(r,n)}getStackedKeys(r=-1,t=null){const n=this.layers.filter(o=>t?o.type===t&&o.props.stacked:o.props.stacked).map(o=>o.dataKeys);return r===-1?n:getCol(r,n)}update(r){const t=this.getStackedData(this.getStackedKeys(1));this.scales.updateRange(this.canvas,this.config.direction),this.scales.updateDomain(this.data,t,this.getKeys()),this.updates.value+=1}}var xhtml="http://www.w3.org/1999/xhtml",namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(e){var r=e+="",t=r.indexOf(":");return t>=0&&(r=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),namespaces.hasOwnProperty(r)?{space:namespaces[r],local:e}:e}function creatorInherit(e){return function(){var r=this.ownerDocument,t=this.namespaceURI;return t===xhtml&&r.documentElement.namespaceURI===xhtml?r.createElement(e):r.createElementNS(t,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var r=namespace(e);return(r.local?creatorFixed:creatorInherit)(r)}function none(){}function selector(e){return e==null?none:function(){return this.querySelector(e)}}function selection_select(e){typeof e!="function"&&(e=selector(e));for(var r=this._groups,t=r.length,n=new Array(t),o=0;o<t;++o)for(var a=r[o],s=a.length,i=n[o]=new Array(s),l,u,c=0;c<s;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),i[c]=u);return new Selection(n,this._parents)}function array(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function empty(){return[]}function selectorAll(e){return e==null?empty:function(){return this.querySelectorAll(e)}}function arrayAll(e){return function(){return array(e.apply(this,arguments))}}function selection_selectAll(e){typeof e=="function"?e=arrayAll(e):e=selectorAll(e);for(var r=this._groups,t=r.length,n=[],o=[],a=0;a<t;++a)for(var s=r[a],i=s.length,l,u=0;u<i;++u)(l=s[u])&&(n.push(e.call(l,l.__data__,u,s)),o.push(l));return new Selection(n,o)}function matcher(e){return function(){return this.matches(e)}}function childMatcher(e){return function(r){return r.matches(e)}}var find=Array.prototype.find;function childFind(e){return function(){return find.call(this.children,e)}}function childFirst(){return this.firstElementChild}function selection_selectChild(e){return this.select(e==null?childFirst:childFind(typeof e=="function"?e:childMatcher(e)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(e){return function(){return filter.call(this.children,e)}}function selection_selectChildren(e){return this.selectAll(e==null?children:childrenFilter(typeof e=="function"?e:childMatcher(e)))}function selection_filter(e){typeof e!="function"&&(e=matcher(e));for(var r=this._groups,t=r.length,n=new Array(t),o=0;o<t;++o)for(var a=r[o],s=a.length,i=n[o]=[],l,u=0;u<s;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&i.push(l);return new Selection(n,this._parents)}function sparse(e){return new Array(e.length)}function selection_enter(){return new Selection(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,r){return this._parent.insertBefore(e,r)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function constant$1(e){return function(){return e}}function bindIndex(e,r,t,n,o,a){for(var s=0,i,l=r.length,u=a.length;s<u;++s)(i=r[s])?(i.__data__=a[s],n[s]=i):t[s]=new EnterNode(e,a[s]);for(;s<l;++s)(i=r[s])&&(o[s]=i)}function bindKey(e,r,t,n,o,a,s){var i,l,u=new Map,c=r.length,d=a.length,p=new Array(c),f;for(i=0;i<c;++i)(l=r[i])&&(p[i]=f=s.call(l,l.__data__,i,r)+"",u.has(f)?o[i]=l:u.set(f,l));for(i=0;i<d;++i)f=s.call(e,a[i],i,a)+"",(l=u.get(f))?(n[i]=l,l.__data__=a[i],u.delete(f)):t[i]=new EnterNode(e,a[i]);for(i=0;i<c;++i)(l=r[i])&&u.get(p[i])===l&&(o[i]=l)}function datum(e){return e.__data__}function selection_data(e,r){if(!arguments.length)return Array.from(this,datum);var t=r?bindKey:bindIndex,n=this._parents,o=this._groups;typeof e!="function"&&(e=constant$1(e));for(var a=o.length,s=new Array(a),i=new Array(a),l=new Array(a),u=0;u<a;++u){var c=n[u],d=o[u],p=d.length,f=arraylike(e.call(c,c&&c.__data__,u,n)),m=f.length,v=i[u]=new Array(m),h=s[u]=new Array(m),g=l[u]=new Array(p);t(c,d,v,h,g,f,r);for(var _=0,C=0,b,S;_<m;++_)if(b=v[_]){for(_>=C&&(C=_+1);!(S=h[C])&&++C<m;);b._next=S||null}}return s=new Selection(s,n),s._enter=i,s._exit=l,s}function arraylike(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function selection_exit(){return new Selection(this._exit||this._groups.map(sparse),this._parents)}function selection_join(e,r,t){var n=this.enter(),o=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),r!=null&&(o=r(o),o&&(o=o.selection())),t==null?a.remove():t(a),n&&o?n.merge(o).order():o}function selection_merge(e){for(var r=e.selection?e.selection():e,t=this._groups,n=r._groups,o=t.length,a=n.length,s=Math.min(o,a),i=new Array(o),l=0;l<s;++l)for(var u=t[l],c=n[l],d=u.length,p=i[l]=new Array(d),f,m=0;m<d;++m)(f=u[m]||c[m])&&(p[m]=f);for(;l<o;++l)i[l]=t[l];return new Selection(i,this._parents)}function selection_order(){for(var e=this._groups,r=-1,t=e.length;++r<t;)for(var n=e[r],o=n.length-1,a=n[o],s;--o>=0;)(s=n[o])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function selection_sort(e){e||(e=ascending);function r(d,p){return d&&p?e(d.__data__,p.__data__):!d-!p}for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a){for(var s=t[a],i=s.length,l=o[a]=new Array(i),u,c=0;c<i;++c)(u=s[c])&&(l[c]=u);l.sort(r)}return new Selection(o,this._parents).order()}function ascending(e,r){return e<r?-1:e>r?1:e>=r?0:NaN}function selection_call(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var e=this._groups,r=0,t=e.length;r<t;++r)for(var n=e[r],o=0,a=n.length;o<a;++o){var s=n[o];if(s)return s}return null}function selection_size(){let e=0;for(const r of this)++e;return e}function selection_empty(){return!this.node()}function selection_each(e){for(var r=this._groups,t=0,n=r.length;t<n;++t)for(var o=r[t],a=0,s=o.length,i;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this}function attrRemove(e){return function(){this.removeAttribute(e)}}function attrRemoveNS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant(e,r){return function(){this.setAttribute(e,r)}}function attrConstantNS(e,r){return function(){this.setAttributeNS(e.space,e.local,r)}}function attrFunction(e,r){return function(){var t=r.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function attrFunctionNS(e,r){return function(){var t=r.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function selection_attr(e,r){var t=namespace(e);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((r==null?t.local?attrRemoveNS:attrRemove:typeof r=="function"?t.local?attrFunctionNS:attrFunction:t.local?attrConstantNS:attrConstant)(t,r))}function defaultView(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function styleRemove(e){return function(){this.style.removeProperty(e)}}function styleConstant(e,r,t){return function(){this.style.setProperty(e,r,t)}}function styleFunction(e,r,t){return function(){var n=r.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function selection_style(e,r,t){return arguments.length>1?this.each((r==null?styleRemove:typeof r=="function"?styleFunction:styleConstant)(e,r,t??"")):styleValue(this.node(),e)}function styleValue(e,r){return e.style.getPropertyValue(r)||defaultView(e).getComputedStyle(e,null).getPropertyValue(r)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,r){return function(){this[e]=r}}function propertyFunction(e,r){return function(){var t=r.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function selection_property(e,r){return arguments.length>1?this.each((r==null?propertyRemove:typeof r=="function"?propertyFunction:propertyConstant)(e,r)):this.node()[e]}function classArray(e){return e.trim().split(/^|\s+/)}function classList(e){return e.classList||new ClassList(e)}function ClassList(e){this._node=e,this._names=classArray(e.getAttribute("class")||"")}ClassList.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd(e,r){for(var t=classList(e),n=-1,o=r.length;++n<o;)t.add(r[n])}function classedRemove(e,r){for(var t=classList(e),n=-1,o=r.length;++n<o;)t.remove(r[n])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,r){return function(){(r.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,r){var t=classArray(e+"");if(arguments.length<2){for(var n=classList(this.node()),o=-1,a=t.length;++o<a;)if(!n.contains(t[o]))return!1;return!0}return this.each((typeof r=="function"?classedFunction:r?classedTrue:classedFalse)(t,r))}function textRemove(){this.textContent=""}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var r=e.apply(this,arguments);this.textContent=r??""}}function selection_text(e){return arguments.length?this.each(e==null?textRemove:(typeof e=="function"?textFunction:textConstant)(e)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(e){return function(){this.innerHTML=e}}function htmlFunction(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r??""}}function selection_html(e){return arguments.length?this.each(e==null?htmlRemove:(typeof e=="function"?htmlFunction:htmlConstant)(e)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(e){var r=typeof e=="function"?e:creator(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}function constantNull(){return null}function selection_insert(e,r){var t=typeof e=="function"?e:creator(e),n=r==null?constantNull:typeof r=="function"?r:selector(r);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function remove(){var e=this.parentNode;e&&e.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function selection_cloneDeep(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function selection_clone(e){return this.select(e?selection_cloneDeep:selection_cloneShallow)}function selection_datum(e){return arguments.length?this.property("__data__",e):this.node().__data__}function contextListener(e){return function(r){e.call(this,r,this.__data__)}}function parseTypenames(e){return e.trim().split(/^|\s+/).map(function(r){var t="",n=r.indexOf(".");return n>=0&&(t=r.slice(n+1),r=r.slice(0,n)),{type:r,name:t}})}function onRemove(e){return function(){var r=this.__on;if(r){for(var t=0,n=-1,o=r.length,a;t<o;++t)a=r[t],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):r[++n]=a;++n?r.length=n:delete this.__on}}}function onAdd(e,r,t){return function(){var n=this.__on,o,a=contextListener(r);if(n){for(var s=0,i=n.length;s<i;++s)if((o=n[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=t),o.value=r;return}}this.addEventListener(e.type,a,t),o={type:e.type,name:e.name,value:r,listener:a,options:t},n?n.push(o):this.__on=[o]}}function selection_on(e,r,t){var n=parseTypenames(e+""),o,a=n.length,s;if(arguments.length<2){var i=this.node().__on;if(i){for(var l=0,u=i.length,c;l<u;++l)for(o=0,c=i[l];o<a;++o)if((s=n[o]).type===c.type&&s.name===c.name)return c.value}return}for(i=r?onAdd:onRemove,o=0;o<a;++o)this.each(i(n[o],r,t));return this}function dispatchEvent(e,r,t){var n=defaultView(e),o=n.CustomEvent;typeof o=="function"?o=new o(r,t):(o=n.document.createEvent("Event"),t?(o.initEvent(r,t.bubbles,t.cancelable),o.detail=t.detail):o.initEvent(r,!1,!1)),e.dispatchEvent(o)}function dispatchConstant(e,r){return function(){return dispatchEvent(this,e,r)}}function dispatchFunction(e,r){return function(){return dispatchEvent(this,e,r.apply(this,arguments))}}function selection_dispatch(e,r){return this.each((typeof r=="function"?dispatchFunction:dispatchConstant)(e,r))}function*selection_iterator(){for(var e=this._groups,r=0,t=e.length;r<t;++r)for(var n=e[r],o=0,a=n.length,s;o<a;++o)(s=n[o])&&(yield s)}var root=[null];function Selection(e,r){this._groups=e,this._parents=r}function selection_selection(){return this}Selection.prototype={constructor:Selection,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(e){return typeof e=="string"?new Selection([[document.querySelector(e)]],[document.documentElement]):new Selection([[e]],root)}function sourceEvent(e){let r;for(;r=e.sourceEvent;)e=r;return e}function pointer(e,r){if(e=sourceEvent(e),r===void 0&&(r=e.currentTarget),r){var t=r.ownerSVGElement||r;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(r.getScreenCTM().inverse()),[n.x,n.y]}if(r.getBoundingClientRect){var o=r.getBoundingClientRect();return[e.clientX-o.left-r.clientLeft,e.clientY-o.top-r.clientTop]}}return[e.pageX,e.pageY]}function identity(e){return e}var top=1,right=2,bottom=3,left=4,epsilon=1e-6;function translateX(e){return"translate("+e+",0)"}function translateY(e){return"translate(0,"+e+")"}function number(e){return r=>+e(r)}function center(e,r){return r=Math.max(0,e.bandwidth()-r*2)/2,e.round()&&(r=Math.round(r)),t=>+e(t)+r}function entering(){return!this.__axis}function axis(e,r){var t=[],n=null,o=null,a=6,s=6,i=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===top||e===left?-1:1,c=e===left||e===right?"x":"y",d=e===top||e===bottom?translateX:translateY;function p(f){var m=n??(r.ticks?r.ticks.apply(r,t):r.domain()),v=o??(r.tickFormat?r.tickFormat.apply(r,t):identity),h=Math.max(a,0)+i,g=r.range(),_=+g[0]+l,C=+g[g.length-1]+l,b=(r.bandwidth?center:number)(r.copy(),l),S=f.selection?f.selection():f,E=S.selectAll(".domain").data([null]),N=S.selectAll(".tick").data(m,r).order(),V=N.exit(),L=N.enter().append("g").attr("class","tick"),B=N.select("line"),I=N.select("text");E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(L),B=B.merge(L.append("line").attr("stroke","currentColor").attr(c+"2",u*a)),I=I.merge(L.append("text").attr("fill","currentColor").attr(c,u*h).attr("dy",e===top?"0em":e===bottom?"0.71em":"0.32em")),f!==S&&(E=E.transition(f),N=N.transition(f),B=B.transition(f),I=I.transition(f),V=V.transition(f).attr("opacity",epsilon).attr("transform",function(H){return isFinite(H=b(H))?d(H+l):this.getAttribute("transform")}),L.attr("opacity",epsilon).attr("transform",function(H){var T=this.parentNode.__axis;return d((T&&isFinite(T=T(H))?T:b(H))+l)})),V.remove(),E.attr("d",e===left||e===right?s?"M"+u*s+","+_+"H"+l+"V"+C+"H"+u*s:"M"+l+","+_+"V"+C:s?"M"+_+","+u*s+"V"+l+"H"+C+"V"+u*s:"M"+_+","+l+"H"+C),N.attr("opacity",1).attr("transform",function(H){return d(b(H)+l)}),B.attr(c+"2",u*a),I.attr(c,u*h).text(v),S.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===right?"start":e===left?"end":"middle"),S.each(function(){this.__axis=b})}return p.scale=function(f){return arguments.length?(r=f,p):r},p.ticks=function(){return t=Array.from(arguments),p},p.tickArguments=function(f){return arguments.length?(t=f==null?[]:Array.from(f),p):t.slice()},p.tickValues=function(f){return arguments.length?(n=f==null?null:Array.from(f),p):n&&n.slice()},p.tickFormat=function(f){return arguments.length?(o=f,p):o},p.tickSize=function(f){return arguments.length?(a=s=+f,p):a},p.tickSizeInner=function(f){return arguments.length?(a=+f,p):a},p.tickSizeOuter=function(f){return arguments.length?(s=+f,p):s},p.tickPadding=function(f){return arguments.length?(i=+f,p):i},p.offset=function(f){return arguments.length?(l=+f,p):l},p}function axisBottom(e){return axis(bottom,e)}function axisLeft(e){return axis(left,e)}var useChart=()=>vue.inject("chart"),usePoints=(e,r={stacked:!1,type:"line"})=>{const t=vue.ref([]),n=useChart(),{stacked:o,type:a}=r;function s(l,u){const{primary:c,secondary:d}=n.scales;return n.config.direction==="horizontal"?u.map(f=>({x:c.mapOne(f.data[l]),y:d.mapOne(f[1]),props:{values:[...f],data:f.data}})).filter(f=>!isNaN(f.x)&&!isNaN(f.y)):n.config.direction==="vertical"?u.map(p=>({x:d.mapOne(p[1]),y:c.mapOne(p.data[l]),props:{values:[...p],data:p.data}})).filter(p=>!isNaN(p.x)&&!isNaN(p.y)):[]}function i(){const l=n.getStackedKeys(1,a),[u,c]=e,p=n.getStackedData(o?l:[e[1]]).find(f=>f.key===c);p&&(t.value=s(u,p))}return vue.watch(n.updates,()=>{i()},{immediate:!0}),{points:t}},useMouse=()=>vue.inject("chartMouse",{index:-1,position:{x:0,y:0},hover:!1}),useBars=(e,r={maxWidth:-1,gap:5,stacked:!1,type:"bar"})=>{const t=vue.ref([]),n=useChart(),{stacked:o,type:a,gap:s}=r;function i(){const{primary:f,secondary:m}=n.scales,v=f.type==="band"?f:m,h=f.type==="band"?m:f;return{bandScale:v,linearScale:h}}function l(){if(o)return 0;const m=n.getLayers(a).findIndex(v=>v.dataKeys.join(",")===e.join(","));return m>-1?m:0}function u(){const{bandScale:f}=i(),m=r.maxWidth>-1?Math.min(f.bandwidth()-s,r.maxWidth):f.bandwidth()-s,v=n.getLayers(a);return v.length>0&&!o?m/v.length:m}function c(){if(o)return 0;const{bandScale:f}=i(),m=f.bandwidth()-s,v=n.getLayers(a).length*u();return(m-v)/2}function d(f,m){const{bandScale:v,linearScale:h}=i(),g=l(),_=u(),C=c();return m.map(b=>{const S={x:0,y:0,width:0,height:0,props:{values:[...b],data:b.data}},E=v.scale(b.data[f]),[N,V]=h.map(b);return n.config.direction==="horizontal"?(S.y=Math.min(N,V),S.height=Math.abs(N-V),S.x=C+E+g*_+s/2,S.width=_):n.config.direction==="vertical"&&(S.x=Math.min(N,V),S.width=Math.abs(N-V),S.y=C+E+g*_+s/2,S.height=_),S})}function p(){const f=o?n.getStackedKeys(1,a):[e[1]],[m,v]=e,g=n.getStackedData(f).find(_=>_.key===v);g&&(t.value=d(m,g))}return vue.watch(n.updates,()=>{p()}),{bars:t}},useTooltip=()=>{const e=useMouse(),r=useChart(),t=vue.computed(()=>e.hover),n=vue.ref({x:0,y:0}),o=vue.ref({});return vue.watch(e,()=>{const{primary:a}=r.scales,s=r.getKeys(0),i=r.getData(s),[l]=a.map([i[e.index]]);l&&(r.config.direction==="horizontal"?n.value={x:l,y:e.position.y}:r.config.direction==="vertical"?n.value={x:e.position.x,y:l}:n.value={x:e.position.x,y:e.position.y});const u=r.data[e.index];u&&(o.value=Object.assign(Object.assign({},u),{idx:e.index}))}),{position:n,payload:o,show:t}},useResize=e=>{const r=vue.ref(0),t=vue.ref(0);let n=null,o=null;function a(i,l){r.value=i,t.value=l,o&&o()}function s(i){o=i}return vue.onMounted(()=>{n=new window.ResizeObserver(i=>{const l=i[0].contentRect.width,u=i[0].contentRect.height;a(l,u)}),n.observe(e.value)}),vue.onUnmounted(()=>{n.disconnect()}),{width:r,height:t,onResize:s}},script$d=vue.defineComponent({name:"Axis",props:{position:{type:String,default:"bottom"},rotate:{type:Boolean,default:!1},isPrimary:{type:Boolean,default:!1}},setup(e){const r=vue.ref(),t=useChart(),n=vue.computed(()=>e.position==="bottom"?axisBottom:axisLeft),o=vue.ref(t.canvas),a={ticks:5};function s(){if(t.data.length>0){const{primary:i,secondary:l}=t.scales,u=e.isPrimary?i:l,c=Object.assign({},e.isPrimary?i.config:l.config,a),d=n.value(u.scale);c.format&&d.tickFormat(c.format),c.ticks!==void 0&&d.ticks(c.ticks),c.tickValues!==void 0&&d.tickValues(c.tickValues),c.useConfig&&c.useConfig(d);const p=select(r.value).call(d);return e.position==="bottom"&&e.rotate&&p.selectAll("text").attr("y",0).attr("x",9).attr("dy",".35em").attr("transform","rotate(90)").style("text-anchor","start"),d}return null}return vue.watch(()=>e.isPrimary,()=>{s()}),vue.watch(t.updates,()=>{o.value=t.canvas,s()}),{el:r,canvas:o}}});const _hoisted_1$b$1=["transform"],_hoisted_2$8$1=["transform"];function render$d(e,r,t,n,o,a){return e.position==="bottom"?(vue.openBlock(),vue.createElementBlock("g",{key:0,class:vue.normalizeClass("layer-axis-x"),ref:"el",transform:`translate(0, ${e.canvas.height})`},null,8,_hoisted_1$b$1)):(vue.openBlock(),vue.createElementBlock("g",{key:1,class:vue.normalizeClass("layer-axis-y"),ref:"el",transform:`translate(${e.canvas.x}, 0)`},null,8,_hoisted_2$8$1))}script$d.render=render$d;script$d.__file="src/components/Axis/index.vue";var script$c=vue.defineComponent({name:"Chart",components:{Axis:script$d},props:{data:{type:Array,default:()=>[]},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0}),required:!1},size:{type:Object,default:()=>({width:500,height:400}),required:!1},direction:{type:String,default:"horizontal",required:!1},axis:{type:Object,required:!1},config:{type:Object,default:()=>({})}},setup(e){const r=vue.ref(null),t=vue.ref(),n=vue.ref(),o=vue.reactive({x:40,y:20}),a=new Chart(e.data,e.config),s=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.rotate),i=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.hide),l=vue.computed(()=>e.axis&&e.axis.secondary&&e.axis.secondary.hide),u=vue.reactive({index:-1,position:{x:0,y:0},hover:!1});vue.provide("chart",a),vue.provide("chartMouse",u),vue.watch(()=>e.data,()=>{a&&a.changeData(e.data)},{immediate:!0}),vue.watch(()=>e.config,()=>{a&&a.changeConfig(e.config)}),vue.watch(()=>[Object.assign({},o),e.direction,e.size,e.margin,e.axis],()=>{a&&a.changeConfig({axisSpace:Object.assign({},o),direction:e.direction,size:e.size,margin:e.margin,axis:e.axis})},{immediate:!0});const c=new ResizeObserver(f=>{for(const m of f)n.value&&m.target===n.value.$el?o.y=m.contentRect.height:t.value&&m.target===t.value.$el&&(o.x=m.contentRect.width)});vue.onMounted(()=>{n.value&&c.observe(n.value.$el),t.value&&c.observe(t.value.$el)}),vue.onUnmounted(()=>{c.disconnect()});function d(){e.config.controlHover!==!1&&(u.index=-1,u.hover=!1)}function p(f){if(e.config.controlHover===!1)return;u.hover=!0,u.position={x:pointer(f)[0],y:pointer(f)[1]};const{primary:m}=a.scales,v=a.getKeys(0),h=a.getData(v);if(a.config.direction==="horizontal")if(m.type==="band"){const g=m.bandwidth(),_=u.position.x-a.canvas.x;u.index=Math.round((_+g/2)/g)-1}else u.index=bisectCenter(h,m.scale.invert(u.position.x));else if(a.config.direction==="vertical")if(m.type==="band"){const g=m.bandwidth(),_=u.position.y-a.canvas.y;u.index=Math.round((_+g/2)/g)-1}else u.index=bisectCenter(h,m.scale.invert(u.position.y))}return{axBottomEl:n,axLeftEl:t,chartEl:r,hideX:i,hideY:l,rotateX:s,onMouseMove:p,onMouseOut:d}}});const _hoisted_1$a$1={class:"chart",ref:"chartEl"},_hoisted_2$7$1=["width","height","viewBox"],_hoisted_3$6$1={class:"layers"},_hoisted_4$3$1={class:"axis"},_hoisted_5$3$1={class:"widgets"};function render$c(e,r,t,n,o,a){const s=vue.resolveComponent("axis");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,onPointermove:r[0]||(r[0]=(...i)=>e.onMouseMove&&e.onMouseMove(...i)),onPointerleave:r[1]||(r[1]=(...i)=>e.onMouseOut&&e.onMouseOut(...i))},[vue.createElementVNode("g",_hoisted_3$6$1,[vue.renderSlot(e.$slots,"layers")]),vue.createElementVNode("g",_hoisted_4$3$1,[e.hideX?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(s,{key:0,position:"bottom",ref:"axBottomEl",rotate:e.rotateX,isPrimary:e.direction==="horizontal"},null,8,["rotate","isPrimary"])),e.hideY?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(s,{key:1,position:"left",ref:"axLeftEl",isPrimary:e.direction==="vertical"},null,8,["isPrimary"]))])],40,_hoisted_2$7$1)),vue.createElementVNode("div",_hoisted_5$3$1,[vue.renderSlot(e.$slots,"widgets")])],512)}function styleInject(e,r){r===void 0&&(r={});var t=r.insertAt;if(!(!e||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var css_248z$1=`
|
|
104
|
+
.chart {
|
|
105
|
+
position: relative;
|
|
106
|
+
}
|
|
107
|
+
`;styleInject(css_248z$1);script$c.render=render$c;script$c.__file="src/components/Chart/index.vue";var script$b=vue.defineComponent({name:"Layer",props:{type:{type:String,default:"custom"},dataKeys:{type:Object,required:!0}},setup(e){const r=useChart(),t=new Date().getTime().toString(),n=vue.inject("layerProps",{});return vue.onMounted(()=>{r.addLayer({id:t,type:e.type,dataKeys:e.dataKeys,props:n})}),vue.onUnmounted(()=>{r.removeLayer(t)}),{}}});function render$b(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("g",{class:vue.normalizeClass(`layer-${e.type}`)},[vue.renderSlot(e.$slots,"default")],2)}script$b.render=render$b;script$b.__file="src/components/Layer/index.vue";var script$a=vue.defineComponent({name:"AreaComponent",components:{Layer:script$b},props:{areaStyle:{type:Object,required:!1},dataKeys:{type:Object,required:!0},type:{type:String,default:()=>"normal"},gap:{type:Number,default:0}},setup(e){const r=useChart(),{stacked:t}=vue.inject("layerProps",{stacked:!1}),{points:n}=usePoints(e.dataKeys,{stacked:!1,type:"area"}),{bars:o}=useBars(e.dataKeys,{stacked:t,type:"area",gap:e.gap,maxWidth:-1}),a=vue.ref(""),s=c=>({normal:curveLinear,natural:curveNatural,step:curveStep,monotone:r.config.direction==="horizontal"?monotoneX:monotoneY})[c],i=()=>{console.log(n.value);const{secondary:c}=r.scales;return t?area().curve(s(e.type)).x0(d=>d.x+d.width/2).y0(d=>d.y).x1(d=>d.x+d.width/2).y1(d=>d.y+d.height):r.config.direction==="vertical"?area().curve(s(e.type)).y0(d=>d.y).y1(d=>d.y).x0(d=>d.x).x1(()=>c.scale(0)):area().curve(s(e.type)).x0(d=>d.x).x1(d=>d.x).y0(d=>d.y).y1(()=>c.scale(0))},l=vue.computed(()=>()=>Object.assign({fill:"blue",fillOpacity:.25,stroke:"none"},e.areaStyle)),u=c=>mapKeys(kebabize,c);return vue.watch(n,()=>{a.value=t?i()(o.value):i()(n.value)}),{d:a,getStyle:l,toKebabCase:u}}});const _hoisted_1$9$1=["d"];function render$a(e,r,t,n,o,a){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{type:"area",dataKeys:e.dataKeys},{default:vue.withCtx(()=>[vue.createElementVNode("path",vue.mergeProps(e.toKebabCase(e.getStyle()),{d:e.d}),null,16,_hoisted_1$9$1)]),_:1},8,["dataKeys"])}script$a.render=render$a;script$a.__file="src/components/Area/index.vue";var script$9=vue.defineComponent({name:"LineComponent",components:{Layer:script$b},props:{lineStyle:{type:Object,required:!1},dotStyle:{type:Object,required:!1},hideDot:{type:Boolean,default:!1},dataKeys:{type:Object,required:!0},type:{type:String,default:()=>"normal"}},setup(e){const{stacked:r}=vue.inject("layerProps",{stacked:!1}),t=useMouse(),n=useChart(),o=vue.ref(""),{points:a}=usePoints(e.dataKeys,{stacked:r,type:"line"}),s={normal:curveLinear,natural:curveNatural,step:stepAfter,monotone:monotoneX};function i(){let p=s[e.type];e.type==="monotone"&&n.config.direction==="vertical"&&(p=monotoneY),o.value=line().x(f=>f.x).y(f=>f.y).curve(p)(a.value)}function l(p){const f=e.dotStyle,m=u.value();return Object.assign({r:p?5:3,stroke:m.stroke,strokeWidth:m.strokeWidth,fill:"white"},f)}const u=vue.computed(()=>is$1(Function,e.lineStyle)?e.lineStyle:()=>Object.assign({stroke:"#8884d8",strokeWidth:2},e.lineStyle)),c=vue.computed(()=>is$1(Function,e.dotStyle)?e.dotStyle:({active:p})=>l(p));return vue.watch(a,()=>i()),vue.watch(n.updates,()=>i()),{d:o,mouse:t,points:a,toKebabCase:p=>mapKeys(kebabize,p),getStyle:u,getDotStyle:c}}});const _hoisted_1$8$1=["d"],_hoisted_2$6$1={key:0},_hoisted_3$5$1=["cx","cy"];function render$9(e,r,t,n,o,a){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{dataKeys:e.dataKeys,type:"line"},{default:vue.withCtx(()=>[vue.createElementVNode("path",vue.mergeProps({class:"chart-line"},e.toKebabCase(e.getStyle()),{d:e.d,fill:"none"}),null,16,_hoisted_1$8$1),vue.createCommentVNode(` :stroke="stroke"
|
|
108
|
+
:stroke-width="strokeWidth"
|
|
109
|
+
stroke-linejoin="round"
|
|
110
|
+
stroke-linecap="round" `),e.hideDot?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("g",_hoisted_2$6$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.points,(i,l)=>(vue.openBlock(),vue.createElementBlock("circle",vue.mergeProps(e.toKebabCase(e.getDotStyle({active:l===e.mouse.index,index:l})),{key:l,cx:i.x,cy:i.y}),null,16,_hoisted_3$5$1))),128))]))]),_:1},8,["dataKeys"])}script$9.render=render$9;script$9.__file="src/components/Line/index.vue";var script$8=vue.defineComponent({name:"Bar",components:{Layer:script$b},props:{selectedBar:{type:Object,default:()=>null},barStyle:{type:[Function,Object],default:()=>({fill:"blue"})},barStyleSelected:{type:[Function,Object],default:()=>({fill:"darkblue"})},maxWidth:{type:Number,default:-1},dataKeys:{type:Object,required:!0},gap:{type:Number,default:5}},setup(e,{emit:r}){const t=useMouse(),{stacked:n,maxWidth:o}=vue.inject("layerProps",{stacked:!1,maxWidth:-1}),{bars:a}=useBars(e.dataKeys,{maxWidth:Math.max(e.maxWidth,o),stacked:n,gap:e.gap,type:"bar"}),s=vue.computed(()=>is$1(Function,e.barStyle)?e.barStyle:()=>e.barStyle),i=vue.computed(()=>is$1(Function,e.barStyleSelected)?e.barStyleSelected:()=>e.barStyleSelected),l=c=>mapKeys(kebabize,c);function u(c,d){r("barClick",Object.assign(Object.assign({},c),{idx:d}))}return{getStyle:s,getStyleSelected:i,toKebabCase:l,bars:a,mouse:t,onBarClick:u}}});const _hoisted_1$7$1={key:0},_hoisted_2$5$1=["x","y","width","height","onClick"],_hoisted_3$4$1=["x","y","width","height"];function render$8(e,r,t,n,o,a){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{dataKeys:e.dataKeys,type:"bar"},{default:vue.withCtx(()=>[e.bars.length===0?(vue.openBlock(),vue.createElementBlock("text",_hoisted_1$7$1,"No Data")):vue.createCommentVNode("v-if",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.bars,(i,l)=>(vue.openBlock(),vue.createElementBlock("rect",vue.mergeProps({class:"chart-bar"},e.toKebabCase(e.getStyle({...i.props,active:l===e.mouse.index})),{key:l,x:i.x,y:i.y,width:i.width>0?i.width:0,height:i.height>0?i.height:0,onClick:()=>e.onBarClick(i,l)}),null,16,_hoisted_2$5$1))),128)),e.selectedBar?(vue.openBlock(),vue.createElementBlock("rect",vue.mergeProps({key:1,class:"chart-bar"},e.toKebabCase(e.getStyleSelected({...e.selectedBar.props})),{x:e.selectedBar.x,y:e.selectedBar.y,width:e.selectedBar.width>0?e.selectedBar.width:0,height:e.selectedBar.height>0?e.selectedBar.height:0}),null,16,_hoisted_3$4$1)):vue.createCommentVNode("v-if",!0)]),_:1},8,["dataKeys"])}script$8.render=render$8;script$8.__file="src/components/Bar/index.vue";const PieSort=String;var script$7=vue.defineComponent({name:"PieLayer",components:{Layer:script$b},props:{pieStyle:{type:Object,required:!1},dataKeys:{type:Object,required:!0},sort:{type:PieSort,default:"desc",required:!1},sortFunc:{type:Function,required:!1}},setup(e){var r;const t=useChart(),n=useMouse(),o=vue.ref(Math.min(t.canvas.width-t.canvas.x,t.canvas.height-t.canvas.y)/2),a=vue.computed(()=>()=>Object.assign({colors:["#4daf4a","#377eb8","#ff7f00","#984ea3","#e41a1c"],innerRadius:2,cornerRadius:0,padAngle:.01},e.pieStyle)),s=a.value(),i=vue.ref([]),l=ordinal(a.value().colors),u=()=>arc().outerRadius(o.value).innerRadius(s.innerRadius).cornerRadius(s.cornerRadius).padAngle(s.padAngle),c=vue.ref(`translate(${o.value+t.canvas.x}, ${o.value+t.canvas.y})`);let d;switch(e.sort){case"desc":d=descending$1;break;case"asc":d=ascending$1;break;case"none":d=null;break;case"custom":d=(r=e.sortFunc)!==null&&r!==void 0?r:null;break;default:d=null}function p(){const g=t.getData([e.dataKeys[1]]);i.value=pie().sort(d)(g)}function f(g){return l(g.toString())}function m(g,_){n.hover=!0,n.index=_;const[C,b]=pointer(g);n.position={x:C+o.value,y:b+o.value}}function v(){n.hover=!1,n.index=-1}function h(g){mapKeys(kebabize,g)}return vue.watch(t.updates,()=>{o.value=Math.min(t.canvas.width-t.canvas.x,(t.canvas.height-t.canvas.y)/2),c.value=`translate(${o.value+t.canvas.x}, ${o.value+t.canvas.y})`,p()}),{arcs:i,arcGen:u,getStyle:a,transform:c,getColor:f,hideTooltip:v,toKebabCase:h,showTooltip:m}}});const _hoisted_1$6$1={key:0},_hoisted_2$4$1=["transform"],_hoisted_3$3$1=["id","fill","d","onMousemove"];function render$7(e,r,t,n,o,a){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{dataKeys:e.dataKeys,type:"pie"},{default:vue.withCtx(()=>[e.arcs.length===0?(vue.openBlock(),vue.createElementBlock("text",_hoisted_1$6$1,"No Data")):vue.createCommentVNode("v-if",!0),vue.createElementVNode("g",{transform:e.transform},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.arcs,(i,l)=>(vue.openBlock(),vue.createElementBlock("path",vue.mergeProps({key:l,id:`arc-${l}`,class:"chart-pie"},e.toKebabCase(e.getStyle()),{fill:e.getColor(l),d:e.arcGen()(i),onMousemove:u=>e.showTooltip(u,l),onMouseleave:r[0]||(r[0]=u=>e.hideTooltip())}),null,16,_hoisted_3$3$1))),128))],8,_hoisted_2$4$1)]),_:1},8,["dataKeys"])}script$7.render=render$7;script$7.__file="src/components/Pie/index.vue";var script$6=vue.defineComponent({name:"Responsive",setup(){const e=vue.ref(null),{width:r,height:t}=useResize(e);return{el:e,width:r,height:t}}});const _hoisted_1$5$1={ref:"el"};function render$6(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5$1,[vue.renderSlot(e.$slots,"main",{width:e.width,height:e.height})],512)}script$6.render=render$6;script$6.__file="src/components/Responsive/index.vue";var script$5=vue.defineComponent({name:"Grid",props:{strokeDasharray:{type:String,default:()=>"3 3"},hideX:{type:Boolean,default:!1},hideY:{type:Boolean,default:!1},center:{type:Boolean,default:!0}},setup(e){const r=useChart(),t=vue.ref([]),n=vue.ref(null),o=vue.ref([]),a=vue.ref([]);function s(){const{primary:l,secondary:u}=r.scales,c=r.config.direction==="horizontal"?u:l;if(c.type==="band"&&!e.center){const d=c.map(r.getData(r.getKeys(0))).map(p=>p+c.bandwidth()/2);d.pop(),o.value=d}else{const d=c.ticks();o.value=c.map(d)}}function i(){const{primary:l,secondary:u}=r.scales,c=r.config.direction==="horizontal"?l:u;if(c.type==="band"&&!e.center){const d=c.map(r.getData(r.getKeys(0))).map(p=>p+c.bandwidth()/2);d.pop(),a.value=d}else{const d=c.ticks();a.value=c.map(d)}}return vue.watch(r.updates,()=>{t.value=r.data,n.value=r.canvas,s(),i()}),{data:t,canvas:n,xLines:o,yLines:a}}});const _hoisted_1$4$1=["stroke-dasharray"],_hoisted_2$3$1={key:0,class:"grid-x"},_hoisted_3$2$1=["x1","y1","x2","y2"],_hoisted_4$2$1={key:1,class:"grid-y"},_hoisted_5$2$1=["x1","y1","x2","y2"],_hoisted_6$2$1=["x1","y1","x2","y2"],_hoisted_7$e=["x1","y1","x2","y2"];function render$5(e,r,t,n,o,a){return e.data.length?(vue.openBlock(),vue.createElementBlock("g",{key:0,class:"layer-grid",stroke:"black","stroke-opacity":"0.15","stroke-width":"1","stroke-dasharray":e.strokeDasharray},[e.hideX?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("g",_hoisted_2$3$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.xLines,(s,i)=>(vue.openBlock(),vue.createElementBlock("line",{key:i,x1:e.canvas.x,y1:s,x2:e.canvas.width,y2:s},null,8,_hoisted_3$2$1))),128))])),e.hideY?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("g",_hoisted_4$2$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.yLines,(s,i)=>(vue.openBlock(),vue.createElementBlock("line",{key:i,x1:s,y1:e.canvas.y,x2:s,y2:e.canvas.height},null,8,_hoisted_5$2$1))),128))])),vue.createElementVNode("g",null,[vue.createElementVNode("line",{x1:e.canvas.x,y1:e.canvas.y,x2:e.canvas.width,y2:e.canvas.y},null,8,_hoisted_6$2$1),vue.createElementVNode("line",{x1:e.canvas.width-1,y1:e.canvas.y,x2:e.canvas.width-1,y2:e.canvas.height},null,8,_hoisted_7$e)])],8,_hoisted_1$4$1)):vue.createCommentVNode("v-if",!0)}script$5.render=render$5;script$5.__file="src/components/Grid/index.vue";var script$4=vue.defineComponent({name:"Tooltip",components:{},props:{format:{type:String,default:",.0f"},color:{type:String,default:"#7876ec"},hideLine:{type:Boolean,default:!1},config:{type:Object,default:()=>({})}},setup(e){const r=vue.ref(null),t=useChart(),n=vue.ref(t.canvas),o=vue.ref(t.config.direction),{position:a,payload:s,show:i}=useTooltip(),l=vue.computed(()=>a.value.x>=n.value.width/4*3),u=vue.computed(()=>o.value==="vertical"?{top:a.value.y-.5+"px",left:n.value.x+"px"}:o.value==="horizontal"?{top:n.value.y+"px",left:a.value.x-.5+"px"}:{top:n.value.y+"px",left:n.value.x+"px"}),c=vue.computed(()=>o.value==="vertical"?{top:"5px",left:a.value.x-30+"px"}:o.value==="horizontal"?{top:a.value.y+"px",transform:`translateX(${l.value?"-100%":0})`}:{top:a.value.y+"px",left:a.value.x+"px"}),d=(f,m)=>is$1(Function,m)?m(f):is$1(Number,f)?format(m)(f):f,p=vue.computed(()=>Object.keys(omit$1(["idx"],s.value)).map(f=>{const m=Object.assign({label:f,format:e.format,color:e.color,hide:!1},e.config[f]);return{key:f,label:m.label,value:s.value[f],valueFormatted:d(s.value[f],m.format),color:is$1(Function,m.color)?m.color(s.value):m.color,hide:m.hide}}).filter(f=>!f.hide));return vue.watch(t.updates,()=>{o.value=t.config.direction,n.value=t.canvas}),{el:r,show:i,canvas:n,direction:o,style:u,styleContent:c,position:a,items:p,isRight:l}}});const _hoisted_1$3$1={key:0};function render$4(e,r,t,n,o,a){return e.show?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"v-tooltip",style:vue.normalizeStyle(e.style)},[vue.createElementVNode("div",{class:"v-tooltip-content",style:vue.normalizeStyle(e.styleContent),ref:"el"},[vue.renderSlot(e.$slots,"default",{payload:e.items},()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderColor:e.color})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.items,(s,i)=>(vue.openBlock(),vue.createElementBlock("div",{key:i,style:vue.normalizeStyle({color:s.color})},[vue.createElementVNode("b",null,vue.toDisplayString(s.label),1),vue.createTextVNode(": "+vue.toDisplayString(s.valueFormatted),1)],4))),128))],4)])],4),e.hideLine?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3$1,[e.direction==="horizontal"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"v-tooltip-line-vertical",style:vue.normalizeStyle({height:e.canvas.height+"px"})},null,4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"v-tooltip-line-horizontal",style:vue.normalizeStyle({width:e.canvas.width-40+"px"})},null,4))]))],4)):vue.createCommentVNode("v-if",!0)}var css_248z=`
|
|
111
|
+
.v-tooltip[data-v-43da20c6] {
|
|
112
|
+
position: absolute;
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
}
|
|
115
|
+
.v-tooltip-content[data-v-43da20c6] {
|
|
116
|
+
position: absolute;
|
|
117
|
+
white-space: nowrap;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
}
|
|
120
|
+
.v-tooltip-content > div[data-v-43da20c6] {
|
|
121
|
+
margin-left: 5px;
|
|
122
|
+
margin-right: 5px;
|
|
123
|
+
border: 2px solid;
|
|
124
|
+
background-color: white;
|
|
125
|
+
padding: 8px;
|
|
126
|
+
text-align: left;
|
|
127
|
+
border-radius: 4px;
|
|
128
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
129
|
+
}
|
|
130
|
+
.v-tooltip-right[data-v-43da20c6] {
|
|
131
|
+
transform: translateX(-100%);
|
|
132
|
+
margin-left: 0;
|
|
133
|
+
}
|
|
134
|
+
.v-tooltip-line-vertical[data-v-43da20c6] {
|
|
135
|
+
top: 0px;
|
|
136
|
+
position: absolute;
|
|
137
|
+
width: 1px;
|
|
138
|
+
background-color: black;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
opacity: 0.3;
|
|
141
|
+
}
|
|
142
|
+
.v-tooltip-line-horizontal[data-v-43da20c6] {
|
|
143
|
+
left: 0px;
|
|
144
|
+
position: absolute;
|
|
145
|
+
height: 1px;
|
|
146
|
+
background-color: black;
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
opacity: 0.3;
|
|
149
|
+
}
|
|
150
|
+
`;styleInject(css_248z);script$4.render=render$4;script$4.__scopeId="data-v-43da20c6";script$4.__file="src/components/Tooltip/index.vue";var script$3=vue.defineComponent({props:{stacked:{type:Boolean,default:!1},maxWidth:{type:Number,default:-1}},setup(e){vue.provide("layerProps",e)}});function render$3(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",null,[vue.renderSlot(e.$slots,"default")])}script$3.render=render$3;script$3.__file="src/components/Group/index.vue";var script$2=vue.defineComponent({name:"Grid",props:{value:{type:Number},label:{type:String,default:""},color:{type:String,default:"red"},strokeDasharray:{type:String,default:()=>"3"},strokeWidth:{type:Number,default:1},strokeOpacity:{type:Number,default:.5}},setup(e){const r=useChart(),t=vue.ref(0),n=vue.ref("horizontal"),o=vue.ref({});return vue.watch(r.updates,()=>{e.value!==void 0&&(t.value=r.scales.secondary.scale(e.value)),o.value=r.canvas,n.value=r.config.direction},{immediate:!0}),vue.watch(()=>e.value,()=>{t.value=r.scales.secondary.scale(e.value)},{immediate:!0}),{y:t,canvas:o,direction:n}}});const _hoisted_1$2$1={key:0,class:"layer-marker"},_hoisted_2$2$1=["x","y","fill"],_hoisted_3$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"],_hoisted_4$1$1={key:1,class:"layer-marker"},_hoisted_5$1$1=["x","y","fill"],_hoisted_6$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"];function render$2(e,r,t,n,o,a){return e.direction==="horizontal"?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$2$1,[vue.createElementVNode("text",{x:e.canvas.x+5,y:e.y-5,"text-anchor":"start",fill:e.color},vue.toDisplayString(e.label),9,_hoisted_2$2$1),vue.createElementVNode("line",{x1:e.canvas.x,y1:e.y,x2:e.canvas.width,y2:e.y,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_3$1$1)])):(vue.openBlock(),vue.createElementBlock("g",_hoisted_4$1$1,[vue.createElementVNode("text",{x:e.y+10,y:e.canvas.y+5,"text-anchor":"start",fill:e.color,style:{"writing-mode":"tb"}},vue.toDisplayString(e.label),9,_hoisted_5$1$1),vue.createElementVNode("line",{x1:e.y,y1:e.canvas.y,x2:e.y,y2:e.canvas.height,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_6$1$1)]))}script$2.render=render$2;script$2.__file="src/components/Marker/index.vue";function count(e){var r=0,t=e.children,n=t&&t.length;if(!n)r=1;else for(;--n>=0;)r+=t[n].value;e.value=r}function node_count(){return this.eachAfter(count)}function node_each(e,r){let t=-1;for(const n of this)e.call(r,n,++t,this);return this}function node_eachBefore(e,r){for(var t=this,n=[t],o,a,s=-1;t=n.pop();)if(e.call(r,t,++s,this),o=t.children)for(a=o.length-1;a>=0;--a)n.push(o[a]);return this}function node_eachAfter(e,r){for(var t=this,n=[t],o=[],a,s,i,l=-1;t=n.pop();)if(o.push(t),a=t.children)for(s=0,i=a.length;s<i;++s)n.push(a[s]);for(;t=o.pop();)e.call(r,t,++l,this);return this}function node_find(e,r){let t=-1;for(const n of this)if(e.call(r,n,++t,this))return n}function node_sum(e){return this.eachAfter(function(r){for(var t=+e(r.data)||0,n=r.children,o=n&&n.length;--o>=0;)t+=n[o].value;r.value=t})}function node_sort(e){return this.eachBefore(function(r){r.children&&r.children.sort(e)})}function node_path(e){for(var r=this,t=leastCommonAncestor(r,e),n=[r];r!==t;)r=r.parent,n.push(r);for(var o=n.length;e!==t;)n.splice(o,0,e),e=e.parent;return n}function leastCommonAncestor(e,r){if(e===r)return e;var t=e.ancestors(),n=r.ancestors(),o=null;for(e=t.pop(),r=n.pop();e===r;)o=e,e=t.pop(),r=n.pop();return o}function node_ancestors(){for(var e=this,r=[e];e=e.parent;)r.push(e);return r}function node_descendants(){return Array.from(this)}function node_leaves(){var e=[];return this.eachBefore(function(r){r.children||e.push(r)}),e}function node_links(){var e=this,r=[];return e.each(function(t){t!==e&&r.push({source:t.parent,target:t})}),r}function*node_iterator(){var e=this,r,t=[e],n,o,a;do for(r=t.reverse(),t=[];e=r.pop();)if(yield e,n=e.children)for(o=0,a=n.length;o<a;++o)t.push(n[o]);while(t.length)}function hierarchy(e,r){e instanceof Map?(e=[void 0,e],r===void 0&&(r=mapChildren)):r===void 0&&(r=objectChildren);for(var t=new Node$2(e),n,o=[t],a,s,i,l;n=o.pop();)if((s=r(n.data))&&(l=(s=Array.from(s)).length))for(n.children=s,i=l-1;i>=0;--i)o.push(a=s[i]=new Node$2(s[i])),a.parent=n,a.depth=n.depth+1;return t.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function objectChildren(e){return e.children}function mapChildren(e){return Array.isArray(e)?e[1]:null}function copyData(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function computeHeight(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function Node$2(e){this.data=e,this.depth=this.height=0,this.parent=null}Node$2.prototype=hierarchy.prototype={constructor:Node$2,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,find:node_find,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy,[Symbol.iterator]:node_iterator};function optional(e){return e==null?null:required$2(e)}function required$2(e){if(typeof e!="function")throw new Error;return e}function constantZero(){return 0}function constant(e){return function(){return e}}function roundNode(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function treemapDice(e,r,t,n,o){for(var a=e.children,s,i=-1,l=a.length,u=e.value&&(n-r)/e.value;++i<l;)s=a[i],s.y0=t,s.y1=o,s.x0=r,s.x1=r+=s.value*u}var preroot={depth:-1},ambiguous={},imputed={};function defaultId(e){return e.id}function defaultParentId(e){return e.parentId}function stratify(){var e=defaultId,r=defaultParentId,t;function n(o){var a=Array.from(o),s=e,i=r,l,u,c,d,p,f,m,v,h=new Map;if(t!=null){const g=a.map((b,S)=>normalize(t(b,S,o))),_=g.map(parentof),C=new Set(g).add("");for(const b of _)C.has(b)||(C.add(b),g.push(b),_.push(parentof(b)),a.push(imputed));s=(b,S)=>g[S],i=(b,S)=>_[S]}for(c=0,l=a.length;c<l;++c)u=a[c],f=a[c]=new Node$2(u),(m=s(u,c,o))!=null&&(m+="")&&(v=f.id=m,h.set(v,h.has(v)?ambiguous:f)),(m=i(u,c,o))!=null&&(m+="")&&(f.parent=m);for(c=0;c<l;++c)if(f=a[c],m=f.parent){if(p=h.get(m),!p)throw new Error("missing: "+m);if(p===ambiguous)throw new Error("ambiguous: "+m);p.children?p.children.push(f):p.children=[f],f.parent=p}else{if(d)throw new Error("multiple roots");d=f}if(!d)throw new Error("no root");if(t!=null){for(;d.data===imputed&&d.children.length===1;)d=d.children[0],--l;for(let g=a.length-1;g>=0&&(f=a[g],f.data===imputed);--g)f.data=null}if(d.parent=preroot,d.eachBefore(function(g){g.depth=g.parent.depth+1,--l}).eachBefore(computeHeight),d.parent=null,l>0)throw new Error("cycle");return d}return n.id=function(o){return arguments.length?(e=optional(o),n):e},n.parentId=function(o){return arguments.length?(r=optional(o),n):r},n.path=function(o){return arguments.length?(t=optional(o),n):t},n}function normalize(e){e=`${e}`;let r=e.length;return slash(e,r-1)&&!slash(e,r-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function parentof(e){let r=e.length;if(r<2)return"";for(;--r>1&&!slash(e,r););return e.slice(0,r)}function slash(e,r){if(e[r]==="/"){let t=0;for(;r>0&&e[--r]==="\\";)++t;if(!(t&1))return!0}return!1}function treemapSlice(e,r,t,n,o){for(var a=e.children,s,i=-1,l=a.length,u=e.value&&(o-t)/e.value;++i<l;)s=a[i],s.x0=r,s.x1=n,s.y0=t,s.y1=t+=s.value*u}var phi=(1+Math.sqrt(5))/2;function squarifyRatio(e,r,t,n,o,a){for(var s=[],i=r.children,l,u,c=0,d=0,p=i.length,f,m,v=r.value,h,g,_,C,b,S,E;c<p;){f=o-t,m=a-n;do h=i[d++].value;while(!h&&d<p);for(g=_=h,S=Math.max(m/f,f/m)/(v*e),E=h*h*S,b=Math.max(_/E,E/g);d<p;++d){if(h+=u=i[d].value,u<g&&(g=u),u>_&&(_=u),E=h*h*S,C=Math.max(_/E,E/g),C>b){h-=u;break}b=C}s.push(l={value:h,dice:f<m,children:i.slice(c,d)}),l.dice?treemapDice(l,t,n,o,v?n+=m*h/v:a):treemapSlice(l,t,n,v?t+=f*h/v:o,a),v-=h,c=d}return s}var squarify=function e(r){function t(n,o,a,s,i){squarifyRatio(r,n,o,a,s,i)}return t.ratio=function(n){return e((n=+n)>1?n:1)},t}(phi);function treemap(){var e=squarify,r=!1,t=1,n=1,o=[0],a=constantZero,s=constantZero,i=constantZero,l=constantZero,u=constantZero;function c(p){return p.x0=p.y0=0,p.x1=t,p.y1=n,p.eachBefore(d),o=[0],r&&p.eachBefore(roundNode),p}function d(p){var f=o[p.depth],m=p.x0+f,v=p.y0+f,h=p.x1-f,g=p.y1-f;h<m&&(m=h=(m+h)/2),g<v&&(v=g=(v+g)/2),p.x0=m,p.y0=v,p.x1=h,p.y1=g,p.children&&(f=o[p.depth+1]=a(p)/2,m+=u(p)-f,v+=s(p)-f,h-=i(p)-f,g-=l(p)-f,h<m&&(m=h=(m+h)/2),g<v&&(v=g=(v+g)/2),e(p,m,v,h,g))}return c.round=function(p){return arguments.length?(r=!!p,c):r},c.size=function(p){return arguments.length?(t=+p[0],n=+p[1],c):[t,n]},c.tile=function(p){return arguments.length?(e=required$2(p),c):e},c.padding=function(p){return arguments.length?c.paddingInner(p).paddingOuter(p):c.paddingInner()},c.paddingInner=function(p){return arguments.length?(a=typeof p=="function"?p:constant(+p),c):a},c.paddingOuter=function(p){return arguments.length?c.paddingTop(p).paddingRight(p).paddingBottom(p).paddingLeft(p):c.paddingTop()},c.paddingTop=function(p){return arguments.length?(s=typeof p=="function"?p:constant(+p),c):s},c.paddingRight=function(p){return arguments.length?(i=typeof p=="function"?p:constant(+p),c):i},c.paddingBottom=function(p){return arguments.length?(l=typeof p=="function"?p:constant(+p),c):l},c.paddingLeft=function(p){return arguments.length?(u=typeof p=="function"?p:constant(+p),c):u},c}var script$1=vue.defineComponent({name:"Treemap",props:{size:{type:Object,default:()=>({width:500,height:400}),required:!1},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0})},padding:{type:Number,default:8},data:{type:Array,default:()=>[]},dataKeys:{type:Object,required:!0},colorFn:{type:Function,default:()=>interpolateHcl("#60c96e","#6b46c1")},rcStyle:{type:Function,required:!1}},setup(e){const r=vue.ref(null),t=vue.ref(e.data),n=vue.ref(null),o=vue.ref({x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom}),a=vue.ref([]);function s(){const f=extent(t.value.map(h=>h[e.dataKeys[1]])),m=linear().domain(f).range([0,100]).nice(),v=sequential().domain(f).interpolator(e.colorFn());return{x:m,y:v}}function i(){const{y:f}=s();return l(t.value).leaves().map((v,h)=>({idx:h,x0:o.value.x+v.x0,x1:o.value.x+v.x1,y0:o.value.y+v.y0,y1:o.value.y+v.y1,width:v.x1-v.x0,height:v.y1-v.y0,data:v.data,color:f(v.value)}))}function l(f){const{x:m}=s(),v=treemap().size([o.value.width-o.value.x,o.value.height-o.value.y]).padding(e.padding),g=stratify().id(_=>_.name).parentId(_=>_.parent)([{name:"root"}].concat(f.map(_=>({name:_[e.dataKeys[0]],value:_[e.dataKeys[1]],parent:"root"}))));return g.sum(_=>m(_.value)),v(g),g}const u=f=>mapKeys(kebabize,f),c=f=>{const m={stroke:f.color,strokeWidth:5,fill:f.color,fillOpacity:.9};return e.rcStyle&&typeof e.rcStyle=="function"?Object.assign(Object.assign({},m),e.rcStyle(f)):m};function d(f){n.value=f}function p(){n.value=null}return vue.watch(e,()=>{t.value=e.data,o.value={x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom},a.value=i()},{immediate:!0}),{el:r,rectangles:a,selected:n,getStyle:c,toKebabCase:u,onMouseOver:d,onMouseOut:p}}});const _hoisted_1$1$1={class:"treemap",style:{display:"flex",position:"relative"}},_hoisted_2$1$1=["width","height","viewBox"],_hoisted_3$G={class:"layer-rectangles"},_hoisted_4$v=["transform","onMouseover"],_hoisted_5$n=["width","height"],_hoisted_6$k={x:10,y:20,"font-size":"15px",fill:"white","font-weight":"bold"};function render$1(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,ref:"el"},[vue.createElementVNode("g",_hoisted_3$G,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.rectangles,(s,i)=>(vue.openBlock(),vue.createElementBlock("g",{class:vue.normalizeClass(["rectangle",{selected:e.selected===i}]),key:i,transform:`translate(${s.x0}, ${s.y0})`,onMouseover:()=>e.onMouseOver(i),onMouseleave:r[0]||(r[0]=(...l)=>e.onMouseOut&&e.onMouseOut(...l))},[vue.renderSlot(e.$slots,"default",{r:s,selected:e.selected===i},()=>[vue.createElementVNode("rect",vue.mergeProps(e.toKebabCase(e.getStyle(s)),{x:0,y:0,width:s.width,height:s.height}),null,16,_hoisted_5$n),vue.renderSlot(e.$slots,"text",{r:s,selected:e.selected===i},()=>[vue.createElementVNode("text",_hoisted_6$k,vue.toDisplayString(s.data.name),1)])])],42,_hoisted_4$v))),128))])],8,_hoisted_2$1$1)),vue.renderSlot(e.$slots,"widgets")])}script$1.render=render$1;script$1.__file="src/components/Treemap/index.vue";var script=vue.defineComponent({name:"HoverBar",props:{barStyle:{type:Object,default:()=>({"fill-opacity":.05})}},setup(){const e=useChart(),r=useMouse(),t=vue.ref({x:0,y:0,width:0,height:0}),n=vue.ref("horizontal"),o=vue.ref({x:0,y:0,width:0,height:0});return vue.watch(e.updates,()=>{o.value=e.canvas,n.value=e.config.direction},{immediate:!0}),vue.watch(r,()=>{if(e.bandScale){const a=e.getData(e.getKeys(0)),[s]=e.bandScale.map([a[r.index]]),i=e.bandScale.bandwidth();s&&(e.config.direction==="horizontal"?t.value={x:s-i/2,y:0,width:i,height:o.value.height}:t.value={x:40,y:s-i/2,width:o.value.width-40,height:i})}}),{bar:t,canvas:o,direction:n,mouse:r}}});const _hoisted_1$1h={key:0,class:"layer-hover-bar"},_hoisted_2$Q=["x","y","width","height"];function render(e,r,t,n,o,a){return e.mouse.hover?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$1h,[vue.createElementVNode("rect",vue.mergeProps({class:"hover-bar"},e.barStyle,{x:e.bar.x,y:e.bar.y,width:e.bar.width>0?e.bar.width:0,height:e.bar.height>0?e.bar.height:0}),null,16,_hoisted_2$Q)])):vue.createCommentVNode("v-if",!0)}script.render=render;script.__file="src/components/HoverBar/index.vue";const _sfc_main$1B={name:"VsCarbonCalculatorResults",status:"prototype",release:"0.0.1",components:{VsCol:v4.VsCol,VsRow:v4.VsRow,VsHeading:v4.VsHeading,VsIcon:v4.VsIcon,Chart:script$c,Grid:script$5,Bar:script$8,Responsive:script$6},mixins:[v4.dataLayerMixin],inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},foodKilos:{type:Number,default:0},transportKilos:{type:Number,default:0},accommodationKilos:{type:Number,default:0},stayDuration:{type:Number,default:1},comparisonReplacements:{type:Array,default:()=>[]},language:{type:String,default:"en-gb"}},data(){return{chartDirection:vue.ref("horizontal"),chartAxis:vue.ref({primary:{type:"band"}}),cssProps:`--chart-label: '${this.labelsMap.kgsOf}'`,tokens:designTokens}},computed:{chartData(){return[{name:this.labelsMap.transport,emissions:this.transportKilos},{name:this.labelsMap.accommodation,emissions:this.accommodationKilos},{name:this.labelsMap.food,emissions:this.foodKilos}]},interpolComparison(){let e=this.labelsMap.comparison;for(let r=0;r<this.comparisonReplacements.length;r++)e=e.replace(this.comparisonReplacements[r].repl,(this.totalKilos/this.comparisonReplacements[r].divisor).toLocaleString(this.language,{minimumFractionDigits:3}));return e},interpolKGsPerDay(){return this.labelsMap.kgsPerDay.replace("xxx",this.totalPerDay)},interpolPerDaySuccess(){return this.labelsMap.perDaySuccess.replace("xxx",this.labelsMap.perDayTarget)},transportPercent(){return this.transportKilos/this.totalKilos*100},accommodationPercent(){return this.accommodationKilos/this.totalKilos*100},foodPercent(){return this.foodKilos/this.totalKilos*100},totalPerDay(){return this.totalKilos/Math.max(this.stayDuration,1)}},mounted(){this.createDataLayerObject("carbonCompleteEvent",{totalEmissions:this.totalKilos,totalPerDay:this.totalPerDay,travelPercent:this.transportPercent.toFixed(3)||0,accommodationPercent:this.accommodationPercent.toFixed(3)||0,foodPercent:this.foodPercent.toFixed(3)||0})},methods:{responsiveMargin(e){return e>300?{left:20,top:20,right:20,bottom:20}:{left:5,top:5,right:5,bottom:5}}}},_hoisted_1$1g={class:"vs-carbon-calculator-results__headline"},_hoisted_2$P={class:"mb-2"},_hoisted_3$F={class:"vs-carbon-calculator-results__total"},_hoisted_4$u=["innerHTML"],_hoisted_5$m={class:"vs-carbon-calculator-results__unicorn-icon-container"},_hoisted_6$j={class:"vs-carbon-calculator-results__unicorn-content"};function _sfc_render$1u(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsIcon"),c=vue.resolveComponent("Grid"),d=vue.resolveComponent("Bar"),p=vue.resolveComponent("Chart"),f=vue.resolveComponent("Responsive");return vue.openBlock(),vue.createBlock(l,{"data-test":"vs-carbon-calculator-results",style:vue.normalizeStyle(o.cssProps)},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(s,{level:"2"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.labelsMap.results),1)]),_:1})]),_:1}),vue.createVNode(i,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-carbon-calculator-results__summary"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1g,[vue.createElementVNode("p",_hoisted_2$P,vue.toDisplayString(a.labelsMap.resultsIntro),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_3$F,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(a.labelsMap.kgsOf),1)])])]),_:1}),vue.createVNode(i,{cols:"12",md:"6",class:"vs-carbon-calculator-results__comparison"},{default:vue.withCtx(()=>[vue.createElementVNode("p",{innerHTML:a.interpolComparison},null,8,_hoisted_4$u)]),_:1})]),_:1})]),_:1}),a.totalPerDay<=a.labelsMap.perDayTarget?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",class:"vs-carbon-calculator-results__unicorn"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_5$m,[vue.createVNode(u,{name:"unicorn",size:"lg",variant:"tertiary",class:"vs-carbon-calculator-results__unicorn-icon"})]),vue.createElementVNode("div",_hoisted_6$j,[vue.createVNode(s,{level:"3",overrideStyleLevel:"6"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.labelsMap.perDayCongratulations),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(a.interpolPerDaySuccess),1)])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{level:"3",class:"mt-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.labelsMap.chartTitle),1)]),_:1})]),_:1}),vue.createVNode(i,{class:"vs-carbon-calculator-results__chart-wrapper",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{main:vue.withCtx(({width:m})=>[vue.createVNode(p,{class:"vs-carbon-calculator-results__chart",size:{width:m,height:420},data:a.chartData,margin:a.responsiveMargin(m),direction:o.chartDirection,axis:o.chartAxis},{layers:vue.withCtx(()=>[vue.createVNode(c,{strokeDasharray:"2,2"}),vue.createVNode(d,{dataKeys:["name","emissions"],barStyle:{fill:o.tokens["vs-color-background-tertiary"]},gap:20},null,8,["barStyle"])]),_:2},1032,["size","data","margin","direction","axis"])]),_:1})]),_:1})]),_:1},8,["style"])}const VsCarbonCalculatorResults=v4._export_sfc(_sfc_main$1B,[["render",_sfc_render$1u]]),_sfc_main$1A={name:"VsCarbonCalculatorRunningTotal",status:"prototype",release:"0.0.1",components:{VsIcon:v4.VsIcon},inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},language:{type:String,default:"en-gb"}}},_hoisted_1$1f={class:"vs-carbon-calculator-running-total","data-test":"vs-carbon-calculator-running-total"},_hoisted_2$O={class:"vs-carbon-calculator-running-total__icon"},_hoisted_3$E={class:"vs-carbon-calculator-running-total__content"},_hoisted_4$t={class:"font-weight-bold"};function _sfc_render$1t(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1f,[vue.createElementVNode("div",_hoisted_2$O,[vue.createVNode(s,{name:"notes",size:"lg"})]),vue.createElementVNode("div",_hoisted_3$E,[vue.createElementVNode("p",null,vue.toDisplayString(a.labelsMap.soFar),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_4$t,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(a.labelsMap.kgsOf),1)])])])}const VsCarbonCalculatorRunningTotal=v4._export_sfc(_sfc_main$1A,[["render",_sfc_render$1t]]),_sfc_main$1z={name:"VsCarbonCalculatorIntro",status:"prototype",release:"0.0.1",components:{VsHeading:v4.VsHeading},inject:["labelsMap"]},_hoisted_1$1e={class:"vs-carbon-calculator-intro","data-test":"vs-carbon-calculator-intro"};function _sfc_render$1s(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1e,[vue.createVNode(s,{level:"2"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.labelsMap.introHeading),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(a.labelsMap.introContent),1)])}const VsCarbonCalculatorIntro=v4._export_sfc(_sfc_main$1z,[["render",_sfc_render$1s]]);function ownKeys$1(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function _objectSpread2$1(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ownKeys$1(Object(t),!0).forEach(function(n){_defineProperty$2(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _defineProperty$2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function unwrapObj(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((t,n)=>(r.includes(n)||(t[n]=vue.unref(e[n])),t),{})}function isFunction$2(e){return typeof e=="function"}function isProxy(e){return vue.isReactive(e)||vue.isReadonly(e)}function get(e,r,t){let n=e;const o=r.split(".");for(let a=0;a<o.length;a++){if(!n[o[a]])return t;n=n[o[a]]}return n}function gatherBooleanGroupProperties(e,r,t){return vue.computed(()=>e.some(n=>get(r,n,{[t]:!1})[t]))}function gatherArrayGroupProperties(e,r,t){return vue.computed(()=>e.reduce((n,o)=>{const a=get(r,o,{[t]:!1})[t]||[];return n.concat(a)},[]))}function callRule(e,r,t,n){return e.call(n,vue.unref(r),vue.unref(t),n)}function normalizeValidatorResponse(e){return e.$valid!==void 0?!e.$valid:!e}function createAsyncResult(e,r,t,n,o,a,s){let{$lazy:i,$rewardEarly:l}=o,u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],c=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,p=arguments.length>10?arguments[10]:void 0;const f=vue.ref(!!n.value),m=vue.ref(0);t.value=!1;const v=vue.watch([r,n].concat(u,p),()=>{if(i&&!n.value||l&&!d.value&&!t.value)return;let h;try{h=callRule(e,r,c,s)}catch(g){h=Promise.reject(g)}m.value++,t.value=!!m.value,f.value=!1,Promise.resolve(h).then(g=>{m.value--,t.value=!!m.value,a.value=g,f.value=normalizeValidatorResponse(g)}).catch(g=>{m.value--,t.value=!!m.value,a.value=g,f.value=!0})},{immediate:!0,deep:typeof r=="object"});return{$invalid:f,$unwatch:v}}function createSyncResult(e,r,t,n,o,a,s,i){let{$lazy:l,$rewardEarly:u}=n;const c=()=>({}),d=vue.computed(()=>{if(l&&!t.value||u&&!i.value)return!1;let p=!0;try{const f=callRule(e,r,s,a);o.value=f,p=normalizeValidatorResponse(f)}catch(f){o.value=f}return p});return{$unwatch:c,$invalid:d}}function createValidatorResult(e,r,t,n,o,a,s,i,l,u,c){const d=vue.ref(!1),p=e.$params||{},f=vue.ref(null);let m,v;e.$async?{$invalid:m,$unwatch:v}=createAsyncResult(e.$validator,r,d,t,n,f,o,e.$watchTargets,l,u,c):{$invalid:m,$unwatch:v}=createSyncResult(e.$validator,r,t,n,f,o,l,u);const h=e.$message;return{$message:isFunction$2(h)?vue.computed(()=>h(unwrapObj({$pending:d,$invalid:m,$params:unwrapObj(p),$model:r,$response:f,$validator:a,$propertyPath:i,$property:s}))):h||"",$params:p,$pending:d,$invalid:m,$response:f,$unwatch:v}}function sortValidations(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=vue.unref(e),t=Object.keys(r),n={},o={},a={};let s=null;return t.forEach(i=>{const l=r[i];switch(!0){case isFunction$2(l.$validator):n[i]=l;break;case isFunction$2(l):n[i]={$validator:l};break;case i==="$validationGroups":s=l;break;case i.startsWith("$"):a[i]=l;break;default:o[i]=l}}),{rules:n,nestedValidators:o,config:a,validationGroups:s}}const ROOT_PATH="__root";function createValidationResults(e,r,t,n,o,a,s,i,l){const u=Object.keys(e),c=n.get(o,e),d=vue.ref(!1),p=vue.ref(!1),f=vue.ref(0);if(c){if(!c.$partial)return c;c.$unwatch(),d.value=c.$dirty.value}const m={$dirty:d,$path:o,$touch:()=>{d.value||(d.value=!0)},$reset:()=>{d.value&&(d.value=!1)},$commit:()=>{}};return u.length?(u.forEach(v=>{m[v]=createValidatorResult(e[v],r,m.$dirty,a,s,v,t,o,l,p,f)}),m.$externalResults=vue.computed(()=>i.value?[].concat(i.value).map((v,h)=>({$propertyPath:o,$property:t,$validator:"$externalResults",$uid:`${o}-externalResult-${h}`,$message:v,$params:{},$response:null,$pending:!1})):[]),m.$invalid=vue.computed(()=>{const v=u.some(h=>vue.unref(m[h].$invalid));return p.value=v,!!m.$externalResults.value.length||v}),m.$pending=vue.computed(()=>u.some(v=>vue.unref(m[v].$pending))),m.$error=vue.computed(()=>m.$dirty.value?m.$pending.value||m.$invalid.value:!1),m.$silentErrors=vue.computed(()=>u.filter(v=>vue.unref(m[v].$invalid)).map(v=>{const h=m[v];return vue.reactive({$propertyPath:o,$property:t,$validator:v,$uid:`${o}-${v}`,$message:h.$message,$params:h.$params,$response:h.$response,$pending:h.$pending})}).concat(m.$externalResults.value)),m.$errors=vue.computed(()=>m.$dirty.value?m.$silentErrors.value:[]),m.$unwatch=()=>u.forEach(v=>{m[v].$unwatch()}),m.$commit=()=>{p.value=!0,f.value=Date.now()},n.set(o,e,m),m):(c&&n.set(o,e,m),m)}function collectNestedValidationResults(e,r,t,n,o,a,s){const i=Object.keys(e);return i.length?i.reduce((l,u)=>(l[u]=setValidations({validations:e[u],state:r,key:u,parentKey:t,resultsCache:n,globalConfig:o,instance:a,externalResults:s}),l),{}):{}}function createMetaFields(e,r,t){const n=vue.computed(()=>[r,t].filter(m=>m).reduce((m,v)=>m.concat(Object.values(vue.unref(v))),[])),o=vue.computed({get(){return e.$dirty.value||(n.value.length?n.value.every(m=>m.$dirty):!1)},set(m){e.$dirty.value=m}}),a=vue.computed(()=>{const m=vue.unref(e.$silentErrors)||[],v=n.value.filter(h=>(vue.unref(h).$silentErrors||[]).length).reduce((h,g)=>h.concat(...g.$silentErrors),[]);return m.concat(v)}),s=vue.computed(()=>{const m=vue.unref(e.$errors)||[],v=n.value.filter(h=>(vue.unref(h).$errors||[]).length).reduce((h,g)=>h.concat(...g.$errors),[]);return m.concat(v)}),i=vue.computed(()=>n.value.some(m=>m.$invalid)||vue.unref(e.$invalid)||!1),l=vue.computed(()=>n.value.some(m=>vue.unref(m.$pending))||vue.unref(e.$pending)||!1),u=vue.computed(()=>n.value.some(m=>m.$dirty)||n.value.some(m=>m.$anyDirty)||o.value),c=vue.computed(()=>o.value?l.value||i.value:!1),d=()=>{e.$touch(),n.value.forEach(m=>{m.$touch()})},p=()=>{e.$commit(),n.value.forEach(m=>{m.$commit()})},f=()=>{e.$reset(),n.value.forEach(m=>{m.$reset()})};return n.value.length&&n.value.every(m=>m.$dirty)&&d(),{$dirty:o,$errors:s,$invalid:i,$anyDirty:u,$error:c,$pending:l,$touch:d,$reset:f,$silentErrors:a,$commit:p}}function setValidations(e){let{validations:r,state:t,key:n,parentKey:o,childResults:a,resultsCache:s,globalConfig:i={},instance:l,externalResults:u}=e;const c=o?`${o}.${n}`:n,{rules:d,nestedValidators:p,config:f,validationGroups:m}=sortValidations(r),v=_objectSpread2$1(_objectSpread2$1({},i),f),h=n?vue.computed(()=>{const D=vue.unref(t);return D?vue.unref(D[n]):void 0}):t,g=_objectSpread2$1({},vue.unref(u)||{}),_=vue.computed(()=>{const D=vue.unref(u);return n?D?vue.unref(D[n]):void 0:D}),C=createValidationResults(d,h,n,s,c,v,l,_,t),b=collectNestedValidationResults(p,h,c,s,v,l,_),S={};m&&Object.entries(m).forEach(D=>{let[U,q]=D;S[U]={$invalid:gatherBooleanGroupProperties(q,b,"$invalid"),$error:gatherBooleanGroupProperties(q,b,"$error"),$pending:gatherBooleanGroupProperties(q,b,"$pending"),$errors:gatherArrayGroupProperties(q,b,"$errors"),$silentErrors:gatherArrayGroupProperties(q,b,"$silentErrors")}});const{$dirty:E,$errors:N,$invalid:V,$anyDirty:L,$error:B,$pending:I,$touch:H,$reset:T,$silentErrors:R,$commit:X}=createMetaFields(C,b,a),Y=n?vue.computed({get:()=>vue.unref(h),set:D=>{E.value=!0;const U=vue.unref(t),q=vue.unref(u);q&&(q[n]=g[n]),vue.isRef(U[n])?U[n].value=D:U[n]=D}}):null;n&&v.$autoDirty&&vue.watch(h,()=>{E.value||H();const D=vue.unref(u);D&&(D[n]=g[n])},{flush:"sync"});async function J(){return H(),v.$rewardEarly&&(X(),await vue.nextTick()),await vue.nextTick(),new Promise(D=>{if(!I.value)return D(!V.value);const U=vue.watch(I,()=>{D(!V.value),U()})})}function k(D){return(a.value||{})[D]}function A(){vue.isRef(u)?u.value=g:Object.keys(g).length===0?Object.keys(u).forEach(D=>{delete u[D]}):Object.assign(u,g)}return vue.reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},C),{},{$model:Y,$dirty:E,$error:B,$errors:N,$invalid:V,$anyDirty:L,$pending:I,$touch:H,$reset:T,$path:c||ROOT_PATH,$silentErrors:R,$validate:J,$commit:X},a&&{$getResultsForChild:k,$clearExternalResults:A,$validationGroups:S}),b))}class ResultsStorage{constructor(){this.storage=new Map}set(r,t,n){this.storage.set(r,{rules:t,result:n})}checkRulesValidity(r,t,n){const o=Object.keys(n),a=Object.keys(t);return a.length!==o.length||!a.every(i=>o.includes(i))?!1:a.every(i=>t[i].$params?Object.keys(t[i].$params).every(l=>vue.unref(n[i].$params[l])===vue.unref(t[i].$params[l])):!0)}get(r,t){const n=this.storage.get(r);if(!n)return;const{rules:o,result:a}=n,s=this.checkRulesValidity(r,t,o),i=a.$unwatch?a.$unwatch:()=>({});return s?a:{$dirty:a.$dirty,$partial:!0,$unwatch:i}}}const CollectFlag={COLLECT_ALL:!0,COLLECT_NONE:!1},VuelidateInjectChildResults=Symbol("vuelidate#injectChildResults"),VuelidateRemoveChildResults=Symbol("vuelidate#removeChildResults");function nestedValidations(e){let{$scope:r,instance:t}=e;const n={},o=vue.ref([]),a=vue.computed(()=>o.value.reduce((c,d)=>(c[d]=vue.unref(n[d]),c),{}));function s(c,d){let{$registerAs:p,$scope:f,$stopPropagation:m}=d;m||r===CollectFlag.COLLECT_NONE||f===CollectFlag.COLLECT_NONE||r!==CollectFlag.COLLECT_ALL&&r!==f||(n[p]=c,o.value.push(p))}t.__vuelidateInjectInstances=[].concat(t.__vuelidateInjectInstances||[],s);function i(c){o.value=o.value.filter(d=>d!==c),delete n[c]}t.__vuelidateRemoveInstances=[].concat(t.__vuelidateRemoveInstances||[],i);const l=vue.inject(VuelidateInjectChildResults,[]);vue.provide(VuelidateInjectChildResults,t.__vuelidateInjectInstances);const u=vue.inject(VuelidateRemoveChildResults,[]);return vue.provide(VuelidateRemoveChildResults,t.__vuelidateRemoveInstances),{childResults:a,sendValidationResultsToParent:l,removeValidationResultsFromParent:u}}function ComputedProxyFactory(e){return new Proxy(e,{get(r,t){return typeof r[t]=="object"?ComputedProxyFactory(r[t]):vue.computed(()=>r[t])}})}let uid=0;function useVuelidate(e,r){var t;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(n=e,e=void 0,r=void 0);let{$registerAs:o,$scope:a=CollectFlag.COLLECT_ALL,$stopPropagation:s,$externalResults:i,currentVueInstance:l}=n;const u=l||((t=vue.getCurrentInstance())===null||t===void 0?void 0:t.proxy),c=u?u.$options:{};o||(uid+=1,o=`_vuelidate_${uid}`);const d=vue.ref({}),p=new ResultsStorage,{childResults:f,sendValidationResultsToParent:m,removeValidationResultsFromParent:v}=u?nestedValidations({$scope:a,instance:u}):{childResults:vue.ref({})};if(!e&&c.validations){const h=c.validations;r=vue.ref({}),vue.onBeforeMount(()=>{r.value=u,vue.watch(()=>isFunction$2(h)?h.call(r.value,new ComputedProxyFactory(r.value)):h,g=>{d.value=setValidations({validations:g,state:r,childResults:f,resultsCache:p,globalConfig:n,instance:u,externalResults:i||u.vuelidateExternalResults})},{immediate:!0})}),n=c.validationsConfig||n}else{const h=vue.isRef(e)||isProxy(e)?e:vue.reactive(e||{});vue.watch(h,g=>{d.value=setValidations({validations:g,state:r,childResults:f,resultsCache:p,globalConfig:n,instance:u??{},externalResults:i})},{immediate:!0})}return u&&(m.forEach(h=>h(d,{$registerAs:o,$scope:a,$stopPropagation:s})),vue.onBeforeUnmount(()=>v.forEach(h=>h(o)))),vue.computed(()=>_objectSpread2$1(_objectSpread2$1({},vue.unref(d.value)),f.value))}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(n){_defineProperty$1(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _defineProperty$1(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function isFunction$1(e){return typeof e=="function"}function isObject$1(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function normalizeValidatorObject(e){return isFunction$1(e.$validator)?_objectSpread2({},e):{$validator:e}}function unwrapValidatorResponse(e){return typeof e=="object"?e.$valid:e}function unwrapNormalizedValidator(e){return e.$validator||e}function withParams(e,r){if(!isObject$1(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!isObject$1(r)&&!isFunction$1(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(r);return t.$params=_objectSpread2(_objectSpread2({},t.$params||{}),e),t}function withMessage(e,r){if(!isFunction$1(e)&&typeof vue.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!isObject$1(r)&&!isFunction$1(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(r);return t.$message=e,t}function withAsync(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const t=normalizeValidatorObject(e);return _objectSpread2(_objectSpread2({},t),{},{$async:!0,$watchTargets:r})}function forEach(e){return{$validator(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return vue.unref(r).reduce((a,s,i)=>{const l=Object.entries(s).reduce((u,c)=>{let[d,p]=c;const f=e[d]||{},m=Object.entries(f).reduce((v,h)=>{let[g,_]=h;const b=unwrapNormalizedValidator(_).call(this,p,s,i,...n),S=unwrapValidatorResponse(b);if(v.$data[g]=b,v.$data.$invalid=!S||!!v.$data.$invalid,v.$data.$error=v.$data.$invalid,!S){let E=_.$message||"";const N=_.$params||{};typeof E=="function"&&(E=E({$pending:!1,$invalid:!S,$params:N,$model:p,$response:b})),v.$errors.push({$property:d,$message:E,$params:N,$response:b,$model:p,$pending:!1,$validator:g})}return{$valid:v.$valid&&S,$data:v.$data,$errors:v.$errors}},{$valid:!0,$data:{},$errors:[]});return u.$data[d]=m.$data,u.$errors[d]=m.$errors,{$valid:u.$valid&&m.$valid,$data:u.$data,$errors:u.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:a.$valid&&l.$valid,$data:a.$data.concat(l.$data),$errors:a.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:r=>{let{$response:t}=r;return t?t.$errors.map(n=>Object.values(n).map(o=>o.map(a=>a.$message)).reduce((o,a)=>o.concat(a),[])):[]}}}const req=e=>{if(e=vue.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let r in e)return!0;return!1}return!!String(e).length},len=e=>(e=vue.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function regex(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return n=>(n=vue.unref(n),!req(n)||r.every(o=>(o.lastIndex=0,o.test(n))))}var common$1=Object.freeze({__proto__:null,forEach,len,normalizeValidatorObject,regex,req,unwrap:vue.unref,unwrapNormalizedValidator,unwrapValidatorResponse,withAsync,withMessage,withParams});regex(/^[a-zA-Z]*$/);regex(/^[a-zA-Z0-9]*$/);regex(/^\d*(\.\d+)?$/);const emailRegex=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;var email$1=regex(emailRegex),email={$validator:email$1,$message:"Value is not a valid email address",$params:{type:"email"}};function maxLength$1(e){return r=>!req(r)||len(r)<=vue.unref(e)}function maxLength(e){return{$validator:maxLength$1(e),$message:r=>{let{$params:t}=r;return`The maximum length allowed is ${t.max}`},$params:{max:e,type:"maxLength"}}}function minLength$1(e){return r=>!req(r)||len(r)>=vue.unref(e)}function minLength(e){return{$validator:minLength$1(e),$message:r=>{let{$params:t}=r;return`This field should be at least ${t.min} characters long`},$params:{min:e,type:"minLength"}}}function required$1(e){return typeof e=="string"&&(e=e.trim()),req(e)}var required={$validator:required$1,$message:"Value is required",$params:{type:"required"}};const urlRegex=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;regex(urlRegex);regex(/(^[0-9]*$)|(^-[0-9]+$)/);regex(/^[-]?\d*(\.\d+)?$/);const postcode=common$1.regex(/^([A-Za-z][A-HJ-Ya-hj-y]?\d[A-Za-z\d]? ?\d[A-Za-z]{2}|GIR ?0A{2})$/),validateFormElementMixin={data(){return{inputVal:this.value,isInvalid:this.invalid}},computed:{isRequired(){return typeof required<"u"&&"required"in this.validationRules},rules(){let e={};for(const[r,t]of Object.entries(this.validationRules))r==="required"?e={...e,required}:r==="email"?e={...e,email}:r==="minLength"?e={...e,minLength:minLength(t)}:r==="maxLength"?e={...e,maxLength:maxLength(t)}:r==="invalidVal"?e={...e,noInvalid:()=>this.inputVal.indexOf(this.validationRules.invalidVal)===-1}:r==="postcode"&&(e={...e,postcode});return typeof e<"u"?(e={...e},{inputVal:e}):{}},errorsList(){const e=[];return Object.keys(this.rules.inputVal).forEach(t=>{this.v$.$errors&&this.v$.$errors.forEach(n=>{n.$validator===t&&e.push(t)})}),e}},watch:{errorsList(e){e.length?this.isInvalid=!0:this.isInvalid=!1}},methods:{manualValidate(){this.isInvalid=!1,"required"in this.rules.inputVal&&!this.inputVal?this.errorsList.indexOf("required")===-1&&this.errorsList.push("required"):this.errorsList.forEach((e,r)=>{e==="required"&&this.errorsList.splice(r,1)}),this.errorsList.length&&(this.isInvalid=!0),this.touched=!0,this.$emit("status-update",{field:this.fieldName,value:this.inputVal,errors:this.errorsList})},emitStatus(){setTimeout(()=>{this.manualValidate(),this.touched=!0,this.v$.$touch()},50)}}},ariaDescriptionMixin={computed:{ariaDescription(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?`error-${this.fieldName}`:this.hintText?`hint-${this.fieldName}`:null}}},_sfc_main$1y={name:"VsRadioButton",status:"prototype",release:"0.0.1",components:{BFormRadioGroup:bootstrapVueNext.BFormRadioGroup,BFormRadio:bootstrapVueNext.BFormRadio},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1},options:{type:Array,required:!0},hintText:{type:String,default:""}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1,checkedValue:this.value}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",r=`vs-input--${this.fieldName}`;return`${e} ${r}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},valueChanged(e){this.checkedValue=e.value,this.$emit("updateFieldData",e)}},validations(){return this.rules}},_hoisted_1$1d={class:"vs-radio-button","data-test":"vs-radio-button"},_hoisted_2$N=["id"],_hoisted_3$D={class:"visually-hidden"},_hoisted_4$s=["id"];function _sfc_render$1r(e,r,t,n,o,a){const s=vue.resolveComponent("BFormRadio"),i=vue.resolveComponent("BFormRadioGroup");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1d,[e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_3$D,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!o.clearErrorsOnFocus]])),128))],8,_hoisted_2$N)):vue.createCommentVNode("",!0),vue.createVNode(i,{id:t.fieldName,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,onBlur:a.validateErrors,onChange:a.validateErrors,onFocus:a.resetErrors},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.options,(l,u)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-radio-button__option",[o.checkedValue===l.value?"vs-radio-button__option--checked":"",{"vs-radio-button__option--disabled":l.disabled}]]),key:u},[vue.createVNode(s,{value:l.value,name:t.fieldName,id:t.fieldName+l.value,onChange:c=>a.valueChanged({field:t.fieldName,value:l.value}),disabled:l.disabled},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(l.text),1)]),_:2},1032,["value","name","id","onChange","disabled"])],2))),128))]),_:1},8,["id","aria-invalid","aria-describedby","onBlur","onChange","onFocus"]),t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_4$s)):vue.createCommentVNode("",!0)])}const VsRadioButton=v4._export_sfc(_sfc_main$1y,[["render",_sfc_render$1r]]),_sfc_main$1x={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:bootstrapVueNext.BFormInput,VsButton:v4.VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:Number,default:0},fieldName:{type:String,required:!0},minimumNumber:{type:Number,default:0},maximumNumber:{type:Number,default:10},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",r=`vs-input--${this.fieldName}`;return`${e} ${r}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=0},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},controlBlurred(){this.inputVal<this.minimumNumber&&(this.inputVal=this.minimumNumber),this.inputVal>this.maximumNumber&&(this.inputVal=this.maximumNumber),this.validateErrors()},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},decrementValue(e){e&&e.preventDefault(),this.inputVal=Math.max(this.inputVal-1,this.minimumNumber)},incrementValue(e){e&&e.preventDefault(),this.inputVal=Math.min(this.inputVal+1,this.maximumNumber)}},validations(){return this.rules}},_hoisted_1$1c={"data-test":"vs-number-input"},_hoisted_2$M=["id"],_hoisted_3$C=["id"],_hoisted_4$r={class:"visually-hidden"},_hoisted_5$l=vue.createElementVNode("span",{class:"visually-hidden"}," Add 1 ",-1),_hoisted_6$i=vue.createElementVNode("span",{class:"visually-hidden"}," Remove 1 ",-1),_hoisted_7$d={class:"visually-hidden"};function _sfc_render$1q(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("BFormInput");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1c,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$M)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$r,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!o.clearErrorsOnFocus]])),128))],8,_hoisted_3$C)):vue.createCommentVNode("",!0),vue.createVNode(s,{class:"vs-number-input__increment",iconOnly:!0,size:"sm",icon:"minus",disabled:o.inputVal<=t.minimumNumber?!0:null,onClick:a.decrementValue},{default:vue.withCtx(()=>[_hoisted_5$l]),_:1},8,["disabled","onClick"]),vue.createVNode(i,{ref:"input",type:"Number",class:vue.normalizeClass(["vs-number-input",a.elementClass]),modelValue:o.inputVal,"onUpdate:modelValue":r[0]||(r[0]=l=>o.inputVal=l),id:t.fieldName,name:t.fieldName,required:e.isRequired,v:o.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.minimumNumber||null,max:t.maximumNumber||null,onBlur:a.controlBlurred,onChange:a.validateErrors,onFocus:a.resetErrors},null,8,["modelValue","class","id","name","required","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","onBlur","onChange","onFocus"]),vue.createVNode(s,{class:"vs-number-input__increment",iconOnly:!0,size:"sm",icon:"plus",disabled:o.inputVal>=t.maximumNumber?!0:null,onClick:a.incrementValue},{default:vue.withCtx(()=>[_hoisted_6$i]),_:1},8,["disabled","onClick"]),a.showClearButton?(vue.openBlock(),vue.createBlock(s,{key:2,class:"vs-number-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:r[1]||(r[1]=vue.withModifiers(l=>a.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_7$d,vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsNumberInput=v4._export_sfc(_sfc_main$1x,[["render",_sfc_render$1q]]),_sfc_main$1w={name:"VsCarbonCalculatorQuestion",status:"prototype",release:"0.0.1",components:{BFormGroup:bootstrapVueNext.BFormGroup,VsRadioButton,VsNumberInput},props:{label:{type:String,required:!0},labelFor:{type:String,required:!0},hint:{type:String,default:""},fieldClass:{type:String,required:!0},fieldType:{type:String,default:"radio",validator:e=>e.match(/(radio|number)/)},fieldName:{type:String,required:!0},options:{type:Array,required:!0},minimum:{type:Number,default:0},maximum:{type:Number,default:0}},methods:{valueChanged(e){this.$emit("updateFieldData",e)}}},_hoisted_1$1b=["for"];function _sfc_render$1p(e,r,t,n,o,a){const s=vue.resolveComponent("VsRadioButton"),i=vue.resolveComponent("VsNumberInput"),l=vue.resolveComponent("BFormGroup");return vue.openBlock(),vue.createBlock(l,{class:vue.normalizeClass([t.fieldClass,"vs-carbon-calculator-question"]),"data-test":"vs-carbon-calculator-question"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(t.fieldClass)},[vue.createElementVNode("label",{class:"vs-carbon-calculator-question__label mb-8",for:t.fieldName},vue.toDisplayString(t.label),9,_hoisted_1$1b),t.fieldType==="radio"?(vue.openBlock(),vue.createBlock(s,{key:0,fieldName:t.fieldName,options:t.options,required:!0,hintText:t.hint,onUpdateFieldData:a.valueChanged},null,8,["fieldName","options","hintText","onUpdateFieldData"])):vue.createCommentVNode("",!0),t.fieldType==="number"?(vue.openBlock(),vue.createBlock(i,{key:1,fieldName:t.fieldName,incrementControls:!0,value:0,minimumNumber:t.minimum,maximumNumber:t.maximum,hintText:t.hint,onUpdated:a.valueChanged},null,8,["fieldName","minimumNumber","maximumNumber","hintText","onUpdated"])):vue.createCommentVNode("",!0)],2)]),_:1},8,["class"])}const VsCarbonCalculatorQuestion=v4._export_sfc(_sfc_main$1w,[["render",_sfc_render$1p]]),_sfc_main$1v={name:"VsCarbonCalculator",status:"prototype",release:"0.0.1",components:{VsButton:v4.VsButton,VsContainer:v4.VsContainer,VsCol:v4.VsCol,VsRow:v4.VsRow,VsWarning:v4.VsWarning,VsProgressBar,VsHeading:v4.VsHeading,VsCarbonCalculatorResults,VsCarbonCalculatorTip,VsCarbonCalculatorRunningTotal,VsCarbonCalculatorIntro,VsCarbonCalculatorQuestion},mixins:[v4.dataLayerMixin],provide(){return{labelsMap:this.labelsMap}},props:{labelsMap:{type:Object,required:!0},language:{type:String,default:"en-gb"}},data(){return this.initialState()},computed:{currentQuestion(){return!this.formData||!this.activeStage?null:this.formData.fields[this.activeStage-1]},currentTip(){return this.activeStage&&this.labelsMap[`stage-${this.activeStage}.tip`]?this.labelsMap[`stage-${this.activeStage}.tip`]:""},stayDuration(){return this.form.howLongStay?parseInt(this.form.howLongStay,10):0},currentCategory(){return this.labelsMap[`stage-${this.activeStage}.title`]?this.labelsMap[`stage-${this.activeStage}.title`]:""},activeStageRepeatable(){return this.labelsMap[`stage-${this.activeStage}.repeat`]?this.labelsMap[`stage-${this.activeStage}.repeat`]:""}},mounted(){this.getFormData()},methods:{initialState(){return{formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,conditionalFields:{},reAlertErrors:!1,totalKilos:0,transportKilos:0,accommodationKilos:0,foodKilos:0,transportTip:null,foodTip:null,accommodationTip:null,transportInternalTip:null,activeStage:0,answerSet:!1,repeatableStages:{}}},restart(){const{formData:e,repeatableStages:r}=this;Object.assign(this.$data,this.initialState()),this.$data.formData=e,this.$data.repeatableStages=r,this.cleanFields()},cleanFields(){for(let e=this.formData.fields.length-1;e>=0;e--)this.formData.fields[e].isClone&&this.formData.fields.splice(e,1);for(let e=0;e<Object.keys(this.repeatableStages).length;e++)this.repeatableStages[Object.keys(this.repeatableStages)[e]].generations=0},getFormData(){v4.axios.get(this.labelsMap.formUrl).then(e=>{if(this.formData=e.data,e.data.fields.forEach(r=>{this.form[r.name]="",r.conditional&&(this.conditionalFields[r.name]=!1)}),this.repeatableStages={},e.data.repeatableStages)for(let r=0;r<e.data.repeatableStages.length;r++)this.repeatableStages[e.data.repeatableStages[r]]={generations:0}})},getMessagingData(e,r){return Object.keys(this.messagingData).length>0?this.messagingData[r][e]:e==="validation"?{}:""},getQuestionLabel(e,r){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-question`])return this.labelsMap[`question-${e.originalNumber+1}.clone-question`];if(this.labelsMap[`question-${e.originalNumber+1}.question`])return this.labelsMap[`question-${e.originalNumber+1}.question`]}return this.labelsMap[`question-${r+1}.question`]?this.labelsMap[`question-${r+1}.question`]:""},getQuestionHint(e,r){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-hint`])return this.labelsMap[`question-${e.originalNumber+1}.clone-hint`];if(this.labelsMap[`question-${e.originalNumber+1}.hint`])return this.labelsMap[`question-${e.originalNumber+1}.hint`]}return this.labelsMap[`question-${r+1}.hint`]?this.labelsMap[`question-${r+1}.hint`]:""},getQuestionOptions(e,r){let t;if(e.isClone?t=e.originalNumber:t=r,e.element==="radio"){const{options:n}=e;for(let o=0;o<n.length;o++)n[o].text=this.labelsMap[`question-${t+1}.option-${o+1}`];return n}return[]},updateFieldData(e){this.form[e.field]=e.value||"",e.value?this.answerSet=!0:this.answerSet=!1,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields(),this.calculateEmissions()},manageErrorStatus(e,r){const t=this.errorFields.indexOf(e);t!==-1?(!r||r.length<1)&&this.errorFields.splice(t,1):r&&r.length>0&&this.errorFields.push(e)},getRadioValue(e,r){if(!r)return 0;let t;for(let o=0;o<this.formData.fields.length;o++)this.formData.fields[o].name===e&&(t=this.formData.fields[o]);const n=t.values[r];if(t.multiplyByNumber)return n*t.multiplyByNumber;if(t.multiplyByAnswer){let o=this.form[t.multiplyByAnswer.question]||0;return o=Math.max(o,t.multiplyByAnswer.minimum),n*o}if(t.multiplyByValue&&e!==t.multiplyByValue){let o=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question])||0;return o=Math.max(o,t.multiplyByValue.minimum),n*o}return n},getNumberValue(e,r){if(!r)return 0;let t;for(let n=0;n<this.formData.fields.length;n++)this.formData.fields[n].name===e&&(t=this.formData.fields[n]);if(t.multiplyByNumber)return parseInt(r,10)*t.multiplyByNumber;if(t.multiplyByAnswer){const n=this.form[t.multiplyByAnswer.question]||0;return parseInt(r,10)*n}if(t.multiplyByValue&&e!==t.multiplyByValue){const n=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question]);return parseInt(r,10)*n}return 0},getFieldValue(e){return e.element==="radio"?this.getRadioValue(e.name,this.form[e.name]):e.element==="number"?this.getNumberValue(e.name,this.form[e.name]):0},calculateEmissions(){this.transportKilos=0,this.accommodationKilos=0,this.foodKilos=0;for(let e=0;e<this.formData.fields.length;e++){const r=this.formData.fields[e];switch(r.stage){case 1:case 3:this.transportKilos+=this.getFieldValue(r);break;case 2:this.accommodationKilos+=this.getFieldValue(r);break;case 4:this.foodKilos+=this.getFieldValue(r);break}}this.totalKilos=this.transportKilos+this.accommodationKilos+this.foodKilos},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const r=this.formData.fields.find(n=>n.name===e);let t=!0;Object.keys(r.conditional).forEach(n=>{const o=r.conditional[n];Array.isArray(o)?o.indexOf(this.form[n])===-1&&(t=!1):this.form[n]!==o&&(t=!1),t?this.conditionalFields[e]=!0:(this.conditionalFields[e]=!1,this.manageErrorStatus(e,[]))})})},forwardPage(e){e&&e.preventDefault(),this.activeStage&&this.createDataLayerObject("carbonQuestionEvent",{questionNumber:this.activeStage,answer:this.form[this.currentQuestion.name]}),this.activeStage+=1,this.checkNewAnswerSet(),this.resetFocus()},backwardPage(e){e&&e.preventDefault(),this.activeStage-=1,this.checkNewAnswerSet(),this.resetFocus()},checkNewAnswerSet(){if(this.activeStage>this.formData.stages){this.answerSet=!0;return}this.answerSet=!0;for(let e=0;e<this.formData.fields.length;e++)if(this.formData.fields[e].stage===this.activeStage){const r=this.formData.fields[e];r.element==="radio"&&!this.form[r.name]?this.answerSet=!1:r.element==="number"&&!this.form[r.name]&&(this.form[r.name]=r.validation.min)}},isRepeatable(e){return!!(this.repeatableStages[e]&&this.repeatableStages[e].generations<3)},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"},resetFocus(){this.$nextTick(()=>{this.$nextTick(()=>{try{this.$refs.questions[this.activeStage-1].$el.focus(),this.$refs.progress.$el.scrollIntoView()}catch{}})})},duplicateCurrentStage(e){e&&e.preventDefault();const r=this.repeatableStages[this.activeStage].generations+1;for(let t=0;t<this.formData.fields.length;t++){const n=this.formData.fields[t];if(n.stage===this.activeStage&&!n.isClone){const o=JSON.parse(JSON.stringify(n));o.isClone=!0;const a=`${n.name}${r}`;o.name=a,o.originalNumber=t,this.form[a]="",this.formData.fields.push(o)}}this.repeatableStages[this.activeStage].generations=r}}},_hoisted_1$1a={class:"vs-carbon-calculator__wrapper"},_hoisted_2$L={key:1};function _sfc_render$1o(e,r,t,n,o,a){const s=vue.resolveComponent("VsCarbonCalculatorIntro"),i=vue.resolveComponent("VsProgressBar"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("VsCarbonCalculatorQuestion"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsCarbonCalculatorTip"),p=vue.resolveComponent("VsCol"),f=vue.resolveComponent("VsCarbonCalculatorRunningTotal"),m=vue.resolveComponent("VsCarbonCalculatorResults"),v=vue.resolveComponent("VsRow"),h=vue.resolveComponent("VsContainer"),g=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1a,[vue.createVNode(h,{class:"vs-carbon-calculator","data-test":"vs-carbon-calculator"},{default:vue.withCtx(()=>[e.formData&&e.formData.fields?(vue.openBlock(),vue.createBlock(v,{key:0,class:"vs-carbon-calculator__survey"},{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[e.activeStage?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:0})),e.activeStage?(vue.openBlock(),vue.createElementBlock("form",_hoisted_2$L,[vue.createElementVNode("fieldset",null,[vue.createVNode(i,{max:e.formData.stages,currentStep:e.activeStage<=e.formData.stages?e.activeStage:e.formData.stages,isStepped:!0,isFull:e.activeStage>e.formData.stages,progressLabel:t.labelsMap.progress,ref:"progress"},null,8,["max","currentStep","isFull","progressLabel"]),vue.withDirectives(vue.createElementVNode("div",null,[a.currentCategory?(vue.openBlock(),vue.createBlock(l,{key:0,level:"2",overrideStyleLevel:"3",class:"vs-carbon-calculator__category-heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.currentCategory),1)]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.formData.fields,(_,C)=>vue.withDirectives((vue.openBlock(),vue.createBlock(u,{ref_for:!0,ref:"questions",tabindex:"0",key:_.name,label:a.getQuestionLabel(_,C),"label-for":_.name,hint:a.getQuestionHint(_,C),fieldClass:a.conditionalElementClass(_.name),fieldType:_.element,fieldName:_.name,options:a.getQuestionOptions(_,C),minimum:_.element==="number"?_.validation.min:0,maximum:_.element==="number"?_.validation.max:0,onUpdateFieldData:a.updateFieldData},null,8,["label","label-for","hint","fieldClass","fieldType","fieldName","options","minimum","maximum","onUpdateFieldData"])),[[vue.vShow,_.stage===e.activeStage]])),128))],512),[[vue.vShow,e.activeStage<=e.formData.fields.length]])])])):vue.createCommentVNode("",!0),a.isRepeatable(e.activeStage)?(vue.openBlock(),vue.createBlock(c,{key:2,class:"my-4",variant:"secondary",icon:"plus",onClick:r[0]||(r[0]=_=>a.duplicateCurrentStage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.activeStageRepeatable),1)]),_:1})):vue.createCommentVNode("",!0),a.currentTip?(vue.openBlock(),vue.createBlock(d,{key:3,tip:a.currentTip},null,8,["tip"])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(p,{cols:"12"},{default:vue.withCtx(()=>[e.activeStage>0&&e.activeStage<=e.formData.stages?(vue.openBlock(),vue.createBlock(f,{key:0,"total-kilos":e.totalKilos,language:t.language},null,8,["total-kilos","language"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(m,{key:1,"total-kilos":e.totalKilos,"transport-kilos":e.transportKilos,"food-kilos":e.foodKilos,"accommodation-kilos":e.accommodationKilos,"stay-duration":a.stayDuration,comparisonReplacements:e.formData.comparisonReplacements,language:t.language},null,8,["total-kilos","transport-kilos","food-kilos","accommodation-kilos","stay-duration","comparisonReplacements","language"])):vue.createCommentVNode("",!0)]),_:1}),e.activeStage===0?(vue.openBlock(),vue.createBlock(p,{key:0,class:"text-center",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(c,{variant:"primary",type:"submit",class:"vs-form__submit mt-9",onClick:r[1]||(r[1]=_=>a.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.begin),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),e.activeStage>0?(vue.openBlock(),vue.createBlock(p,{key:1,cols:"12"},{default:vue.withCtx(()=>[e.activeStage>1?(vue.openBlock(),vue.createBlock(c,{key:0,variant:e.activeStage<=e.formData.fields.length?"primary":"secondary",type:"submit",class:"vs-form__submit mt-9 float-start",ref:"backPage",onClick:r[2]||(r[2]=_=>a.backwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.previous),1)]),_:1},8,["variant"])):vue.createCommentVNode("",!0),e.activeStage<e.formData.stages?(vue.openBlock(),vue.createBlock(c,{key:1,variant:"primary",type:"submit",class:"vs-form__submit mt-9 float-end",ref:"forwardPage",disabled:e.activeStage>0&&!e.answerSet,onClick:r[3]||(r[3]=_=>a.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.next),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage===e.formData.stages?(vue.openBlock(),vue.createBlock(c,{key:2,variant:"primary",type:"submit",class:"vs-form__submit mt-9 float-end",disabled:!e.answerSet,onClick:r[4]||(r[4]=_=>a.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.results),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(c,{key:3,variant:"primary",type:"submit",class:"vs-form__submit mt-9 float-end",onClick:r[5]||(r[5]=_=>a.restart())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.restart),1)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.noJsMessage),1)]),_:1})])}const CarbonCalculator=v4._export_sfc(_sfc_main$1v,[["render",_sfc_render$1o]]),noJsClass="no-js",jsIsDisabled=()=>document.getElementsByClassName(noJsClass).length>0,useVideoStore=pinia.defineStore("video",{state:()=>({videos:{}}),actions:{addVideo(e){this.videos[e.videoId]={...e}}}}),useCookiesStore=pinia.defineStore("cookies",()=>{const e=vue.ref([]),r=vue.ref(!1);function t(o){e.value=[],o.forEach(a=>{e.value.push(a)})}function n(o){r.value=o}return{allowedCookies:e,cookiesTestRun:r,setCookieArray:t,setTestRun:n}}),cookieCheckerMixin={data(){return{bypassCookiesExist:!1}},computed:{...pinia.mapState(useCookiesStore,{cookiesSet(e){return e.allowedCookies}}),onetrustActiveGroups(){return typeof window<"u"?window.OnetrustActiveGroups:null},requiredCookiesExist(){if(typeof window<"u"&&window.bypassCookieChecks)return this.bypassCookiesExist;let e=!0;return this.requiredCookies?this.requiredCookies.forEach(r=>{this.cookiesSet.indexOf(r)===-1&&(e=!1)}):e=!1,e},cookiesInitStatus(){return typeof window<"u"&&window.bypassCookieChecks?this.bypassCookiesExist:(typeof this.onetrustActiveGroups>"u"||this.cookiesSet.length===0,!0)}},mounted(){setTimeout(()=>{this.bypassCookiesExist=!0},50)}},cookieValues$5={youtube:["C0001","C0004"],languageSelector:["C0001"],embed:["C0001","C0003","C0004"],recaptcha:["C0001"],map:["C0001"]},cookieValues$4=cookieValues$5.youtube,_sfc_main$1u={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading:v4.VsHeading,VsLink,VsImg:v4.VsImg,VsButton:v4.VsButton,VsWarning:v4.VsWarning},mixins:[cookieCheckerMixin],inject:{noJsMessage:{default:null},noCookiesMessage:{default:null},cookieLinkText:{default:null},theme:{default:null}},props:{link:{type:String,required:!0,default:"#"},headingLevel:{type:[String,Number],default:"3",validator:e=>e.match(/(1|2|3|4|5|6)/)},type:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},disabled:{type:Boolean,default:!1},videoId:{type:String,default:""},videoBtnText:{type:String,default:""},errorMessage:{type:String,default:""},errorType:{type:String,default:"image",validator:e=>e.match(/(image|full)/)},warningSize:{type:String,default:"small",validator:e=>e.match(/(normal|small)/)}},setup(){return{videoStore:useVideoStore()}},data(){return{jsDisabled:!0,requiredCookies:cookieValues$4}},computed:{formattedVideoBtnText(){return`${this.videoBtnText} | `},formattedVideoDuration(){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`},stretchedLinkCardClasses(){let e="";return this.disabled&&(e+="vs-stretched-link-card--disabled"),this.type==="video"&&(e+=" vs-stretched-link-card--video"),this.showWarning&&this.type==="video"&&(e+=" vs-stretched-link-card--warning"),e},videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0},warningClass(){let e="";return this.videoId&&(this.jsDisabled||!this.requiredCookiesExist)&&(e="vs-stretched-link-card__img-container--warning ",this.errorType==="full"&&(this.cookiesInitStatus!==null||this.jsDisabled)&&(e+="vs-stretched-link-card__img-container--warning-full")),e},showCookieWarning(){return!!(this.videoId&&!this.jsDisabled&&!this.requiredCookiesExist&&this.cookiesInitStatus===!0)},showError(){return!!(this.videoId&&this.errorMessage!==""&&this.cookiesInitStatus==="error")},showWarning(){return this.showError||this.showCookieWarning?this.errorType:!!this.jsDisabled},warningMessage(){let e="";return this.showCookieWarning?e=this.noCookiesMessage:e=this.errorMessage,e},warningAttrs(){const e={};return this.type==="cookie"&&(e.class="ot-sdk-show-settings vs-warning__cookie-trigger"),this.size==="small"&&(e.size="sm"),e}},mounted(){this.jsDisabled=jsIsDisabled()},methods:{emitShowModal(){!this.videoId||!this.requiredCookiesExist||this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$19={key:0,class:"vs-stretched-link-card__video-btn-text"},_hoisted_2$K={key:1,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},_hoisted_3$B={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"};function _sfc_render$1n(e,r,t,n,o,a){const s=vue.resolveComponent("VsWarning"),i=vue.resolveComponent("VsImg"),l=vue.resolveComponent("VsButton"),u=vue.resolveComponent("VsLink"),c=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["card vs-stretched-link-card",a.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:r[0]||(r[0]=(...d)=>a.emitShowModal&&a.emitShowModal(...d)),onKeypress:r[1]||(r[1]=(...d)=>a.emitShowModal&&a.emitShowModal(...d))},[a.showWarning==="full"?(vue.openBlock(),vue.createBlock(s,{key:0,size:t.warningSize,type:a.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.warningMessage)+" ",1)]),_:2},[a.cookieLinkText!==""&&a.showCookieWarning?{name:"button-text",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.cookieLinkText),1)]),key:"0"}:void 0]),1032,["size","type"])):vue.createCommentVNode("",!0),t.errorType==="full"&&t.videoId!==""?(vue.openBlock(),vue.createBlock(s,{key:1,size:t.warningSize,"data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning vs-stretched-link-card__full-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-stretched-link-card__img-container",a.warningClass])},[t.imgSrc?(vue.openBlock(),vue.createBlock(i,{key:0,src:t.imgSrc,alt:t.imgAlt,class:"vs-stretched-link-card__img","data-test":"vs-stretched-link-card__img","data-chromatic":"ignore"},null,8,["src","alt"])):vue.createCommentVNode("",!0),a.showWarning==="image"?(vue.openBlock(),vue.createBlock(s,{key:1,size:t.warningSize,type:a.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.warningMessage)+" ",1)]),_:2},[a.cookieLinkText!==""&&a.showCookieWarning?{name:"button-text",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.cookieLinkText),1)]),key:"0"}:void 0]),1032,["size","type"])):vue.createCommentVNode("",!0),t.videoId!==""&&t.errorType==="image"?(vue.openBlock(),vue.createBlock(s,{key:2,size:t.warningSize,"data-test":"vs-stretched-link-card__warning",class:"vs-stretched-link-card__image-warning vs-stretched-link-card__image-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0)],2),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?vue.renderSlot(e.$slots,"stretched-card-panels",{key:2}):vue.createCommentVNode("",!0),a.showWarning!=="full"?(vue.openBlock(),vue.createElementBlock("div",{key:3,class:vue.normalizeClass(["card-body",t.videoId?"position-relative":""])},[t.videoId&&a.videoLoaded&&e.requiredCookiesExist?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:a.emitShowModal},{default:vue.withCtx(()=>[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1$19,vue.toDisplayString(a.formattedVideoBtnText),1)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(a.formattedVideoDuration),1)]),_:1},8,["onClick"])):vue.createCommentVNode("",!0),e.$slots["stretched-card-category"]&&e.$slots["stretched-card-category"]()?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$K,[vue.renderSlot(e.$slots,"stretched-card-category")])):vue.createCommentVNode("",!0),e.$slots["stretched-card-header"]&&e.$slots["stretched-card-header"]()?(vue.openBlock(),vue.createBlock(c,{key:2,level:t.headingLevel,class:"card-title vs-stretched-link-card__title","data-test":"vs-stretched-link-card__title"},{default:vue.withCtx(()=>[e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?vue.renderSlot(e.$slots,"stretched-card-header",{key:0}):t.type==="video"?vue.renderSlot(e.$slots,"stretched-card-header",{key:1}):(vue.openBlock(),vue.createBlock(u,{key:2,href:t.link,type:t.type,class:vue.normalizeClass(["stretched-link",t.disabled?"stretched-link--disabled":""]),variant:a.theme==="dark"?"on-dark":"primary","data-test":"vs-stretched-link",disabled:t.disabled,tabindex:t.videoId||t.disabled?"-1":"0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-header")]),_:3},8,["href","type","class","variant","disabled","tabindex"]))]),_:3},8,["level"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$B,[vue.renderSlot(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?(vue.openBlock(),vue.createBlock(u,{key:3,href:t.link,class:"vs-stretched-link-card__link stretched-link","data-test":"vs-stretched-link-card__link"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-link")]),_:3},8,["href"])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0)],34)}const VsStretchedLinkCard=v4._export_sfc(_sfc_main$1u,[["render",_sfc_render$1n]]),_sfc_main$1t={name:"VsStretchedLinkPanels",status:"prototype",release:"0.0.1",components:{VsIcon:v4.VsIcon},props:{days:{type:String,default:""},transport:{type:String,default:""},daysLabel:{type:String,default:"days"},transportName:{type:String,default:""}}},_hoisted_1$18={class:"vs-stretched-link-panels"},_hoisted_2$J={class:"vs-stretched-link-panels__panel vs-stretched-link-panels__panel--days","data-test":"vs-stretched-link-panel--days"},_hoisted_3$A={"data-test":""},_hoisted_4$q={class:"vs-stretched-link-panels__days"},_hoisted_5$k={class:"vs-stretched-link-panels__panel","data-test":"vs-stretched-link-panel"},_hoisted_6$h={"data-test":"vs-stretched-link-panel__icon"};function _sfc_render$1m(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$18,[vue.createElementVNode("div",_hoisted_2$J,[vue.createElementVNode("p",_hoisted_3$A,[vue.createElementVNode("span",_hoisted_4$q,vue.toDisplayString(t.days),1),vue.createTextVNode(vue.toDisplayString(t.daysLabel),1)])]),vue.createElementVNode("div",_hoisted_5$k,[vue.createVNode(s,{name:t.transport,variant:"inverse",size:"sm",class:"vs-stretched-link-panels__icon"},null,8,["name"]),vue.createElementVNode("p",_hoisted_6$h,vue.toDisplayString(t.transportName),1)])])}const VsStretchedLinkPanels=v4._export_sfc(_sfc_main$1t,[["render",_sfc_render$1m]]),_sfc_main$1s={name:"VsCarouselSlide",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsStretchedLinkPanels,VsCol:v4.VsCol},inject:["slideCols","visibleSlides"],props:{imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download)/)},linkUrl:{type:String,required:!0},categoryLabel:{type:String,default:null},category:{type:String,default:null},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},slideIndex:{type:String,required:!0}},methods:{isVisible(e){const r=parseInt(e,10);return this.visibleSlides.indexOf(r)>=0}}},_hoisted_1$17={class:"vs-carousel-slide"},_hoisted_2$I={class:"visually-hidden"},_hoisted_3$z={class:"vs-carousel-slide__title","data-test":"vs-carousel-slide__title"};function _sfc_render$1l(e,r,t,n,o,a){const s=vue.resolveComponent("VsStretchedLinkPanels"),i=vue.resolveComponent("VsStretchedLinkCard"),l=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(l,{cols:a.slideCols.xs,sm:a.slideCols.sm,lg:a.slideCols.md,xl:a.slideCols.lg,"data-test":"vs-carousel-slide","aria-disabled":!a.isVisible(t.slideIndex)},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$17,[vue.createVNode(i,{link:t.linkUrl,type:t.linkType,"img-src":t.imgSrc,"img-alt":t.imgAlt,class:vue.normalizeClass([a.isVisible(t.slideIndex)?"vs-carousel-slide__card--active":"vs-carousel-slide__card--disabled","vs-carousel-slide__card"]),disabled:!a.isVisible(t.slideIndex),"data-test":"vs-carousel-card"},vue.createSlots({"stretched-card-category":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$I,vue.toDisplayString(t.categoryLabel)+": ",1),vue.createTextVNode(vue.toDisplayString(t.category),1)]),"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$z,[vue.renderSlot(e.$slots,"vs-carousel-slide-heading")])]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(s,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","class","disabled"])])]),_:3},8,["cols","sm","lg","xl","aria-disabled"])}const CarouselSlide=v4._export_sfc(_sfc_main$1s,[["render",_sfc_render$1l]]),_sfc_main$1r={name:"VsCheckbox",status:"prototype",release:"0.0.1",components:{BFormCheckbox:bootstrapVueNext.BFormCheckbox},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{fieldName:{type:String,required:!0},value:{type:String,default:""},label:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},infoText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:"",errors:[]}},computed:{errorClass(){return this.isInvalid?"vs-checkbox--error":""}},watch:{value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},validations(){return this.rules}},_hoisted_1$16=["id"],_hoisted_2$H=["innerHTML"],_hoisted_3$y=["id"],_hoisted_4$p={class:"visually-hidden"},_hoisted_5$j={class:"vs-checkbox__label"};function _sfc_render$1k(e,r,t,n,o,a){const s=vue.resolveComponent("BFormCheckbox");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-checkbox",a.errorClass])},[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_1$16),t.infoText!==""?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:t.infoText},null,8,_hoisted_2$H)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,i=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:i,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$p,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[i]||t.genericValidation[i]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$y)):vue.createCommentVNode("",!0),t.fieldName?(vue.openBlock(),vue.createBlock(s,vue.mergeProps({key:2,modelValue:o.inputVal,"onUpdate:modelValue":r[0]||(r[0]=i=>o.inputVal=i),class:"me-4",name:t.fieldName,id:t.fieldName,value:t.value,unchecked_value:`not_${t.value}`},e.$attrs,{"data-test":"vs-checkbox",onBlur:e.emitStatus,onChange:e.emitStatus,required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription}),{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$j,vue.toDisplayString(t.label),1)]),_:1},16,["modelValue","name","id","value","unchecked_value","onBlur","onChange","required","aria-invalid","aria-describedby"])):vue.createCommentVNode("",!0)],2)}const VsCheckbox=v4._export_sfc(_sfc_main$1r,[["render",_sfc_render$1k]]);function hashCode(){return Math.random().toString(36).substring(7)}class OneTrustVS{constructor(){le(this,"init",()=>{window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)});le(this,"instaOT",(r,t,n,o,a=null)=>{console.log("insta");let s=this;this.checkThirdPartyLibrary("OneTrust",()=>{this.onetrustCookieCheck(r,i=>{if(i)s.setIframeSrc();else if(o){console.log("fallback",n),console.log("container",o);let l=Array.from(n.classList)[0],u;o.length>1?o.forEach((c,d)=>{u=o[d].querySelector(`.${l}`),u||s.showOneTrustFallback(r,t,n,o[d],a)}):(u=o.querySelector(`.${l}`),u||s.showOneTrustFallback(r,t,n,o,a))}}),window.OneTrust.OnConsentChanged(function(){s.onetrustCookieCheck(r,i=>{i&&(window.OneTrustEventBus.dispatchEvent("otCategory-approved"),s.hideOneTrustFallback(r),s.setIframeSrc())})})})});le(this,"showOneTrustFallback",(r,t,n,o,a=null)=>{console.log("showfallback");let s={visible:!1,fallback:n};if(s.visible)return!1;if(o.length>1&&s.fallback)console.log("aqui"),o.forEach(i=>{let l=s.fallback.cloneNode(!0);l.id=hashCode(),i.insertAdjacentHTML("afterend",l.outerHTML);let u=document.getElementById(l.id);u.style.display="block",s.visible=!0,l.classList.add(`vscookies-${r}`),this.fallbacks.push({id:u.id,cat:r,visible:!0}),this.setFBButtonListener(l)});else{console.log("aca");let i=s.fallback.cloneNode(!0);i.id=hashCode(),i.style.display="block",i.classList.add(`vscookies-${r}`),a?o.insertBefore(i,o.childNodes[a]):o.appendChild(i),this.fallbacks.push({id:i.id,cat:r}),s.visible=!0,this.setFBButtonListener(i)}});le(this,"onetrustCookieCheck",(r,t)=>{if(typeof window<"u")return t(window.OnetrustActiveGroups.includes(r))});le(this,"hideOneTrustFallback",r=>{this.fallbacks.map(n=>{if(n.cat===r&&document.getElementById(n.id)){document.getElementById(n.id).style.display="none";return}});const t=document.querySelectorAll(`.vscookies-${r}`);t.size>0&&t.map(n=>{n.style.display="none"})});le(this,"checkThirdPartyLibrary",(r,t)=>{let n=500,o=this;window.setTimeout(function(){window[r]?t(window[r]):o.checkThirdPartyLibrary(r,t)},n)});le(this,"setFBButtonListener",r=>{r.querySelector("#ot-sdk-btn").addEventListener("click",function(){window.OneTrust.ToggleInfoDisplay()})});le(this,"setIframeSrc",()=>{let r=document.querySelectorAll('iframe[data-src]:not([data-src=""])');r&&r.forEach(t=>{t.src=t.dataset.src,t.removeAttribute("data-src")})});this.fallbacks=[]}}let cookieStore=null;const _sfc_main$1q={data(){return{oneTrust:new OneTrustVS,activeGroups:""}},watch:{activeGroups(){const r=this.activeGroups.split(",").filter(t=>t!=="");cookieStore&&(cookieStore.setCookieArray(r),cookieStore.setTestRun(!0))}},mounted(){cookieStore=useCookiesStore()},created(){this.checkOneTrust(),this.checkActiveGroups()},methods:{checkOneTrust(){typeof window<"u"&&this.oneTrust.checkThirdPartyLibrary("OneTrust",()=>{window.OneTrust.OnConsentChanged(()=>{this.oneTrust.checkThirdPartyLibrary("OnetrustActiveGroups",()=>{this.activeGroups=window.OnetrustActiveGroups})})})},checkActiveGroups(){typeof window<"u"&&this.oneTrust.checkThirdPartyLibrary("OnetrustActiveGroups",()=>{this.activeGroups=window.OnetrustActiveGroups})}}},_hoisted_1$15={class:"d-none"};function _sfc_render$1j(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$15)}const CookieChecker=v4._export_sfc(_sfc_main$1q,[["render",_sfc_render$1j]]),_sfc_main$1p={name:"VsDescriptionList",status:"prototype",release:"0.0.1",provide(){return{inline:vue.computed(()=>this.inline)}},props:{inline:{type:Boolean,default:!1}}};function _sfc_render$1i(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("dl",{class:vue.normalizeClass(["vs-description-list",{"list-inline":t.inline}])},[vue.renderSlot(e.$slots,"default")],2)}const DescriptionList=v4._export_sfc(_sfc_main$1p,[["render",_sfc_render$1i]]),_sfc_main$1o={name:"VsDescriptionListItem",status:"prototype",release:"0.0.1",components:{VsCol:v4.VsCol},inject:["inline"],props:{title:{type:Boolean,default:!1}}};function _sfc_render$1h(e,r,t,n,o,a){const s=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(s,{tag:t.title?"dt":"dd",class:vue.normalizeClass({"list-inline-item":a.inline,"vs-description-list__detail":!t.title,"vs-description-list__detail--styled":!a.inline&&!t.title,"vs-description-list__term":t.title,"vs-description-list__term--styled":!a.inline&&t.title})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tag","class"])}const DescriptionListItem=v4._export_sfc(_sfc_main$1o,[["render",_sfc_render$1h],["__scopeId","data-v-34c8229a"]]),_sfc_main$1n={name:"VsDropdown",status:"prototype",release:"0.0.1",components:{BDropdown:bootstrapVueNext.BDropdown},props:{text:{type:String,default:""}},computed:{nonButtonContentSlots(){return v4.lodashExports.reject(this.$slots,{name:"button-content"})}}};function _sfc_render$1g(e,r,t,n,o,a){const s=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createBlock(s,vue.mergeProps(e.$attrs,{variant:"primary",class:"vs-dropdown"}),vue.createSlots({"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content",{},()=>[vue.createTextVNode(vue.toDisplayString(t.text),1)])]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:2},[vue.renderList(a.nonButtonContentSlots,(i,l)=>({name:l,fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,l)])}))]),1040)}const VsDropdown=v4._export_sfc(_sfc_main$1n,[["render",_sfc_render$1g]]),_sfc_main$1m={name:"VsDropdownItem",status:"prototype",release:"0.0.1",components:{BDropdownItem:bootstrapVueNext.BDropdownItem}};function _sfc_render$1f(e,r,t,n,o,a){const s=vue.resolveComponent("BDropdownItem");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsDropdownItem=v4._export_sfc(_sfc_main$1m,[["render",_sfc_render$1f]]),cookieValues$3=cookieValues$5.embed,_sfc_main$1l={name:"VsEmbedWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsRichTextWrapper,VsWarning:v4.VsWarning},mixins:[cookieCheckerMixin],props:{noCookiesRequired:{type:Boolean,default:!1},noCookieText:{type:String,required:!0},errorText:{type:String,required:!0},noJsText:{type:String,required:!0}},data(){return{requiredCookies:this.noCookiesRequired?null:cookieValues$3}},computed:{showError(){return this.noCookiesRequired?!1:!this.requiredCookiesExist&&this.cookiesInitStatus===!0||this.cookiesInitStatus==="error"},warningText(){let e="";return this.cookiesInitStatus==="error"&&(e=this.errorText),!this.requiredCookiesExist&&this.cookiesInitStatus===!0&&(e=this.noCookieText),e}}},_hoisted_1$14={"data-test":"vs-embed-wrapper",class:"vs-embed-wrapper"},_hoisted_2$G={key:"fallback"};function _sfc_render$1e(e,r,t,n,o,a){const s=vue.resolveComponent("VsRichTextWrapper"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsWarning"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$14,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",sm:"10","offset-sm":"1",md:"6","offset-md":"3"},{default:vue.withCtx(()=>[e.$slots["embed-intro-copy"]&&e.$slots["embed-intro-copy"]()&&!a.showError?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-module-wrapper__intro vs-embed-wrapper__intro","data-test":"vs-module-wrapper__intro"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-intro-copy")]),_:3})):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(i,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-embed-wrapper__container",e.requiredCookiesExist||t.noCookiesRequired?"":"d-none"]),key:"embeddedContent"},[vue.renderSlot(e.$slots,"embed-widget")],2),a.showError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$G,[vue.createVNode(l,{type:e.cookiesInitStatus===!0?"cookie":"normal",class:"vs-embed-wrapper__error","data-test":"vs-embed-wrapper__error"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.warningText)+" ",1)]),_:2},[!e.requiredCookiesExist&&e.cookiesInitStatus===!0?{name:"button-text",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-button-text")]),key:"0"}:void 0]),1032,["type"])])):vue.createCommentVNode("",!0),vue.createVNode(l,{type:"normal","data-test":"vs-embed-wrapper__error--no-js",class:"vs-embed-wrapper__error vs-embed-wrapper__error--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsText),1)]),_:1})]),_:3})]),_:3})]),_:3})])}const EmbedWrapper=v4._export_sfc(_sfc_main$1l,[["render",_sfc_render$1e]]);function createHydrationCleanup(){let e=[];return{cleanup:()=>{e=e.filter(n=>(n(),!1))},onCleanup:n=>{e.push(n)}}}function createHydrationPromise(e){let r=()=>{};const t=new Promise(o=>{r=()=>{e(),o()}});return{promise:t,resolvePromise:r,onResolvedPromise:o=>{t.then(o)}}}function trackDepsOnRender(e){const r=e.effect.fn,t=e.render;e.render=(...n)=>{e.effect.fn=()=>t(...n);const o=e.effect.run();return e.effect.fn=r,e.render=t,o}}const isFunction=e=>typeof e=="function",isObject=e=>e!==null&&typeof e=="object";function traverseChildren(e,r){if(vue.isVNode(e)&&(r(e),e.children!==null)){if(Array.isArray(e.children)){e.children.forEach(t=>traverseChildren(t,r));return}isObject(e.children)&&Object.keys(e.children).forEach(t=>{if(!isFunction(e.children[t]))return;const n=e.children[t]();if(Array.isArray(n)){n.forEach(o=>traverseChildren(o,r));return}traverseChildren(n,r)})}}function isAsyncWrapper(e){var r,t;return((r=e.type)==null?void 0:r.__asyncLoader)&&((t=e.type)==null?void 0:t.name)==="AsyncComponentWrapper"}function waitForAsyncComponents({subTree:e},r){const t=[];if(traverseChildren(e,n=>{isAsyncWrapper(n)&&t.push(n.type.__asyncLoader())}),t.length>0){Promise.all(t).then(r);return}r()}function ensureParentHasSubTreeEl(e){if(!e||!e.subTree)return;const r=e.subTree.el,t=e.u;e.u===null&&(e.u=[]),e.u.push(()=>{e.subTree.el===null&&(e.subTree.el=r),e.u=t})}function useLazyHydration(){const e=vue.getCurrentInstance();if(!e||e.isMounted)throw new Error("useLazyHydration must be called from the setup method.");const r=e.vnode.el!==null;if(e.vnode.type.__isLazilyHydrated=!0,!r)return{willPerformHydration:r,onHydrated:()=>{}};const{cleanup:t,onCleanup:n}=createHydrationCleanup(),{promise:o,resolvePromise:a,onResolvedPromise:s}=createHydrationPromise(t),i=l=>s(()=>vue.nextTick(()=>waitForAsyncComponents(e,l)));return e.type.__asyncLoader=()=>o,ensureParentHasSubTreeEl(e.parent),vue.onBeforeMount(()=>{e.asyncDep=new Promise(l=>{l(!0)})}),s(()=>{trackDepsOnRender(e),e.asyncDep=null}),vue.onUnmounted(t),{willPerformHydration:r,hydrate:a,onHydrated:i,onCleanup:n}}function useHydrateWhenIdle({willPerformHydration:e,hydrate:r,onCleanup:t},n=2e3){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenIdle must be called from the setup or lifecycle hook methods.");if(!("requestIdleCallback"in window)){r();return}const o=requestIdleCallback(()=>{r()},{timeout:n});t(()=>{cancelIdleCallback(o)})}const DOMNodeTypes={ELEMENT:1,TEXT:3,COMMENT:8},isElement=e=>e&&e.nodeType===DOMNodeTypes.ELEMENT,isComment=e=>e&&e.nodeType===DOMNodeTypes.COMMENT,isFragmentStart=e=>isComment(e)&&(e==null?void 0:e.data)==="[",isFragmentEnd=e=>isComment(e)&&(e==null?void 0:e.data)==="]";function getRootElements({vnode:e,subTree:r}){if(!e||e.el===null)return[];if(isElement(e.el))return[e.el];const t=[];if(r&&isFragmentStart(r.el)&&isFragmentEnd(r.anchor)){let n=e.el.nextSibling;for(;n;){if(n&&isElement(n)&&t.push(n),n===r.anchor)return t;n=n.nextSibling}}return t}function useHydrateOnInteraction({willPerformHydration:e,hydrate:r,onCleanup:t},n=["focus"]){if(!e)return;const o=vue.getCurrentInstance();if(!o||o.isMounted)throw new Error("useHydrateOnInteraction must be called from the setup method.");const a=vue.unref(n);vue.onMounted(()=>{const s=getRootElements(o),i=s.length>1?s[0].parentElement||document:s[0],l={capture:!0,once:!1,passive:!0},u=c=>{c.stopPropagation();const d=c.composedPath&&c.composedPath()||c.path;if(!d){let p=c.target;for(;p;){if(s.includes(p)){r();return}if(p===i)return;p=p.parentElement}return}s.forEach(p=>{d.includes(p)&&r()})};a.forEach(c=>{i.addEventListener(c,u,l)}),t(()=>{a.forEach(c=>{i.removeEventListener(c,u,l)})})})}function useHydrateWhenTriggered({willPerformHydration:e,hydrate:r,onCleanup:t},n){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenTriggered must be called from the setup or lifecycle hook methods.");const o=vue.watch(vue.isRef(n)?n:()=>n,a=>{a&&r()},{immediate:!0});t(o)}const observers=new Map;function createHydrationObserver(e){const r=typeof IntersectionObserver<"u";if(!r)return{supported:r};const t=JSON.stringify(e);if(observers.has(t))return{supported:r,observer:observers.get(t)};const n=new IntersectionObserver(o=>{o.forEach(a=>{!(a.isIntersecting||a.intersectionRatio>0)||!a.target.hydrate||a.target.hydrate()})},e);return observers.set(t,n),{supported:r,observer:n}}function useHydrateWhenVisible({willPerformHydration:e,hydrate:r,onCleanup:t},n){if(!e)return;const o=vue.getCurrentInstance();if(!o||o.isMounted)throw new Error("useHydrateWhenVisible must be called from the setup method.");const{supported:a,observer:s}=createHydrationObserver(n);if(!a){r();return}vue.onMounted(()=>{const i=getRootElements(o);i.forEach(l=>{l.hydrate=r,s.observe(l)}),t(()=>{i.forEach(l=>{delete l.hydrate,s.unobserve(l)})})})}const normalizeSlot=e=>e.length===1?e[0]:e,LazyHydrationWrapper=vue.defineComponent({name:"LazyHydrationWrapper",inheritAttrs:!1,suspensible:!1,props:{whenIdle:{default:!1,type:[Boolean,Number]},whenVisible:{default:!1,type:[Boolean,Object]},onInteraction:{default:!1,type:[Array,Boolean,String]},whenTriggered:{default:void 0,type:[Boolean,Object]}},emits:["hydrated"],setup(e,{slots:r,emit:t}){const n=useLazyHydration();if(!n.willPerformHydration)return()=>normalizeSlot(r.default());if(n.onHydrated(()=>t("hydrated")),e.whenIdle&&useHydrateWhenIdle(n,e.whenIdle!==!0?e.whenIdle:void 0),e.whenVisible&&useHydrateWhenVisible(n,e.whenVisible!==!0?e.whenVisible:void 0),e.onInteraction){let o;e.onInteraction!==!0&&(o=vue.computed(()=>Array.isArray(e.onInteraction)?e.onInteraction:[e.onInteraction]).value),useHydrateOnInteraction(n,o)}return e.whenTriggered!==void 0&&useHydrateWhenTriggered(n,vue.toRef(e,"whenTriggered")),()=>normalizeSlot(r.default())}}),LazyHydrationWrapper$1=vue.markRaw(LazyHydrationWrapper),_sfc_main$1k={name:"VsFooterNavList",status:"prototype",release:"0.0.1",components:{VsAccordion,VsRow:v4.VsRow,VsContainer:v4.VsContainer,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$13={class:"vs-footer-nav-list"};function _sfc_render$1d(e,r,t,n,o,a){const s=vue.resolveComponent("VsRow"),i=vue.resolveComponent("VsAccordion"),l=vue.resolveComponent("LazyHydrationWrapper"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createBlock(u,{class:"vs-footer-nav-list","data-test":"vs-footer-nav-list"},{default:vue.withCtx(()=>[vue.createVNode(l,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$13,[vue.createVNode(i,{"break-point":t.breakPoint},{default:vue.withCtx(()=>[vue.createVNode(s,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["break-point"])])]),_:3})]),_:3})}const VsFooterNavList=v4._export_sfc(_sfc_main$1k,[["render",_sfc_render$1d]]),_sfc_main$1j={name:"VsFooter",status:"prototype",release:"0.1.0",components:{VsFooterNavList,VsCol:v4.VsCol,VsContainer:v4.VsContainer,VsRow:v4.VsRow}},_hoisted_1$12={class:"vs-footer pt-6 pt-md-9","data-unique-id":"vs-footer",id:"site-footer"},_hoisted_2$F={class:"vs-footer__social-menu-wrapper"};function _sfc_render$1c(e,r,t,n,o,a){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsFooterNavList"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("footer",_hoisted_1$12,[vue.createVNode(i,{"break-point":"md"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"accordion-items"),vue.createVNode(s,{cols:"12",lg:"3",xl:"2",class:"d-none d-lg-block","data-unique-id":"vs-footer-social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$F,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",class:"d-block d-lg-none","data-unique-id":"vs-footer-mobile_social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3})]),_:3})]),vue.renderSlot(e.$slots,"default")])}const Footer=v4._export_sfc(_sfc_main$1j,[["render",_sfc_render$1c]]),_sfc_main$1i={name:"VsFooterAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionItem},props:{controlId:{type:String,required:!0},itemBreakPoint:{type:String,default:e=>e.breakPoint,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},title:{type:String,required:!0},variant:{type:String,default:"primary"}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-footer-${e}`}}};function _sfc_render$1b(e,r,t,n,o,a){const s=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(s,{class:"vs-footer-accordion-item mb-md-6","data-test":"vs-footer-accordion-item","data-unique-id":a.getUniqueId,"control-id":t.controlId,"item-break-point":t.itemBreakPoint,"open-by-default":t.openByDefault,variant:t.variant},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open")]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed")]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["data-unique-id","control-id","item-break-point","open-by-default","variant"])}const FooterAccordionItem=v4._export_sfc(_sfc_main$1i,[["render",_sfc_render$1b]]),_sfc_main$1h={name:"VsFooterNavListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download)/)},linkText:{type:String,default:""}}},_hoisted_1$11={class:"vs-footer-nav-list-item","data-test":"vs-footer-nav-list-item",role:"menuitem"};function _sfc_render$1a(e,r,t,n,o,a){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$11,[vue.createVNode(s,{href:t.href,type:t.type,variant:"on-dark","data-test":"vs-footer-nav-list-item__link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.linkText),1)]),_:1},8,["href","type"])])}const FooterNavListItem=v4._export_sfc(_sfc_main$1h,[["render",_sfc_render$1a]]),_sfc_main$1g={name:"VsList",status:"prototype",release:"0.0.1",props:{ordered:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}}};function _sfc_render$19(e,r,t,n,o,a){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(t.ordered?"ol":"ul"),vue.mergeProps({class:["vs-list",{"vs-list--unstyled":t.unstyled,"vs-list--inline":t.inline,"vs-list--ordered":t.ordered}]},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["class"])}const VsList=v4._export_sfc(_sfc_main$1g,[["render",_sfc_render$19]]),_sfc_main$1f={name:"VsFooterSocialMenu",status:"prototype",release:"0.0.1",components:{VsList,VsHeading:v4.VsHeading}},_hoisted_1$10={class:"vs-footer-social-menu px-0 py-6 py-md-8 py-lg-0 px-lg-3","data-test":"vs-footer-social-menu"};function _sfc_render$18(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$10,[vue.createVNode(s,{level:"2","override-style-level":"6",class:"vs-footer-social-menu__title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3}),vue.createVNode(i,{unstyled:"",class:"mt-5 mt-md-0 mt-lg-5 pe-lg-10 pe-xl-9"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})])}const FooterSocialMenu=v4._export_sfc(_sfc_main$1f,[["render",_sfc_render$18]]),_sfc_main$1e={name:"VsFooterSocialItem",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon:v4.VsIcon},mixins:[v4.dataLayerMixin],props:{href:{type:String,required:!0},icon:{type:String,required:!0,validator:e=>e.match(/(facebook|instagram|x-twitter|youtube|linkedin)/)}}},_hoisted_1$$={class:"vs-footer-social-item","data-test":"vs-footer-social-item"};function _sfc_render$17(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$$,[vue.createVNode(i,{"data-test":"vs-footer-social-item__link",href:t.href,type:"external",class:vue.normalizeClass(t.icon),"aria-label":t.icon,"data-layer-value":"socialMediaExternalLinkDataEvent"},{default:vue.withCtx(()=>[vue.createVNode(s,{name:t.icon,variant:"inverse",size:"sm"},null,8,["name"])]),_:1},8,["href","class","aria-label"])])}const FooterSocialItem=v4._export_sfc(_sfc_main$1e,[["render",_sfc_render$17]]),_sfc_main$1d={name:"VsFooterUtilityList",status:"prototype",release:"0.0.1",components:{VsList,VsRow:v4.VsRow,VsContainer:v4.VsContainer,VsCol:v4.VsCol}},_hoisted_1$_={class:"vs-footer-utility-list","data-test":"vs-footer-utility-list","data-unique-id":"vs-footer-utility_links"};function _sfc_render$16(e,r,t,n,o,a){const s=vue.resolveComponent("VsList"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$_,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",sm:"7",md:"12"},{default:vue.withCtx(()=>[vue.createVNode(s,{unstyled:"",role:"menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3})])}const FooterUtilityList=v4._export_sfc(_sfc_main$1d,[["render",_sfc_render$16]]);function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var dist$3={exports:{}},interopRequireDefault={exports:{}};(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,_extends$1={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(e){function r(){return e.exports=r=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(this,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(_extends$1)),_extends$1.exports}var objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(e){function r(t,n){if(t==null)return{};var o={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(n.indexOf(a)>=0)continue;o[a]=t[a]}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var path$2={exports:{}},util$3={},isBufferBrowser$1,hasRequiredIsBufferBrowser$1;function requireIsBufferBrowser$1(){return hasRequiredIsBufferBrowser$1||(hasRequiredIsBufferBrowser$1=1,isBufferBrowser$1=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}),isBufferBrowser$1}var inherits_browser$1={exports:{}},hasRequiredInherits_browser$1;function requireInherits_browser$1(){return hasRequiredInherits_browser$1||(hasRequiredInherits_browser$1=1,typeof Object.create=="function"?inherits_browser$1.exports=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:inherits_browser$1.exports=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}),inherits_browser$1.exports}var hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,function(e){var r={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"},t=/%[sdj%]/g;e.format=function(k){if(!b(k)){for(var A=[],D=0;D<arguments.length;D++)A.push(a(arguments[D]));return A.join(" ")}for(var D=1,U=arguments,q=U.length,w=String(k).replace(t,function(O){if(O==="%%")return"%";if(D>=q)return O;switch(O){case"%s":return String(U[D++]);case"%d":return Number(U[D++]);case"%j":try{return JSON.stringify(U[D++])}catch{return"[Circular]"}default:return O}}),P=U[D];D<q;P=U[++D])g(P)||!V(P)?w+=" "+P:w+=" "+a(P);return w},e.deprecate=function(k,A){if(E(v4.commonjsGlobal.process))return function(){return e.deprecate(k,A).apply(this,arguments)};if(process.noDeprecation===!0)return k;var D=!1;function U(){if(!D){if(process.throwDeprecation)throw new Error(A);process.traceDeprecation?console.trace(A):console.error(A),D=!0}return k.apply(this,arguments)}return U};var n={},o;e.debuglog=function(k){if(E(o)&&(o=r.NODE_DEBUG||""),k=k.toUpperCase(),!n[k])if(new RegExp("\\b"+k+"\\b","i").test(o)){var A=process.pid;n[k]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",k,A,D)}}else n[k]=function(){};return n[k]};function a(k,A){var D={seen:[],stylize:i};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),h(A)?D.showHidden=A:A&&e._extend(D,A),E(D.showHidden)&&(D.showHidden=!1),E(D.depth)&&(D.depth=2),E(D.colors)&&(D.colors=!1),E(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=s),u(D,k,D.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(k,A){var D=a.styles[A];return D?"\x1B["+a.colors[D][0]+"m"+k+"\x1B["+a.colors[D][1]+"m":k}function i(k,A){return k}function l(k){var A={};return k.forEach(function(D,U){A[D]=!0}),A}function u(k,A,D){if(k.customInspect&&A&&I(A.inspect)&&A.inspect!==e.inspect&&!(A.constructor&&A.constructor.prototype===A)){var U=A.inspect(D,k);return b(U)||(U=u(k,U,D)),U}var q=c(k,A);if(q)return q;var w=Object.keys(A),P=l(w);if(k.showHidden&&(w=Object.getOwnPropertyNames(A)),B(A)&&(w.indexOf("message")>=0||w.indexOf("description")>=0))return d(A);if(w.length===0){if(I(A)){var O=A.name?": "+A.name:"";return k.stylize("[Function"+O+"]","special")}if(N(A))return k.stylize(RegExp.prototype.toString.call(A),"regexp");if(L(A))return k.stylize(Date.prototype.toString.call(A),"date");if(B(A))return d(A)}var F="",M=!1,G=["{","}"];if(v(A)&&(M=!0,G=["[","]"]),I(A)){var j=A.name?": "+A.name:"";F=" [Function"+j+"]"}if(N(A)&&(F=" "+RegExp.prototype.toString.call(A)),L(A)&&(F=" "+Date.prototype.toUTCString.call(A)),B(A)&&(F=" "+d(A)),w.length===0&&(!M||A.length==0))return G[0]+F+G[1];if(D<0)return N(A)?k.stylize(RegExp.prototype.toString.call(A),"regexp"):k.stylize("[Object]","special");k.seen.push(A);var W;return M?W=p(k,A,D,P,w):W=w.map(function(z){return f(k,A,D,P,z,M)}),k.seen.pop(),m(W,F,G)}function c(k,A){if(E(A))return k.stylize("undefined","undefined");if(b(A)){var D="'"+JSON.stringify(A).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return k.stylize(D,"string")}if(C(A))return k.stylize(""+A,"number");if(h(A))return k.stylize(""+A,"boolean");if(g(A))return k.stylize("null","null")}function d(k){return"["+Error.prototype.toString.call(k)+"]"}function p(k,A,D,U,q){for(var w=[],P=0,O=A.length;P<O;++P)J(A,String(P))?w.push(f(k,A,D,U,String(P),!0)):w.push("");return q.forEach(function(F){F.match(/^\d+$/)||w.push(f(k,A,D,U,F,!0))}),w}function f(k,A,D,U,q,w){var P,O,F;if(F=Object.getOwnPropertyDescriptor(A,q)||{value:A[q]},F.get?F.set?O=k.stylize("[Getter/Setter]","special"):O=k.stylize("[Getter]","special"):F.set&&(O=k.stylize("[Setter]","special")),J(U,q)||(P="["+q+"]"),O||(k.seen.indexOf(F.value)<0?(g(D)?O=u(k,F.value,null):O=u(k,F.value,D-1),O.indexOf(`
|
|
151
|
+
`)>-1&&(w?O=O.split(`
|
|
152
|
+
`).map(function(M){return" "+M}).join(`
|
|
153
|
+
`).substr(2):O=`
|
|
154
|
+
`+O.split(`
|
|
155
|
+
`).map(function(M){return" "+M}).join(`
|
|
156
|
+
`))):O=k.stylize("[Circular]","special")),E(P)){if(w&&q.match(/^\d+$/))return O;P=JSON.stringify(""+q),P.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(P=P.substr(1,P.length-2),P=k.stylize(P,"name")):(P=P.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),P=k.stylize(P,"string"))}return P+": "+O}function m(k,A,D){var U=k.reduce(function(q,w){return w.indexOf(`
|
|
157
|
+
`)>=0,q+w.replace(/\u001b\[\d\d?m/g,"").length+1},0);return U>60?D[0]+(A===""?"":A+`
|
|
158
|
+
`)+" "+k.join(`,
|
|
159
|
+
`)+" "+D[1]:D[0]+A+" "+k.join(", ")+" "+D[1]}function v(k){return Array.isArray(k)}e.isArray=v;function h(k){return typeof k=="boolean"}e.isBoolean=h;function g(k){return k===null}e.isNull=g;function _(k){return k==null}e.isNullOrUndefined=_;function C(k){return typeof k=="number"}e.isNumber=C;function b(k){return typeof k=="string"}e.isString=b;function S(k){return typeof k=="symbol"}e.isSymbol=S;function E(k){return k===void 0}e.isUndefined=E;function N(k){return V(k)&&T(k)==="[object RegExp]"}e.isRegExp=N;function V(k){return typeof k=="object"&&k!==null}e.isObject=V;function L(k){return V(k)&&T(k)==="[object Date]"}e.isDate=L;function B(k){return V(k)&&(T(k)==="[object Error]"||k instanceof Error)}e.isError=B;function I(k){return typeof k=="function"}e.isFunction=I;function H(k){return k===null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||typeof k=="symbol"||typeof k>"u"}e.isPrimitive=H,e.isBuffer=requireIsBufferBrowser$1();function T(k){return Object.prototype.toString.call(k)}function R(k){return k<10?"0"+k.toString(10):k.toString(10)}var X=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var k=new Date,A=[R(k.getHours()),R(k.getMinutes()),R(k.getSeconds())].join(":");return[k.getDate(),X[k.getMonth()],A].join(" ")}e.log=function(){console.log("%s - %s",Y(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser$1(),e._extend=function(k,A){if(!A||!V(A))return k;for(var D=Object.keys(A),U=D.length;U--;)k[D[U]]=A[D[U]];return k};function J(k,A){return Object.prototype.hasOwnProperty.call(k,A)}}(util$3)),util$3}var hasRequiredPath;function requirePath(){if(hasRequiredPath)return path$2.exports;hasRequiredPath=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"},r=requireUtil$1();function t(f,m){for(var v=[],h=0;h<f.length;h++){var g=f[h];!g||g==="."||(g===".."?v.length&&v[v.length-1]!==".."?v.pop():m&&v.push(".."):v.push(g))}return v}function n(f){for(var m=f.length-1,v=0;v<=m&&!f[v];v++);for(var h=m;h>=0&&!f[h];h--);return v===0&&h===m?f:v>h?[]:f.slice(v,h+1)}var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,s={};function i(f){var m=o.exec(f),v=(m[1]||"")+(m[2]||""),h=m[3]||"",g=a.exec(h),_=g[1],C=g[2],b=g[3];return[v,_,C,b]}function l(f){var m=o.exec(f),v=m[1]||"",h=!!v&&v[1]!==":";return{device:v,isUnc:h,isAbsolute:h||!!m[2],tail:m[3]}}function u(f){return"\\\\"+f.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}s.resolve=function(){for(var f="",m="",v=!1,h=arguments.length-1;h>=-1;h--){var g;if(h>=0?g=arguments[h]:f?(g=e["="+f],(!g||g.substr(0,3).toLowerCase()!==f.toLowerCase()+"\\")&&(g=f+"\\")):g=process.cwd(),r.isString(g)){if(!g)continue}else throw new TypeError("Arguments to path.resolve must be strings");var _=l(g),C=_.device,b=_.isUnc,S=_.isAbsolute,E=_.tail;if(!(C&&f&&C.toLowerCase()!==f.toLowerCase())&&(f||(f=C),v||(m=E+"\\"+m,v=S),f&&v))break}return b&&(f=u(f)),m=t(m.split(/[\\\/]+/),!v).join("\\"),f+(v?"\\":"")+m||"."},s.normalize=function(f){var m=l(f),v=m.device,h=m.isUnc,g=m.isAbsolute,_=m.tail,C=/[\\\/]$/.test(_);return _=t(_.split(/[\\\/]+/),!g).join("\\"),!_&&!g&&(_="."),_&&C&&(_+="\\"),h&&(v=u(v)),v+(g?"\\":"")+_},s.isAbsolute=function(f){return l(f).isAbsolute},s.join=function(){for(var f=[],m=0;m<arguments.length;m++){var v=arguments[m];if(!r.isString(v))throw new TypeError("Arguments to path.join must be strings");v&&f.push(v)}var h=f.join("\\");return/^[\\\/]{2}[^\\\/]/.test(f[0])||(h=h.replace(/^[\\\/]{2,}/,"\\")),s.normalize(h)},s.relative=function(f,m){f=s.resolve(f),m=s.resolve(m);for(var v=f.toLowerCase(),h=m.toLowerCase(),g=n(m.split("\\")),_=n(v.split("\\")),C=n(h.split("\\")),b=Math.min(_.length,C.length),S=b,E=0;E<b;E++)if(_[E]!==C[E]){S=E;break}if(S==0)return m;for(var N=[],E=S;E<_.length;E++)N.push("..");return N=N.concat(g.slice(S)),N.join("\\")},s._makeLong=function(f){if(!r.isString(f))return f;if(!f)return"";var m=s.resolve(f);return/^[a-zA-Z]\:\\/.test(m)?"\\\\?\\"+m:/^\\\\[^?.]/.test(m)?"\\\\?\\UNC\\"+m.substring(2):f},s.dirname=function(f){var m=i(f),v=m[0],h=m[1];return!v&&!h?".":(h&&(h=h.substr(0,h.length-1)),v+h)},s.basename=function(f,m){var v=i(f)[2];return m&&v.substr(-1*m.length)===m&&(v=v.substr(0,v.length-m.length)),v},s.extname=function(f){return i(f)[3]},s.format=function(f){if(!r.isObject(f))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof f);var m=f.root||"";if(!r.isString(m))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof f.root);var v=f.dir,h=f.base||"";return v?v[v.length-1]===s.sep?v+h:v+s.sep+h:h},s.parse=function(f){if(!r.isString(f))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof f);var m=i(f);if(!m||m.length!==4)throw new TypeError("Invalid path '"+f+"'");return{root:m[0],dir:m[0]+m[1].slice(0,-1),base:m[2],ext:m[3],name:m[2].slice(0,m[2].length-m[3].length)}},s.sep="\\",s.delimiter=";";var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,d={};function p(f){return c.exec(f).slice(1)}return d.resolve=function(){for(var f="",m=!1,v=arguments.length-1;v>=-1&&!m;v--){var h=v>=0?arguments[v]:process.cwd();if(r.isString(h)){if(!h)continue}else throw new TypeError("Arguments to path.resolve must be strings");f=h+"/"+f,m=h[0]==="/"}return f=t(f.split("/"),!m).join("/"),(m?"/":"")+f||"."},d.normalize=function(f){var m=d.isAbsolute(f),v=f&&f[f.length-1]==="/";return f=t(f.split("/"),!m).join("/"),!f&&!m&&(f="."),f&&v&&(f+="/"),(m?"/":"")+f},d.isAbsolute=function(f){return f.charAt(0)==="/"},d.join=function(){for(var f="",m=0;m<arguments.length;m++){var v=arguments[m];if(!r.isString(v))throw new TypeError("Arguments to path.join must be strings");v&&(f?f+="/"+v:f+=v)}return d.normalize(f)},d.relative=function(f,m){f=d.resolve(f).substr(1),m=d.resolve(m).substr(1);for(var v=n(f.split("/")),h=n(m.split("/")),g=Math.min(v.length,h.length),_=g,C=0;C<g;C++)if(v[C]!==h[C]){_=C;break}for(var b=[],C=_;C<v.length;C++)b.push("..");return b=b.concat(h.slice(_)),b.join("/")},d._makeLong=function(f){return f},d.dirname=function(f){var m=p(f),v=m[0],h=m[1];return!v&&!h?".":(h&&(h=h.substr(0,h.length-1)),v+h)},d.basename=function(f,m){var v=p(f)[2];return m&&v.substr(-1*m.length)===m&&(v=v.substr(0,v.length-m.length)),v},d.extname=function(f){return p(f)[3]},d.format=function(f){if(!r.isObject(f))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof f);var m=f.root||"";if(!r.isString(m))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof f.root);var v=f.dir?f.dir+d.sep:"",h=f.base||"";return v+h},d.parse=function(f){if(!r.isString(f))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof f);var m=p(f);if(!m||m.length!==4)throw new TypeError("Invalid path '"+f+"'");return m[1]=m[1]||"",m[2]=m[2]||"",m[3]=m[3]||"",{root:m[0],dir:m[0]+m[1].slice(0,-1),base:m[2],ext:m[3],name:m[2].slice(0,m[2].length-m[3].length)}},d.sep="/",d.delimiter=":",path$2.exports=s,path$2.exports.posix=d,path$2.exports.win32=s,path$2.exports}var homedir,hasRequiredHomedir;function requireHomedir(){if(hasRequiredHomedir)return homedir;hasRequiredHomedir=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"},r=v4.require$$0;return homedir=r.homedir||function(){return e.USERPROFILE},homedir}var caller,hasRequiredCaller;function requireCaller(){return hasRequiredCaller||(hasRequiredCaller=1,caller=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,n){return n};var r=new Error().stack;return Error.prepareStackTrace=e,r[2].getFileName()}),caller}var pathParse={exports:{}},hasRequiredPathParse;function requirePathParse(){if(hasRequiredPathParse)return pathParse.exports;hasRequiredPathParse=1;var e=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,r={};function t(s){return e.exec(s).slice(1)}r.parse=function(s){if(typeof s!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof s);var i=t(s);if(!i||i.length!==5)throw new TypeError("Invalid path '"+s+"'");return{root:i[1],dir:i[0]===i[1]?i[0]:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}};var n=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,o={};function a(s){return n.exec(s).slice(1)}return o.parse=function(s){if(typeof s!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof s);var i=a(s);if(!i||i.length!==5)throw new TypeError("Invalid path '"+s+"'");return{root:i[1],dir:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}},pathParse.exports=r.parse,pathParse.exports.posix=o.parse,pathParse.exports.win32=r.parse,pathParse.exports}var nodeModulesPaths,hasRequiredNodeModulesPaths;function requireNodeModulesPaths(){if(hasRequiredNodeModulesPaths)return nodeModulesPaths;hasRequiredNodeModulesPaths=1;var e=requirePath(),r=e.parse||requirePathParse(),t=function(o,a){var s="/";/^([A-Za-z]:)/.test(o)?s="":/^\\\\/.test(o)&&(s="\\\\");for(var i=[o],l=r(o);l.dir!==i[i.length-1];)i.push(l.dir),l=r(l.dir);return i.reduce(function(u,c){return u.concat(a.map(function(d){return e.resolve(s,c,d)}))},[])};return nodeModulesPaths=function(o,a,s){var i=a&&a.moduleDirectory?[].concat(a.moduleDirectory):["node_modules"];if(a&&typeof a.paths=="function")return a.paths(s,o,function(){return t(o,i)},a);var l=t(o,i);return a&&a.paths?l.concat(a.paths):l},nodeModulesPaths}var normalizeOptions,hasRequiredNormalizeOptions;function requireNormalizeOptions(){if(hasRequiredNormalizeOptions)return normalizeOptions;hasRequiredNormalizeOptions=1;var e={node:"18.20.2",acorn:"8.10.0",ada:"2.7.6",ares:"1.27.0",base64:"0.5.2",brotli:"1.0.9",cjs_module_lexer:"1.2.2",cldr:"44.1",icu:"74.2",llhttp:"6.1.1",modules:"108",napi:"9",nghttp2:"1.57.0",nghttp3:"0.7.0",ngtcp2:"0.8.1",openssl:"3.0.13+quic",simdutf:"4.0.8",tz:"2024a",undici:"5.28.4",unicode:"15.1",uv:"1.44.2",uvwasi:"0.0.19",v8:"10.2.154.26-node.36",zlib:"1.3.0.1-motley"};const r=requirePath();return normalizeOptions=function(t,n){if(n=n||{},n.forceNodeResolution||!e.pnp)return n;const{findPnpApi:o}=v4.require$$0,a=(d,p)=>{const f=d.match(/^((?:@[^/]+\/)?[^/]+)(\/.*)?/);if(!f)throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${d}")`);p.charAt(p.length-1)!=="/"&&(p=r.join(p,"/"));const m=o(p);if(m===null)return;let v;try{v=m.resolveToUnqualified(`${f[1]}/package.json`,p,{considerBuiltins:!1})}catch{return null}if(v===null)throw new Error(`Assertion failed: The resolution thinks that "${f[1]}" is a Node builtin`);const h=r.dirname(v),g=typeof f[2]<"u"?r.join(h,f[2]):h;return{packagePath:h,unqualifiedPath:g}},s=(d,p)=>{for(let f=0;f<p.length;f++){const m=a(d,p[f]);if(m||f===p.length-1)return m}return null},i=Array.isArray(n.paths)?n.paths:[],l=(d,p,f,m)=>{const v=[p].concat(i),h=s(d,v);return h==null?f():[h.unqualifiedPath]},u=(d,p,f,m)=>{const v=[p].concat(i),h=s(d,v);if(h==null)return f().concat(i);let g=r.dirname(h.packagePath);return d.match(/^@[^/]+\//)&&(g=r.dirname(g)),[g]};let c=!1;return n.__skipPackageIterator||(n.packageIterator=function(d,p,f,m){c=!0;try{return l(d,p,f,m)}finally{c=!1}}),n.paths=function(d,p,f,m){return c?f().concat(i):u(d,p,f)},n},normalizeOptions}const assert$1=!0,async_hooks$1=">= 8",buffer_ieee754$1=">= 0.5 && < 0.9.7",buffer$1=!0,child_process$1=!0,cluster$1=">= 0.5",console$2=!0,constants$1=!0,crypto$1=!0,_debug_agent$1=">= 1 && < 8",_debugger$1="< 8",dgram$1=!0,diagnostics_channel$1=[">= 14.17 && < 15",">= 15.1"],dns$1=!0,domain$1=">= 0.7.12",events$1=!0,freelist$1="< 6",fs$1=!0,_http_agent$1=">= 0.11.1",_http_client$1=">= 0.11.1",_http_common$1=">= 0.11.1",_http_incoming$1=">= 0.11.1",_http_outgoing$1=">= 0.11.1",_http_server$1=">= 0.11.1",http$1=!0,http2$1=">= 8.8",https$1=!0,inspector$1=">= 8",_linklist$1="< 8",module$2=!0,net$1=!0,os$1=!0,path$1=!0,perf_hooks$1=">= 8.5",process$2=">= 1",punycode$1=">= 0.5",querystring$1=!0,readline$1=!0,repl$1=!0,smalloc$1=">= 0.11.5 && < 3",_stream_duplex$1=">= 0.9.4",_stream_transform$1=">= 0.9.4",_stream_wrap$1=">= 1.4.1",_stream_passthrough$1=">= 0.9.4",_stream_readable$1=">= 0.9.4",_stream_writable$1=">= 0.9.4",stream$1=!0,string_decoder$1=!0,sys$1=[">= 0.4 && < 0.7",">= 0.8"],timers$1=!0,_tls_common$1=">= 0.11.13",_tls_legacy$1=">= 0.11.3 && < 10",_tls_wrap$1=">= 0.11.3",tls$1=!0,trace_events$1=">= 10",tty$1=!0,url$1=!0,util$2=!0,v8$1=">= 1",vm$1=!0,wasi$1=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads$1=">= 11.7",zlib$1=">= 0.5",require$$1$1={assert:assert$1,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:async_hooks$1,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:buffer_ieee754$1,buffer:buffer$1,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:child_process$1,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:cluster$1,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$2,"node:console":[">= 14.18 && < 15",">= 16"],constants:constants$1,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:crypto$1,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:_debug_agent$1,_debugger:_debugger$1,dgram:dgram$1,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:diagnostics_channel$1,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:dns$1,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:domain$1,"node:domain":[">= 14.18 && < 15",">= 16"],events:events$1,"node:events":[">= 14.18 && < 15",">= 16"],freelist:freelist$1,fs:fs$1,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:_http_agent$1,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:_http_client$1,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:_http_common$1,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:_http_incoming$1,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:_http_outgoing$1,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:_http_server$1,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:http$1,"node:http":[">= 14.18 && < 15",">= 16"],http2:http2$1,"node:http2":[">= 14.18 && < 15",">= 16"],https:https$1,"node:https":[">= 14.18 && < 15",">= 16"],inspector:inspector$1,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:_linklist$1,module:module$2,"node:module":[">= 14.18 && < 15",">= 16"],net:net$1,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:os$1,"node:os":[">= 14.18 && < 15",">= 16"],path:path$1,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:perf_hooks$1,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$2,"node:process":[">= 14.18 && < 15",">= 16"],punycode:punycode$1,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:querystring$1,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:readline$1,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:repl$1,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:smalloc$1,_stream_duplex:_stream_duplex$1,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:_stream_transform$1,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:_stream_wrap$1,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:_stream_passthrough$1,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:_stream_readable$1,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:_stream_writable$1,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:stream$1,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:string_decoder$1,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:sys$1,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:timers$1,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:_tls_common$1,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:_tls_legacy$1,_tls_wrap:_tls_wrap$1,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:tls$1,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:trace_events$1,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:tty$1,"node:tty":[">= 14.18 && < 15",">= 16"],url:url$1,"node:url":[">= 14.18 && < 15",">= 16"],util:util$2,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:v8$1,"node:v8":[">= 14.18 && < 15",">= 16"],vm:vm$1,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:wasi$1,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:worker_threads$1,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:zlib$1,"node:zlib":[">= 14.18 && < 15",">= 16"]};var isCoreModule,hasRequiredIsCoreModule;function requireIsCoreModule(){if(hasRequiredIsCoreModule)return isCoreModule;hasRequiredIsCoreModule=1;var e={node:"18.20.2",acorn:"8.10.0",ada:"2.7.6",ares:"1.27.0",base64:"0.5.2",brotli:"1.0.9",cjs_module_lexer:"1.2.2",cldr:"44.1",icu:"74.2",llhttp:"6.1.1",modules:"108",napi:"9",nghttp2:"1.57.0",nghttp3:"0.7.0",ngtcp2:"0.8.1",openssl:"3.0.13+quic",simdutf:"4.0.8",tz:"2024a",undici:"5.28.4",unicode:"15.1",uv:"1.44.2",uvwasi:"0.0.19",v8:"10.2.154.26-node.36",zlib:"1.3.0.1-motley"},r=v4.hasown;function t(s,i){for(var l=s.split("."),u=i.split(" "),c=u.length>1?u[0]:"=",d=(u.length>1?u[1]:u[0]).split("."),p=0;p<3;++p){var f=parseInt(l[p]||0,10),m=parseInt(d[p]||0,10);if(f!==m)return c==="<"?f<m:c===">="?f>=m:!1}return c===">="}function n(s,i){var l=i.split(/ ?&& ?/);if(l.length===0)return!1;for(var u=0;u<l.length;++u)if(!t(s,l[u]))return!1;return!0}function o(s,i){if(typeof i=="boolean")return i;var l=typeof s>"u"?e&&e.node:s;if(typeof l!="string")throw new TypeError(typeof s>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(i&&typeof i=="object"){for(var u=0;u<i.length;++u)if(n(l,i[u]))return!0;return!1}return n(l,i)}var a=require$$1$1;return isCoreModule=function(i,l){return r(a,i)&&o(l,a[i])},isCoreModule}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var e=v4.require$$0,r=requireHomedir(),t=requirePath(),n=requireCaller(),o=requireNodeModulesPaths(),a=requireNormalizeOptions(),s=requireIsCoreModule(),i=e.realpath,l=r(),u=function(){return[t.join(l,".node_modules"),t.join(l,".node_libraries")]},c=function(g,_){e.stat(g,function(C,b){return C?C.code==="ENOENT"||C.code==="ENOTDIR"?_(null,!1):_(C):_(null,b.isFile()||b.isFIFO())})},d=function(g,_){e.stat(g,function(C,b){return C?C.code==="ENOENT"||C.code==="ENOTDIR"?_(null,!1):_(C):_(null,b.isDirectory())})},p=function(g,_){i(g,function(C,b){C&&C.code!=="ENOENT"?_(C):_(null,C?g:b)})},f=function(g,_,C,b){C&&C.preserveSymlinks===!1?g(_,b):b(null,_)},m=function(g,_,C){g(_,function(b,S){if(b)C(b);else try{var E=JSON.parse(S);C(null,E)}catch{C(null)}})},v=function(g,_,C){for(var b=o(_,C,g),S=0;S<b.length;S++)b[S]=t.join(b[S],g);return b};return async=function(g,_,C){var b=C,S=_;if(typeof _=="function"&&(b=S,S={}),typeof g!="string"){var E=new TypeError("Path must be a string.");return process.nextTick(function(){b(E)})}S=a(g,S);var N=S.isFile||c,V=S.isDirectory||d,L=S.readFile||e.readFile,B=S.realpath||p,I=S.readPackage||m;if(S.readFile&&S.readPackage){var H=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){b(H)})}var T=S.packageIterator,R=S.extensions||[".js"],X=S.includeCoreModules!==!1,Y=S.basedir||t.dirname(n()),J=S.filename||Y;S.paths=S.paths||u();var k=t.resolve(Y);f(B,k,S,function(M,G){M?b(M):D(G)});var A;function D(M){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(g))A=t.resolve(M,g),(g==="."||g===".."||g.slice(-1)==="/")&&(A+="/"),/\/$/.test(g)&&A===M?P(A,S.package,U):q(A,S.package,U);else{if(X&&s(g))return b(null,g);F(g,M,function(G,j,W){if(G)b(G);else{if(j)return f(B,j,S,function(Z,Q){Z?b(Z):b(null,Q,W)});var z=new Error("Cannot find module '"+g+"' from '"+J+"'");z.code="MODULE_NOT_FOUND",b(z)}})}}function U(M,G,j){M?b(M):G?b(null,G,j):P(A,function(W,z,Z){if(W)b(W);else if(z)f(B,z,S,function(ee,te){ee?b(ee):b(null,te,Z)});else{var Q=new Error("Cannot find module '"+g+"' from '"+J+"'");Q.code="MODULE_NOT_FOUND",b(Q)}})}function q(M,G,j){var W=G,z=j;typeof W=="function"&&(z=W,W=void 0);var Z=[""].concat(R);Q(Z,M,W);function Q(ee,te,ne){if(ee.length===0)return z(null,void 0,ne);var ae=te+ee[0],oe=ne;oe?$(null,oe):w(t.dirname(ae),$);function $(se,ce,ie){if(oe=ce,se)return z(se);if(ie&&oe&&S.pathFilter){var pe=t.relative(ie,ae),fe=pe.slice(0,pe.length-ee[0].length),de=S.pathFilter(oe,te,fe);if(de)return Q([""].concat(R.slice()),t.resolve(ie,de),oe)}N(ae,ue)}function ue(se,ce){if(se)return z(se);if(ce)return z(null,ae,oe);Q(ee.slice(1),te,oe)}}}function w(M,G){if(M===""||M==="/"||/^\w:[/\\]*$/.test(M)||/[/\\]node_modules[/\\]*$/.test(M))return G(null);f(B,M,S,function(j,W){if(j)return w(t.dirname(M),G);var z=t.join(W,"package.json");N(z,function(Z,Q){if(!Q)return w(t.dirname(M),G);I(L,z,function(ee,te){ee&&G(ee);var ne=te;ne&&S.packageFilter&&(ne=S.packageFilter(ne,z)),G(null,ne,M)})})})}function P(M,G,j){var W=j,z=G;typeof z=="function"&&(W=z,z=S.package),f(B,M,S,function(Z,Q){if(Z)return W(Z);var ee=t.join(Q,"package.json");N(ee,function(te,ne){if(te)return W(te);if(!ne)return q(t.join(M,"index"),z,W);I(L,ee,function(ae,oe){if(ae)return W(ae);var $=oe;if($&&S.packageFilter&&($=S.packageFilter($,ee)),$&&$.main){if(typeof $.main!="string"){var ue=new TypeError("package “"+$.name+"” `main` must be a string");return ue.code="INVALID_PACKAGE_MAIN",W(ue)}($.main==="."||$.main==="./")&&($.main="index"),q(t.resolve(M,$.main),$,function(se,ce,ie){if(se)return W(se);if(ce)return W(null,ce,ie);if(!ie)return q(t.join(M,"index"),ie,W);var pe=t.resolve(M,ie.main);P(pe,ie,function(fe,de,me){if(fe)return W(fe);if(de)return W(null,de,me);q(t.join(M,"index"),me,W)})});return}q(t.join(M,"/index"),$,W)})})})}function O(M,G){if(G.length===0)return M(null,void 0);var j=G[0];V(t.dirname(j),W);function W(Q,ee){if(Q)return M(Q);if(!ee)return O(M,G.slice(1));q(j,S.package,z)}function z(Q,ee,te){if(Q)return M(Q);if(ee)return M(null,ee,te);P(j,S.package,Z)}function Z(Q,ee,te){if(Q)return M(Q);if(ee)return M(null,ee,te);O(M,G.slice(1))}}function F(M,G,j){var W=function(){return v(M,G,S)};O(j,T?T(M,G,W,S):W())}},async}const assert=!0,async_hooks=">= 8",buffer_ieee754=">= 0.5 && < 0.9.7",buffer=!0,child_process=!0,cluster=">= 0.5",console$1=!0,constants=!0,crypto=!0,_debug_agent=">= 1 && < 8",_debugger="< 8",dgram=!0,diagnostics_channel=[">= 14.17 && < 15",">= 15.1"],dns=!0,domain=">= 0.7.12",events=!0,freelist="< 6",fs=!0,_http_agent=">= 0.11.1",_http_client=">= 0.11.1",_http_common=">= 0.11.1",_http_incoming=">= 0.11.1",_http_outgoing=">= 0.11.1",_http_server=">= 0.11.1",http=!0,http2=">= 8.8",https=!0,inspector=">= 8",_linklist="< 8",module$1=!0,net=!0,os=!0,path=!0,perf_hooks=">= 8.5",process$1=">= 1",punycode=">= 0.5",querystring=!0,readline=!0,repl=!0,smalloc=">= 0.11.5 && < 3",_stream_duplex=">= 0.9.4",_stream_transform=">= 0.9.4",_stream_wrap=">= 1.4.1",_stream_passthrough=">= 0.9.4",_stream_readable=">= 0.9.4",_stream_writable=">= 0.9.4",stream=!0,string_decoder=!0,sys=[">= 0.4 && < 0.7",">= 0.8"],timers=!0,_tls_common=">= 0.11.13",_tls_legacy=">= 0.11.3 && < 10",_tls_wrap=">= 0.11.3",tls=!0,trace_events=">= 10",tty=!0,url=!0,util$1=!0,v8=">= 1",vm=!0,wasi=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads=">= 11.7",zlib=">= 0.5",require$$1={assert,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754,buffer,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$1,"node:console":[">= 14.18 && < 15",">= 16"],constants,"node:constants":[">= 14.18 && < 15",">= 16"],crypto,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent,_debugger,dgram,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain,"node:domain":[">= 14.18 && < 15",">= 16"],events,"node:events":[">= 14.18 && < 15",">= 16"],freelist,fs,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server,"node:_http_server":[">= 14.18 && < 15",">= 16"],http,"node:http":[">= 14.18 && < 15",">= 16"],http2,"node:http2":[">= 14.18 && < 15",">= 16"],https,"node:https":[">= 14.18 && < 15",">= 16"],inspector,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist,module:module$1,"node:module":[">= 14.18 && < 15",">= 16"],net,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os,"node:os":[">= 14.18 && < 15",">= 16"],path,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$1,"node:process":[">= 14.18 && < 15",">= 16"],punycode,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring,"node:querystring":[">= 14.18 && < 15",">= 16"],readline,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc,_stream_duplex,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy,_tls_wrap,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty,"node:tty":[">= 14.18 && < 15",">= 16"],url,"node:url":[">= 14.18 && < 15",">= 16"],util:util$1,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8,"node:v8":[">= 14.18 && < 15",">= 16"],vm,"node:vm":[">= 14.18 && < 15",">= 16"],wasi,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib,"node:zlib":[">= 14.18 && < 15",">= 16"]};var core_1,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core_1;hasRequiredCore=1;var e=requireIsCoreModule(),r=require$$1,t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=e(n));return core_1=t,core_1}var isCore,hasRequiredIsCore;function requireIsCore(){if(hasRequiredIsCore)return isCore;hasRequiredIsCore=1;var e=requireIsCoreModule();return isCore=function(t){return e(t)},isCore}var sync,hasRequiredSync;function requireSync(){if(hasRequiredSync)return sync;hasRequiredSync=1;var e=requireIsCoreModule(),r=v4.require$$0,t=requirePath(),n=requireHomedir(),o=requireCaller(),a=requireNodeModulesPaths(),s=requireNormalizeOptions(),i=r.realpathSync,l=n(),u=function(){return[t.join(l,".node_modules"),t.join(l,".node_libraries")]},c=function(g){try{var _=r.statSync(g,{throwIfNoEntry:!1})}catch(C){if(C&&(C.code==="ENOENT"||C.code==="ENOTDIR"))return!1;throw C}return!!_&&(_.isFile()||_.isFIFO())},d=function(g){try{var _=r.statSync(g,{throwIfNoEntry:!1})}catch(C){if(C&&(C.code==="ENOENT"||C.code==="ENOTDIR"))return!1;throw C}return!!_&&_.isDirectory()},p=function(g){try{return i(g)}catch(_){if(_.code!=="ENOENT")throw _}return g},f=function(g,_,C){return C&&C.preserveSymlinks===!1?g(_):_},m=function(g,_){var C=g(_);try{var b=JSON.parse(C);return b}catch{}},v=function(g,_,C){for(var b=a(_,C,g),S=0;S<b.length;S++)b[S]=t.join(b[S],g);return b};return sync=function(g,_){if(typeof g!="string")throw new TypeError("Path must be a string.");var C=s(g,_),b=C.isFile||c,S=C.readFileSync||r.readFileSync,E=C.isDirectory||d,N=C.realpathSync||p,V=C.readPackageSync||m;if(C.readFileSync&&C.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var L=C.packageIterator,B=C.extensions||[".js"],I=C.includeCoreModules!==!1,H=C.basedir||t.dirname(o()),T=C.filename||H;C.paths=C.paths||u();var R=f(N,t.resolve(H),C);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(g)){var X=t.resolve(R,g);(g==="."||g===".."||g.slice(-1)==="/")&&(X+="/");var Y=A(X)||U(X);if(Y)return f(N,Y,C)}else{if(I&&e(g))return g;var J=q(g,R);if(J)return f(N,J,C)}var k=new Error("Cannot find module '"+g+"' from '"+T+"'");throw k.code="MODULE_NOT_FOUND",k;function A(w){var P=D(t.dirname(w));if(P&&P.dir&&P.pkg&&C.pathFilter){var O=t.relative(P.dir,w),F=C.pathFilter(P.pkg,w,O);F&&(w=t.resolve(P.dir,F))}if(b(w))return w;for(var M=0;M<B.length;M++){var G=w+B[M];if(b(G))return G}}function D(w){if(!(w===""||w==="/")&&!/^\w:[/\\]*$/.test(w)&&!/[/\\]node_modules[/\\]*$/.test(w)){var P=t.join(f(N,w,C),"package.json");if(!b(P))return D(t.dirname(w));var O=V(S,P);return O&&C.packageFilter&&(O=C.packageFilter(O,w)),{pkg:O,dir:w}}}function U(w){var P=t.join(f(N,w,C),"/package.json");if(b(P)){try{var O=V(S,P)}catch{}if(O&&C.packageFilter&&(O=C.packageFilter(O,w)),O&&O.main){if(typeof O.main!="string"){var F=new TypeError("package “"+O.name+"” `main` must be a string");throw F.code="INVALID_PACKAGE_MAIN",F}(O.main==="."||O.main==="./")&&(O.main="index");try{var M=A(t.resolve(w,O.main));if(M)return M;var G=U(t.resolve(w,O.main));if(G)return G}catch{}}}return A(t.join(w,"/index"))}function q(w,P){for(var O=function(){return v(w,P,C)},F=L?L(w,P,O,C):O(),M=0;M<F.length;M++){var G=F[M];if(E(t.dirname(G))){var j=A(G);if(j)return j;var W=U(G);if(W)return W}}}},sync}var resolve,hasRequiredResolve;function requireResolve(){if(hasRequiredResolve)return resolve;hasRequiredResolve=1;var e=requireAsync();return e.core=requireCore(),e.isCore=requireIsCore(),e.sync=requireSync(),resolve=e,resolve}var dist$2={},Explorer={},ExplorerBase={},loaders={},resolveFrom={exports:{}},hasRequiredResolveFrom;function requireResolveFrom(){if(hasRequiredResolveFrom)return resolveFrom.exports;hasRequiredResolveFrom=1;const e=requirePath(),r=v4.require$$0,t=v4.require$$0,n=(o,a,s)=>{if(typeof o!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof o}\``);if(typeof a!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof a}\``);try{o=t.realpathSync(o)}catch(u){if(u.code==="ENOENT")o=e.resolve(o);else{if(s)return null;throw u}}const i=e.join(o,"noop.js"),l=()=>r._resolveFilename(a,{id:i,filename:i,paths:r._nodeModulePaths(o)});if(s)try{return l()}catch{return null}return l()};return resolveFrom.exports=(o,a)=>n(o,a),resolveFrom.exports.silent=(o,a)=>n(o,a,!0),resolveFrom.exports}var callsites={exports:{}},hasRequiredCallsites;function requireCallsites(){if(hasRequiredCallsites)return callsites.exports;hasRequiredCallsites=1;const e=()=>{const r=Error.prepareStackTrace;Error.prepareStackTrace=(n,o)=>o;const t=new Error().stack.slice(1);return Error.prepareStackTrace=r,t};return callsites.exports=e,callsites.exports.default=e,callsites.exports}var parentModule,hasRequiredParentModule;function requireParentModule(){if(hasRequiredParentModule)return parentModule;hasRequiredParentModule=1;const e=requireCallsites();return parentModule=r=>{const t=e();if(!r)return t[2].getFileName();let n=!1;t.shift();for(const o of t){const a=o.getFileName();if(typeof a=="string"){if(a===r){n=!0;continue}if(a!=="module.js"&&n&&a!==r)return a}}},parentModule}var importFresh,hasRequiredImportFresh;function requireImportFresh(){if(hasRequiredImportFresh)return importFresh;hasRequiredImportFresh=1;const e=requirePath(),r=requireResolveFrom(),t=requireParentModule();return importFresh=n=>{if(typeof n!="string")throw new TypeError("Expected a string");const o=t(__filename),a=o?e.dirname(o):__dirname,s=r(a,n),i=require.cache[s];if(i&&i.parent){let u=i.parent.children.length;for(;u--;)i.parent.children[u].id===s&&i.parent.children.splice(u,1)}delete require.cache[s];const l=require.cache[o];return l===void 0?commonjsRequire(s):l.require(s)},importFresh}var util={},types={},isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var e=v4.requireShams()(),r=v4.callBound,t=r("Object.prototype.toString"),n=function(i){return e&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:t(i)==="[object Arguments]"},o=function(i){return n(i)?!0:i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&t(i)!=="[object Array]"&&t(i.callee)==="[object Function]"},a=function(){return n(arguments)}();return n.isLegacyArguments=o,isArguments=a?n:o,isArguments}var isGeneratorFunction,hasRequiredIsGeneratorFunction;function requireIsGeneratorFunction(){if(hasRequiredIsGeneratorFunction)return isGeneratorFunction;hasRequiredIsGeneratorFunction=1;var e=Object.prototype.toString,r=Function.prototype.toString,t=/^\s*(?:function)?\*/,n=v4.requireShams()(),o=Object.getPrototypeOf,a=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},s;return isGeneratorFunction=function(l){if(typeof l!="function")return!1;if(t.test(r.call(l)))return!0;if(!n){var u=e.call(l);return u==="[object GeneratorFunction]"}if(!o)return!1;if(typeof s>"u"){var c=a();s=c?o(c):!1}return o(l)===s},isGeneratorFunction}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(e){var r=requireIsArguments(),t=requireIsGeneratorFunction(),n=v4.whichTypedArray,o=v4.isTypedArray;function a($){return $.call.bind($)}var s=typeof BigInt<"u",i=typeof Symbol<"u",l=a(Object.prototype.toString),u=a(Number.prototype.valueOf),c=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(s)var p=a(BigInt.prototype.valueOf);if(i)var f=a(Symbol.prototype.valueOf);function m($,ue){if(typeof $!="object")return!1;try{return ue($),!0}catch{return!1}}e.isArgumentsObject=r,e.isGeneratorFunction=t,e.isTypedArray=o;function v($){return typeof Promise<"u"&&$ instanceof Promise||$!==null&&typeof $=="object"&&typeof $.then=="function"&&typeof $.catch=="function"}e.isPromise=v;function h($){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView($):o($)||w($)}e.isArrayBufferView=h;function g($){return n($)==="Uint8Array"}e.isUint8Array=g;function _($){return n($)==="Uint8ClampedArray"}e.isUint8ClampedArray=_;function C($){return n($)==="Uint16Array"}e.isUint16Array=C;function b($){return n($)==="Uint32Array"}e.isUint32Array=b;function S($){return n($)==="Int8Array"}e.isInt8Array=S;function E($){return n($)==="Int16Array"}e.isInt16Array=E;function N($){return n($)==="Int32Array"}e.isInt32Array=N;function V($){return n($)==="Float32Array"}e.isFloat32Array=V;function L($){return n($)==="Float64Array"}e.isFloat64Array=L;function B($){return n($)==="BigInt64Array"}e.isBigInt64Array=B;function I($){return n($)==="BigUint64Array"}e.isBigUint64Array=I;function H($){return l($)==="[object Map]"}H.working=typeof Map<"u"&&H(new Map);function T($){return typeof Map>"u"?!1:H.working?H($):$ instanceof Map}e.isMap=T;function R($){return l($)==="[object Set]"}R.working=typeof Set<"u"&&R(new Set);function X($){return typeof Set>"u"?!1:R.working?R($):$ instanceof Set}e.isSet=X;function Y($){return l($)==="[object WeakMap]"}Y.working=typeof WeakMap<"u"&&Y(new WeakMap);function J($){return typeof WeakMap>"u"?!1:Y.working?Y($):$ instanceof WeakMap}e.isWeakMap=J;function k($){return l($)==="[object WeakSet]"}k.working=typeof WeakSet<"u"&&k(new WeakSet);function A($){return k($)}e.isWeakSet=A;function D($){return l($)==="[object ArrayBuffer]"}D.working=typeof ArrayBuffer<"u"&&D(new ArrayBuffer);function U($){return typeof ArrayBuffer>"u"?!1:D.working?D($):$ instanceof ArrayBuffer}e.isArrayBuffer=U;function q($){return l($)==="[object DataView]"}q.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&q(new DataView(new ArrayBuffer(1),0,1));function w($){return typeof DataView>"u"?!1:q.working?q($):$ instanceof DataView}e.isDataView=w;var P=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function O($){return l($)==="[object SharedArrayBuffer]"}function F($){return typeof P>"u"?!1:(typeof O.working>"u"&&(O.working=O(new P)),O.working?O($):$ instanceof P)}e.isSharedArrayBuffer=F;function M($){return l($)==="[object AsyncFunction]"}e.isAsyncFunction=M;function G($){return l($)==="[object Map Iterator]"}e.isMapIterator=G;function j($){return l($)==="[object Set Iterator]"}e.isSetIterator=j;function W($){return l($)==="[object Generator]"}e.isGeneratorObject=W;function z($){return l($)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=z;function Z($){return m($,u)}e.isNumberObject=Z;function Q($){return m($,c)}e.isStringObject=Q;function ee($){return m($,d)}e.isBooleanObject=ee;function te($){return s&&m($,p)}e.isBigIntObject=te;function ne($){return i&&m($,f)}e.isSymbolObject=ne;function ae($){return Z($)||Q($)||ee($)||te($)||ne($)}e.isBoxedPrimitive=ae;function oe($){return typeof Uint8Array<"u"&&(U($)||F($))}e.isAnyArrayBuffer=oe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function($){Object.defineProperty(e,$,{enumerable:!1,value:function(){throw new Error($+" is not supported in userland")}})})}(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}),isBufferBrowser}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}),inherits_browser.exports}var hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var r={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"},t=Object.getOwnPropertyDescriptors||function(P){for(var O=Object.keys(P),F={},M=0;M<O.length;M++)F[O[M]]=Object.getOwnPropertyDescriptor(P,O[M]);return F},n=/%[sdj%]/g;e.format=function(w){if(!E(w)){for(var P=[],O=0;O<arguments.length;O++)P.push(i(arguments[O]));return P.join(" ")}for(var O=1,F=arguments,M=F.length,G=String(w).replace(n,function(W){if(W==="%%")return"%";if(O>=M)return W;switch(W){case"%s":return String(F[O++]);case"%d":return Number(F[O++]);case"%j":try{return JSON.stringify(F[O++])}catch{return"[Circular]"}default:return W}}),j=F[O];O<M;j=F[++O])C(j)||!B(j)?G+=" "+j:G+=" "+i(j);return G},e.deprecate=function(w,P){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,P).apply(this,arguments)};var O=!1;function F(){if(!O){if(process.throwDeprecation)throw new Error(P);process.traceDeprecation?console.trace(P):console.error(P),O=!0}return w.apply(this,arguments)}return F};var o={},a=/^$/;if(r.NODE_DEBUG){var s=r.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}e.debuglog=function(w){if(w=w.toUpperCase(),!o[w])if(a.test(w)){var P=process.pid;o[w]=function(){var O=e.format.apply(e,arguments);console.error("%s %d: %s",w,P,O)}}else o[w]=function(){};return o[w]};function i(w,P){var O={seen:[],stylize:u};return arguments.length>=3&&(O.depth=arguments[2]),arguments.length>=4&&(O.colors=arguments[3]),_(P)?O.showHidden=P:P&&e._extend(O,P),V(O.showHidden)&&(O.showHidden=!1),V(O.depth)&&(O.depth=2),V(O.colors)&&(O.colors=!1),V(O.customInspect)&&(O.customInspect=!0),O.colors&&(O.stylize=l),d(O,w,O.depth)}e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(w,P){var O=i.styles[P];return O?"\x1B["+i.colors[O][0]+"m"+w+"\x1B["+i.colors[O][1]+"m":w}function u(w,P){return w}function c(w){var P={};return w.forEach(function(O,F){P[O]=!0}),P}function d(w,P,O){if(w.customInspect&&P&&T(P.inspect)&&P.inspect!==e.inspect&&!(P.constructor&&P.constructor.prototype===P)){var F=P.inspect(O,w);return E(F)||(F=d(w,F,O)),F}var M=p(w,P);if(M)return M;var G=Object.keys(P),j=c(G);if(w.showHidden&&(G=Object.getOwnPropertyNames(P)),H(P)&&(G.indexOf("message")>=0||G.indexOf("description")>=0))return f(P);if(G.length===0){if(T(P)){var W=P.name?": "+P.name:"";return w.stylize("[Function"+W+"]","special")}if(L(P))return w.stylize(RegExp.prototype.toString.call(P),"regexp");if(I(P))return w.stylize(Date.prototype.toString.call(P),"date");if(H(P))return f(P)}var z="",Z=!1,Q=["{","}"];if(g(P)&&(Z=!0,Q=["[","]"]),T(P)){var ee=P.name?": "+P.name:"";z=" [Function"+ee+"]"}if(L(P)&&(z=" "+RegExp.prototype.toString.call(P)),I(P)&&(z=" "+Date.prototype.toUTCString.call(P)),H(P)&&(z=" "+f(P)),G.length===0&&(!Z||P.length==0))return Q[0]+z+Q[1];if(O<0)return L(P)?w.stylize(RegExp.prototype.toString.call(P),"regexp"):w.stylize("[Object]","special");w.seen.push(P);var te;return Z?te=m(w,P,O,j,G):te=G.map(function(ne){return v(w,P,O,j,ne,Z)}),w.seen.pop(),h(te,z,Q)}function p(w,P){if(V(P))return w.stylize("undefined","undefined");if(E(P)){var O="'"+JSON.stringify(P).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(O,"string")}if(S(P))return w.stylize(""+P,"number");if(_(P))return w.stylize(""+P,"boolean");if(C(P))return w.stylize("null","null")}function f(w){return"["+Error.prototype.toString.call(w)+"]"}function m(w,P,O,F,M){for(var G=[],j=0,W=P.length;j<W;++j)A(P,String(j))?G.push(v(w,P,O,F,String(j),!0)):G.push("");return M.forEach(function(z){z.match(/^\d+$/)||G.push(v(w,P,O,F,z,!0))}),G}function v(w,P,O,F,M,G){var j,W,z;if(z=Object.getOwnPropertyDescriptor(P,M)||{value:P[M]},z.get?z.set?W=w.stylize("[Getter/Setter]","special"):W=w.stylize("[Getter]","special"):z.set&&(W=w.stylize("[Setter]","special")),A(F,M)||(j="["+M+"]"),W||(w.seen.indexOf(z.value)<0?(C(O)?W=d(w,z.value,null):W=d(w,z.value,O-1),W.indexOf(`
|
|
160
|
+
`)>-1&&(G?W=W.split(`
|
|
161
|
+
`).map(function(Z){return" "+Z}).join(`
|
|
162
|
+
`).slice(2):W=`
|
|
163
|
+
`+W.split(`
|
|
164
|
+
`).map(function(Z){return" "+Z}).join(`
|
|
165
|
+
`))):W=w.stylize("[Circular]","special")),V(j)){if(G&&M.match(/^\d+$/))return W;j=JSON.stringify(""+M),j.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(j=j.slice(1,-1),j=w.stylize(j,"name")):(j=j.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),j=w.stylize(j,"string"))}return j+": "+W}function h(w,P,O){var F=w.reduce(function(M,G){return G.indexOf(`
|
|
166
|
+
`)>=0,M+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return F>60?O[0]+(P===""?"":P+`
|
|
167
|
+
`)+" "+w.join(`,
|
|
168
|
+
`)+" "+O[1]:O[0]+P+" "+w.join(", ")+" "+O[1]}e.types=requireTypes();function g(w){return Array.isArray(w)}e.isArray=g;function _(w){return typeof w=="boolean"}e.isBoolean=_;function C(w){return w===null}e.isNull=C;function b(w){return w==null}e.isNullOrUndefined=b;function S(w){return typeof w=="number"}e.isNumber=S;function E(w){return typeof w=="string"}e.isString=E;function N(w){return typeof w=="symbol"}e.isSymbol=N;function V(w){return w===void 0}e.isUndefined=V;function L(w){return B(w)&&X(w)==="[object RegExp]"}e.isRegExp=L,e.types.isRegExp=L;function B(w){return typeof w=="object"&&w!==null}e.isObject=B;function I(w){return B(w)&&X(w)==="[object Date]"}e.isDate=I,e.types.isDate=I;function H(w){return B(w)&&(X(w)==="[object Error]"||w instanceof Error)}e.isError=H,e.types.isNativeError=H;function T(w){return typeof w=="function"}e.isFunction=T;function R(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=R,e.isBuffer=requireIsBufferBrowser();function X(w){return Object.prototype.toString.call(w)}function Y(w){return w<10?"0"+w.toString(10):w.toString(10)}var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var w=new Date,P=[Y(w.getHours()),Y(w.getMinutes()),Y(w.getSeconds())].join(":");return[w.getDate(),J[w.getMonth()],P].join(" ")}e.log=function(){console.log("%s - %s",k(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser(),e._extend=function(w,P){if(!P||!B(P))return w;for(var O=Object.keys(P),F=O.length;F--;)w[O[F]]=P[O[F]];return w};function A(w,P){return Object.prototype.hasOwnProperty.call(w,P)}var D=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(P){if(typeof P!="function")throw new TypeError('The "original" argument must be of type Function');if(D&&P[D]){var O=P[D];if(typeof O!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(O,D,{value:O,enumerable:!1,writable:!1,configurable:!0}),O}function O(){for(var F,M,G=new Promise(function(z,Z){F=z,M=Z}),j=[],W=0;W<arguments.length;W++)j.push(arguments[W]);j.push(function(z,Z){z?M(z):F(Z)});try{P.apply(this,j)}catch(z){M(z)}return G}return Object.setPrototypeOf(O,Object.getPrototypeOf(P)),D&&Object.defineProperty(O,D,{value:O,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(O,t(P))},e.promisify.custom=D;function U(w,P){if(!w){var O=new Error("Promise was rejected with a falsy value");O.reason=w,w=O}return P(w)}function q(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function P(){for(var O=[],F=0;F<arguments.length;F++)O.push(arguments[F]);var M=O.pop();if(typeof M!="function")throw new TypeError("The last argument must be of type Function");var G=this,j=function(){return M.apply(G,arguments)};w.apply(this,O).then(function(W){process.nextTick(j.bind(null,null,W))},function(W){process.nextTick(U.bind(null,W,j))})}return Object.setPrototypeOf(P,Object.getPrototypeOf(w)),Object.defineProperties(P,t(w)),P}e.callbackify=q}(util)),util}var isArrayish,hasRequiredIsArrayish;function requireIsArrayish(){return hasRequiredIsArrayish||(hasRequiredIsArrayish=1,isArrayish=function(r){return r?r instanceof Array||Array.isArray(r)||r.length>=0&&r.splice instanceof Function:!1}),isArrayish}var errorEx_1,hasRequiredErrorEx;function requireErrorEx(){if(hasRequiredErrorEx)return errorEx_1;hasRequiredErrorEx=1;var e=requireUtil(),r=requireIsArrayish(),t=function(o,a){(!o||o.constructor!==String)&&(a=o||{},o=Error.name);var s=function i(l){if(!this)return new i(l);l=l instanceof Error?l.message:l||this.message,Error.call(this,l),Error.captureStackTrace(this,s),this.name=o,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var f=l.split(/\r?\n/g);for(var m in a)if(a.hasOwnProperty(m)){var v=a[m];"message"in v&&(f=v.message(this[m],f)||f,r(f)||(f=[f]))}return f.join(`
|
|
169
|
+
`)},set:function(f){l=f}});var u=null,c=Object.getOwnPropertyDescriptor(this,"stack"),d=c.get,p=c.value;delete c.value,delete c.writable,c.set=function(f){u=f},c.get=function(){var f=(u||(d?d.call(this):p)).split(/\r?\n+/g);u||(f[0]=this.name+": "+this.message);var m=1;for(var v in a)if(a.hasOwnProperty(v)){var h=a[v];if("line"in h){var g=h.line(this[v]);g&&f.splice(m++,0," "+g)}"stack"in h&&h.stack(this[v],f)}return f.join(`
|
|
170
|
+
`)},Object.defineProperty(this,"stack",c)};return Object.setPrototypeOf?(Object.setPrototypeOf(s.prototype,Error.prototype),Object.setPrototypeOf(s,Error)):e.inherits(s,Error),s};return t.append=function(n,o){return{message:function(a,s){return a=a||o,a&&(s[0]+=" "+n.replace("%s",a.toString())),s}}},t.line=function(n,o){return{line:function(a){return a=a||o,a?n.replace("%s",a.toString()):null}}},errorEx_1=t,errorEx_1}var jsonParseEvenBetterErrors,hasRequiredJsonParseEvenBetterErrors;function requireJsonParseEvenBetterErrors(){if(hasRequiredJsonParseEvenBetterErrors)return jsonParseEvenBetterErrors;hasRequiredJsonParseEvenBetterErrors=1;const e=u=>{const c=u.charCodeAt(0).toString(16).toUpperCase();return"0x"+(c.length%2?"0":"")+c},r=(u,c,d)=>{if(!c)return{message:u.message+" while parsing empty string",position:0};const p=u.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),f=p?+p[2]:u.message.match(/^Unexpected end of JSON.*/i)?c.length-1:null,m=p?u.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(p[1])} (${e(p[1])})`):u.message;if(f!=null){const v=f<=d?0:f-d,h=f+d>=c.length?c.length:f+d,g=(v===0?"":"...")+c.slice(v,h)+(h===c.length?"":"...");return{message:m+` while parsing ${c===g?"":"near "}${JSON.stringify(g)}`,position:f}}else return{message:m+` while parsing '${c.slice(0,d*2)}'`,position:0}};class t extends SyntaxError{constructor(c,d,p,f){p=p||20;const m=r(c,d,p);super(m.message),Object.assign(this,m),this.code="EJSONPARSE",this.systemError=c,Error.captureStackTrace(this,f||this.constructor)}get name(){return this.constructor.name}set name(c){}get[Symbol.toStringTag](){return this.constructor.name}}const n=Symbol.for("indent"),o=Symbol.for("newline"),a=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,s=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,i=(u,c,d)=>{const p=l(u);d=d||20;try{const[,f=`
|
|
171
|
+
`,m=" "]=p.match(s)||p.match(a)||[,"",""],v=JSON.parse(p,c);return v&&typeof v=="object"&&(v[o]=f,v[n]=m),v}catch(f){if(typeof u!="string"&&!Buffer.isBuffer(u)){const m=Array.isArray(u)&&u.length===0;throw Object.assign(new TypeError(`Cannot parse ${m?"an empty array":String(u)}`),{code:"EJSONPARSE",systemError:f})}throw new t(f,p,d,i)}},l=u=>String(u).replace(/^\uFEFF/,"");return jsonParseEvenBetterErrors=i,i.JSONParseError=t,i.noExceptions=(u,c)=>{try{return JSON.parse(l(u),c)}catch{}},jsonParseEvenBetterErrors}var build={},hasRequiredBuild;function requireBuild(){return hasRequiredBuild||(hasRequiredBuild=1,function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var r=`
|
|
172
|
+
`,t="\r",n=function(){function o(a){this.string=a;for(var s=[0],i=0;i<a.length;)switch(a[i]){case r:i+=r.length,s.push(i);break;case t:i+=t.length,a[i]===r&&(i+=r.length),s.push(i);break;default:i++;break}this.offsets=s}return o.prototype.locationForIndex=function(a){if(a<0||a>this.string.length)return null;for(var s=0,i=this.offsets;i[s+1]<=a;)s++;var l=a-i[s];return{line:s,column:l}},o.prototype.indexForLocation=function(a){var s=a.line,i=a.column;return s<0||s>=this.offsets.length||i<0||i>this.lengthOfLine(s)?null:this.offsets[s]+i},o.prototype.lengthOfLine=function(a){var s=this.offsets[a],i=a===this.offsets.length-1?this.string.length:this.offsets[a+1];return i-s},o}();e.LinesAndColumns=n,e.default=n}(build)),build}var lib$2={},lib$1={},jsTokens={},hasRequiredJsTokens;function requireJsTokens(){return hasRequiredJsTokens||(hasRequiredJsTokens=1,Object.defineProperty(jsTokens,"__esModule",{value:!0}),jsTokens.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,jsTokens.matchToToken=function(e){var r={type:"invalid",value:e[0],closed:void 0};return e[1]?(r.type="string",r.closed=!!(e[3]||e[4])):e[5]?r.type="comment":e[6]?(r.type="comment",r.closed=!!e[7]):e[8]?r.type="regex":e[9]?r.type="number":e[10]?r.type="name":e[11]?r.type="punctuator":e[12]&&(r.type="whitespace"),r}),jsTokens}var lib={},identifier={},hasRequiredIdentifier;function requireIdentifier(){if(hasRequiredIdentifier)return identifier;hasRequiredIdentifier=1,Object.defineProperty(identifier,"__esModule",{value:!0}),identifier.isIdentifierChar=l,identifier.isIdentifierName=u,identifier.isIdentifierStart=i;let e="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const t=new RegExp("["+e+"]"),n=new RegExp("["+e+r+"]");e=r=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function s(c,d){let p=65536;for(let f=0,m=d.length;f<m;f+=2){if(p+=d[f],p>c)return!1;if(p+=d[f+1],p>=c)return!0}return!1}function i(c){return c<65?c===36:c<=90?!0:c<97?c===95:c<=122?!0:c<=65535?c>=170&&t.test(String.fromCharCode(c)):s(c,o)}function l(c){return c<48?c===36:c<58?!0:c<65?!1:c<=90?!0:c<97?c===95:c<=122?!0:c<=65535?c>=170&&n.test(String.fromCharCode(c)):s(c,o)||s(c,a)}function u(c){let d=!0;for(let p=0;p<c.length;p++){let f=c.charCodeAt(p);if((f&64512)===55296&&p+1<c.length){const m=c.charCodeAt(++p);(m&64512)===56320&&(f=65536+((f&1023)<<10)+(m&1023))}if(d){if(d=!1,!i(f))return!1}else if(!l(f))return!1}return!d}return identifier}var keyword={},hasRequiredKeyword;function requireKeyword(){if(hasRequiredKeyword)return keyword;hasRequiredKeyword=1,Object.defineProperty(keyword,"__esModule",{value:!0}),keyword.isKeyword=l,keyword.isReservedWord=o,keyword.isStrictBindOnlyReservedWord=s,keyword.isStrictBindReservedWord=i,keyword.isStrictReservedWord=a;const e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},r=new Set(e.keyword),t=new Set(e.strict),n=new Set(e.strictBind);function o(u,c){return c&&u==="await"||u==="enum"}function a(u,c){return o(u,c)||t.has(u)}function s(u){return n.has(u)}function i(u,c){return a(u,c)||s(u)}function l(u){return r.has(u)}return keyword}var hasRequiredLib$2;function requireLib$2(){return hasRequiredLib$2||(hasRequiredLib$2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}});var r=requireIdentifier(),t=requireKeyword()}(lib)),lib}var picocolors_browser={exports:{}},hasRequiredPicocolors_browser;function requirePicocolors_browser(){if(hasRequiredPicocolors_browser)return picocolors_browser.exports;hasRequiredPicocolors_browser=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return picocolors_browser.exports=r(),picocolors_browser.exports.createColors=r,picocolors_browser.exports}var chalk={exports:{}},escapeStringRegexp,hasRequiredEscapeStringRegexp;function requireEscapeStringRegexp(){if(hasRequiredEscapeStringRegexp)return escapeStringRegexp;hasRequiredEscapeStringRegexp=1;var e=/[|\\{}()[\]^$+*?.]/g;return escapeStringRegexp=function(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(e,"\\$&")},escapeStringRegexp}var ansiStyles={exports:{}},conversions={exports:{}},colorName,hasRequiredColorName;function requireColorName(){return hasRequiredColorName||(hasRequiredColorName=1,colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),colorName}var hasRequiredConversions;function requireConversions(){if(hasRequiredConversions)return conversions.exports;hasRequiredConversions=1;var e=requireColorName(),r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);var n=conversions.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in n)if(n.hasOwnProperty(o)){if(!("channels"in n[o]))throw new Error("missing channels property: "+o);if(!("labels"in n[o]))throw new Error("missing channel labels property: "+o);if(n[o].labels.length!==n[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=n[o].channels,s=n[o].labels;delete n[o].channels,delete n[o].labels,Object.defineProperty(n[o],"channels",{value:a}),Object.defineProperty(n[o],"labels",{value:s})}n.rgb.hsl=function(l){var u=l[0]/255,c=l[1]/255,d=l[2]/255,p=Math.min(u,c,d),f=Math.max(u,c,d),m=f-p,v,h,g;return f===p?v=0:u===f?v=(c-d)/m:c===f?v=2+(d-u)/m:d===f&&(v=4+(u-c)/m),v=Math.min(v*60,360),v<0&&(v+=360),g=(p+f)/2,f===p?h=0:g<=.5?h=m/(f+p):h=m/(2-f-p),[v,h*100,g*100]},n.rgb.hsv=function(l){var u,c,d,p,f,m=l[0]/255,v=l[1]/255,h=l[2]/255,g=Math.max(m,v,h),_=g-Math.min(m,v,h),C=function(b){return(g-b)/6/_+1/2};return _===0?p=f=0:(f=_/g,u=C(m),c=C(v),d=C(h),m===g?p=d-c:v===g?p=1/3+u-d:h===g&&(p=2/3+c-u),p<0?p+=1:p>1&&(p-=1)),[p*360,f*100,g*100]},n.rgb.hwb=function(l){var u=l[0],c=l[1],d=l[2],p=n.rgb.hsl(l)[0],f=1/255*Math.min(u,Math.min(c,d));return d=1-1/255*Math.max(u,Math.max(c,d)),[p,f*100,d*100]},n.rgb.cmyk=function(l){var u=l[0]/255,c=l[1]/255,d=l[2]/255,p,f,m,v;return v=Math.min(1-u,1-c,1-d),p=(1-u-v)/(1-v)||0,f=(1-c-v)/(1-v)||0,m=(1-d-v)/(1-v)||0,[p*100,f*100,m*100,v*100]};function i(l,u){return Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)+Math.pow(l[2]-u[2],2)}return n.rgb.keyword=function(l){var u=r[l];if(u)return u;var c=1/0,d;for(var p in e)if(e.hasOwnProperty(p)){var f=e[p],m=i(l,f);m<c&&(c=m,d=p)}return d},n.keyword.rgb=function(l){return e[l]},n.rgb.xyz=function(l){var u=l[0]/255,c=l[1]/255,d=l[2]/255;u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=u*.4124+c*.3576+d*.1805,f=u*.2126+c*.7152+d*.0722,m=u*.0193+c*.1192+d*.9505;return[p*100,f*100,m*100]},n.rgb.lab=function(l){var u=n.rgb.xyz(l),c=u[0],d=u[1],p=u[2],f,m,v;return c/=95.047,d/=100,p/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,f=116*d-16,m=500*(c-d),v=200*(d-p),[f,m,v]},n.hsl.rgb=function(l){var u=l[0]/360,c=l[1]/100,d=l[2]/100,p,f,m,v,h;if(c===0)return h=d*255,[h,h,h];d<.5?f=d*(1+c):f=d+c-d*c,p=2*d-f,v=[0,0,0];for(var g=0;g<3;g++)m=u+1/3*-(g-1),m<0&&m++,m>1&&m--,6*m<1?h=p+(f-p)*6*m:2*m<1?h=f:3*m<2?h=p+(f-p)*(2/3-m)*6:h=p,v[g]=h*255;return v},n.hsl.hsv=function(l){var u=l[0],c=l[1]/100,d=l[2]/100,p=c,f=Math.max(d,.01),m,v;return d*=2,c*=d<=1?d:2-d,p*=f<=1?f:2-f,v=(d+c)/2,m=d===0?2*p/(f+p):2*c/(d+c),[u,m*100,v*100]},n.hsv.rgb=function(l){var u=l[0]/60,c=l[1]/100,d=l[2]/100,p=Math.floor(u)%6,f=u-Math.floor(u),m=255*d*(1-c),v=255*d*(1-c*f),h=255*d*(1-c*(1-f));switch(d*=255,p){case 0:return[d,h,m];case 1:return[v,d,m];case 2:return[m,d,h];case 3:return[m,v,d];case 4:return[h,m,d];case 5:return[d,m,v]}},n.hsv.hsl=function(l){var u=l[0],c=l[1]/100,d=l[2]/100,p=Math.max(d,.01),f,m,v;return v=(2-c)*d,f=(2-c)*p,m=c*p,m/=f<=1?f:2-f,m=m||0,v/=2,[u,m*100,v*100]},n.hwb.rgb=function(l){var u=l[0]/360,c=l[1]/100,d=l[2]/100,p=c+d,f,m,v,h;p>1&&(c/=p,d/=p),f=Math.floor(6*u),m=1-d,v=6*u-f,f&1&&(v=1-v),h=c+v*(m-c);var g,_,C;switch(f){default:case 6:case 0:g=m,_=h,C=c;break;case 1:g=h,_=m,C=c;break;case 2:g=c,_=m,C=h;break;case 3:g=c,_=h,C=m;break;case 4:g=h,_=c,C=m;break;case 5:g=m,_=c,C=h;break}return[g*255,_*255,C*255]},n.cmyk.rgb=function(l){var u=l[0]/100,c=l[1]/100,d=l[2]/100,p=l[3]/100,f,m,v;return f=1-Math.min(1,u*(1-p)+p),m=1-Math.min(1,c*(1-p)+p),v=1-Math.min(1,d*(1-p)+p),[f*255,m*255,v*255]},n.xyz.rgb=function(l){var u=l[0]/100,c=l[1]/100,d=l[2]/100,p,f,m;return p=u*3.2406+c*-1.5372+d*-.4986,f=u*-.9689+c*1.8758+d*.0415,m=u*.0557+c*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,f=f>.0031308?1.055*Math.pow(f,1/2.4)-.055:f*12.92,m=m>.0031308?1.055*Math.pow(m,1/2.4)-.055:m*12.92,p=Math.min(Math.max(0,p),1),f=Math.min(Math.max(0,f),1),m=Math.min(Math.max(0,m),1),[p*255,f*255,m*255]},n.xyz.lab=function(l){var u=l[0],c=l[1],d=l[2],p,f,m;return u/=95.047,c/=100,d/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*c-16,f=500*(u-c),m=200*(c-d),[p,f,m]},n.lab.xyz=function(l){var u=l[0],c=l[1],d=l[2],p,f,m;f=(u+16)/116,p=c/500+f,m=f-d/200;var v=Math.pow(f,3),h=Math.pow(p,3),g=Math.pow(m,3);return f=v>.008856?v:(f-16/116)/7.787,p=h>.008856?h:(p-16/116)/7.787,m=g>.008856?g:(m-16/116)/7.787,p*=95.047,f*=100,m*=108.883,[p,f,m]},n.lab.lch=function(l){var u=l[0],c=l[1],d=l[2],p,f,m;return p=Math.atan2(d,c),f=p*360/2/Math.PI,f<0&&(f+=360),m=Math.sqrt(c*c+d*d),[u,m,f]},n.lch.lab=function(l){var u=l[0],c=l[1],d=l[2],p,f,m;return m=d/360*2*Math.PI,p=c*Math.cos(m),f=c*Math.sin(m),[u,p,f]},n.rgb.ansi16=function(l){var u=l[0],c=l[1],d=l[2],p=1 in arguments?arguments[1]:n.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var f=30+(Math.round(d/255)<<2|Math.round(c/255)<<1|Math.round(u/255));return p===2&&(f+=60),f},n.hsv.ansi16=function(l){return n.rgb.ansi16(n.hsv.rgb(l),l[2])},n.rgb.ansi256=function(l){var u=l[0],c=l[1],d=l[2];if(u===c&&c===d)return u<8?16:u>248?231:Math.round((u-8)/247*24)+232;var p=16+36*Math.round(u/255*5)+6*Math.round(c/255*5)+Math.round(d/255*5);return p},n.ansi16.rgb=function(l){var u=l%10;if(u===0||u===7)return l>50&&(u+=3.5),u=u/10.5*255,[u,u,u];var c=(~~(l>50)+1)*.5,d=(u&1)*c*255,p=(u>>1&1)*c*255,f=(u>>2&1)*c*255;return[d,p,f]},n.ansi256.rgb=function(l){if(l>=232){var u=(l-232)*10+8;return[u,u,u]}l-=16;var c,d=Math.floor(l/36)/5*255,p=Math.floor((c=l%36)/6)/5*255,f=c%6/5*255;return[d,p,f]},n.rgb.hex=function(l){var u=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),c=u.toString(16).toUpperCase();return"000000".substring(c.length)+c},n.hex.rgb=function(l){var u=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!u)return[0,0,0];var c=u[0];u[0].length===3&&(c=c.split("").map(function(v){return v+v}).join(""));var d=parseInt(c,16),p=d>>16&255,f=d>>8&255,m=d&255;return[p,f,m]},n.rgb.hcg=function(l){var u=l[0]/255,c=l[1]/255,d=l[2]/255,p=Math.max(Math.max(u,c),d),f=Math.min(Math.min(u,c),d),m=p-f,v,h;return m<1?v=f/(1-m):v=0,m<=0?h=0:p===u?h=(c-d)/m%6:p===c?h=2+(d-u)/m:h=4+(u-c)/m+4,h/=6,h%=1,[h*360,m*100,v*100]},n.hsl.hcg=function(l){var u=l[1]/100,c=l[2]/100,d=1,p=0;return c<.5?d=2*u*c:d=2*u*(1-c),d<1&&(p=(c-.5*d)/(1-d)),[l[0],d*100,p*100]},n.hsv.hcg=function(l){var u=l[1]/100,c=l[2]/100,d=u*c,p=0;return d<1&&(p=(c-d)/(1-d)),[l[0],d*100,p*100]},n.hcg.rgb=function(l){var u=l[0]/360,c=l[1]/100,d=l[2]/100;if(c===0)return[d*255,d*255,d*255];var p=[0,0,0],f=u%1*6,m=f%1,v=1-m,h=0;switch(Math.floor(f)){case 0:p[0]=1,p[1]=m,p[2]=0;break;case 1:p[0]=v,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=m;break;case 3:p[0]=0,p[1]=v,p[2]=1;break;case 4:p[0]=m,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=v}return h=(1-c)*d,[(c*p[0]+h)*255,(c*p[1]+h)*255,(c*p[2]+h)*255]},n.hcg.hsv=function(l){var u=l[1]/100,c=l[2]/100,d=u+c*(1-u),p=0;return d>0&&(p=u/d),[l[0],p*100,d*100]},n.hcg.hsl=function(l){var u=l[1]/100,c=l[2]/100,d=c*(1-u)+.5*u,p=0;return d>0&&d<.5?p=u/(2*d):d>=.5&&d<1&&(p=u/(2*(1-d))),[l[0],p*100,d*100]},n.hcg.hwb=function(l){var u=l[1]/100,c=l[2]/100,d=u+c*(1-u);return[l[0],(d-u)*100,(1-d)*100]},n.hwb.hcg=function(l){var u=l[1]/100,c=l[2]/100,d=1-c,p=d-u,f=0;return p<1&&(f=(d-p)/(1-p)),[l[0],p*100,f*100]},n.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},n.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},n.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},n.gray.hsl=n.gray.hsv=function(l){return[0,0,l[0]]},n.gray.hwb=function(l){return[0,100,l[0]]},n.gray.cmyk=function(l){return[0,0,0,l[0]]},n.gray.lab=function(l){return[l[0],0,0]},n.gray.hex=function(l){var u=Math.round(l[0]/100*255)&255,c=(u<<16)+(u<<8)+u,d=c.toString(16).toUpperCase();return"000000".substring(d.length)+d},n.rgb.gray=function(l){var u=(l[0]+l[1]+l[2])/3;return[u/255*100]},conversions.exports}var route,hasRequiredRoute;function requireRoute(){if(hasRequiredRoute)return route;hasRequiredRoute=1;var e=requireConversions();function r(){for(var a={},s=Object.keys(e),i=s.length,l=0;l<i;l++)a[s[l]]={distance:-1,parent:null};return a}function t(a){var s=r(),i=[a];for(s[a].distance=0;i.length;)for(var l=i.pop(),u=Object.keys(e[l]),c=u.length,d=0;d<c;d++){var p=u[d],f=s[p];f.distance===-1&&(f.distance=s[l].distance+1,f.parent=l,i.unshift(p))}return s}function n(a,s){return function(i){return s(a(i))}}function o(a,s){for(var i=[s[a].parent,a],l=e[s[a].parent][a],u=s[a].parent;s[u].parent;)i.unshift(s[u].parent),l=n(e[s[u].parent][u],l),u=s[u].parent;return l.conversion=i,l}return route=function(a){for(var s=t(a),i={},l=Object.keys(s),u=l.length,c=0;c<u;c++){var d=l[c],p=s[d];p.parent!==null&&(i[d]=o(d,s))}return i},route}var colorConvert,hasRequiredColorConvert;function requireColorConvert(){if(hasRequiredColorConvert)return colorConvert;hasRequiredColorConvert=1;var e=requireConversions(),r=requireRoute(),t={},n=Object.keys(e);function o(s){var i=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),s(l))};return"conversion"in s&&(i.conversion=s.conversion),i}function a(s){var i=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var u=s(l);if(typeof u=="object")for(var c=u.length,d=0;d<c;d++)u[d]=Math.round(u[d]);return u};return"conversion"in s&&(i.conversion=s.conversion),i}return n.forEach(function(s){t[s]={},Object.defineProperty(t[s],"channels",{value:e[s].channels}),Object.defineProperty(t[s],"labels",{value:e[s].labels});var i=r(s),l=Object.keys(i);l.forEach(function(u){var c=i[u];t[s][u]=a(c),t[s][u].raw=o(c)})}),colorConvert=t,colorConvert}ansiStyles.exports;var hasRequiredAnsiStyles;function requireAnsiStyles(){return hasRequiredAnsiStyles||(hasRequiredAnsiStyles=1,function(e){const r=requireColorConvert(),t=(s,i)=>function(){return`\x1B[${s.apply(r,arguments)+i}m`},n=(s,i)=>function(){const l=s.apply(r,arguments);return`\x1B[${38+i};5;${l}m`},o=(s,i)=>function(){const l=s.apply(r,arguments);return`\x1B[${38+i};2;${l[0]};${l[1]};${l[2]}m`};function a(){const s=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const c of Object.keys(i)){const d=i[c];for(const p of Object.keys(d)){const f=d[p];i[p]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},d[p]=i[p],s.set(f[0],f[1])}Object.defineProperty(i,c,{value:d,enumerable:!1}),Object.defineProperty(i,"codes",{value:s,enumerable:!1})}const l=c=>c,u=(c,d,p)=>[c,d,p];i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi={ansi:t(l,0)},i.color.ansi256={ansi256:n(l,0)},i.color.ansi16m={rgb:o(u,0)},i.bgColor.ansi={ansi:t(l,10)},i.bgColor.ansi256={ansi256:n(l,10)},i.bgColor.ansi16m={rgb:o(u,10)};for(let c of Object.keys(r)){if(typeof r[c]!="object")continue;const d=r[c];c==="ansi16"&&(c="ansi"),"ansi16"in d&&(i.color.ansi[c]=t(d.ansi16,0),i.bgColor.ansi[c]=t(d.ansi16,10)),"ansi256"in d&&(i.color.ansi256[c]=n(d.ansi256,0),i.bgColor.ansi256[c]=n(d.ansi256,10)),"rgb"in d&&(i.color.ansi16m[c]=o(d.rgb,0),i.bgColor.ansi16m[c]=o(d.rgb,10))}return i}Object.defineProperty(e,"exports",{enumerable:!0,get:a})}(ansiStyles)),ansiStyles.exports}var browser$2,hasRequiredBrowser$1;function requireBrowser$1(){return hasRequiredBrowser$1||(hasRequiredBrowser$1=1,browser$2={stdout:!1,stderr:!1}),browser$2}var templates,hasRequiredTemplates;function requireTemplates(){if(hasRequiredTemplates)return templates;hasRequiredTemplates=1;const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,t=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,n=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([["n",`
|
|
173
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function a(u){return u[0]==="u"&&u.length===5||u[0]==="x"&&u.length===3?String.fromCharCode(parseInt(u.slice(1),16)):o.get(u)||u}function s(u,c){const d=[],p=c.trim().split(/\s*,\s*/g);let f;for(const m of p)if(!isNaN(m))d.push(Number(m));else if(f=m.match(t))d.push(f[2].replace(n,(v,h,g)=>h?a(h):g));else throw new Error(`Invalid Chalk template style argument: ${m} (in style '${u}')`);return d}function i(u){r.lastIndex=0;const c=[];let d;for(;(d=r.exec(u))!==null;){const p=d[1];if(d[2]){const f=s(p,d[2]);c.push([p].concat(f))}else c.push([p])}return c}function l(u,c){const d={};for(const f of c)for(const m of f.styles)d[m[0]]=f.inverse?null:m.slice(1);let p=u;for(const f of Object.keys(d))if(Array.isArray(d[f])){if(!(f in p))throw new Error(`Unknown Chalk style: ${f}`);d[f].length>0?p=p[f].apply(p,d[f]):p=p[f]}return p}return templates=(u,c)=>{const d=[],p=[];let f=[];if(c.replace(e,(m,v,h,g,_,C)=>{if(v)f.push(a(v));else if(g){const b=f.join("");f=[],p.push(d.length===0?b:l(u,d)(b)),d.push({inverse:h,styles:i(g)})}else if(_){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(u,d)(f.join(""))),f=[],d.pop()}else f.push(C)}),p.push(f.join("")),d.length>0){const m=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(m)}return p.join("")},templates}var hasRequiredChalk;function requireChalk(){return hasRequiredChalk||(hasRequiredChalk=1,function(e){var r={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"};const t=requireEscapeStringRegexp(),n=requireAnsiStyles(),o=requireBrowser$1().stdout,a=requireTemplates(),s=!r.TERM.toLowerCase().startsWith("xterm"),i=["ansi","ansi","ansi256","ansi16m"],l=new Set(["gray"]),u=Object.create(null);function c(h,g){g=g||{};const _=o?o.level:0;h.level=g.level===void 0?_:g.level,h.enabled="enabled"in g?g.enabled:h.level>0}function d(h){if(!this||!(this instanceof d)||this.template){const g={};return c(g,h),g.template=function(){const _=[].slice.call(arguments);return v.apply(null,[g.template].concat(_))},Object.setPrototypeOf(g,d.prototype),Object.setPrototypeOf(g.template,g),g.template.constructor=d,g.template}c(this,h)}s&&(n.blue.open="\x1B[94m");for(const h of Object.keys(n))n[h].closeRe=new RegExp(t(n[h].close),"g"),u[h]={get(){const g=n[h];return f.call(this,this._styles?this._styles.concat(g):[g],this._empty,h)}};u.visible={get(){return f.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(const h of Object.keys(n.color.ansi))l.has(h)||(u[h]={get(){const g=this.level;return function(){const C={open:n.color[i[g]][h].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return f.call(this,this._styles?this._styles.concat(C):[C],this._empty,h)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(const h of Object.keys(n.bgColor.ansi)){if(l.has(h))continue;const g="bg"+h[0].toUpperCase()+h.slice(1);u[g]={get(){const _=this.level;return function(){const b={open:n.bgColor[i[_]][h].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return f.call(this,this._styles?this._styles.concat(b):[b],this._empty,h)}}}}const p=Object.defineProperties(()=>{},u);function f(h,g,_){const C=function(){return m.apply(C,arguments)};C._styles=h,C._empty=g;const b=this;return Object.defineProperty(C,"level",{enumerable:!0,get(){return b.level},set(S){b.level=S}}),Object.defineProperty(C,"enabled",{enumerable:!0,get(){return b.enabled},set(S){b.enabled=S}}),C.hasGrey=this.hasGrey||_==="gray"||_==="grey",C.__proto__=p,C}function m(){const h=arguments,g=h.length;let _=String(arguments[0]);if(g===0)return"";if(g>1)for(let b=1;b<g;b++)_+=" "+h[b];if(!this.enabled||this.level<=0||!_)return this._empty?"":_;const C=n.dim.open;s&&this.hasGrey&&(n.dim.open="");for(const b of this._styles.slice().reverse())_=b.open+_.replace(b.closeRe,b.open)+b.close,_=_.replace(/\r?\n/g,`${b.close}$&${b.open}`);return n.dim.open=C,_}function v(h,g){if(!Array.isArray(g))return[].slice.call(arguments,1).join(" ");const _=[].slice.call(arguments,2),C=[g.raw[0]];for(let b=1;b<g.length;b++)C.push(String(_[b-1]).replace(/[{}\\]/g,"\\$&")),C.push(String(g.raw[b]));return a(h,C.join(""))}Object.defineProperties(d.prototype,u),e.exports=d(),e.exports.supportsColor=o,e.exports.default=e.exports}(chalk)),chalk.exports}var hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"};Object.defineProperty(lib$1,"__esModule",{value:!0}),lib$1.default=g,lib$1.shouldHighlight=m;var r=requireJsTokens(),t=requireLib$2(),n=a(requirePicocolors_browser(),!0);function o(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,b=new WeakMap;return(o=function(S){return S?b:C})(_)}function a(_,C){if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var b=o(C);if(b&&b.has(_))return b.get(_);var S={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in _)if(N!=="default"&&{}.hasOwnProperty.call(_,N)){var V=E?Object.getOwnPropertyDescriptor(_,N):null;V&&(V.get||V.set)?Object.defineProperty(S,N,V):S[N]=_[N]}return S.default=_,b&&b.set(_,S),S}const s=typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?(0,n.createColors)(!1):n.default,i=(_,C)=>b=>_(C(b)),l=new Set(["as","async","from","get","of","set"]);function u(_){return{keyword:_.cyan,capitalized:_.yellow,jsxIdentifier:_.yellow,punctuator:_.yellow,number:_.magenta,string:_.green,regex:_.magenta,comment:_.gray,invalid:i(i(_.white,_.bgRed),_.bold)}}const c=/\r\n|[\n\r\u2028\u2029]/,d=/^[()[\]{}]$/;let p;{const _=/^[a-z][\w-]*$/i,C=function(b,S,E){if(b.type==="name"){if((0,t.isKeyword)(b.value)||(0,t.isStrictReservedWord)(b.value,!0)||l.has(b.value))return"keyword";if(_.test(b.value)&&(E[S-1]==="<"||E.slice(S-2,S)==="</"))return"jsxIdentifier";if(b.value[0]!==b.value[0].toLowerCase())return"capitalized"}return b.type==="punctuator"&&d.test(b.value)?"bracket":b.type==="invalid"&&(b.value==="@"||b.value==="#")?"punctuator":b.type};p=function*(b){let S;for(;S=r.default.exec(b);){const E=r.matchToToken(S);yield{type:C(E,S.index,b),value:E.value}}}}function f(_,C){let b="";for(const{type:S,value:E}of p(C)){const N=_[S];N?b+=E.split(c).map(V=>N(V)).join(`
|
|
174
|
+
`):b+=E}return b}function m(_){return s.isColorSupported||_.forceColor}let v;function h(_){if(_){var C;return(C=v)!=null||(v=(0,n.createColors)(!0)),v}return s}function g(_,C={}){if(_!==""&&m(C)){const b=u(h(C.forceColor));return f(b,_)}else return _}{let _,C;lib$1.getChalk=({forceColor:b})=>{var S;if((S=_)!=null||(_=requireChalk()),b){var E;return(E=C)!=null||(C=new _.constructor({enabled:!0,level:1})),C}return _}}return lib$1}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib$2;hasRequiredLib=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"};Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.codeFrameColumns=f,lib$2.default=m;var r=requireLib$1(),t=o(requirePicocolors_browser(),!0);function n(v){if(typeof WeakMap!="function")return null;var h=new WeakMap,g=new WeakMap;return(n=function(_){return _?g:h})(v)}function o(v,h){if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var g=n(h);if(g&&g.has(v))return g.get(v);var _={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in v)if(b!=="default"&&Object.prototype.hasOwnProperty.call(v,b)){var S=C?Object.getOwnPropertyDescriptor(v,b):null;S&&(S.get||S.set)?Object.defineProperty(_,b,S):_[b]=v[b]}return _.default=v,g&&g.set(v,_),_}const a=typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?(0,t.createColors)(!1):t.default,s=(v,h)=>g=>v(h(g));let i;function l(v){if(v){var h;return(h=i)!=null||(i=(0,t.createColors)(!0)),i}return a}let u=!1;function c(v){return{gutter:v.gray,marker:s(v.red,v.bold),message:s(v.red,v.bold)}}const d=/\r\n|[\n\r\u2028\u2029]/;function p(v,h,g){const _=Object.assign({column:0,line:-1},v.start),C=Object.assign({},_,v.end),{linesAbove:b=2,linesBelow:S=3}=g||{},E=_.line,N=_.column,V=C.line,L=C.column;let B=Math.max(E-(b+1),0),I=Math.min(h.length,V+S);E===-1&&(B=0),V===-1&&(I=h.length);const H=V-E,T={};if(H)for(let R=0;R<=H;R++){const X=R+E;if(!N)T[X]=!0;else if(R===0){const Y=h[X-1].length;T[X]=[N,Y-N+1]}else if(R===H)T[X]=[0,L];else{const Y=h[X-R].length;T[X]=[0,Y]}}else N===L?N?T[E]=[N,0]:T[E]=!0:T[E]=[N,L-N];return{start:B,end:I,markerLines:T}}function f(v,h,g={}){const _=(g.highlightCode||g.forceColor)&&(0,r.shouldHighlight)(g),C=l(g.forceColor),b=c(C),S=(R,X)=>_?R(X):X,E=v.split(d),{start:N,end:V,markerLines:L}=p(h,E,g),B=h.start&&typeof h.start.column=="number",I=String(V).length;let T=(_?(0,r.default)(v,g):v).split(d,V).slice(N,V).map((R,X)=>{const Y=N+1+X,k=` ${` ${Y}`.slice(-I)} |`,A=L[Y],D=!L[Y+1];if(A){let U="";if(Array.isArray(A)){const q=R.slice(0,Math.max(A[0]-1,0)).replace(/[^\t]/g," "),w=A[1]||1;U=[`
|
|
175
|
+
`,S(b.gutter,k.replace(/\d/g," "))," ",q,S(b.marker,"^").repeat(w)].join(""),D&&g.message&&(U+=" "+S(b.message,g.message))}return[S(b.marker,">"),S(b.gutter,k),R.length>0?` ${R}`:"",U].join("")}else return` ${S(b.gutter,k)}${R.length>0?` ${R}`:""}`}).join(`
|
|
176
|
+
`);return g.message&&!B&&(T=`${" ".repeat(I+1)}${g.message}
|
|
177
|
+
${T}`),_?C.reset(T):T}function m(v,h,g,_={}){if(!u){u=!0;const b="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(b,"DeprecationWarning");else{const S=new Error(b);S.name="DeprecationWarning",console.warn(new Error(b))}}return g=Math.max(g,0),f(v,{start:{column:g,line:h}},_)}return lib$2}var parseJson_1,hasRequiredParseJson;function requireParseJson(){if(hasRequiredParseJson)return parseJson_1;hasRequiredParseJson=1;const e=requireErrorEx(),r=requireJsonParseEvenBetterErrors(),{default:t}=requireBuild(),{codeFrameColumns:n}=requireLib(),o=e("JSONError",{fileName:e.append("in %s"),codeFrame:e.append(`
|
|
178
|
+
|
|
179
|
+
%s
|
|
180
|
+
`)}),a=(s,i,l)=>{typeof i=="string"&&(l=i,i=null);try{try{return JSON.parse(s,i)}catch(u){throw r(s,i),u}}catch(u){u.message=u.message.replace(/\n/g,"");const c=u.message.match(/in JSON at position (\d+) while parsing/),d=new o(u);if(l&&(d.fileName=l),c&&c.length>0){const p=new t(s),f=Number(c[1]),m=p.locationForIndex(f),v=n(s,{start:{line:m.line+1,column:m.column+1}},{highlightCode:!0});d.codeFrame=v}throw d}};return a.JSONError=o,parseJson_1=a,parseJson_1}function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(e)}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _inherits(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&_setPrototypeOf(e,r)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(e)}function _setPrototypeOf(e,r){return _setPrototypeOf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},_setPrototypeOf(e,r)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(e,r,t){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(o,a,s){var i=[null];i.push.apply(i,a);var l=Function.bind.apply(o,i),u=new l;return s&&_setPrototypeOf(u,s.prototype),u},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var r=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(n){if(n===null||!_isNativeFunction(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(n))return r.get(n);r.set(n,o)}function o(){return _construct(n,arguments,_getPrototypeOf(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(o,n)},_wrapNativeSuper(e)}function _assertThisInitialized(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:_assertThisInitialized(e)}function _createSuper(e){var r=_isNativeReflectConstruct();return function(){var n=_getPrototypeOf(e),o;if(r){var a=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _superPropBase(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=_getPrototypeOf(e),e!==null););return e}function _get(e,r,t){return typeof Reflect<"u"&&Reflect.get?_get=Reflect.get:_get=function(o,a,s){var i=_superPropBase(o,a);if(i){var l=Object.getOwnPropertyDescriptor(i,a);return l.get?l.get.call(s):l.value}},_get(e,r,t||e)}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArray(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _iterableToArrayLimit(e,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var t=[],n=!0,o=!1,a=void 0;try{for(var s=e[Symbol.iterator](),i;!(n=(i=s.next()).done)&&(t.push(i.value),!(r&&t.length===r));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return!=null&&s.return()}finally{if(o)throw a}}return t}}function _unsupportedIterableToArray(e,r){if(e){if(typeof e=="string")return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(e,r)}}function _arrayLikeToArray(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
181
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _createForOfIteratorHelper(e,r){var t;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
182
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,i;return{s:function(){t=e[Symbol.iterator]()},n:function(){var l=t.next();return a=l.done,l},e:function(l){s=!0,i=l},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw i}}}}var Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},Type={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},defaultTagPrefix="tag:yaml.org,2002:",defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function findLineStarts(e){for(var r=[0],t=e.indexOf(`
|
|
183
|
+
`);t!==-1;)t+=1,r.push(t),t=e.indexOf(`
|
|
184
|
+
`,t);return r}function getSrcInfo(e){var r,t;return typeof e=="string"?(r=findLineStarts(e),t=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=findLineStarts(e.context.src)),r=e.lineStarts,t=e.context.src)),{lineStarts:r,src:t}}function getLinePos(e,r){if(typeof e!="number"||e<0)return null;var t=getSrcInfo(r),n=t.lineStarts,o=t.src;if(!n||!o||e>o.length)return null;for(var a=0;a<n.length;++a){var s=n[a];if(e<s)return{line:a,col:e-n[a-1]+1};if(e===s)return{line:a+1,col:1}}var i=n.length;return{line:i,col:e-n[i-1]+1}}function getLine(e,r){var t=getSrcInfo(r),n=t.lineStarts,o=t.src;if(!n||!(e>=1)||e>n.length)return null;for(var a=n[e-1],s=n[e];s&&s>a&&o[s-1]===`
|
|
185
|
+
`;)--s;return o.slice(a,s)}function getPrettyContext(e,r){var t=e.start,n=e.end,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,a=getLine(t.line,r);if(!a)return null;var s=t.col;if(a.length>o)if(s<=o-10)a=a.substr(0,o-1)+"…";else{var i=Math.round(o/2);a.length>s+i&&(a=a.substr(0,s+i-1)+"…"),s-=a.length-o,a="…"+a.substr(1-o)}var l=1,u="";n&&(n.line===t.line&&s+(n.col-t.col)<=o+1?l=n.col-t.col:(l=Math.min(a.length+1,o)-s,u="…"));var c=s>1?" ".repeat(s-1):"",d="^".repeat(l);return"".concat(a,`
|
|
186
|
+
`).concat(c).concat(d).concat(u)}var Range=function(){function e(r,t){_classCallCheck(this,e),this.start=r,this.end=t||r}return _createClass(e,[{key:"isEmpty",value:function(){return typeof this.start!="number"||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(t,n){var o=this.start,a=this.end;if(t.length===0||a<=t[0])return this.origStart=o,this.origEnd=a,n;for(var s=n;s<t.length&&!(t[s]>o);)++s;this.origStart=o+s;for(var i=s;s<t.length&&!(t[s]>=a);)++s;return this.origEnd=a+s,i}}],[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),e}(),Node$1=function(){function e(r,t,n){_classCallCheck(this,e),Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=r,this.value=null}return _createClass(e,[{key:"getPropValue",value:function(t,n,o){if(!this.context)return null;var a=this.context.src,s=this.props[t];return s&&a[s.start]===n?a.slice(s.start+(o?1:0),s.end):null}},{key:"anchor",get:function(){for(var t=0;t<this.props.length;++t){var n=this.getPropValue(t,Char.ANCHOR,!0);if(n!=null)return n}return null}},{key:"comment",get:function(){for(var t=[],n=0;n<this.props.length;++n){var o=this.getPropValue(n,Char.COMMENT,!0);o!=null&&t.push(o)}return t.length>0?t.join(`
|
|
187
|
+
`):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end||!this.valueRange)return!1;var o=this.valueRange.end;return t!==o||e.atBlank(n,o-1)}},{key:"hasComment",get:function(){if(this.context){for(var t=this.context.src,n=0;n<this.props.length;++n)if(t[this.props[n].start]===Char.COMMENT)return!0}return!1}},{key:"hasProps",get:function(){if(this.context){for(var t=this.context.src,n=0;n<this.props.length;++n)if(t[this.props[n].start]!==Char.COMMENT)return!0}return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){var t=[Type.FLOW_MAP,Type.FLOW_SEQ,Type.QUOTE_DOUBLE,Type.QUOTE_SINGLE];return t.indexOf(this.type)!==-1}},{key:"rangeAsLinePos",get:function(){if(!(!this.range||!this.context)){var t=getLinePos(this.range.start,this.context.root);if(t){var n=getLinePos(this.range.end,this.context.root);return{start:t,end:n}}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var t=this.valueRange,n=t.start,o=t.end;return this.context.src.slice(n,o)}},{key:"tag",get:function(){for(var t=0;t<this.props.length;++t){var n=this.getPropValue(t,Char.TAG,!1);if(n!=null){if(n[1]==="<")return{verbatim:n.slice(2,-1)};var o=n.match(/^(.*!)([^!]*)$/),a=_slicedToArray(o,3);a[0];var s=a[1],i=a[2];return{handle:s,suffix:i}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var t=this.valueRange,n=t.start,o=t.end,a=this.context.src,s=n;s<o;++s)if(a[s]===`
|
|
188
|
+
`)return!0;return!1}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===Char.COMMENT){var o=e.endOfLine(n,t+1),a=new Range(t,o);return this.props.push(a),o}return t}},{key:"setOrigRanges",value:function(t,n){return this.range&&(n=this.range.setOrigRange(t,n)),this.valueRange&&this.valueRange.setOrigRange(t,n),this.props.forEach(function(o){return o.setOrigRange(t,n)}),n}},{key:"toString",value:function(){var t=this.context.src,n=this.range,o=this.value;if(o!=null)return o;var a=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,a)}}],[{key:"addStringTerminator",value:function(t,n,o){if(o[o.length-1]===`
|
|
189
|
+
`)return o;var a=e.endOfWhiteSpace(t,n);return a>=t.length||t[a]===`
|
|
190
|
+
`?o+`
|
|
191
|
+
`:o}},{key:"atDocumentBoundary",value:function(t,n,o){var a=t[n];if(!a)return!0;var s=t[n-1];if(s&&s!==`
|
|
192
|
+
`)return!1;if(o){if(a!==o)return!1}else if(a!==Char.DIRECTIVES_END&&a!==Char.DOCUMENT_END)return!1;var i=t[n+1],l=t[n+2];if(i!==a||l!==a)return!1;var u=t[n+3];return!u||u===`
|
|
193
|
+
`||u===" "||u===" "}},{key:"endOfIdentifier",value:function(t,n){for(var o=t[n],a=o==="<",s=a?[`
|
|
194
|
+
`," "," ",">"]:[`
|
|
195
|
+
`," "," ","[","]","{","}",","];o&&s.indexOf(o)===-1;)o=t[n+=1];return a&&o===">"&&(n+=1),n}},{key:"endOfIndent",value:function(t,n){for(var o=t[n];o===" ";)o=t[n+=1];return n}},{key:"endOfLine",value:function(t,n){for(var o=t[n];o&&o!==`
|
|
196
|
+
`;)o=t[n+=1];return n}},{key:"endOfWhiteSpace",value:function(t,n){for(var o=t[n];o===" "||o===" ";)o=t[n+=1];return n}},{key:"startOfLine",value:function(t,n){var o=t[n-1];if(o===`
|
|
197
|
+
`)return n;for(;o&&o!==`
|
|
198
|
+
`;)o=t[n-=1];return n+1}},{key:"endOfBlockIndent",value:function(t,n,o){var a=e.endOfIndent(t,o);if(a>o+n)return a;var s=e.endOfWhiteSpace(t,a),i=t[s];return!i||i===`
|
|
199
|
+
`?s:null}},{key:"atBlank",value:function(t,n,o){var a=t[n];return a===`
|
|
200
|
+
`||a===" "||a===" "||o&&!a}},{key:"nextNodeIsIndented",value:function(t,n,o){return!t||n<0?!1:n>0?!0:o&&t==="-"}},{key:"normalizeOffset",value:function(t,n){var o=t[n];return o?o!==`
|
|
201
|
+
`&&t[n-1]===`
|
|
202
|
+
`?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,o){for(var a=0,s=!1,i="",l=t[n+1];l===" "||l===" "||l===`
|
|
203
|
+
`;){switch(l){case`
|
|
204
|
+
`:a=0,n+=1,i+=`
|
|
205
|
+
`;break;case" ":a<=o&&(s=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":a+=1,n+=1;break}l=t[n+1]}return i||(i=" "),l&&a<=o&&(s=!0),{fold:i,offset:n,error:s}}}]),e}(),YAMLError=function(e){_inherits(t,e);var r=_createSuper(t);function t(n,o,a){var s;if(_classCallCheck(this,t),!a||!(o instanceof Node$1))throw new Error("Invalid arguments for new ".concat(n));return s=r.call(this),s.name=n,s.message=a,s.source=o,s}return _createClass(t,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var o=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Range(this.offset,this.offset+1);var a=o&&getLinePos(this.offset,o);if(a){var s={line:a.line,col:a.col+1};this.linePos={start:a,end:s}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var i=this.linePos.start,l=i.line,u=i.col;this.message+=" at line ".concat(l,", column ").concat(u);var c=o&&getPrettyContext(this.linePos,o);c&&(this.message+=`:
|
|
206
|
+
|
|
207
|
+
`.concat(c,`
|
|
208
|
+
`))}delete this.source}}}]),t}(_wrapNativeSuper(Error)),YAMLReferenceError=function(e){_inherits(t,e);var r=_createSuper(t);function t(n,o){return _classCallCheck(this,t),r.call(this,"YAMLReferenceError",n,o)}return t}(YAMLError),YAMLSemanticError=function(e){_inherits(t,e);var r=_createSuper(t);function t(n,o){return _classCallCheck(this,t),r.call(this,"YAMLSemanticError",n,o)}return t}(YAMLError),YAMLSyntaxError=function(e){_inherits(t,e);var r=_createSuper(t);function t(n,o){return _classCallCheck(this,t),r.call(this,"YAMLSyntaxError",n,o)}return t}(YAMLError),YAMLWarning=function(e){_inherits(t,e);var r=_createSuper(t);function t(n,o){return _classCallCheck(this,t),r.call(this,"YAMLWarning",n,o)}return t}(YAMLError),PlainValue=function(e){_inherits(t,e);var r=_createSuper(t);function t(){return _classCallCheck(this,t),r.apply(this,arguments)}return _createClass(t,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var o=this.valueRange,a=o.start,s=o.end,i=this.context.src,l=i[s-1];a<s&&(l===`
|
|
209
|
+
`||l===" "||l===" ");)l=i[--s-1];for(var u="",c=a;c<s;++c){var d=i[c];if(d===`
|
|
210
|
+
`){var p=Node$1.foldNewline(i,c,-1),f=p.fold,m=p.offset;u+=f,c=m}else if(d===" "||d===" "){for(var v=c,h=i[c+1];c<s&&(h===" "||h===" ");)c+=1,h=i[c+1];h!==`
|
|
211
|
+
`&&(u+=c>v?i.slice(v,c+1):d)}else u+=d}var g=i[a];switch(g){case" ":{var _="Plain value cannot start with a tab character",C=[new YAMLSemanticError(this,_)];return{errors:C,str:u}}case"@":case"`":{var b="Plain value cannot start with reserved character ".concat(g),S=[new YAMLSemanticError(this,b)];return{errors:S,str:u}}default:return u}}},{key:"parseBlockValue",value:function(o){for(var a=this.context,s=a.indent,i=a.inFlow,l=a.src,u=o,c=o,d=l[u];d===`
|
|
212
|
+
`&&!Node$1.atDocumentBoundary(l,u+1);d=l[u]){var p=Node$1.endOfBlockIndent(l,s,u+1);if(p===null||l[p]==="#")break;l[p]===`
|
|
213
|
+
`?u=p:(c=t.endOfLine(l,p,i),u=c)}return this.valueRange.isEmpty()&&(this.valueRange.start=o),this.valueRange.end=c,c}},{key:"parse",value:function(o,a){this.context=o;var s=o.inFlow,i=o.src,l=a,u=i[l];return u&&u!=="#"&&u!==`
|
|
214
|
+
`&&(l=t.endOfLine(i,a,s)),this.valueRange=new Range(a,l),l=Node$1.endOfWhiteSpace(i,l),l=this.parseComment(l),(!this.hasComment||this.valueRange.isEmpty())&&(l=this.parseBlockValue(l)),l}}],[{key:"endOfLine",value:function(o,a,s){for(var i=o[a],l=a;i&&i!==`
|
|
215
|
+
`&&!(s&&(i==="["||i==="]"||i==="{"||i==="}"||i===","));){var u=o[l+1];if(i===":"&&(!u||u===`
|
|
216
|
+
`||u===" "||u===" "||s&&u===",")||(i===" "||i===" ")&&u==="#")break;l+=1,i=u}return l}}]),t}(Node$1),BlankLine=function(e){_inherits(t,e);var r=_createSuper(t);function t(){return _classCallCheck(this,t),r.call(this,Type.BLANK_LINE)}return _createClass(t,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(o,a){return this.context=o,this.range=new Range(a,a+1),a+1}}]),t}(Node$1),CollectionItem=function(e){_inherits(t,e);var r=_createSuper(t);function t(n,o){var a;return _classCallCheck(this,t),a=r.call(this,n,o),a.node=null,a}return _createClass(t,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(o,a){this.context=o;var s=o.parseNode,i=o.src,l=o.atLineStart,u=o.lineStart;!l&&this.type===Type.SEQ_ITEM&&(this.error=new YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var c=l?a-u:o.indent,d=Node$1.endOfWhiteSpace(i,a+1),p=i[d],f=p==="#",m=[],v=null;p===`
|
|
217
|
+
`||p==="#";){if(p==="#"){var h=Node$1.endOfLine(i,d+1);m.push(new Range(d,h)),d=h}else{l=!0,u=d+1;var g=Node$1.endOfWhiteSpace(i,u);i[g]===`
|
|
218
|
+
`&&m.length===0&&(v=new BlankLine,u=v.parse({src:i},u)),d=Node$1.endOfIndent(i,u)}p=i[d]}if(Node$1.nextNodeIsIndented(p,d-(u+c),this.type!==Type.SEQ_ITEM)?this.node=s({atLineStart:l,inCollection:!1,indent:c,lineStart:u,parent:this},d):p&&u>a+1&&(d=u-1),this.node){if(v){var _=o.parent.items||o.parent.contents;_&&_.push(v)}m.length&&Array.prototype.push.apply(this.props,m),d=this.node.range.end}else if(f){var C=m[0];this.props.push(C),d=C.end}else d=Node$1.endOfLine(i,a+1);var b=this.node?this.node.valueRange.end:d;return this.valueRange=new Range(a,b),d}},{key:"setOrigRanges",value:function(o,a){return a=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,o,a),this.node?this.node.setOrigRanges(o,a):a}},{key:"toString",value:function(){var o=this.context.src,a=this.node,s=this.range,i=this.value;if(i!=null)return i;var l=a?o.slice(s.start,a.range.start)+String(a):o.slice(s.start,s.end);return Node$1.addStringTerminator(o,s.end,l)}}]),t}(Node$1),Comment=function(e){_inherits(t,e);var r=_createSuper(t);function t(){return _classCallCheck(this,t),r.call(this,Type.COMMENT)}return _createClass(t,[{key:"parse",value:function(o,a){this.context=o;var s=this.parseComment(a);return this.range=new Range(a,s),s}}]),t}(Node$1);function grabCollectionEndComments(e){for(var r=e;r instanceof CollectionItem;)r=r.node;if(!(r instanceof Collection$1))return null;for(var t=r.items.length,n=-1,o=t-1;o>=0;--o){var a=r.items[o];if(a.type===Type.COMMENT){var s=a.context,i=s.indent,l=s.lineStart;if(i>0&&a.range.start>=l+i)break;n=o}else if(a.type===Type.BLANK_LINE)n=o;else break}if(n===-1)return null;for(var u=r.items.splice(n,t-n),c=u[0].range.start;r.range.end=c,r.valueRange&&r.valueRange.end>c&&(r.valueRange.end=c),r!==e;)r=r.context.parent;return u}var Collection$1=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var o;_classCallCheck(this,t),o=r.call(this,n.type===Type.SEQ_ITEM?Type.SEQ:Type.MAP);for(var a=n.props.length-1;a>=0;--a)if(n.props[a].start<n.context.lineStart){o.props=n.props.slice(0,a+1),n.props=n.props.slice(a+1);var s=n.props[0]||n.valueRange;n.range.start=s.start;break}o.items=[n];var i=grabCollectionEndComments(n);return i&&Array.prototype.push.apply(o.items,i),o}return _createClass(t,[{key:"includesTrailingLines",get:function(){return this.items.length>0}},{key:"parse",value:function(o,a){this.context=o;var s=o.parseNode,i=o.src,l=Node$1.startOfLine(i,a),u=this.items[0];u.context.parent=this,this.valueRange=Range.copy(u.valueRange);var c=u.range.start-u.context.lineStart,d=a;d=Node$1.normalizeOffset(i,d);for(var p=i[d],f=Node$1.endOfWhiteSpace(i,l)===d,m=!1;p;){for(;p===`
|
|
219
|
+
`||p==="#";){if(f&&p===`
|
|
220
|
+
`&&!m){var v=new BlankLine;if(d=v.parse({src:i},d),this.valueRange.end=d,d>=i.length){p=null;break}this.items.push(v),d-=1}else if(p==="#"){if(d<l+c&&!t.nextContentHasIndent(i,d,c))return d;var h=new Comment;if(d=h.parse({indent:c,lineStart:l,src:i},d),this.items.push(h),this.valueRange.end=d,d>=i.length){p=null;break}}if(l=d+1,d=Node$1.endOfIndent(i,l),Node$1.atBlank(i,d)){var g=Node$1.endOfWhiteSpace(i,d),_=i[g];(!_||_===`
|
|
221
|
+
`||_==="#")&&(d=g)}p=i[d],f=!0}if(!p)break;if(d!==l+c&&(f||p!==":")){if(d<l+c){l>a&&(d=l);break}else if(!this.error){var C="All collection items must start at the same column";this.error=new YAMLSyntaxError(this,C)}}if(u.type===Type.SEQ_ITEM){if(p!=="-"){l>a&&(d=l);break}}else if(p==="-"&&!this.error){var b=i[d+1];if(!b||b===`
|
|
222
|
+
`||b===" "||b===" "){var S="A collection cannot be both a mapping and a sequence";this.error=new YAMLSyntaxError(this,S)}}var E=s({atLineStart:f,inCollection:!0,indent:c,lineStart:l,parent:this},d);if(!E)return d;if(this.items.push(E),this.valueRange.end=E.valueRange.end,d=Node$1.normalizeOffset(i,E.range.end),p=i[d],f=!1,m=E.includesTrailingLines,p){for(var N=d-1,V=i[N];V===" "||V===" ";)V=i[--N];V===`
|
|
223
|
+
`&&(l=N+1,f=!0)}var L=grabCollectionEndComments(E);L&&Array.prototype.push.apply(this.items,L)}return d}},{key:"setOrigRanges",value:function(o,a){return a=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,o,a),this.items.forEach(function(s){a=s.setOrigRanges(o,a)}),a}},{key:"toString",value:function(){var o=this.context.src,a=this.items,s=this.range,i=this.value;if(i!=null)return i;for(var l=o.slice(s.start,a[0].range.start)+String(a[0]),u=1;u<a.length;++u){var c=a[u],d=c.context,p=d.atLineStart,f=d.indent;if(p)for(var m=0;m<f;++m)l+=" ";l+=String(c)}return Node$1.addStringTerminator(o,s.end,l)}}],[{key:"nextContentHasIndent",value:function(o,a,s){var i=Node$1.endOfLine(o,a)+1;a=Node$1.endOfWhiteSpace(o,i);var l=o[a];return l?a>=i+s?!0:l!=="#"&&l!==`
|
|
224
|
+
`?!1:t.nextContentHasIndent(o,a,s):!1}}]),t}(Node$1),Directive=function(e){_inherits(t,e);var r=_createSuper(t);function t(){var n;return _classCallCheck(this,t),n=r.call(this,Type.DIRECTIVE),n.name=null,n}return _createClass(t,[{key:"parameters",get:function(){var o=this.rawValue;return o?o.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(o){for(var a=this.context.src,s=o,i=a[s];i&&i!==`
|
|
225
|
+
`&&i!==" "&&i!==" ";)i=a[s+=1];return this.name=a.slice(o,s),s}},{key:"parseParameters",value:function(o){for(var a=this.context.src,s=o,i=a[s];i&&i!==`
|
|
226
|
+
`&&i!=="#";)i=a[s+=1];return this.valueRange=new Range(o,s),s}},{key:"parse",value:function(o,a){this.context=o;var s=this.parseName(a+1);return s=this.parseParameters(s),s=this.parseComment(s),this.range=new Range(a,s),s}}]),t}(Node$1),Document$2=function(e){_inherits(t,e);var r=_createSuper(t);function t(){var n;return _classCallCheck(this,t),n=r.call(this,Type.DOCUMENT),n.directives=null,n.contents=null,n.directivesEndMarker=null,n.documentEndMarker=null,n}return _createClass(t,[{key:"parseDirectives",value:function(o){var a=this.context.src;this.directives=[];for(var s=!0,i=!1,l=o;!Node$1.atDocumentBoundary(a,l,Char.DIRECTIVES_END);)switch(l=t.startCommentOrEndBlankLine(a,l),a[l]){case`
|
|
227
|
+
`:if(s){var u=new BlankLine;l=u.parse({src:a},l),l<a.length&&this.directives.push(u)}else l+=1,s=!0;break;case"#":{var c=new Comment;l=c.parse({src:a},l),this.directives.push(c),s=!1}break;case"%":{var d=new Directive;l=d.parse({parent:this,src:a},l),this.directives.push(d),i=!0,s=!1}break;default:return i?this.error=new YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return a[l]?(this.directivesEndMarker=new Range(l,l+3),l+3):(i?this.error=new YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}},{key:"parseContents",value:function(o){var a=this.context,s=a.parseNode,i=a.src;this.contents||(this.contents=[]);for(var l=o;i[l-1]==="-";)l-=1;var u=Node$1.endOfWhiteSpace(i,o),c=l===o;for(this.valueRange=new Range(u);!Node$1.atDocumentBoundary(i,u,Char.DOCUMENT_END);){switch(i[u]){case`
|
|
228
|
+
`:if(c){var d=new BlankLine;u=d.parse({src:i},u),u<i.length&&this.contents.push(d)}else u+=1,c=!0;l=u;break;case"#":{var p=new Comment;u=p.parse({src:i},u),this.contents.push(p),c=!1}break;default:{var f=Node$1.endOfIndent(i,u),m={atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:l,parent:this},v=s(m,f);if(!v)return this.valueRange.end=f;this.contents.push(v),u=v.range.end,c=!1;var h=grabCollectionEndComments(v);h&&Array.prototype.push.apply(this.contents,h)}}u=t.startCommentOrEndBlankLine(i,u)}if(this.valueRange.end=u,i[u]&&(this.documentEndMarker=new Range(u,u+3),u+=3,i[u])){if(u=Node$1.endOfWhiteSpace(i,u),i[u]==="#"){var g=new Comment;u=g.parse({src:i},u),this.contents.push(g)}switch(i[u]){case`
|
|
229
|
+
`:u+=1;break;case void 0:break;default:this.error=new YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return u}},{key:"parse",value:function(o,a){o.root=this,this.context=o;var s=o.src,i=s.charCodeAt(a)===65279?a+1:a;return i=this.parseDirectives(i),i=this.parseContents(i),i}},{key:"setOrigRanges",value:function(o,a){return a=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,o,a),this.directives.forEach(function(s){a=s.setOrigRanges(o,a)}),this.directivesEndMarker&&(a=this.directivesEndMarker.setOrigRange(o,a)),this.contents.forEach(function(s){a=s.setOrigRanges(o,a)}),this.documentEndMarker&&(a=this.documentEndMarker.setOrigRange(o,a)),a}},{key:"toString",value:function(){var o=this.contents,a=this.directives,s=this.value;if(s!=null)return s;var i=a.join("");return o.length>0&&((a.length>0||o[0].type===Type.COMMENT)&&(i+=`---
|
|
230
|
+
`),i+=o.join("")),i[i.length-1]!==`
|
|
231
|
+
`&&(i+=`
|
|
232
|
+
`),i}}],[{key:"startCommentOrEndBlankLine",value:function(o,a){var s=Node$1.endOfWhiteSpace(o,a),i=o[s];return i==="#"||i===`
|
|
233
|
+
`?s:a}}]),t}(Node$1),Alias$1=function(e){_inherits(t,e);var r=_createSuper(t);function t(){return _classCallCheck(this,t),r.apply(this,arguments)}return _createClass(t,[{key:"parse",value:function(o,a){this.context=o;var s=o.src,i=Node$1.endOfIdentifier(s,a+1);return this.valueRange=new Range(a+1,i),i=Node$1.endOfWhiteSpace(s,i),i=this.parseComment(i),i}}]),t}(Node$1),Chomp={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},BlockValue=function(e){_inherits(t,e);var r=_createSuper(t);function t(n,o){var a;return _classCallCheck(this,t),a=r.call(this,n,o),a.blockIndent=null,a.chomping=Chomp.CLIP,a.header=null,a}return _createClass(t,[{key:"includesTrailingLines",get:function(){return this.chomping===Chomp.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var o=this.valueRange,a=o.start,s=o.end,i=this.context,l=i.indent,u=i.src;if(this.valueRange.isEmpty())return"";for(var c=null,d=u[s-1];d===`
|
|
234
|
+
`||d===" "||d===" ";){if(s-=1,s<=a){if(this.chomping===Chomp.KEEP)break;return""}d===`
|
|
235
|
+
`&&(c=s),d=u[s-1]}var p=s+1;c&&(this.chomping===Chomp.KEEP?(p=c,s=this.valueRange.end):s=c);for(var f=l+this.blockIndent,m=this.type===Type.BLOCK_FOLDED,v=!0,h="",g="",_=!1,C=a;C<s;++C){for(var b=0;b<f&&u[C]===" ";++b)C+=1;var S=u[C];if(S===`
|
|
236
|
+
`)g===`
|
|
237
|
+
`?h+=`
|
|
238
|
+
`:g=`
|
|
239
|
+
`;else{var E=Node$1.endOfLine(u,C),N=u.slice(C,E);C=E,m&&(S===" "||S===" ")&&C<p?(g===" "?g=`
|
|
240
|
+
`:!_&&!v&&g===`
|
|
241
|
+
`&&(g=`
|
|
242
|
+
|
|
243
|
+
`),h+=g+N,g=E<s&&u[E]||"",_=!0):(h+=g+N,g=m&&C<p?" ":`
|
|
244
|
+
`,_=!1),v&&N!==""&&(v=!1)}}return this.chomping===Chomp.STRIP?h:h+`
|
|
245
|
+
`}},{key:"parseBlockHeader",value:function(o){for(var a=this.context.src,s=o+1,i="";;){var l=a[s];switch(l){case"-":this.chomping=Chomp.STRIP;break;case"+":this.chomping=Chomp.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i+=l;break;default:return this.blockIndent=Number(i)||null,this.header=new Range(o,s),s}s+=1}}},{key:"parseBlockValue",value:function(o){for(var a=this.context,s=a.indent,i=a.src,l=!!this.blockIndent,u=o,c=o,d=1,p=i[u];p===`
|
|
246
|
+
`&&(u+=1,!Node$1.atDocumentBoundary(i,u));p=i[u]){var f=Node$1.endOfBlockIndent(i,s,u);if(f===null)break;var m=i[f],v=f-(u+s);if(this.blockIndent){if(m&&m!==`
|
|
247
|
+
`&&v<this.blockIndent){if(i[f]==="#")break;if(!this.error){var g=l?"explicit indentation indicator":"first line",_="Block scalars must not be less indented than their ".concat(g);this.error=new YAMLSemanticError(this,_)}}}else if(i[f]!==`
|
|
248
|
+
`){if(v<d){var h="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new YAMLSemanticError(this,h)}this.blockIndent=v}else v>d&&(d=v);i[f]===`
|
|
249
|
+
`?u=f:u=c=Node$1.endOfLine(i,f)}return this.chomping!==Chomp.KEEP&&(u=i[c]?c+1:c),this.valueRange=new Range(o+1,u),u}},{key:"parse",value:function(o,a){this.context=o;var s=o.src,i=this.parseBlockHeader(a);return i=Node$1.endOfWhiteSpace(s,i),i=this.parseComment(i),i=this.parseBlockValue(i),i}},{key:"setOrigRanges",value:function(o,a){return a=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,o,a),this.header?this.header.setOrigRange(o,a):a}}]),t}(Node$1),FlowCollection=function(e){_inherits(t,e);var r=_createSuper(t);function t(n,o){var a;return _classCallCheck(this,t),a=r.call(this,n,o),a.items=null,a}return _createClass(t,[{key:"prevNodeIsJsonLike",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,a=this.items[o-1];return!!a&&(a.jsonLike||a.type===Type.COMMENT&&this.prevNodeIsJsonLike(o-1))}},{key:"parse",value:function(o,a){this.context=o;var s=o.parseNode,i=o.src,l=o.indent,u=o.lineStart,c=i[a];this.items=[{char:c,offset:a}];var d=Node$1.endOfWhiteSpace(i,a+1);for(c=i[d];c&&c!=="]"&&c!=="}";){switch(c){case`
|
|
250
|
+
`:{u=d+1;var p=Node$1.endOfWhiteSpace(i,u);if(i[p]===`
|
|
251
|
+
`){var f=new BlankLine;u=f.parse({src:i},u),this.items.push(f)}if(d=Node$1.endOfIndent(i,u),d<=u+l&&(c=i[d],d<u+l||c!=="]"&&c!=="}")){var m="Insufficient indentation in flow collection";this.error=new YAMLSemanticError(this,m)}}break;case",":this.items.push({char:c,offset:d}),d+=1;break;case"#":{var v=new Comment;d=v.parse({src:i},d),this.items.push(v)}break;case"?":case":":{var h=i[d+1];if(h===`
|
|
252
|
+
`||h===" "||h===" "||h===","||c===":"&&this.prevNodeIsJsonLike()){this.items.push({char:c,offset:d}),d+=1;break}}default:{var g=s({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:u,parent:this},d);if(!g)return this.valueRange=new Range(a,d),d;this.items.push(g),d=Node$1.normalizeOffset(i,g.range.end)}}d=Node$1.endOfWhiteSpace(i,d),c=i[d]}return this.valueRange=new Range(a,d+1),c&&(this.items.push({char:c,offset:d}),d=Node$1.endOfWhiteSpace(i,d+1),d=this.parseComment(d)),d}},{key:"setOrigRanges",value:function(o,a){return a=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,o,a),this.items.forEach(function(s){if(s instanceof Node$1)a=s.setOrigRanges(o,a);else if(o.length===0)s.origOffset=s.offset;else{for(var i=a;i<o.length&&!(o[i]>s.offset);)++i;s.origOffset=s.offset+i,a=i}}),a}},{key:"toString",value:function(){var o=this.context.src,a=this.items,s=this.range,i=this.value;if(i!=null)return i;var l=a.filter(function(d){return d instanceof Node$1}),u="",c=s.start;return l.forEach(function(d){var p=o.slice(c,d.range.start);c=d.range.end,u+=p+String(d),u[u.length-1]===`
|
|
253
|
+
`&&o[c-1]!==`
|
|
254
|
+
`&&o[c]===`
|
|
255
|
+
`&&(c+=1)}),u+=o.slice(c,s.end),Node$1.addStringTerminator(o,s.end,u)}}]),t}(Node$1),QuoteDouble=function(e){_inherits(t,e);var r=_createSuper(t);function t(){return _classCallCheck(this,t),r.apply(this,arguments)}return _createClass(t,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var o=[],a=this.valueRange,s=a.start,i=a.end,l=this.context,u=l.indent,c=l.src;c[i-1]!=='"'&&o.push(new YAMLSyntaxError(this,'Missing closing "quote'));for(var d="",p=s+1;p<i-1;++p){var f=c[p];if(f===`
|
|
256
|
+
`){Node$1.atDocumentBoundary(c,p+1)&&o.push(new YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var m=Node$1.foldNewline(c,p,u),v=m.fold,h=m.offset,g=m.error;d+=v,p=h,g&&o.push(new YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(f==="\\")switch(p+=1,c[p]){case"0":d+="\0";break;case"a":d+="\x07";break;case"b":d+="\b";break;case"e":d+="\x1B";break;case"f":d+="\f";break;case"n":d+=`
|
|
257
|
+
`;break;case"r":d+="\r";break;case"t":d+=" ";break;case"v":d+="\v";break;case"N":d+="
";break;case"_":d+=" ";break;case"L":d+="\u2028";break;case"P":d+="\u2029";break;case" ":d+=" ";break;case'"':d+='"';break;case"/":d+="/";break;case"\\":d+="\\";break;case" ":d+=" ";break;case"x":d+=this.parseCharCode(p+1,2,o),p+=2;break;case"u":d+=this.parseCharCode(p+1,4,o),p+=4;break;case"U":d+=this.parseCharCode(p+1,8,o),p+=8;break;case`
|
|
258
|
+
`:for(;c[p+1]===" "||c[p+1]===" ";)p+=1;break;default:o.push(new YAMLSyntaxError(this,"Invalid escape sequence ".concat(c.substr(p-1,2)))),d+="\\"+c[p]}else if(f===" "||f===" "){for(var _=p,C=c[p+1];C===" "||C===" ";)p+=1,C=c[p+1];C!==`
|
|
259
|
+
`&&(d+=p>_?c.slice(_,p+1):f)}else d+=f}return o.length>0?{errors:o,str:d}:d}},{key:"parseCharCode",value:function(o,a,s){var i=this.context.src,l=i.substr(o,a),u=l.length===a&&/^[0-9a-fA-F]+$/.test(l),c=u?parseInt(l,16):NaN;return isNaN(c)?(s.push(new YAMLSyntaxError(this,"Invalid escape sequence ".concat(i.substr(o-2,a+2)))),i.substr(o-2,a+2)):String.fromCodePoint(c)}},{key:"parse",value:function(o,a){this.context=o;var s=o.src,i=t.endOfQuote(s,a+1);return this.valueRange=new Range(a,i),i=Node$1.endOfWhiteSpace(s,i),i=this.parseComment(i),i}}],[{key:"endOfQuote",value:function(o,a){for(var s=o[a];s&&s!=='"';)a+=s==="\\"?2:1,s=o[a];return a+1}}]),t}(Node$1),QuoteSingle=function(e){_inherits(t,e);var r=_createSuper(t);function t(){return _classCallCheck(this,t),r.apply(this,arguments)}return _createClass(t,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var o=[],a=this.valueRange,s=a.start,i=a.end,l=this.context,u=l.indent,c=l.src;c[i-1]!=="'"&&o.push(new YAMLSyntaxError(this,"Missing closing 'quote"));for(var d="",p=s+1;p<i-1;++p){var f=c[p];if(f===`
|
|
260
|
+
`){Node$1.atDocumentBoundary(c,p+1)&&o.push(new YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var m=Node$1.foldNewline(c,p,u),v=m.fold,h=m.offset,g=m.error;d+=v,p=h,g&&o.push(new YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(f==="'")d+=f,p+=1,c[p]!=="'"&&o.push(new YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(f===" "||f===" "){for(var _=p,C=c[p+1];C===" "||C===" ";)p+=1,C=c[p+1];C!==`
|
|
261
|
+
`&&(d+=p>_?c.slice(_,p+1):f)}else d+=f}return o.length>0?{errors:o,str:d}:d}},{key:"parse",value:function(o,a){this.context=o;var s=o.src,i=t.endOfQuote(s,a+1);return this.valueRange=new Range(a,i),i=Node$1.endOfWhiteSpace(s,i),i=this.parseComment(i),i}}],[{key:"endOfQuote",value:function(o,a){for(var s=o[a];s;)if(s==="'"){if(o[a+1]!=="'")break;s=o[a+=2]}else s=o[a+=1];return a+1}}]),t}(Node$1);function createNewNode(e,r){switch(e){case Type.ALIAS:return new Alias$1(e,r);case Type.BLOCK_FOLDED:case Type.BLOCK_LITERAL:return new BlockValue(e,r);case Type.FLOW_MAP:case Type.FLOW_SEQ:return new FlowCollection(e,r);case Type.MAP_KEY:case Type.MAP_VALUE:case Type.SEQ_ITEM:return new CollectionItem(e,r);case Type.COMMENT:case Type.PLAIN:return new PlainValue(e,r);case Type.QUOTE_DOUBLE:return new QuoteDouble(e,r);case Type.QUOTE_SINGLE:return new QuoteSingle(e,r);default:return null}}var ParseContext=function(){function e(){var r=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.atLineStart,a=n.inCollection,s=n.inFlow,i=n.indent,l=n.lineStart,u=n.parent;_classCallCheck(this,e),_defineProperty(this,"parseNode",function(c,d){if(Node$1.atDocumentBoundary(r.src,d))return null;var p=new e(r,c),f=p.parseProps(d),m=f.props,v=f.type,h=f.valueStart,g=createNewNode(v,m),_=g.parse(p,h);if(g.range=new Range(d,_),_<=d&&(g.error=new Error("Node#parse consumed no characters"),g.error.parseEnd=_,g.error.source=g,g.range.end=d+1),p.nodeStartsCollection(g)){!g.error&&!p.atLineStart&&p.parent.type===Type.DOCUMENT&&(g.error=new YAMLSyntaxError(g,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var C=new Collection$1(g);return _=C.parse(new e(p),_),C.range=new Range(d,_),C}return g}),this.atLineStart=o??(t.atLineStart||!1),this.inCollection=a??(t.inCollection||!1),this.inFlow=s??(t.inFlow||!1),this.indent=i??t.indent,this.lineStart=l??t.lineStart,this.parent=u??(t.parent||{}),this.root=t.root,this.src=t.src}return _createClass(e,[{key:"nodeStartsCollection",value:function(t){var n=this.inCollection,o=this.inFlow,a=this.src;if(n||o)return!1;if(t instanceof CollectionItem)return!0;var s=t.range.end;return a[s]===`
|
|
262
|
+
`||a[s-1]===`
|
|
263
|
+
`?!1:(s=Node$1.endOfWhiteSpace(a,s),a[s]===":")}},{key:"parseProps",value:function(t){var n=this.inFlow,o=this.parent,a=this.src,s=[],i=!1;t=this.atLineStart?Node$1.endOfIndent(a,t):Node$1.endOfWhiteSpace(a,t);for(var l=a[t];l===Char.ANCHOR||l===Char.COMMENT||l===Char.TAG||l===`
|
|
264
|
+
`;){if(l===`
|
|
265
|
+
`){var u=t,c=void 0;do c=u+1,u=Node$1.endOfIndent(a,c);while(a[u]===`
|
|
266
|
+
`);var d=u-(c+this.indent),p=o.type===Type.SEQ_ITEM&&o.context.atLineStart;if(a[u]!=="#"&&!Node$1.nextNodeIsIndented(a[u],d,!p))break;this.atLineStart=!0,this.lineStart=c,i=!1,t=u}else if(l===Char.COMMENT){var f=Node$1.endOfLine(a,t+1);s.push(new Range(t,f)),t=f}else{var m=Node$1.endOfIdentifier(a,t+1);l===Char.TAG&&a[m]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(a.slice(t+1,m+13))&&(m=Node$1.endOfIdentifier(a,m+5)),s.push(new Range(t,m)),i=!0,t=Node$1.endOfWhiteSpace(a,m)}l=a[t]}i&&l===":"&&Node$1.atBlank(a,t+1,!0)&&(t-=1);var v=e.parseType(a,t,n);return{props:s,type:v,valueStart:t}}}],[{key:"parseType",value:function(t,n,o){switch(t[n]){case"*":return Type.ALIAS;case">":return Type.BLOCK_FOLDED;case"|":return Type.BLOCK_LITERAL;case"{":return Type.FLOW_MAP;case"[":return Type.FLOW_SEQ;case"?":return!o&&Node$1.atBlank(t,n+1,!0)?Type.MAP_KEY:Type.PLAIN;case":":return!o&&Node$1.atBlank(t,n+1,!0)?Type.MAP_VALUE:Type.PLAIN;case"-":return!o&&Node$1.atBlank(t,n+1,!0)?Type.SEQ_ITEM:Type.PLAIN;case'"':return Type.QUOTE_DOUBLE;case"'":return Type.QUOTE_SINGLE;default:return Type.PLAIN}}}]),e}();function parse$1(e){var r=[];e.indexOf("\r")!==-1&&(e=e.replace(/\r\n?/g,function(s,i){return s.length>1&&r.push(i),`
|
|
267
|
+
`}));var t=[],n=0;do{var o=new Document$2,a=new ParseContext({src:e});n=o.parse(a,n),t.push(o)}while(n<e.length);return t.setOrigRanges=function(){if(r.length===0)return!1;for(var s=1;s<r.length;++s)r[s]-=s;for(var i=0,l=0;l<t.length;++l)i=t[l].setOrigRanges(r,i);return r.splice(0,r.length),!0},t.toString=function(){return t.join(`...
|
|
268
|
+
`)},t}function addCommentBefore(e,r,t){if(!t)return e;var n=t.replace(/[\s\S]^/gm,"$&".concat(r,"#"));return"#".concat(n,`
|
|
269
|
+
`).concat(r).concat(e)}function addComment(e,r,t){return t?t.indexOf(`
|
|
270
|
+
`)===-1?"".concat(e," #").concat(t):"".concat(e,`
|
|
271
|
+
`)+t.replace(/^/gm,"".concat(r||"","#")):e}var Node=function e(){_classCallCheck(this,e)};function toJSON(e,r,t){if(Array.isArray(e))return e.map(function(a,s){return toJSON(a,String(s),t)});if(e&&typeof e.toJSON=="function"){var n=t&&t.anchors&&t.anchors.get(e);n&&(t.onCreate=function(a){n.res=a,delete t.onCreate});var o=e.toJSON(r,t);return n&&t.onCreate&&t.onCreate(o),o}return(!t||!t.keep)&&typeof e=="bigint"?Number(e):e}var Scalar=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var o;return _classCallCheck(this,t),o=r.call(this),o.value=n,o}return _createClass(t,[{key:"toJSON",value:function(o,a){return a&&a.keep?this.value:toJSON(this.value,o,a)}},{key:"toString",value:function(){return String(this.value)}}]),t}(Node);function collectionFromPath(e,r,t){for(var n=t,o=r.length-1;o>=0;--o){var a=r[o];if(Number.isInteger(a)&&a>=0){var s=[];s[a]=n,n=s}else{var i={};Object.defineProperty(i,a,{value:n,writable:!0,enumerable:!0,configurable:!0}),n=i}}return e.createNode(n,!1)}var isEmptyPath=function e(r){return r==null||_typeof(r)==="object"&&r[Symbol.iterator]().next().done},Collection=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var o;return _classCallCheck(this,t),o=r.call(this),_defineProperty(_assertThisInitialized(o),"items",[]),o.schema=n,o}return _createClass(t,[{key:"addIn",value:function(o,a){if(isEmptyPath(o))this.add(a);else{var s=_toArray(o),i=s[0],l=s.slice(1),u=this.get(i,!0);if(u instanceof t)u.addIn(l,a);else if(u===void 0&&this.schema)this.set(i,collectionFromPath(this.schema,l,a));else throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(l))}}},{key:"deleteIn",value:function(o){var a=_toArray(o),s=a[0],i=a.slice(1);if(i.length===0)return this.delete(s);var l=this.get(s,!0);if(l instanceof t)return l.deleteIn(i);throw new Error("Expected YAML collection at ".concat(s,". Remaining path: ").concat(i))}},{key:"getIn",value:function(o,a){var s=_toArray(o),i=s[0],l=s.slice(1),u=this.get(i,!0);return l.length===0?!a&&u instanceof Scalar?u.value:u:u instanceof t?u.getIn(l,a):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(o){if(!o||o.type!=="PAIR")return!1;var a=o.value;return a==null||a instanceof Scalar&&a.value==null&&!a.commentBefore&&!a.comment&&!a.tag})}},{key:"hasIn",value:function(o){var a=_toArray(o),s=a[0],i=a.slice(1);if(i.length===0)return this.has(s);var l=this.get(s,!0);return l instanceof t?l.hasIn(i):!1}},{key:"setIn",value:function(o,a){var s=_toArray(o),i=s[0],l=s.slice(1);if(l.length===0)this.set(i,a);else{var u=this.get(i,!0);if(u instanceof t)u.setIn(l,a);else if(u===void 0&&this.schema)this.set(i,collectionFromPath(this.schema,l,a));else throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(l))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(o,a,s,i){var l=this,u=a.blockItem,c=a.flowChars,d=a.isMap,p=a.itemIndent,f=o,m=f.indent,v=f.indentStep,h=f.stringify,g=this.type===Type.FLOW_MAP||this.type===Type.FLOW_SEQ||o.inFlow;g&&(p+=v);var _=d&&this.hasAllNullValues();o=Object.assign({},o,{allNullValues:_,indent:p,inFlow:g,type:null});var C=!1,b=!1,S=this.items.reduce(function(J,k,A){var D;k&&(!C&&k.spaceBefore&&J.push({type:"comment",str:""}),k.commentBefore&&k.commentBefore.match(/^.*$/gm).forEach(function(q){J.push({type:"comment",str:"#".concat(q)})}),k.comment&&(D=k.comment),g&&(!C&&k.spaceBefore||k.commentBefore||k.comment||k.key&&(k.key.commentBefore||k.key.comment)||k.value&&(k.value.commentBefore||k.value.comment))&&(b=!0)),C=!1;var U=h(k,o,function(){return D=null},function(){return C=!0});return g&&!b&&U.includes(`
|
|
272
|
+
`)&&(b=!0),g&&A<l.items.length-1&&(U+=","),U=addComment(U,p,D),C&&(D||g)&&(C=!1),J.push({type:"item",str:U}),J},[]),E;if(S.length===0)E=c.start+c.end;else if(g){var N=c.start,V=c.end,L=S.map(function(J){return J.str});if(b||L.reduce(function(J,k){return J+k.length+2},2)>t.maxFlowStringSingleLineLength){E=N;var B=_createForOfIteratorHelper(L),I;try{for(B.s();!(I=B.n()).done;){var H=I.value;E+=H?`
|
|
273
|
+
`.concat(v).concat(m).concat(H):`
|
|
274
|
+
`}}catch(J){B.e(J)}finally{B.f()}E+=`
|
|
275
|
+
`.concat(m).concat(V)}else E="".concat(N," ").concat(L.join(" ")," ").concat(V)}else{var T=S.map(u);E=T.shift();var R=_createForOfIteratorHelper(T),X;try{for(R.s();!(X=R.n()).done;){var Y=X.value;E+=Y?`
|
|
276
|
+
`.concat(m).concat(Y):`
|
|
277
|
+
`}}catch(J){R.e(J)}finally{R.f()}}return this.comment?(E+=`
|
|
278
|
+
`+this.comment.replace(/^/gm,"".concat(m,"#")),s&&s()):C&&i&&i(),E}}]),t}(Node);_defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){var r=e instanceof Scalar?e.value:e;return r&&typeof r=="string"&&(r=Number(r)),Number.isInteger(r)&&r>=0?r:null}var YAMLSeq=function(e){_inherits(t,e);var r=_createSuper(t);function t(){return _classCallCheck(this,t),r.apply(this,arguments)}return _createClass(t,[{key:"add",value:function(o){this.items.push(o)}},{key:"delete",value:function(o){var a=asItemIndex(o);if(typeof a!="number")return!1;var s=this.items.splice(a,1);return s.length>0}},{key:"get",value:function(o,a){var s=asItemIndex(o);if(typeof s=="number"){var i=this.items[s];return!a&&i instanceof Scalar?i.value:i}}},{key:"has",value:function(o){var a=asItemIndex(o);return typeof a=="number"&&a<this.items.length}},{key:"set",value:function(o,a){var s=asItemIndex(o);if(typeof s!="number")throw new Error("Expected a valid index, not ".concat(o,"."));this.items[s]=a}},{key:"toJSON",value:function(o,a){var s=[];a&&a.onCreate&&a.onCreate(s);var i=0,l=_createForOfIteratorHelper(this.items),u;try{for(l.s();!(u=l.n()).done;){var c=u.value;s.push(toJSON(c,String(i++),a))}}catch(d){l.e(d)}finally{l.f()}return s}},{key:"toString",value:function(o,a,s){return o?_get(_getPrototypeOf(t.prototype),"toString",this).call(this,o,{blockItem:function(l){return l.type==="comment"?l.str:"- ".concat(l.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(o.indent||"")+" "},a,s):JSON.stringify(this)}}]),t}(Collection),stringifyKey=function e(r,t,n){return t===null?"":_typeof(t)!=="object"?String(t):r instanceof Node&&n&&n.doc?r.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t)},Pair=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _classCallCheck(this,t),o=r.call(this),o.key=n,o.value=a,o.type=t.Type.PAIR,o}return _createClass(t,[{key:"commentBefore",get:function(){return this.key instanceof Node?this.key.commentBefore:void 0},set:function(o){if(this.key==null&&(this.key=new Scalar(null)),this.key instanceof Node)this.key.commentBefore=o;else{var a="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(a)}}},{key:"addToJSMap",value:function(o,a){var s=toJSON(this.key,"",o);if(a instanceof Map){var i=toJSON(this.value,s,o);a.set(s,i)}else if(a instanceof Set)a.add(s);else{var l=stringifyKey(this.key,s,o),u=toJSON(this.value,l,o);l in a?Object.defineProperty(a,l,{value:u,writable:!0,enumerable:!0,configurable:!0}):a[l]=u}return a}},{key:"toJSON",value:function(o,a){var s=a&&a.mapAsMap?new Map:{};return this.addToJSMap(a,s)}},{key:"toString",value:function(o,a,s){if(!o||!o.doc)return JSON.stringify(this);var i=o.doc.options,l=i.indent,u=i.indentSeq,c=i.simpleKeys,d=this.key,p=this.value,f=d instanceof Node&&d.comment;if(c){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(d instanceof Collection){var m="With simple keys, collection cannot be used as a key value";throw new Error(m)}}var v=!c&&(!d||f||(d instanceof Node?d instanceof Collection||d.type===Type.BLOCK_FOLDED||d.type===Type.BLOCK_LITERAL:_typeof(d)==="object")),h=o,g=h.doc,_=h.indent,C=h.indentStep,b=h.stringify;o=Object.assign({},o,{implicitKey:!v,indent:_+C});var S=!1,E=b(d,o,function(){return f=null},function(){return S=!0});if(E=addComment(E,o.indent,f),!v&&E.length>1024){if(c)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(o.allNullValues&&!c)return this.comment?(E=addComment(E,o.indent,this.comment),a&&a()):S&&!f&&s&&s(),o.inFlow&&!v?E:"? ".concat(E);E=v?"? ".concat(E,`
|
|
279
|
+
`).concat(_,":"):"".concat(E,":"),this.comment&&(E=addComment(E,o.indent,this.comment),a&&a());var N="",V=null;if(p instanceof Node){if(p.spaceBefore&&(N=`
|
|
280
|
+
`),p.commentBefore){var L=p.commentBefore.replace(/^/gm,"".concat(o.indent,"#"));N+=`
|
|
281
|
+
`.concat(L)}V=p.comment}else p&&_typeof(p)==="object"&&(p=g.schema.createNode(p,!0));o.implicitKey=!1,!v&&!this.comment&&p instanceof Scalar&&(o.indentAtStart=E.length+1),S=!1,!u&&l>=2&&!o.inFlow&&!v&&p instanceof YAMLSeq&&p.type!==Type.FLOW_SEQ&&!p.tag&&!g.anchors.getName(p)&&(o.indent=o.indent.substr(2));var B=b(p,o,function(){return V=null},function(){return S=!0}),I=" ";if(N||this.comment)I="".concat(N,`
|
|
282
|
+
`).concat(o.indent);else if(!v&&p instanceof Collection){var H=B[0]==="["||B[0]==="{";(!H||B.includes(`
|
|
283
|
+
`))&&(I=`
|
|
284
|
+
`.concat(o.indent))}else B[0]===`
|
|
285
|
+
`&&(I="");return S&&!V&&s&&s(),addComment(E+I+B,o.indent,V)}}]),t}(Node);_defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var getAliasCount=function e(r,t){if(r instanceof Alias){var n=t.get(r.source);return n.count*n.aliasCount}else if(r instanceof Collection){var o=0,a=_createForOfIteratorHelper(r.items),s;try{for(a.s();!(s=a.n()).done;){var i=s.value,l=e(i,t);l>o&&(o=l)}}catch(d){a.e(d)}finally{a.f()}return o}else if(r instanceof Pair){var u=e(r.key,t),c=e(r.value,t);return Math.max(u,c)}return 1},Alias=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var o;return _classCallCheck(this,t),o=r.call(this),o.source=n,o.type=Type.ALIAS,o}return _createClass(t,[{key:"tag",set:function(o){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(o,a){if(!a)return toJSON(this.source,o,a);var s=a.anchors,i=a.maxAliasCount,l=s.get(this.source);if(!l||l.res===void 0){var u="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new YAMLReferenceError(this.cstNode,u):new ReferenceError(u)}if(i>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=getAliasCount(this.source,s)),l.count*l.aliasCount>i)){var c="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new YAMLReferenceError(this.cstNode,c):new ReferenceError(c)}return l.res}},{key:"toString",value:function(o){return t.stringify(this,o)}}],[{key:"stringify",value:function(o,a){var s=o.range,i=o.source,l=a.anchors,u=a.doc,c=a.implicitKey,d=a.inStringifyKey,p=Object.keys(l).find(function(m){return l[m]===i});if(!p&&d&&(p=u.anchors.getName(i)||u.anchors.newName()),p)return"*".concat(p).concat(c?" ":"");var f=u.anchors.getName(i)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(f," [").concat(s,"]"))}}]),t}(Node);_defineProperty(Alias,"default",!0);function findPair(e,r){var t=r instanceof Scalar?r.value:r,n=_createForOfIteratorHelper(e),o;try{for(n.s();!(o=n.n()).done;){var a=o.value;if(a instanceof Pair&&(a.key===r||a.key===t||a.key&&a.key.value===t))return a}}catch(s){n.e(s)}finally{n.f()}}var YAMLMap=function(e){_inherits(t,e);var r=_createSuper(t);function t(){return _classCallCheck(this,t),r.apply(this,arguments)}return _createClass(t,[{key:"add",value:function(o,a){o?o instanceof Pair||(o=new Pair(o.key||o,o.value)):o=new Pair(o);var s=findPair(this.items,o.key),i=this.schema&&this.schema.sortMapEntries;if(s)if(a)s.value=o.value;else throw new Error("Key ".concat(o.key," already set"));else if(i){var l=this.items.findIndex(function(u){return i(o,u)<0});l===-1?this.items.push(o):this.items.splice(l,0,o)}else this.items.push(o)}},{key:"delete",value:function(o){var a=findPair(this.items,o);if(!a)return!1;var s=this.items.splice(this.items.indexOf(a),1);return s.length>0}},{key:"get",value:function(o,a){var s=findPair(this.items,o),i=s&&s.value;return!a&&i instanceof Scalar?i.value:i}},{key:"has",value:function(o){return!!findPair(this.items,o)}},{key:"set",value:function(o,a){this.add(new Pair(o,a),!0)}},{key:"toJSON",value:function(o,a,s){var i=s?new s:a&&a.mapAsMap?new Map:{};a&&a.onCreate&&a.onCreate(i);var l=_createForOfIteratorHelper(this.items),u;try{for(l.s();!(u=l.n()).done;){var c=u.value;c.addToJSMap(a,i)}}catch(d){l.e(d)}finally{l.f()}return i}},{key:"toString",value:function(o,a,s){if(!o)return JSON.stringify(this);var i=_createForOfIteratorHelper(this.items),l;try{for(i.s();!(l=i.n()).done;){var u=l.value;if(!(u instanceof Pair))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(u)," instead"))}}catch(c){i.e(c)}finally{i.f()}return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,o,{blockItem:function(d){return d.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:o.indent||""},a,s)}}]),t}(Collection),MERGE_KEY="<<",Merge=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var o;if(_classCallCheck(this,t),n instanceof Pair){var a=n.value;a instanceof YAMLSeq||(a=new YAMLSeq,a.items.push(n.value),a.range=n.value.range),o=r.call(this,n.key,a),o.range=n.range}else o=r.call(this,new Scalar(MERGE_KEY),new YAMLSeq);return o.type=Pair.Type.MERGE_PAIR,_possibleConstructorReturn(o)}return _createClass(t,[{key:"addToJSMap",value:function(o,a){var s=_createForOfIteratorHelper(this.value.items),i;try{for(s.s();!(i=s.n()).done;){var l=i.value.source;if(!(l instanceof YAMLMap))throw new Error("Merge sources must be maps");var u=l.toJSON(null,o,Map),c=_createForOfIteratorHelper(u),d;try{for(c.s();!(d=c.n()).done;){var p=_slicedToArray(d.value,2),f=p[0],m=p[1];a instanceof Map?a.has(f)||a.set(f,m):a instanceof Set?a.add(f):Object.prototype.hasOwnProperty.call(a,f)||Object.defineProperty(a,f,{value:m,writable:!0,enumerable:!0,configurable:!0})}}catch(v){c.e(v)}finally{c.f()}}}catch(v){s.e(v)}finally{s.f()}return a}},{key:"toString",value:function(o,a){var s=this.value;if(s.items.length>1)return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,o,a);this.value=s.items[0];var i=_get(_getPrototypeOf(t.prototype),"toString",this).call(this,o,a);return this.value=s,i}}]),t}(Pair),binaryOptions={defaultType:Type.BLOCK_LITERAL,lineWidth:76},boolOptions={trueStr:"true",falseStr:"false"},intOptions={asBigInt:!1},nullOptions={nullStr:"null"},strOptions={defaultType:Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,r,t){var n=_createForOfIteratorHelper(r),o;try{for(n.s();!(o=n.n()).done;){var a=o.value,s=a.format,i=a.test,l=a.resolve;if(i){var u=e.match(i);if(u){var c=l.apply(null,u);return c instanceof Scalar||(c=new Scalar(c)),s&&(c.format=s),c}}}}catch(d){n.e(d)}finally{n.f()}return t&&(e=t(e)),new Scalar(e)}var FOLD_FLOW="flow",FOLD_BLOCK="block",FOLD_QUOTED="quoted",consumeMoreIndentedLines=function e(r,t){for(var n=r[t+1];n===" "||n===" ";){do n=r[t+=1];while(n&&n!==`
|
|
286
|
+
`);n=r[t+1]}return t};function foldFlowLines(e,r,t,n){var o=n.indentAtStart,a=n.lineWidth,s=a===void 0?80:a,i=n.minContentWidth,l=i===void 0?20:i,u=n.onFold,c=n.onOverflow;if(!s||s<0)return e;var d=Math.max(1+l,1+s-r.length);if(e.length<=d)return e;var p=[],f={},m=s-r.length;typeof o=="number"&&(o>s-Math.max(2,l)?p.push(0):m=s-o);var v=void 0,h=void 0,g=!1,_=-1,C=-1,b=-1;t===FOLD_BLOCK&&(_=consumeMoreIndentedLines(e,_),_!==-1&&(m=_+d));for(var S;S=e[_+=1];){if(t===FOLD_QUOTED&&S==="\\"){switch(C=_,e[_+1]){case"x":_+=3;break;case"u":_+=5;break;case"U":_+=9;break;default:_+=1}b=_}if(S===`
|
|
287
|
+
`)t===FOLD_BLOCK&&(_=consumeMoreIndentedLines(e,_)),m=_+d,v=void 0;else{if(S===" "&&h&&h!==" "&&h!==`
|
|
288
|
+
`&&h!==" "){var E=e[_+1];E&&E!==" "&&E!==`
|
|
289
|
+
`&&E!==" "&&(v=_)}if(_>=m)if(v)p.push(v),m=v+d,v=void 0;else if(t===FOLD_QUOTED){for(;h===" "||h===" ";)h=S,S=e[_+=1],g=!0;var N=_>b+1?_-2:C-1;if(f[N])return e;p.push(N),f[N]=!0,m=N+d,v=void 0}else g=!0}h=S}if(g&&c&&c(),p.length===0)return e;u&&u();for(var V=e.slice(0,p[0]),L=0;L<p.length;++L){var B=p[L],I=p[L+1]||e.length;B===0?V=`
|
|
290
|
+
`.concat(r).concat(e.slice(0,I)):(t===FOLD_QUOTED&&f[B]&&(V+="".concat(e[B],"\\")),V+=`
|
|
291
|
+
`.concat(r).concat(e.slice(B+1,I)))}return V}var getFoldOptions=function e(r){var t=r.indentAtStart;return t?Object.assign({indentAtStart:t},strOptions.fold):strOptions.fold},containsDocumentMarker=function e(r){return/^(%|---|\.\.\.)/m.test(r)};function lineLengthOverLimit(e,r,t){if(!r||r<0)return!1;var n=r-t,o=e.length;if(o<=n)return!1;for(var a=0,s=0;a<o;++a)if(e[a]===`
|
|
292
|
+
`){if(a-s>n)return!0;if(s=a+1,o-s<=n)return!1}return!0}function doubleQuotedString(e,r){var t=r.implicitKey,n=strOptions.doubleQuoted,o=n.jsonEncoding,a=n.minMultiLineLength,s=JSON.stringify(e);if(o)return s;for(var i=r.indent||(containsDocumentMarker(e)?" ":""),l="",u=0,c=0,d=s[c];d;d=s[++c])if(d===" "&&s[c+1]==="\\"&&s[c+2]==="n"&&(l+=s.slice(u,c)+"\\ ",c+=1,u=c,d="\\"),d==="\\")switch(s[c+1]){case"u":{l+=s.slice(u,c);var p=s.substr(c+2,4);switch(p){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:p.substr(0,2)==="00"?l+="\\x"+p.substr(2):l+=s.substr(c,6)}c+=5,u=c+1}break;case"n":if(t||s[c+2]==='"'||s.length<a)c+=1;else{for(l+=s.slice(u,c)+`
|
|
293
|
+
|
|
294
|
+
`;s[c+2]==="\\"&&s[c+3]==="n"&&s[c+4]!=='"';)l+=`
|
|
295
|
+
`,c+=2;l+=i,s[c+2]===" "&&(l+="\\"),c+=1,u=c+1}break;default:c+=1}return l=u?l+s.slice(u):s,t?l:foldFlowLines(l,i,FOLD_QUOTED,getFoldOptions(r))}function singleQuotedString(e,r){if(r.implicitKey){if(/\n/.test(e))return doubleQuotedString(e,r)}else if(/[ \t]\n|\n[ \t]/.test(e))return doubleQuotedString(e,r);var t=r.indent||(containsDocumentMarker(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
296
|
+
`.concat(t))+"'";return r.implicitKey?n:foldFlowLines(n,t,FOLD_FLOW,getFoldOptions(r))}function blockString(e,r,t,n){var o=e.comment,a=e.type,s=e.value;if(/\n[\t ]+$/.test(s)||/^\s*$/.test(s))return doubleQuotedString(s,r);var i=r.indent||(r.forceBlockIndent||containsDocumentMarker(s)?" ":""),l=i?"2":"1",u=a===Type.BLOCK_FOLDED?!1:a===Type.BLOCK_LITERAL?!0:!lineLengthOverLimit(s,strOptions.fold.lineWidth,i.length),c=u?"|":">";if(!s)return c+`
|
|
297
|
+
`;var d="",p="";if(s=s.replace(/[\n\t ]*$/,function(m){var v=m.indexOf(`
|
|
298
|
+
`);return v===-1?c+="-":(s===m||v!==m.length-1)&&(c+="+",n&&n()),p=m.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(m){m.indexOf(" ")!==-1&&(c+=l);var v=m.match(/ +$/);return v?(d=m.slice(0,-v[0].length),v[0]):(d=m,"")}),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(i))),d&&(d=d.replace(/\n+/g,"$&".concat(i))),o&&(c+=" #"+o.replace(/ ?[\r\n]+/g," "),t&&t()),!s)return"".concat(c).concat(l,`
|
|
299
|
+
`).concat(i).concat(p);if(u)return s=s.replace(/\n+/g,"$&".concat(i)),"".concat(c,`
|
|
300
|
+
`).concat(i).concat(d).concat(s).concat(p);s=s.replace(/\n+/g,`
|
|
301
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(i));var f=foldFlowLines("".concat(d).concat(s).concat(p),i,FOLD_BLOCK,strOptions.fold);return"".concat(c,`
|
|
302
|
+
`).concat(i).concat(f)}function plainString(e,r,t,n){var o=e.comment,a=e.type,s=e.value,i=r.actualString,l=r.implicitKey,u=r.indent,c=r.inFlow;if(l&&/[\n[\]{},]/.test(s)||c&&/[[\]{},]/.test(s))return doubleQuotedString(s,r);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||c||s.indexOf(`
|
|
303
|
+
`)===-1?s.indexOf('"')!==-1&&s.indexOf("'")===-1?singleQuotedString(s,r):doubleQuotedString(s,r):blockString(e,r,t,n);if(!l&&!c&&a!==Type.PLAIN&&s.indexOf(`
|
|
304
|
+
`)!==-1)return blockString(e,r,t,n);if(u===""&&containsDocumentMarker(s))return r.forceBlockIndent=!0,blockString(e,r,t,n);var d=s.replace(/\n+/g,`$&
|
|
305
|
+
`.concat(u));if(i){var p=r.doc.schema.tags,f=resolveScalar(d,p,p.scalarFallback).value;if(typeof f!="string")return doubleQuotedString(s,r)}var m=l?d:foldFlowLines(d,u,FOLD_FLOW,getFoldOptions(r));return o&&!c&&(m.indexOf(`
|
|
306
|
+
`)!==-1||o.indexOf(`
|
|
307
|
+
`)!==-1)?(t&&t(),addCommentBefore(m,u,o)):m}function stringifyString(e,r,t,n){var o=strOptions.defaultType,a=r.implicitKey,s=r.inFlow,i=e,l=i.type,u=i.value;typeof u!="string"&&(u=String(u),e=Object.assign({},e,{value:u}));var c=function(f){switch(f){case Type.BLOCK_FOLDED:case Type.BLOCK_LITERAL:return blockString(e,r,t,n);case Type.QUOTE_DOUBLE:return doubleQuotedString(u,r);case Type.QUOTE_SINGLE:return singleQuotedString(u,r);case Type.PLAIN:return plainString(e,r,t,n);default:return null}};(l!==Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)||(a||s)&&(l===Type.BLOCK_FOLDED||l===Type.BLOCK_LITERAL))&&(l=Type.QUOTE_DOUBLE);var d=c(l);if(d===null&&(d=c(o),d===null))throw new Error("Unsupported default string type ".concat(o));return d}function stringifyNumber(e){var r=e.format,t=e.minFractionDigits,n=e.tag,o=e.value;if(typeof o=="bigint")return String(o);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";var a=JSON.stringify(o);if(!r&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(a)){var s=a.indexOf(".");s<0&&(s=a.length,a+=".");for(var i=t-(a.length-s-1);i-- >0;)a+="0"}return a}function checkFlowCollectionEnd(e,r){var t,n;switch(r.type){case Type.FLOW_MAP:t="}",n="flow map";break;case Type.FLOW_SEQ:t="]",n="flow sequence";break;default:e.push(new YAMLSemanticError(r,"Not a flow collection!?"));return}for(var o,a=r.items.length-1;a>=0;--a){var s=r.items[a];if(!s||s.type!==Type.COMMENT){o=s;break}}if(o&&o.char!==t){var i="Expected ".concat(n," to end with ").concat(t),l;typeof o.offset=="number"?(l=new YAMLSemanticError(r,i),l.offset=o.offset+1):(l=new YAMLSemanticError(o,i),o.range&&o.range.end&&(l.offset=o.range.end-o.range.start)),e.push(l)}}function checkFlowCommentSpace(e,r){var t=r.context.src[r.range.start-1];if(t!==`
|
|
308
|
+
`&&t!==" "&&t!==" "){var n="Comments must be separated from other tokens by white space characters";e.push(new YAMLSemanticError(r,n))}}function getLongKeyError(e,r){var t=String(r),n=t.substr(0,8)+"..."+t.substr(-8);return new YAMLSemanticError(e,'The "'.concat(n,'" key is too long'))}function resolveComments(e,r){var t=_createForOfIteratorHelper(r),n;try{for(t.s();!(n=t.n()).done;){var o=n.value,a=o.afterKey,s=o.before,i=o.comment,l=e.items[s];l?(a&&l.value&&(l=l.value),i===void 0?(a||!l.commentBefore)&&(l.spaceBefore=!0):l.commentBefore?l.commentBefore+=`
|
|
309
|
+
`+i:l.commentBefore=i):i!==void 0&&(e.comment?e.comment+=`
|
|
310
|
+
`+i:e.comment=i)}}catch(u){t.e(u)}finally{t.f()}}function resolveString(e,r){var t=r.strValue;return t?typeof t=="string"?t:(t.errors.forEach(function(n){n.source||(n.source=r),e.errors.push(n)}),t.str):""}function resolveTagHandle(e,r){var t=r.tag,n=t.handle,o=t.suffix,a=e.tagPrefixes.find(function(l){return l.handle===n});if(!a){var s=e.getDefaults().tagPrefixes;if(s&&(a=s.find(function(l){return l.handle===n})),!a)throw new YAMLSemanticError(r,"The ".concat(n," tag handle is non-default and was not declared."))}if(!o)throw new YAMLSemanticError(r,"The ".concat(n," tag has no suffix."));if(n==="!"&&(e.version||e.options.version)==="1.0"){if(o[0]==="^")return e.warnings.push(new YAMLWarning(r,"YAML 1.0 ^ tag expansion is not supported")),o;if(/[:/]/.test(o)){var i=o.match(/^([a-z0-9-]+)\/(.*)/i);return i?"tag:".concat(i[1],".yaml.org,2002:").concat(i[2]):"tag:".concat(o)}}return a.prefix+decodeURIComponent(o)}function resolveTagName(e,r){var t=r.tag,n=r.type,o=!1;if(t){var a=t.handle,s=t.suffix,i=t.verbatim;if(i){if(i!=="!"&&i!=="!!")return i;var l="Verbatim tags aren't resolved, so ".concat(i," is invalid.");e.errors.push(new YAMLSemanticError(r,l))}else if(a==="!"&&!s)o=!0;else try{return resolveTagHandle(e,r)}catch(u){e.errors.push(u)}}switch(n){case Type.BLOCK_FOLDED:case Type.BLOCK_LITERAL:case Type.QUOTE_DOUBLE:case Type.QUOTE_SINGLE:return defaultTags.STR;case Type.FLOW_MAP:case Type.MAP:return defaultTags.MAP;case Type.FLOW_SEQ:case Type.SEQ:return defaultTags.SEQ;case Type.PLAIN:return o?defaultTags.STR:null;default:return null}}function resolveByTagName(e,r,t){var n=e.schema.tags,o=[],a=_createForOfIteratorHelper(n),s;try{for(a.s();!(s=a.n()).done;){var i=s.value;if(i.tag===t)if(i.test)o.push(i);else{var l=i.resolve(e,r);return l instanceof Collection?l:new Scalar(l)}}}catch(c){a.e(c)}finally{a.f()}var u=resolveString(e,r);return typeof u=="string"&&o.length>0?resolveScalar(u,o,n.scalarFallback):null}function getFallbackTagName(e){var r=e.type;switch(r){case Type.FLOW_MAP:case Type.MAP:return defaultTags.MAP;case Type.FLOW_SEQ:case Type.SEQ:return defaultTags.SEQ;default:return defaultTags.STR}}function resolveTag(e,r,t){try{var n=resolveByTagName(e,r,t);if(n)return t&&r.tag&&(n.tag=t),n}catch(l){return l.source||(l.source=r),e.errors.push(l),null}try{var o=getFallbackTagName(r);if(!o)throw new Error("The tag ".concat(t," is unavailable"));var a="The tag ".concat(t," is unavailable, falling back to ").concat(o);e.warnings.push(new YAMLWarning(r,a));var s=resolveByTagName(e,r,o);return s.tag=t,s}catch(l){var i=new YAMLReferenceError(r,l.message);return i.stack=l.stack,e.errors.push(i),null}}var isCollectionItem=function e(r){if(!r)return!1;var t=r.type;return t===Type.MAP_KEY||t===Type.MAP_VALUE||t===Type.SEQ_ITEM};function resolveNodeProps(e,r){var t={before:[],after:[]},n=!1,o=!1,a=isCollectionItem(r.context.parent)?r.context.parent.props.concat(r.props):r.props,s=_createForOfIteratorHelper(a),i;try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l.start,c=l.end;switch(r.context.src[u]){case Char.COMMENT:{if(!r.commentHasRequiredWhitespace(u)){var d="Comments must be separated from other tokens by white space characters";e.push(new YAMLSemanticError(r,d))}var p=r.header,f=r.valueRange,m=f&&(u>f.start||p&&u>p.start)?t.after:t.before;m.push(r.context.src.slice(u+1,c));break}case Char.ANCHOR:if(n){var v="A node can have at most one anchor";e.push(new YAMLSemanticError(r,v))}n=!0;break;case Char.TAG:if(o){var h="A node can have at most one tag";e.push(new YAMLSemanticError(r,h))}o=!0;break}}}catch(g){s.e(g)}finally{s.f()}return{comments:t,hasAnchor:n,hasTag:o}}function resolveNodeValue(e,r){var t=e.anchors,n=e.errors,o=e.schema;if(r.type===Type.ALIAS){var a=r.rawValue,s=t.getNode(a);if(!s){var i="Aliased anchor not found: ".concat(a);return n.push(new YAMLReferenceError(r,i)),null}var l=new Alias(s);return t._cstAliases.push(l),l}var u=resolveTagName(e,r);if(u)return resolveTag(e,r,u);if(r.type!==Type.PLAIN){var c="Failed to resolve ".concat(r.type," node here");return n.push(new YAMLSyntaxError(r,c)),null}try{var d=resolveString(e,r);return resolveScalar(d,o.tags,o.tags.scalarFallback)}catch(p){return p.source||(p.source=r),n.push(p),null}}function resolveNode(e,r){if(!r)return null;r.error&&e.errors.push(r.error);var t=resolveNodeProps(e.errors,r),n=t.comments,o=t.hasAnchor,a=t.hasTag;if(o){var s=e.anchors,i=r.anchor,l=s.getNode(i);l&&(s.map[s.newName(i)]=l),s.map[i]=r}if(r.type===Type.ALIAS&&(o||a)){var u="An alias node must not specify any properties";e.errors.push(new YAMLSemanticError(r,u))}var c=resolveNodeValue(e,r);if(c){c.range=[r.range.start,r.range.end],e.options.keepCstNodes&&(c.cstNode=r),e.options.keepNodeTypes&&(c.type=r.type);var d=n.before.join(`
|
|
311
|
+
`);d&&(c.commentBefore=c.commentBefore?"".concat(c.commentBefore,`
|
|
312
|
+
`).concat(d):d);var p=n.after.join(`
|
|
313
|
+
`);p&&(c.comment=c.comment?"".concat(c.comment,`
|
|
314
|
+
`).concat(p):p)}return r.resolved=c}function resolveMap(e,r){if(r.type!==Type.MAP&&r.type!==Type.FLOW_MAP){var t="A ".concat(r.type," node cannot be resolved as a mapping");return e.errors.push(new YAMLSyntaxError(r,t)),null}var n=r.type===Type.FLOW_MAP?resolveFlowMapItems(e,r):resolveBlockMapItems(e,r),o=n.comments,a=n.items,s=new YAMLMap;s.items=a,resolveComments(s,o);for(var i=!1,l=0;l<a.length;++l){var u=a[l].key;if(u instanceof Collection&&(i=!0),e.schema.merge&&u&&u.value===MERGE_KEY){a[l]=new Merge(a[l]);var c=a[l].value.items,d=null;c.some(function(h){if(h instanceof Alias){var g=h.source.type;return g===Type.MAP||g===Type.FLOW_MAP?!1:d="Merge nodes aliases can only point to maps"}return d="Merge nodes can only have Alias nodes as values"}),d&&e.errors.push(new YAMLSemanticError(r,d))}else for(var p=l+1;p<a.length;++p){var f=a[p].key;if(u===f||u&&f&&Object.prototype.hasOwnProperty.call(u,"value")&&u.value===f.value){var m='Map keys must be unique; "'.concat(u,'" is repeated');e.errors.push(new YAMLSemanticError(r,m));break}}}if(i&&!e.options.mapAsMap){var v="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new YAMLWarning(r,v))}return r.resolved=s,s}var valueHasPairComment=function e(r){var t=r.context,n=t.lineStart,o=t.node,a=t.src,s=r.props;if(s.length===0)return!1;var i=s[0].start;if(o&&i>o.valueRange.start||a[i]!==Char.COMMENT)return!1;for(var l=n;l<i;++l)if(a[l]===`
|
|
315
|
+
`)return!1;return!0};function resolvePairComment(e,r){if(valueHasPairComment(e)){var t=e.getPropValue(0,Char.COMMENT,!0),n=!1,o=r.value.commentBefore;if(o&&o.startsWith(t))r.value.commentBefore=o.substr(t.length+1),n=!0;else{var a=r.value.comment;!e.node&&a&&a.startsWith(t)&&(r.value.comment=a.substr(t.length+1),n=!0)}n&&(r.comment=t)}}function resolveBlockMapItems(e,r){for(var t=[],n=[],o=void 0,a=null,s=0;s<r.items.length;++s){var i=r.items[s];switch(i.type){case Type.BLANK_LINE:t.push({afterKey:!!o,before:n.length});break;case Type.COMMENT:t.push({afterKey:!!o,before:n.length,comment:i.comment});break;case Type.MAP_KEY:o!==void 0&&n.push(new Pair(o)),i.error&&e.errors.push(i.error),o=resolveNode(e,i.node),a=null;break;case Type.MAP_VALUE:{if(o===void 0&&(o=null),i.error&&e.errors.push(i.error),!i.context.atLineStart&&i.node&&i.node.type===Type.MAP&&!i.node.context.atLineStart){var l="Nested mappings are not allowed in compact mappings";e.errors.push(new YAMLSemanticError(i.node,l))}var u=i.node;if(!u&&i.props.length>0){u=new PlainValue(Type.PLAIN,[]),u.context={parent:i,src:i.context.src};var c=i.range.start+1;if(u.range={start:c,end:c},u.valueRange={start:c,end:c},typeof i.range.origStart=="number"){var d=i.range.origStart+1;u.range.origStart=u.range.origEnd=d,u.valueRange.origStart=u.valueRange.origEnd=d}}var p=new Pair(o,resolveNode(e,u));resolvePairComment(i,p),n.push(p),o&&typeof a=="number"&&i.range.start>a+1024&&e.errors.push(getLongKeyError(r,o)),o=void 0,a=null}break;default:o!==void 0&&n.push(new Pair(o)),o=resolveNode(e,i),a=i.range.start,i.error&&e.errors.push(i.error);e:for(var f=s+1;;++f){var m=r.items[f];switch(m&&m.type){case Type.BLANK_LINE:case Type.COMMENT:continue e;case Type.MAP_VALUE:break e;default:{var v="Implicit map keys need to be followed by map values";e.errors.push(new YAMLSemanticError(i,v));break e}}}if(i.valueRangeContainsNewline){var h="Implicit map keys need to be on a single line";e.errors.push(new YAMLSemanticError(i,h))}}}return o!==void 0&&n.push(new Pair(o)),{comments:t,items:n}}function resolveFlowMapItems(e,r){for(var t=[],n=[],o=void 0,a=!1,s="{",i=0;i<r.items.length;++i){var l=r.items[i];if(typeof l.char=="string"){var u=l.char,c=l.offset;if(u==="?"&&o===void 0&&!a){a=!0,s=":";continue}if(u===":"){if(o===void 0&&(o=null),s===":"){s=",";continue}}else if(a&&(o===void 0&&u!==","&&(o=null),a=!1),o!==void 0&&(n.push(new Pair(o)),o=void 0,u===",")){s=":";continue}if(u==="}"){if(i===r.items.length-1)continue}else if(u===s){s=":";continue}var d="Flow map contains an unexpected ".concat(u),p=new YAMLSyntaxError(r,d);p.offset=c,e.errors.push(p)}else l.type===Type.BLANK_LINE?t.push({afterKey:!!o,before:n.length}):l.type===Type.COMMENT?(checkFlowCommentSpace(e.errors,l),t.push({afterKey:!!o,before:n.length,comment:l.comment})):o===void 0?(s===","&&e.errors.push(new YAMLSemanticError(l,"Separator , missing in flow map")),o=resolveNode(e,l)):(s!==","&&e.errors.push(new YAMLSemanticError(l,"Indicator : missing in flow map entry")),n.push(new Pair(o,resolveNode(e,l))),o=void 0,a=!1)}return checkFlowCollectionEnd(e.errors,r),o!==void 0&&n.push(new Pair(o)),{comments:t,items:n}}function resolveSeq(e,r){if(r.type!==Type.SEQ&&r.type!==Type.FLOW_SEQ){var t="A ".concat(r.type," node cannot be resolved as a sequence");return e.errors.push(new YAMLSyntaxError(r,t)),null}var n=r.type===Type.FLOW_SEQ?resolveFlowSeqItems(e,r):resolveBlockSeqItems(e,r),o=n.comments,a=n.items,s=new YAMLSeq;if(s.items=a,resolveComments(s,o),!e.options.mapAsMap&&a.some(function(l){return l instanceof Pair&&l.key instanceof Collection})){var i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new YAMLWarning(r,i))}return r.resolved=s,s}function resolveBlockSeqItems(e,r){for(var t=[],n=[],o=0;o<r.items.length;++o){var a=r.items[o];switch(a.type){case Type.BLANK_LINE:t.push({before:n.length});break;case Type.COMMENT:t.push({comment:a.comment,before:n.length});break;case Type.SEQ_ITEM:if(a.error&&e.errors.push(a.error),n.push(resolveNode(e,a.node)),a.hasProps){var s="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new YAMLSemanticError(a,s))}break;default:a.error&&e.errors.push(a.error),e.errors.push(new YAMLSyntaxError(a,"Unexpected ".concat(a.type," node in sequence")))}}return{comments:t,items:n}}function resolveFlowSeqItems(e,r){for(var t=[],n=[],o=!1,a=void 0,s=null,i="[",l=null,u=0;u<r.items.length;++u){var c=r.items[u];if(typeof c.char=="string"){var d=c.char,p=c.offset;if(d!==":"&&(o||a!==void 0)&&(o&&a===void 0&&(a=i?n.pop():null),n.push(new Pair(a)),o=!1,a=void 0,s=null),d===i)i=null;else if(!i&&d==="?")o=!0;else if(i!=="["&&d===":"&&a===void 0){if(i===","){if(a=n.pop(),a instanceof Pair){var f="Chaining flow sequence pairs is invalid",m=new YAMLSemanticError(r,f);m.offset=p,e.errors.push(m)}if(!o&&typeof s=="number"){var v=c.range?c.range.start:c.offset;v>s+1024&&e.errors.push(getLongKeyError(r,a));for(var h=l.context.src,g=s;g<v;++g)if(h[g]===`
|
|
316
|
+
`){var _="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new YAMLSemanticError(l,_));break}}}else a=null;s=null,o=!1,i=null}else if(i==="["||d!=="]"||u<r.items.length-1){var C="Flow sequence contains an unexpected ".concat(d),b=new YAMLSyntaxError(r,C);b.offset=p,e.errors.push(b)}}else if(c.type===Type.BLANK_LINE)t.push({before:n.length});else if(c.type===Type.COMMENT)checkFlowCommentSpace(e.errors,c),t.push({comment:c.comment,before:n.length});else{if(i){var S="Expected a ".concat(i," in flow sequence");e.errors.push(new YAMLSemanticError(c,S))}var E=resolveNode(e,c);a===void 0?(n.push(E),l=c):(n.push(new Pair(a,E)),a=void 0),s=c.range.start,i=","}}return checkFlowCollectionEnd(e.errors,r),a!==void 0&&n.push(new Pair(a)),{comments:t,items:n}}var define_process_env_default$2={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"},binary={identify:function e(r){return r instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function e(r,t){var n=resolveString(r,t);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){for(var o=atob(n.replace(/[\n\r]/g,"")),a=new Uint8Array(o.length),s=0;s<o.length;++s)a[s]=o.charCodeAt(s);return a}else{var i="This environment does not support reading binary tags; either Buffer or atob is required";return r.errors.push(new YAMLReferenceError(t,i)),null}},options:binaryOptions,stringify:function e(r,t,n,o){var a=r.comment,s=r.type,i=r.value,l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){for(var u="",c=0;c<i.length;++c)u+=String.fromCharCode(i[c]);l=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(s||(s=binaryOptions.defaultType),s===Type.QUOTE_DOUBLE)i=l;else{for(var d=binaryOptions.lineWidth,p=Math.ceil(l.length/d),f=new Array(p),m=0,v=0;m<p;++m,v+=d)f[m]=l.substr(v,d);i=f.join(s===Type.BLOCK_LITERAL?`
|
|
317
|
+
`:" ")}return stringifyString({comment:a,type:s,value:i},t,n,o)}};function parsePairs(e,r){for(var t=resolveSeq(e,r),n=0;n<t.items.length;++n){var o=t.items[n];if(!(o instanceof Pair)){if(o instanceof YAMLMap){if(o.items.length>1){var a="Each pair must have its own sequence indicator";throw new YAMLSemanticError(r,a)}var s=o.items[0]||new Pair;o.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(o.commentBefore,`
|
|
318
|
+
`).concat(s.commentBefore):o.commentBefore),o.comment&&(s.comment=s.comment?"".concat(o.comment,`
|
|
319
|
+
`).concat(s.comment):o.comment),o=s}t.items[n]=o instanceof Pair?o:new Pair(o)}}return t}function createPairs(e,r,t){var n=new YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";var o=_createForOfIteratorHelper(r),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,i=void 0,l=void 0;if(Array.isArray(s))if(s.length===2)i=s[0],l=s[1];else throw new TypeError("Expected [key, value] tuple: ".concat(s));else if(s&&s instanceof Object){var u=Object.keys(s);if(u.length===1)i=u[0],l=s[i];else throw new TypeError("Expected { key: value } tuple: ".concat(s))}else i=s;var c=e.createPair(i,l,t);n.items.push(c)}}catch(d){o.e(d)}finally{o.f()}return n}var pairs={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs},YAMLOMap=function(e){_inherits(t,e);var r=_createSuper(t);function t(){var n;return _classCallCheck(this,t),n=r.call(this),_defineProperty(_assertThisInitialized(n),"add",YAMLMap.prototype.add.bind(_assertThisInitialized(n))),_defineProperty(_assertThisInitialized(n),"delete",YAMLMap.prototype.delete.bind(_assertThisInitialized(n))),_defineProperty(_assertThisInitialized(n),"get",YAMLMap.prototype.get.bind(_assertThisInitialized(n))),_defineProperty(_assertThisInitialized(n),"has",YAMLMap.prototype.has.bind(_assertThisInitialized(n))),_defineProperty(_assertThisInitialized(n),"set",YAMLMap.prototype.set.bind(_assertThisInitialized(n))),n.tag=t.tag,n}return _createClass(t,[{key:"toJSON",value:function(o,a){var s=new Map;a&&a.onCreate&&a.onCreate(s);var i=_createForOfIteratorHelper(this.items),l;try{for(i.s();!(l=i.n()).done;){var u=l.value,c=void 0,d=void 0;if(u instanceof Pair?(c=toJSON(u.key,"",a),d=toJSON(u.value,c,a)):c=toJSON(u,"",a),s.has(c))throw new Error("Ordered maps must not include duplicate keys");s.set(c,d)}}catch(p){i.e(p)}finally{i.f()}return s}}]),t}(YAMLSeq);_defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,r){var t=parsePairs(e,r),n=[],o=_createForOfIteratorHelper(t.items),a;try{for(o.s();!(a=o.n()).done;){var s=a.value.key;if(s instanceof Scalar)if(n.includes(s.value)){var i="Ordered maps must not include duplicate keys";throw new YAMLSemanticError(r,i)}else n.push(s.value)}}catch(l){o.e(l)}finally{o.f()}return Object.assign(new YAMLOMap,t)}function createOMap(e,r,t){var n=createPairs(e,r,t),o=new YAMLOMap;return o.items=n.items,o}var omap={identify:function e(r){return r instanceof Map},nodeClass:YAMLOMap,default:!1,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap},YAMLSet=function(e){_inherits(t,e);var r=_createSuper(t);function t(){var n;return _classCallCheck(this,t),n=r.call(this),n.tag=t.tag,n}return _createClass(t,[{key:"add",value:function(o){var a=o instanceof Pair?o:new Pair(o),s=findPair(this.items,a.key);s||this.items.push(a)}},{key:"get",value:function(o,a){var s=findPair(this.items,o);return!a&&s instanceof Pair?s.key instanceof Scalar?s.key.value:s.key:s}},{key:"set",value:function(o,a){if(typeof a!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(_typeof(a)));var s=findPair(this.items,o);s&&!a?this.items.splice(this.items.indexOf(s),1):!s&&a&&this.items.push(new Pair(o))}},{key:"toJSON",value:function(o,a){return _get(_getPrototypeOf(t.prototype),"toJSON",this).call(this,o,a,Set)}},{key:"toString",value:function(o,a,s){if(!o)return JSON.stringify(this);if(this.hasAllNullValues())return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,o,a,s);throw new Error("Set items must all have null values")}}]),t}(YAMLMap);_defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,r){var t=resolveMap(e,r);if(!t.hasAllNullValues())throw new YAMLSemanticError(r,"Set items must all have null values");return Object.assign(new YAMLSet,t)}function createSet(e,r,t){var n=new YAMLSet,o=_createForOfIteratorHelper(r),a;try{for(o.s();!(a=o.n()).done;){var s=a.value;n.items.push(e.createPair(s,null,t))}}catch(i){o.e(i)}finally{o.f()}return n}var set={identify:function e(r){return r instanceof Set},nodeClass:YAMLSet,default:!1,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet},parseSexagesimal=function e(r,t){var n=t.split(":").reduce(function(o,a){return o*60+Number(a)},0);return r==="-"?-n:n},stringifySexagesimal=function e(r){var t=r.value;if(isNaN(t)||!isFinite(t))return stringifyNumber(t);var n="";t<0&&(n="-",t=Math.abs(t));var o=[t%60];return t<60?o.unshift(0):(t=Math.round((t-o[0])/60),o.unshift(t%60),t>=60&&(t=Math.round((t-o[0])/60),o.unshift(t))),n+o.map(function(a){return a<10?"0"+String(a):String(a)}).join(":").replace(/000000\d*$/,"")},intTime={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function e(r,t,n){return parseSexagesimal(t,n.replace(/_/g,""))},stringify:stringifySexagesimal},floatTime={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function e(r,t,n){return parseSexagesimal(t,n.replace(/_/g,""))},stringify:stringifySexagesimal},timestamp={identify:function e(r){return r instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function e(r,t,n,o,a,s,i,l,u){l&&(l=(l+"00").substr(1,3));var c=Date.UTC(t,n-1,o,a||0,s||0,i||0,l||0);if(u&&u!=="Z"){var d=parseSexagesimal(u[0],u.slice(1));Math.abs(d)<30&&(d*=60),c-=6e4*d}return new Date(c)},stringify:function e(r){var t=r.value;return t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function shouldWarn(e){var r=typeof process<"u"&&define_process_env_default$2||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!r.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!r.YAML_SILENCE_WARNINGS}function warn(e,r){if(shouldWarn(!1)){var t=typeof process<"u"&&process.emitWarning;t?t(e,r):console.warn(r?"".concat(r,": ").concat(e):e)}}var warned={};function warnOptionDeprecation(e,r){if(!warned[e]&&shouldWarn(!0)){warned[e]=!0;var t="The option '".concat(e,"' will be removed in a future release");t+=", use '".concat(r,"' instead."),warn(t,"DeprecationWarning")}}function createMap(e,r,t){var n=new YAMLMap(e);if(r instanceof Map){var o=_createForOfIteratorHelper(r),a;try{for(o.s();!(a=o.n()).done;){var s=_slicedToArray(a.value,2),i=s[0],l=s[1];n.items.push(e.createPair(i,l,t))}}catch(p){o.e(p)}finally{o.f()}}else if(r&&_typeof(r)==="object")for(var u=0,c=Object.keys(r);u<c.length;u++){var d=c[u];n.items.push(e.createPair(d,r[d],t))}return typeof e.sortMapEntries=="function"&&n.items.sort(e.sortMapEntries),n}var map={createNode:createMap,default:!0,nodeClass:YAMLMap,tag:"tag:yaml.org,2002:map",resolve:resolveMap};function createSeq(e,r,t){var n=new YAMLSeq(e);if(r&&r[Symbol.iterator]){var o=_createForOfIteratorHelper(r),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,i=e.createNode(s,t.wrapScalars,null,t);n.items.push(i)}}catch(l){o.e(l)}finally{o.f()}}return n}var seq={createNode:createSeq,default:!0,nodeClass:YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:resolveSeq},string={identify:function e(r){return typeof r=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:function e(r,t,n,o){return t=Object.assign({actualString:!0},t),stringifyString(r,t,n,o)},options:strOptions},failsafe=[map,seq,string],intIdentify$2=function e(r){return typeof r=="bigint"||Number.isInteger(r)},intResolve$1=function e(r,t,n){return intOptions.asBigInt?BigInt(r):parseInt(t,n)};function intStringify$1(e,r,t){var n=e.value;return intIdentify$2(n)&&n>=0?t+n.toString(r):stringifyNumber(e)}var nullObj={identify:function e(r){return r==null},createNode:function e(r,t,n){return n.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function e(){return null},options:nullOptions,stringify:function e(){return nullOptions.nullStr}},boolObj={identify:function e(r){return typeof r=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function e(r){return r[0]==="t"||r[0]==="T"},options:boolOptions,stringify:function e(r){var t=r.value;return t?boolOptions.trueStr:boolOptions.falseStr}},octObj={identify:function e(r){return intIdentify$2(r)&&r>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function e(r,t){return intResolve$1(r,t,8)},options:intOptions,stringify:function e(r){return intStringify$1(r,8,"0o")}},intObj={identify:intIdentify$2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function e(r){return intResolve$1(r,r,10)},options:intOptions,stringify:stringifyNumber},hexObj={identify:function e(r){return intIdentify$2(r)&&r>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function e(r,t){return intResolve$1(r,t,16)},options:intOptions,stringify:function e(r){return intStringify$1(r,16,"0x")}},nanObj={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(r,t){return t?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},expObj={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function e(r){return parseFloat(r)},stringify:function e(r){var t=r.value;return Number(t).toExponential()}},floatObj={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function e(r,t,n){var o=t||n,a=new Scalar(parseFloat(r));return o&&o[o.length-1]==="0"&&(a.minFractionDigits=o.length),a},stringify:stringifyNumber},core=failsafe.concat([nullObj,boolObj,octObj,intObj,hexObj,nanObj,expObj,floatObj]),intIdentify$1=function e(r){return typeof r=="bigint"||Number.isInteger(r)},stringifyJSON=function e(r){var t=r.value;return JSON.stringify(t)},json=[map,seq,{identify:function e(r){return typeof r=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:stringifyJSON},{identify:function e(r){return r==null},createNode:function e(r,t,n){return n.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function e(){return null},stringify:stringifyJSON},{identify:function e(r){return typeof r=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function e(r){return r==="true"},stringify:stringifyJSON},{identify:intIdentify$1,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function e(r){return intOptions.asBigInt?BigInt(r):parseInt(r,10)},stringify:function e(r){var t=r.value;return intIdentify$1(t)?t.toString():JSON.stringify(t)}},{identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function e(r){return parseFloat(r)},stringify:stringifyJSON}];json.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var boolStringify=function e(r){var t=r.value;return t?boolOptions.trueStr:boolOptions.falseStr},intIdentify=function e(r){return typeof r=="bigint"||Number.isInteger(r)};function intResolve(e,r,t){var n=r.replace(/_/g,"");if(intOptions.asBigInt){switch(t){case 2:n="0b".concat(n);break;case 8:n="0o".concat(n);break;case 16:n="0x".concat(n);break}var o=BigInt(n);return e==="-"?BigInt(-1)*o:o}var a=parseInt(n,t);return e==="-"?-1*a:a}function intStringify(e,r,t){var n=e.value;if(intIdentify(n)){var o=n.toString(r);return n<0?"-"+t+o.substr(1):t+o}return stringifyNumber(e)}var yaml11=failsafe.concat([{identify:function e(r){return r==null},createNode:function e(r,t,n){return n.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function e(){return null},options:nullOptions,stringify:function e(){return nullOptions.nullStr}},{identify:function e(r){return typeof r=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function e(){return!0},options:boolOptions,stringify:boolStringify},{identify:function e(r){return typeof r=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function e(){return!1},options:boolOptions,stringify:boolStringify},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function e(r,t,n){return intResolve(t,n,2)},stringify:function e(r){return intStringify(r,2,"0b")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function e(r,t,n){return intResolve(t,n,8)},stringify:function e(r){return intStringify(r,8,"0")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function e(r,t,n){return intResolve(t,n,10)},stringify:stringifyNumber},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function e(r,t,n){return intResolve(t,n,16)},stringify:function e(r){return intStringify(r,16,"0x")}},{identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(r,t){return t?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},{identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function e(r){return parseFloat(r.replace(/_/g,""))},stringify:function e(r){var t=r.value;return Number(t).toExponential()}},{identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function e(r,t){var n=new Scalar(parseFloat(r.replace(/_/g,"")));if(t){var o=t.replace(/_/g,"");o[o.length-1]==="0"&&(n.minFractionDigits=o.length)}return n},stringify:stringifyNumber}],binary,omap,pairs,set,intTime,floatTime,timestamp),schemas={core,failsafe,json,yaml11},tags={binary,bool:boolObj,float:floatObj,floatExp:expObj,floatNaN:nanObj,floatTime,int:intObj,intHex:hexObj,intOct:octObj,intTime,map,null:nullObj,omap,pairs,seq,set,timestamp};function findTagObject(e,r,t){if(r){var n=t.filter(function(a){return a.tag===r}),o=n.find(function(a){return!a.format})||n[0];if(!o)throw new Error("Tag ".concat(r," not found"));return o}return t.find(function(a){return(a.identify&&a.identify(e)||a.class&&e instanceof a.class)&&!a.format})}function createNode$1(e,r,t){if(e instanceof Node)return e;var n=t.defaultPrefix,o=t.onTagObj,a=t.prevObjects,s=t.schema,i=t.wrapScalars;r&&r.startsWith("!!")&&(r=n+r.slice(2));var l=findTagObject(e,r,s.tags);if(!l){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||_typeof(e)!=="object")return i?new Scalar(e):e;l=e instanceof Map?map:e[Symbol.iterator]?seq:map}o&&(o(l),delete t.onTagObj);var u={value:void 0,node:void 0};if(e&&_typeof(e)==="object"&&a){var c=a.get(e);if(c){var d=new Alias(c);return t.aliasNodes.push(d),d}u.value=e,a.set(e,u)}return u.node=l.createNode?l.createNode(t.schema,e,t):i?new Scalar(e):e,r&&u.node instanceof Node&&(u.node.tag=r),u.node}function getSchemaTags(e,r,t,n){var o=e[n.replace(/\W/g,"")];if(!o){var a=Object.keys(e).map(function(f){return JSON.stringify(f)}).join(", ");throw new Error('Unknown schema "'.concat(n,'"; use one of ').concat(a))}if(Array.isArray(t)){var s=_createForOfIteratorHelper(t),i;try{for(s.s();!(i=s.n()).done;){var l=i.value;o=o.concat(l)}}catch(f){s.e(f)}finally{s.f()}}else typeof t=="function"&&(o=t(o.slice()));for(var u=0;u<o.length;++u){var c=o[u];if(typeof c=="string"){var d=r[c];if(!d){var p=Object.keys(r).map(function(f){return JSON.stringify(f)}).join(", ");throw new Error('Unknown custom tag "'.concat(c,'"; use one of ').concat(p))}o[u]=d}}return o}var sortMapEntriesByKey=function e(r,t){return r.key<t.key?-1:r.key>t.key?1:0},Schema=function(){function e(r){var t=r.customTags,n=r.merge,o=r.schema,a=r.sortMapEntries,s=r.tags;_classCallCheck(this,e),this.merge=!!n,this.name=o,this.sortMapEntries=a===!0?sortMapEntriesByKey:a||null,!t&&s&&warnOptionDeprecation("tags","customTags"),this.tags=getSchemaTags(schemas,tags,t||s,o)}return _createClass(e,[{key:"createNode",value:function(t,n,o,a){var s={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:n},i=a?Object.assign(a,s):s;return createNode$1(t,o,i)}},{key:"createPair",value:function(t,n,o){o||(o={wrapScalars:!0});var a=this.createNode(t,o.wrapScalars,null,o),s=this.createNode(n,o.wrapScalars,null,o);return new Pair(a,s)}}]),e}();_defineProperty(Schema,"defaultPrefix",defaultTagPrefix);_defineProperty(Schema,"defaultTags",defaultTags);var defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},scalarOptions={get binary(){return binaryOptions},set binary(e){Object.assign(binaryOptions,e)},get bool(){return boolOptions},set bool(e){Object.assign(boolOptions,e)},get int(){return intOptions},set int(e){Object.assign(intOptions,e)},get null(){return nullOptions},set null(e){Object.assign(nullOptions,e)},get str(){return strOptions},set str(e){Object.assign(strOptions,e)}},documentOptions={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:defaultTagPrefix}]}};function stringifyTag(e,r){if((e.version||e.options.version)==="1.0"){var t=r.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];var n=r.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(r.replace(/^tag:/,""))}var o=e.tagPrefixes.find(function(i){return r.indexOf(i.prefix)===0});if(!o){var a=e.getDefaults().tagPrefixes;o=a&&a.find(function(i){return r.indexOf(i.prefix)===0})}if(!o)return r[0]==="!"?r:"!<".concat(r,">");var s=r.substr(o.prefix.length).replace(/[!,[\]{}]/g,function(i){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[i]});return o.handle+s}function getTagObject(e,r){if(r instanceof Alias)return Alias;if(r.tag){var t=e.filter(function(i){return i.tag===r.tag});if(t.length>0)return t.find(function(i){return i.format===r.format})||t[0]}var n,o;if(r instanceof Scalar){o=r.value;var a=e.filter(function(i){return i.identify&&i.identify(o)||i.class&&o instanceof i.class});n=a.find(function(i){return i.format===r.format})||a.find(function(i){return!i.format})}else o=r,n=e.find(function(i){return i.nodeClass&&o instanceof i.nodeClass});if(!n){var s=o&&o.constructor?o.constructor.name:_typeof(o);throw new Error("Tag not resolved for ".concat(s," value"))}return n}function stringifyProps(e,r,t){var n=t.anchors,o=t.doc,a=[],s=o.anchors.getName(e);return s&&(n[s]=e,a.push("&".concat(s))),e.tag?a.push(stringifyTag(o,e.tag)):r.default||a.push(stringifyTag(o,r.tag)),a.join(" ")}function stringify$1(e,r,t,n){var o=r.doc,a=o.anchors,s=o.schema,i;if(!(e instanceof Node)){var l={aliasNodes:[],onTagObj:function(h){return i=h},prevObjects:new Map};e=s.createNode(e,!0,null,l);var u=_createForOfIteratorHelper(l.aliasNodes),c;try{for(u.s();!(c=u.n()).done;){var d=c.value;d.source=d.source.node;var p=a.getName(d.source);p||(p=a.newName(),a.map[p]=d.source)}}catch(v){u.e(v)}finally{u.f()}}if(e instanceof Pair)return e.toString(r,t,n);i||(i=getTagObject(s.tags,e));var f=stringifyProps(e,i,r);f.length>0&&(r.indentAtStart=(r.indentAtStart||0)+f.length+1);var m=typeof i.stringify=="function"?i.stringify(e,r,t,n):e instanceof Scalar?stringifyString(e,r,t,n):e.toString(r,t,n);return f?e instanceof Scalar||m[0]==="{"||m[0]==="["?"".concat(f," ").concat(m):"".concat(f,`
|
|
320
|
+
`).concat(r.indent).concat(m):m}var Anchors=function(){function e(r){_classCallCheck(this,e),_defineProperty(this,"map",Object.create(null)),this.prefix=r}return _createClass(e,[{key:"createAlias",value:function(t,n){return this.setAnchor(t,n),new Alias(t)}},{key:"createMergePair",value:function(){for(var t=this,n=new Merge,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return n.value.items=a.map(function(i){if(i instanceof Alias){if(i.source instanceof YAMLMap)return i}else if(i instanceof YAMLMap)return t.createAlias(i);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}},{key:"getName",value:function(t){var n=this.map;return Object.keys(n).find(function(o){return n[o]===t})}},{key:"getNames",value:function(){return Object.keys(this.map)}},{key:"getNode",value:function(t){return this.map[t]}},{key:"newName",value:function(t){t||(t=this.prefix);for(var n=Object.keys(this.map),o=1;;++o){var a="".concat(t).concat(o);if(!n.includes(a))return a}}},{key:"resolveNodes",value:function(){var t=this.map,n=this._cstAliases;Object.keys(t).forEach(function(o){t[o]=t[o].resolved}),n.forEach(function(o){o.source=o.source.resolved}),delete this._cstAliases}},{key:"setAnchor",value:function(t,n){if(t!=null&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");var o=this.map,a=t&&Object.keys(o).find(function(s){return o[s]===t});if(a)if(n)a!==n&&(delete o[a],o[n]=t);else return a;else{if(!n){if(!t)return null;n=this.newName()}o[n]=t}return n}}],[{key:"validAnchorNode",value:function(t){return t instanceof Scalar||t instanceof YAMLSeq||t instanceof YAMLMap}}]),e}(),visit=function e(r,t){if(r&&_typeof(r)==="object"){var n=r.tag;r instanceof Collection?(n&&(t[n]=!0),r.items.forEach(function(o){return e(o,t)})):r instanceof Pair?(e(r.key,t),e(r.value,t)):r instanceof Scalar&&n&&(t[n]=!0)}return t},listTagNames=function e(r){return Object.keys(visit(r,{}))};function parseContents(e,r){var t={before:[],after:[]},n=void 0,o=!1,a=_createForOfIteratorHelper(r),s;try{for(a.s();!(s=a.n()).done;){var i=s.value;if(i.valueRange){if(n!==void 0){var l="Document contains trailing content not separated by a ... or --- line";e.errors.push(new YAMLSyntaxError(i,l));break}var u=resolveNode(e,i);o&&(u.spaceBefore=!0,o=!1),n=u}else if(i.comment!==null){var c=n===void 0?t.before:t.after;c.push(i.comment)}else i.type===Type.BLANK_LINE&&(o=!0,n===void 0&&t.before.length>0&&!e.commentBefore&&(e.commentBefore=t.before.join(`
|
|
321
|
+
`),t.before=[]))}}catch(f){a.e(f)}finally{a.f()}if(e.contents=n||null,!n)e.comment=t.before.concat(t.after).join(`
|
|
322
|
+
`)||null;else{var d=t.before.join(`
|
|
323
|
+
`);if(d){var p=n instanceof Collection&&n.items[0]?n.items[0]:n;p.commentBefore=p.commentBefore?"".concat(d,`
|
|
324
|
+
`).concat(p.commentBefore):d}e.comment=t.after.join(`
|
|
325
|
+
`)||null}}function resolveTagDirective(e,r){var t=e.tagPrefixes,n=_slicedToArray(r.parameters,2),o=n[0],a=n[1];if(!o||!a){var s="Insufficient parameters given for %TAG directive";throw new YAMLSemanticError(r,s)}if(t.some(function(l){return l.handle===o})){var i="The %TAG directive must only be given at most once per handle in the same document.";throw new YAMLSemanticError(r,i)}return{handle:o,prefix:a}}function resolveYamlDirective(e,r){var t=_slicedToArray(r.parameters,1),n=t[0];if(r.name==="YAML:1.0"&&(n="1.0"),!n){var o="Insufficient parameters given for %YAML directive";throw new YAMLSemanticError(r,o)}if(!documentOptions[n]){var a=e.version||e.options.version,s="Document will be parsed as YAML ".concat(a," rather than YAML ").concat(n);e.warnings.push(new YAMLWarning(r,s))}return n}function parseDirectives(e,r,t){var n=[],o=!1,a=_createForOfIteratorHelper(r),s;try{for(a.s();!(s=a.n()).done;){var i=s.value,l=i.comment,u=i.name;switch(u){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,i))}catch(f){e.errors.push(f)}o=!0;break;case"YAML":case"YAML:1.0":if(e.version){var c="The %YAML directive must only be given at most once per document.";e.errors.push(new YAMLSemanticError(i,c))}try{e.version=resolveYamlDirective(e,i)}catch(f){e.errors.push(f)}o=!0;break;default:if(u){var d="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new YAMLWarning(i,d))}}l&&n.push(l)}}catch(f){a.e(f)}finally{a.f()}if(t&&!o&&(e.version||t.version||e.options.version)==="1.1"){var p=function(m){var v=m.handle,h=m.prefix;return{handle:v,prefix:h}};e.tagPrefixes=t.tagPrefixes.map(p),e.version=t.version}e.commentBefore=n.join(`
|
|
326
|
+
`)||null}function assertCollection(e){if(e instanceof Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Document$1=function(){function e(r){_classCallCheck(this,e),this.anchors=new Anchors(r.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=r,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return _createClass(e,[{key:"add",value:function(t){return assertCollection(this.contents),this.contents.add(t)}},{key:"addIn",value:function(t,n){assertCollection(this.contents),this.contents.addIn(t,n)}},{key:"delete",value:function(t){return assertCollection(this.contents),this.contents.delete(t)}},{key:"deleteIn",value:function(t){return isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):(assertCollection(this.contents),this.contents.deleteIn(t))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(t,n){return this.contents instanceof Collection?this.contents.get(t,n):void 0}},{key:"getIn",value:function(t,n){return isEmptyPath(t)?!n&&this.contents instanceof Scalar?this.contents.value:this.contents:this.contents instanceof Collection?this.contents.getIn(t,n):void 0}},{key:"has",value:function(t){return this.contents instanceof Collection?this.contents.has(t):!1}},{key:"hasIn",value:function(t){return isEmptyPath(t)?this.contents!==void 0:this.contents instanceof Collection?this.contents.hasIn(t):!1}},{key:"set",value:function(t,n){assertCollection(this.contents),this.contents.set(t,n)}},{key:"setIn",value:function(t,n){isEmptyPath(t)?this.contents=n:(assertCollection(this.contents),this.contents.setIn(t,n))}},{key:"setSchema",value:function(t,n){if(!(!t&&!n&&this.schema)){typeof t=="number"&&(t=t.toFixed(1)),t==="1.0"||t==="1.1"||t==="1.2"?(this.version?this.version=t:this.options.version=t,delete this.options.schema):t&&typeof t=="string"&&(this.options.schema=t),Array.isArray(n)&&(this.options.customTags=n);var o=Object.assign({},this.getDefaults(),this.options);this.schema=new Schema(o)}}},{key:"parse",value:function(t,n){this.options.keepCstNodes&&(this.cstNode=t),this.options.keepNodeTypes&&(this.type="DOCUMENT");var o=t.directives,a=o===void 0?[]:o,s=t.contents,i=s===void 0?[]:s,l=t.directivesEndMarker,u=t.error,c=t.valueRange;if(u&&(u.source||(u.source=this),this.errors.push(u)),parseDirectives(this,a,n),l&&(this.directivesEndMarker=!0),this.range=c?[c.start,c.end]:null,this.setSchema(),this.anchors._cstAliases=[],parseContents(this,i),this.anchors.resolveNodes(),this.options.prettyErrors){var d=_createForOfIteratorHelper(this.errors),p;try{for(d.s();!(p=d.n()).done;){var f=p.value;f instanceof YAMLError&&f.makePretty()}}catch(g){d.e(g)}finally{d.f()}var m=_createForOfIteratorHelper(this.warnings),v;try{for(m.s();!(v=m.n()).done;){var h=v.value;h instanceof YAMLError&&h.makePretty()}}catch(g){m.e(g)}finally{m.f()}}return this}},{key:"listNonDefaultTags",value:function(){return listTagNames(this.contents).filter(function(t){return t.indexOf(Schema.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(t,n){if(t[0]!=="!"||t[t.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){var o=this.tagPrefixes.find(function(a){return a.handle===t});o?o.prefix=n:this.tagPrefixes.push({handle:t,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(function(a){return a.handle!==t})}},{key:"toJSON",value:function(t,n){var o=this,a=this.options,s=a.keepBlobsInJSON,i=a.mapAsMap,l=a.maxAliasCount,u=s&&(typeof t!="string"||!(this.contents instanceof Scalar)),c={doc:this,indentStep:" ",keep:u,mapAsMap:u&&!!i,maxAliasCount:l,stringify:stringify$1},d=Object.keys(this.anchors.map);d.length>0&&(c.anchors=new Map(d.map(function(_){return[o.anchors.map[_],{alias:[],aliasCount:0,count:1}]})));var p=toJSON(this.contents,t,c);if(typeof n=="function"&&c.anchors){var f=_createForOfIteratorHelper(c.anchors.values()),m;try{for(f.s();!(m=f.n()).done;){var v=m.value,h=v.count,g=v.res;n(g,h)}}catch(_){f.e(_)}finally{f.f()}}return p}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var t=this.options.indent;if(!Number.isInteger(t)||t<=0){var n=JSON.stringify(t);throw new Error('"indent" option must be a positive integer, not '.concat(n))}this.setSchema();var o=[],a=!1;if(this.version){var s="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?s="%YAML:1.0":this.version==="1.1"&&(s="%YAML 1.1")),o.push(s),a=!0}var i=this.listNonDefaultTags();this.tagPrefixes.forEach(function(f){var m=f.handle,v=f.prefix;i.some(function(h){return h.indexOf(v)===0})&&(o.push("%TAG ".concat(m," ").concat(v)),a=!0)}),(a||this.directivesEndMarker)&&o.push("---"),this.commentBefore&&((a||!this.directivesEndMarker)&&o.unshift(""),o.unshift(this.commentBefore.replace(/^/gm,"#")));var l={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(t),stringify:stringify$1},u=!1,c=null;if(this.contents){this.contents instanceof Node&&(this.contents.spaceBefore&&(a||this.directivesEndMarker)&&o.push(""),this.contents.commentBefore&&o.push(this.contents.commentBefore.replace(/^/gm,"#")),l.forceBlockIndent=!!this.comment,c=this.contents.comment);var d=c?null:function(){return u=!0},p=stringify$1(this.contents,l,function(){return c=null},d);o.push(addComment(p,"",c))}else this.contents!==void 0&&o.push(stringify$1(this.contents,l));return this.comment&&((!u||c)&&o[o.length-1]!==""&&o.push(""),o.push(this.comment.replace(/^/gm,"#"))),o.join(`
|
|
327
|
+
`)+`
|
|
328
|
+
`}}]),e}();_defineProperty(Document$1,"defaults",documentOptions);function createNode(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2?arguments[2]:void 0;t===void 0&&typeof r=="string"&&(t=r,r=!0);var n=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),o=new Schema(n);return o.createNode(e,r,t)}var Document=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){return _classCallCheck(this,t),r.call(this,Object.assign({},defaultOptions,n))}return t}(Document$1);function parseAllDocuments(e,r){var t=[],n,o=_createForOfIteratorHelper(parse$1(e)),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,i=new Document(r);i.parse(s,n),t.push(i),n=i}}catch(l){o.e(l)}finally{o.f()}return t}function parseDocument(e,r){var t=parse$1(e),n=new Document(r).parse(t[0]);if(t.length>1){var o="Source contains multiple documents; please use YAML.parseAllDocuments()";n.errors.unshift(new YAMLSemanticError(t[1],o))}return n}function parse(e,r){var t=parseDocument(e,r);if(t.warnings.forEach(function(n){return warn(n)}),t.errors.length>0)throw t.errors[0];return t.toJSON()}function stringify(e,r){var t=new Document(r);return t.contents=e,String(t)}var YAML={createNode,defaultOptions,Document,parse,parseAllDocuments,parseCST:parse$1,parseDocument,scalarOptions,stringify};const dist$1=Object.freeze(Object.defineProperty({__proto__:null,YAML},Symbol.toStringTag,{value:"Module"})),require$$0=v4.getAugmentedNamespace(dist$1);var browser$1,hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,browser$1=require$$0.YAML),browser$1}var hasRequiredLoaders;function requireLoaders(){if(hasRequiredLoaders)return loaders;hasRequiredLoaders=1,Object.defineProperty(loaders,"__esModule",{value:!0}),loaders.loaders=void 0;let e;const r=function(l){return e===void 0&&(e=requireImportFresh()),e(l)};let t;const n=function(l,u){t===void 0&&(t=requireParseJson());try{return t(u)}catch(c){throw c.message=`JSON Error in ${l}:
|
|
329
|
+
${c.message}`,c}};let o;const s={loadJs:r,loadJson:n,loadYaml:function(l,u){o===void 0&&(o=requireBrowser());try{return o.parse(u,{prettyErrors:!0})}catch(c){throw c.message=`YAML Error in ${l}:
|
|
330
|
+
${c.message}`,c}}};return loaders.loaders=s,loaders}var getPropertyByPath={},hasRequiredGetPropertyByPath;function requireGetPropertyByPath(){if(hasRequiredGetPropertyByPath)return getPropertyByPath;hasRequiredGetPropertyByPath=1,Object.defineProperty(getPropertyByPath,"__esModule",{value:!0}),getPropertyByPath.getPropertyByPath=e;function e(r,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(r,t)?r[t]:(typeof t=="string"?t.split("."):t).reduce((o,a)=>o===void 0?o:o[a],r)}return getPropertyByPath}var hasRequiredExplorerBase;function requireExplorerBase(){if(hasRequiredExplorerBase)return ExplorerBase;hasRequiredExplorerBase=1,Object.defineProperty(ExplorerBase,"__esModule",{value:!0}),ExplorerBase.getExtensionDescription=s,ExplorerBase.ExplorerBase=void 0;var e=n(requirePath()),r=requireLoaders(),t=requireGetPropertyByPath();function n(i){return i&&i.__esModule?i:{default:i}}let o=class{constructor(l){l.cache===!0&&(this.loadCache=new Map,this.searchCache=new Map),this.config=l,this.validateConfig()}clearLoadCache(){this.loadCache&&this.loadCache.clear()}clearSearchCache(){this.searchCache&&this.searchCache.clear()}clearCaches(){this.clearLoadCache(),this.clearSearchCache()}validateConfig(){const l=this.config;l.searchPlaces.forEach(u=>{const c=e.default.extname(u)||"noExt",d=l.loaders[c];if(!d)throw new Error(`No loader specified for ${s(u)}, so searchPlaces item "${u}" is invalid`);if(typeof d!="function")throw new Error(`loader for ${s(u)} is not a function (type provided: "${typeof d}"), so searchPlaces item "${u}" is invalid`)})}shouldSearchStopWithResult(l){return!(l===null||l.isEmpty&&this.config.ignoreEmptySearchPlaces)}nextDirectoryToSearch(l,u){if(this.shouldSearchStopWithResult(u))return null;const c=a(l);return c===l||l===this.config.stopDir?null:c}loadPackageProp(l,u){const c=r.loaders.loadJson(l,u);return(0,t.getPropertyByPath)(c,this.config.packageProp)||null}getLoaderEntryForFile(l){if(e.default.basename(l)==="package.json")return this.loadPackageProp.bind(this);const u=e.default.extname(l)||"noExt",c=this.config.loaders[u];if(!c)throw new Error(`No loader specified for ${s(l)}`);return c}loadedContentToCosmiconfigResult(l,u){return u===null?null:u===void 0?{filepath:l,config:void 0,isEmpty:!0}:{config:u,filepath:l}}validateFilePath(l){if(!l)throw new Error("load must pass a non-empty string")}};ExplorerBase.ExplorerBase=o;function a(i){return e.default.dirname(i)}function s(i){const l=e.default.extname(i);return l?`extension "${l}"`:"files without extensions"}return ExplorerBase}var readFile={},hasRequiredReadFile;function requireReadFile(){if(hasRequiredReadFile)return readFile;hasRequiredReadFile=1,Object.defineProperty(readFile,"__esModule",{value:!0}),readFile.readFile=n,readFile.readFileSync=o;var e=r(v4.require$$0);function r(a){return a&&a.__esModule?a:{default:a}}async function t(a,s){return new Promise((i,l)=>{e.default.readFile(a,s,(u,c)=>{if(u){l(u);return}i(c)})})}async function n(a,s={}){const i=s.throwNotFound===!0;try{return await t(a,"utf8")}catch(l){if(i===!1&&l.code==="ENOENT")return null;throw l}}function o(a,s={}){const i=s.throwNotFound===!0;try{return e.default.readFileSync(a,"utf8")}catch(l){if(i===!1&&l.code==="ENOENT")return null;throw l}}return readFile}var cacheWrapper={},hasRequiredCacheWrapper;function requireCacheWrapper(){if(hasRequiredCacheWrapper)return cacheWrapper;hasRequiredCacheWrapper=1,Object.defineProperty(cacheWrapper,"__esModule",{value:!0}),cacheWrapper.cacheWrapper=e,cacheWrapper.cacheWrapperSync=r;async function e(t,n,o){const a=t.get(n);if(a!==void 0)return a;const s=await o();return t.set(n,s),s}function r(t,n,o){const a=t.get(n);if(a!==void 0)return a;const s=o();return t.set(n,s),s}return cacheWrapper}var getDirectory={},pathType={},hasRequiredPathType;function requirePathType(){if(hasRequiredPathType)return pathType;hasRequiredPathType=1;const{promisify:e}=requireUtil(),r=v4.require$$0;async function t(o,a,s){if(typeof s!="string")throw new TypeError(`Expected a string, got ${typeof s}`);try{return(await e(r[o])(s))[a]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}function n(o,a,s){if(typeof s!="string")throw new TypeError(`Expected a string, got ${typeof s}`);try{return r[o](s)[a]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}return pathType.isFile=t.bind(null,"stat","isFile"),pathType.isDirectory=t.bind(null,"stat","isDirectory"),pathType.isSymlink=t.bind(null,"lstat","isSymbolicLink"),pathType.isFileSync=n.bind(null,"statSync","isFile"),pathType.isDirectorySync=n.bind(null,"statSync","isDirectory"),pathType.isSymlinkSync=n.bind(null,"lstatSync","isSymbolicLink"),pathType}var hasRequiredGetDirectory;function requireGetDirectory(){if(hasRequiredGetDirectory)return getDirectory;hasRequiredGetDirectory=1,Object.defineProperty(getDirectory,"__esModule",{value:!0}),getDirectory.getDirectory=n,getDirectory.getDirectorySync=o;var e=t(requirePath()),r=requirePathType();function t(a){return a&&a.__esModule?a:{default:a}}async function n(a){return await(0,r.isDirectory)(a)===!0?a:e.default.dirname(a)}function o(a){return(0,r.isDirectorySync)(a)===!0?a:e.default.dirname(a)}return getDirectory}var hasRequiredExplorer;function requireExplorer(){if(hasRequiredExplorer)return Explorer;hasRequiredExplorer=1,Object.defineProperty(Explorer,"__esModule",{value:!0}),Explorer.Explorer=void 0;var e=a(requirePath()),r=requireExplorerBase(),t=requireReadFile(),n=requireCacheWrapper(),o=requireGetDirectory();function a(l){return l&&l.__esModule?l:{default:l}}function s(l){var u;if(typeof Symbol<"u"&&(Symbol.asyncIterator&&(u=l[Symbol.asyncIterator],u!=null)||Symbol.iterator&&(u=l[Symbol.iterator],u!=null)))return u.call(l);throw new TypeError("Object is not async iterable")}let i=class extends r.ExplorerBase{constructor(u){super(u)}async search(u=process.cwd()){const c=await(0,o.getDirectory)(u);return await this.searchFromDirectory(c)}async searchFromDirectory(u){const c=e.default.resolve(process.cwd(),u),d=async()=>{const p=await this.searchDirectory(c),f=this.nextDirectoryToSearch(c,p);return f?this.searchFromDirectory(f):await this.config.transform(p)};return this.searchCache?(0,n.cacheWrapper)(this.searchCache,c,d):d()}async searchDirectory(u){var c=!0,d=!1,p;try{for(var f=s(this.config.searchPlaces),m,v;m=await f.next(),c=m.done,v=await m.value,!c;c=!0){const h=v,g=await this.loadSearchPlace(u,h);if(this.shouldSearchStopWithResult(g)===!0)return g}}catch(h){d=!0,p=h}finally{try{!c&&f.return!=null&&await f.return()}finally{if(d)throw p}}return null}async loadSearchPlace(u,c){const d=e.default.join(u,c),p=await(0,t.readFile)(d);return await this.createCosmiconfigResult(d,p)}async loadFileContent(u,c){return c===null?null:c.trim()===""?void 0:await this.getLoaderEntryForFile(u)(u,c)}async createCosmiconfigResult(u,c){const d=await this.loadFileContent(u,c);return this.loadedContentToCosmiconfigResult(u,d)}async load(u){this.validateFilePath(u);const c=e.default.resolve(process.cwd(),u),d=async()=>{const p=await(0,t.readFile)(c,{throwNotFound:!0}),f=await this.createCosmiconfigResult(c,p);return await this.config.transform(f)};return this.loadCache?(0,n.cacheWrapper)(this.loadCache,c,d):d()}};return Explorer.Explorer=i,Explorer}var ExplorerSync={},hasRequiredExplorerSync;function requireExplorerSync(){if(hasRequiredExplorerSync)return ExplorerSync;hasRequiredExplorerSync=1,Object.defineProperty(ExplorerSync,"__esModule",{value:!0}),ExplorerSync.ExplorerSync=void 0;var e=a(requirePath()),r=requireExplorerBase(),t=requireReadFile(),n=requireCacheWrapper(),o=requireGetDirectory();function a(i){return i&&i.__esModule?i:{default:i}}let s=class extends r.ExplorerBase{constructor(l){super(l)}searchSync(l=process.cwd()){const u=(0,o.getDirectorySync)(l);return this.searchFromDirectorySync(u)}searchFromDirectorySync(l){const u=e.default.resolve(process.cwd(),l),c=()=>{const d=this.searchDirectorySync(u),p=this.nextDirectoryToSearch(u,d);return p?this.searchFromDirectorySync(p):this.config.transform(d)};return this.searchCache?(0,n.cacheWrapperSync)(this.searchCache,u,c):c()}searchDirectorySync(l){for(const u of this.config.searchPlaces){const c=this.loadSearchPlaceSync(l,u);if(this.shouldSearchStopWithResult(c)===!0)return c}return null}loadSearchPlaceSync(l,u){const c=e.default.join(l,u),d=(0,t.readFileSync)(c);return this.createCosmiconfigResultSync(c,d)}loadFileContentSync(l,u){return u===null?null:u.trim()===""?void 0:this.getLoaderEntryForFile(l)(l,u)}createCosmiconfigResultSync(l,u){const c=this.loadFileContentSync(l,u);return this.loadedContentToCosmiconfigResult(l,c)}loadSync(l){this.validateFilePath(l);const u=e.default.resolve(process.cwd(),l),c=()=>{const d=(0,t.readFileSync)(u,{throwNotFound:!0}),p=this.createCosmiconfigResultSync(u,d);return this.config.transform(p)};return this.loadCache?(0,n.cacheWrapperSync)(this.loadCache,u,c):c()}};return ExplorerSync.ExplorerSync=s,ExplorerSync}var hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist$2;hasRequiredDist=1,Object.defineProperty(dist$2,"__esModule",{value:!0}),dist$2.cosmiconfig=a,dist$2.cosmiconfigSync=s,dist$2.defaultLoaders=void 0;var e=o(v4.require$$0),r=requireExplorer(),t=requireExplorerSync(),n=requireLoaders();function o(c){return c&&c.__esModule?c:{default:c}}function a(c,d={}){const p=l(c,d),f=new r.Explorer(p);return{search:f.search.bind(f),load:f.load.bind(f),clearLoadCache:f.clearLoadCache.bind(f),clearSearchCache:f.clearSearchCache.bind(f),clearCaches:f.clearCaches.bind(f)}}function s(c,d={}){const p=l(c,d),f=new t.ExplorerSync(p);return{search:f.searchSync.bind(f),load:f.loadSync.bind(f),clearLoadCache:f.clearLoadCache.bind(f),clearSearchCache:f.clearSearchCache.bind(f),clearCaches:f.clearCaches.bind(f)}}const i=Object.freeze({".js":n.loaders.loadJs,".json":n.loaders.loadJson,".yaml":n.loaders.loadYaml,".yml":n.loaders.loadYaml,noExt:n.loaders.loadYaml});dist$2.defaultLoaders=i;function l(c,d){const p={packageProp:c,searchPlaces:["package.json",`.${c}rc`,`.${c}rc.json`,`.${c}rc.yaml`,`.${c}rc.yml`,`.${c}rc.js`,`${c}.config.js`],ignoreEmptySearchPlaces:!0,stopDir:e.default.homedir(),cache:!0,transform:u,loaders:i};return{...p,...d,loaders:{...p.loaders,...d.loaders}}}const u=function(d){return d};return dist$2}(function(e){var r=interopRequireDefaultExports,t=r(require_extends()),n=r(requireObjectWithoutPropertiesLoose());const o=requirePath(),a=requireResolve(),s=/[./]macro(\.js)?$/,i=S=>s.test(S);class l extends Error{constructor(E){super(E),this.name="MacroError",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack||(this.stack=new Error(E).stack)}}let u=null;function c(){return u=u||requireDist().cosmiconfigSync("babel-plugin-macros",{searchPlaces:["package.json",".babel-plugin-macrosrc",".babel-plugin-macrosrc.json",".babel-plugin-macrosrc.yaml",".babel-plugin-macrosrc.yml",".babel-plugin-macrosrc.js","babel-plugin-macros.config.js"],packageProp:"babelMacros"})}function d(S,E={}){if(E.configName==="options")throw new Error('You cannot use the configName "options". It is reserved for babel-plugin-macros.');return N.isBabelMacro=!0,N.options=E,N;function N(V){const{source:L,isBabelMacrosCall:B}=V;if(!B)throw new l(`The macro you imported from "${L}" is being executed outside the context of compilation with babel-plugin-macros. This indicates that you don't have the babel plugin "babel-plugin-macros" configured correctly. Please see the documentation for how to configure babel-plugin-macros properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md`);return S(V)}}function p(S,E){return a.sync(S,{basedir:E,paths:[o.resolve(__dirname,"../../")]})}function f(S,E={}){let{require:N=commonjsRequire,resolvePath:V=p,isMacrosName:L=i}=E,B=(0,n.default)(E,["require","resolvePath","isMacrosName"]);function I(H){const T=N(H);return T&&T.__esModule&&T.default?T.default:T}return{name:"macros",visitor:{Program(H,T){H.traverse({ImportDeclaration(R){if(!C(R,{node:{source:{value:A=>L(A)}}}))return;const Y=R.node.specifiers.map(A=>({localName:A.local.name,importedName:A.type==="ImportDefaultSpecifier"?"default":A.imported.name})),J=R.node.source.value,k=m({path:R,imports:Y,source:J,state:T,babel:S,interopRequire:I,resolvePath:V,options:B});(!k||!k.keepImports)&&R.remove()},VariableDeclaration(R){const X=Y=>C(Y,{node:{init:{callee:{type:"Identifier",name:"require"},arguments:J=>J.length===1&&L(J[0].value)}}});R.get("declarations").filter(X).forEach(Y=>{const J=Y.node.id.name?[{localName:Y.node.id.name,importedName:"default"}]:Y.node.id.properties.map(U=>({localName:U.value.name,importedName:U.key.name})),k=Y.get("init"),A=k.node.arguments[0].value,D=m({path:k,imports:J,source:A,state:T,babel:S,interopRequire:I,resolvePath:V,options:B});(!D||!D.keepImports)&&Y.remove()})}})}}}}function m({path:S,imports:E,source:N,state:V,babel:L,interopRequire:B,resolvePath:I,options:H}){const{file:{opts:{filename:T=""}}}=V;let R=!1;const X=E.reduce((U,{importedName:q,localName:w})=>{const P=S.scope.getBinding(w);return U[q]=P.referencePaths,R=R||!!U[q].length,U},{}),Y=N.indexOf(".")===0,J=I(N,o.dirname(_(T))),k=B(J);if(!k.isBabelMacro)throw new Error(`The macro imported from "${N}" must be wrapped in "createMacro" which you can get from "babel-plugin-macros". Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/author.md#writing-a-macro`);const A=g(k,T,N,H);let D;try{V.file.scope.path.traverse({Identifier(){}}),D=k({references:X,source:N,state:V,babel:L,config:A,isBabelMacrosCall:!0})}catch(U){throw U.name==="MacroError"||(U.message=`${N}: ${U.message}`,Y||(U.message=`${U.message} Learn more: https://www.npmjs.com/package/${N.replace(/^((?:@[^/]+\/)?[^/]+).*/,"$1")}`)),U}return D}function v(S,E){try{const N=c().search(E);if(N)return{options:N.config[S],path:N.filepath}}catch(N){return{error:N}}return{}}function h(S,E){if(E.hasOwnProperty(S))if(E[S]&&typeof E[S]!="object")console.error(`The macro plugin options' ${S} property was not an object or null.`);else return{options:E[S]};return{}}function g(S,E,N,V){const{configName:L}=S.options;if(L){const B=v(L,E),I=h(L,V);if(I.options===void 0&&B.options===void 0&&B.error!==void 0)throw console.error(`There was an error trying to load the config "${L}" for the macro imported from "${N}. Please see the error thrown for more information.`),B.error;if(B.options!==void 0&&I.options!==void 0&&typeof B.options!="object")throw new Error(`${B.path} specified a ${L} config of type ${typeof I.options}, but the the macros plugin's options.${L} did contain an object. Both configs must contain objects for their options to be mergeable.`);return(0,t.default)({},I.options,{},B.options)}}function _(S){return o.isAbsolute(S)?S:o.join(process.cwd(),S)}function C(S,E){return S&&E&&Object.keys(E).every(N=>{const V=E[N],L=S[N];return typeof V=="function"?V(L):b(V)?V===L:C(L,V)})}function b(S){return S==null||/^[sbn]/.test(typeof S)}e.exports=f,Object.assign(e.exports,{createMacro:d,MacroError:l})})(dist$3);var distExports$1=dist$3.exports;const{createMacro}=distExports$1;function requireContext({references:e,state:r,babel:{types:t}}){e.default.forEach(n=>n.parentPath.replaceWith(t.callExpression(t.identifier("require.context"),[...n.parent.arguments])))}var requireContext_macro=createMacro(requireContext);const requireContext$1=v4.getDefaultExportFromCjs(requireContext_macro);var define_import_meta_env_default$1={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let files=null;if(typeof jest<"u")files=requireContext$1("../assets/svg",!0,/^\.\/.*\.svg$/);else if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:_documentCurrentScript&&_documentCurrentScript.src||new URL("vs-component-library.js",document.baseURI).href}&&define_import_meta_env_default$1){files=Object.assign({"../assets/svg/brandscotland-logo.svg":()=>Promise.resolve().then(()=>require("./brandscotland-logo-BbDMkgti.js")).then(r=>r.default),"../assets/svg/cookie-coo.svg":()=>Promise.resolve().then(()=>require("./cookie-coo-Bc1O8aR_.js")).then(r=>r.default),"../assets/svg/highland-cow.svg":()=>Promise.resolve().then(()=>require("./highland-cow-DlMGnebG.js")).then(r=>r.default),"../assets/svg/iCentre.svg":()=>Promise.resolve().then(()=>require("./iCentre-BnLcpIw8.js")).then(r=>r.default),"../assets/svg/icons/docs/deprecated.svg":()=>Promise.resolve().then(()=>require("./deprecated-BJ2e68Yo.js")).then(r=>r.default),"../assets/svg/icons/docs/prototype.svg":()=>Promise.resolve().then(()=>require("./prototype-DQocvgQh.js")).then(r=>r.default),"../assets/svg/icons/docs/ready.svg":()=>Promise.resolve().then(()=>require("./ready-D9pdKFkx.js")).then(r=>r.default),"../assets/svg/icons/docs/review.svg":()=>Promise.resolve().then(()=>require("./review-7L3On10m.js")).then(r=>r.default),"../assets/svg/icons/instagram-filled.svg":()=>Promise.resolve().then(()=>require("./instagram-filled-CvF3WA5q.js")).then(r=>r.default),"../assets/svg/no-js-coo.svg":()=>Promise.resolve().then(()=>require("./no-js-coo-BEt1aICD.js")).then(r=>r.default),"../assets/svg/os-logo-maps-white.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-white-BTtf_Eki.js")).then(r=>r.default),"../assets/svg/os-logo-maps.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-QXAuept_.js")).then(r=>r.default),"../assets/svg/visitscotland-logo.svg":()=>Promise.resolve().then(()=>require("./visitscotland-logo-NoymCLtN.js")).then(r=>r.default)});const e={};for(const[r,t]of Object.entries(files)){const n=r.replace("../assets/svg",".");e[n]=t}files=e}else files=requireContext$1("../assets/svg?optimise",!0,/^\.\/.*\.svg$/);const output=files,_sfc_main$1c={name:"VsSvg",release:"0.1.1",status:"prototype",props:{path:{type:String,required:!0},fill:{type:String,default:""},height:{type:[Number,String],default:""},width:{type:[Number,String],default:""}},data(){return{svg:null}},computed:{nativeAttrs(){if(this.svg){const r=v4.lodashExports.first(this.svg.match(/<svg[^>]+.*?>/)).match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g),t=v4.lodashExports.fromPairs(v4.lodashExports.map(r,v4.lodashExports.partial(v4.lodashExports.split,v4.lodashExports.partial.placeholder,"=",2)));return v4.lodashExports.mapValues(t,v4.lodashExports.partial(v4.lodashExports.replace,v4.lodashExports.partial.placeholder,/"/g,""))}return null},attributes(){if(this.svg){const e={};let r={};return this.fill&&(v4.lodashExports.has(this.nativeAttrs,"style")?(r=this.nativeStyleAttrMap,r.fill=this.fill):r={fill:this.fill},e.style=v4.lodashExports.join(v4.lodashExports.map(v4.lodashExports.toPairs(r),v4.lodashExports.partial(v4.lodashExports.join,v4.lodashExports.partial.placeholder,":")),";")),this.height&&(e.height=this.height),this.width&&(e.width=this.width),v4.lodashExports.extend({},this.nativeAttrs,e)}return null},nativeStyleAttrMap(){if(this.svg){const e=v4.lodashExports.map(v4.lodashExports.split(this.nativeAttrs.style,";"),v4.lodashExports.ary(v4.lodashExports.partial(v4.lodashExports.split,v4.lodashExports.partial.placeholder,":"),1));return v4.lodashExports.fromPairs(e)}return null},children(){return this.svg?v4.lodashExports.nth(this.svg.match(/(<svg[^>]+.*?>)([\s\S]*)(<\/svg>)/),2):null}},mounted(){typeof output=="function"?this.svg=output(`./${this.path}.svg`):output[`./${this.path}.svg`]().then(e=>{this.svg=e})}},_hoisted_1$Z=["innerHTML"];function _sfc_render$15(e,r,t,n,o,a){return o.svg?(vue.openBlock(),vue.createElementBlock("svg",vue.mergeProps({key:0},a.attributes,{innerHTML:a.children,focusable:"false"}),null,16,_hoisted_1$Z)):vue.createCommentVNode("",!0)}const VsSvg=v4._export_sfc(_sfc_main$1c,[["render",_sfc_render$15]]),_sfc_main$1b={name:"VsSvgLink",status:"prototype",release:"0.0.1",components:{VsSvg,VsLink},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0},svgFill:{type:String,default:""},svgPath:{type:String,required:!0},svgHeight:{type:[Number,String],default:""},svgWidth:{type:[Number,String],default:""},dataLayerValue:{type:String,default:null},linkVariant:{type:String,default:"primary",validator:e=>e.match(/(primary|on-dark)/)}}},_hoisted_1$Y={class:"visually-hidden","data-test":"link-alt-text"};function _sfc_render$14(e,r,t,n,o,a){const s=vue.resolveComponent("VsSvg"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(i,{class:"vs-svg-link","data-test":"vs-svg-link",href:t.href,"data-layer-value":t.dataLayerValue,variant:t.linkVariant},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$Y,vue.toDisplayString(t.linkAltText),1),vue.createVNode(s,{"data-test":"vs-svg-link__svg",focusable:"false",path:t.svgPath,fill:t.svgFill,width:t.svgWidth,height:t.svgHeight},null,8,["path","fill","width","height"])]),_:1},8,["href","data-layer-value","variant"])}const VsSvgLink=v4._export_sfc(_sfc_main$1b,[["render",_sfc_render$14]]),_sfc_main$1a={name:"VsFooterCopyright",status:"prototype",release:"0.0.1",components:{VsSvgLink,VsRow:v4.VsRow,VsContainer:v4.VsContainer,VsCol:v4.VsCol},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0}},data(){return{currentYear:""}},computed:{getCurrentYear(){return new Date().getFullYear()}}},_hoisted_1$X={class:"vs-footer-copyright","data-unique-id":"vs-footer-sub_footer","data-test":"vs-footer-copyright"},_hoisted_2$E={class:"vs-footer-copyright__text"};function _sfc_render$13(e,r,t,n,o,a){const s=vue.resolveComponent("VsSvgLink"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$X,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"text-center"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:"vs-footer-copyright__logo mb-4","data-test":"vs-footer-copyright-logo","link-alt-text":t.linkAltText,href:t.href,"svg-fill":"#ffffff","svg-path":"brandscotland-logo","link-variant":"on-dark"},null,8,["link-alt-text","href"]),vue.createElementVNode("p",_hoisted_2$E,[vue.createTextVNode(" © "+vue.toDisplayString(a.getCurrentYear)+" ",1),vue.renderSlot(e.$slots,"copyright")])]),_:3})]),_:3})]),_:3})])}const FooterCopyright=v4._export_sfc(_sfc_main$1a,[["render",_sfc_render$13]]),_sfc_main$19={name:"VsGlobalMenuDropdown",status:"prototype",release:"0.1.0",components:{VsDropdown,VsDropdownItem},props:{activeSite:{type:String,required:!0},dropdownLabel:{type:String,default:"Our Websites"},websites:{type:Array,required:!0}}};function _sfc_render$12(e,r,t,n,o,a){const s=vue.resolveComponent("VsDropdownItem"),i=vue.resolveComponent("VsDropdown");return vue.openBlock(),vue.createBlock(i,{text:t.dropdownLabel,variant:"primary",class:"vs-global-menu__dropdown"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.websites,l=>(vue.openBlock(),vue.createBlock(s,{key:l.siteName,href:l.siteUrl,class:vue.normalizeClass(l.siteUrl==t.activeSite?"d-none":""),target:l.siteUrl==t.activeSite?"_self":"_blank",role:"menuitem"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(l.siteName),1)]),_:2},1032,["href","class","target"]))),128))]),_:1},8,["text"])}const VsGlobalMenuDropdown=v4._export_sfc(_sfc_main$19,[["render",_sfc_render$12]]),_sfc_main$18={name:"VsGlobalMenuList",status:"prototype",release:"0.1.0",components:{VsList},props:{activeSite:{type:String,required:!0},websites:{type:Array,required:!0}}},_hoisted_1$W=["target","href"];function _sfc_render$11(e,r,t,n,o,a){const s=vue.resolveComponent("VsList");return vue.openBlock(),vue.createBlock(s,{unstyled:"",inline:"",class:"vs-global-menu__list"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.websites,i=>(vue.openBlock(),vue.createElementBlock("li",{key:i.siteName,class:vue.normalizeClass(["vs-global-menu__list_item",[i.siteUrl==t.activeSite?"vs-global-menu__list_item--active d-none d-lg-block":""]])},[vue.createElementVNode("a",{target:i.siteUrl==t.activeSite?"_self":"_blank",href:i.siteUrl},vue.toDisplayString(i.siteName),9,_hoisted_1$W)],2))),128))]),_:1})}const VsGlobalMenuList=v4._export_sfc(_sfc_main$18,[["render",_sfc_render$11]]),_sfc_main$17={name:"VsGlobalMenu",status:"prototype",release:"0.1.0",components:{VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsGlobalMenuDropdown,VsGlobalMenuList,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{activeSite:{type:String,required:!0},dropdownLabel:{type:String,default:"Our Websites"}},data(){return{websites:[{siteName:"VisitScotland",siteUrl:"https://www.visitscotland.com/"},{siteName:"Business Events",siteUrl:"https://businessevents.visitscotland.com/"},{siteName:"Travel Trade",siteUrl:"https://traveltrade.visitscotland.org/"},{siteName:"Toolkit",siteUrl:"https://toolkit.visitscotland.org/"},{siteName:"Corporate",siteUrl:"https://www.visitscotland.org/"}]}}},_hoisted_1$V={class:"vs-global-menu"};function _sfc_render$10(e,r,t,n,o,a){const s=vue.resolveComponent("VsGlobalMenuDropdown"),i=vue.resolveComponent("VsGlobalMenuList"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer"),d=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$V,[vue.createVNode(d,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(c,{fluid:"lg",class:"px-1 px-sm-3"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"vs-global-menu__wrapper"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:"d-lg-none","active-site":t.activeSite,"dropdown-label":t.dropdownLabel,websites:o.websites},null,8,["active-site","dropdown-label","websites"]),vue.createVNode(i,{class:"d-none d-lg-flex","active-site":t.activeSite,websites:o.websites},null,8,["active-site","websites"]),vue.renderSlot(e.$slots,"second-menu-item"),vue.renderSlot(e.$slots,"third-menu-item")]),_:3})]),_:3})]),_:3})]),_:3})])}const GlobalMenu=v4._export_sfc(_sfc_main$17,[["render",_sfc_render$10]]),_sfc_main$16={name:"VsGlobalMenuLanguage",status:"prototype",release:"0.1.0",components:{VsDropdown,VsIcon:v4.VsIcon},mixins:[cookieMixin],props:{languageLabel:{type:String,default:"Language"},language:{type:String,default:"en"}},mounted(){this.cookieExists("vs_locale")||this.setCookie("vs_locale",this.localeCookie,!0),this.cookieExists("googtrans")||this.setCookie("googtrans",this.translationCookie,!0)}},_hoisted_1$U={class:"vs-global-menu__languages__text"},_hoisted_2$D={class:"vs-global-menu__languages__selected"},_hoisted_3$x={class:"vs-global-menu__languages__label",role:"menuitem"};function _sfc_render$$(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsDropdown");return vue.openBlock(),vue.createBlock(i,{variant:"primary",class:"vs-global-menu__languages"},{"button-content":vue.withCtx(()=>[vue.createVNode(s,{class:"vs-global-menu__languages__icon",name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createElementVNode("span",_hoisted_1$U,vue.toDisplayString(t.languageLabel),1),vue.createElementVNode("span",_hoisted_2$D,vue.toDisplayString(e.selectedLanguage),1)]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_3$x,[vue.createVNode(s,{name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createTextVNode(" "+vue.toDisplayString(t.languageLabel),1)]),vue.renderSlot(e.$slots,"default")]),_:3})}const GlobalMenuLanguage=v4._export_sfc(_sfc_main$16,[["render",_sfc_render$$]]),_sfc_main$15={name:"VsGlobalMenuLanguageItem",status:"prototype",release:"0.1.0",components:{VsDropdownItem},mixins:[cookieMixin],props:{languageName:{type:String,default:null},languageLink:{type:String,default:null},language:{type:String,default:null}},methods:{setLanguage(){const e=this.cookieExists("vs_locale"),r=this.cookieExists("googtrans");this.setCookie("vs_locale",this.localeCookie,!e),this.setCookie("googtrans",this.translationCookie,!r)}}};function _sfc_render$_(e,r,t,n,o,a){const s=vue.resolveComponent("VsDropdownItem");return vue.openBlock(),vue.createBlock(s,{class:"vs-global-menu__languages__item",href:t.languageLink,onClick:r[0]||(r[0]=i=>a.setLanguage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.languageName),1)]),_:1},8,["href"])}const GlobalMenuLanguageItem=v4._export_sfc(_sfc_main$15,[["render",_sfc_render$_]]),_sfc_main$14={name:"VsHtmlError",status:"prototype",release:"0.1.0",mixins:[v4.dataLayerMixin],props:{statusCode:{type:String,required:!0}},mounted(){this.createDataLayerObject("errorDataEvent",{error_type:"System Error",error_details:this.statusCode})}},_hoisted_1$T={class:"d-none"};function _sfc_render$Z(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$T)}const HtmlError=v4._export_sfc(_sfc_main$14,[["render",_sfc_render$Z]]),_sfc_main$13={name:"VsIcentre",status:"prototype",release:"0.0.1",components:{VsSvg,VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol}},_hoisted_1$S={class:"vs-icentre","data-test":"vs-icentre"},_hoisted_2$C={key:0,class:"vs-icentre__links","data-test":"vs-icentre__standalone-links"},_hoisted_3$w={class:"vs-icentre__quote-block"},_hoisted_4$o={class:"vs-icentre__links-contained","data-test":"vs-icentre__embedded-links"};function _sfc_render$Y(e,r,t,n,o,a){const s=vue.resolveComponent("VsSvg"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$S,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-icentre__intro-content"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:"vs-icentre__logo",path:"iCentre"}),e.$slots["icentre-links"]&&e.$slots["icentre-links"]()&&!(e.$slots["icentre-quote"]&&e.$slots["icentre-quote"]())?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$C,[vue.renderSlot(e.$slots,"icentre-links")])):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(i,{cols:"12",md:"10","offset-md":"1",class:vue.normalizeClass({"vs-icentre__image-offset":e.$slots["icentre-quote"]&&e.$slots["icentre-quote"]()})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"icentre-image-with-caption")]),_:3},8,["class"]),e.$slots["icentre-quote"]&&e.$slots["icentre-quote"]()?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"10","offset-md":"1",lg:"7","offset-lg":"5",class:"vs-icentre__quote-block-container"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$w,[vue.renderSlot(e.$slots,"icentre-quote"),vue.createElementVNode("div",_hoisted_4$o,[vue.renderSlot(e.$slots,"icentre-links")])])]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})])}const Icentre=v4._export_sfc(_sfc_main$13,[["render",_sfc_render$Y]]),_sfc_main$12={name:"VsIconList",status:"prototype",release:"0.0.1",props:{title:{type:String,default:""}}},_hoisted_1$R={class:"vs-icon-list","data-test":"vs-icon-list"},_hoisted_2$B={key:0,class:"vs-icon-list__title"},_hoisted_3$v={class:"vs-icon-list__list mb-0"};function _sfc_render$X(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$R,[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$B,vue.toDisplayString(t.title),1)):vue.createCommentVNode("",!0),vue.createElementVNode("ul",_hoisted_3$v,[vue.renderSlot(e.$slots,"default")])])}const IconList=v4._export_sfc(_sfc_main$12,[["render",_sfc_render$X]]),_sfc_main$11={name:"VsIconListItem",status:"prototype",release:"0.0.1",components:{VsIcon:v4.VsIcon},props:{label:{type:String,required:!0},icon:{type:String,required:!0}}},_hoisted_1$Q={class:"vs-icon-list__item","data-test":"vs-icon-list__item"};function _sfc_render$W(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$Q,[vue.createVNode(s,{name:t.icon,size:"md",class:"d-block mx-auto"},null,8,["name"]),vue.createTextVNode(" "+vue.toDisplayString(t.label),1)])}const IconListItem=v4._export_sfc(_sfc_main$11,[["render",_sfc_render$W]]),_sfc_main$10={name:"VsToggleButton",status:"prototype",release:"0.0.1",components:{VsButton:v4.VsButton,VsIcon:v4.VsIcon},props:{toggleId:{type:String,default:""}},data(){return{show:!1}},methods:{toggleAction(){this.show=!this.show,this.$emit("toggleAction",this.show)}}},_hoisted_1$P={class:"visually-hidden"};function _sfc_render$V(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(i,{class:"vs-toggle-btn","data-test":"vs-toggle-btn",variant:"transparent","icon-only":"",size:"lg","aria-controls":t.toggleId,"aria-expanded":o.show?"true":"false",onClick:a.toggleAction},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$P,[vue.renderSlot(e.$slots,"default")]),o.show?(vue.openBlock(),vue.createBlock(s,{key:0,duotone:"",class:"fa-icon-colours fa-icon-colours--white",name:"circle-xmark"})):vue.renderSlot(e.$slots,"toggle-icon",{key:1},()=>[vue.createVNode(s,{duotone:"",class:"fa-icon-colours",name:"circle-info"})])]),_:3},8,["aria-controls","aria-expanded","onClick"])}const VsToggleButton=v4._export_sfc(_sfc_main$10,[["render",_sfc_render$V]]),cookieValues$2=cookieValues$5.youtube,_sfc_main$$={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:v4.VsButton,VsToggleButton,VsWarning:v4.VsWarning},mixins:[cookieCheckerMixin],inject:{noJsMessage:{default:""},noCookiesMessage:{default:""},cookieLinkText:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:e=>e.match(/(wide|narrow)/)}},setup(){return{videoStore:useVideoStore()}},data(){return{requiredCookies:cookieValues$2,showErrorMessage:!1}},computed:{videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0},showCookieMessage(){return!!(!this.requiredCookiesExist&&this.noCookiesMessage)}},methods:{emitToggle(){this.$emit("toggleAction")},emitShowModal(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$O={key:0,class:"vs-video-caption__buttons-container"},_hoisted_2$A={class:"container"},_hoisted_3$u={key:1,class:"vs-video-caption__details"},_hoisted_4$n={class:"vs-video-caption__title"},_hoisted_5$i={class:"vs-video-caption__duration"},_hoisted_6$g={key:1,class:"vs-video-caption vs-video-caption--warning"},_hoisted_7$c={key:2,class:"vs-video-caption vs-video-caption--warning"},_hoisted_8$6={key:3,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function _sfc_render$U(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsToggleButton"),l=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption",class:vue.normalizeClass(["vs-video-caption__wrapper",`vs-video-caption__wrapper--${t.variant}`])},[a.videoLoaded&&e.requiredCookiesExist?(vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption-variants",class:vue.normalizeClass(["vs-video-caption",`vs-video-caption--${t.variant}`]),key:"video-caption"},[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$O,[vue.createElementVNode("div",_hoisted_2$A,[vue.createVNode(s,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:a.emitShowModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.videoBtnText),1)]),_:1},8,["onClick"])]),t.withToggleBtn?(vue.openBlock(),vue.createBlock(i,{key:0,onToggleAction:a.emitToggle},{default:vue.withCtx(()=>[vue.createTextVNode(" Toggle caption ")]),_:1},8,["onToggleAction"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),e.requiredCookiesExist?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$u,[vue.createElementVNode("p",_hoisted_4$n,[vue.renderSlot(e.$slots,"video-title")]),vue.createElementVNode("p",_hoisted_5$i,vue.toDisplayString(a.videoDetails.videoDurationMsg),1)])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0),!(a.videoLoaded&&e.requiredCookiesExist)&&a.showCookieMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$g,[vue.createVNode(l,{size:"small",type:"cookie"},{"button-text":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.cookieLinkText),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.noCookiesMessage)+" ",1)]),_:1})])):vue.createCommentVNode("",!0),!(a.videoLoaded&&e.requiredCookiesExist)&&e.cookiesInitStatus==="error"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$c,[vue.createVNode(l,{size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.errorMessage),1)]),_:1})])):vue.createCommentVNode("",!0),a.noJsMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$6,[vue.createVNode(l,{size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.noJsMessage),1)]),_:1})])):vue.createCommentVNode("",!0)],2)}const VsVideoCaption=v4._export_sfc(_sfc_main$$,[["render",_sfc_render$U]]),cookieValues$1=cookieValues$5.youtube,_sfc_main$_={name:"VsImageWithCaption",status:"prototype",release:"0.0.1",components:{VsImg:v4.VsImg,VsToggleButton,VsVideoCaption},mixins:[cookieCheckerMixin],provide(){return{noJsMessage:this.noJsMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText,errorMessage:this.errorMessage}},props:{altText:{type:String,default:""},closedDefaultCaption:{type:Boolean,default:!1},imageSrc:{type:String,default:""},isHeroImage:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},mobileOverlap:{type:Boolean,default:!1},toggleButtonText:{type:String,default:""},playButtonText:{type:String,default:""},videoId:{type:String,default:""},smallPlayButton:{type:Boolean,default:!1},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""},noJsMessage:{type:String,default:""},useLazyLoading:{type:Boolean,default:!0},errorMessage:{type:String,default:""},showToggle:{type:Boolean,default:!0}},data(){return{showCaption:!1,requiredCookies:cookieValues$1,uniqueCaptionId:""}},computed:{imageWithCaptionClasses(){return{"vs-image-with-caption--closed-default":this.closedDefaultCaption,"vs-image-with-caption--hero":this.isHeroImage,"vs-image-with-caption--show-caption":!this.requiredCookiesExist&&this.cookiesInitStatus===!0,"vs-image-with-caption--video":this.isVideo}},captionWrapperClasses(){return{"d-block":this.showCaption&&!this.isHeroImage,"d-flex":this.showCaption&&this.isHeroImage||this.showCaption&&this.isVideo,container:this.isHeroImage}}},mounted(){this.uniqueCaptionId=this._uid},methods:{toggleCaption(){this.showCaption=!this.showCaption}}},_hoisted_1$N={class:"vs-image-with-caption__captions"},_hoisted_2$z=["id"];function _sfc_render$T(e,r,t,n,o,a){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsToggleButton"),l=vue.resolveComponent("VsVideoCaption");return vue.openBlock(),vue.createElementBlock("figure",{class:vue.normalizeClass(["vs-image-with-caption",a.imageWithCaptionClasses]),"data-test":"vs-image-with-caption"},[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__image-wrapper",t.mobileOverlap?"vs-image-with-caption--overlapped":""])},[vue.renderSlot(e.$slots,"default",{},()=>[t.imageSrc?(vue.openBlock(),vue.createBlock(s,{key:0,src:t.imageSrc,alt:t.altText,"use-lazy-loading":t.useLazyLoading},null,8,["src","alt","use-lazy-loading"])):vue.createCommentVNode("",!0)]),t.showToggle?(vue.openBlock(),vue.createBlock(i,{key:0,"img-src":t.imageSrc,"toggle-id":o.uniqueCaptionId,onToggleAction:a.toggleCaption},{"toggle-icon":vue.withCtx(()=>[vue.renderSlot(e.$slots,"toggle-icon")]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.toggleButtonText)+" ",1)]),_:3},8,["img-src","toggle-id","onToggleAction"])):vue.createCommentVNode("",!0)],2),vue.createElementVNode("figcaption",_hoisted_1$N,[t.isVideo?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-image-with-caption__video-caption-wrapper",t.isHeroImage?"container-lg":""])},[vue.createVNode(l,{"video-btn-text":t.playButtonText,"with-toggle-btn":t.showToggle,onToggleAction:a.toggleCaption,"video-id":t.videoId,"cookie-link-text":t.cookieLinkText,"error-message":t.errorMessage,variant:t.smallPlayButton?"narrow":"wide"},{"video-title":vue.withCtx(()=>[vue.renderSlot(e.$slots,"video-title")]),_:3},8,["video-btn-text","with-toggle-btn","onToggleAction","video-id","cookie-link-text","error-message","variant"])],2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__caption-wrapper",a.captionWrapperClasses]),id:o.uniqueCaptionId},[vue.renderSlot(e.$slots,"img-caption")],10,_hoisted_2$z)])],2)}const ImageWithCaption=v4._export_sfc(_sfc_main$_,[["render",_sfc_render$T]]),_sfc_main$Z={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:bootstrapVueNext.BFormInput,VsButton:v4.VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},name:{type:String,default:""},type:{type:String,default:"text"},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){let e="";return(this.isInvalid||this.errorsList.length)&&(e="vs-input--error"),`${`vs-input--${this.fieldName}`} ${e}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},autocompleteValue(e){let r;switch(e){case"firstName":r="given-name";break;case"lastName":r="family-name";break;case"Email":r="email";break;case"PostalCode":r="postal-code";break;default:r=this.autoComplete?"on":"off";break}return r},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0}},validations(){return this.rules}},_hoisted_1$M={"data-test":"vs-input"},_hoisted_2$y=["id"],_hoisted_3$t=["id"],_hoisted_4$m={class:"visually-hidden"},_hoisted_5$h={class:"visually-hidden"};function _sfc_render$S(e,r,t,n,o,a){const s=vue.resolveComponent("BFormInput"),i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$M,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$y)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$m,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!o.clearErrorsOnFocus]])),128))],8,_hoisted_3$t)):vue.createCommentVNode("",!0),vue.createVNode(s,{ref:"input",type:t.type,class:vue.normalizeClass(["vs-input",a.elementClass]),modelValue:o.inputVal,"onUpdate:modelValue":r[0]||(r[0]=l=>o.inputVal=l),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:a.autocompleteValue(t.fieldName),v:o.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.validationRules.min!==void 0?t.validationRules.min:null,max:t.validationRules.max!==void 0?t.validationRules.max:null,disabled:t.disabled,onBlur:a.validateErrors,onChange:a.validateErrors,onFocus:a.resetErrors},null,8,["type","modelValue","class","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","disabled","onBlur","onChange","onFocus"]),a.showClearButton?(vue.openBlock(),vue.createBlock(i,{key:2,class:"vs-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:r[1]||(r[1]=vue.withModifiers(l=>a.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$h,vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsInput=v4._export_sfc(_sfc_main$Z,[["render",_sfc_render$S]]),_sfc_main$Y={name:"VsItinerary",status:"prototype",release:"0.0.1",components:{VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsAccordion,VsButton:v4.VsButton},props:{listViewText:{type:String,default:"List view"},mapViewText:{type:String,default:"Map view"}},data(){return{showMap:!1,isDesktop:!1,withinItineraryMain:!1}},mounted(){const e=document.querySelector(".vds-example");window.addEventListener("resize",this.resizeWidth),e===null?window.addEventListener("scroll",this.onScroll):e.addEventListener("scroll",this.onScroll),this.resizeWidth()},unmounted(){window.removeEventListener("resize",this.resizeWidth)},methods:{resizeWidth(){this.isDesktop=window.innerWidth>=1200,this.showMap=window.innerWidth>=1200},onScroll(){const e=this.$el.getBoundingClientRect(),r=e.top<=(window.innerHeight||document.documentElement.clientHeight),t=e.bottom<=(window.innerHeight||document.documentElement.clientHeight);this.withinItineraryMain=!!(r&&!t)},toggleShowMap(){this.showMap=!this.showMap}}},_hoisted_1$L={class:"vs-itinerary","data-test":"vs-itinerary"},_hoisted_2$x={class:"fixed-bottom"},_hoisted_3$s={class:"d-flex justify-content-center pb-2"},_hoisted_4$l={key:0,class:"vs-itinerary__map-container","data-chromatic":"ignore"};function _sfc_render$R(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsAccordion"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$L,[vue.withDirectives(vue.createElementVNode("div",_hoisted_2$x,[vue.createElementVNode("div",_hoisted_3$s,[vue.createVNode(s,{class:"vs-itinerary__map-toggle-button",onClick:r[0]||(r[0]=d=>a.toggleShowMap()),icon:o.showMap?"list":"map","data-test":"vs-itinerary-btn"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.showMap?t.listViewText:t.mapViewText),1)]),_:1},8,["icon"])])],512),[[vue.vShow,!o.isDesktop&&o.withinItineraryMain]]),o.isDesktop||o.showMap?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$l,[vue.renderSlot(e.$slots,"map")])):vue.createCommentVNode("",!0),vue.createVNode(c,{class:"vs-itinerary__outer-container"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"p-0 vs-itinerary__accordion-container"},{default:vue.withCtx(()=>[vue.createVNode(i,{"break-point":"lg"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"list")]),_:3})]),_:3})]),_:3})]),_:3})])}const Itinerary=v4._export_sfc(_sfc_main$Y,[["render",_sfc_render$R]]),_sfc_main$X={name:"VsItineraryDay",status:"prototype",release:"0.0.1",components:{VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsIcon:v4.VsIcon,VsAccordionItem},props:{defaultShow:{type:Boolean,default:!0},dayLabel:{type:String,required:!0},dayNumber:{type:String,required:!0},dayTitle:{type:String,required:!0}},data(){return{show:this.defaultShow}}},_hoisted_1$K={class:"vs-itinerary-day"},_hoisted_2$w={class:"vs-itinerary-day__header"},_hoisted_3$r={class:"vs-itinerary-day__title vs-heading vs-heading--style-level-2 d-inline-block"},_hoisted_4$k={class:"vs-itinerary-day__sub-heading"},_hoisted_5$g=["id"],_hoisted_6$f={class:"vs-itinerary-day__intro-content"},_hoisted_7$b={class:"list-unstyled"};function _sfc_render$Q(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsAccordionItem"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$K,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{"open-by-default":o.show,"control-id":"itinerary-day-"+t.dayNumber,variant:"transparent","item-break-point":"lg",class:"vs-itinerary-day__list-item"},{title:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$w,[vue.createElementVNode("span",_hoisted_3$r,vue.toDisplayString(t.dayLabel)+" "+vue.toDisplayString(t.dayNumber),1),vue.createElementVNode("span",_hoisted_4$k,vue.toDisplayString(t.dayTitle),1)])]),"icon-open":vue.withCtx(()=>[vue.createVNode(s,{name:"chevron",orientation:"down",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),"icon-closed":vue.withCtx(()=>[vue.createVNode(s,{name:"chevron",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),default:vue.withCtx(()=>[vue.createElementVNode("div",{id:"dayPanel_"+t.dayNumber,class:"vs-itinerary-day__panel"},[vue.createElementVNode("div",_hoisted_6$f,[vue.renderSlot(e.$slots,"day-transport"),vue.renderSlot(e.$slots,"day-introduction")]),vue.createElementVNode("ul",_hoisted_7$b,[vue.renderSlot(e.$slots,"stops")])],8,_hoisted_5$g)]),_:3},8,["open-by-default","control-id"])]),_:3})]),_:3})]),_:3})])}const ItineraryDay=v4._export_sfc(_sfc_main$X,[["render",_sfc_render$Q]]),_sfc_main$W={name:"VsItineraryStop",status:"prototype",release:"0.0.1",components:{VsHeading:v4.VsHeading,VsIcon:v4.VsIcon},props:{stopLabel:{type:String,required:!0},stopNumber:{type:String,required:!0},stopTitle:{type:String,required:!0}}},_hoisted_1$J={class:"vs-itinerary-stop","data-test":"vs-itinerary-stop"},_hoisted_2$v={class:"border"},_hoisted_3$q={class:"d-flex justify-content-start align-items-top","data-test":"vs-itinerary-stop-heading"},_hoisted_4$j={class:"position-relative"},_hoisted_5$f={class:"map-marker__count","aria-hidden":"true","data-test":"vs-itinerary-stop-marker"},_hoisted_6$e={class:"vs-itinerary-stop__details-container","data-chromatic":"ignore"},_hoisted_7$a={key:0,class:"vs-itinerary-stop__address","data-test":"vs-itinerary-stop-address"};function _sfc_render$P(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$J,[vue.createElementVNode("div",_hoisted_2$v,[vue.createElementVNode("div",_hoisted_3$q,[vue.createElementVNode("div",_hoisted_4$j,[vue.createVNode(s,{name:"map-marker-filled",variant:"tertiary",size:"xl"}),vue.createElementVNode("span",_hoisted_5$f,vue.toDisplayString(t.stopNumber),1)]),vue.createVNode(i,{level:"3",class:"vs-itinerary-stop__title ms-4 mt-0"},{"sub-heading":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopTitle),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopLabel)+" ",1)]),_:1})]),vue.renderSlot(e.$slots,"default"),vue.renderSlot(e.$slots,"stop-description"),vue.renderSlot(e.$slots,"stop-tips"),vue.createElementVNode("div",_hoisted_6$e,[e.$slots["stop-address"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$a,[vue.renderSlot(e.$slots,"stop-address")])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"stop-info")]),vue.renderSlot(e.$slots,"stop-facilities")]),e.$slots["stop-buttons"]?vue.renderSlot(e.$slots,"stop-buttons",{key:0}):vue.createCommentVNode("",!0)])}const ItineraryStop=v4._export_sfc(_sfc_main$W,[["render",_sfc_render$P]]),_sfc_main$V={name:"VsItineraryStopInfo",status:"prototype",release:"0.0.1",components:{VsIcon:v4.VsIcon,VsLink},props:{openingHours:{type:[String,Object],required:!1,default:null},openingTimesLink:{type:String,required:!1,default:null},closedText:{type:String,required:!0},closingSoonText:{type:String,required:!0},openText:{type:String,required:!0},usualText:{type:String,required:!0},provisionalText:{type:String,required:!0},temporarilyClosedText:{type:String,required:!0},toText:{type:String,required:!0},andText:{type:String,required:!0}},data(){return{openingMessage:"",currentDayData:{},currentTime:{},dayDataIndex:0,closedLongTerm:!1,ukDate:"",isCurrentTimeframe:!1,parsedHours:{}}},computed:{hoursMessage(){let e="";if(this.closedLongTerm)e=this.temporarilyClosedText;else if(this.currentDayData.length>0)switch(this.openingMessage){case"closed":e=this.closedText;break;case"closing soon":e=this.closingSoonText;break;case"open":e=this.openText;break;default:e=""}return e},provisionalMessage(){let e="";if(typeof this.currentDayData[0]<"u"){const r=this.currentDayData[0].state==="open"?this.openText:this.closedText;this.currentDayData[0].provisional?e=`${this.provisionalText} ${r.toLowerCase()} ${this.currentDayData[0].day}`:e=`${this.usualText} ${r.toLowerCase()} ${this.currentDayData[0].day}`,this.currentDayData[0].state!=="closed"&&typeof this.currentDayData[this.dayDataIndex]<"u"&&typeof this.currentDayData[this.dayDataIndex].startTime<"u"&&typeof this.currentDayData[this.dayDataIndex].endTime<"u"&&this.currentDayData[this.dayDataIndex].startTime!==""&&this.currentDayData[this.dayDataIndex].endTime!==""&&this.currentDayData.forEach((t,n)=>{e+=` ${t.startTime} ${this.toText} ${t.endTime}`,n+1<this.currentDayData.length&&(e+=` ${this.andText} `)})}return e}},created(){this.parseIncomingData(),this.getCurrentTime(),this.isActiveDate(),this.getCurrentHoursInfo()},methods:{parseIncomingData(){if(typeof this.openingHours!="object"){const e=this.openingHours.replace(/'/g,'"');this.parsedHours=JSON.parse(e)}else this.parsedHours=this.openingHours;this.parsedHours.closedLongTerm&&(this.closedLongTerm=!0)},getCurrentTime(){const e=new Date,r=e.toLocaleTimeString("en-GB",{timeZone:"Europe/London"});this.ukDate=e.toLocaleDateString("en-GB",{timeZone:"Europe/London"});const t=r.substring(0,2),n=r.substring(3,6),o=e.getDay();this.currentTime.hours=parseInt(t,10),this.currentTime.minutes=parseInt(n,10),this.currentTime.day=o},isActiveDate(){if(typeof this.parsedHours.period<"u"){const e=`${this.ukDate.substring(3,5)}/${this.ukDate.substring(0,2)}/${this.ukDate.substring(6,10)}`,r=new Date(this.parsedHours.period.startDay),t=new Date(this.parsedHours.period.endDay),n=new Date(e);n<t&&n>r?this.isCurrentTimeframe=!0:this.isCurrentTimeframe=!1}else this.isCurrentTimeframe=!0},getCurrentHoursInfo(){const e=this.returnDayName(this.currentTime.day);if(typeof this.parsedHours.days<"u"){const r=this.parsedHours.days.filter(t=>t.key===e);typeof r<"u"&&(this.currentDayData=r,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}},compareTimes(e,r,t){if(typeof r[t].startTime<"u"&&typeof r[t].endTime<"u"&&r[t].startTime.length>0&&r[t].endTime.length>0){const n=r[t].startTime,o=r[t].endTime,a=parseInt(n.substring(0,n.indexOf(":")),10),s=parseInt(n.substring(n.indexOf(":")+1,n.length),10),i=parseInt(o.substring(0,o.indexOf(":")),10),l=parseInt(o.substring(o.indexOf(":")+1,o.length),10),u=this.calculateClosingSoon(i,l);r[t].state==="closed"?this.openingMessage="closed":a>e.hours||a===e.hours&&s>e.minutes||i<e.hours||i===e.hours&&l<e.minutes?this.openingMessage="closed":this.withinClosingSoonTime(e,u)?this.openingMessage="closing soon":this.openingMessage="open",this.openingMessage==="closed"&&r.length>t+1&&(this.dayDataIndex+=1,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}else r[t].state==="closed"&&(this.openingMessage="closed")},returnDayName(e){let r="";switch(e){case 1:r="monday";break;case 2:r="tuesday";break;case 3:r="wednesday";break;case 4:r="thursday";break;case 5:r="friday";break;case 6:r="saturday";break;case 7:r="sunday";break;default:r=""}return r},calculateClosingSoon(e,r){let t,n;return r<30?(t=e-1,n=60+(r-30)):(t=e,n=r-30),{hours:t,mins:n}},withinClosingSoonTime(e,r){return!(r.hours>e.hours||r.hours===e.hours&&r.mins>e.minutes)}}},_hoisted_1$I={class:"vs-itinerary-stop-info","data-test":"vs-itinerary-stop-info"},_hoisted_2$u={key:0,class:"itinerary-stop-info__times mb-0","data-test":"vs-itinerary-stop-status"},_hoisted_3$p=vue.createElementVNode("br",null,null,-1),_hoisted_4$i={key:1,"data-test":"vs-itinerary-stop-hours"},_hoisted_5$e={key:1,"data-test":"vs-stop-link"},_hoisted_6$d={key:2,"data-test":"vs-stop-charge-text"};function _sfc_render$O(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$I,[vue.createVNode(s,{name:"information",class:"vs-address__map-marker me-2"}),vue.createElementVNode("div",null,[o.isCurrentTimeframe?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[a.hoursMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$u,[vue.createTextVNode(vue.toDisplayString(a.hoursMessage),1),_hoisted_3$p])):vue.createCommentVNode("",!0),!o.closedLongTerm&&typeof o.currentDayData[0]<"u"&&typeof o.currentDayData[0].state<"u"&&a.provisionalMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$i,vue.toDisplayString(a.provisionalMessage)+". ",1)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.$slots["stop-link-text"]&&t.openingTimesLink!==null?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$e,[vue.createVNode(i,{href:t.openingTimesLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stop-link-text")]),_:3},8,["href"])])):vue.createCommentVNode("",!0),e.$slots["stop-charge-text"]?(vue.openBlock(),vue.createElementBlock("p",_hoisted_6$d,[vue.renderSlot(e.$slots,"stop-charge-text")])):vue.createCommentVNode("",!0)])])}const ItineraryStopInfo=v4._export_sfc(_sfc_main$V,[["render",_sfc_render$O]]),_sfc_main$U={name:"VsItineraryTips",status:"prototype",release:"0.0.1",components:{},props:{}},_hoisted_1$H={class:"vs-itinerary-tips position-relative my-7"},_hoisted_2$t={class:"vs-itinerary-tips__text"},_hoisted_3$o={class:"vs-itinerary-tips__svg position-absolute"};function _sfc_render$N(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$H,[vue.createElementVNode("div",_hoisted_2$t,[vue.renderSlot(e.$slots,"text")]),vue.createElementVNode("div",_hoisted_3$o,[vue.renderSlot(e.$slots,"svg")])])}const ItineraryTips=v4._export_sfc(_sfc_main$U,[["render",_sfc_render$N]]),_sfc_main$T={name:"VsLinkList",status:"prototype",release:"0.0.1"},_hoisted_1$G={class:"link-list"};function _sfc_render$M(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("nav",null,[vue.createElementVNode("ul",_hoisted_1$G,[vue.renderSlot(e.$slots,"default")])])}const VsLinkList=v4._export_sfc(_sfc_main$T,[["render",_sfc_render$M]]),_sfc_main$S={name:"VsLinkListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download|video)/)},videoId:{type:String,default:null},videoDescriptor:{type:String,default:null}},setup(){return{videoStore:useVideoStore()}},computed:{formattedVideoDuration(){if(this.videoDetails){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`}return""},videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0}},methods:{emitShowModal(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$F={class:"link-list-item"};function _sfc_render$L(e,r,t,n,o,a){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$F,[vue.createVNode(s,{href:t.href,type:t.type=="video"?"default":t.type,role:t.type=="video"?"button":null,onClick:a.emitShowModal},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),t.type=="video"&&a.videoLoaded?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(" | "+vue.toDisplayString(t.videoDescriptor)+" "+vue.toDisplayString(a.formattedVideoDuration),1)],64)):vue.createCommentVNode("",!0)]),_:3},8,["href","type","role","onClick"])])}const LinkListItem=v4._export_sfc(_sfc_main$S,[["render",_sfc_render$L]]),_sfc_main$R={name:"VsListicleItem",status:"prototype",release:"0.0.1",components:{VsHeading:v4.VsHeading,VsRow:v4.VsRow,VsCol:v4.VsCol},props:{index:{type:String,default:""},title:{type:String,default:""},subTitle:{type:String,default:""}},computed:{hasKeyFacilitiesSlot(){return!!this.$slots["facilities-slot"]}}},_hoisted_1$E={class:"vs-listicle-item border","data-test":"vs-listicle-item"},_hoisted_2$s={class:"d-flex justify-content-start align-items-top border-bottom border-white"},_hoisted_3$n={class:"position-relative"},_hoisted_4$h={class:"count__bg"},_hoisted_5$d={class:"count","aria-hidden":"true"};function _sfc_render$K(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$E,[vue.renderSlot(e.$slots,"hippo-details"),vue.createElementVNode("div",_hoisted_2$s,[vue.createElementVNode("div",_hoisted_3$n,[vue.createElementVNode("div",_hoisted_4$h,[vue.createElementVNode("span",_hoisted_5$d,vue.toDisplayString(t.index),1)])]),vue.createVNode(s,{level:"2"},{"sub-heading":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subTitle),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title)+" ",1)]),_:1})]),vue.renderSlot(e.$slots,"image-slot"),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",lg:"8",class:"mt-2 mt-sm-9 mb-4 mt-lg-2 pe-lg-9"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"description-slot")]),_:3}),vue.createVNode(i,{cols:"12",lg:"4",class:vue.normalizeClass(["key-facilities-list mt-lg-10",[a.hasKeyFacilitiesSlot?"has-facilities":""]])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"facilities-slot")]),_:3},8,["class"])]),_:3})])}const ListicleItem=v4._export_sfc(_sfc_main$R,[["render",_sfc_render$K]]);var define_import_meta_env_default={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},define_process_env_default$1={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"};const getEnvValue=e=>define_process_env_default$1?define_process_env_default$1[e]:define_import_meta_env_default[e],_sfc_main$Q={name:"VsSelect",status:"prototype",release:"0.0.1",components:{BFormSelect:bootstrapVueNext.BFormSelect},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{options:{type:Array,required:!0},fieldName:{type:String,required:!0},value:{type:String,default:""},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},countryListUrl:{type:String,default:""},hintText:{type:String,default:""},countries:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,touched:!1,countryList:[]}},computed:{errorClass(){return this.errorsList.length>0&&this.v$.inputVal&&this.v$.inputVal.$anyDirty||this.invalid?"vs-select__element--error":""},fieldOptions(){return this.countries?this.countryList:this.options}},watch:{inputVal(e){this.emitStatus(),this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},beforeMount(){this.countries&&v4.axios.get(this.countryListUrl).then(e=>{this.countryList=e.data.countries})},methods:{autocompleteValue(e){let r;switch(e){case"Country":r="country-name";break;default:r="on";break}return r}},validations(){return this.rules}},_hoisted_1$D={class:"vs-select"},_hoisted_2$r=["id"],_hoisted_3$m=["id"],_hoisted_4$g={class:"visually-hidden"},_hoisted_5$c={class:"vs-select__container mt-2"},_hoisted_6$c=vue.createElementVNode("span",{class:"vs-select__focus"},null,-1);function _sfc_render$J(e,r,t,n,o,a){const s=vue.resolveComponent("BFormSelect");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$D,[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$r),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,i=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:i,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$g,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[i]||t.genericValidation[i]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$m)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5$c,[vue.createVNode(s,vue.mergeProps({modelValue:o.inputVal,"onUpdate:modelValue":r[0]||(r[0]=i=>o.inputVal=i)},e.$attrs,{options:a.fieldOptions,name:t.fieldName,id:t.fieldName,onChange:e.emitStatus,onBlur:e.emitStatus,"data-test":"vs-select","data-testid":"vs-select",class:["vs-select__element",a.errorClass],required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,autocomplete:a.autocompleteValue(t.fieldName)}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete"]),_hoisted_6$c])])}const VsSelect=v4._export_sfc(_sfc_main$Q,[["render",_sfc_render$J]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_extends.apply(this,arguments)}var defer=function e(){var r=!1,t=[],n=function(){if(!r){r=!0;for(var i=0,l=t.length;i<l;i++)t[i]()}},o=function(i){if(!r){t.push(i);return}i()},a={resolved:function(){return r},resolve:n,promise:{then:o}};return a},ownProp=Object.prototype.hasOwnProperty;function createRecaptcha(){var e=defer();return{notify:function(){e.resolve()},wait:function(){return e.promise},render:function(t,n,o){this.wait().then(function(){o(window.grecaptcha.render(t,n))})},reset:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(t)}))},execute:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(t)}))},checkRecaptchaLoad:function(){ownProp.call(window,"grecaptcha")&&ownProp.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!e.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var recaptcha=createRecaptcha();typeof window<"u"&&(window.vueRecaptchaApiLoaded=recaptcha.notify);var Recaptcha=vue.defineComponent({name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!0},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},emits:["render","verify","expired","error"],setup:function e(r,t){var n=t.slots,o=t.emit,a=vue.ref(null),s=vue.ref(null),i=function(d){o("verify",d)},l=function(){o("expired")},u=function(){o("error")};return vue.onMounted(function(){if(recaptcha.checkRecaptchaLoad(),r.loadRecaptchaScript&&!document.getElementById(r.recaptchaScriptId)){var c=document.createElement("script");c.id=r.recaptchaScriptId,c.src="https://"+r.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+r.language,c.async=!0,c.defer=!0,document.head.appendChild(c)}var d=_extends({},r,{callback:i,"expired-callback":l,"error-callback":u}),p=a.value,f=n.default?p.children[0]:p;recaptcha.render(f,d,function(m){s.value=m,o("render",m)})}),{root:a,widgetId:s,reset:function(){recaptcha.reset(s.value)},execute:function(){recaptcha.execute(s.value)}}},render:function e(){var r=this.$slots.default,t;return typeof r=="function"?t=r():t=r,vue.h("div",{ref:"root"},t)}});const _sfc_main$P={name:"VsRecaptcha",status:"prototype",release:"0.0.1",components:{VueRecaptcha:Recaptcha},props:{siteKey:{type:String,default:""},invalid:{type:Boolean,default:!1},language:{type:String,default:"en"},errorMsg:{type:String,default:""},textareaLabel:{type:String,default:"Does not need any text"},reAlertErrors:{type:Boolean,default:!1}},data(){return{response:null,recaptchaSiteKey:""}},created(){this.siteKey?this.recaptchaSiteKey=this.siteKey:this.recaptchaSiteKey=getEnvValue("RECAPTCHA_TOKEN")},methods:{verified(e){this.$emit("verified",e)},render(){const e=document.querySelectorAll('[id^="g-recaptcha-response"]');if(e.length){const r=e[0].parentNode,t=document.querySelector('label[for="g-recaptcha-response"]'),n=document.createElement("label");n.setAttribute("for","g-recaptcha-response"),n.setAttribute("class","visually-hidden"),n.textContent=this.textareaLabel,t||r.insertBefore(n,e[0])}}}},_hoisted_1$C={class:"vs-recaptcha","aria-live":"assertive"},_hoisted_2$q={key:0,class:"error"};function _sfc_render$I(e,r,t,n,o,a){const s=vue.resolveComponent("VueRecaptcha");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$C,[t.invalid&&!t.reAlertErrors?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$q,vue.toDisplayString(t.errorMsg),1)):vue.createCommentVNode("",!0),o.recaptchaSiteKey?(vue.openBlock(),vue.createBlock(s,{key:1,sitekey:o.recaptchaSiteKey,onVerify:a.verified,onRender:a.render,class:vue.normalizeClass(["vs-recaptcha__embed",t.invalid?"vs-recaptcha__embed--error":""]),language:t.language},null,8,["sitekey","onVerify","onRender","class","language"])):vue.createCommentVNode("",!0)])}const VsRecaptcha=v4._export_sfc(_sfc_main$P,[["render",_sfc_render$I]]),_sfc_main$O={name:"VsForm",status:"prototype",release:"0.0.1",components:{VsInput,VsSelect,VsCheckbox,BFormGroup:bootstrapVueNext.BFormGroup,VsRecaptcha,VsButton:v4.VsButton,VsHeading:v4.VsHeading,VsWarning:v4.VsWarning},mixins:[v4.dataLayerMixin],props:{isMarketo:{type:Boolean,default:!0},submitUrl:{type:String,default:""},dataUrl:{type:String,required:!0},recaptchaKey:{type:String,default:getEnvValue("RECAPTCHA_TOKEN")},recaptchaTextareaLabel:{type:String,default:"Does not need any text"},isProd:{type:Boolean,default:!1},munchkinId:{type:String,required:!0},marketoInstance:{type:String,required:!0},language:{type:String,default:"en"},messagingUrl:{type:String,required:!0},countryListUrl:{type:String,default:""},isTest:{type:Boolean,default:!0}},data(){return{submitted:!1,submitting:!1,submitError:!1,formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,recaptchaVerified:!1,conditionalFields:{},inputVal:"",reAlertErrors:!1}},computed:{formId(){return this.isProd?this.formData.formLiveId:this.formData.formSandboxId},showFormHeading(){return!this.isUndefined(this.getTranslatedContent)&&!this.isUndefined(this.getTranslatedContent("heading"))}},created(){this.getFormData(),this.getGlobalMessaging()},methods:{getFormData(){v4.axios.get(this.dataUrl).then(e=>{this.formData=e.data,this.isMarketo&&window.MktoForms2&&window.MktoForms2.loadForm(this.marketoInstance,this.munchkinId,this.formId),e.data.fields.forEach(r=>{this.form[r.name]="",r.conditional&&(this.conditionalFields[r.name]=!1)})}).catch(()=>{})},getGlobalMessaging(){v4.axios.get(this.messagingUrl).then(e=>{this.messagingData=e.data}).catch(()=>{})},getLanguageObj(){let e;return this.isUndefined(this.formData[this.language])?e={}:e=this.formData[this.language]||void 0,e},getTranslatedLabel(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].label)?n=t[e].label:n=this.formData.fields[r].label,this.showOptionalText(this.formData.fields[r])&&!this.isUndefined(this.getMessagingData("optional",this.language))&&(n=`${n} (${this.getMessagingData("optional",this.language)})`),n},getTranslatedLegend(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].descriptor)?n=t[e].descriptor:n=this.formData.fields[r].descriptor,n},getTranslatedInfo(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].info)?n=t[e].info:n=this.formData.fields[r].info,n},getTranslatedValidation(e,r){const t=this.getLanguageObj();let n;return this.language==="en"&&!this.isUndefined(this.formData.fields[r].validationMessages)?n=this.formData.fields[r].validationMessages:!this.isUndefined(t[e])&&!this.isUndefined(t[e].validationMessages)?n=t[e].validationMessages:this.language==="en"&&(n=this.formData.fields[r].validationMessages),n},getTranslatedOptions(e,r){const t=this.getLanguageObj();let n=[];return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined([e].options)?n=t[e].options:n=this.formData.fields[r].options,typeof n>"u"&&(n=[]),n},getTranslatedHint(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].hint)?n=t[e].hint:this.isUndefined(this.formData.fields[r].hint)?n="":n=this.formData.fields[r].hint,n},getTranslatedContent(e){let r;const t=this.getLanguageObj();return this.language==="en"&&!this.isUndefined(this.formData.content)&&!this.isUndefined(this.formData.content[e])?r=this.formData.content[e]:!this.isUndefined(t.content)&&!this.isUndefined(t.content[e])?r=t.content[e]:r=this.getMessagingData(e,this.language),r},getMessagingData(e,r){return Object.keys(this.messagingData).length>0?this.messagingData[r][e]:e==="validation"?{}:""},isUndefined(e){return typeof e>"u"},updateFieldData(e){this.form[e.field]=e.value||"",Array.isArray(e.errors)?this.formIsInvalid=e.errors.length>0:this.formIsInvalid=e.errors!==null,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields()},manageErrorStatus(e,r){const t=this.errorFields.indexOf(e);t!==-1?(!r||r.length<1)&&this.errorFields.splice(t,1):r&&r.length>0&&this.errorFields.push(e)},showOptionalText(e){return!!(this.isUndefined(e.validation)||this.isUndefined(e.validation.required))},needsLabel(e){return!(e.element==="radio"||e.element==="submit"||e.element==="checkbox")},preSubmit(e){e.preventDefault();function r(n){return n.validation&&n.validation.required}this.isTest||this.onRecaptchaVerify(),this.triggerValidate=!0;const t=this.formData.fields.filter(r);t.length===0?this.formIsInvalid=!1:t.forEach(n=>{this.form[n.name]===""&&(this.formIsInvalid=!0)}),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach(([n,o])=>{o||(this.form[n]="")}),this.errorFields.length>0&&(this.formIsInvalid=!0),!this.formIsInvalid&&this.recaptchaVerified?this.isMarketo?this.marketoSubmit():this.axiosSubmit():(this.showErrorMessage=!0,this.reAlertErrors=!0,setTimeout(()=>{this.reAlertErrors=!1},100))},marketoSubmit(){this.createDataLayerObject("formsDataEvent");const e=window.MktoForms2.allForms()[0];e.addHiddenFields(this.form),window.grecaptcha&&e.addHiddenFields({lastReCAPTCHAUserFingerprint:window.grecaptcha.getResponse(),lastRecaptchaEnabledFormID:this.formId}),e.onSuccess(()=>(this.submitting=!1,this.submitted=!0,!1)),e.onSubmit(()=>{this.submitting=!0}),e.submit()},axiosSubmit(){this.submitting=!0;let e="";window.grecaptcha&&(e=window.grecaptcha.getResponse()),v4.axios.post(this.submitUrl,{...this.form,formType:this.formData.content?this.formData.content.formType:"","g-recaptcha-response":e}).then(()=>(this.submitting=!1,this.submitted=!0,!1)).catch(()=>{})},onRecaptchaVerify(){window.grecaptcha&&typeof window.grecaptcha.getResponse=="function"&&window.grecaptcha.getResponse()!==""?this.recaptchaVerified=!0:this.recaptchaVerified=!1},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const r=this.formData.fields.find(n=>n.name===e);let t=!0;Object.keys(r.conditional).forEach(n=>{const o=r.conditional[n];Array.isArray(o)?o.indexOf(this.form[n])===-1&&(t=!1):this.form[n]!==o&&(t=!1),t?this.conditionalFields[e]=!0:this.conditionalFields[e]=!1})})},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"}}},_hoisted_1$B={class:"vs-form","data-test":"vs-form"},_hoisted_2$p=vue.createElementVNode("form",{class:"d-none"},null,-1),_hoisted_3$l={class:"vs-form__main-heading vs-heading--style-level-2 float-none","data-test":"vs-form__main-heading"},_hoisted_4$f={key:0},_hoisted_5$b={"aria-live":"assertive"},_hoisted_6$b={key:0},_hoisted_7$9=["innerHTML"],_hoisted_8$5={key:2};function _sfc_render$H(e,r,t,n,o,a){const s=vue.resolveComponent("VsInput"),i=vue.resolveComponent("VsSelect"),l=vue.resolveComponent("VsCheckbox"),u=vue.resolveComponent("BFormGroup"),c=vue.resolveComponent("VsRecaptcha"),d=vue.resolveComponent("VsButton"),p=vue.resolveComponent("VsWarning"),f=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$B,[_hoisted_2$p,o.submitted?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("form",{key:0,onSubmit:r[0]||(r[0]=vue.withModifiers((...m)=>a.preSubmit&&a.preSubmit(...m),["prevent"]))},[vue.createElementVNode("fieldset",null,[vue.createElementVNode("legend",_hoisted_3$l,vue.toDisplayString(a.getTranslatedContent("heading")),1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.formData.fields,(m,v)=>(vue.openBlock(),vue.createBlock(u,{key:m.name,label:a.needsLabel(m)?a.getTranslatedLabel(m.name,v):"","label-for":a.needsLabel(m)?m.name:"",class:vue.normalizeClass(a.conditionalElementClass(m.name))},{default:vue.withCtx(()=>[!a.isUndefined(m.descriptor)&&m.element==="checkbox"?(vue.openBlock(),vue.createElementBlock("legend",_hoisted_4$f,vue.toDisplayString(a.getTranslatedLegend(m.name,v)),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(a.conditionalElementClass(m.name))},[m.element==="input"?(vue.openBlock(),vue.createBlock(s,{key:0,ref_for:!0,ref:m.name,onStatusUpdate:a.updateFieldData,"field-name":m.name,type:m.type,"validation-rules":m.validation||{},"validation-messages":a.getTranslatedValidation(m.name,v)||{},"generic-validation":a.getMessagingData("validation",t.language),invalid:o.errorFields.indexOf(m.name)>-1,"trigger-validate":o.triggerValidate,"hint-text":a.getTranslatedHint(m.name,v),placeholder:m.placeholder||"","re-alert-errors":o.reAlertErrors},null,8,["onStatusUpdate","field-name","type","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors"])):vue.createCommentVNode("",!0),m.element==="select"?(vue.openBlock(),vue.createBlock(i,{key:1,options:a.getTranslatedOptions(m.name,v),ref_for:!0,ref:m.name,onStatusUpdate:a.updateFieldData,"field-name":m.name,"validation-rules":m.validation||{},"validation-messages":a.getTranslatedValidation(m.name,v)||{},"generic-validation":a.getMessagingData("validation",t.language),invalid:o.errorFields.indexOf(m.name)>-1,"trigger-validate":o.triggerValidate,"country-list-url":t.countryListUrl,countries:m.countries,"hint-text":a.getTranslatedHint(m.name,v),"re-alert-errors":o.reAlertErrors},null,8,["options","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","country-list-url","countries","hint-text","re-alert-errors"])):vue.createCommentVNode("",!0),m.element==="checkbox"?(vue.openBlock(),vue.createBlock(l,{key:m.name,ref_for:!0,ref:m.name,name:m.name,value:m.value,label:a.getTranslatedLabel(m.name,v),onStatusUpdate:a.updateFieldData,"field-name":m.name,"validation-rules":m.validation||{},"validation-messages":a.getTranslatedValidation(m.name,v)||{},"generic-validation":a.getMessagingData("validation",t.language),invalid:o.errorFields.indexOf(m.name)>-1,"trigger-validate":o.triggerValidate,"optional-text":a.getMessagingData("optional",t.language),"hint-text":a.getTranslatedHint(m.name,v),"info-text":a.getTranslatedInfo(m.name,v),"re-alert-errors":o.reAlertErrors},null,8,["name","value","label","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","optional-text","hint-text","info-text","re-alert-errors"])):vue.createCommentVNode("",!0)],2)]),_:2},1032,["label","label-for","class"]))),128))]),vue.createVNode(c,{onVerified:a.onRecaptchaVerify,"site-key":t.recaptchaKey,invalid:!o.recaptchaVerified&&o.showErrorMessage,language:t.language,"error-msg":a.getMessagingData("recaptchaError",t.language),class:"mt-9","textarea-label":t.recaptchaTextareaLabel,"re-alert-errors":o.reAlertErrors},null,8,["onVerified","site-key","invalid","language","error-msg","textarea-label","re-alert-errors"]),vue.createVNode(d,{variant:"primary",type:"submit",class:"vs-form__submit mt-9",onClick:a.preSubmit},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.getTranslatedContent("submit")),1)]),_:1},8,["onClick"])],32)),vue.createVNode(p,{class:"vs-form__no-js"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"no-js")]),_:3}),vue.createElementVNode("div",_hoisted_5$b,[o.submitting?(vue.openBlock(),vue.createElementBlock("p",_hoisted_6$b,[vue.renderSlot(e.$slots,"submitting")])):vue.createCommentVNode("",!0),o.submitted?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[a.getTranslatedContent("successHeading")?(vue.openBlock(),vue.createBlock(f,{key:0,level:"2"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.getTranslatedContent("successHeading")),1)]),_:1})):vue.createCommentVNode("",!0),vue.createElementVNode("p",{class:"vs-form__content",innerHTML:a.getTranslatedContent("successContent")},null,8,_hoisted_7$9)],64)):vue.createCommentVNode("",!0),o.submitError?(vue.openBlock(),vue.createElementBlock("p",_hoisted_8$5,[vue.renderSlot(e.$slots,"submit-error")])):vue.createCommentVNode("",!0)])])}const Form=v4._export_sfc(_sfc_main$O,[["render",_sfc_render$H]]),_sfc_main$N={name:"VsMegaNavTopMenu",status:"prototype",release:"0.1.0",components:{VsList}};function _sfc_render$G(e,r,t,n,o,a){const s=vue.resolveComponent("VsList");return vue.openBlock(),vue.createBlock(s,{unstyled:"",class:"vs-mega-nav-top-menu","data-test":"vs-mega-nav-top-menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})}const VsMegaNavTopMenu=v4._export_sfc(_sfc_main$N,[["render",_sfc_render$G]]),_sfc_main$M={name:"VsMegaNavMobileMenu",status:"prototype",release:"0.1.0",mixins:[v4.dataLayerMixin],mounted(){this.emitter&&this.emitter.on("navAccordionClick",e=>{this.dataLayerSubmit(e)})},methods:{dataLayerSubmit(e){const r={target:{text:e}};this.createDataLayerObject("menuNavigationDataEvent",r,null)}}},_hoisted_1$A={class:"mega-nav-mobile-menu","data-test":"vs-mega-nav-mobile-menu"};function _sfc_render$F(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$A,[vue.renderSlot(e.$slots,"default")])}const VsMegaNavMobileMenu=v4._export_sfc(_sfc_main$M,[["render",_sfc_render$F]]),_sfc_main$L={name:"VsSiteSearch",status:"prototype",release:"0.0.1",components:{VsButton:v4.VsButton},props:{isShowing:{type:Boolean,default:!1}},data(){return{showSearchForm:!0}},methods:{toggleAction(){this.showSearchForm=!this.showSearchForm,this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$z={class:"visually-hidden-xxl-down"};function _sfc_render$E(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(s,{"data-test":"vs-site-search",class:vue.normalizeClass(["vs-site-search",t.isShowing?"vs-site-search--active":""]),icon:"search",size:"md",animate:!1,onClick:a.toggleAction,id:"site-search-btn"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$z,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["class","onClick"])}const VsSiteSearch=v4._export_sfc(_sfc_main$L,[["render",_sfc_render$E]]),_sfc_main$K={name:"VsSiteSearchForm",status:"prototype",release:"0.0.1",components:{VsIcon:v4.VsIcon,VsInput,VsButton:v4.VsButton,VsCol:v4.VsCol,VsRow:v4.VsRow,VsContainer:v4.VsContainer},props:{isShowing:{type:Boolean,default:!1},labelText:{type:String,default:""},submitButtonText:{type:String,default:""},clearButtonText:{type:String,default:""},closeButtonText:{type:String,default:""}},data(){return{searchTerm:"",showSearchForm:!0}},watch:{isShowing(e){e&&this.focusOnInput()}},methods:{focusOnInput(){this.$nextTick(()=>this.$refs.searchInput.$refs.input.focus())},updateVal(e){this.searchTerm=e.value},onSubmit(e){this.searchTerm===""&&e.preventDefault()},closeSearchForm(){this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$y={key:0,class:"vs-site-search-form","data-test":"vs-site-search-form"},_hoisted_2$o={class:"cludo-input-form d-flex align-items-start",role:"search",id:"cludo-search-input"},_hoisted_3$k={class:"d-flex flex-column flex-grow-1 position-relative"},_hoisted_4$e={for:"site-search",class:"vs-site-search-form__label"},_hoisted_5$a={class:"visually-hidden"},_hoisted_6$a={class:"visually-hidden"};function _sfc_render$D(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsInput"),l=vue.resolveComponent("VsButton"),u=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return o.showSearchForm?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$y,[vue.createVNode(d,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$o,[vue.createElementVNode("div",_hoisted_3$k,[vue.createElementVNode("label",_hoisted_4$e,[vue.createElementVNode("span",_hoisted_5$a,vue.toDisplayString(t.labelText),1),vue.createVNode(s,{name:"search",size:"xs"})]),vue.createVNode(i,{class:"vs-site-search-form__input cludo-input-form__input",ref:"searchInput",name:"searchrequest",type:"search","field-name":"site-search",placeholder:t.labelText,"clear-button-text":t.clearButtonText,"auto-complete":!1,onUpdated:a.updateVal},null,8,["placeholder","clear-button-text","onUpdated"])]),vue.createVNode(l,{type:"submit",class:"vs-site-search-form__search-button cludo-input-form__search-button",variant:"primary",size:"lg",onClick:a.closeSearchForm},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.submitButtonText),1)]),_:1},8,["onClick"])])]),_:1})]),_:1})]),_:1}),vue.createVNode(l,{class:"vs-site-search-form__close-button d-none d-lg-block",variant:"transparent",icon:"close-circle",size:"md","icon-only":"",onClick:a.closeSearchForm},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_6$a,vue.toDisplayString(t.closeButtonText),1)]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0)}const VsSiteSearchForm=v4._export_sfc(_sfc_main$K,[["render",_sfc_render$D]]),clickOutside={mounted(e,r){e.clickOutsideEvent=t=>{e===t.target||e.contains(t.target)||r.value(t)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.body.removeEventListener("click",e.clickOutsideEvent)}},_sfc_main$J={name:"VsMegaNav",status:"prototype",release:"0.1.0",components:{VsCol:v4.VsCol,VsRow:v4.VsRow,VsContainer:v4.VsContainer,VsSvgLink,VsMegaNavTopMenu,VsMegaNavMobileMenu,VsSiteSearch,VsSiteSearchForm,VsButton:v4.VsButton},directives:{clickOutside},mixins:[v4.dataLayerMixin],props:{href:{type:String,required:!0},menuToggleAltText:{type:String,required:!0},logoAltText:{type:String,default:"VisitScotland Home"},searchButtonText:{type:String,required:!0},searchLabelText:{type:String,default:"What are you looking for?"},searchClearButtonText:{type:String,default:"Clear form"},searchCloseButtonText:{type:String,default:"Close search form"},noSearch:{type:Boolean,default:!1}},data(){return{isOpen:!1,showSearch:!1,tokens:designTokens}},mounted(){this.addTabClose()},methods:{menuToggle(){this.isOpen=!this.isOpen},toggleSearch(){this.showSearch=!this.showSearch},closeMenu(e){const r=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!r.contains(e.target)&&(this.isOpen=!1)},addTabClose(){document.body.addEventListener("focusin",e=>{this.isOpen&&(e.target.closest("#vs-mega-nav__menu-mobile")||(this.isOpen=!1))})}}},_hoisted_1$x={class:"vs-mega-nav bg-white","aria-label":"main nav","data-test":"vs-mega-nav",id:"main-nav"},_hoisted_2$n={class:"vs-mega-nav__menu-mobile d-lg-none",id:"vs-mega-nav__menu-mobile","data-test":"vs-mega-nav-mobile-container"},_hoisted_3$j={class:"visually-hidden"};function _sfc_render$C(e,r,t,n,o,a){const s=vue.resolveComponent("VsSvgLink"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsMegaNavTopMenu"),u=vue.resolveComponent("VsSiteSearch"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsMegaNavMobileMenu"),p=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer"),m=vue.resolveComponent("VsSiteSearchForm"),v=vue.resolveDirective("click-outside");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("nav",_hoisted_1$x,[vue.createVNode(f,{fluid:"lg",class:"h-100"},{default:vue.withCtx(()=>[vue.createVNode(p,{class:"align-items-center h-100"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"8",md:"4",lg:"3"},{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createVNode(s,{class:"vs-mega-nav__logo","data-test":"vs-mega-nav__logo","link-alt-text":t.logoAltText,href:t.href,"svg-fill":o.tokens["vs-color-brand"],"svg-path":"visitscotland-logo","data-layer-value":"homePageLogoClickDataEvent"},null,8,["link-alt-text","href","svg-fill"])])]),_:1}),vue.createVNode(i,{cols:"4",md:"6",lg:t.noSearch?9:7,class:"vs-mega-nav__menu d-none d-lg-block"},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-top-menu-items")]),_:3})]),_:3},8,["lg"]),vue.createVNode(i,{cols:"4",md:"8",lg:"2",class:"justify-content-end align-items-center position-static d-flex h-100"},{default:vue.withCtx(()=>[t.noSearch?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(u,{key:0,onToggleAction:a.toggleSearch,"is-showing":o.showSearch},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.searchButtonText),1)]),_:1},8,["onToggleAction","is-showing"])),vue.createElementVNode("div",_hoisted_2$n,[vue.createVNode(c,{class:"vs-mega-nav__mobile-menu-toggle p-0","icon-only":"",icon:o.isOpen?"close":"bars-mobile-menu",variant:"transparent",onClick:r[0]||(r[0]=h=>a.menuToggle()),ref:"toggleButton","aria-haspopup":"true"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$j,vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["icon"]),o.isOpen?vue.withDirectives((vue.openBlock(),vue.createBlock(d,{key:0},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-accordion-items")]),_:3})),[[v,a.closeMenu]]):vue.createCommentVNode("",!0)])]),_:3})]),_:3})]),_:3})]),vue.withDirectives(vue.createVNode(m,{onToggleAction:a.toggleSearch,"is-showing":o.showSearch,"label-text":t.searchLabelText,"submit-button-text":t.searchButtonText,"clear-button-text":t.searchClearButtonText,"close-button-text":t.searchCloseButtonText},null,8,["onToggleAction","is-showing","label-text","submit-button-text","clear-button-text","close-button-text"]),[[vue.vShow,o.showSearch]])])}const MegaNav=v4._export_sfc(_sfc_main$J,[["render",_sfc_render$C]]),_sfc_main$I={name:"VsMegaNavDropdown",status:"prototype",release:"0.1.0",components:{BDropdown:bootstrapVueNext.BDropdown,VsCol:v4.VsCol,VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsButton:v4.VsButton},mixins:[v4.dataLayerMixin],props:{menuToggleAltText:{type:String,required:!0}},mounted(){this.emitter&&(this.emitter.on("bv::dropdown::show",()=>{this.$emit("menuToggled")}),this.emitter.on("bv::dropdown::hide",()=>{this.$emit("menuToggled")})),window.addEventListener("resize",this.closeMenu)},beforeUnmount(){window.removeEventListener("resize",this.closeMenu)},methods:{closeMenu(){this.$refs.dropdown.close()},dataLayerSubmit(){if(this.$slots["button-content"]()[1]&&this.$slots["button-content"]()[1].children[0]){const r={target:{text:this.$slots["button-content"]()[1].children[0].children}};this.createDataLayerObject("menuNavigationDataEvent",r,null)}}}},_hoisted_1$w={class:"vs-mega-nav-dropdown","data-test":"vs-mega-nav-dropdown"},_hoisted_2$m={role:"menuitem"},_hoisted_3$i={class:"visually-hidden"};function _sfc_render$B(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer"),c=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$w,[vue.createVNode(c,{variant:"transparent",ref:"dropdown",onShow:r[0]||(r[0]=d=>a.dataLayerSubmit(d))},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_2$m,[vue.createVNode(u,{fluid:"lg",class:"px-0 px-lg-3"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"g-0"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"position-relative"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"cta-link"),vue.renderSlot(e.$slots,"dropdown-content"),vue.createVNode(s,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"close","icon-only":"",size:"sm",variant:"transparent",onClick:a.closeMenu},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$i,vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["onClick"])]),_:3})]),_:3})]),_:3})])]),_:3},512)])}const VsMegaNavDropdown=v4._export_sfc(_sfc_main$I,[["render",_sfc_render$B]]),_sfc_main$H={name:"VsMegaNavDropdownContainer",status:"prototype",release:"0.1.0",components:{VsMegaNavDropdown,VsLink,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{href:{type:String,default:""},ctaText:{type:String,default:""},align:{type:String,default:"top",validator:e=>e.match(/(left|bottom|top)/)}},computed:{hasFeaturedItem(){return this.$slots["nav-featured-item"]&&this.$slots["nav-featured-item"]()},hasFeaturedItemLeft(){return this.$slots["nav-featured-item-left"]&&this.$slots["nav-featured-item-left"]()},hasFeaturedEvent(){return this.$slots["nav-featured-event"]&&this.$slots["nav-featured-event"]()},alignmentClass(){return this.align==="bottom"?"vs-mega-nav-dropdown-container__featured--bottom":""}}},_hoisted_1$v={class:"vs-mega-nav-dropdown-container","data-test":"vs-mega-nav-dropdown-container",ref:"menuToggle"},_hoisted_2$l=vue.createElementVNode("hr",{class:"vs-mega-nav-dropdown-container__divider"},null,-1),_hoisted_3$h={class:"vs-mega-nav-dropdown-container__columns-wrapper"},_hoisted_4$d={key:2,class:"vs-mega-nav-dropdown-container__featured-event","data-test":"vs-mega-nav-dropdown-container__featured-event"};function _sfc_render$A(e,r,t,n,o,a){const s=vue.resolveComponent("VsLink"),i=vue.resolveComponent("VsMegaNavDropdown"),l=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$v,[vue.createVNode(l,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(i,{"menu-toggle-alt-text":"Toggle Menu"},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),"cta-link":vue.withCtx(()=>[t.href&&t.ctaText?(vue.openBlock(),vue.createBlock(s,{key:0,href:t.href,role:"menuitem","data-test":"vs-mega-nav-dropdown-container__cta-link",class:"vs-mega-nav-dropdown-container__cta-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),_hoisted_2$l]),"dropdown-content":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$h,[vue.renderSlot(e.$slots,"dropdown-content"),a.hasFeaturedItemLeft?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured vs-mega-nav-dropdown-container__featured--left",a.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item-left")],2)):vue.createCommentVNode("",!0),a.hasFeaturedItem?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured",a.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item")],2)):vue.createCommentVNode("",!0),a.hasFeaturedEvent?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$d,[vue.renderSlot(e.$slots,"nav-featured-event")])):vue.createCommentVNode("",!0)])]),_:3})]),_:3})],512)}const MegaNavDropdownContainer=v4._export_sfc(_sfc_main$H,[["render",_sfc_render$A]]),_sfc_main$G={name:"VsMegaNavList",status:"prototype",release:"0.1.0",components:{VsList,VsHeading:v4.VsHeading},props:{listHeading:{type:String,default:""}},computed:{listHeadingId(){return this.listHeading?`vsMeganav${this.listHeading.replace(/\W/g,"")}`:""}}},_hoisted_1$u=["aria-label"];function _sfc_render$z(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-mega-nav-list","data-test":"vs-mega-nav-list","aria-label":a.listHeadingId},[t.listHeading?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-mega-nav-list__heading",id:a.listHeadingId,level:"2"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.listHeading),1)]),_:1},8,["id"])):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"vs-mega-nav-list__list"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"nav-list-items"),vue.renderSlot(e.$slots,"nav-heading-cta-link")]),_:3})],8,_hoisted_1$u)}const MegaNavList=v4._export_sfc(_sfc_main$G,[["render",_sfc_render$z]]),_sfc_main$F={name:"VsMegaNavListItem",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[v4.dataLayerMixin],props:{href:{type:String,default:"#"},subheadingLink:{type:Boolean,default:!1}},computed:{navItemClasses(){return{"vs-mega-nav-list-item__heading":this.href==="#","vs-mega-nav-list-item__link":this.href!=="#","vs-mega-nav-list-item__subheading-link":this.subheadingLink}}}};function _sfc_render$y(e,r,t,n,o,a){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-list-item",a.navItemClasses]),"data-test":"vs-mega-nav-list-item",role:"presentation"},[vue.createVNode(s,{href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavListItem=v4._export_sfc(_sfc_main$F,[["render",_sfc_render$y]]),_sfc_main$E={name:"VsMegaNavAccordionItem",status:"prototype",release:"0.1.0",components:{VsAccordionItem,VsLink},props:{controlId:{type:String,required:!0},title:{type:String,required:!0},level:{type:String,required:!0,validator:e=>e.match(/(1|2)/)},ctaLink:{type:String,default:""},ctaText:{type:String,default:""}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-mega-nav-${e}`},accordionItemClasses(){return[`vs-mega-nav-accordion-item--level-${this.level}`]}}};function _sfc_render$x(e,r,t,n,o,a){const s=vue.resolveComponent("VsLink"),i=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(i,{class:vue.normalizeClass(["vs-mega-nav-accordion-item",a.accordionItemClasses]),"data-test":"vs-mega-nav-accordion-item","data-unique-id":a.getUniqueId,"control-id":`vs-mega-nav-accordion-item-${a.getUniqueId}-${t.controlId}`},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),default:vue.withCtx(()=>[t.ctaLink&&t.ctaText?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-mega-nav-accordion-item__cta-link","data-test":"vs-mega-nav-accordion-item__cta-link",href:t.ctaLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"default")]),_:3},8,["class","data-unique-id","control-id"])}const MegaNavAccordionItem=v4._export_sfc(_sfc_main$E,[["render",_sfc_render$x]]),_sfc_main$D={name:"VsMegaNavFeaturedItem",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{link:{type:String,required:!0},imgUrl:{type:String,required:!0},imgAlt:{type:String,default:""}}};function _sfc_render$w(e,r,t,n,o,a){const s=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createBlock(s,{link:t.link,type:"internal","img-src":t.imgUrl,"img-alt":t.imgAlt,class:"vs-mega-nav-featured-item","data-test":"vs-mega-nav-featured-item","heading-level":"2"},{"stretched-card-header":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-header")]),"stretched-card-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-content")]),"stretched-card-link":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-link")]),_:3},8,["link","img-src","img-alt"])}const MegaNavFeaturedItem=v4._export_sfc(_sfc_main$D,[["render",_sfc_render$w]]),_sfc_main$C={name:"VsMegaNavFeaturedEvent",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{sourceUrl:{type:String,default:""}},data(){return{featuredEvent:null}},mounted(){this.sourceUrl&&this.retrieveFeaturedEvent()},methods:{retrieveFeaturedEvent(){v4.axios.get(this.sourceUrl).then(e=>{e.data.data.products&&e.data.data.products.length&&([this.featuredEvent]=e.data.data.products)}).catch(()=>{this.featuredEvent=null})}}},_hoisted_1$t={key:0,class:"vs-mega-nav-featured-event__date-range"},_hoisted_2$k={class:"vs-mega-nav-featured-event__date-detail"},_hoisted_3$g={class:"vs-mega-nav-featured-event__title"},_hoisted_4$c={key:1,class:"vs-mega-nav-featured-event__location"};function _sfc_render$v(e,r,t,n,o,a){const s=vue.resolveComponent("VsStretchedLinkCard");return o.featuredEvent?(vue.openBlock(),vue.createBlock(s,{key:0,link:o.featuredEvent.productLink.link,type:"internal","img-src":o.featuredEvent.images[0].mediaUrl,"img-alt":o.featuredEvent.name,class:"vs-mega-nav-featured-event","data-test":"vs-mega-nav-featured-event","data-chromatic":"ignore"},{"stretched-card-content":vue.withCtx(()=>[o.featuredEvent&&o.featuredEvent.opening?(vue.openBlock(),vue.createElementBlock("p",_hoisted_1$t,[vue.createTextVNode(vue.toDisplayString(o.featuredEvent.opening.period.label)+" ",1),vue.createElementVNode("span",_hoisted_2$k,vue.toDisplayString(o.featuredEvent.opening.period.startDay),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("p",_hoisted_3$g,vue.toDisplayString(o.featuredEvent.name),1),o.featuredEvent&&o.featuredEvent.address?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$c,vue.toDisplayString(o.featuredEvent.address.shortAddress),1)):vue.createCommentVNode("",!0)]),"stretched-card-link":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.featuredEvent.productLink.label),1)]),_:1},8,["link","img-src","img-alt"])):vue.createCommentVNode("",!0)}const MegaNavFeaturedEvent=v4._export_sfc(_sfc_main$C,[["render",_sfc_render$v]]),_sfc_main$B={name:"VsMegaNavStaticLink",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[v4.dataLayerMixin],props:{href:{type:String,default:"#"},isFullWidth:{type:Boolean,default:!1}}};function _sfc_render$u(e,r,t,n,o,a){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-static-link",t.isFullWidth?"vs-mega-nav-static-link--full-width":""]),"data-test":"vs-mega-nav-static-link",role:"presentation"},[vue.createVNode(s,{class:"vs-mega-nav-static-link__inner",href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavStaticLink=v4._export_sfc(_sfc_main$B,[["render",_sfc_render$u]]),_sfc_main$A={name:"VsMegalinks",status:"prototype",release:"0.0.1",components:{VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsHeading:v4.VsHeading,VsButton:v4.VsButton,VsRichTextWrapper},provide(){return{noJsMessage:this.noJsMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText,theme:this.theme}},props:{title:{type:String,required:!1,default:null},buttonLink:{type:String,required:!1,default:null},variant:{type:String,required:!1,default:null,validator:e=>e.match(/(multi-image|single-image|link-list)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},noJsMessage:{type:String,default:""},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""}},computed:{megalinksClasses(){return[this.variant?`vs-megalinks--${this.variant}`:"",`vs-megalinks--${this.theme}`]}}},_hoisted_1$s={key:0,class:"vs-megalinks__intro","data-test":"vs-megalinks__intro"},_hoisted_2$j={class:"row vs-megalinks__links-wrapper"},_hoisted_3$f={class:"vs-megalinks__button","data-test":"vs-megalinks__button"};function _sfc_render$t(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsRichTextWrapper"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",{class:vue.normalizeClass(["vs-megalinks",a.megalinksClasses]),"data-test":"megalinks"},[vue.createVNode(d,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"8","offset-md":"2"},{default:vue.withCtx(()=>[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$s,[vue.createVNode(s,{level:"2",class:"vs-megalinks__heading","data-test":"vs-megalinks__heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),e.$slots["vs-megalinks-intro"]&&e.$slots["vs-megalinks-intro"]()?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-megalinks__intro-content",variant:"lead","data-test":"vs-megalinks__intro-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-intro")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$j,[vue.renderSlot(e.$slots,"default")]),t.buttonLink&&t.variant!=="single-image"?(vue.openBlock(),vue.createBlock(u,{key:0},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$f,[vue.createVNode(c,{href:t.buttonLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-button")]),_:3},8,["href"])])]),_:3})]),_:3})):vue.createCommentVNode("",!0)]),_:3})],2)}const Megalinks=v4._export_sfc(_sfc_main$A,[["render",_sfc_render$t]]),_sfc_main$z={name:"VsMegalinkLinkList",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsRichTextWrapper,VsStretchedLinkPanels},props:{imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},linkUrl:{type:String,required:!0},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}}},_hoisted_1$r={class:"vs-megalink-link-list__title","data-test":"megalink-link-list__title"};function _sfc_render$s(e,r,t,n,o,a){const s=vue.resolveComponent("VsStretchedLinkPanels"),i=vue.resolveComponent("VsRichTextWrapper"),l=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-link-list",`vs-megalink-link-list--${t.theme}`])},[vue.createVNode(l,{link:t.linkUrl,type:t.linkType,class:"vs-megalink-link-list__wrapper","img-src":t.imgSrc,"img-alt":t.imgAlt,theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"error-type":"full"},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$r,[vue.renderSlot(e.$slots,"vs-link-list-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(i,{class:"vs-megalink-link-list__content","data-test":"megalink-link-list__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-content")]),_:3})]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(s,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","theme","video-id","video-btn-text","error-message"])],2)}const MegalinkLinkList=v4._export_sfc(_sfc_main$z,[["render",_sfc_render$s]]),_sfc_main$y={name:"VsMegalinkMultiImage",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsRichTextWrapper,VsStretchedLinkPanels},props:{featured:{required:!1,type:Boolean,default:!1},lastFeatured:{required:!1,type:Boolean,default:!1},imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},linkUrl:{type:String,required:!0},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}},computed:{multiImageClasses(){return[`vs-megalink-multi-image-card--${this.theme}`,{"vs-megalink-multi-image-card--featured":this.featured,"vs-megalink-multi-image-card--featured-last":this.lastFeatured}]}}},_hoisted_1$q={class:"vs-megalink-multi-image"},_hoisted_2$i={class:"vs-megalink-multi-image-card__title","data-test":"megalink-multi-image-card__title"};function _sfc_render$r(e,r,t,n,o,a){const s=vue.resolveComponent("VsStretchedLinkPanels"),i=vue.resolveComponent("VsRichTextWrapper"),l=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$q,[vue.createVNode(l,{link:t.linkUrl,type:t.linkType,class:vue.normalizeClass(["vs-megalink-multi-image-card p-2",a.multiImageClasses]),"img-src":t.imgSrc,"img-alt":t.imgAlt,"data-test":t.featured?"megalink-multi-image-featured":"megalink-multi-image-card",theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"warning-size":t.featured?"normal":"small"},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$i,[vue.renderSlot(e.$slots,"vs-multi-image-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(i,{class:"vs-megalink-multi-image-card__content","data-test":"megalink-multi-image-card__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-multi-image-content")]),_:3})]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(s,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","class","img-src","img-alt","data-test","theme","video-id","video-btn-text","error-message","warning-size"])])}const MegalinkMultiImage=v4._export_sfc(_sfc_main$y,[["render",_sfc_render$r]]),_sfc_main$x={name:"VsMegalinkSingleImage",status:"prototype",release:"0.0.1",components:{VsHeading:v4.VsHeading,VsRichTextWrapper,VsButton:v4.VsButton,VsRow:v4.VsRow,VsCol:v4.VsCol,VsLinkList},props:{alternate:{type:Boolean,default:!1},title:{type:String,default:null},buttonLink:{type:String,default:""}},data(){return{negativeMargin:"200px",imageHeight:"400px"}},computed:{singleImageClasses(){return[this.alternate?"vs-megalink-single-image--alternate":""]},cssVars(){return{"--negative-margin":`-${this.negativeMargin}`,"--image-height":`${this.imageHeight}`}}},mounted(){const e=this.$el.querySelector(".vs-image-with-caption");if(e){const r=e.querySelector("img");r.addEventListener("load",()=>{const t=r.clientHeight/2.5/r.clientWidth;this.negativeMargin=`${t*100}%`,this.imageHeight=`${r.clientHeight}px`})}}},_hoisted_1$p={class:"vs-megalink-single-image__image-container"},_hoisted_2$h={class:"vs-megalink-single-image__content","data-test":"megalink-single-image__content"},_hoisted_3$e={class:"vs-megalink-single-image__button"};function _sfc_render$q(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsRichTextWrapper"),l=vue.resolveComponent("VsLinkList"),u=vue.resolveComponent("VsButton"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-single-image",a.singleImageClasses]),"data-test":"megalink-single-image",style:vue.normalizeStyle(a.cssVars)},[vue.createElementVNode("div",_hoisted_1$p,[vue.renderSlot(e.$slots,"vs-single-image")]),vue.createVNode(d,{class:"vs-megalink-single-image__text-container"},{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",sm:"10",lg:"6",class:vue.normalizeClass(["offset-sm-1",t.alternate?"offset-lg-6":"offset-lg-0"])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$h,[t.title?(vue.openBlock(),vue.createBlock(s,{key:0,level:"3",class:"vs-megalink-single-image__title","data-test":"megalink-single-image__title"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(i,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-content")]),_:3}),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-links")]),_:3}),vue.createElementVNode("div",_hoisted_3$e,[t.buttonLink?(vue.openBlock(),vue.createBlock(u,{key:0,href:t.buttonLink,variant:"secondary"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-button-text")]),_:3},8,["href"])):vue.createCommentVNode("",!0)])])]),_:3},8,["class"])]),_:3})],6)}const MegalinkSingleImage=v4._export_sfc(_sfc_main$x,[["render",_sfc_render$q]]),_sfc_main$w={name:"VsModal",status:"prototype",release:"0.0.1",components:{VsCol:v4.VsCol,VsRow:v4.VsRow,VsContainer:v4.VsContainer,VsButton:v4.VsButton,BModal:bootstrapVueNext.BModal},props:{modalId:{type:String,required:!0},closeBtnText:{type:String,required:!0},isVideoModal:{type:Boolean,default:!1},autoMount:{type:Boolean,default:!1}},data(){return{show:!1,mounted:this.autoMount}},mounted(){this.mounted=!0,this.emitter&&(this.emitter.on("showModal",e=>this.showModal(e)),this.isVideoModal&&this.emitter.on("showModal",e=>{this.emitter.emit("video-controls",{action:"modal-opened",id:e})}))},methods:{hideModal(){this.emitter&&this.emitter.emit("video-controls",{action:"modal-closed",id:this.modalId}),this.show=!1},showModal(e){e===this.modalId&&(this.show=!0)}}};function _sfc_render$p(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer"),c=vue.resolveComponent("BModal");return o.mounted?(vue.openBlock(),vue.createBlock(c,{key:0,"modal-class":"vs-modal","data-test":"vs-modal",ref:`modal-${t.modalId}`,id:t.modalId,size:"xl","hide-footer":"","hide-header":"",static:t.isVideoModal,modelValue:o.show,"onUpdate:modelValue":r[0]||(r[0]=d=>o.show=d)},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",lg:"1",class:"d-flex justify-content-end align-items-start order-lg-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{"icon-with-text":"","on-dark":"",class:"vs-modal__close-btn mb-5 mb-lg-0","data-test":"vs-modal__close-btn",variant:"transparent",icon:"close-circle",onClick:a.hideModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1}),vue.createVNode(i,{cols:"12",lg:"11"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3},8,["id","static","modelValue"])):vue.createCommentVNode("",!0)}const Modal=v4._export_sfc(_sfc_main$w,[["render",_sfc_render$p]]),_sfc_main$v={name:"VsPageIntro",status:"prototype",release:"0.0.1",components:{VsHeading:v4.VsHeading,VsRichTextWrapper,VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol},props:{background:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},heroIntro:{type:Boolean,default:!1},isItinerary:{type:Boolean,default:!1}},computed:{introClasses(){return[`vs-page-intro--${this.background}`,this.heroIntro?"vs-page-intro--hero":""]},contentColProps(){const e={};return this.isItinerary?(e.md="6",e.lg="5",e.xl="6",e["offset-lg"]="1"):this.heroIntro?(e.md="12",e.lg="7",e.xl="8",e["offset-lg"]="1"):e.md="8",e}}},_hoisted_1$o={class:"vs-page-intro__wrapper"},_hoisted_2$g={class:"vs-page-intro__share"},_hoisted_3$d={key:0,class:"list-inline"},_hoisted_4$b={key:0,class:"vs-page-intro__lower py-9","data-test":"vs-page-intro__lower"};function _sfc_render$o(e,r,t,n,o,a){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-page-intro",a.introClasses]),"data-test":"vs-page-intro"},[vue.renderSlot(e.$slots,"vs-intro-hero"),vue.createElementVNode("div",_hoisted_1$o,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"10",lg:t.heroIntro?"8":"","offset-lg":t.heroIntro?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-page-intro__breadcrumb",t.heroIntro?"mt-lg-4":"mt-lg-8"])},[vue.renderSlot(e.$slots,"vs-intro-breadcrumb")],2)]),_:3},8,["lg","offset-lg"])]),_:3}),vue.createElementVNode("div",_hoisted_2$g,[vue.renderSlot(e.$slots,"vs-share-button")]),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"11",md:t.heroIntro?"11":"10",lg:t.heroIntro?"7":"10",xl:t.heroIntro?"8":"10","offset-lg":t.heroIntro?"1":"0",class:"mt-1 mt-sm-0"},{default:vue.withCtx(()=>[vue.createVNode(l,{level:"1",id:"main-heading"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-heading")]),_:3}),vue.renderSlot(e.$slots,"vs-blog-data")]),_:3},8,["md","lg","xl","offset-lg"])]),_:3}),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({cols:"12"},a.contentColProps),{default:vue.withCtx(()=>[vue.createVNode(u,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-content")]),_:3}),e.$slots["vs-intro-start-finish"]&&e.$slots["vs-intro-start-finish"]()?(vue.openBlock(),vue.createElementBlock("dl",_hoisted_3$d,[vue.renderSlot(e.$slots,"vs-intro-start-finish")])):vue.createCommentVNode("",!0)]),_:3},16),vue.renderSlot(e.$slots,"vs-intro-summary-box")]),_:3})]),_:3}),e.$slots["vs-intro-lower"]&&e.$slots["vs-intro-lower"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$b,[vue.renderSlot(e.$slots,"vs-intro-lower")])):vue.createCommentVNode("",!0)])],2)}const PageIntro=v4._export_sfc(_sfc_main$v,[["render",_sfc_render$o]]),_sfc_main$u={name:"VsPanel",status:"prototype",release:"0.0.1",components:{BCard:bootstrapVueNext.BCard}},_hoisted_1$n={class:"vs-panel__text"};function _sfc_render$n(e,r,t,n,o,a){const s=vue.resolveComponent("BCard");return vue.openBlock(),vue.createBlock(s,{class:vue.normalizeClass(["vs-panel",[e.$slots["vs-panel__title"]?"":"pt-10"]])},{header:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-panel-title")]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$n,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["class"])}const Panel=v4._export_sfc(_sfc_main$u,[["render",_sfc_render$n]]);let VS$1;function setWindowObj(){typeof window<"u"?VS$1=typeof window.VS=="object"?window.VS:{}:VS$1={}}function getLabelText(e,r,t){setWindowObj();let n="";return Object.keys(VS$1).length>0&&(typeof t<"u"?n=VS$1.search_config.basic_config.search_module[t][e]:n=VS$1.search_config.basic_config.search_module[e]),n||r}function getProductName(e,r){setWindowObj();const t={};return Object.keys(VS$1).length>0&&Object.keys(VS$1.search_config.basic_config.productTypes).forEach(n=>{const o=VS$1.search_config.basic_config.productTypes[n];t[o.value]=o.text}),t[e]?t[e]:r}function getLocale(){let e=document.documentElement.lang.toLocaleLowerCase().slice(0,2)||"";return e==="en"&&(e=""),e}const products=[{key:"accommodation",text:"Accommodation",value:"acco"},{key:"eventsAndFestivals",text:"Events & Festivals",value:"even"},{key:"foodAndDrink",text:"Food & Drink",value:"cate"},{key:"thingsToDo",text:"Things to do",value:"acti,attr,reta"},{key:"tours",text:"Tours",value:"tour"}],paths={acco:"accommodation","acti,attr,reta":"see-do",cate:"food-drink",even:"events",tour:"tours"},monthsEnglish=[{label:"January",value:"january"},{label:"February",value:"february"},{label:"March",value:"march"},{label:"April",value:"april"},{label:"May",value:"may"},{label:"June",value:"june"},{label:"July",value:"july"},{label:"August",value:"august"},{label:"September",value:"september"},{label:"October",value:"october"},{label:"November",value:"november"},{label:"December",value:"december"}];let VS;typeof window<"u"?VS=typeof window.VS=="object"?window.VS:{}:VS={};function getProductTypes(){if(Object.keys(VS).length<=0)return products;const e=VS.search_config.basic_config.productTypes,r=[];return Object.keys(e).forEach(n=>{r.push({key:e[n].value,text:e[n].text,value:e[n].value})}),r}async function getData(e){try{const{data:r}=await v4.axios.get(e);return r}catch(r){console.error(`Axios error: ${r}`)}}var define_process_env_default={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"},controls={arrowUpKey:38,arrowDownKey:40,escKey:27,enterKey:13};function isFn(e){return typeof e=="function"}function isControlledProp(e,r){return e[r]!==void 0}function hasKeyCode(e,r){return e===r.keyCode}function getItemIndex(e,r,t){return e!==void 0?e:t.length?t.indexOf(r):-1}function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function getNextNonDisabledIndex(e,r,t,n,o){var a=n(r);if(!a||!a.hasAttribute("disabled"))return r;if(e>0)for(var s=r+1;s<t;s+=1){var i=n(s),l=i.hasAttribute("disabled");if(!l)return s}else for(var u=r-1;u>=0;u-=1)if(!n(u).hasAttribute("disabled"))return u;return o?e>0?getNextNonDisabledIndex(1,0,t,n,!1):getNextNonDisabledIndex(-1,t-1,t,n,!1):-1}function scrollToElement(e,r,t){var n=r.clientHeight,o=r.scrollTop,a=e.offsetHeight,s=e.offsetTop;if(s<o)t===0?r.scrollTop=0:r.scrollTop=s;else{var i=s+a,l=o+n;i>l&&(r.scrollTop=i-n)}}function getProps(e){return Object.assign({},e?{modelValue:{default:null}}:{value:{default:null}},{items:{type:Array,required:!0},itemToString:{type:Function,default:function(r){return r?String(r):""}},stateReducer:{type:Function,default:function(r,t){return t.changes}},getItemId:{type:Function,default:function(t){return"v-"+this.idCounter+"-vue-combo-blocks-item-"+t}},menuId:{type:String,default:""},inputId:{type:String,default:""},labelId:{type:String,default:""},scrollIntoView:{type:Boolean,default:!0},circular:{type:Boolean,default:!0}})}function getInitialData(e,r){return{hovered:null,isOpen:!1,hoveredIndex:-1,selectedItem:e,inputValue:r(e)}}var computed={menuElement:function e(){return document.querySelector("#"+this.computedMenuId)},computedMenuId:function e(){return this.menuId||"v-"+this.idCounter+"-vue-combo-blocks-menu"},computedInputId:function e(){return this.inputId||"v-"+this.idCounter+"-vue-combo-blocks-input"},computedLabelId:function e(){return this.labelId||"v-"+this.idCounter+"-vue-combo-blocks-label"},selectedIndex:function e(){return this.items.indexOf(this.selectedItem)}},InputKeyDownArrowDown="InputKeyDownArrowDown",InputKeyDownArrowUp="InputKeyDownArrowUp",InputKeyDownTab="InputKeyDownTab",InputKeyUpEscape="InputKeyUpEscape",InputKeyUpEnter="InputKeyUpEnter",InputChange="InputChange",InputBlur="InputBlur",MenuMouseLeave="MenuMouseLeave",ItemMouseMove="ItemMouseMove",ItemClick="ItemClick",FunctionOpenMenu="FunctionOpenMenu",FunctionCloseMenu="FunctionCloseMenu",FunctionSelectItem="FunctionSelectItem",FunctionSetInputValue="FunctionSetInputValue",FunctionReset="FunctionReset",ControlledPropUpdatedSelectedItem="ControlledPropUpdatedSelectedItem",sct=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem,FunctionCloseMenu,FunctionOpenMenu,FunctionReset,FunctionSelectItem,FunctionSetInputValue,InputBlur,InputChange,InputKeyDownArrowDown,InputKeyDownArrowUp,InputKeyDownTab,InputKeyUpEnter,InputKeyUpEscape,ItemClick,ItemMouseMove,MenuMouseLeave}),inputPropsAndListeners={getInputProps:function e(){return{value:this.inputValue||"","aria-activedescendant":this.hovered?this.getItemId(this.hoveredIndex):"","aria-autocomplete":"list","aria-controls":this.computedMenuId,"aria-labelledby":this.computedLabelId,id:this.computedInputId,autocomplete:"off"}},getInputEventListeners:function e(r){r===void 0&&(r={});var t=r.blur,n=r.input,o=r.keydown,a=r.keyup;return{blur:isFn(t)?t:this.onInputBlur,input:isFn(n)?n:this.onInput,keydown:isFn(o)?o:this.onInputKeyDown,keyup:isFn(a)?a:this.onInputKeyUp}},onInputKeyDown:function e(r){r.key==="Enter"&&this.isOpen?r.preventDefault():hasKeyCode(controls.arrowDownKey,r)&&!this.isOpen?(this.setState({isOpen:!0},InputKeyDownArrowDown),this.moveSelection(r)):this.moveSelection(r)},onInputKeyUp:function e(r){var t=controls.enterKey,n=controls.escKey;if(this.isOpen)if(hasKeyCode(t,r)){if(this.hoveredIndex>=0){r.preventDefault();var o=this.getItemNodeFromIndex(this.hoveredIndex);if(o&&o.hasAttribute("disabled"))return;this.setState({inputValue:this.itemToString(this.hovered),selectedItem:this.hovered,hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEnter)}}else hasKeyCode(n,r)&&this.setState({hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEscape)},onInputBlur:function e(){this.setState({isOpen:!1,inputValue:this.itemToString(this.selectedItem),hovered:null,hoveredIndex:-1},InputBlur)},onInput:function e(r){var t=r.target?r.target.value:r;this.setState({inputValue:t,hovered:null,isOpen:!0},InputChange)}},itemPropsAndListeners={getItemEventListeners:function e(r){var t=this;r===void 0&&(r={});var n=r.index,o=r.disabled,a=r.item;a===void 0&&(a=void 0);var s=r.mousemove,i=r.mousedown,l=r.click;return o?{}:{mousemove:isFn(s)?s:function(){return t.onItemMouseMove(n,a)},mousedown:isFn(i)?i:this.onItemMouseDown,click:isFn(l)?l:function(){return t.onItemClick(a)}}},onItemMouseMove:function e(r,t){var n=getItemIndex(r,t,this.items);this.hoveredIndex!==n&&this.setState({hoveredIndex:n,hovered:t},ItemMouseMove)},onItemMouseDown:function e(r){r.preventDefault()},onItemClick:function e(r){this.setState({inputValue:this.itemToString(r),selectedItem:r,isOpen:!1,hoveredIndex:-1,hovered:null},ItemClick)},getItemProps:function e(r){r===void 0&&(r={});var t=r.index,n=r.disabled,o=r.item;o===void 0&&(o=void 0);var a=getItemIndex(t,o,this.items),s=this.getItemId(a);return{id:s,disabled:n?!0:void 0,role:"option","aria-selected":this.hoveredIndex===a||this.selectedItem===o?"true":"false"}}},menuPropsAndListeners={getMenuProps:function e(){return{id:this.computedMenuId,role:"listbox","aria-labelledby":this.computedLabelId}},getMenuEventListeners:function e(r){r===void 0&&(r={});var t=r.mouseleave,n=r.mousedown;return{mouseleave:isFn(t)?t:this.onMenuMouseLeave,mousedown:isFn(n)?n:this.onMenuMouseDown}},onMenuMouseLeave:function e(){this.setState({hoveredIndex:-1,hovered:null},MenuMouseLeave)},onMenuMouseDown:function e(r){r.preventDefault()}},methods=Object.assign({},inputPropsAndListeners,itemPropsAndListeners,menuPropsAndListeners,{getComboboxProps:function e(){return{role:"combobox","aria-haspopup":"listbox","aria-owns":this.computedMenuId,"aria-expanded":this.isOpen?"true":"false"}},getLabelProps:function e(){return{id:this.computedLabelId,for:this.computedInputId}},autocompleteText:function e(r){this.setInputValue(this.itemToString(r))},reset:function e(){this.setState({selectedItem:null,inputValue:""},FunctionReset)},select:function e(r){this.setState({inputValue:this.itemToString(r),selectedItem:r,isOpen:!1,hoveredIndex:-1,hovered:null},FunctionSelectItem)},setHoveredItem:function e(r,t,n){r&&r!==this.hovered&&this.$emit("hover",r,n),this.hovered=r,this.hoveredIndex=typeof t=="number"?t:-1},closeMenu:function e(){this.setState({isOpen:!1,hoveredIndex:-1,hovered:null},FunctionCloseMenu)},openMenu:function e(){this.setState({isOpen:!0},FunctionOpenMenu)},getItemNodeFromIndex:function e(r){return this.menuElement.querySelector("#"+this.getItemId(r))},scrollItemIntoView:function e(r){var t=this.getItemNodeFromIndex(r);scrollToElement(t,this.menuElement,r)},moveSelection:function e(r){var t=this,n=this.items.length;if(!(!this.isOpen||!n)){var o=hasKeyCode(controls.arrowDownKey,r),a=hasKeyCode(controls.arrowUpKey,r);if(o||a){r.preventDefault();var s=o*2-1,i=o?0:n-1,l=o?this.hoveredIndex<n-1:this.hoveredIndex>0,u=l?this.hoveredIndex+s:i,c=getNextNonDisabledIndex(s,u,n,this.getItemNodeFromIndex,this.circular);if(!this.circular&&(a&&c>this.hoveredIndex||o&&c<this.hoveredIndex))return;var d=this.items[c];this.scrollIntoView&&this.$nextTick(function(){t.scrollItemIntoView(u)}),this.setState({hoveredIndex:c,hovered:d},o?InputKeyDownArrowDown:InputKeyDownArrowUp)}}},setInputValue:function e(r){this.inputValue!==r&&this.setState({inputValue:r},FunctionSetInputValue)}});function slot(e){return{getInputProps:e.getInputProps,getItemProps:e.getItemProps,getMenuProps:e.getMenuProps,getComboboxProps:e.getComboboxProps,getLabelProps:e.getLabelProps,getInputEventListeners:e.getInputEventListeners,getMenuEventListeners:e.getMenuEventListeners,getItemEventListeners:e.getItemEventListeners,isOpen:e.isOpen,selectedItem:e.selectedItem,hoveredIndex:e.hoveredIndex,inputValue:e.inputValue,reset:e.reset,select:e.select,setInputValue:e.setInputValue,openMenu:e.openMenu,closeMenu:e.closeMenu}}var idCounter=0;function beforeCreate(){this.idCounter=idCounter.toString(),idCounter+=1}var isVue3=!!vue.defineComponent;!isVue3&&define_process_env_default.NODE_ENV!=="production"&&console.error(`Looks like your Vue version is 2.x, but you are using VueComboBlocks for Vue 3.
|
|
331
|
+
Install the correct version for Vue 2.x: "npm i vue-combo-blocks@vue2"`);var VueComboBlocks=vue.defineComponent({name:"vue-combo-blocks",emits:{select:null,"update:modelValue":null,"input-value-change":null,"is-open-change":null,"hovered-index-change":null,"state-change":null,change:null,"show-list":null,focus:null,hover:null},props:getProps(isVue3),watch:{modelValue:function e(r){isControlledProp(this.$props,"modelValue")&&(this.inputValue=this.itemToString(r),this.selectedItem=r)}},beforeCreate,data:function e(){return getInitialData(this.modelValue,this.itemToString)},computed:Object.assign({},computed),methods:Object.assign({},{setState:function e(r,t){var n=this.$data,o=this.stateReducer(n,{changes:r,type:t}),a=hasOwnProperty(o,"selectedItem"),s=o.selectedItem!==n.selectedItem;a&&(this.$emit("select",o.selectedItem,t),s&&this.$emit("update:modelValue",o.selectedItem,t));var i={};for(var l in o)hasOwnProperty(o,l)&&n[l]!==o[l]&&(i[l]=o[l],this[l]=i[l],l==="inputValue"?this.$emit("input-value-change",o[l],t):l==="isOpen"?this.$emit("is-open-change",o[l],t):l==="hoveredIndex"&&this.$emit("hovered-index-change",o[l],t));this.$emit("state-change",i,t)}},methods),render:function e(){return this.$slots.default(slot(this))}});VueComboBlocks.stateChangeTypes=sct;const _hoisted_1$m={"data-test":"vs-autocomplete",class:"vs-autocomplete mb-4"},_hoisted_2$f=["for"],_hoisted_3$c=["placeholder","onClick"],_hoisted_4$a=["name"],_sfc_main$t=vue.defineComponent({__name:"Autocomplete",props:{id:{},label:{},mode:{},multiselectLabel:{},name:{},options:{},placeholder:{},trackBy:{},isTourLocation:{type:Boolean},defaultVal:{}},emits:["changeValue"],setup(e,{emit:r}){const t=e,n=r,o=vue.ref([]),a=vue.ref(t.options),s=p=>p?p[u.value]:"",i=p=>{a.value=t.options.filter(f=>f[u.value].toLowerCase().includes(p.toLowerCase()))},l=p=>{typeof t.trackBy<"u"?n("changeValue",p[t.trackBy]):n("changeValue",p.label)},u=vue.computed(()=>typeof t.multiselectLabel<"u"?t.multiselectLabel:"name"),c=vue.computed(()=>{if(typeof o.value=="string"){if(t.isTourLocation){const p=t.options.find(f=>f.name===o.value);if(typeof p<"u")return p.slug.trim()}return o.value.trim()}else if(typeof o.value=="object"&&Object.keys(o.value).length>0)return s(o.value).trim()}),d=vue.computed(()=>!!(c.value&&c.value.length>0));return vue.watch(()=>o.value,()=>{o.value===null&&(o.value=[])}),vue.onMounted(()=>{typeof t.defaultVal<"u"&&(o.value=t.defaultVal)}),(p,f)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[vue.createElementVNode("label",{for:p.id},vue.toDisplayString(p.label),9,_hoisted_2$f),vue.createVNode(vue.unref(VueComboBlocks),{"input-id":p.id,modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),itemToString:s,items:a.value,onInputValueChange:i,onSelect:l},{default:vue.withCtx(({getInputProps:m,getInputEventListeners:v,hoveredIndex:h,isOpen:g,getMenuProps:_,getMenuEventListeners:C,getItemProps:b,getItemEventListeners:S,getComboboxProps:E,openMenu:N})=>[vue.createElementVNode("div",vue.mergeProps(E(),{class:"vs-autocomplete__list-wrapper"}),[vue.createElementVNode("input",vue.mergeProps({class:"vs-input form-control"},m(),vue.toHandlers(v(),!0),{placeholder:p.placeholder,onClick:V=>N()}),null,16,_hoisted_3$c),vue.createVNode(v4.VsIcon,{name:"chevron-down",variant:"primary",size:"sm"}),vue.withDirectives(vue.createElementVNode("ul",vue.mergeProps(_(),vue.toHandlers(C(),!0),{class:"vs-autocomplete__list"}),[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,(V,L)=>(vue.openBlock(),vue.createElementBlock("li",vue.mergeProps({key:V.id,ref_for:!0},b({item:V,index:L}),vue.toHandlers(S({item:V,index:L}),!0),{class:["vs-autocomplete__list-item",{"vs-autocomplete__list-item--hover":h===L}]}),vue.toDisplayString(V[u.value]),17))),128))],16),[[vue.vShow,g]])],16)]),_:1},8,["input-id","modelValue","items"]),d.value?vue.withDirectives((vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:p.name,"onUpdate:modelValue":f[1]||(f[1]=m=>c.value=m)},null,8,_hoisted_4$a)),[[vue.vModelText,c.value]]):vue.createCommentVNode("",!0)]))}}),_hoisted_1$l={class:"vs-guest-selector-number-group","data-test":"vs-guest-selector-number-group"},_hoisted_2$e={class:"vs-guest-selector-number-group__label"},_hoisted_3$b={class:"vs-guest-selector-number-group__buttons justify-content-end"},_hoisted_4$9=vue.createElementVNode("span",{class:"visually-hidden"}," Remove ",-1),_hoisted_5$9=["disabled"],_hoisted_6$9=vue.createElementVNode("span",{class:"visually-hidden"}," Add ",-1),_hoisted_7$8=["name","disabled"],_sfc_main$s=vue.defineComponent({__name:"GuestSelectorNumberGroup",props:{adultCount:{},childrenCount:{},count:{},disabled:{type:Boolean},id:{},infantCount:{},inputType:{},maxValue:{},minValue:{},name:{},rowName:{},rowLabel:{},unitRemoved:{type:Boolean}},emits:["changeHandler"],setup(e,{emit:r}){const t=e,n=r,o=vue.ref(0),a=vue.ref(!1),s=vue.ref(t.name),i=()=>{o.value>t.minValue&&(o.value--,a.value=!0,u("decrease"))},l=()=>{o.value<t.maxValue&&(o.value++,a.value=!0,u("increase"))},u=c=>{n("changeHandler",t.name,o.value,c,t.id)};return vue.onMounted(()=>{a.value||(o.value=t.minValue),o.value<=t.maxValue&&(o.value=t.count),t.unitRemoved&&(t.name.includes("children")?(o.value=t.childrenCount,s.value=t.rowName+"children"):t.name.includes("infants")?(o.value=t.infantCount,s.value=t.rowName+"infants"):(o.value=t.adultCount,s.value=t.rowName+"a"))}),(c,d)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$l,[vue.createElementVNode("span",_hoisted_2$e,vue.toDisplayString(c.rowLabel),1),vue.createElementVNode("div",_hoisted_3$b,[vue.createVNode(v4.VsButton,{class:"vs-guest-selector-number-group__button--remove",size:"sm",icon:"minus","icon-only":"",value:"-",onClick:vue.withModifiers(i,["prevent"]),disabled:o.value===c.minValue},{default:vue.withCtx(()=>[_hoisted_4$9]),_:1},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{class:"vs-guest-selector-number-group__input",disabled:c.disabled,pattern:"[0-9]*",readonly:"",tabIndex:"-1",type:"text","onUpdate:modelValue":d[0]||(d[0]=p=>o.value=p)},null,8,_hoisted_5$9),[[vue.vModelText,o.value]]),vue.createVNode(v4.VsButton,{class:"vs-guest-selector-number-group__button--add",size:"sm",icon:"plus","icon-only":"",value:"+",onClick:vue.withModifiers(l,["prevent"]),disabled:o.value===c.maxValue},{default:vue.withCtx(()=>[_hoisted_6$9]),_:1},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{type:"hidden","onUpdate:modelValue":d[1]||(d[1]=p=>o.value=p),name:(c.unitRemoved&&c.rowName!=="r1",s.value),disabled:c.disabled},null,8,_hoisted_7$8),[[vue.vModelText,o.value]])])]))}}),_hoisted_1$k={class:"vs-guest-selector-row","data-test":"vs-guest-selector-row"},_hoisted_2$d={class:"vs-guest-selector-row__title"},_hoisted_3$a={class:"visually-hidden"},_hoisted_4$8={key:1,class:"c-search__rooms-guests-picker__row"},_hoisted_5$8=["name"],_hoisted_6$8=["name"],_hoisted_7$7=["name"],_sfc_main$r=vue.defineComponent({__name:"GuestSelectorRow",props:{name:{},showRemoveBtn:{type:Boolean},unitLabel:{},unitOptions:{},unitRemoved:{type:Boolean}},emits:["numberChange","onRemove"],setup(e,{emit:r}){const t=e,n=r,o=vue.ref(t.unitOptions.numberGroups.adults.count),a=vue.ref(t.unitOptions.numberGroups.children.count),s=vue.ref(t.unitOptions.numberGroups.infants.count),i=getLabelText("remove","Remove","guests_rooms"),l=vue.computed(()=>a.value+s.value),u=(d,p,f,m)=>{let v="";d.includes("children")&&(a.value=p,v="children"),d.includes("infants")&&(s.value=p,v="infants"),(d.includes("r1a")||d.includes("r2a")||d.includes("r3a")||d.includes("r4a")||d.includes("r5a"))&&(o.value=p,v="adults"),n("numberChange",f,v,m)},c=()=>{n("onRemove",s.value+a.value+o.value,s.value+a.value,t.unitOptions.id)};return(d,p)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$k,[vue.createElementVNode("div",_hoisted_2$d,vue.toDisplayString(d.unitLabel),1),d.name!=="r1"?(vue.openBlock(),vue.createBlock(v4.VsButton,{key:0,class:"vs-guest-selector-row__remove",onClick:vue.withModifiers(c,["prevent"]),variant:"transparent",icon:"close","icon-size":"sm","icon-position":"left","icon-only":"",size:"sm"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$a,vue.toDisplayString(vue.unref(i)),1)]),_:1})):vue.createCommentVNode("",!0),d.unitOptions?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$8,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.unitOptions.numberGroups,(f,m)=>(vue.openBlock(),vue.createBlock(_sfc_main$s,{"adult-count":o.value,"children-count":a.value,count:f.count,disabled:!1,id:d.unitOptions.id,"infant-count":s.value,"input-type":f,key:`${d.name}_${m}`,"max-value":f.maxCount,"min-value":f.minCount,name:f.name,"row-label":f.unitLabel,"row-name":d.name,"unit-removed":d.unitRemoved,onChangeHandler:u},null,8,["adult-count","children-count","count","id","infant-count","input-type","max-value","min-value","name","row-label","row-name","unit-removed"]))),128)),vue.withDirectives(vue.createElementVNode("input",{type:"hidden",name:`${d.name}c`,"onUpdate:modelValue":p[0]||(p[0]=f=>l.value=f)},null,8,_hoisted_5$8),[[vue.vModelText,l.value]])])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,(f,m)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${d.name}c${m}`,name:`${d.name}c${m}`,value:"10"},null,8,_hoisted_6$8))),128)),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(f,m)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${d.name}c${m}`,name:`${d.name}c${m+a.value}`,value:"1"},null,8,_hoisted_7$7))),128))]))}}),_hoisted_1$j={class:"form-group vs-guest-selector","data-test":"vs-guest-selector"},_hoisted_2$c={class:"vs-guest-selector__label"},_hoisted_3$9=["disabled"],_hoisted_4$7={class:"visually-hidden"},_hoisted_5$7={class:"vs-guest-selector__button-row mb-3"},_hoisted_6$7={class:"d-flex justify-content-between"},_hoisted_7$6=["value","disabled"],_hoisted_8$4=["value","disabled"],adultDefaultCount=1,unitLimit=5,_sfc_main$q=vue.defineComponent({__name:"GuestSelector",props:{availability:{type:Boolean}},setup(e){const r=getLabelText("add_room_label","Add a Room","guests_rooms"),t=getLabelText("save_changes","Save","guests_rooms"),n=vue.ref(2),o=getLabelText("guest","Guest","guests_rooms"),a=getLabelText("guests","Guests","guests_rooms"),s=vue.ref(!1),i=vue.ref(0),l=vue.ref([{id:v4.v4(),showRemoveBtn:!1,numberGroups:{adults:{minCount:1,maxCount:30,count:2,name:"r1a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r1children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r1infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}}]),u=vue.ref(1),c=getLabelText("room","Room","guests_rooms"),d=getLabelText("rooms","Rooms","guests_rooms"),p=vue.ref(!1),f=vue.ref(!1),m=()=>{f.value=!1},v=()=>{f.value=!f.value},h=()=>{if(l.value.length<unitLimit){const C={id:v4.v4(),showRemoveBtn:!0,numberGroups:{adults:{minCount:1,maxCount:30,count:1,name:"r"+(l.value.length+1)+"a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r"+(l.value.length+1)+"children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r"+(l.value.length+1)+"infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}};let b=l.value.slice();b.push(C),l.value=b,u.value=b.length,s.value=!0,n.value=n.value+adultDefaultCount}},g=(C,b,S)=>{const E=l.value.findIndex(N=>N.id===S);l.value.splice(E,1),u.value=l.value.length,p.value=!0,n.value=n.value-C,i.value=i.value-b,l.value.length===1&&(s.value=!1)},_=(C,b,S)=>{n.value=C==="increase"?n.value+1:n.value-1,b!=="adults"&&(i.value=C==="increase"?i.value+1:i.value-1);const E=l.value.findIndex(N=>N.id===S);l.value[E].numberGroups[b].count=C==="increase"?l.value[E].numberGroups[b].count+1:l.value[E].numberGroups[b].count-1};return(C,b)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$j,[vue.createElementVNode("span",_hoisted_2$c,vue.toDisplayString(vue.unref(a)),1),vue.createElementVNode("button",{tabIndex:"availability ? '0' : ''",class:"vs-guest-selector__trigger form-control vs-input",onClick:vue.withModifiers(v,["prevent"]),disabled:!C.availability},[vue.createElementVNode("span",null,vue.toDisplayString(u.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(u.value>1?vue.unref(d):vue.unref(c)),1),vue.createTextVNode(", "),vue.createElementVNode("span",null,vue.toDisplayString(n.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(n.value>1?vue.unref(a):vue.unref(o)),1)],8,_hoisted_3$9),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-guest-selector__modal",f.value?"vs-guest-selector__modal--visible":""])},[vue.createVNode(v4.VsButton,{class:"align-self-end","data-test":"vs-guest-selector__close-btn",variant:"transparent",icon:"close-circle",size:"md","icon-only":"",onClick:vue.withModifiers(m,["prevent"])},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_4$7,vue.toDisplayString(vue.unref(getLabelText)("close","Close","guests_rooms")),1)]),_:1}),vue.createElementVNode("div",_hoisted_5$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(S,E)=>(vue.openBlock(),vue.createBlock(_sfc_main$r,{key:S.id,name:"r"+(E+1),"show-remove-btn":s.value,"unit-label":vue.unref(getLabelText)("room","Room","guests_rooms")+" "+(E+1),"unit-options":S,"unit-removed":p.value,onNumberChange:_,onOnRemove:g},null,8,["name","show-remove-btn","unit-label","unit-options","unit-removed"]))),128))]),vue.createElementVNode("div",_hoisted_6$7,[l.value.length<unitLimit?(vue.openBlock(),vue.createBlock(v4.VsButton,{key:0,variant:"secondary",class:"c-search__popup__btn-link me-2 align-self-start",onClick:vue.withModifiers(h,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(r)),1)]),_:1})):vue.createCommentVNode("",!0),l.value.length<unitLimit?(vue.openBlock(),vue.createBlock(v4.VsButton,{key:1,class:"c-search__popup__btn-link c-search__popup__btn-link--pull-right align-self-end",onClick:vue.withModifiers(m,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(t)),1)]),_:1})):vue.createCommentVNode("",!0)])],2),l.value?(vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:"rooms",id:"room-count",value:u.value,disabled:!C.availability},null,8,_hoisted_7$6)):vue.createCommentVNode("",!0),l.value?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"guests",id:"guest-count",value:n.value,disabled:!C.availability},null,8,_hoisted_8$4)):vue.createCommentVNode("",!0)]))}}),_hoisted_1$i={class:"vs-date-input","data-test":"vs-date-input"},_hoisted_2$b=["for"],_hoisted_3$8=["min","name","id"],_sfc_main$p=vue.defineComponent({__name:"DateInput",props:{label:{},id:{},name:{},value:{},minDate:{}},emits:["changeDate"],setup(e,{emit:r}){const t=e,n=r,o=vue.ref(t.value),a=vue.computed(()=>new Date().toISOString().split("T")[0]);return vue.watch(()=>t.value,s=>{o.value=s,n("changeDate",o.value)}),(s,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[vue.createElementVNode("label",{for:s.id},vue.toDisplayString(s.label),9,_hoisted_2$b),vue.withDirectives(vue.createElementVNode("input",{type:"date",min:typeof s.minDate<"u"&&s.minDate.length>0?s.minDate:a.value,name:s.name,id:s.id,"onUpdate:modelValue":i[0]||(i[0]=l=>o.value=l),onChange:i[1]||(i[1]=l=>s.$emit("changeDate",o.value)),class:"form-control vs-input"},null,40,_hoisted_3$8),[[vue.vModelText,o.value]])]))}}),_hoisted_1$h={class:"vs-date-range","data-test":"vs-date-range"},_hoisted_2$a={class:"row align-items-center"},_hoisted_3$7={class:"col-12 col-sm-5 order-1"},_hoisted_4$6={class:"col-12 col-sm-5 order-2"},_hoisted_5$6={class:"col-12 col-sm-2 order-first order-sm-3 text-sm-right"},_hoisted_6$6={key:1,type:"hidden",name:"refine-date",value:"on"},_hoisted_7$5=["value"],_sfc_main$o=vue.defineComponent({__name:"DateRange",props:{startLabel:{type:String,required:!1,default:"Start Date"},endLabel:{type:String,required:!1,default:"End Date"},defaultDates:{type:Boolean,default:!1},selectedProd:{type:String,required:!0}},emits:["dateUpdated"],setup(e,{emit:r}){const t=e,n=r,o=vue.ref(""),a=vue.ref(""),s=vue.computed(()=>!!o.value||!!a.value),i=vue.computed(()=>{const _=new Date(a.value),C=new Date(o.value),b=_.getTime()-C.getTime();return isNaN(b)?1:b/(1e3*3600*24)});function l(){o.value="",a.value=""}const u=_=>{const C=_.toLocaleString("default",{year:"numeric"}),b=_.toLocaleString("default",{month:"2-digit"}),S=_.toLocaleString("default",{day:"2-digit"});return`${C}-${b}-${S}`},c=vue.computed(()=>o.value===""?u(new Date):""),d=vue.computed(()=>{let _;if(o.value!==""){const C=new Date(o.value);C.setDate(C.getDate()+1),_=u(C)}else if(t.defaultDates){const C=new Date,b=new Date(C);b.setDate(b.getDate()+1),_=u(b)}return _}),p=vue.computed(()=>{let _;if(o.value===""){const C=new Date,b=new Date(C);b.setDate(b.getDate()+1),_=u(b)}else{const C=new Date,b=new Date(o.value);C.setDate(b.getDate()+1),_=u(C)}return _});function f(){const _=new Date(o.value);new Date(a.value)<=_&&(a.value="")}function m(){const _=!(!o.value&&!a.value);n("dateUpdated",_)}function v(){m(),f()}const h=vue.computed(()=>t.selectedProd==="acco"?"stay":"isostartdate"),g=vue.computed(()=>t.selectedProd==="acco"?"endDate":"isoenddate");return(_,C)=>(vue.openBlock(),vue.createElementBlock("fieldset",_hoisted_1$h,[vue.createElementVNode("div",_hoisted_2$a,[vue.createElementVNode("div",_hoisted_3$7,[vue.createVNode(_sfc_main$p,{label:e.startLabel,value:e.defaultDates&&o.value===""&&a.value?c.value:o.value,name:h.value,id:"startDate",onChangeDate:C[0]||(C[0]=b=>{o.value=b,v()}),class:"mb-4"},null,8,["label","value","name"])]),vue.createElementVNode("div",_hoisted_4$6,[vue.createVNode(_sfc_main$p,{label:e.endLabel,value:e.defaultDates&&a.value===""&&o.value?d.value:a.value,"min-date":p.value,name:g.value,id:"endDate",onChangeDate:C[1]||(C[1]=b=>{a.value=b,v()}),class:"mb-4"},null,8,["label","value","min-date","name"])]),vue.createElementVNode("div",_hoisted_5$6,[s.value?(vue.openBlock(),vue.createElementBlock("button",{key:0,id:"clearDateRange",type:"button",onClick:l,class:"vs-date-range__clear"},vue.toDisplayString(vue.unref(getLabelText)("reset","Clear")),1)):vue.createCommentVNode("",!0),e.selectedProd!=="acco"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_6$6)):vue.createCommentVNode("",!0),vue.createElementVNode("input",{type:"hidden",name:"nights",value:i.value},null,8,_hoisted_7$5)])])]))}}),_hoisted_1$g={class:"vs-product-search-embed","data-test":"vs-product-search-embed"},_hoisted_2$9={key:0,class:"container"},_hoisted_3$6={class:"row"},_hoisted_4$5={class:"col-12"},_hoisted_5$5=["action"],_hoisted_6$5={class:"form-group product-search__type mb-4"},_hoisted_7$4={for:"prodtypes"},_hoisted_8$3={class:"product-search__in d-none d-md-block mt-4"},_hoisted_9$3={"aria-live":"polite"},_hoisted_10$3=["disabled","value"],_hoisted_11$3=["disabled","value"],_hoisted_12$2=["value"],_hoisted_13$2={key:4,type:"hidden",name:"areaproxdist",value:"10"},_hoisted_14$2={key:5},_hoisted_15$2={key:0,class:"form-group"},_hoisted_16$1={for:"search-keyword"},_hoisted_17$1={key:2},_hoisted_18=["value"],_hoisted_19={key:0},_hoisted_20=["value"],__default__=vue.defineComponent({mixins:[v4.dataLayerMixin],methods:{trackSubmit(e,r){this.createDataLayerObject("productSearchDataEvent",{searchType:e,searchLocation:r.name},this.href)}}}),_sfc_main$n=vue.defineComponent({...__default__,__name:"ProductSearchEmbed",props:{defaultProd:{type:String,default:"acti,attr,reta",validator(e){return["acco","cate","even","tour","acti,attr,reta"].includes(e)}},defaultLocale:{type:String,default:"",validator(e){return["en","fr","de","es","it","nl",""].includes(e)}},defaultLocation:{type:String,default:""}},setup(e){const r=e,t=vue.ref(!1),n=vue.ref(),o=vue.ref([]);vue.ref(null);let a=vue.ref();a.value={id:"",key:"",name:"",type:""};const s=vue.ref("off"),i=vue.ref(!1),l=vue.computed(()=>{const k=typeof n.value>"u"?"see-do":n.value;return`/info/${paths[k]}`});let u=vue.ref(!1);const c={en:{localeUrl:""},fr:{localeUrl:"fr-fr"},de:{localeUrl:"de-de"},es:{localeUrl:"es-es"},it:{localeUrl:"it-it"},nl:{localeUrl:"nl-nl"}},d=vue.computed(()=>{let k=r.defaultLocale.length>0?r.defaultLocale:getLocale();return k==="en"&&(k=""),k}),p=vue.computed(()=>{if(typeof window<"u"){let k=window.location.origin;return k.includes("localhost")?"https://www.visitscotland.com":k}return"https://www.visitscotland.com"}),f=vue.computed(()=>`${p.value}${d.value?"/"+d.value:""}${l.value}/search-results`),v="https://www.visitscotland.com/data/locations"+`?locale=${d.value}`,h=vue.ref([]),g="https://www.visitscotland.com/tms-api/v1/attractions",_=vue.ref([]),C="https://www.visitscotland.com/tms-api/v1/origins?active=1",b=vue.ref([]),S=vue.ref([]),E=()=>{const k=getProductTypes(),A=[];k.forEach(D=>{A.push(D)}),S.value=A},N=vue.computed(()=>t.value?[]:S.value.map(A=>({...A,text:getProductName(A.value,A.text)}))),V=async()=>{const k=await getData(v);k&&(h.value=k.data)},L=async()=>{const k=await getData(C);k&&(b.value=k.data)},B=async()=>{const k=await getData(g);k&&(_.value=k.data)},I=(k,A)=>{A==="key"?a.value=h.value.find(D=>D.key===k):A==="id"?a.value=h.value.find(D=>D.id===k):a.value=h.value.find(D=>D.name===k.trim())},H=k=>{const A=k.value;n.value=A,A==="tour"&&(L(),B())},T=()=>c[r.defaultLocale]||"",R=()=>{t.value=!0,vue.nextTick(()=>{t.value=!1,r.defaultLocation!==""&&u&&I(r.defaultLocation,"id")})},X=vue.computed(()=>n.value!=="cate"&&n.value!=="acti,attr,reta"?"d-lg-flex":"");vue.onBeforeMount(async()=>{window.VS={};const k=document.createElement("script");k.async=!1,k.onload=R,k.setAttribute("src",`https://www.visitscotland.com/${T().localeUrl}/data/template/search.js`),document.head.appendChild(k)}),vue.onMounted(async()=>{V(),u.value=!0,n.value=r.defaultProd,n.value==="tour"&&(L(),B()),E()});const Y=k=>{s.value=k?"on":"off"},J=k=>{i.value=!0;const A=k.currentTarget;setTimeout(function(){A.submit()},500)};return(k,A)=>{var D,U,q,w,P,O;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[t.value?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9,[vue.createElementVNode("div",_hoisted_3$6,[vue.createElementVNode("div",_hoisted_4$5,[vue.unref(u)?(vue.openBlock(),vue.createElementBlock("form",{key:0,action:f.value,onSubmit:vue.withModifiers(J,["prevent"]),"accept-charset":"UTF-8","data-test":"psw-form"},[vue.createElementVNode("div",_hoisted_6$5,[vue.createElementVNode("label",_hoisted_7$4,vue.toDisplayString(vue.unref(getLabelText)("search_for","I'm looking for")),1),vue.createElementVNode("div",{class:vue.normalizeClass(X.value)},[vue.createVNode(VsSelect,{options:N.value,value:e.defaultProd,onUpdated:A[0]||(A[0]=F=>H(F)),"field-name":"prodtypes"},null,8,["options","value"]),vue.createElementVNode("div",_hoisted_8$3,vue.toDisplayString(vue.unref(getLabelText)("in","in")),1)],2)]),vue.createElementVNode("div",_hoisted_9$3,[n.value!="tour"&&vue.unref(u)?(vue.openBlock(),vue.createBlock(_sfc_main$t,{key:0,id:"search-location",label:vue.unref(getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:h.value,placeholder:vue.unref(getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:A[1]||(A[1]=F=>I(F)),"default-val":vue.unref(a),"data-chromatic":"ignore"},null,8,["label","options","placeholder","default-val"])):vue.createCommentVNode("",!0),n.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"locplace",disabled:((D=vue.unref(a))==null?void 0:D.type)==="POLYGON",value:((U=vue.unref(a))==null?void 0:U.key)||""},null,8,_hoisted_10$3)):vue.createCommentVNode("",!0),n.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:2,type:"hidden",name:"locpoly",disabled:((q=vue.unref(a))==null?void 0:q.type)!=="POLYGON",value:((w=vue.unref(a))==null?void 0:w.key)||""},null,8,_hoisted_11$3)):vue.createCommentVNode("",!0),n.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:3,type:"hidden",name:"locprox",value:((P=vue.unref(a))==null?void 0:P.type)==="DISTRICT"?1:0},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),n.value!=="tour"&&((O=vue.unref(a))==null?void 0:O.type)==="DISTRICT"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_13$2)):vue.createCommentVNode("",!0),n.value==="even"||n.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$2,[vue.createVNode(_sfc_main$o,{"start-label":vue.unref(getLabelText)("startdate","Start Date","dates"),"end-label":vue.unref(getLabelText)("enddate","End Date","dates"),onDateUpdated:A[2]||(A[2]=F=>Y(F)),"default-dates":i.value,"selected-prod":n.value},null,8,["start-label","end-label","default-dates","selected-prod"]),n.value==="even"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[vue.createElementVNode("label",_hoisted_16$1,vue.toDisplayString(vue.unref(getLabelText)("keywords","Keywords")),1),vue.createVNode(VsInput,{"field-name":"search-keyword",placeholder:vue.unref(getLabelText)("events_keywords_placeholder","Highland games, music festivals etc"),name:"name"},null,8,["placeholder"])])):vue.createCommentVNode("",!0),n.value==="acco"?(vue.openBlock(),vue.createBlock(_sfc_main$q,{key:1,availability:!0,id:"guest-selector"})):vue.createCommentVNode("",!0),n.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_17$1,[vue.createElementVNode("input",{hidden:"true",name:"avail",value:s.value},null,8,_hoisted_18)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),n.value==="tour"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_19,[vue.createVNode(_sfc_main$t,{id:"tour-origin",label:vue.unref(getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:b.value,placeholder:vue.unref(getLabelText)("tour_origin_placeholder","Location"),"track-by":"name","is-tour-location":!0},null,8,["label","options","placeholder"]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,F=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",name:"attractions[]",value:F},null,8,_hoisted_20))),256)),vue.createVNode(_sfc_main$t,{id:"tour-month",label:vue.unref(getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:vue.unref(getLabelText)("months",vue.unref(monthsEnglish)),placeholder:vue.unref(getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):vue.createCommentVNode("",!0),vue.createVNode(v4.VsButton,{class:"mt-6","data-test":"psw-submit",type:"submit",onClick:A[3]||(A[3]=F=>k.trackSubmit(n.value,typeof vue.unref(a)>"u"?"":vue.unref(a)))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(getLabelText)("search","Search")),1)]),_:1})],40,_hoisted_5$5)):vue.createCommentVNode("",!0),vue.unref(u)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(v4.VsLoading,{key:1,variant:"dark"}))])])]))])}}}),_sfc_main$m={name:"VsProductSearch",status:"prototype",release:"0.0.1",components:{VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsProductSearchEmbed:_sfc_main$n,VsHeading:v4.VsHeading,VsWarning:v4.VsWarning},props:{noJsMessage:{type:String,required:!0},defaultLocation:{type:String,default:""},defaultProd:{type:String,default:"acti,attr,reta"},defaultLocale:{type:String,default:"en"}}},_hoisted_1$f={class:"vs-product-search","data-test":"vs-product-search"},_hoisted_2$8={class:"vs-product-search__intro"};function _sfc_render$m(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsProductSearchEmbed"),u=vue.resolveComponent("VsWarning"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-product-search__col vs-product-search__col--left",xl:"7"},{default:vue.withCtx(()=>[vue.createVNode(s,{level:"2",alternative:"",class:"vs-product-search__heading mt-0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-heading")]),_:3}),vue.createElementVNode("div",_hoisted_2$8,[vue.renderSlot(e.$slots,"vs-module-intro")])]),_:3}),vue.createVNode(i,{class:"vs-product-search__col vs-product-search__col--right",xl:"5"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-product-search__widget","default-location":t.defaultLocation,"default-locale":t.defaultLocale,"default-prod":t.defaultProd},null,8,["default-location","default-locale","default-prod"]),vue.createVNode(u,{class:"vs-product-search__no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})]),_:1})]),_:3})]),_:3})])}const ProductSearch=v4._export_sfc(_sfc_main$m,[["render",_sfc_render$m]]),_sfc_main$l={name:"VsQuote",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"narrow",validator:e=>e.match(/(narrow|wide)/)}},computed:{hasAuthorName(){return!!this.$slots["quote-author-name"]},hasAuthorTitle(){return!!this.$slots["quote-author-title"]},hasAuthorImage(){return!!this.$slots["quote-image"]},variantClass(){return this.variant?`vs-quote--${this.variant}`:""}}},_hoisted_1$e=vue.createElementVNode("div",{class:"vs-quote__speech-container"},[vue.createElementVNode("span",{class:"vs-quote__speech-mark"},"“")],-1),_hoisted_2$7={key:0,class:"vs-quote__author-container"},_hoisted_3$5={class:"vs-quote__content-container"},_hoisted_4$4={class:"vs-quote__content"},_hoisted_5$4={key:0,class:"vs-quote__author-name"},_hoisted_6$4={key:1,class:"vs-quote__author-title"};function _sfc_render$l(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-quote",a.variantClass]),"data-test":"vs-quote"},[_hoisted_1$e,a.hasAuthorImage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$7,[vue.renderSlot(e.$slots,"quote-image")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$5,[vue.createElementVNode("div",_hoisted_4$4,[vue.renderSlot(e.$slots,"quote-content")]),a.hasAuthorName?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$4,[vue.renderSlot(e.$slots,"quote-author-name")])):vue.createCommentVNode("",!0),a.hasAuthorTitle?(vue.openBlock(),vue.createElementBlock("p",_hoisted_6$4,[vue.renderSlot(e.$slots,"quote-author-title")])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"quote-link")])],2)}const Quote=v4._export_sfc(_sfc_main$l,[["render",_sfc_render$l]]),_sfc_main$k={name:"VsTable",status:"prototype",release:"0.0.1",components:{BTableSimple:bootstrapVueNext.BTableSimple},props:{tableCaption:{type:String,required:!0},tableType:{type:String,default:"responsive",validator:e=>e.match(/(responsive|stacked)/)}},computed:{responsive(){return this.tableType==="responsive"},stacked(){return this.tableType==="stacked"}}},_hoisted_1$d={class:"visually-hidden","data-test":"vs-table__caption"};function _sfc_render$k(e,r,t,n,o,a){const s=vue.resolveComponent("BTableSimple");return vue.openBlock(),vue.createBlock(s,{class:"vs-table","data-test":"vs-table",small:"","caption-top":"",responsive:a.responsive,stacked:a.stacked},{default:vue.withCtx(()=>[vue.createElementVNode("caption",_hoisted_1$d,vue.toDisplayString(t.tableCaption),1),vue.renderSlot(e.$slots,"default")]),_:3},8,["responsive","stacked"])}const VsTable=v4._export_sfc(_sfc_main$k,[["render",_sfc_render$k]]),_sfc_main$j={name:"VsTableHead",status:"prototype",release:"0.0.1",components:{BThead:bootstrapVueNext.BThead}};function _sfc_render$j(e,r,t,n,o,a){const s=vue.resolveComponent("BThead");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableHead=v4._export_sfc(_sfc_main$j,[["render",_sfc_render$j]]),_sfc_main$i={name:"VsTableHeaderCell",status:"prototype",release:"0.0.1",components:{BTh:bootstrapVueNext.BTh},props:{stackedHeading:{type:String,default:void 0}}};function _sfc_render$i(e,r,t,n,o,a){const s=vue.resolveComponent("BTh");return vue.openBlock(),vue.createBlock(s,vue.mergeProps({"data-test":"vs-table-header-cell","stacked-heading":t.stackedHeading},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableHeaderCell=v4._export_sfc(_sfc_main$i,[["render",_sfc_render$i]]),_sfc_main$h={name:"VsTableBody",status:"prototype",release:"0.0.1",components:{BTbody:bootstrapVueNext.BTbody}};function _sfc_render$h(e,r,t,n,o,a){const s=vue.resolveComponent("BTbody");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableBody=v4._export_sfc(_sfc_main$h,[["render",_sfc_render$h]]),_sfc_main$g={name:"VsTableRow",status:"prototype",release:"0.0.1",components:{BTr:bootstrapVueNext.BTr}};function _sfc_render$g(e,r,t,n,o,a){const s=vue.resolveComponent("BTr");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableRow=v4._export_sfc(_sfc_main$g,[["render",_sfc_render$g]]),_sfc_main$f={name:"VsTableDataCell",status:"prototype",release:"0.0.1",components:{BTd:bootstrapVueNext.BTd},props:{stackedHeading:{type:String,default:null}}};function _sfc_render$f(e,r,t,n,o,a){const s=vue.resolveComponent("BTd");return vue.openBlock(),vue.createBlock(s,vue.mergeProps({"data-test":"vs-table-data-cell","stacked-heading":t.stackedHeading},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableDataCell=v4._export_sfc(_sfc_main$f,[["render",_sfc_render$f]]),_sfc_main$e={name:"VsTableFooter",status:"prototype",release:"0.0.1",components:{BTfoot:bootstrapVueNext.BTfoot}};function _sfc_render$e(e,r,t,n,o,a){const s=vue.resolveComponent("BTfoot");return vue.openBlock(),vue.createBlock(s,vue.mergeProps(e.$attrs,{role:"rowgroup"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableFooter=v4._export_sfc(_sfc_main$e,[["render",_sfc_render$e]]),_sfc_main$d={name:"VsSkiScotlandCard",status:"prototype",release:"0.0.1",components:{VsImg:v4.VsImg,VsHeading:v4.VsHeading,VsIcon:v4.VsIcon,VsWarning:v4.VsWarning,VsLoadingSpinner:v4.VsLoading,VsButton:v4.VsButton,VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter},props:{centreInfoUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},lastUpdatedLabel:{type:String,default:"Last Updated"},liftsLabel:{type:String,default:"Lifts"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},pisteMapLabel:{type:String,default:"View Piste Map"},moreDetailsLabel:{type:String,default:"More Details"},pisteMapLink:{type:String,default:""},moreDetailsLink:{type:String,required:!0,default:"#"}},data(){return{statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},runs:[],lifts:[],lastUpdate:"",jsDisabled:!0,isLoading:!0,displayError:!1}},mounted(){this.centreInfoUrl&&this.retrieveCentreInfo(),this.jsDisabled=!1},methods:{retrieveCentreInfo(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);v4.axios.get(this.centreInfoUrl).then(r=>{const t=this.cleanData(r.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const r={contact:e.contact,report:e.report};if(e.snowReport)r.lastUpdate=e.snowReport.lastupdate,r.lifts=e.lifts.sector.items,r.runs=e.runs.items,this.isCairngorms=!0;else if(r.lastUpdate=e.lastupdate,[r.lifts]=e.lift.sectors,r.lifts=r.lifts.lifts,e.run.areas){const t=e.run.areas.map(n=>n.runs).reduce((n,o)=>n.concat(o)).filter((n,o,a)=>o===a.findIndex(s=>s.name===n.name));r.runs=t}return r},processLastUpdate(e){const r=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},n=r.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${n}`},processLifts(e){for(let r=0;r<e.length;r++)switch(e[r].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let r=0;r<e.length;r++)switch(e[r].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}this.runs=e}}},_hoisted_1$c={class:"card vs-ski-scotland-card","data-test":"vs-ski-scotland-card"},_hoisted_2$6={class:"vs-ski-scotland-card__img-container"},_hoisted_3$4={class:"card-body"},_hoisted_4$3={key:0,class:"text-center pb-8 position-relative"},_hoisted_5$3={"data-test":"vs-ski__status-label"},_hoisted_6$3={"data-test":"vs-ski__runs-label"},_hoisted_7$3={"data-test":"vs-ski__lifts-label"},_hoisted_8$2={"data-test":"vs-ski__open-label"},_hoisted_9$2={"data-test":"vs-ski__limited-patrol-label"},_hoisted_10$2={"data-test":"vs-ski__opening-label"},_hoisted_11$2={"data-test":"vs-ski__closed-label"},_hoisted_12$1={"data-test":"vs-ski__on-hold-label"},_hoisted_13$1={"data-test":"vs-ski__last-updated-label"},_hoisted_14$1={class:"vs-ski-scotland-card__button-holder vs-ski-scotland-card__button-holder--left"},_hoisted_15$1={class:"vs-ski-scotland-card__button-holder vs-ski-scotland-card__button-holder--right"};function _sfc_render$d(e,r,t,n,o,a){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsLoadingSpinner"),u=vue.resolveComponent("VsWarning"),c=vue.resolveComponent("VsTableHeaderCell"),d=vue.resolveComponent("VsTableHead"),p=vue.resolveComponent("VsIcon"),f=vue.resolveComponent("VsTableDataCell"),m=vue.resolveComponent("VsTableRow"),v=vue.resolveComponent("VsTableBody"),h=vue.resolveComponent("VsTableFooter"),g=vue.resolveComponent("VsTable"),_=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$c,[vue.createElementVNode("div",_hoisted_2$6,[t.imgSrc?(vue.openBlock(),vue.createBlock(s,{key:0,src:t.imgSrc,alt:t.imgAlt,class:"vs-ski-scotland-card__img","data-test":"vs-ski-scotland-card__img"},null,8,["src","alt"])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_3$4,[vue.createVNode(i,{level:"3"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-name")]),_:3}),o.jsDisabled||o.isLoading||o.displayError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[!o.jsDisabled&&o.isLoading?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(l,{class:"mb-4 d-block"}),vue.renderSlot(e.$slots,"data-loading")],64)):vue.createCommentVNode("",!0),!o.jsDisabled&&o.displayError?(vue.openBlock(),vue.createBlock(u,{key:1,size:"small","data-test":"vs-ski-scotland-card__error"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})):vue.createCommentVNode("",!0),o.jsDisabled?(vue.openBlock(),vue.createBlock(u,{key:2,size:"small","data-test":"vs-ski-scotland-card__js-disabled"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),!o.jsDisabled&&!o.isLoading&&!o.displayError?(vue.openBlock(),vue.createBlock(g,{key:1,"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$3,vue.toDisplayString(t.statusLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(c,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_6$3,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_7$3,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(p,{name:"tick",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_8$2,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.open)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.open)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1}),o.statusSummary.runs.limitedPatrol||o.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(p,{name:"ski-boot",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_9$2,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(p,{name:"expected-open",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_10$2,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.opening)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.opening)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(p,{name:"status-closed",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_11$2,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.closed)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.closed)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1}),o.statusSummary.runs.onHold||o.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(m,{key:1},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(p,{name:"hourglass",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_12$1,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.onHold)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(f,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_13$1,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(o.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_14$1,[vue.createVNode(_,{variant:"secondary",href:t.pisteMapLink,size:"sm",disabled:!t.pisteMapLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.pisteMapLabel),1)]),_:1},8,["href","disabled"])]),vue.createElementVNode("div",_hoisted_15$1,[vue.createVNode(_,{href:t.moreDetailsLink,size:"sm"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.moreDetailsLabel),1)]),_:1},8,["href"])])])])}const SkiScotlandCard=v4._export_sfc(_sfc_main$d,[["render",_sfc_render$d]]),_sfc_main$c={name:"VsSkiScotlandStatus",status:"prototype",release:"0.0.1",components:{VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter,VsContainer:v4.VsContainer,VsRow:v4.VsRow,VsCol:v4.VsCol,VsAccordion,VsAccordionItem,VsIcon:v4.VsIcon,VsLink,VsHeading:v4.VsHeading,VsLoadingSpinner:v4.VsLoading,VsWarning:v4.VsWarning},props:{skiStatusUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},currentWeatherLabel:{type:String,default:"Current Weather"},detailedStatusLabel:{type:String,default:"Detailed Status"},difficultLabel:{type:String,default:"Difficult"},easyLabel:{type:String,default:"Easy"},intermediateLabel:{type:String,default:"Intermediate"},itinerariesLabel:{type:String,default:"Itineraries"},lastUpdatedLabel:{type:String,default:"Last Updated"},liftLabel:{type:String,default:"Lift"},liftsLabel:{type:String,default:"Lifts"},liftStatusLabel:{type:String,default:"Lift Status"},newsLabel:{type:String,default:"News From The Slopes"},otherLabel:{type:String,default:"Other"},roadsLabel:{type:String,default:"Road Status"},runLabel:{type:String,default:"Run"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},runStatusLabel:{type:String,default:"Run Status"},snowConditionsLabel:{type:String,default:"Snow Conditions Full Report"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},statusClosedLabel:{type:String,default:"Closed"},statusOpenLabel:{type:String,default:"Open"},statusOpeningLabel:{type:String,default:"Opening"},statusLimitedPatrolLabel:{type:String,default:"Limited Patrol"},statusOnHoldLabel:{type:String,default:"On Hold"},veryDifficultLabel:{type:String,default:"Very Difficult"},weatherForecastLabel:{type:String,default:"Weather Forecast"},greenLabel:{type:String,default:"Green"},blueLabel:{type:String,default:"Blue"},redLabel:{type:String,default:"Red"},blackLabel:{type:String,default:"Black"},orangeLabel:{type:String,default:"Orange"},greyLabel:{type:String,default:"Grey"}},data(){return{tokens:designTokens,componentId:0,statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},lifts:[],runs:[],lastUpdate:"",report:"",currentWeather:"",weatherForecast:"",roadStatus:"",news:"",runLevels:[{colour:"green",colourToken:"",id:"easy",name:this.easyLabel,runs:[]},{colour:"blue",colourToken:"",id:"intermediate",name:this.intermediateLabel,runs:[]},{colour:"red",colourToken:"",id:"difficult",name:this.difficultLabel,runs:[]},{colour:"black",colourToken:"",id:"very-difficult",name:this.veryDifficultLabel,runs:[]},{colour:"orange",colourToken:"",id:"itineraries",name:this.itinerariesLabel,runs:[]},{colour:"grey",colourToken:"",id:"other",name:this.otherLabel,runs:[]}],jsDisabled:!0,isLoading:!0,displayError:!1,isCairngorms:!1}},computed:{filteredRunLevels(){return this.setColourToken().filter(r=>r.runs.length>0)}},mounted(){this.skiStatusUrl&&this.retrieveSkiStatus(),this.id=this._uid,this.jsDisabled=!1},methods:{retrieveSkiStatus(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);v4.axios.get(this.skiStatusUrl).then(r=>{const t=this.cleanData(r.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.processFullReport(t.report),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const r={contact:e.contact,report:e.report};if(e.snowReport)r.lastUpdate=e.snowReport.lastupdate,r.lifts=e.lifts.sector.items,r.runs=e.runs.items,this.isCairngorms=!0;else if(r.lastUpdate=e.lastupdate,[r.lifts]=e.lift.sectors,r.lifts=r.lifts.lifts,e.run.areas){const t=e.run.areas.map(n=>n.runs).reduce((n,o)=>n.concat(o)).filter((n,o,a)=>o===a.findIndex(s=>s.name===n.name));r.runs=t}if(r.runs)for(let t=0;t<r.runs.length;t++)r.runs[t].difficulty===null&&(r.runs[t].difficulty="orange");return r},processFullReport(e){this.report=e.runs,this.currentWeather=e.current_weather_conditions,this.weatherForecast=e.weather_forecast,this.roadStatus=e.access_roads,this.news=e.news_from_the_slopes},processLastUpdate(e){const r=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},n=r.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${n}`},processLifts(e){for(let r=0;r<e.length;r++)switch(e[r].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let r=0;r<e.length;r++){switch(e[r].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}for(let t=0;t<this.runLevels.length;t++)this.runLevels[t].colour===e[r].difficulty&&this.runLevels[t].runs.push(e[r])}this.runs=e},getColourLabel(e){return this[`${e}Label`]},setColourToken(){return this.runLevels.map(({...e})=>({...e,colourToken:this.tokens[`vs-color-icon-ski-grade-${e.id}`]}))}}},_hoisted_1$b={class:"vs-ski-scotland-status","data-test":"vs-ski-scotland-status"},_hoisted_2$5={"data-test":"vs-ski__status-label"},_hoisted_3$3={"data-test":"vs-ski__runs-label"},_hoisted_4$2={"data-test":"vs-ski__lifts-label"},_hoisted_5$2={"data-test":"vs-ski__open-label"},_hoisted_6$2={"data-test":"vs-ski__open-label"},_hoisted_7$2={"data-test":"vs-ski__opening-label"},_hoisted_8$1={"data-test":"vs-ski__closed-label"},_hoisted_9$1={"data-test":"vs-ski__open-label"},_hoisted_10$1={"data-test":"vs-ski__last-updated-label"},_hoisted_11$1=["innerHTML"],_hoisted_12=["innerHTML"],_hoisted_13=["innerHTML"],_hoisted_14=["innerHTML"],_hoisted_15=["innerHTML"],_hoisted_16=["data-test"],_hoisted_17={class:"visually-hidden"};function _sfc_render$c(e,r,t,n,o,a){const s=vue.resolveComponent("VsLoadingSpinner"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer"),c=vue.resolveComponent("VsWarning"),d=vue.resolveComponent("VsHeading"),p=vue.resolveComponent("VsTableHeaderCell"),f=vue.resolveComponent("VsTableHead"),m=vue.resolveComponent("VsIcon"),v=vue.resolveComponent("VsTableDataCell"),h=vue.resolveComponent("VsTableRow"),g=vue.resolveComponent("VsTableBody"),_=vue.resolveComponent("VsTableFooter"),C=vue.resolveComponent("VsTable"),b=vue.resolveComponent("VsLink"),S=vue.resolveComponent("VsAccordionItem"),E=vue.resolveComponent("VsAccordion");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$b,[!o.jsDisabled&&o.isLoading?(vue.openBlock(),vue.createBlock(u,{key:0},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:"text-center py-4"},{default:vue.withCtx(()=>[vue.createVNode(s),vue.renderSlot(e.$slots,"data-loading")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),!o.jsDisabled&&o.displayError?(vue.openBlock(),vue.createBlock(u,{key:1},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:"text-center py-4"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[o.jsDisabled?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"6","data-test":"vs-ski__js-disabled"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})]),_:3})):vue.createCommentVNode("",!0),!o.jsDisabled&&!o.isLoading&&!o.displayError?(vue.openBlock(),vue.createBlock(i,{key:1,cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","override-style-level":"5","data-test":"vs-ski__runs-lifts-status-label",class:"d-none d-md-block"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runsLiftsStatusLabel),1)]),_:1}),vue.createVNode(C,{"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$5,vue.toDisplayString(t.statusLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(p,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$3,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_4$2,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(m,{name:"tick",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_5$2,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.open)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.open)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1}),o.statusSummary.runs.limitedPatrol||o.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(m,{name:"ski-boot",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_6$2,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(m,{name:"expected-open",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_7$2,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.opening)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.opening)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(m,{name:"status-closed",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_8$1,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.closed)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.closed)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1}),o.statusSummary.runs.onHold||o.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(h,{key:1},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(m,{name:"hourglass",size:"xs",class:"me-2"}),vue.createElementVNode("span",_hoisted_9$1,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),o.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.runs.onHold)+"/"+vue.toDisplayString(o.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(o.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(v,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_10$1,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(o.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"]),vue.createVNode(b,{href:`#vs-ski-scotland-status__detailed-status-${e.id}`,type:"default",class:"vs-ski-scotland-status__detailed-status-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.detailedStatusLabel),1)]),_:1},8,["href"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(i,{cols:"12",md:"5","offset-md":"1",class:"vs-ski-scotland-status__centre-info"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-information")]),_:3})]),_:3}),!o.jsDisabled&&!o.isLoading&&!o.displayError?(vue.openBlock(),vue.createBlock(l,{key:0},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"9",class:"vs-ski-scotland-status__full-report"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"2","data-test":"vs-ski__snow-conditions-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.snowConditionsLabel),1)]),_:1}),vue.createElementVNode("div",{innerHTML:o.report},null,8,_hoisted_11$1),o.currentWeather.length?(vue.openBlock(),vue.createBlock(d,{key:0,level:"3","override-style-level":"5","data-test":"vs-ski__current-weather-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.currentWeatherLabel),1)]),_:1})):vue.createCommentVNode("",!0),o.currentWeather.length?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:o.currentWeather},null,8,_hoisted_12)):vue.createCommentVNode("",!0),o.weatherForecast.length?(vue.openBlock(),vue.createBlock(d,{key:2,level:"3","override-style-level":"5","data-test":"vs-ski__weather-forecast-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.weatherForecastLabel),1)]),_:1})):vue.createCommentVNode("",!0),o.weatherForecast.length?(vue.openBlock(),vue.createElementBlock("div",{key:3,innerHTML:o.weatherForecast},null,8,_hoisted_13)):vue.createCommentVNode("",!0),o.roadStatus.length?(vue.openBlock(),vue.createBlock(d,{key:4,level:"3","override-style-level":"5","data-test":"vs-ski__roads-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.roadsLabel),1)]),_:1})):vue.createCommentVNode("",!0),o.roadStatus.length?(vue.openBlock(),vue.createElementBlock("div",{key:5,innerHTML:o.roadStatus},null,8,_hoisted_14)):vue.createCommentVNode("",!0),o.news.length?(vue.openBlock(),vue.createBlock(d,{key:6,level:"3","override-style-level":"5","data-test":"vs-ski__news-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.newsLabel),1)]),_:1})):vue.createCommentVNode("",!0),o.news.length?(vue.openBlock(),vue.createElementBlock("div",{key:7,innerHTML:o.news},null,8,_hoisted_15)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0),!o.jsDisabled&&!o.isLoading&&!o.displayError?(vue.openBlock(),vue.createBlock(l,{key:1},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","data-test":"vs-ski__lift-status-label",id:`vs-ski-scotland-status__detailed-status-${e.id}`},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftStatusLabel),1)]),_:1},8,["id"]),vue.createVNode(C,{"table-caption":t.liftStatusLabel,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftLabel),1)]),_:1})]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.lifts,N=>(vue.openBlock(),vue.createBlock(h,{key:N.name},{default:vue.withCtx(()=>[N.status==="0"||N.status===0?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"status-closed",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),N.status==="1"||N.status===1?(vue.openBlock(),vue.createBlock(v,{key:1},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"tick",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),N.status==="2"||N.status===2?(vue.openBlock(),vue.createBlock(v,{key:2},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"expected-open",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),N.status==="3"||N.status===3?(vue.openBlock(),vue.createBlock(v,{key:3},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"ski-boot",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),N.status==="4"||N.status===4?(vue.openBlock(),vue.createBlock(v,{key:4},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"hourglass",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(N.name),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(v,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(o.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),!o.jsDisabled&&!o.isLoading&&!o.displayError&&o.runs.length?(vue.openBlock(),vue.createBlock(l,{key:2},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","data-test":"vs-ski__run-status-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runStatusLabel),1)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.filteredRunLevels,N=>(vue.openBlock(),vue.createElementBlock("div",{key:N.name},[vue.createVNode(E,null,{default:vue.withCtx(()=>[vue.createVNode(S,{variant:"transparent","control-id":"accordion_item_"+N.name,"colour-badge":N.colourToken},{title:vue.withCtx(()=>[vue.createElementVNode("div",{"data-test":`vs-ski__${N.name}-label`,class:"d-inline-block"},[vue.createElementVNode("span",_hoisted_17,vue.toDisplayString(a.getColourLabel(N.colour)),1),vue.createTextVNode(" "+vue.toDisplayString(N.name),1)],8,_hoisted_16)]),default:vue.withCtx(()=>[vue.createVNode(C,{"table-caption":N.colour+" - "+N.name,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runLabel),1)]),_:1})]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(N.runs,V=>(vue.openBlock(),vue.createBlock(h,{key:V.name,"data-test":`vs-ski__${N.name}-row`},{default:vue.withCtx(()=>[V.status==="0"||V.status===0?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"status-closed",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),V.status==="1"||V.status===1?(vue.openBlock(),vue.createBlock(v,{key:1},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"tick",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),V.status==="2"||V.status===2?(vue.openBlock(),vue.createBlock(v,{key:2},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"expected-open",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),V.status==="3"||V.status===3?(vue.openBlock(),vue.createBlock(v,{key:3},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"ski-boot",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),V.status==="4"||V.status===4?(vue.openBlock(),vue.createBlock(v,{key:4},{default:vue.withCtx(()=>[vue.createVNode(m,{name:"hourglass",size:"xs",class:"me-2"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(V.name),1)]),_:2},1024)]),_:2},1032,["data-test"]))),128))]),_:2},1024),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(v,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(o.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:2},1032,["table-caption"])]),_:2},1032,["control-id","colour-badge"])]),_:2},1024)]))),128))]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:3})])}const SkiScotlandStatus=v4._export_sfc(_sfc_main$c,[["render",_sfc_render$c]]),_sfc_main$b={name:"VsSkipTo",status:"prototype",release:"0.0.1",components:{VsLink},props:{skipToText:{type:String,required:!0}},methods:{mainMenuFocus(){const e=document.getElementsByClassName("vs-mega-nav__menu__mobile")[0],r=document.getElementsByClassName("vs-mega-nav-dropdown")[0];if(!this.isUndefined(r)){let t=r.getElementsByClassName("btn")[0];e.offsetParent!==null?(e.querySelectorAll(".btn.dropdown-toggle")[0].click(),t=document.getElementsByClassName("vs-mega-nav-accordion-item--level-1")[0].querySelectorAll(".vs-button.vs-accordion-toggle")[0],setTimeout(()=>{t.focus()},200)):t.focus()}},footerFocus(){const e=document.getElementsByClassName("vs-footer")[0];if(!this.isUndefined(e)){const r=e.getElementsByClassName("vs-footer-accordion-item")[0],t=r.getElementsByClassName("vs-link")[0],n=r.getElementsByClassName("vs-accordion-toggle")[0];n.offsetParent!==null&&!this.isUndefined(n)&&n.click(),!this.isUndefined(e)&&!this.isUndefined(t)&&(e.scrollIntoView(!0),setTimeout(()=>{t.focus()},200))}},isUndefined(e){return typeof e>"u"}}},_hoisted_1$a=["aria-label"],_hoisted_2$4={class:"vs-skip-to__label",id:"skip-to-label"};function _sfc_render$b(e,r,t,n,o,a){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-skip-to d-flex","data-test":"vs-skip-to","aria-label":t.skipToText},[vue.createElementVNode("p",_hoisted_2$4,vue.toDisplayString(t.skipToText)+": ",1),vue.createVNode(s,{href:"#main-nav","data-test":"vs-skip-to-main-menu",onClick:r[0]||(r[0]=i=>a.mainMenuFocus()),id:"main-menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-menu-text")]),_:3}),vue.createVNode(s,{href:"#site-search-btn","data-test":"vs-skip-to-search",class:"vs-skip-to__search"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"search-text")]),_:3}),vue.createVNode(s,{href:"#main-heading","data-test":"vs-skip-to-main-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-content-text")]),_:3}),vue.createVNode(s,{href:"#site-footer",onClick:r[1]||(r[1]=i=>a.footerFocus()),"data-test":"vs-skip-to-footer"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"footer-text")]),_:3})],8,_hoisted_1$a)}const SkipTo=v4._export_sfc(_sfc_main$b,[["render",_sfc_render$b]]),_sfc_main$a={name:"VsSocialCreditLink",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon:v4.VsIcon},props:{credit:{type:String,required:!0},socialPostUrl:{type:String,required:!0},source:{type:String,required:!0,validator:e=>e.match(/(instagram)/)}}},_hoisted_1$9={class:"social-credit","data-test":"vs-social-credit-link"};function _sfc_render$a(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$9,[t.source?(vue.openBlock(),vue.createBlock(s,{key:0,name:t.source,variant:"inverse",size:"xs",class:"me-1","data-test":"vs-social-credit-link__icon"},null,8,["name"])):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"social-credit__link","data-test":"vs-social-credit-link__link",href:t.socialPostUrl,variant:"on-dark",type:"external"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.credit),1)]),_:1},8,["href"])])}const SocialCreditLink=v4._export_sfc(_sfc_main$a,[["render",_sfc_render$a]]),_sfc_main$9={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton:v4.VsButton,VsHeading:v4.VsHeading,VsModuleWrapper,BPopover:bootstrapVueNext.BPopover,VsRow:v4.VsRow,VsContainer:v4.VsContainer,VsCol:v4.VsCol},provide(){return{referringPageUrl:this.pageUrl,pageTitle:this.pageTitle,noJs:this.noJs}},props:{shareBtnText:{type:String,required:!0},sharePopoverTitle:{type:String,required:!0},pageUrl:{type:String,required:!0},pageTitle:{type:String,default:""},closeAltText:{type:String,required:!0},id:{type:String,required:!0},noJs:{type:Boolean,default:!1}},data(){return{copyLink:!1,renderPopover:!1}},mounted(){this.renderPopover=!0},methods:{onClose(e){this.$refs.popover.hideFn(e)},onShown(){this.focusFirst()},onHidden(){this.focusRef(this.$refs.shareButton)},onHide(e){this.copyLink&&(e.preventDefault(),this.focusFirst(),this.copyLink=!1)},onCopyLink(){this.copyLink=!0},focusRef(e){this.$nextTick(()=>{this.$nextTick(()=>{(e.$el||e).focus()})})},focusFirst(){this.$nextTick(()=>{this.$nextTick(()=>{this.$refs.popoverShareRow.$el.querySelector(".vs-social-share-item a ").focus()})})},tabFromClose(e){e.shiftKey||(e.preventDefault(),this.focusFirst())},tabBackFromHidden(e){e.shiftKey&&(e.preventDefault(),this.focusRef(this.$refs.closeButton))}}},_hoisted_1$8={class:"visually-hidden"};function _sfc_render$9(e,r,t,n,o,a){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("BPopover"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsContainer"),p=vue.resolveComponent("VsModuleWrapper");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-social-share",t.noJs?"vs-module-wrapper__outer--hidden":"vs-module-wrapper__outer--light"]),"data-test":"vs-social-share",ref:"socialShareContainer"},[t.noJs?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:0,"icon-with-text":"",class:"vs-social-share__share-btn",variant:"transparent",icon:"share",id:`vs-social-share-popover--${t.id}`,ref:"shareButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.shareBtnText),1)]),_:1},8,["id"])),!t.noJs&&o.renderPopover?(vue.openBlock(),vue.createBlock(u,{key:1,"custom-class":"vs-social-share__popover",target:`vs-social-share-popover--${t.id}`,click:!0,container:"body",placement:"left-end",onShown:a.onShown,onHidden:a.onHidden,onHide:a.onHide,ref:"popover"},{default:vue.withCtx(()=>[vue.createVNode(i,{thin:"",level:"3",tabindex:"0",ref:"shareHeader",class:"vs-social-share__header",onKeydown:r[0]||(r[0]=vue.withKeys(f=>a.tabBackFromHidden(f),["tab"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1},512),vue.createVNode(l,{ref:"popoverShareRow"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{onCopyLink:a.onCopyLink})]),_:3},512),vue.createVNode(s,{"icon-only":"",class:"vs-social-share__close-btn",icon:"close",size:"lg",variant:"transparent",ref:"closeButton",onClick:a.onClose,onKeydown:r[1]||(r[1]=vue.withKeys(f=>a.tabFromClose(f),["tab"]))},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$8,vue.toDisplayString(t.closeAltText),1)]),_:1},8,["onClick"])]),_:3},8,["target","onShown","onHidden","onHide"])):vue.createCommentVNode("",!0),t.noJs?(vue.openBlock(),vue.createBlock(p,{key:2,class:"vs-social-share--module-list"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(i,{thin:"",level:"2","override-style-level":"3",class:"mb-9 mt-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(l,{class:"justify-content-center"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0)],2)}const SocialShare=v4._export_sfc(_sfc_main$9,[["render",_sfc_render$9]]),_sfc_main$8={name:"VsSocialShareItem",status:"prototype",release:"0.0.1",components:{VsCol:v4.VsCol,VsLink,VsIcon:v4.VsIcon},mixins:[v4.dataLayerMixin],inject:{referringPageUrl:{default:""},pageTitle:{default:""},noJs:{default:""}},props:{name:{type:String,required:!0,validator:e=>e.match(/(facebook|twitter|pinterest|link|email|whatsapp)/)},linkText:{type:String,required:!0},linkCopiedText:{type:String,default:""}},data(){return{show:!1}},computed:{iconColour(){let e="";switch(this.name){case"facebook":e="#1877f2";break;case"x-twitter":e="#0F1419";break;case"pinterest":e="#E60023";break;case"whatsapp":e="#455a64";break;default:e="#000000"}return e},encodedPageTitle(){return encodeURI(this.pageTitle)},shareUrl(){let e="";switch(this.name){case"facebook":e=`https://www.facebook.com/sharer/sharer.php?u=${this.referringPageUrl}&t=${this.encodedPageTitle}`;break;case"x-twitter":e=`https://twitter.com/intent/tweet?text=${this.encodedPageTitle}%20@VisitScotland&url=${this.referringPageUrl}`;break;case"pinterest":e=`https://www.pinterest.com/pin/create/button/?url=${this.referringPageUrl}`;break;case"email":e=`mailto:?body=${this.encodedPageTitle}%20-%20${this.referringPageUrl}&subject=${this.encodedPageTitle}`;break;case"whatsapp":e=`https://wa.me/?text=${this.encodedPageTitle}%20-%20${this.referringPageUrl}`;break;case"link":e="#";break;default:e="#"}return e}},methods:{copyToClipboard(e){if(this.name==="link"){if(this.$emit("copyLinkClicked"),!navigator.clipboard)return;navigator.clipboard.writeText&&navigator.clipboard.writeText(this.referringPageUrl),this.show=!0,setTimeout(()=>{this.show=!1},2e3)}this.trackShareClick(e)},trackShareClick(e){this.createDataLayerObject("socialShareDataEvent",e,this.href)}}},_hoisted_1$7={class:"vs-social-share-item__text"};function _sfc_render$8(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(l,{class:"vs-social-share-item","data-test":"vs-social-share-item",cols:4,md:a.noJs?2:4},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-social-share-item__link",href:a.shareUrl,onClick:r[0]||(r[0]=u=>a.copyToClipboard(u)),id:`vs-share-${t.name}`},{default:vue.withCtx(()=>[vue.createVNode(s,{name:t.name,"custom-colour":a.iconColour,size:"xl","small-size":"lg"},null,8,["name","custom-colour"]),vue.createElementVNode("span",_hoisted_1$7,vue.toDisplayString(o.show?t.linkCopiedText:t.linkText),1)]),_:1},8,["href","id"])]),_:1},8,["md"])}const SocialShareItem=v4._export_sfc(_sfc_main$8,[["render",_sfc_render$8]]),_sfc_main$7={name:"VsSummaryBoxList",status:"prototype",release:"0.0.1"},_hoisted_1$6={class:"vs-summary-box","data-test":"vs-summary-box-list"},_hoisted_2$3={class:"vs-summary-box__list list-unstyled d-flex flex-wrap p-2 p-sm-3"};function _sfc_render$7(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[vue.createElementVNode("ul",_hoisted_2$3,[vue.renderSlot(e.$slots,"default")])])}const SummaryBoxList=v4._export_sfc(_sfc_main$7,[["render",_sfc_render$7]]),_sfc_main$6={name:"VsSummaryBoxListItem",status:"prototype",release:"0.0.1",components:{VsIcon:v4.VsIcon},props:{text:{type:String,default:""},label:{type:String,default:""},icon:{type:String,default:""},iconLabel:{type:String,default:""}}},_hoisted_1$5={class:"vs-summary-box-item position-relative","data-test":"vs-summary-box-list-item"},_hoisted_2$2={key:0,class:"text-center vs-summary-box-item__label d-block position-absolute w-100","data-test":"vs-summary-box-list-item-label"},_hoisted_3$2={class:"vs-summary-box-item__label-inner"},_hoisted_4$1={key:1,class:"vs-summary-box-item__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-list-item-display"},_hoisted_5$1={key:2,class:"vs-summary-box-item__icon d-flex align-items-center position-absolute justify-content-center w-100","data-test":"vs-summary-box-list-item-icon-with-label"},_hoisted_6$1={class:"icon-wrapper text-end"},_hoisted_7$1={class:"text-wrapper d-block w-auto pt-4"};function _sfc_render$6(e,r,t,n,o,a){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$5,[t.label?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$2,[vue.createElementVNode("span",_hoisted_3$2,vue.toDisplayString(t.label),1)])):vue.createCommentVNode("",!0),t.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$1,[vue.createElementVNode("span",null,vue.toDisplayString(t.text),1)])):vue.createCommentVNode("",!0),t.icon?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1,[vue.createElementVNode("div",_hoisted_6$1,[vue.createVNode(s,{name:t.icon,size:"xl"},null,8,["name"])]),vue.createElementVNode("div",_hoisted_7$1,[vue.createElementVNode("span",null,vue.toDisplayString(t.iconLabel),1)])])):vue.createCommentVNode("",!0)])}const SummaryBoxListItem=v4._export_sfc(_sfc_main$6,[["render",_sfc_render$6],["__scopeId","data-v-dbed9061"]]),_sfc_main$5={name:"VsSummaryBoxDistanceListItem",status:"prototype",release:"0.0.1",props:{miles:{type:String,default:""},kilometres:{type:String,default:""},distanceLabel:{type:String,default:"Distance"},milesLabel:{type:String,default:"miles"},kilometresLabel:{type:String,default:"km"},showMiles:{type:Boolean,default:!0}}},_withScopeId=e=>(vue.pushScopeId("data-v-628ddbef"),e=e(),vue.popScopeId(),e),_hoisted_1$4={class:"vs-summary-box-distance position-relative","data-test":"vs-summary-box-distance-list-item"},_hoisted_2$1={key:0,class:"text-center vs-summary-box-distance__label d-block position-absolute w-100","data-test":"vs-summary-box-distance-list-item-label"},_hoisted_3$1={class:"vs-summary-box-distance__label-inner"},_hoisted_4={class:"vs-summary-box-distance__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-distance-display"},_hoisted_5={class:"vs-summary-box-distance__display-entry"},_hoisted_6={class:"vs-summary-box-distance__display-value"},_hoisted_7={class:"vs-summary-box-distance__display-label"},_hoisted_8=_withScopeId(()=>vue.createElementVNode("hr",{class:"vs-summary-box-distance__divider"},null,-1)),_hoisted_9={class:"vs-summary-box-distance__display-entry"},_hoisted_10={class:"vs-summary-box-distance__display-value"},_hoisted_11={class:"vs-summary-box-distance__display-label"};function _sfc_render$5(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$4,[t.distanceLabel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createElementVNode("span",_hoisted_3$1,vue.toDisplayString(t.distanceLabel),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4,[vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("span",_hoisted_6,vue.toDisplayString(t.miles),1),vue.createElementVNode("span",_hoisted_7,vue.toDisplayString(t.milesLabel),1)]),_hoisted_8,vue.createElementVNode("div",_hoisted_9,[vue.createElementVNode("span",_hoisted_10,vue.toDisplayString(t.kilometres),1),vue.createElementVNode("span",_hoisted_11,vue.toDisplayString(t.kilometresLabel),1)])])])}const SummaryBoxDistanceListItem=v4._export_sfc(_sfc_main$5,[["render",_sfc_render$5],["__scopeId","data-v-628ddbef"]]),_sfc_main$4={name:"VsTabs",status:"prototype",release:"0.0.1",components:{BTabs:bootstrapVueNext.BTabs}},_hoisted_1$3={class:"vs-tabs","data-test":"vs-tabs"};function _sfc_render$4(e,r,t,n,o,a){const s=vue.resolveComponent("BTabs");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createVNode(s,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})])}const Tabs=v4._export_sfc(_sfc_main$4,[["render",_sfc_render$4]]),_sfc_main$3={name:"BTab",status:"prototype",release:"0.0.1",components:{VsHeading:v4.VsHeading},props:{title:{type:String,required:!0}}},_hoisted_1$2={class:"vs-tab__item","data-test":"vs-tab__item"};function _sfc_render$3(e,r,t,n,o,a){const s=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createVNode(s,{level:"3",class:"vs-tab__item__heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),vue.renderSlot(e.$slots,"default")])}const TabItem=v4._export_sfc(_sfc_main$3,[["render",_sfc_render$3]]),_sfc_main$2={name:"VsTag",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,required:!0}}};function _sfc_render$2(e,r,t,n,o,a){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(s,{class:"vs-tag me-2 mb-4","data-test":"vs-tag",href:t.href},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])}const Tag=v4._export_sfc(_sfc_main$2,[["render",_sfc_render$2]]),_sfc_main$1={name:"VsTagManagerWrapper",status:"prototype",release:"0.0.1",mixins:[v4.dataLayerMixin],props:{payload:{type:Object,default:()=>{}}},mounted(){this.processPayload(this.payload),document.addEventListener("DOMContentLoaded",()=>{this.dataLayerStore.setTestRun(!0),this.dataLayerStore.setPageUrl(window.location.href)}),this.createDataLayerObject("pageViewTemplateDataEvent")},methods:{processPayload(e){e!==void 0&&Object.keys(e).forEach(r=>{const t=r.replace(/-/g,"_");this.dataLayerStore.processPayload({key:t,value:e[r]})})}}},_hoisted_1$1={"data-test":"vs-tag-manager-wrapper",class:"d-none"};function _sfc_render$1(e,r,t,n,o,a){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1)}const TagManagerWrapper=v4._export_sfc(_sfc_main$1,[["render",_sfc_render$1]]);var dist={exports:{}},Sister;/**
|
|
332
|
+
* @link https://github.com/gajus/sister for the canonical source repository
|
|
333
|
+
* @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause
|
|
334
|
+
*/Sister=function(){var e={},r={};return e.on=function(t,n){var o={name:t,handler:n};return r[t]=r[t]||[],r[t].unshift(o),o},e.off=function(t){var n=r[t.name].indexOf(t);n!==-1&&r[t.name].splice(n,1)},e.trigger=function(t,n){var o=r[t],a;if(o)for(a=o.length;a--;)o[a].handler(n)},e};var sister=Sister,YouTubePlayer={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,r=e*60,t=r*60,n=t*24,o=n*7,a=n*365.25;ms=function(c,d){d=d||{};var p=typeof c;if(p==="string"&&c.length>0)return s(c);if(p==="number"&&isFinite(c))return d.long?l(c):i(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function s(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(d){var p=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*o;case"days":case"day":case"d":return p*n;case"hours":case"hour":case"hrs":case"hr":case"h":return p*t;case"minutes":case"minute":case"mins":case"min":case"m":return p*r;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function i(c){var d=Math.abs(c);return d>=n?Math.round(c/n)+"d":d>=t?Math.round(c/t)+"h":d>=r?Math.round(c/r)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=n?u(c,d,n,"day"):d>=t?u(c,d,t,"hour"):d>=r?u(c,d,r,"minute"):d>=e?u(c,d,e,"second"):c+" ms"}function u(c,d,p,f){var m=d>=p*1.5;return Math.round(c/p)+" "+f+(m?"s":"")}return ms}function setup(e){t.debug=t,t.default=t,t.coerce=l,t.disable=a,t.enable=o,t.enabled=s,t.humanize=requireMs(),t.destroy=u,Object.keys(e).forEach(c=>{t[c]=e[c]}),t.names=[],t.skips=[],t.formatters={};function r(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return t.colors[Math.abs(d)%t.colors.length]}t.selectColor=r;function t(c){let d,p=null,f,m;function v(...h){if(!v.enabled)return;const g=v,_=Number(new Date),C=_-(d||_);g.diff=C,g.prev=d,g.curr=_,d=_,h[0]=t.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let b=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(E,N)=>{if(E==="%%")return"%";b++;const V=t.formatters[N];if(typeof V=="function"){const L=h[b];E=V.call(g,L),h.splice(b,1),b--}return E}),t.formatArgs.call(g,h),(g.log||t.log).apply(g,h)}return v.namespace=c,v.useColors=t.useColors(),v.color=t.selectColor(c),v.extend=n,v.destroy=t.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(f!==t.namespaces&&(f=t.namespaces,m=t.enabled(c)),m),set:h=>{p=h}}),typeof t.init=="function"&&t.init(v),v}function n(c,d){const p=t(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function o(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];let d;const p=(typeof c=="string"?c:"").split(/[\s,]+/),f=p.length;for(d=0;d<f;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?t.skips.push(new RegExp("^"+c.slice(1)+"$")):t.names.push(new RegExp("^"+c+"$")))}function a(){const c=[...t.names.map(i),...t.skips.map(i).map(d=>"-"+d)].join(",");return t.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=t.skips.length;d<p;d++)if(t.skips[d].test(c))return!1;for(d=0,p=t.names.length;d<p;d++)if(t.names[d].test(c))return!0;return!1}function i(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}var common=setup;(function(e,r){var t={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\michael.prosser\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd",COLOR:"1",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","COMMONPROGRAMFILES(X86)":"C:\\Program Files (x86)\\Common Files",COMMONPROGRAMW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"JY7C7S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DRIVERDATA:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EXEPATH:"C:\\Program Files\\Git",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",HOME:"H:\\",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\michael.prosser",HOSTNAME:"JY7C7S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LC_CTYPE:"en_GB.UTF-8",LOCALAPPDATA:"C:\\Users\\michael.prosser\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\\\node.exe",NODE_OPTIONS:"",NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"publish",npm_config_cache:"C:\\Users\\michael.prosser\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_init_module:"H:\\.npm-init.js",npm_config_local_prefix:"C:\\vsdev\\workspace\\vs-component-library",npm_config_node_gyp:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.0",npm_config_prefix:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2",npm_config_userconfig:"H:\\.npmrc",npm_config_user_agent:"yarn/4.2.1 npm/? node/v18.20.2 win32 x64",npm_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\yarn",npm_lifecycle_event:"build:vite",npm_lifecycle_script:"yarn build",npm_node_execpath:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd\\node",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",npm_package_engines_node:">= 16.20.0",npm_package_engines_npm:">= 6.14.5",npm_package_engines_yarn:">= 1.22.4",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"3.0.0",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OLDPWD:"C:/vsdev/workspace/nuxt/bloomreach-nuxt",ONEDRIVE:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ONEDRIVECOMMERCIAL:"C:\\Users\\michael.prosser\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal",ORIGINAL_TEMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/MICHAE~1.PRO/AppData/Local/Temp",OS:"Windows_NT",PATH:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-7e78ccdd;C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp\\xfs-c8387ff4;C:\\vsdev\\workspace\\vs-component-library\\node_modules\\.bin;C:\\vsdev\\workspace\\node_modules\\.bin;C:\\vsdev\\node_modules\\.bin;C:\\node_modules\\.bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\yarn\\1.22.19\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\tools\\image\\node\\18.20.2;H:\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;H:\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Program Files\\Volta;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\QuickTime\\QTSystem;C:\\vsdev\\apache-maven-3.9.4\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot;C:\\Users\\michael.prosser\\AppData\\Local\\Volta\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Python\\Python310;C:\\Users\\michael.prosser\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\michael.prosser\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\michael.prosser\\AppData\\Local\\Yarn\\bin;C:\\Users\\michael.prosser\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Users\\michael.prosser\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",PROGRAMDATA:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","PROGRAMFILES(X86)":"C:\\Program Files (x86)",PROGRAMW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PS1:"\\[\\033]0;$TITLEPREFIX:$PWD\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\\[\\033[0m\\]\\n$ ",PSMODULEPATH:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TERM:"xterm",TERM_PROGRAM:"mintty",TERM_PROGRAM_VERSION:"3.6.4",TMP:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\MICHAE~1.PRO\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"michael.prosser",USERPROFILE:"C:\\Users\\michael.prosser",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",WINDIR:"C:\\WINDOWS",_:"C:/Program Files/Volta/npm",_VOLTA_TOOL_RECURSION:"1"};r.formatArgs=o,r.save=a,r.load=s,r.useColors=n,r.storage=i(),r.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;u.splice(1,0,c,"color: inherit");let d=0,p=0;u[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(d++,f==="%c"&&(p=d))}),u.splice(p,0,c)}r.log=console.debug||console.log||(()=>{});function a(u){try{u?r.storage.setItem("debug",u):r.storage.removeItem("debug")}catch{}}function s(){let u;try{u=r.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=t.DEBUG),u}function i(){try{return localStorage}catch{}}e.exports=common(r);const{formatters:l}=e.exports;l.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(browser,browser.exports);var browserExports=browser.exports,FunctionStateMap={exports:{}},PlayerStates={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=r.default})(PlayerStates,PlayerStates.exports);var PlayerStatesExports=PlayerStates.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=PlayerStatesExports,n=o(t);function o(a){return a&&a.__esModule?a:{default:a}}r.default={pauseVideo:{acceptableStates:[n.default.ENDED,n.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[n.default.ENDED,n.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[n.default.ENDED,n.default.PLAYING,n.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=r.default})(FunctionStateMap,FunctionStateMap.exports);var FunctionStateMapExports=FunctionStateMap.exports,eventNames={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=r.default})(eventNames,eventNames.exports);var eventNamesExports=eventNames.exports,functionNames={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe","getSphericalProperties","setSphericalProperties"],e.exports=r.default})(functionNames,functionNames.exports);var functionNamesExports=functionNames.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=browserExports,n=c(t),o=FunctionStateMapExports,a=c(o),s=eventNamesExports,i=c(s),l=functionNamesExports,u=c(l);function c(f){return f&&f.__esModule?f:{default:f}}const d=(0,n.default)("youtube-player"),p={};p.proxyEvents=f=>{const m={};for(const v of i.default){const h="on"+v.slice(0,1).toUpperCase()+v.slice(1);m[h]=g=>{d('event "%s"',h,g),f.trigger(v,g)}}return m},p.promisifyPlayer=(f,m=!1)=>{const v={};for(const h of u.default)m&&a.default[h]?v[h]=(...g)=>f.then(_=>{const C=a.default[h],b=_.getPlayerState(),S=_[h].apply(_,g);return C.stateChangeRequired||Array.isArray(C.acceptableStates)&&!C.acceptableStates.includes(b)?new Promise(E=>{const N=()=>{const V=_.getPlayerState();let L;typeof C.timeout=="number"&&(L=setTimeout(()=>{_.removeEventListener("onStateChange",N),E()},C.timeout)),Array.isArray(C.acceptableStates)&&C.acceptableStates.includes(V)&&(_.removeEventListener("onStateChange",N),clearTimeout(L),E())};_.addEventListener("onStateChange",N)}).then(()=>S):S}):v[h]=(...g)=>f.then(_=>_[h].apply(_,g));return v},r.default=p,e.exports=r.default})(YouTubePlayer,YouTubePlayer.exports);var YouTubePlayerExports=YouTubePlayer.exports,loadYouTubeIframeApi={exports:{}},loadScript=function e(r,t,n){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof t=="function"&&(n=t,t={}),t=t||{},n=n||function(){},a.type=t.type||"text/javascript",a.charset=t.charset||"utf8",a.async="async"in t?!!t.async:!0,a.src=r,t.attrs&&setAttributes(a,t.attrs),t.text&&(a.text=""+t.text);var s="onload"in a?stdOnEnd:ieOnEnd;s(a,n),a.onload||stdOnEnd(a,n),o.appendChild(a)};function setAttributes(e,r){for(var t in r)e.setAttribute(t,r[t])}function stdOnEnd(e,r){e.onload=function(){this.onerror=this.onload=null,r(null,e)},e.onerror=function(){this.onerror=this.onload=null,r(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,r){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,r(null,e))}}(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=loadScript,n=o(t);function o(a){return a&&a.__esModule?a:{default:a}}r.default=a=>new Promise(i=>{if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){i(window.YT);return}else{const u=window.location.protocol==="http:"?"http:":"https:";(0,n.default)(u+"//www.youtube.com/iframe_api",c=>{c&&a.trigger("error",c)})}const l=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l&&l(),i(window.YT)}}),e.exports=r.default})(loadYouTubeIframeApi,loadYouTubeIframeApi.exports);var loadYouTubeIframeApiExports=loadYouTubeIframeApi.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=sister,n=l(t),o=YouTubePlayerExports,a=l(o),s=loadYouTubeIframeApiExports,i=l(s);function l(c){return c&&c.__esModule?c:{default:c}}let u;r.default=(c,d={},p=!1)=>{const f=(0,n.default)();if(u||(u=(0,i.default)(f)),d.events)throw new Error("Event handlers cannot be overwritten.");if(typeof c=="string"&&!document.getElementById(c))throw new Error('Element "'+c+'" does not exist.');d.events=a.default.proxyEvents(f);const m=new Promise(h=>{typeof c=="object"&&c.playVideo instanceof Function?h(c):u.then(g=>{const _=new g.Player(c,d);return f.on("ready",()=>{h(_)}),null})}),v=a.default.promisifyPlayer(m,p);return v.on=f.on,v.off=f.off,v},e.exports=r.default})(dist,dist.exports);var distExports=dist.exports;const player=v4.getDefaultExportFromCjs(distExports),UNSTARTED=-1,ENDED=0,PLAYING=1,PAUSED=2,BUFFERING=3,CUED=5,VueYoutube={name:"Youtube",props:{videoId:String,playerVars:{type:Object,default:()=>({})},height:{type:[Number,String],default:360},width:{type:[Number,String],default:640},resize:{type:Boolean,default:!1},resizeDelay:{type:Number,default:100},nocookie:{type:Boolean,default:!1},fitParent:{type:Boolean,default:!1}},data(){return{player:{},events:{[UNSTARTED]:"unstarted",[PLAYING]:"playing",[PAUSED]:"paused",[ENDED]:"ended",[BUFFERING]:"buffering",[CUED]:"cued"},resizeTimeout:null}},computed:{aspectRatio(){return this.width/this.height}},methods:{playerReady(e){this.$emit("ready",e.target)},playerStateChange(e){e.data!==null&&e.data!==UNSTARTED&&this.$emit(this.events[e.data],e.target)},playerError(e){this.$emit("error",e.target)},updatePlayer(e){if(!e){this.player.stopVideo();return}const r={videoId:e};if(typeof this.playerVars.start=="number"&&(r.startSeconds=this.playerVars.start),typeof this.playerVars.end=="number"&&(r.endSeconds=this.playerVars.end),this.playerVars.autoplay===1){this.player.loadVideoById(r);return}this.player.cueVideoById(r)},resizeProportionally(){this.player.getIframe().then(e=>{const r=this.fitParent?e.parentElement.offsetWidth:e.offsetWidth,t=r/this.aspectRatio;this.player.setSize(r,t)})},onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.resizeProportionally,this.resizeDelay)}},watch:{videoId:"updatePlayer",resize(e){e?(window.addEventListener("resize",this.onResize),this.resizeProportionally()):(window.removeEventListener("resize",this.onResize),this.player.setSize(this.width,this.height))},width(e){this.player.setSize(e,this.height)},height(e){this.player.setSize(this.width,e)}},beforeUnmount(){this.player!==null&&this.player.destroy&&(this.player.destroy(),delete this.player),this.resize&&window.removeEventListener("resize",this.onResize)},mounted(){window.YTConfig={host:"https://www.youtube.com/iframe_api"};const e=this.nocookie?"https://www.youtube-nocookie.com":"https://www.youtube.com";this.player=player(this.$el,{host:e,width:this.width,height:this.height,videoId:this.videoId,playerVars:this.playerVars}),this.player.on("ready",this.playerReady),this.player.on("stateChange",this.playerStateChange),this.player.on("error",this.playerError),this.resize&&window.addEventListener("resize",this.onResize),this.fitParent&&this.resizeProportionally()},render(){return vue.h("div")}};let videoStore=null;const cookieValues=cookieValues$5.youtube,_sfc_main={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning:v4.VsWarning,VueYoutube},mixins:[cookieCheckerMixin,v4.dataLayerMixin],props:{language:{type:String,default:"en"},videoId:{type:String,required:!0},videoTitle:{type:String,default:""},singleMinuteDescriptor:{type:String,default:"%s minute video"},pluralMinuteDescriptor:{type:String,default:"%s minute video"},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0},noJsMessage:{type:String,required:!0},errorMessage:{type:String,default:""}},data(){return{duration:{minutes:0,seconds:0,roundedMinutes:""},playerVars:{hl:this.language},requiredCookies:cookieValues,reRendering:!1,shouldAutoPlay:!1,jsDisabled:!0}},computed:{showError(){return!this.requiredCookiesExist&&this.cookiesInitStatus===!0||this.cookiesInitStatus==="error"||this.cookiesInitStatus===!1},warningText(){let e="";return this.videoId&&this.jsDisabled&&(e=this.noJsMessage),this.cookiesInitStatus==="error"&&(e=this.errorMessage),!this.requiredCookiesExist&&this.cookiesInitStatus===!0&&(e=this.noCookiesMessage),e},player(){return this.$refs.youtube?this.$refs.youtube.player:null}},mounted(){this.jsDisabled=jsIsDisabled(),videoStore=useVideoStore(),this.setEventListeners()},methods:{async playerReady(){await this.getPlayerDetails(),this.shouldAutoPlay&&(this.shouldAutoPlay=!1,this.playVideo())},async playVideo(){this.player&&await this.player.playVideo()},async pauseVideo(){this.player&&await this.player.pauseVideo()},youtubePlaying(){this.analyticsEvent("play")},youtubePaused(){this.analyticsEvent("pause")},youtubeEnded(){this.analyticsEvent("ended")},analyticsEvent(e){let r=0,t=0;this.player.getCurrentTime().then(n=>(r=n,this.player?this.player.getDuration():null)).then(n=>{t=n}).then(()=>{const n=r/t*100;this.createDataLayerObject("videoTrackingDataEvent",{title:this.videoTitle,status:e,percent:Math.round(n)})})},async getPlayerDetails(){this.player&&await this.player.getDuration().then(e=>{this.formatTime(e),this.storeVideoDetails()})},formatTime(e){const r=Math.floor(e/60),t=e-r*60;this.duration.minutes=r,this.duration.seconds=t;const n=this.getRoundedMinutes(r,t);this.duration.roundedMinutes=this.formatSingularOrPlural(n)},getRoundedMinutes(e,r){return r<30&&e!==0?e:e+1},formatSingularOrPlural(e){return e===1?this.singleMinuteDescriptor.replace("%s",e):this.pluralMinuteDescriptor.replace("%s",e)},pad(e){return e>=10?e:`0${e}`},storeVideoDetails(){videoStore.addVideo({videoId:this.videoId,videoDurationMsg:this.duration.roundedMinutes,videoDuration:this.duration.minutes*60+this.duration.seconds,videoFullDuration:this.duration})},setEventListeners(){this.emitter&&this.emitter.on("video-controls",e=>{e.id===this.videoId&&(e.action==="modal-opened"&&this.playVideo(),e.action==="modal-closed"&&this.reRenderVideo(),e.action==="play"?this.playVideo():e.action==="pause"&&this.pauseVideo())})},reRenderVideo(){this.reRendering=!0,this.$nextTick(()=>{this.reRendering=!1,this.$nextTick(()=>{this.shouldAutoPlay=!0})})}}},_hoisted_1={key:0,class:"vs-video","data-test":"vs-video"},_hoisted_2={class:"vs-video__iframe-wrapper"},_hoisted_3={key:0};function _sfc_render(e,r,t,n,o,a){const s=vue.resolveComponent("VueYoutube"),i=vue.resolveComponent("VsWarning");return o.reRendering?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.createElementVNode("div",_hoisted_2,[e.requiredCookiesExist?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3,[vue.createVNode(s,{autoplay:0,"video-id":t.videoId,vars:o.playerVars,ref:"youtube",onPlaying:a.youtubePlaying,onPaused:a.youtubePaused,onEnded:a.youtubeEnded,onReady:a.playerReady},null,8,["video-id","vars","onPlaying","onPaused","onEnded","onReady"])])):vue.createCommentVNode("",!0),a.showError?(vue.openBlock(),vue.createBlock(i,{key:1,type:e.cookiesInitStatus===!0?"cookie":"normal","data-test":"vs-video__warning",class:"vs-video__warning"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.warningText)+" ",1)]),_:2},[!e.requiredCookiesExist&&e.cookiesInitStatus===!0?{name:"button-text",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.cookieBtnText),1)]),key:"0"}:void 0]),1032,["type"])):vue.createCommentVNode("",!0),vue.createVNode(i,{"data-test":"vs-video__warning--no-js",class:"vs-video__warning vs-video__warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})])]))}const Video=v4._export_sfc(_sfc_main,[["render",_sfc_render]]);exports.VsButton=v4.VsButton;exports.VsButtonToggleGroup=v4.VsButtonToggleGroup;exports.VsCol=v4.VsCol;exports.VsContainer=v4.VsContainer;exports.VsHeading=v4.VsHeading;exports.VsIcon=v4.VsIcon;exports.VsImg=v4.VsImg;exports.VsLoadingSpinner=v4.VsLoading;exports.VsRow=v4.VsRow;exports.VsWarning=v4.VsWarning;exports.VsAccordion=VsAccordion;exports.VsAccordionItem=VsAccordionItem;exports.VsAccordionToggle=VsAccordionToggle;exports.VsAddress=Address;exports.VsAlert=Alert;exports.VsArticle=Article;exports.VsArticleSection=ArticleSection;exports.VsArticleSidebar=ArticleSidebar;exports.VsBanner=Banner;exports.VsBlogDetails=BlogDetails;exports.VsBreadcrumb=Breadcrumb;exports.VsBreadcrumbItem=BreadcrumbItem;exports.VsCannedSearch=CannedSearch;exports.VsCaption=Caption;exports.VsCarbonCalculator=CarbonCalculator;exports.VsCarousel=VsCarousel;exports.VsCarouselSlide=CarouselSlide;exports.VsCheckbox=VsCheckbox;exports.VsCookieChecker=CookieChecker;exports.VsDescriptionList=DescriptionList;exports.VsDescriptionListItem=DescriptionListItem;exports.VsDropdown=VsDropdown;exports.VsDropdownItem=VsDropdownItem;exports.VsEmbedWrapper=EmbedWrapper;exports.VsFooter=Footer;exports.VsFooterAccordionItem=FooterAccordionItem;exports.VsFooterCopyright=FooterCopyright;exports.VsFooterNavListItem=FooterNavListItem;exports.VsFooterSocialItem=FooterSocialItem;exports.VsFooterSocialMenu=FooterSocialMenu;exports.VsFooterUtilityList=FooterUtilityList;exports.VsForm=Form;exports.VsGlobalMenu=GlobalMenu;exports.VsGlobalMenuLanguage=GlobalMenuLanguage;exports.VsGlobalMenuLanguageItem=GlobalMenuLanguageItem;exports.VsHtmlError=HtmlError;exports.VsIcentre=Icentre;exports.VsIconList=IconList;exports.VsIconListItem=IconListItem;exports.VsImageWithCaption=ImageWithCaption;exports.VsInput=VsInput;exports.VsItinerary=Itinerary;exports.VsItineraryDay=ItineraryDay;exports.VsItineraryStop=ItineraryStop;exports.VsItineraryStopInfo=ItineraryStopInfo;exports.VsItineraryTips=ItineraryTips;exports.VsLink=VsLink;exports.VsLinkList=VsLinkList;exports.VsLinkListItem=LinkListItem;exports.VsList=VsList;exports.VsListicleItem=ListicleItem;exports.VsMegaNavAccordionItem=MegaNavAccordionItem;exports.VsMegaNavDropdownContainer=MegaNavDropdownContainer;exports.VsMegaNavFeaturedEvent=MegaNavFeaturedEvent;exports.VsMegaNavFeaturedItem=MegaNavFeaturedItem;exports.VsMegaNavList=MegaNavList;exports.VsMegaNavListItem=MegaNavListItem;exports.VsMegaNavStaticLink=MegaNavStaticLink;exports.VsMegalinkLinkList=MegalinkLinkList;exports.VsMegalinkMultiImage=MegalinkMultiImage;exports.VsMegalinkSingleImage=MegalinkSingleImage;exports.VsMegalinks=Megalinks;exports.VsMeganav=MegaNav;exports.VsModal=Modal;exports.VsModuleWrapper=VsModuleWrapper;exports.VsNumberInput=VsNumberInput;exports.VsPageIntro=PageIntro;exports.VsPanel=Panel;exports.VsProductSearch=ProductSearch;exports.VsProgressBar=VsProgressBar;exports.VsQuote=Quote;exports.VsRadioButton=VsRadioButton;exports.VsRecaptcha=VsRecaptcha;exports.VsRichTextWrapper=VsRichTextWrapper;exports.VsSelect=VsSelect;exports.VsSiteSearch=VsSiteSearch;exports.VsSiteSearchForm=VsSiteSearchForm;exports.VsSkiScotlandCard=SkiScotlandCard;exports.VsSkiScotlandStatus=SkiScotlandStatus;exports.VsSkipTo=SkipTo;exports.VsSocialCreditLink=SocialCreditLink;exports.VsSocialShare=SocialShare;exports.VsSocialShareItem=SocialShareItem;exports.VsStretchedLinkCard=VsStretchedLinkCard;exports.VsStretchedLinkPanel=VsStretchedLinkPanels;exports.VsSummaryBoxDistanceListItem=SummaryBoxDistanceListItem;exports.VsSummaryBoxList=SummaryBoxList;exports.VsSummaryBoxListItem=SummaryBoxListItem;exports.VsSvg=VsSvg;exports.VsSvgLink=VsSvgLink;exports.VsTabItem=TabItem;exports.VsTable=VsTable;exports.VsTableBody=VsTableBody;exports.VsTableDataCell=VsTableDataCell;exports.VsTableFooter=VsTableFooter;exports.VsTableHead=VsTableHead;exports.VsTableHeaderCell=VsTableHeaderCell;exports.VsTableRow=VsTableRow;exports.VsTabs=Tabs;exports.VsTag=Tag;exports.VsTagManagerWrapper=TagManagerWrapper;exports.VsToggleButton=VsToggleButton;exports.VsTooltip=VsTooltip;exports.VsVideo=Video;exports.VsVideoCaption=VsVideoCaption;
|