{"version":3,"file":"shared-lib.DcO2Dd0X.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ufdDtaH8f5PkgU9Ba35f/abz1UhNkWiCECeC46P6L/siteMetadata.js"],"sourcesContent":["// Generated by Framer (aabb2d2)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:'<!-- Plugin: ced618 --> <script>\\n    (function() {\\n      // Initialize shopXtools with version first\\n      window.shopXtools = window.shopXtools || {};\\n\\n      window.shopXtools.version = \"2.5\";\\n\\n      // ============================================================\\n      // FC Privacy & Consent Management\\n      // ============================================================\\n  \\n      window.FCConsentManager = {\\n        isBannerPresent: function() {\\n          // Check for Framer Cookie Banner presence by looking for framerCookiesConsentMode\\n          if (typeof window !== \\'undefined\\' && typeof localStorage !== \\'undefined\\') {\\n            try {\\n              const framerConsent = localStorage.getItem(\\'framerCookiesConsentMode\\');\\n              return !!framerConsent;\\n            } catch (e) {\\n              // localStorage access error - assume no banner\\n              return false;\\n            }\\n          }\\n\\n          return false;\\n        },\\n\\n        getConsent: function() {\\n          const bannerDetected = this.isBannerPresent();\\n\\n          if (!bannerDetected) {\\n            // No banner = pass the GDPR compliance decision to the project owner\\n            return {\\n              necessary: true,\\n              analytics: true,\\n              marketing: true,\\n              preferences: true,\\n              bannerDetected: false,\\n            };\\n          }\\n\\n          // Check if user has interacted with Framer Cookie Banner\\n          // framerCookiesDismissed is set when user clicks accept OR reject\\n          try {\\n            const dismissed = localStorage.getItem(\\'framerCookiesDismissed\\');\\n\\n            if (!dismissed || dismissed === \\'false\\') {\\n              // User hasn\\'t interacted with banner yet - deny all tracking\\n              return {\\n                necessary: true,\\n                analytics: false,\\n                marketing: false,\\n                preferences: false,\\n                bannerDetected: true,\\n              };\\n            }\\n\\n            // User has interacted - read their consent choices\\n            const framerConsent = localStorage.getItem(\\'framerCookiesConsentMode\\');\\n            if (framerConsent) {\\n              const consent = JSON.parse(framerConsent);\\n              return {\\n                necessary: consent.necessary === true,\\n                analytics: consent.analytics === true,\\n                marketing: consent.marketing === true,\\n                preferences: consent.preferences === true,\\n                bannerDetected: true,\\n              };\\n            }\\n          } catch (e) {\\n            console.warn(\\'[FC Privacy] Error reading framerCookiesConsentMode:\\', e);\\n          }\\n\\n          // If banner detected but localStorage empty = user hasn\\'t interacted yet\\n          // Default to DENIED (don\\'t use google_tag_data as it may be polluted by GA4)\\n          if (bannerDetected && !localStorage.getItem(\\'framerCookiesConsentMode\\')) {\\n            return {\\n              necessary: true,\\n              analytics: false,\\n              marketing: false,\\n              preferences: false,\\n              bannerDetected: true,\\n            };\\n          }\\n\\n          // Fallback to google_tag_data.ics.entries (only if we have localStorage)\\n          const entries = window.google_tag_data?.ics?.entries || {};\\n\\n          // Helper to extract consent value from the nested structure\\n          const getConsentValue = function(entry) {\\n            if (!entry) return \\'denied\\';\\n            if (typeof entry === \\'string\\') return entry;\\n            if (entry.update !== undefined) return entry.update;\\n            if (entry.initial !== undefined) return entry.initial;\\n            if (entry.default !== undefined) return entry.default;\\n            return \\'denied\\';\\n          };\\n\\n          return {\\n            necessary: getConsentValue(entries.security_storage) === \\'granted\\',\\n            analytics: getConsentValue(entries.analytics_storage) === \\'granted\\',\\n            marketing: getConsentValue(entries.ad_storage) === \\'granted\\',\\n            preferences: getConsentValue(entries.functionality_storage) === \\'granted\\',\\n            bannerDetected: true,\\n          };\\n        },\\n\\n        canTrackAnalytics: function() {\\n          return this.getConsent().analytics;\\n        },\\n\\n        canTrackMarketing: function() {\\n          return this.getConsent().marketing;\\n        },\\n\\n        canStorePreferences: function() {\\n          return this.getConsent().preferences;\\n        },\\n\\n        hasNecessaryConsent: function() {\\n          return this.getConsent().necessary;\\n        },\\n\\n        logConsentState: function() {\\n          const consent = this.getConsent();\\n\\n          console.group(\\'[FC Privacy] Consent State\\');\\n\\n          // Current consent state\\n          console.log(\\'Current Consent:\\', consent);\\n\\n          // Show tracking status\\n          console.log(\\'Tracking Status:\\', {\\n            GA4_initialized: !!window.__fcGAInitialized,\\n            MetaPixel_initialized: !!window.__fcMetaPixelInitialized,\\n            Shopify_sync_initialized: !!window.__FCShopifySyncInitialized\\n          });\\n\\n          // Listener info\\n          console.log(\\'Active Listeners:\\', this._listeners.length);\\n\\n          console.groupEnd();\\n        },\\n\\n        logShopifySync: function() {\\n          console.group(\\'[FC Privacy] Shopify Sync Debug\\');\\n          console.log(\\'1. Sync initialized:\\', !!window.__FCShopifySyncInitialized);\\n          console.log(\\'2. Can share cookies:\\', window.FCDomainValidator.canShareCookies());\\n          console.log(\\'3. Checkout URL:\\', window.shopXtools?.cart?.checkoutUrl || \\'N/A\\');\\n          console.log(\\'4. Current domain:\\', window.location.hostname);\\n\\n          const checkoutUrl = window.shopXtools?.cart?.checkoutUrl;\\n          if (checkoutUrl) {\\n            try {\\n              console.log(\\'5. Checkout domain:\\', new URL(checkoutUrl).hostname);\\n            } catch(e) {\\n              console.log(\\'5. Checkout domain: Invalid URL\\');\\n            }\\n          } else {\\n            console.log(\\'5. Checkout domain: N/A\\');\\n          }\\n\\n          console.log(\\'6. Root domain:\\', window.FCDomainValidator.extractRootDomain(window.location.hostname));\\n          console.log(\\'7. window.Shopify exists:\\', typeof window.Shopify !== \\'undefined\\');\\n          console.log(\\'8. Script element exists:\\', !!document.querySelector(\\'script[src*=\"consent-tracking-api\"]\\'));\\n\\n          // Domain compatibility check\\n          if (checkoutUrl && !window.FCDomainValidator.canShareCookies()) {\\n            console.warn(\\'Domain mismatch: Shopify Privacy API cannot sync consent between different root domains\\');\\n            console.warn(\\'Framer domain:\\', window.location.hostname);\\n            console.warn(\\'Checkout domain:\\', new URL(checkoutUrl).hostname);\\n            console.warn(\\'Solution: Use a custom domain on the same root domain as your Shopify checkout\\');\\n          }\\n\\n          console.groupEnd();\\n        },\\n\\n\\n        // Event listener support\\n        _listeners: [],\\n        _initialized: false,\\n        _eventHandlers: {},\\n        _originalDataLayerPush: null,\\n        _pollInterval: null,\\n\\n        onConsentChange: function(callback) {\\n          if (typeof callback !== \\'function\\') return function() {};\\n\\n          // Add callback to listeners\\n          this._listeners.push(callback);\\n\\n          // Initialize listeners on first call\\n          if (!this._initialized) {\\n            this._initializeListeners();\\n            this._initialized = true;\\n          }\\n\\n          // Return unsubscribe function\\n          const self = this;\\n          return function() {\\n            self._listeners = self._listeners.filter(function(cb) { return cb !== callback; });\\n\\n            // Clean up global listeners if no more callbacks\\n            if (self._listeners.length === 0) {\\n              self._cleanupListeners();\\n            }\\n          };\\n        },\\n\\n        _initializeListeners: function() {\\n          const self = this;\\n\\n          // Store handler references for cleanup\\n          this._eventHandlers.cookieConsentUpdate = function() {\\n            self._notifyListeners();\\n          };\\n\\n          this._eventHandlers.storageChange = function(e) {\\n            if (e.key === \\'framerCookiesConsentMode\\') {\\n              self._notifyListeners();\\n            }\\n          };\\n\\n          // Listen for events\\n          window.addEventListener(\\'cookie_consent_update\\', this._eventHandlers.cookieConsentUpdate);\\n          window.addEventListener(\\'storage\\', this._eventHandlers.storageChange);\\n\\n          // Poll localStorage for changes (storage event doesn\\'t fire in same tab)\\n          let lastConsentValue = localStorage.getItem(\\'framerCookiesConsentMode\\');\\n          let lastDismissedValue = localStorage.getItem(\\'framerCookiesDismissed\\');\\n          this._pollInterval = setInterval(function() {\\n            const currentConsent = localStorage.getItem(\\'framerCookiesConsentMode\\');\\n            const currentDismissed = localStorage.getItem(\\'framerCookiesDismissed\\');\\n\\n            // Notify if either value changes\\n            if (currentConsent !== lastConsentValue || currentDismissed !== lastDismissedValue) {\\n              lastConsentValue = currentConsent;\\n              lastDismissedValue = currentDismissed;\\n              self._notifyListeners();\\n            }\\n          }, 200);\\n\\n          // Monitor dataLayer for consent updates\\n          if (window.dataLayer && !this._originalDataLayerPush) {\\n            this._originalDataLayerPush = window.dataLayer.push;\\n            window.dataLayer.push = function() {\\n              const result = self._originalDataLayerPush.apply(window.dataLayer, arguments);\\n\\n              for (let i = 0; i < arguments.length; i++) {\\n                const data = arguments[i];\\n\\n                if (Array.isArray(data) && data.length >= 2 && data[0] === \\'consent\\') {\\n                  setTimeout(function() { self._notifyListeners(); }, 100);\\n                  break;\\n                }\\n\\n                if (data && typeof data === \\'object\\' && !Array.isArray(data)) {\\n                  if (\\'analytics_storage\\' in data || \\'ad_storage\\' in data) {\\n                    setTimeout(function() { self._notifyListeners(); }, 100);\\n                    break;\\n                  }\\n                }\\n              }\\n\\n              return result;\\n            };\\n          }\\n        },\\n\\n        _cleanupListeners: function() {\\n          // Remove event listeners\\n          if (this._eventHandlers.cookieConsentUpdate) {\\n            window.removeEventListener(\\'cookie_consent_update\\', this._eventHandlers.cookieConsentUpdate);\\n          }\\n\\n          if (this._eventHandlers.storageChange) {\\n            window.removeEventListener(\\'storage\\', this._eventHandlers.storageChange);\\n          }\\n\\n          // Clear polling interval\\n          if (this._pollInterval) {\\n            clearInterval(this._pollInterval);\\n            this._pollInterval = null;\\n          }\\n\\n          // Restore original dataLayer.push\\n          if (window.dataLayer && this._originalDataLayerPush) {\\n            window.dataLayer.push = this._originalDataLayerPush;\\n            this._originalDataLayerPush = null;\\n          }\\n\\n          // Reset state\\n          this._eventHandlers = {};\\n          this._initialized = false;\\n        },\\n\\n        _notifyListeners: function() {\\n          const consent = this.getConsent();\\n\\n          this._listeners.forEach(function(callback) {\\n            try {\\n              callback(consent);\\n            } catch (error) {\\n              console.error(\\'[FC Privacy] Error in consent change listener:\\', error);\\n            }\\n          });\\n        },\\n      };\\n\\n      // Auto-initialize consent monitoring\\n      (function() {\\n        window.FCConsentManager.onConsentChange(function() {\\n          // Silent listener to initialize the system\\n        });\\n      })();\\n\\n      // DomainValidator: Checks if Framer and Shopify domains can share cookies\\n      window.FCDomainValidator = {\\n        extractRootDomain: function(hostname) {\\n          try {\\n            const parts = hostname.toLowerCase().split(\\'.\\');\\n            if (parts.length <= 1) return hostname;\\n\\n            const multiPartTLDs = [\\'co.uk\\', \\'co.nz\\', \\'co.za\\', \\'com.au\\', \\'com.br\\'];\\n            const lastTwo = parts.slice(-2).join(\\'.\\');\\n            if (multiPartTLDs.indexOf(lastTwo) !== -1) {\\n              return parts.slice(-3).join(\\'.\\');\\n            }\\n\\n            return parts.slice(-2).join(\\'.\\');\\n          } catch (e) {\\n            return hostname;\\n          }\\n        },\\n\\n        areDomainsAligned: function(url1, url2) {\\n          try {\\n            const hostname1 = new URL(url1).hostname;\\n            const hostname2 = new URL(url2).hostname;\\n            const root1 = this.extractRootDomain(hostname1);\\n            const root2 = this.extractRootDomain(hostname2);\\n            return root1 === root2 && root1 !== \\'\\';\\n          } catch (e) {\\n            return false;\\n          }\\n        },\\n\\n        canShareCookies: function() {\\n          const framerDomain = window.location.href;\\n          const checkoutUrl = window.shopXtools?.cart?.checkoutUrl;\\n          if (!checkoutUrl) return false;\\n          return this.areDomainsAligned(framerDomain, checkoutUrl);\\n        },\\n\\n        logDomainInfo: function() {\\n          const framerDomain = window.location.hostname;\\n          const checkoutUrl = window.shopXtools?.cart?.checkoutUrl;\\n          const canSync = this.canShareCookies();\\n\\n          console.log(\\'[FC Privacy] Domain Status:\\', {\\n            framer: framerDomain,\\n            checkout: checkoutUrl ? new URL(checkoutUrl).hostname : \\'N/A\\',\\n            canSync: canSync ? \\'✓ Aligned\\' : \\'✗ Not aligned\\',\\n          });\\n        },\\n      };\\n\\n      // Initialize store configuration\\n      const fcConfigs = {\\n        storefrontDomain: \"eden-holistcs.myshopify.com\",\\n        storefrontAccessToken: \"206df1d354802baf30b1ebcd57cfea3e\",\\n      };\\n\\n      const CURRENCIES = {\"AED\":\"د.إ\",\"AFN\":\"Af\",\"ALL\":\"L\",\"AMD\":\"֏\",\"ANG\":\"ƒ\",\"AOA\":\"Kz\",\"ARS\":\"$\",\"AUD\":\"$\",\"AWG\":\"ƒ\",\"AZN\":\"₼\",\"BAM\":\"KM\",\"BBD\":\"$\",\"BDT\":\"৳\",\"BGN\":\"лв\",\"BHD\":\"د.ب\",\"BIF\":\"FBu\",\"BMD\":\"$\",\"BND\":\"$\",\"BOB\":\"Bs.\",\"BRL\":\"R$\",\"BSD\":\"$\",\"BTN\":\"Nu.\",\"BWP\":\"P\",\"BYN\":\"Br\",\"BZD\":\"BZ$\",\"CAD\":\"$\",\"CDF\":\"FC\",\"CHF\":\"Fr\",\"CLP\":\"$\",\"CNY\":\"\\xa5\",\"COP\":\"$\",\"CRC\":\"₡\",\"CVE\":\"$\",\"CZK\":\"Kč\",\"DJF\":\"Fdj\",\"DKK\":\"kr\",\"DOP\":\"RD$\",\"DZD\":\"د.ج\",\"EGP\":\"\\xa3\",\"ERN\":\"Nfk\",\"ETB\":\"Br\",\"EUR\":\"€\",\"FJD\":\"$\",\"FKP\":\"\\xa3\",\"GBP\":\"\\xa3\",\"GEL\":\"₾\",\"GHS\":\"₵\",\"GIP\":\"\\xa3\",\"GMD\":\"D\",\"GNF\":\"FG\",\"GTQ\":\"Q\",\"GYD\":\"$\",\"HKD\":\"$\",\"HNL\":\"L\",\"HRK\":\"kn\",\"HTG\":\"G\",\"HUF\":\"Ft\",\"IDR\":\"Rp\",\"ILS\":\"₪\",\"INR\":\"₹\",\"IQD\":\"ع.د\",\"IRR\":\"﷼\",\"ISK\":\"kr\",\"JEP\":\"\\xa3\",\"JMD\":\"J$\",\"JOD\":\"د.ا\",\"JPY\":\"\\xa5\",\"KES\":\"KSh\",\"KGS\":\"сом\",\"KHR\":\"៛\",\"KID\":\"$\",\"KMF\":\"CF\",\"KRW\":\"₩\",\"KWD\":\"د.ك\",\"KYD\":\"$\",\"KZT\":\"₸\",\"LAK\":\"₭\",\"LBP\":\"\\xa3\",\"LKR\":\"රු\",\"LRD\":\"$\",\"LSL\":\"L\",\"LTL\":\"Lt\",\"LVL\":\"Ls\",\"LYD\":\"ل.د\",\"MAD\":\"د.م.\",\"MDL\":\"MDL\",\"MGA\":\"Ar\",\"MKD\":\"ден\",\"MMK\":\"Ks\",\"MNT\":\"₮\",\"MOP\":\"MOP$\",\"MRU\":\"UM\",\"MUR\":\"₨\",\"MVR\":\"ރ\",\"MWK\":\"MK\",\"MXN\":\"$\",\"MYR\":\"RM\",\"MZN\":\"MT\",\"NAD\":\"$\",\"NGN\":\"₦\",\"NIO\":\"C$\",\"NOK\":\"kr\",\"NPR\":\"रू\",\"NZD\":\"$\",\"OMR\":\"ر.ع.\",\"PAB\":\"B/.\",\"PEN\":\"S/.\",\"PGK\":\"K\",\"PHP\":\"₱\",\"PKR\":\"₨\",\"PLN\":\"zł\",\"PYG\":\"₲\",\"QAR\":\"ر.ق\",\"RON\":\"lei\",\"RSD\":\"Дин.\",\"RUB\":\"₽\",\"RWF\":\"FRw\",\"SAR\":\"ر.س\",\"SBD\":\"$\",\"SCR\":\"₨\",\"SDG\":\"ج.س.\",\"SEK\":\"kr\",\"SGD\":\"$\",\"SHP\":\"\\xa3\",\"SLL\":\"Le\",\"SOS\":\"Sh\",\"SRD\":\"$\",\"SSP\":\"\\xa3\",\"STN\":\"Db\",\"SYP\":\"\\xa3\",\"SZL\":\"E\",\"THB\":\"฿\",\"TJS\":\"ЅМ\",\"TMT\":\"T\",\"TND\":\"د.ت\",\"TOP\":\"T$\",\"TRY\":\"₺\",\"TTD\":\"TT$\",\"TWD\":\"NT$\",\"TZS\":\"TSh\",\"UAH\":\"₴\",\"UGX\":\"USh\",\"USD\":\"$\",\"UYU\":\"$\",\"UZS\":\"so\\'m\",\"VED\":\"Bs.S.\",\"VES\":\"Bs.\",\"VND\":\"₫\",\"VUV\":\"VT\",\"WST\":\"T\",\"XAF\":\"FCFA\",\"XCD\":\"$\",\"XOF\":\"CFA\",\"XPF\":\"₣\",\"XXX\":\"\",\"YER\":\"﷼\",\"ZAR\":\"R\",\"ZMW\":\"ZK\",\"BYR\":\"Br\",\"STD\":\"Db\",\"VEF\":\"Bs.\"}; \\n      const knownCurrenciesWithCodeAsSymbol = [\"CHF\",\"PLN\",\"SEK\",\"NOK\",\"DKK\",\"CZK\",\"HUF\",\"RON\",\"HRK\",\"BGN\",\"ISK\",\"MDL\",\"BYN\",\"KZT\",\"AMD\",\"UZS\",\"TJS\",\"KGS\",\"MNT\",\"GEL\",\"AFN\",\"MRU\",\"RWF\",\"XAF\",\"XOF\",\"XPF\"]; \\n      // Initialize default currency variables\\n      let defaultCountry = \\'\\';\\n      let defaultCountryCode = \\'\\';\\n      let defaultCurrency = \\'\\';\\n      let defaultCurrencySymbol = \\'\\';\\n\\n      document.addEventListener(\\'checkout__settings-updated\\', (event) => {\\n        const { current } = event.detail;\\n        if (current) {\\n          // Update the global default variables\\n          defaultCountry = current.defaultCountry || \\'\\';\\n          defaultCountryCode = current.defaultCountryCode || \\'\\';\\n          defaultCurrency = current.defaultCurrency || \\'\\';\\n          defaultCurrencySymbol = current.defaultCurrencySymbol || \\'\\';\\n\\n          // Set session storage only if it\\'s empty (reverted to 2.0 stable behavior)\\n          if (!localStorage.getItem(\\'selectedCountry\\')) {\\n            localStorage.setItem(\\'selectedCountry\\', defaultCountry);\\n          }\\n          if (!localStorage.getItem(\\'selectedCountryCode\\')) {\\n            localStorage.setItem(\\'selectedCountryCode\\', defaultCountryCode);\\n          }\\n          if (!localStorage.getItem(\\'selectedCurrency\\')) {\\n            localStorage.setItem(\\'selectedCurrency\\', defaultCurrency);\\n          }\\n          if (!localStorage.getItem(\\'selectedCurrencySymbol\\')) {\\n            localStorage.setItem(\\'selectedCurrencySymbol\\', defaultCurrencySymbol);\\n          }\\n\\n          // Clear product cache and refetch products with new currency\\n          localStorage.removeItem(\\'fc_products\\');\\n          localStorage.removeItem(\\'fc_products_timestamp\\');\\n          \\n          // Refetch products with the current country code\\n          const currentCountryCode = localStorage.getItem(\\'selectedCountryCode\\');\\n          if (currentCountryCode) {\\n            fetchProductsByCountry(currentCountryCode).catch(error => {\\n              console.error(\\'Error refetching products after currency change:\\', error);\\n              window.shopXtools.status = \"ready\";\\n            });\\n          }\\n\\n          // console.log(\\'Session storage is set:\\', {\\n          //   defaultCountry,\\n          //   defaultCountryCode,\\n          //   defaultCurrency,\\n          //   defaultCurrencySymbol\\n          // });\\n        }\\n      });\\n      \\n      let domain;\\n      let products = [];\\n    \\n      // ALL QUERIES\\n      // Query to fetch specific products by IDs (for priority fetching)\\n      const getProductsByIdsQuery = `\\n        query GetProductsByIds($ids: [ID!]!, $countryCode: CountryCode) @inContext(country: $countryCode) {\\n          nodes(ids: $ids) {\\n            ... on Product {\\n              id\\n              title\\n              vendor\\n              handle\\n              productType\\n              tags\\n              createdAt\\n              collections(first: 250) {\\n                edges {\\n                  node {\\n                    id\\n                    title\\n                    handle\\n                  }\\n                }\\n              }\\n              images(first: 20) {\\n                edges {\\n                  node {\\n                    url\\n                    altText\\n                    width\\n                    height\\n                   }\\n                  }\\n              }\\n              metafields(identifiers: [\\n                { namespace: \"custom\", key: \"fc_color\" },\\n                { namespace: \"custom\", key: \"fc_size\" }\\n              ]) {\\n                key\\n                namespace\\n                value\\n              }\\n              sellingPlanGroups(first: 1) {\\n                edges {\\n                  node {\\n                    name\\n                    options {\\n                      name\\n                      values\\n                    }\\n                    sellingPlans(first: 10) {\\n                      edges {\\n                        node {\\n                          id\\n                          name\\n                          description\\n                          recurringDeliveries\\n                          priceAdjustments {\\n                            orderCount\\n                            adjustmentValue {\\n                              __typename\\n                              ... on SellingPlanPercentagePriceAdjustment {\\n                                adjustmentPercentage\\n                              }\\n                              ... on SellingPlanFixedAmountPriceAdjustment {\\n                                adjustmentAmount {\\n                                  amount\\n                                  currencyCode\\n                                }\\n                              }\\n                              ... on SellingPlanFixedPriceAdjustment {\\n                                price {\\n                                  amount\\n                                  currencyCode\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n              options {\\n                id\\n                name\\n                values\\n              }\\n              compareAtPriceRange {\\n                minVariantPrice {\\n                  amount\\n                  currencyCode\\n                }\\n                maxVariantPrice {\\n                  amount\\n                  currencyCode\\n                }\\n              }\\n              priceRange {\\n                minVariantPrice {\\n                  amount\\n                  currencyCode\\n                }\\n                maxVariantPrice {\\n                  amount\\n                  currencyCode\\n                }\\n              }\\n              variants(first: 250) {\\n                pageInfo {\\n                  hasNextPage\\n                  hasPreviousPage\\n                  endCursor\\n                }\\n                edges {\\n                  node {\\n                    id\\n                    image {\\n                      url\\n                      altText\\n                      width\\n                      height\\n                    }\\n                    title\\n                    sku\\n                    quantityAvailable\\n                    availableForSale\\n                    requiresShipping\\n                    selectedOptions {\\n                      name\\n                      value\\n                    }\\n                    price {\\n                      amount\\n                      currencyCode\\n                    }\\n                    compareAtPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n          }\\n        }\\n      `;\\n      \\n      const getCartQuery = `\\n        query GetCart($cartId: ID!) {\\n          cart(id: $cartId) {\\n            id\\n            createdAt\\n            updatedAt\\n            checkoutUrl\\n            buyerIdentity {\\n              countryCode\\n            }\\n            lines(first: 250) {\\n              edges {\\n                node {\\n                  id\\n                  quantity\\n                  sellingPlanAllocation { \\n                    checkoutChargeAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                    sellingPlan {\\n                      id\\n                      name\\n                      description\\n                    }\\n                  }\\n                  merchandise {\\n                    ... on ProductVariant {\\n                      id\\n                      title\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      product {\\n                        title\\n                        handle\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                  attributes {\\n                    key\\n                    value\\n                  }\\n                  cost {\\n                    subtotalAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                    totalAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            attributes {\\n              key\\n              value\\n            }\\n            cost {\\n              totalAmount {\\n                amount\\n                currencyCode\\n              }\\n              subtotalAmount {\\n                amount\\n                currencyCode\\n              }\\n            }\\n          }\\n        }\\n      `;\\n    \\n      const getCartQueryNoPlans = `\\n        query GetCart($cartId: ID!) {\\n          cart(id: $cartId) {\\n            id\\n            createdAt\\n            updatedAt\\n            checkoutUrl\\n            buyerIdentity {\\n              countryCode\\n            }\\n            lines(first: 250) {\\n              edges {\\n                node {\\n                  id\\n                  quantity\\n                  merchandise {\\n                    ... on ProductVariant {\\n                      id\\n                      title\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      product {\\n                        title\\n                        handle\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                  attributes {\\n                    key\\n                    value\\n                  }\\n                  cost {\\n                    subtotalAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                    totalAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            attributes {\\n              key\\n              value\\n            }\\n            cost {\\n              totalAmount {\\n                amount\\n                currencyCode\\n              }\\n              subtotalAmount {\\n                amount\\n                currencyCode\\n              }\\n            }\\n          }\\n        }\\n      `;\\n\\n\\n      // Get available currencies from the store\\n      const getAvailableCurrencies = `\\n        query GetAvailableCurrencies {\\n          localization {\\n            availableCountries {\\n              currency {\\n                isoCode\\n                name\\n                symbol\\n              }\\n              isoCode\\n              name\\n            }\\n          }\\n        }\\n      `;\\n\\n      // Collection-specific queries - Keeping the improved queries from 2.1\\n      const getProductsQueryByCollection = `\\n        query GetProductsByCollection($cursor: String, $countryCode: CountryCode, $collectionHandle: String!) @inContext(country: $countryCode) {\\n          collection(handle: $collectionHandle) {\\n            products(first: 250, after: $cursor) {\\n              edges {\\n                node {\\n                  id\\n                  title\\n                  vendor\\n                  handle\\n                  productType\\n                  tags\\n                  collections(first: 250) {\\n                    edges {\\n                      node {\\n                        id\\n                        title\\n                        handle\\n                      }\\n                    }\\n                  }\\n                  images(first: 20) {\\n                    edges {\\n                      node {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                    }\\n                  }\\n                  metafields(identifiers: [\\n                    { namespace: \"custom\", key: \"fc_color\" },\\n                    { namespace: \"custom\", key: \"fc_size\" }\\n                  ]) {\\n                    key\\n                    namespace\\n                    value\\n                  }\\n                  sellingPlanGroups(first: 1) {\\n                    edges {\\n                      node {\\n                        name\\n                        options {\\n                          name\\n                          values\\n                        }\\n                        sellingPlans(first: 10) {\\n                          edges {\\n                            node {\\n                              id\\n                              name\\n                              description\\n                              recurringDeliveries\\n                              priceAdjustments {\\n                                orderCount\\n                                adjustmentValue {\\n                                  __typename\\n                                  ... on SellingPlanPercentagePriceAdjustment {\\n                                    adjustmentPercentage\\n                                  }\\n                                  ... on SellingPlanFixedAmountPriceAdjustment {\\n                                    adjustmentAmount {\\n                                      amount\\n                                      currencyCode\\n                                    }\\n                                  }\\n                                  ... on SellingPlanFixedPriceAdjustment {\\n                                    price {\\n                                      amount\\n                                      currencyCode\\n                                    }\\n                                  }\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                  options {\\n                    id\\n                    name\\n                    values\\n                  }\\n                  compareAtPriceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  priceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  variants(first: 250) {\\n                    pageInfo {\\n                      hasNextPage\\n                      hasPreviousPage\\n                      endCursor\\n                    }\\n                    edges {\\n                      node {\\n                        id\\n                        image {\\n                          url\\n                          altText\\n                          width\\n                          height\\n                        }\\n                        title\\n                        sku\\n                        quantityAvailable\\n                        availableForSale\\n                        requiresShipping\\n                        selectedOptions {\\n                          name\\n                          value\\n                        }\\n                        price {\\n                          amount\\n                          currencyCode\\n                        }\\n                        compareAtPrice {\\n                          amount\\n                          currencyCode\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n              pageInfo {\\n                hasNextPage\\n                endCursor\\n              }\\n            }\\n          }\\n        }\\n      `;\\n\\n      const getLessProductsQueryByCollection = `\\n        query GetProductsByCollection($cursor: String, $countryCode: CountryCode, $collectionHandle: String!) @inContext(country: $countryCode) {\\n          collection(handle: $collectionHandle) {\\n            products(first: 80, after: $cursor) {\\n              edges {\\n                node {\\n                  id\\n                  title\\n                  vendor\\n                  handle\\n                  productType\\n                  tags\\n                  collections(first: 250) {\\n                    edges {\\n                      node {\\n                        id\\n                        title\\n                        handle\\n                      }\\n                    }\\n                  }\\n                  images(first: 20) {\\n                    edges {\\n                      node {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                    }\\n                  }\\n                  metafields(identifiers: [\\n                    { namespace: \"custom\", key: \"fc_color\" },\\n                    { namespace: \"custom\", key: \"fc_size\" }\\n                  ]) {\\n                    key\\n                    namespace\\n                    value\\n                  }\\n                  sellingPlanGroups(first: 1) {\\n                    edges {\\n                      node {\\n                        name\\n                        options {\\n                          name\\n                          values\\n                        }\\n                        sellingPlans(first: 10) {\\n                          edges {\\n                            node {\\n                              id\\n                              name\\n                              description\\n                              recurringDeliveries\\n                              priceAdjustments {\\n                                orderCount\\n                                adjustmentValue {\\n                                  __typename\\n                                  ... on SellingPlanPercentagePriceAdjustment {\\n                                    adjustmentPercentage\\n                                  }\\n                                  ... on SellingPlanFixedAmountPriceAdjustment {\\n                                    adjustmentAmount {\\n                                      amount\\n                                      currencyCode\\n                                    }\\n                                  }\\n                                  ... on SellingPlanFixedPriceAdjustment {\\n                                    price {\\n                                      amount\\n                                      currencyCode\\n                                    }\\n                                  }\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                  options {\\n                    id\\n                    name\\n                    values\\n                  }\\n                  compareAtPriceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  priceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  variants(first: 250) {\\n                    pageInfo {\\n                      hasNextPage\\n                      hasPreviousPage\\n                      endCursor\\n                    }\\n                    edges {\\n                      node {\\n                        id\\n                        image {\\n                          url\\n                          altText\\n                          width\\n                          height\\n                        }\\n                        title\\n                        sku\\n                        quantityAvailable\\n                        availableForSale\\n                        requiresShipping\\n                        selectedOptions {\\n                          name\\n                          value\\n                        }\\n                        price {\\n                          amount\\n                          currencyCode\\n                        }\\n                        compareAtPrice {\\n                          amount\\n                          currencyCode\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n              pageInfo {\\n                hasNextPage\\n                endCursor\\n              }\\n            }\\n          }\\n        }\\n      `;\\n\\n      const getProductsQueryByCollectionBackup = `\\n        query GetProductsByCollectionBackup($cursor: String, $countryCode: CountryCode, $collectionHandle: String!) @inContext(country: $countryCode) {\\n          collection(handle: $collectionHandle) {\\n            products(first: 250, after: $cursor) {\\n              edges {\\n                node {\\n                  id\\n                  title\\n                  vendor\\n                  handle\\n                  productType\\n                  tags\\n                  collections(first: 250) {\\n                    edges {\\n                      node {\\n                        id\\n                        title\\n                        handle\\n                      }\\n                    }\\n                  }\\n                  images(first: 20) {\\n                    edges {\\n                      node {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                    }\\n                  }\\n                  metafields(identifiers: [\\n                    { namespace: \"custom\", key: \"fc_color\" },\\n                    { namespace: \"custom\", key: \"fc_size\" }\\n                  ]) {\\n                    key\\n                    namespace\\n                    value\\n                  }\\n                  options {\\n                    id\\n                    name\\n                    values\\n                  }\\n                  compareAtPriceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  priceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  variants(first: 250) {\\n                    pageInfo {\\n                      hasNextPage\\n                      hasPreviousPage\\n                      endCursor\\n                    }\\n                    edges {\\n                      node {\\n                        id\\n                        image {\\n                          url\\n                          altText\\n                          width\\n                          height\\n                        }\\n                        title\\n                        sku\\n                        quantityAvailable\\n                        availableForSale\\n                        requiresShipping\\n                        selectedOptions {\\n                          name\\n                          value\\n                        }\\n                        price {\\n                          amount\\n                          currencyCode\\n                        }\\n                        compareAtPrice {\\n                          amount\\n                          currencyCode\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n              pageInfo {\\n                hasNextPage\\n                endCursor\\n              }\\n            }\\n          }\\n        }\\n      `;\\n\\n      // Get products by country - Keeping the improved queries from 2.1\\n      const getProductsQueryByCountry = `\\n        query GetProductsByCountry ($cursor: String, $countryCode: CountryCode, $query: String) @inContext(country: $countryCode) {\\n          products(\\n            first: 250, \\n            after: $cursor, \\n            query: $query\\n          ) {\\n            edges {\\n              node {\\n                id\\n                title\\n                vendor\\n                handle\\n                productType\\n                tags\\n                collections(first: 250) {\\n                  edges {\\n                    node {\\n                      id\\n                      title\\n                      handle\\n                    }\\n                  }\\n                }\\n                images(first: 20) {\\n                  edges {\\n                    node {\\n                      url\\n                      altText\\n                      width\\n                      height\\n                    }\\n                  }\\n                }\\n                metafields(identifiers: [\\n                  { namespace: \"custom\", key: \"fc_color\" },\\n                  { namespace: \"custom\", key: \"fc_size\" }\\n                ]) {\\n                  key\\n                  namespace\\n                  value\\n                }\\n                sellingPlanGroups(first: 1) {\\n                  edges {\\n                    node {\\n                      name\\n                      options {\\n                        name\\n                        values\\n                      }\\n                      sellingPlans(first: 10) {\\n                        edges {\\n                          node {\\n                            id\\n                            name\\n                            description\\n                            recurringDeliveries\\n                            priceAdjustments {\\n                              orderCount\\n                              adjustmentValue {\\n                                __typename\\n                                ... on SellingPlanPercentagePriceAdjustment {\\n                                  adjustmentPercentage\\n                                }\\n                                ... on SellingPlanFixedAmountPriceAdjustment {\\n                                  adjustmentAmount {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                                ... on SellingPlanFixedPriceAdjustment {\\n                                  price {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n                options {\\n                  id\\n                  name\\n                  values\\n                }\\n                compareAtPriceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                priceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                variants(first: 250) {\\n                  pageInfo {\\n                    hasNextPage\\n                    hasPreviousPage\\n                    endCursor\\n                  }\\n                  edges {\\n                    node {\\n                      id\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      title\\n                      sku\\n                      quantityAvailable\\n                      availableForSale\\n                      requiresShipping\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            pageInfo {\\n              hasNextPage\\n              endCursor\\n            }\\n          }\\n        }\\n      `;\\n\\n      const getProductsQueryByCountryBackup = `\\n        query GetProductsByCountryBackup($cursor: String, $countryCode: CountryCode, $query: String) @inContext(country: $countryCode) {\\n          products(\\n            first: 250, \\n            after: $cursor, \\n            query: $query\\n          ) {\\n            edges {\\n              node {\\n                id\\n                title\\n                vendor\\n                handle\\n                productType\\n                tags\\n                collections(first: 250) {\\n                  edges {\\n                    node {\\n                      id\\n                      title\\n                      handle\\n                    }\\n                  }\\n                }\\n                images(first: 20) {\\n                  edges {\\n                    node {\\n                      url\\n                      altText\\n                      width\\n                      height\\n                    }\\n                  }\\n                }\\n                metafields(identifiers: [\\n                  { namespace: \"custom\", key: \"fc_color\" },\\n                  { namespace: \"custom\", key: \"fc_size\" }\\n                ]) {\\n                  key\\n                  namespace\\n                  value\\n                }\\n                options {\\n                  id\\n                  name\\n                  values\\n                }\\n                compareAtPriceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                priceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                variants(first: 250) {\\n                  pageInfo {\\n                    hasNextPage\\n                    hasPreviousPage\\n                    endCursor\\n                  }\\n                  edges {\\n                    node {\\n                      id\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      title\\n                      sku\\n                      quantityAvailable\\n                      availableForSale\\n                      requiresShipping\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            pageInfo {\\n              hasNextPage\\n              endCursor\\n            }\\n          }\\n        }\\n      `;\\n\\n      const getLessProductsQueryByCountry = `\\n        query GetProductsByCountry ($cursor: String, $countryCode: CountryCode, $query: String) @inContext(country: $countryCode) {\\n          products(\\n            first: 80, \\n            after: $cursor, \\n            query: $query\\n          ) {\\n            edges {\\n              node {\\n                id\\n                title\\n                vendor\\n                handle\\n                productType\\n                tags\\n                collections(first: 250) {\\n                  edges {\\n                    node {\\n                      id\\n                      title\\n                      handle\\n                    }\\n                  }\\n                }\\n                images(first: 20) {\\n                  edges {\\n                    node {\\n                      url\\n                      altText\\n                      width\\n                      height\\n                    }\\n                  }\\n                }\\n                metafields(identifiers: [\\n                  { namespace: \"custom\", key: \"fc_color\" },\\n                  { namespace: \"custom\", key: \"fc_size\" }\\n                ]) {\\n                  key\\n                  namespace\\n                  value\\n                }\\n                sellingPlanGroups(first: 1) {\\n                  edges {\\n                    node {\\n                      name\\n                      options {\\n                        name\\n                        values\\n                      }\\n                      sellingPlans(first: 10) {\\n                        edges {\\n                          node {\\n                            id\\n                            name\\n                            description\\n                            recurringDeliveries\\n                            priceAdjustments {\\n                              orderCount\\n                              adjustmentValue {\\n                                __typename\\n                                ... on SellingPlanPercentagePriceAdjustment {\\n                                  adjustmentPercentage\\n                                }\\n                                ... on SellingPlanFixedAmountPriceAdjustment {\\n                                  adjustmentAmount {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                                ... on SellingPlanFixedPriceAdjustment {\\n                                  price {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n                options {\\n                  id\\n                  name\\n                  values\\n                }\\n                compareAtPriceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                priceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                variants(first: 250) {\\n                  pageInfo {\\n                    hasNextPage\\n                    hasPreviousPage\\n                    endCursor\\n                  }\\n                  edges {\\n                    node {\\n                      id\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      title\\n                      sku\\n                      quantityAvailable\\n                      availableForSale\\n                      requiresShipping\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            pageInfo {\\n              hasNextPage\\n              endCursor\\n            }\\n          }\\n        }\\n      `;\\n\\n      window.shopXtools = window.shopXtools || {};\\n      window.shopXtools.products = [];\\n      window.shopXtools.fetchCart = null;\\n      window.shopXtools.dispatchEvent = (eventType, detail) => {\\n            const newEvent = new CustomEvent(eventType, { detail });\\n            document.dispatchEvent(newEvent);\\n          };\\n    \\n      window.shopXtools.handleCartMutation = async (mutation, variables) => {\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n        const token = fcConfigs.storefrontAccessToken;\\n    \\n        try {\\n          const response = await fetch(endpoint, {\\n            method: \"POST\",\\n            headers: {\\n              \"Content-Type\": \"application/json\",\\n              \"X-Shopify-Storefront-Access-Token\": token,\\n            },\\n            body: JSON.stringify({\\n              query: mutation,\\n              variables,\\n            }),\\n          });\\n          const result = await response.json();\\n          if (response.ok && !result.errors) {\\n            // If this is a cart mutation and we have cart data, save it to localStorage\\n            if (result.data && (result.data.cartCreate || result.data.cartLinesAdd || \\n                result.data.cartLinesRemove || result.data.cartLinesUpdate || \\n                result.data.cartBuyerIdentityUpdate)) {\\n              \\n              // Find the cart object in the response\\n              const cartData = result.data.cartCreate?.cart || \\n                              result.data.cartLinesAdd?.cart || \\n                              result.data.cartLinesRemove?.cart || \\n                              result.data.cartLinesUpdate?.cart ||\\n                              result.data.cartBuyerIdentityUpdate?.cart;\\n              \\n              if (cartData) {\\n                //console.log(\"Saving cart data to localStorage:\", cartData);\\n                // Update the global cart object\\n                window.shopXtools.cart = cartData;\\n                // Save to localStorage\\n                localStorage.setItem(\"shopXtools.cart\", JSON.stringify(cartData));\\n\\n                // Dispatch cart updated event for Shopify consent sync\\n                if (cartData.checkoutUrl) {\\n                  document.dispatchEvent(new CustomEvent(\\'data__cart-updated\\', {\\n                    detail: { cart: cartData }\\n                  }));\\n                }\\n\\n                // If this is a buyerIdentity update with a country code, update currency settings\\n                if (result.data.cartBuyerIdentityUpdate && cartData.buyerIdentity && cartData.buyerIdentity.countryCode) {\\n                  //console.log(\"Country code updated in cart:\", cartData.buyerIdentity.countryCode);\\n                  // Trigger currency settings update\\n                  initializeCurrencySettings();\\n                }\\n              }\\n            }\\n            return result.data;\\n          } else {\\n            console.error(\"GraphQL errors:\", result.errors);\\n            return null;\\n          }\\n        } catch (error) {\\n          console.error(\"Network error:\", error);\\n          return null;\\n        }\\n      };\\n\\n\\n        window.shopXtools.handleTemporaryCartMutation = async (mutation, variables) => {\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n        const token = fcConfigs.storefrontAccessToken;\\n\\n        try {\\n          const response = await fetch(endpoint, {\\n            method: \"POST\",\\n            headers: {\\n              \"Content-Type\": \"application/json\",\\n              \"X-Shopify-Storefront-Access-Token\": token,\\n            },\\n            body: JSON.stringify({\\n              query: mutation,\\n              variables,\\n            }),\\n          });\\n          const result = await response.json();\\n          if (response.ok && !result.errors) {\\n            // If this is a cart mutation and we have cart data, save it to temporaryCart\\n            if (result.data && (result.data.cartCreate || result.data.cartLinesAdd || \\n                result.data.cartLinesRemove || result.data.cartLinesUpdate || \\n                result.data.cartBuyerIdentityUpdate)) {\\n              \\n              // Find the cart object in the response\\n              const cartData = result.data.cartCreate?.cart || \\n                              result.data.cartLinesAdd?.cart || \\n                              result.data.cartLinesRemove?.cart || \\n                              result.data.cartLinesUpdate?.cart ||\\n                              result.data.cartBuyerIdentityUpdate?.cart;\\n              \\n              if (cartData) {\\n                // If this is a buyerIdentity update with a country code, update currency settings\\n                if (result.data.cartBuyerIdentityUpdate && cartData.buyerIdentity && cartData.buyerIdentity.countryCode) {\\n                  // Trigger currency settings update\\n                  initializeCurrencySettings();\\n                }\\n              }\\n            }\\n            return result.data; // Return the temporary cart data\\n          } else {\\n            console.error(\"GraphQL errors:\", result.errors);\\n            return null;\\n          }\\n        } catch (error) {\\n          console.error(\"Network error:\", error);\\n          return null;\\n        }\\n      };\\n    \\n      window.shopXtools.fetchCart = async function(cartId) {\\n        const variables = { cartId: cartId };\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n    \\n        const tryFetchCart = async (query, queryName) => {\\n          try {\\n            const response = await fetch(endpoint, {\\n              method: \"POST\",\\n              headers: {\\n                \"Content-Type\": \"application/json\",\\n                \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n              },\\n              body: JSON.stringify({ query: query, variables }),\\n            });\\n    \\n            const result = await response.json();\\n            if (result.errors) {\\n              console.error(`${queryName} failed with errors:`, result.errors);\\n              return null;\\n            }\\n    \\n            if (result.data && result.data.cart) {\\n              // Save cart data to localStorage\\n              //console.log(\"Saving fetched cart data to localStorage:\", result.data.cart);\\n              window.shopXtools.cart = result.data.cart;\\n              localStorage.setItem(\"shopXtools.cart\", JSON.stringify(result.data.cart));\\n\\n              // Dispatch cart updated event for Shopify consent sync\\n              if (result.data.cart.checkoutUrl) {\\n                document.dispatchEvent(new CustomEvent(\\'data__cart-updated\\', {\\n                  detail: { cart: result.data.cart }\\n                }));\\n              }\\n              \\n              // If cart has buyerIdentity with countryCode, update currency settings\\n              if (result.data.cart.buyerIdentity && result.data.cart.buyerIdentity.countryCode) {\\n                //console.log(\"Country code found in fetched cart:\", result.data.cart.buyerIdentity.countryCode);\\n                // Trigger currency settings update\\n                initializeCurrencySettings();\\n              }\\n              \\n              return result.data.cart;\\n            } else {\\n              console.error(`Cart data not found in response from ${queryName}:`, result);\\n              return null;\\n            }\\n          } catch (error) {\\n            console.error(`Network error during ${queryName}:`, error);\\n            return null;\\n          }\\n        };\\n    \\n        let cartData = await tryFetchCart(getCartQuery, \"Primary cart query\");\\n        //console.log(cartData);\\n        if (!cartData) {\\n          //console.log(\"Primary cart query failed, attempting backup cart query...\");\\n          cartData = await tryFetchCart(getCartQueryNoPlans, \"Backup cart query\");\\n        }\\n    \\n        return cartData;\\n      };\\n    \\n      const configValidation = () => {\\n        if (!fcConfigs.storefrontDomain) {\\n          throw Error(\"Storefront domain not found\");\\n        }\\n        if (!fcConfigs.storefrontAccessToken) {\\n          throw Error(\"Storefront access token not found\");\\n        }\\n      };\\n    \\n      const setDomainUrl = () => {\\n        let storeDomain = \"https://test.shopify.com\";\\n        if (fcConfigs.storefrontDomain) {\\n          storeDomain = fcConfigs.storefrontDomain.startsWith(\"http\")\\n            ? fcConfigs.storefrontDomain\\n            : `https://${fcConfigs.storefrontDomain}`;\\n        }\\n        domain = new URL(storeDomain);\\n      };\\n    \\n      const shopify = async (type, query, variables) => {\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n        const response = await fetch(endpoint, {\\n          method: \"POST\",\\n          body: JSON.stringify({ [type]: query, variables }),\\n          headers: {\\n            \"Content-Type\": \"application/json\",\\n            \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n          },\\n        });\\n        const json = await response.json();\\n        return json.data;\\n      };\\n    \\n      window.shopXtools.priorityQueue = [];\\n      window.shopXtools.priorityFetching = false;\\n      window.shopXtools.pendingPriorityRequests = new Set();\\n      \\n      const getProducts = (_id) => {\\n        const fullId = _id.startsWith(\\'gid://\\') ? _id : `gid://shopify/Product/${_id}`;\\n        console.log(\"checking fullId\", fullId)\\n        if (window.shopXtools) {\\n        console.log(\"shopXtools initialized, trying to find the product\")\\n          // First, try to find in existing products\\n          const product = window.shopXtools.products?.find(\\n            ({ node: product }) => product && product.id === fullId\\n          );\\n\\n          if (product) {\\n            console.log(\"returning found product\", product)\\n            return product;\\n          }\\n          // console.log(\"no product found, trying prioritized fetching\")\\n          \\n          // Product not found - add to priority queue if not already there\\n          // The interval processor will pick this up and fetch it\\n          if (!window.shopXtools.pendingPriorityRequests.has(fullId)) {\\n            window.shopXtools.pendingPriorityRequests.add(fullId);\\n            window.shopXtools.priorityQueue.push(fullId);\\n          }\\n        }\\n        \\n      };\\n      window.shopXtools.getProducts = getProducts;\\n\\n      // Function to fetch products by IDs (priority fetch)\\n      // Note: Priority queue properties will be initialized after setupInitialToolsObject is called\\n      const fetchProductsByIds = async (productIds, countryCode) => {\\n        if (!productIds || productIds.length === 0) return [];\\n        if (!domain || !domain.host) {\\n          // If domain not ready, wait a bit and try again\\n          setTimeout(() => fetchProductsByIds(productIds, countryCode), 100);\\n          return [];\\n        }\\n\\n        // Remove any IDs that are already in products array\\n        const existingIds = new Set(\\n          (window.shopXtools.products || []).map(({ node }) => node?.id).filter(Boolean)\\n        );\\n        const missingIds = productIds.filter(id => {\\n          const fullId = id.startsWith(\\'gid://\\') ? id : `gid://shopify/Product/${id}`;\\n          return !existingIds.has(fullId);\\n        });\\n\\n        if (missingIds.length === 0) return [];\\n\\n        try {\\n          const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n          const response = await fetch(endpoint, {\\n            method: \"POST\",\\n            headers: {\\n              \"Content-Type\": \"application/json\",\\n              \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n            },\\n            body: JSON.stringify({\\n              query: getProductsByIdsQuery,\\n              variables: {\\n                ids: missingIds,\\n                countryCode: countryCode || localStorage.getItem(\"selectedCountryCode\") || \"US\"\\n              }\\n            }),\\n          });\\n\\n          const result = await response.json();\\n          \\n          if (result.errors) {\\n            console.error(\\'Error fetching products by IDs:\\', result.errors);\\n            // Remove from pending requests so they can be retried\\n            missingIds.forEach(id => {\\n              window.shopXtools.pendingPriorityRequests.delete(\\n                id.startsWith(\\'gid://\\') ? id : `gid://shopify/Product/${id}`\\n              );\\n            });\\n            return [];\\n          }\\n          // console.log(result.data?.nodes)\\n          if (result.data?.nodes) {\\n            // Transform nodes to match the expected format used by handleProductData\\n            // This ensures priority products have the same structure as regular products\\n            const products = result.data.nodes\\n              .filter(node => node !== null && node.id)\\n              .map(node => {\\n                // Check required fields\\n                if (!node.id || !node.handle || !node.title) {\\n                  console.warn(\\'Priority product missing required fields, skipping:\\', {\\n                    id: node.id,\\n                    handle: node.handle,\\n                    title: node.title\\n                  });\\n                  return null;\\n                }\\n\\n                // Transform to match the structure from handleProductData (complete data path)\\n                return {\\n                  node: {\\n                    id: node.id,\\n                    handle: node.handle,\\n                    title: node.title,\\n                    vendor: node.vendor,\\n                    productType: node.productType,\\n                    tags: node.tags,\\n                    metafields: node.metafields,\\n                    collections: Array.isArray(node.collections)\\n                      ? node.collections // already transformed\\n                      : (node.collections?.edges || []).map(edge => ({\\n                        node: {\\n                          id: edge.node.id,\\n                          handle: edge.node.handle,\\n                          title: edge.node.title\\n                        }\\n                    })),\\n                    variants: {\\n                      edges: (node.variants?.edges || []).map(({ node: variant }) => ({\\n                        node: {\\n                          id: variant.id,\\n                          title: variant.title,\\n                          price: variant.price,\\n                          availableForSale: variant.availableForSale,\\n                          selectedOptions: variant.selectedOptions || [],\\n                          quantityAvailable: variant.quantityAvailable || 0,\\n                          compareAtPrice: variant.compareAtPrice,\\n                          requiresShipping: variant.requiresShipping\\n                        }\\n                      }))\\n                    },\\n                    options: node.options || [],\\n                    priceRange: node.priceRange,\\n                    compareAtPriceRange: node.compareAtPriceRange,\\n                    sellingPlanGroups: node.sellingPlanGroups ? {\\n                      edges: (node.sellingPlanGroups.edges || []).map(({ node: sellingPlanGroup }) => ({\\n                        node: {\\n                          name: sellingPlanGroup.name,\\n                          options: sellingPlanGroup.options,\\n                          sellingPlans: {\\n                            edges: (sellingPlanGroup.sellingPlans.edges || []).map(({ node: sellingPlan }) => ({\\n                              node: {\\n                                id: sellingPlan.id,\\n                                name: sellingPlan.name,\\n                                description: sellingPlan.description,\\n                                recurringDeliveries: sellingPlan.recurringDeliveries,\\n                                priceAdjustments: sellingPlan.priceAdjustments\\n                              }\\n                            }))\\n                          }\\n                        }\\n                      }))\\n                    } : null\\n                  }\\n                };\\n              })\\n              .filter(Boolean); // Remove null/invalid products\\n\\n            if (products.length > 0) {\\n            console.log(\\'Fetched priority products by IDs:\\', products)\\n              // Check if these products are actually NEW or if they were already in the array\\n              const existingProducts = window.shopXtools.products || [];\\n              const newProductIds = new Set(products.map(({ node }) => node.id));\\n              console.log(\\'existingProducts products:\\', existingProducts)\\n              // Check if all fetched products already exist\\n              const allProductsAlreadyExist = products.every(({ node }) =>\\n                existingProducts.some(({ node: existing }) => existing.id === node.id)\\n              );\\n              console.log(\\'allProductsAlreadyExist products:\\', allProductsAlreadyExist)\\n              // Remove from pending requests\\n              products.forEach(({ node }) => {\\n                window.shopXtools.pendingPriorityRequests.delete(node.id);\\n              });\\n\\n              // If all products already exist, don\\'t dispatch event to avoid unnecessary re-renders\\n              if (allProductsAlreadyExist) {\\n                console.log(\\'Priority products already exist, skipping dispatch to prevent re-render\\');\\n                return products;\\n              }\\n\\n              // Remove any existing products that match priority IDs to avoid duplicates\\n              const filteredExisting = existingProducts.filter(\\n                ({ node }) => node && !newProductIds.has(node.id)\\n              );\\n              console.log(\\'filteredExisting products:\\', filteredExisting)\\n              // Insert priority products at the beginning\\n              window.shopXtools.products = [...products, ...filteredExisting];\\n\\n              // Also update productsWithPrices to maintain consistency\\n              if (window.shopXtools.productsWithPrices) {\\n                const countryCodeKey = countryCode || localStorage.getItem(\"selectedCountryCode\") || \"US\";\\n                const existingForCountry = window.shopXtools.productsWithPrices[countryCodeKey] || [];\\n                const filteredForCountry = existingForCountry.filter(\\n                  ({ node }) => node && !newProductIds.has(node.id)\\n                );\\n                window.shopXtools.productsWithPrices[countryCodeKey] = [\\n                  ...products,\\n                  ...filteredForCountry\\n                ];\\n              }\\n\\n              // Use requestAnimationFrame to defer the event dispatch until after the current render cycle\\n              // This prevents Framer components from losing their content during rapid re-renders\\n              requestAnimationFrame(() => {\\n                // Dispatch the main data__products-ready event so ALL components receive the priority products\\n                // This ensures components like ProductPrice get updated immediately\\n                // Priority products are included at the front of the products array (first in line)\\n                window.shopXtools.dispatchEvent(\\'data__products-ready\\', {\\n                  products: window.shopXtools.products,\\n                  isInitialLoad: false,\\n                  isPriorityFetch: true\\n                });\\n\\n                console.log(\\'Priority products merged and dispatched via data__products-ready:\\', {\\n                  priorityProducts: products,\\n                  products: window.shopXtools.products,\\n                  totalProducts: window.shopXtools.products.length,\\n                  requestedIds: missingIds\\n                })\\n                // console.log(\"products\", products)\\n              });\\n\\n              return products;\\n            }\\n          }\\n          \\n          // Remove from pending requests even if no products returned\\n          missingIds.forEach(id => {\\n            window.shopXtools.pendingPriorityRequests.delete(\\n              id.startsWith(\\'gid://\\') ? id : `gid://shopify/Product/${id}`\\n            );\\n          });\\n          \\n          return [];\\n        } catch (error) {\\n          console.error(\\'Error fetching products by IDs:\\', error);\\n          // Remove from pending requests so they can be retried\\n          missingIds.forEach(id => {\\n            window.shopXtools.pendingPriorityRequests.delete(\\n              id.startsWith(\\'gid://\\') ? id : `gid://shopify/Product/${id}`\\n            );\\n          });\\n          return [];\\n        }\\n      };\\n\\n      // Process priority queue\\n      const processPriorityQueue = async () => {\\n        if (window.shopXtools.priorityQueue.length === 0) return;\\n        if (!domain || !domain.host) {\\n          // Wait for domain to be ready\\n          setTimeout(() => processPriorityQueue(), 100);\\n          return;\\n        }\\n\\n        window.shopXtools.priorityFetching = true;\\n        const countryCode = localStorage.getItem(\"selectedCountryCode\") || \"US\";\\n        \\n        // Batch process up to 50 IDs at a time (Shopify limit for nodes query)\\n        const batchSize = 50;\\n        const queue = [...window.shopXtools.priorityQueue];\\n        window.shopXtools.priorityQueue = [];\\n\\n        for (let i = 0; i < queue.length; i += batchSize) {\\n          const batch = queue.slice(i, i + batchSize);\\n          await fetchProductsByIds(batch, countryCode);\\n          // console.log(\"Processing queued products for\", countryCode, batch)\\n          // Small delay to avoid rate limiting\\n          if (i + batchSize < queue.length) {\\n            await new Promise(resolve => setTimeout(resolve, 100));\\n          }\\n        }\\n\\n        window.shopXtools.priorityFetching = false;\\n        \\n        // Process any new items added to queue during processing\\n        if (window.shopXtools.priorityQueue.length > 0) {\\n          setTimeout(processPriorityQueue, 0);\\n        }\\n      };\\n\\n      // Function to fetch available currencies\\n      const fetchAvailableCurrencies = async () => {\\n        // console.log(\"Domain object in fetchAvailableCurrencies:\", domain);\\n        // console.log(\"Domain host:\", domain?.host);\\n        if (!domain || !domain.host) {\\n          console.warn(\"fetchAvailableCurrencies: domain not ready; skipping fetch\");\\n          return null;\\n        }\\n\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n        \\n        try {\\n          const response = await fetch(endpoint, {\\n            method: \"POST\",\\n            headers: {\\n              \"Content-Type\": \"application/json\",\\n              \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n            },\\n            body: JSON.stringify({ query: getAvailableCurrencies }),\\n          });\\n\\n          const result = await response.json();\\n          //console.log(\"[CURRENCIES] Result:\", result);\\n          if (result.errors) {\\n            console.error(\"Error fetching currencies:\", result.errors);\\n            return null;\\n          }\\n          const availableCurrenciesAndCountries = result?.data?.localization?.availableCountries;\\n          \\n          //console.log(\"[CURRENCIES] Available Currencies:\", availableCurrenciesAndCountries);\\n          sessionStorage.setItem(\"availableCurrenciesAndCountries\", JSON.stringify(availableCurrenciesAndCountries));\\n          //console.log(sessionStorage.getItem(\"availableCurrenciesAndCountries\")\\n          \\n          return { availableCurrenciesAndCountries };\\n          \\n        } catch (error) {\\n          console.error(\"Error fetching currencies:\", error);\\n          return null;\\n        }\\n      };\\n\\n      window.shopXtools.fetchAvailableCurrencies = fetchAvailableCurrencies;\\n    \\n      // Function to initialize currency settings\\n      const initializeCurrencySettings = async () => {\\n        // Ensure domain is initialized before proceeding\\n        if (!domain) {\\n            await setDomainUrl();\\n        }\\n        if (!domain || !domain.host) {\\n            console.error(\"Domain is still undefined after initialization. Cannot fetch currencies.\");\\n            return;\\n        }\\n\\n        // Retrieve available currencies from sessionStorage or fetch if not available\\n        let availableCurrenciesAndCountries = JSON.parse(sessionStorage.getItem(\"availableCurrenciesAndCountries\"));\\n        if (!availableCurrenciesAndCountries) {\\n            const currencies = await fetchAvailableCurrencies();\\n            if (!currencies) {\\n                console.error(\"Failed to fetch available currencies\");\\n                return;\\n            }\\n            availableCurrenciesAndCountries = currencies.availableCurrenciesAndCountries;\\n            sessionStorage.setItem(\"availableCurrenciesAndCountries\", JSON.stringify(availableCurrenciesAndCountries));\\n        }\\n\\n        // Get values from window.__FcCheckoutConfigs\\n        const fcCheckoutConfigs = window.__FcCheckoutConfigs || {};\\n        const configCountry = fcCheckoutConfigs.defaultCountry;\\n        const configCountryCode = fcCheckoutConfigs.defaultCountryCode;\\n        const configCurrency = fcCheckoutConfigs.defaultCurrency;\\n        const configCurrencySymbol = fcCheckoutConfigs.defaultCurrencySymbol;\\n        //console.log(\"configCurrencySymbol\", configCurrencySymbol)\\n        \\n        // Get values from localStorage\\n        let storedCurrency = localStorage.getItem(\"selectedCurrency\");\\n        let storedCountry = localStorage.getItem(\"selectedCountry\");\\n        let storedCountryCode = localStorage.getItem(\"selectedCountryCode\");\\n        let storedCurrencySymbol = localStorage.getItem(\"selectedCurrencySymbol\");\\n\\n        // Get cart data from localStorage\\n        let cart;\\n        try {\\n          const cartData = localStorage.getItem(\"shopXtools.cart\");\\n          if (cartData) {\\n            cart = JSON.parse(cartData);\\n          } else {\\n            cart = {};\\n          }\\n        } catch (error) {\\n          console.error(\"Error parsing cart data:\", error);\\n          cart = {};\\n        }\\n        \\n        const buyerIdentity = cart.buyerIdentity || {};\\n        const countryCodeFromCart = buyerIdentity.countryCode;\\n        window.shopXtools.cart = cart;\\n\\n        // Determine the country code using the priority sequence\\n        let finalCountryCode;\\n        let finalCurrency = null;\\n        let finalCountry = null;\\n        let finalCurrencySymbol = null;\\n        \\n        if (countryCodeFromCart) {\\n          // Priority 1: Use country code from cart\\n          finalCountryCode = countryCodeFromCart;\\n        } else if (storedCountryCode && storedCurrency && storedCountry && storedCurrencySymbol) {\\n          // Priority 2: Use values from localStorage if all are present\\n          finalCountryCode = storedCountryCode;\\n          finalCurrency = storedCurrency;\\n          finalCountry = storedCountry;\\n          finalCurrencySymbol = storedCurrencySymbol;\\n        } else if (configCountryCode && configCurrency && configCountry) {\\n          // Priority 3: Use values from window.__FcCheckoutConfigs if all are present\\n          finalCountryCode = configCountryCode;\\n          finalCurrency = configCurrency;\\n          finalCountry = configCountry;\\n          finalCurrencySymbol = configCurrencySymbol;\\n        } else {\\n          // Priority 4: Use first available country if nothing else is available\\n          if (availableCurrenciesAndCountries && availableCurrenciesAndCountries.length > 0) {\\n            finalCountryCode = availableCurrenciesAndCountries[0].isoCode;\\n          } else {\\n            console.error(\"No country data available\");\\n            return;\\n          }\\n        }\\n        \\n        // If we only have the country code (from cart or when other values are missing),\\n        // find the matching country data to get the currency and country name\\n        if (!finalCurrency || !finalCountry) {\\n          const matchedCountry = availableCurrenciesAndCountries.find(c => c.isoCode === finalCountryCode);\\n          if (matchedCountry) {\\n            finalCurrency = matchedCountry.currency.isoCode;\\n            finalCountry = matchedCountry.name;\\n            //finalCurrencySymbol = CURRENCIES[finalCurrency];\\n            if (knownCurrenciesWithCodeAsSymbol[finalCurrency]){\\n              finalCurrencySymbol = finalCurrency\\n            } else {\\n              finalCurrencySymbol = CURRENCIES[finalCurrency];\\n            }\\n          } else {\\n            // If no match found, use first available country as fallback\\n            if (availableCurrenciesAndCountries && availableCurrenciesAndCountries.length > 0) {\\n              const firstCountry = availableCurrenciesAndCountries[0];\\n              finalCountryCode = firstCountry.isoCode;\\n              finalCurrency = firstCountry.currency.isoCode;\\n              finalCountry = firstCountry.name;\\n              //finalCurrencySymbol = CURRENCIES[finalCurrency];\\n              if (knownCurrenciesWithCodeAsSymbol[finalCurrency]){\\n                finalCurrencySymbol = finalCurrency\\n              } else {\\n                finalCurrencySymbol = CURRENCIES[finalCurrency];\\n              }\\n            } else {\\n              console.error(\"Cannot determine country settings\");\\n              return;\\n            }\\n          }\\n        }\\n\\n        // Update localStorage with the final values\\n        localStorage.setItem(\"selectedCountry\", finalCountry);\\n        localStorage.setItem(\"selectedCurrency\", finalCurrency);\\n        localStorage.setItem(\"selectedCountryCode\", finalCountryCode);\\n        localStorage.setItem(\"selectedCurrencySymbol\", finalCurrencySymbol);\\n\\n        // Also update window.shopXtools for global consistency\\n        window.shopXtools.defaultCurrency = finalCurrency;\\n        window.shopXtools.defaultCountry = finalCountry;\\n        window.shopXtools.defaultCountryCode = finalCountryCode;\\n        window.shopXtools.defaultCurrencySymbol = finalCurrencySymbol;\\n\\n        // Dispatch an event to notify the application of currency settings changes\\n        const currencyEvent = new CustomEvent(\\'currency__settings-updated\\', {\\n          detail: {\\n            previous: {\\n              defaultCountry: storedCountry,\\n              defaultCountryCode: storedCountryCode,\\n              defaultCurrency: storedCurrency,\\n              defaultCurrencySymbol: storedCurrencySymbol\\n            },\\n            current: {\\n              defaultCountry: finalCountry,\\n              defaultCountryCode: finalCountryCode,\\n              defaultCurrency: finalCurrency,\\n              defaultCurrencySymbol: finalCurrencySymbol\\n            }\\n          }\\n        });\\n        document.dispatchEvent(currencyEvent);\\n      };\\n\\n\\n      const handleProductData = (newProducts, countryCode, isInitialLoad = false, cursor = null) => {\\n        try {\\n          // Validate incoming data structure\\n          if (!Array.isArray(newProducts)) {\\n            console.warn(\\'handleProductData: newProducts is not an array, converting to empty array\\');\\n            newProducts = [];\\n          }\\n          \\n          // Transform products into minimal format with only essential data\\n          const transformedProducts = newProducts.map(({ node }) => {\\n            // Validate node structure\\n            if (!node || typeof node !== \\'object\\') {\\n              console.warn(\\'handleProductData: Invalid node structure, skipping product\\');\\n              return null;\\n            }\\n            \\n            // Check required fields\\n            if (!node.id || !node.handle || !node.title) {\\n              console.warn(\\'handleProductData: Product missing required fields, skipping:\\', { \\n                id: node.id, \\n                handle: node.handle, \\n                title: node.title \\n              });\\n              return null;\\n            }\\n            // For initial load, include minimal but sufficient variant data with safety checks\\n            if (isInitialLoad) {\\n              return {\\n                node: {\\n                  id: node.id,\\n                  handle: node.handle,\\n                  title: node.title,\\n                  priceRange: node.priceRange,\\n                  compareAtPriceRange: node.compareAtPriceRange || null,\\n                  productType: node.productType || null,\\n                  tags: Array.isArray(node.tags) ? node.tags : [],\\n                  collections: (() => {\\n                    try {\\n                      return node.collections?.edges ? \\n                        node.collections.edges.map(edge => ({\\n                          node: {\\n                            id: edge.node?.id || \\'\\',\\n                            handle: edge.node?.handle || \\'\\',\\n                            title: edge.node?.title || \\'\\'\\n                          }\\n                        })).filter(col => col.node.id && col.node.handle) : [];\\n                    } catch (error) {\\n                      console.warn(\\'Error processing collections, using empty array:\\', error);\\n                      return [];\\n                    }\\n                  })(),\\n                  metafields: node.metafields || [],\\n                  variants: { \\n                    edges: (() => {\\n                      try {\\n                        return (node.variants?.edges || []).map(({ node: variant }) => ({\\n                          node: {\\n                            id: variant?.id || \\'\\',\\n                            title: variant?.title || \\'\\',\\n                            price: variant?.price || null,\\n                            availableForSale: Boolean(variant?.availableForSale),\\n                            selectedOptions: Array.isArray(variant?.selectedOptions) ? variant.selectedOptions : [],\\n                            quantityAvailable: Number(variant?.quantityAvailable) || 0,\\n                            compareAtPrice: variant?.compareAtPrice || null\\n                          }\\n                        })).filter(v => v.node.id); // Remove invalid variants\\n                      } catch (error) {\\n                        console.warn(\\'Error processing variants, using empty array:\\', error);\\n                        return [];\\n                      }\\n                    })()\\n                  },\\n                  options: node.options || []\\n                }\\n              };\\n            }\\n\\n            // For complete data load, include all necessary fields\\n            return {\\n              node: {\\n                id: node.id,\\n                handle: node.handle,\\n                title: node.title,\\n                vendor: node.vendor,\\n                productType: node.productType,\\n                tags: node.tags,\\n                metafields: node.metafields,\\n                collections: Array.isArray(node.collections)\\n                  ? node.collections // already transformed\\n                  : (node.collections?.edges || []).map(edge => ({\\n                    node: {\\n                      id: edge.node.id,\\n                      handle: edge.node.handle,\\n                      title: edge.node.title\\n                    }\\n                })),\\n                variants: { \\n                  edges: (node.variants?.edges || []).map(({ node: variant }) => ({\\n                    node: {\\n                      id: variant.id,\\n                      title: variant.title,\\n                      price: variant.price,\\n                      availableForSale: variant.availableForSale,\\n                      selectedOptions: variant.selectedOptions || [],\\n                      quantityAvailable: variant.quantityAvailable || 0,\\n                      compareAtPrice: variant.compareAtPrice,\\n                      requiresShipping: variant.requiresShipping\\n                    }\\n                  }))\\n                },\\n                options: node.options || [],\\n                priceRange: node.priceRange,\\n                compareAtPriceRange: node.compareAtPriceRange,\\n                sellingPlanGroups: node.sellingPlanGroups ? {\\n                  edges: (node.sellingPlanGroups.edges || []).map(({ node: sellingPlanGroup }) => ({\\n                    node: {\\n                      name: sellingPlanGroup.name,\\n                      options: sellingPlanGroup.options,\\n                      sellingPlans: {\\n                        edges: (sellingPlanGroup.sellingPlans.edges || []).map(({ node: sellingPlan }) => ({\\n                          node: {\\n                            id: sellingPlan.id,\\n                            name: sellingPlan.name,\\n                            description: sellingPlan.description,\\n                            recurringDeliveries: sellingPlan.recurringDeliveries,\\n                            priceAdjustments: sellingPlan.priceAdjustments\\n                          }\\n                        }))\\n                      }\\n                    }\\n                  }))\\n                } : null\\n              }\\n            };\\n          }).filter(Boolean); // Remove null/invalid products\\n\\n          // Log validation results\\n          if (transformedProducts.length !== newProducts.length) {\\n            console.warn(\\'handleProductData: Filtered out \\' + (newProducts.length - transformedProducts.length) + \\' invalid products\\');\\n          }\\n\\n          // --- ADDED LOGGING FOR COLLECTION FILTER ---\\n          // if (window.shopXtools && window.shopXtools.lastAppliedFilters && window.shopXtools.lastAppliedFilters.collection) {\\n          //   const collectionHandle = window.shopXtools.lastAppliedFilters.collection.toLowerCase();\\n          //   // Only keep items that do NOT have the collection\\n          //   const missing = transformedProducts.filter(({ node }) => {\\n          //     const collections = Array.isArray(node.collections) ? node.collections : [];\\n          //     return !collections.some(col => (col.node?.handle || \\'\\').toLowerCase() === collectionHandle);\\n          //   });\\n          //   const allMatch = missing.length === 0;\\n          //   console.log(\\'[Collection Check] Total items processed:\\', transformedProducts.length);\\n          //   console.log(\\'[Collection Check] All items have collection\\', collectionHandle, \\':\\', allMatch);\\n          //   if (!allMatch) {\\n          //     console.log(\\'[Collection Check] Items missing collection:\\', missing.map(({ node }) => node.id));\\n          //   }\\n          // }\\n          // --- END LOGGING ---\\n\\n          // Always accumulate products, whether initial load or not\\n          if (!cursor) {\\n            // If this is the first page, start fresh\\n            products = transformedProducts;\\n          } else {\\n            // For subsequent pages, append to existing products\\n            products = [...products, ...transformedProducts];\\n          }\\n\\n          // Store products in smaller chunks to avoid quota issues\\n          const CHUNK_SIZE = 50;\\n          const chunks = [];\\n          for (let i = 0; i < products.length; i += CHUNK_SIZE) {\\n            chunks.push(products.slice(i, i + CHUNK_SIZE));\\n          }\\n\\n          let storageQuotaExceeded = false;\\n\\n          // Update storage with all chunks\\n          try {\\n            // Only attempt to clear old chunks if we haven\\'t hit quota yet\\n            if (!storageQuotaExceeded) {\\n              try {\\n                const oldMetadata = JSON.parse(sessionStorage.getItem(\\'fc_products_\\' + countryCode + \\'_metadata\\') || \\'{}\\');\\n                if (oldMetadata.totalChunks) {\\n                  for (let i = 0; i < oldMetadata.totalChunks; i++) {\\n                    sessionStorage.removeItem(\\'fc_products_\\' + countryCode + \\'_chunk_\\' + i);\\n                  }\\n                }\\n              } catch (error) {\\n                console.warn(\\'Storage quota exceeded during cleanup, switching to in-memory only\\');\\n                storageQuotaExceeded = true;\\n              }\\n            }\\n\\n            // Only attempt to store new chunks if we haven\\'t hit quota yet\\n            if (!storageQuotaExceeded) {\\n              for (let i = 0; i < chunks.length; i++) {\\n                const chunkKey = \\'fc_products_\\' + countryCode + \\'_chunk_\\' + i;\\n                try {\\n                  sessionStorage.setItem(chunkKey, JSON.stringify(chunks[i]));\\n                } catch (storageError) {\\n                  console.warn(\\'Storage quota exceeded at chunk\\', i, \\', switching to in-memory only\\');\\n                  storageQuotaExceeded = true;\\n                  break;\\n                }\\n              }\\n\\n              // Only attempt to update metadata if we haven\\'t hit quota\\n              if (!storageQuotaExceeded) {\\n                const metadata = {\\n                  totalChunks: chunks.length,\\n                  totalProducts: products.length,\\n                  lastUpdated: Date.now(),\\n                  isComplete: !cursor\\n                };\\n                try {\\n                  sessionStorage.setItem(\\'fc_products_\\' + countryCode + \\'_metadata\\', JSON.stringify(metadata));\\n                } catch (error) {\\n                  console.warn(\\'Storage quota exceeded during metadata update\\');\\n                  storageQuotaExceeded = true;\\n                }\\n              }\\n            }\\n          } catch (error) {\\n            console.warn(\\'Storage operations failed, proceeding with in-memory only\\');\\n            storageQuotaExceeded = true;\\n          }\\n\\n          // Update global references with complete product list (always do this regardless of storage status)\\n          window.shopXtools.productsWithPrices = { [countryCode]: products };\\n          window.shopXtools.products = products;\\n\\n          // Set status and dispatch events\\n          window.shopXtools.status = \"ready\";\\n          window.shopXtools.dispatchEvent(\\'data__products-ready\\', { \\n            products: window.shopXtools.products,\\n            isInitialLoad\\n          });\\n\\n          // Start fetching complete data immediately after displaying prices\\n          if (isInitialLoad && !cursor) {\\n            const { vendor, collection, productType, tag } = window.shopXtools.lastAppliedFilters || {};\\n            setTimeout(() => {\\n              fetchCompleteProductData(countryCode, vendor, collection, productType, tag);\\n            }, 0);\\n          }\\n\\n          //console.log(\\'[Products] Total products loaded:\\', products.length);\\n        } catch (error) {\\n          console.error(\\'Error in handleProductData:\\', error);\\n          window.shopXtools.status = \"error\";\\n        }\\n      };\\n\\n      // Client-side filtering function to ensure filters are applied correctly\\n      const filterProductsClientSide = (products, filters) => {\\n        const { vendor, collection, productType, tag } = filters;\\n        \\n        return products.filter(({ node }) => {\\n          // Filter by vendor if specified\\n          if (vendor && node.vendor !== vendor) {\\n            return false;\\n          }\\n          \\n          // Filter by collection if specified\\n          if (collection) {\\n            // Check if the product belongs to the specified collection\\n            const collections = node.collections || [];\\n            const matchingCollection = collections.find(col => \\n              col.handle === collection.toLowerCase() || \\n              col.title === collection\\n            );\\n            if (!matchingCollection) {\\n              return false;\\n            }\\n          }\\n          \\n          // Filter by product type if specified\\n          if (productType && node.productType !== productType) {\\n            return false;\\n          }\\n          \\n          // Filter by tag if specified\\n          if (tag) {\\n            const tags = node.tags || [];\\n            if (!tags.includes(tag)) {\\n              return false;\\n            }\\n          }\\n          \\n          return true;\\n        });\\n      };\\n\\n      const fetchProductsByCountry = async (countryCode, cursor = null, vendor = null, collection = null, productType = null, tag = null) => {\\n        // Store filter information if this is a first page request\\n        if (!cursor) {\\n          const newFilters = { vendor, collection, productType, tag };\\n          window.shopXtools.lastAppliedFilters = newFilters;\\n          \\n          // Store filters in sessionStorage\\n          try {\\n            const storedFilters = JSON.parse(sessionStorage.getItem(\\'fc_filters\\') || \\'{}\\');\\n            const filtersChanged = JSON.stringify(storedFilters) !== JSON.stringify(newFilters);\\n            \\n            if (filtersChanged) {\\n              sessionStorage.setItem(\\'fc_filters\\', JSON.stringify(newFilters));\\n              // Force refresh from Shopify if filters changed\\n              products = [];\\n              return fetchProductsByCountry(countryCode, null, vendor, collection, productType, tag);\\n            }\\n          } catch (error) {\\n            console.error(\\'Error handling filter storage:\\', error);\\n          }\\n          \\n          products = [];\\n          \\n          // Try to load and display cached data immediately\\n          try {\\n            const metadata = JSON.parse(sessionStorage.getItem(\\'fc_products_\\' + countryCode + \\'_metadata\\') || \\'{}\\');\\n            // console.log(\\'[Cache] metadata\\', metadata);\\n            // console.log(\\'[Cache] cursor\\', cursor);\\n            if (metadata.totalChunks > 0) {\\n              let cachedProducts = [];\\n              for (let i = 0; i < metadata.totalChunks; i++) {\\n                const chunkKey = \\'fc_products_\\' + countryCode + \\'_chunk_\\' + i;\\n                const chunk = JSON.parse(sessionStorage.getItem(chunkKey) || \\'[]\\');\\n                cachedProducts = cachedProducts.concat(chunk);\\n                // console.log(\\'[Cache] cachedProducts\\', cachedProducts);\\n              }\\n              \\n              if (cachedProducts.length > 0) {\\n                //console.log(\\'[Cache] Displaying\\', cachedProducts.length, \\'cached products\\');\\n                handleProductData(cachedProducts, countryCode, false, cursor);\\n                \\n                // If cache is older than 1 minute or incomplete, refresh in background\\n                if (Date.now() - metadata.lastUpdated > 60000 || !metadata.isComplete) {\\n                  //console.log(\\'[Cache] Starting background refresh\\');\\n                } else {\\n                  //console.log(\\'[Cache] Cache is fresh and complete, skipping refresh\\');\\n                  return;\\n                }\\n              }\\n            }\\n          } catch (error) {\\n            console.error(\\'Error loading from cache:\\', error);\\n          }\\n        }\\n\\n        try {\\n          let response;\\n          let variables;\\n          let query;\\n\\n          // Use collection-specific query structure if a collection filter is provided\\n          if (collection) {\\n            query = getProductsQueryByCollection;\\n            variables = {\\n              countryCode,\\n              collectionHandle: collection.toLowerCase(),\\n              ...(cursor && { cursor })\\n            };\\n            \\n            //console.log(\"[FILTER] Using collection-specific query for:\", collection);\\n          } else {\\n            query = getProductsQueryByCountry;\\n            \\n            // Build query string for non-collection filters\\n            const queryParts = [];\\n            if (vendor) queryParts.push(`vendor:${vendor}`);\\n            if (productType) queryParts.push(`product_type:${productType}`);\\n            if (tag) queryParts.push(`tag:${tag}`);\\n            const queryString = queryParts.length > 0 ? queryParts.join(\" AND \") : null;\\n\\n            variables = {\\n              countryCode,\\n              ...(cursor && { cursor }),\\n              ...(queryString && { query: queryString })\\n            };\\n          }\\n\\n          response = await fetch(`https://${domain.host}/api/2024-07/graphql.json`, {\\n            method: \"POST\",\\n            headers: {\\n              \"Content-Type\": \"application/json\",\\n              \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n            },\\n            body: JSON.stringify({ query, variables }),\\n          });\\n\\n          const result = await response.json();\\n          \\n          if (collection) {\\n            // Handle collection-specific response structure\\n            if (!result.errors && result.data?.collection?.products) {\\n              const newProducts = result.data.collection.products.edges || [];\\n              handleProductData(newProducts, countryCode, true, cursor);\\n\\n              // Continue pagination if there are more products\\n              const pageInfo = result.data.collection.products.pageInfo;\\n              if (pageInfo.hasNextPage && pageInfo.endCursor) {\\n                await fetchProductsByCountry(countryCode, pageInfo.endCursor, vendor, collection, productType, tag);\\n              } else {\\n                // All products have been fetched, update the metadata\\n                const metadata = {\\n                  totalChunks: Math.ceil(products.length / 50),\\n                  totalProducts: products.length,\\n                  lastUpdated: Date.now(),\\n                  isComplete: true\\n                };\\n                sessionStorage.setItem(\\'fc_products_\\' + countryCode + \\'_metadata\\', JSON.stringify(metadata));\\n              }\\n            } else if (result.errors) {\\n              console.error(\\'Error fetching collection products:\\', result.errors);\\n              window.shopXtools.status = \"error\";\\n            } else if (!result.data?.collection) {\\n              console.error(\\'Collection not found:\\', collection);\\n              window.shopXtools.status = \"ready\";\\n              window.shopXtools.products = [];\\n              window.shopXtools.dispatchEvent(\\'data__products-ready\\', { \\n                products: [],\\n                isInitialLoad: false\\n              });\\n            }\\n          } else {\\n            // Handle regular product query response\\n            if (!result.errors && result.data?.products) {\\n              const newProducts = result.data.products.edges || [];\\n              handleProductData(newProducts, countryCode, true, cursor);\\n\\n              // Continue pagination if there are more products\\n              const pageInfo = result.data.products.pageInfo;\\n              if (pageInfo.hasNextPage && pageInfo.endCursor) {\\n                await fetchProductsByCountry(countryCode, pageInfo.endCursor, vendor, collection, productType, tag);\\n              } else {\\n                // All products have been fetched, update the metadata\\n                const metadata = {\\n                  totalChunks: Math.ceil(products.length / 50),\\n                  totalProducts: products.length,\\n                  lastUpdated: Date.now(),\\n                  isComplete: true\\n                };\\n                sessionStorage.setItem(\\'fc_products_\\' + countryCode + \\'_metadata\\', JSON.stringify(metadata));\\n              }\\n            }\\n          }\\n        } catch (error) {\\n          console.error(\\'Error fetching products:\\', error);\\n          window.shopXtools.status = \"error\";\\n        }\\n      };\\n\\n      // Function to fetch complete product data in the background\\n      const fetchCompleteProductData = async (countryCode, vendor, collection, productType, tag) => {\\n        let cursor = null;\\n        let allProducts = [];\\n\\n        try {\\n            while (true) {\\n                let response;\\n                let variables;\\n                let query;\\n\\n                // Use collection-specific query for collections, matching the main fetch function\\n                if (collection) {\\n                    query = getLessProductsQueryByCollection;\\n                    variables = {\\n                        countryCode,\\n                        collectionHandle: collection.toLowerCase(),\\n                        ...(cursor && { cursor })\\n                    };\\n                } else {\\n                    // For non-collection filters, use regular query\\n                    query = getLessProductsQueryByCountry;\\n                    \\n                    // Build query parts\\n                    const queryParts = [];\\n                    if (vendor) queryParts.push(`vendor:${vendor}`);\\n                    if (productType) queryParts.push(`product_type:${productType}`);\\n                    if (tag) queryParts.push(`tag:${tag}`);\\n                    const queryString = queryParts.length > 0 ? queryParts.join(\" AND \") : null;\\n                    \\n                    variables = {\\n                        countryCode,\\n                        cursor,\\n                        ...(queryString && { query: queryString })\\n                    };\\n                }\\n\\n                response = await fetch(`https://${domain.host}/api/2024-07/graphql.json`, {\\n                    method: \"POST\",\\n                    headers: {\\n                        \"Content-Type\": \"application/json\",\\n                        \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n                    },\\n                    body: JSON.stringify({ query, variables }),\\n                });\\n\\n                const result = await response.json();\\n                // console.log(\\'result\\', result);\\n                if (collection) {\\n                    // Handle collection response structure\\n                    if (!result.errors && result.data?.collection?.products) {\\n                        const newProducts = result.data.collection.products.edges || [];\\n                        allProducts = [...allProducts, ...newProducts];\\n\\n                        // Update data every 500 products or when complete\\n                        if (allProducts.length >= 500 || !result.data.collection.products.pageInfo.hasNextPage) {\\n                            handleProductData(allProducts, countryCode, false, cursor);\\n                            allProducts = [];\\n                        }\\n\\n                        if (!result.data.collection.products.pageInfo.hasNextPage) {\\n                            break;\\n                        }\\n                        cursor = result.data.collection.products.pageInfo.endCursor;\\n                    } else {\\n                        console.error(\\'Error fetching complete collection data:\\', result.errors);\\n                        break;\\n                    }\\n                } else {\\n                    // Handle regular product response\\n                    if (!result.errors && result.data?.products) {\\n                        const newProducts = result.data.products.edges || [];\\n                        allProducts = [...allProducts, ...newProducts];\\n\\n                        // Update data every 500 products or when complete\\n                        if (allProducts.length >= 500 || !result.data.products.pageInfo.hasNextPage) {\\n                            handleProductData(allProducts, countryCode, false, cursor);\\n                            allProducts = [];\\n                        }\\n\\n                        if (!result.data.products.pageInfo.hasNextPage) {\\n                            break;\\n                        }\\n                        cursor = result.data.products.pageInfo.endCursor;\\n                    } else {\\n                        console.error(\\'Error fetching complete product data:\\', result.errors);\\n                        break;\\n                    }\\n                }\\n            }\\n        } catch (error) {\\n            console.error(\\'Error in background data fetch:\\', error);\\n        }\\n      };\\n\\n      // Initialize shopXtools and attach fetchProductsByCountry to it\\n      window.shopXtools = window.shopXtools || {};\\n      window.shopXtools.fetchProductsByCountry = fetchProductsByCountry;\\n      \\n      // Attach priority queue functions to shopXtools (properties already initialized in setupInitialToolsObject)\\n      window.shopXtools.fetchProductsByIds = fetchProductsByIds;\\n      window.shopXtools.processPriorityQueue = processPriorityQueue;\\n\\n      // Start priority queue processor (runs continuously to process requested products)\\n      // This ensures priority products are fetched even before full product load completes\\n      if (typeof setInterval !== \\'undefined\\') {\\n        setInterval(() => {\\n          if (window.shopXtools.priorityQueue && \\n              window.shopXtools.priorityQueue.length > 0 && \\n              !window.shopXtools.priorityFetching &&\\n              domain && domain.host) {\\n            processPriorityQueue();\\n          }\\n        }, 500); // Check every 500ms\\n      }\\n      \\n      configValidation();\\n      setDomainUrl();\\n      \\n  const validateDomainForFreePlan = () => {\\n    if (\"free\" === \"free\") {\\n      const isFramerSubdomain = domain.host.includes(\\'framer.app\\');\\n      if (isFramerSubdomain) {\\n        console.error(\\'Free plan users can only use a Framer subdomain\\');\\n        return false;\\n      }\\n    }\\n    return true;\\n  };\\n\\n  if (!validateDomainForFreePlan()) {\\n    //console.log(\\'Domain validation failed, products will not be fetched\\');\\n    return;\\n  }\\n\\n      \\n  if (\"free\" === \"free\") {\\n    // Wait for DOM to be ready\\n    const insertWidget = () => {\\n      const widget = document.createElement(\\'div\\');\\n      widget.innerHTML = `\\n        <div \\n          style=\"\\n            position: fixed;\\n            bottom: 60px;\\n            right: 20px;\\n            border-radius: 10px;\\n            overflow: hidden;\\n            z-index: 999999;\\n            transition: opacity 0.3s ease;\\n            box-shadow:\\n              rgba(0, 0, 0, 0.26) 0px 0.636953px 1.14652px -1.125px, \\n              rgba(0, 0, 0, 0.24) 0px 1.9316px 3.47689px -2.25px, \\n              rgba(0, 0, 0, 0.192) 0px 5.10612px 9.19102px -3.375px, \\n              rgba(0, 0, 0, 0.03) 0px 16px 28.8px -4.5px;\\n            width: 142px;\\n            background: white;\\n          \"\\n          onmouseover=\"this.style.opacity = \\'1\\'\"\\n          onmouseout=\"this.style.opacity = \\'1\\'\"\\n        >\\n          <a \\n            href=\"https://framercommerce.com/?utm_source=framer&utm_medium=badge&utm_campaign=free_tier\" \\n            target=\"_blank\" \\n            style=\"\\n              display: block;\\n              line-height: 0;\\n            \"\\n          >\\n            <img \\n              src=\"https://www.dropbox.com/scl/fi/liuwd84g4nioi6fmu93e1/fc-free-badge.png?rlkey=yearpo3rkxqalq4mtmabujdk4&raw=1\" \\n              alt=\"Framer Commerce\"\\n              width=\"142\"\\n              height=\"36\"\\n              style=\"display: block; width: 100%; height: auto;\"\\n            />\\n          </a>\\n        </div>\\n      `;\\n\\n      // Check if widget already exists\\n      const existingWidget = document.querySelector(\\'[data-framercommerce-widget]\\');\\n      if (!existingWidget) {\\n        widget.setAttribute(\\'data-framercommerce-widget\\', \\'true\\');\\n        document.body.appendChild(widget);\\n      }\\n    };\\n\\n    // If DOM is already loaded\\n    if (document.readyState === \\'complete\\' || document.readyState === \\'interactive\\') {\\n      setTimeout(insertWidget, 1);\\n    } else {\\n      // Wait for DOM to be ready\\n      document.addEventListener(\\'DOMContentLoaded\\', insertWidget);\\n    }\\n\\n    // Backup in case DOMContentLoaded doesn\\'t fire\\n    window.addEventListener(\\'load\\', insertWidget);\\n  }\\n\\n\\n      // Initialize cart from localStorage\\n      const initializeCartFromLocalStorage = () => {\\n        try {\\n          const cartData = localStorage.getItem(\"shopXtools.cart\");\\n          if (cartData) {\\n            const cart = JSON.parse(cartData);\\n            window.shopXtools.cart = cart;\\n            \\n            // If cart has buyerIdentity with countryCode, we\\'ll use it during currency initialization\\n            if (cart.buyerIdentity && cart.buyerIdentity.countryCode) {\\n              // Found country code in stored cart\\n            }\\n          } else {\\n            window.shopXtools.cart = {};\\n          }\\n        } catch (error) {\\n          console.error(\"Error initializing cart from localStorage:\", error);\\n          window.shopXtools.cart = {};\\n        }\\n      };\\n\\n      // Initialize cart before proceeding with other initializations\\n      initializeCartFromLocalStorage();\\n\\n      // Check domain before proceeding with product fetch\\n      if (!validateDomainForFreePlan()) {\\n        window.shopXtools.products = [];\\n        window.shopXtools.status = \"ready\";\\n        window.shopXtools.getProducts = () => null;\\n        return;\\n      }\\n\\n      if (!window.shopXtools || !Array.isArray(window.shopXtools.products) || window.shopXtools.products.length === 0) {\\n        // Initialize currency settings first\\n        initializeCurrencySettings().then(() => {\\n            // Get the stored country code\\n            const storedCountryCode = localStorage.getItem(\"selectedCountryCode\");\\n            if (storedCountryCode) {\\n              // Check for stored filters from other tabs/sessions\\n              let storedFilters;\\n              try {\\n                storedFilters = JSON.parse(sessionStorage.getItem(\\'fc_filters\\') || \\'{}\\');\\n              } catch (error) {\\n                console.error(\\'Error reading stored filters:\\', error);\\n                storedFilters = {};\\n              }\\n              \\n              // Initialize filtering capabilities with stored filters if they exist\\n              window.shopXtools.lastAppliedFilters = {\\n                vendor: storedFilters.vendor || null,\\n                collection: storedFilters.collection || null,\\n                productType: storedFilters.productType || null,\\n                tag: storedFilters.tag || null\\n              };\\n              \\n              // Initialize filtering capabilities\\n              window.shopXtools.getFilteredProducts = (filters = null) => {\\n                if (window.shopXtools.status !== \"ready\") {\\n                  console.warn(\"Products not yet loaded, please wait for data__products-ready event\");\\n                  return [];\\n                }\\n                \\n                // If filters provided, fetch fresh filtered products\\n                if (filters) {\\n                  const countryCode = localStorage.getItem(\"selectedCountryCode\");\\n                  if (!countryCode) {\\n                    console.error(\"No country code available for product fetch\");\\n                    return [];\\n                  }\\n                  \\n                  // Store filters for future reference\\n                  window.shopXtools.lastAppliedFilters = { \\n                    ...window.shopXtools.lastAppliedFilters,\\n                    ...filters\\n                  };\\n                  \\n                  // Fetch filtered products\\n                  window.shopXtools.fetchProductsByCountry(\\n                    countryCode,\\n                    null,\\n                    filters.vendor || null,\\n                    filters.collection || null,\\n                    filters.productType || null,\\n                    filters.tag || null\\n                  );\\n                  \\n                  // Return null to indicate async operation in progress\\n                  return null;\\n                }\\n                \\n                // If no new filters, but we have existing filters, apply client-side filtering\\n                const existingFilters = window.shopXtools.lastAppliedFilters;\\n                if (existingFilters.vendor || existingFilters.collection || existingFilters.productType || existingFilters.tag) {\\n                  // Get all products\\n                  const allProducts = window.shopXtools.productsWithPrices?.[localStorage.getItem(\"selectedCountryCode\")] || [];\\n                  \\n                  // Apply client-side filtering\\n                  return filterProductsClientSide(allProducts, existingFilters);\\n                }\\n                \\n                // Otherwise return currently loaded products\\n                return window.shopXtools.products;\\n              };\\n              \\n              window.shopXtools.areProductsFiltered = () => {\\n                const filters = window.shopXtools.lastAppliedFilters || {};\\n                return !!(filters.vendor || filters.collection || filters.productType || filters.tag);\\n              };\\n              \\n              window.shopXtools.getFilterInfo = () => {\\n                const filters = window.shopXtools.lastAppliedFilters || {};\\n                const activeFilters = {};\\n                \\n                if (filters.vendor) activeFilters.vendor = filters.vendor;\\n                if (filters.collection) activeFilters.collection = filters.collection;\\n                if (filters.productType) activeFilters.productType = filters.productType;\\n                if (filters.tag) activeFilters.tag = filters.tag;\\n                \\n                const allProductsCount = window.shopXtools.productsWithPrices?.[localStorage.getItem(\"selectedCountryCode\")]?.length || 0;\\n                const filteredProductsCount = window.shopXtools.products?.length || 0;\\n                \\n                return {\\n                  isFiltered: window.shopXtools.areProductsFiltered(),\\n                  activeFilters,\\n                  allProductsCount,\\n                  filteredProductsCount,\\n                  filterRate: allProductsCount ? Math.round((filteredProductsCount / allProductsCount) * 100) : 100\\n                };\\n              };\\n              \\n              window.shopXtools.clearFilters = () => {\\n                window.shopXtools.lastAppliedFilters = {\\n                  vendor: null,\\n                  collection: null,\\n                  productType: null,\\n                  tag: null\\n                };\\n                \\n                const countryCode = localStorage.getItem(\"selectedCountryCode\");\\n                if (!countryCode) {\\n                  console.error(\"No country code available for product fetch\");\\n                  return;\\n                }\\n                \\n                return window.shopXtools.fetchProductsByCountry(countryCode);\\n              };\\n              \\n              // Get filter settings from window.__FcCheckoutConfigs\\n              const fcConfig = window.__FcCheckoutConfigs || {};\\n              let vendor = null;\\n              let collection = null;\\n              let productType = null;\\n              let tag = null;\\n              \\n              // Check if filter settings exist in the config\\n              if (fcConfig.filterByVendor) {\\n                vendor = fcConfig.filterByVendor;\\n              }\\n              \\n              if (fcConfig.filterByCollection) {\\n                collection = fcConfig.filterByCollection;\\n              }\\n              \\n              if (fcConfig.filterByProductType) {\\n                productType = fcConfig.filterByProductType;\\n              }\\n              \\n              if (fcConfig.filterByTags) {\\n                tag = fcConfig.filterByTags;\\n              }\\n              \\n              // Update lastAppliedFilters with any settings we found\\n              window.shopXtools.lastAppliedFilters = {\\n                vendor: vendor,\\n                collection: collection,\\n                productType: productType,\\n                tag: tag\\n              };\\n              \\n              // Then fetch products with the correct country code and filters\\n              fetchProductsByCountry(\\n                storedCountryCode, \\n                null, \\n                vendor, \\n                collection, \\n                productType, \\n                tag\\n              ).catch(error => {\\n                console.error(\\'Error fetching products by country:\\', error);\\n                window.shopXtools.status = \"ready\";\\n              });\\n              \\n            } else {\\n                console.error(\\'No country code available for product fetch\\');\\n            }\\n        }).catch(error => {\\n            console.error(\\'Error during initialization:\\', error);\\n        });\\n      }\\n    \\n      window.__currencyMap = CURRENCIES;\\n\\n      // Global Pop Fallback\\n      if (typeof window !== \"undefined\") {\\n        // console.log(\"running global fallback\")\\n        window.addEventListener(\\n          \"popstate\",\\n          (event) => {\\n          const urlParams = new URLSearchParams(window.location.search)\\n          const hasVariant = urlParams.has(\"variant\")\\n          const currentPath = window.location.pathname\\n          const urlHandle = currentPath.split(\"/\").filter(Boolean).pop()\\n          const isProductPage = (\\n            Array.isArray(window.shopXtools?.products)\\n              ? window.shopXtools.products.some(({ node }) => node.handle === urlHandle)\\n              : false\\n          )\\n        \\n            // This fallback is ONLY for pages without VariantSelector (like homepage)\\n            if (isProductPage && hasVariant) {\\n              // We\\'re going back to a product page with variant\\n              //console.log(\"We\\'re going back to a product page with variant but VariantSelector isn\\'t mounted to handle restore\")\\n              event.stopImmediatePropagation()\\n              window.location.reload()\\n            }\\n          },\\n          true\\n        )\\n      }\\n      if (typeof window !== \"undefined\") {\\n        const cleanVariantData = () => {\\n          const urlParams = new URLSearchParams(window.location.search)\\n          const hasVariant = urlParams.has(\"variant\")\\n          const currentPath = window.location.pathname\\n          const urlHandle = currentPath.split(\"/\").filter(Boolean).pop()\\n\\n          const isProductPage = (\\n            Array.isArray(window.shopXtools?.products)\\n              ? window.shopXtools.products.some(({ node }) => node.handle === urlHandle)\\n              : false\\n          )\\n\\n          if (!isProductPage && hasVariant) {\\n            urlParams.delete(\"variant\")\\n            const newUrl = `${window.location.pathname}${urlParams.toString() ? \"?\" + urlParams.toString() : \"\"}`;\\n            window.history.replaceState({}, \"\", newUrl)\\n            //console.log(\"Stripped ?variant from URL via navigation:\", newUrl)\\n            try {\\n              for (let i = sessionStorage.length - 1; i >= 0; i--) {\\n                  const key = sessionStorage.key(i)\\n                  if (key && key.startsWith(\"fc_active_variant_\")) {\\n                    sessionStorage.removeItem(key)\\n                    // console.log(\"Cleared variant from sessionStorage\", key);\\n                  }\\n              }\\n            } catch (error) {\\n              console.error(\\n                \"Error clearing variant from sessionStorage:\",\\n                error\\n              )\\n            }\\n            \\n          }\\n          if (!isProductPage) {\\n            try {\\n              for (let i = sessionStorage.length - 1; i >= 0; i--) {\\n                  const key = sessionStorage.key(i)\\n                  if (key && key.startsWith(\"fc_active_variant_\")) {\\n                    sessionStorage.removeItem(key)\\n                    // console.log(\"Cleared variant from sessionStorage\", key);\\n                  }\\n              }\\n            } catch (error) {\\n              console.error(\\n                \"Error clearing variant from sessionStorage:\",\\n                error\\n              )\\n            }\\n          }\\n        }\\n        // Run on popstate (back/forward)\\n        window.addEventListener(\"popstate\", cleanVariantData)\\n\\n        // Patch pushState and replaceState to track all navigations\\n        const originalPushState = history.pushState\\n        const originalReplaceState = history.replaceState\\n\\n        history.pushState = function (...args) {\\n          originalPushState.apply(this, args)\\n          cleanVariantData()\\n        }\\n\\n        history.replaceState = function (...args) {\\n          originalReplaceState.apply(this, args)\\n          cleanVariantData()\\n        }\\n      }\\n\\n      // ============================================================\\n      // Shopify Privacy API Consent Sync\\n      // ============================================================\\n\\n      // Note: This attempts to sync Framer Cookie Banner consent to Shopify\\n      // Only works if domains are aligned (same root domain)\\n      // Falls back gracefully if not configured or domains misaligned\\n\\n      (function initializeShopifyConsentSync() {\\n        // Check if we should attempt Shopify sync\\n        document.addEventListener(\\'data__cart-updated\\', function(e) {\\n          if (!window.__FCShopifySyncInitialized && e.detail && e.detail.cart && e.detail.cart.checkoutUrl) {\\n            window.__FCShopifySyncInitialized = true;\\n\\n            // Check domain alignment\\n            if (!window.FCDomainValidator.canShareCookies()) {\\n              console.warn(\\'[FC Privacy] Shopify sync skipped: domains cannot share cookies. Run window.FCConsentManager.logShopifySync() for details.\\');\\n              return;\\n            }\\n\\n            // Check if banner is present - only sync if user has made a choice\\n            if (!window.FCConsentManager.isBannerPresent()) {\\n              return;\\n            }\\n\\n            // Load Shopify Privacy API\\n            const script = document.createElement(\\'script\\');\\n            script.src = \\'https://cdn.shopify.com/shopifycloud/consent-tracking-api/v0.1/consent-tracking-api.js\\';\\n            script.async = true;\\n\\n            script.onload = function() {\\n              // Poll for window.Shopify.customerPrivacy to be available\\n              let attempts = 0;\\n              const maxAttempts = 50; // 5 seconds max\\n\\n              const checkShopifyReady = function() {\\n                attempts++;\\n\\n                if (typeof window.Shopify !== \\'undefined\\' && typeof window.Shopify.customerPrivacy !== \\'undefined\\') {\\n                  // Shopify Customer Privacy API is ready\\n                  // Sync initial consent if banner detected\\n                  syncConsentToShopify();\\n\\n                  // Listen for consent changes via FCConsentManager (primary method)\\n                  if (window.FCConsentManager && typeof window.FCConsentManager.onConsentChange === \\'function\\') {\\n                    window.FCConsentManager.onConsentChange(function(newConsent) {\\n                      syncConsentToShopify();\\n                    });\\n                  }\\n\\n                  // Also listen for generic consent update events (backup)\\n                  window.addEventListener(\\'cookie_consent_update\\', function() {\\n                    syncConsentToShopify();\\n                  });\\n\\n                  // Also listen for dataLayer updates (backup)\\n                  if (window.dataLayer) {\\n                    const originalPush = window.dataLayer.push;\\n                    window.dataLayer.push = function() {\\n                      const result = originalPush.apply(window.dataLayer, arguments);\\n                      if (arguments[0] && typeof arguments[0] === \\'object\\') {\\n                        const data = arguments[0];\\n                        if (\\'consent\\' in data || \\'analytics_storage\\' in data || \\'ad_storage\\' in data) {\\n                          setTimeout(function() {\\n                            syncConsentToShopify();\\n                          }, 100);\\n                        }\\n                      }\\n                      return result;\\n                    };\\n                  }\\n                } else if (attempts < maxAttempts) {\\n                  // Not ready yet, try again in 100ms\\n                  setTimeout(checkShopifyReady, 100);\\n                } else {\\n                  // Timeout - Shopify didn\\'t load\\n                  console.error(\\'[FC Privacy] Timeout waiting for window.Shopify.customerPrivacy\\');\\n                }\\n              };\\n\\n              // Start checking\\n              checkShopifyReady();\\n            };\\n\\n            script.onerror = function() {\\n              console.error(\\'[FC Privacy] Failed to load Shopify Privacy API script\\');\\n            };\\n\\n            document.head.appendChild(script);\\n          }\\n        });\\n\\n        function syncConsentToShopify() {\\n          if (!window.Shopify || !window.Shopify.customerPrivacy) {\\n            return;\\n          }\\n\\n          const consent = window.FCConsentManager.getConsent();\\n\\n          // Only sync if banner detected (user made a choice)\\n          if (!consent.bannerDetected) {\\n            return;\\n          }\\n\\n          const checkoutUrl = window.shopXtools?.cart?.checkoutUrl;\\n          if (!checkoutUrl) {\\n            return;\\n          }\\n\\n          try {\\n            const checkoutDomain = new URL(checkoutUrl).hostname;\\n            const framerHostname = window.location.hostname;\\n            const rootDomain = window.FCDomainValidator.extractRootDomain(framerHostname);\\n\\n            window.Shopify.customerPrivacy.setTrackingConsent(\\n              {\\n                sale_of_data: consent.marketing,\\n                analytics: consent.analytics,\\n                marketing: consent.marketing,\\n                preferences: consent.preferences,\\n                headlessStorefront: true,\\n                checkoutRootDomain: checkoutDomain,\\n                storefrontRootDomain: rootDomain,\\n                storefrontAccessToken: fcConfigs.storefrontAccessToken\\n              },\\n              function(error) {\\n                if (error) {\\n                  console.error(\\'[FC Privacy] Error syncing consent to Shopify:\\', error);\\n                }\\n              }\\n            );\\n          } catch (error) {\\n            console.error(\\'[FC Privacy] Error syncing consent:\\', error);\\n          }\\n        }\\n      })();\\n\\n    })();\\n  </script>',customHTMLHeadStart:\"<!-- Plugin: ced618 --> <script>\\n        (function() {\\n          window.__FcCheckoutConfigs = window.__FcCheckoutConfigs || {};\\n          window.__FcCheckoutConfigs = {\\n            ...window.__FcCheckoutConfigs,\\n            checkoutLocale: \\\"en\\\",\\n            defaultCountry: \\\"United States\\\",\\n            defaultCountryCode: \\\"US\\\",\\n            defaultCurrency: \\\"USD\\\",\\n            defaultCurrencySymbol: \\\"$\\\",\\n            metaPixelId: \\\"\\\",\\n            googleAnalyticsId: \\\"\\\"\\n          };\\n\\n          // Store settings in localStorage for persistence!!\\n          const existingLocale = localStorage.getItem('checkoutLocale');\\n          if (existingLocale === null) {\\n            localStorage.setItem('checkoutLocale', 'en');\\n          }\\n          const existingCountry = localStorage.getItem('selectedCountry');\\n          if (existingCountry === null) { \\n            localStorage.setItem('selectedCountry', 'United States');\\n          }\\n          const existingCountryCode = localStorage.getItem('selectedCountryCode');\\n          if (existingCountryCode === null) {\\n            localStorage.setItem('selectedCountryCode', 'US');\\n          }\\n          const existingCurrency = localStorage.getItem('selectedCurrency');\\n          if (existingCurrency === null) {\\n            localStorage.setItem('selectedCurrency', 'USD');\\n          }\\n          const existingCurrencySymbol = localStorage.getItem('selectedCurrencySymbol');\\n          if (existingCurrencySymbol === null) {\\n            localStorage.setItem('selectedCurrencySymbol', '$');\\n          }\\n\\n          // Dispatch checkout settings update event\\n          const checkoutEvent = new CustomEvent('checkout__settings-updated', {\\n            detail: {\\n              previous: { ...window.__FcCheckoutConfigs },\\n              current: window.__FcCheckoutConfigs\\n            }\\n          });\\n          document.dispatchEvent(checkoutEvent);\\n\\n          \\n          \\n        })();</script>\",description:\"Discover natural CBD oils, gummies, ointments, and pet tinctures from Eden Holistics. Crafted for relaxation, balance, and overall wellness. Shop premium CBD today.\",favicon:\"https://framerusercontent.com/assets/vWUu0l8mM0N5qQR0rX45wOXjKw.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/GQDvEJflNkzEFn2YrQhXHorcsY.png\",title:\"Eden Holistics | Premium CBD & Wellness Products for Mind & Body\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oDACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAw3kI,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAu8D,YAAY,uKAAuK,QAAQ,sEAAsE,OAAO,0BAA0B,YAAY,sEAAsE,MAAM,mEAAmE"}