"use strict"; 'use client'; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasComputedStyleMapSupport = hasComputedStyleMapSupport; let node = null; let cachedHasComputedStyleMapSupport; /** * Detect if Element: computedStyleMap() is supported as a more performant * alternative to getComputedStyles() * Only Firefox does not have support as of Nov 2024. * https://developer.mozilla.org/en-US/docs/Web/API/Element/computedStyleMap */ function hasComputedStyleMapSupport() { if (node == null) { node = document.createElement('div'); } if (cachedHasComputedStyleMapSupport === undefined) { cachedHasComputedStyleMapSupport = node.computedStyleMap !== undefined; } return cachedHasComputedStyleMapSupport; }