import { add_locations, attribute_effect, check_target, each, element, hmr, index, legacy_api, prop, rest_props, snippet, validate_dynamic_element_tag } from "./chunk-3SEKS52A.js"; import { append, comment, from_svg } from "./chunk-YWNCLLEK.js"; import { FILENAME, HMR, add_svelte_meta, child, first_child, get2 as get, getContext, noop, pop, push, reset, setContext, sibling, tag, to_array, user_derived } from "./chunk-IFIY7NGJ.js"; // node_modules/@lucide/svelte/dist/defaultAttributes.js var defaultAttributes = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": 2, "stroke-linecap": "round", "stroke-linejoin": "round" }; var defaultAttributes_default = defaultAttributes; // node_modules/@lucide/svelte/dist/context.js var LucideContext = Symbol("lucide-context"); var setLucideProps = (globalProps) => setContext(LucideContext, globalProps); var getLucideContext = () => getContext(LucideContext); // node_modules/@lucide/svelte/dist/utils/hasA11yProp.js var hasA11yProp = (props) => { for (const prop2 in props) { if (prop2.startsWith("aria-") || prop2 === "role" || prop2 === "title") { return true; } } return false; }; // node_modules/@lucide/svelte/dist/Icon.svelte Icon[FILENAME] = "node_modules/@lucide/svelte/dist/Icon.svelte"; var rest_excludes = /* @__PURE__ */ new Set([ "$$slots", "$$events", "$$legacy", "name", "color", "size", "strokeWidth", "absoluteStrokeWidth", "iconNode", "children" ]); var root = add_locations(from_svg(``), Icon[FILENAME], [[9, 0]]); function Icon($$anchor, $$props) { check_target(new.target); push($$props, true, Icon); const globalProps = getLucideContext() ?? {}; const color = prop($$props, "color", 19, () => globalProps.color ?? "currentColor"), size = prop($$props, "size", 19, () => globalProps.size ?? 24), strokeWidth = prop($$props, "strokeWidth", 19, () => globalProps.strokeWidth ?? 2), absoluteStrokeWidth = prop($$props, "absoluteStrokeWidth", 19, () => globalProps.absoluteStrokeWidth ?? false), iconNode = prop($$props, "iconNode", 19, () => []), props = rest_props($$props, rest_excludes, "props"); const calculatedStrokeWidth = tag( user_derived(() => absoluteStrokeWidth() ? Number(strokeWidth()) * 24 / Number(size()) : strokeWidth()), "calculatedStrokeWidth" ); var $$exports = { ...legacy_api() }; var svg = root(); attribute_effect( svg, ($0) => ({ ...defaultAttributes_default, ...$0, ...props, width: size(), height: size(), stroke: color(), "stroke-width": get(calculatedStrokeWidth), class: [ "lucide-icon lucide", globalProps.class, $$props.name && `lucide-${$$props.name}`, $$props.class ] }), [ () => !$$props.children && !hasA11yProp(props) && { "aria-hidden": "true" } ] ); var node = child(svg); add_svelte_meta( () => each(node, 17, iconNode, index, ($$anchor2, $$item) => { var $$array = user_derived(() => to_array(get($$item), 2)); let tag2 = () => get($$array)[0]; tag2(); let attrs = () => get($$array)[1]; attrs(); var fragment = comment(); var node_1 = first_child(fragment); { validate_dynamic_element_tag(tag2); element( node_1, tag2, true, ($$element, $$anchor3) => { attribute_effect($$element, () => ({ ...attrs() })); }, void 0, [20, 4] ); } append($$anchor2, fragment); }), "each", Icon, 19, 2 ); var node_2 = sibling(node); add_svelte_meta(() => snippet(node_2, () => $$props.children ?? noop), "render", Icon, 25, 2); reset(svg); append($$anchor, svg); return pop($$exports); } if (import.meta.hot) { Icon = hmr(Icon); import.meta.hot.accept((module) => { Icon[HMR].update(module.default); }); } var Icon_default = Icon; export { defaultAttributes_default, setLucideProps, getLucideContext, Icon_default }; /*! Bundled license information: @lucide/svelte/dist/defaultAttributes.js: @lucide/svelte/dist/context.js: @lucide/svelte/dist/utils/hasA11yProp.js: (** * @file * @license @lucide/svelte v1.28.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. *) */ //# sourceMappingURL=chunk-FDPVFO5P.js.map