@glance-networks/agent-plugin
Version:
Glance Networks Agent Plugin
1,818 lines • 341 kB
JavaScript
import { SvelteComponent, init, safe_not_equal, assign, svg_element, claim_svg_element, children, detach, attr, set_svg_attributes, insert_hydration, append_hydration, get_spread_update, noop, compute_rest_props, exclude_internal_props, text, claim_text, set_data, append_styles, construct_svelte_component, element, create_component, set_attributes, toggle_class, insert, append, mount_component, listen, group_outros, transition_out, destroy_component, check_outros, transition_in, run_all, bubble, empty, null_to_empty, set_style, compute_slots, space, create_slot, update_slot_base, get_all_dirty_from_scope, get_slot_changes, binding_callbacks, set_input_value, get_spread_object, bind, add_flush_callback } from "svelte/internal";
import { createEventDispatcher, onMount, afterUpdate } from "svelte";
const PUBLIC_VERSION = "4";
if (typeof window !== "undefined")
(window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(PUBLIC_VERSION);
const INPUT_SIZES = {
small: "small",
medium: "medium"
};
const DEFAULT_INPUT_SIZE = INPUT_SIZES.medium;
const INPUT_SHAPES = {
rounded: "rounded",
"rounded-full": "rounded-full",
"none": "none"
};
const DEFAULT_INPUT_SHAPE = INPUT_SHAPES.rounded;
const ALLOWED_INPUT_TYPES = [
"text",
"password",
"email",
"number",
"tel",
"url",
"search",
"textarea"
];
const DEFAULT_INPUT_TYPE = "text";
const ALERT_SEVERITIES = {
error: "error",
info: "info",
success: "success",
warning: "warning"
};
const ALERT_VARIANTS = {
border: "border",
soft: "soft",
tag: "tag",
open: "open",
solid: "solid"
};
const ALERT_SIZES = {
medium: "medium",
small: "small"
};
const ALERT_SHAPES = {
"rounded": "rounded",
none: "rounded-none"
};
const CLOSE_ICON_SIZE = {
[ALERT_SIZES.medium]: "medium",
[ALERT_SIZES.small]: "small"
};
const ALERT_BADGE_SIZES$1 = {
[ALERT_SIZES.small]: "small",
[ALERT_SIZES.medium]: "large"
};
function create_if_block$c(ctx) {
let title_1;
let t;
return {
c() {
title_1 = svg_element("title");
t = text(
/*title*/
ctx[0]
);
},
l(nodes) {
title_1 = claim_svg_element(nodes, "title", {});
var title_1_nodes = children(title_1);
t = claim_text(
title_1_nodes,
/*title*/
ctx[0]
);
title_1_nodes.forEach(detach);
},
m(target, anchor) {
insert_hydration(target, title_1, anchor);
append_hydration(title_1, t);
},
p(ctx2, dirty) {
if (dirty & /*title*/
1)
set_data(
t,
/*title*/
ctx2[0]
);
},
d(detaching) {
if (detaching) {
detach(title_1);
}
}
};
}
function create_fragment$f(ctx) {
let svg;
let path;
let if_block = (
/*title*/
ctx[0] && create_if_block$c(ctx)
);
let svg_levels = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 22 22" },
/*$$restProps*/
ctx[1]
];
let svg_data = {};
for (let i = 0; i < svg_levels.length; i += 1) {
svg_data = assign(svg_data, svg_levels[i]);
}
return {
c() {
svg = svg_element("svg");
if (if_block)
if_block.c();
path = svg_element("path");
this.h();
},
l(nodes) {
svg = claim_svg_element(nodes, "svg", { xmlns: true, fill: true, viewBox: true });
var svg_nodes = children(svg);
if (if_block)
if_block.l(svg_nodes);
path = claim_svg_element(svg_nodes, "path", {
stroke: true,
"stroke-linecap": true,
"stroke-linejoin": true,
"stroke-width": true,
d: true
});
children(path).forEach(detach);
svg_nodes.forEach(detach);
this.h();
},
h() {
attr(path, "stroke", "#1D4ED8");
attr(path, "stroke-linecap", "round");
attr(path, "stroke-linejoin", "round");
attr(path, "stroke-width", "1.5");
attr(path, "d", "m16.5 5.5-11 11m0-11 11 11");
set_svg_attributes(svg, svg_data);
},
m(target, anchor) {
insert_hydration(target, svg, anchor);
if (if_block)
if_block.m(svg, null);
append_hydration(svg, path);
},
p(ctx2, [dirty]) {
if (
/*title*/
ctx2[0]
) {
if (if_block) {
if_block.p(ctx2, dirty);
} else {
if_block = create_if_block$c(ctx2);
if_block.c();
if_block.m(svg, path);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 22 22" },
dirty & /*$$restProps*/
2 && /*$$restProps*/
ctx2[1]
]));
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(svg);
}
if (if_block)
if_block.d();
}
};
}
function instance$f($$self, $$props, $$invalidate) {
const omit_props_names = ["title"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { title = "" } = $$props;
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
if ("title" in $$new_props)
$$invalidate(0, title = $$new_props.title);
};
return [title, $$restProps];
}
class CloseX extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$f, create_fragment$f, safe_not_equal, { title: 0 });
}
}
function add_css$4(target) {
append_styles(target, "gds-r236mi", ":root{--alert-close-icon-color:currentColor}.gds-r236mi.gds-r236mi{box-sizing:border-box}.button-close.gds-r236mi.gds-r236mi{position:relative;margin:0px;display:inline-flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:center;justify-content:center;border-width:0px;padding:0px;text-align:center;vertical-align:middle;outline-width:0px;z-index:10;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:visible;border-radius:9999px;background-color:transparent;text-decoration-line:none}.button-close.gds-r236mi svg{height:100%;width:100%}.button-close.gds-r236mi :where(circle, ellipse, line, path, polygon, polyline, rect):is([stroke-width]){stroke:var(--alert-close-icon-color)}.button-close.gds-r236mi.gds-r236mi:hover{background-color:rgb(184 193 204 / 0.2)}.button-close.gds-r236mi.gds-r236mi:focus-within,.button-close.gds-r236mi.gds-r236mi:focus-visible,.button-close.gds-r236mi.gds-r236mi:focus{outline-style:solid;outline-width:3px;outline-offset:2px;outline-color:#019ADA}.alert-close-icon.gds-r236mi.gds-r236mi{display:flex;align-items:center;justify-content:center;text-align:center;vertical-align:middle}.button-close--small.gds-r236mi .alert-close-icon.gds-r236mi{height:1.125rem;width:1.125rem}.button-close--medium.gds-r236mi .alert-close-icon.gds-r236mi{height:1.25rem;width:1.25rem}");
}
function create_fragment$e(ctx) {
let button;
let i;
let switch_instance;
let button_class_value;
let current;
let mounted;
let dispose;
var switch_value = CloseX;
function switch_props(ctx2, dirty) {
return {
props: { preserveAspectRatio: "xMaxYMid meet" }
};
}
if (switch_value) {
switch_instance = construct_svelte_component(switch_value, switch_props());
}
let button_levels = [
{ "data-testid": "AlertCloseButton" },
/*$$restProps*/
ctx[2],
{
class: button_class_value = `button-close button-close--${/*size*/
ctx[0]} ${/*$$restProps*/
ctx[2].class || ""}`
},
{ type: "button" },
{ "aria-label": (
/*label*/
ctx[1]
) },
{ title: (
/*label*/
ctx[1]
) }
];
let button_data = {};
for (let i2 = 0; i2 < button_levels.length; i2 += 1) {
button_data = assign(button_data, button_levels[i2]);
}
return {
c() {
button = element("button");
i = element("i");
if (switch_instance)
create_component(switch_instance.$$.fragment);
attr(i, "aria-hidden", "true");
attr(i, "class", "alert-close-icon gds-r236mi");
set_attributes(button, button_data);
toggle_class(button, "gds-r236mi", true);
},
m(target, anchor) {
insert(target, button, anchor);
append(button, i);
if (switch_instance)
mount_component(switch_instance, i, null);
if (button.autofocus)
button.focus();
current = true;
if (!mounted) {
dispose = [
listen(
button,
"click",
/*click_handler*/
ctx[3]
),
listen(
button,
"mouseover",
/*mouseover_handler*/
ctx[4]
),
listen(
button,
"mouseenter",
/*mouseenter_handler*/
ctx[5]
),
listen(
button,
"mouseleave",
/*mouseleave_handler*/
ctx[6]
),
listen(
button,
"focus",
/*focus_handler*/
ctx[7]
)
];
mounted = true;
}
},
p(ctx2, [dirty]) {
if (switch_value !== (switch_value = CloseX)) {
if (switch_instance) {
group_outros();
const old_component = switch_instance;
transition_out(old_component.$$.fragment, 1, 0, () => {
destroy_component(old_component, 1);
});
check_outros();
}
if (switch_value) {
switch_instance = construct_svelte_component(switch_value, switch_props());
create_component(switch_instance.$$.fragment);
transition_in(switch_instance.$$.fragment, 1);
mount_component(switch_instance, i, null);
} else {
switch_instance = null;
}
}
set_attributes(button, button_data = get_spread_update(button_levels, [
{ "data-testid": "AlertCloseButton" },
dirty & /*$$restProps*/
4 && /*$$restProps*/
ctx2[2],
(!current || dirty & /*size, $$restProps*/
5 && button_class_value !== (button_class_value = `button-close button-close--${/*size*/
ctx2[0]} ${/*$$restProps*/
ctx2[2].class || ""}`)) && { class: button_class_value },
{ type: "button" },
(!current || dirty & /*label*/
2) && { "aria-label": (
/*label*/
ctx2[1]
) },
(!current || dirty & /*label*/
2) && { title: (
/*label*/
ctx2[1]
) }
]));
toggle_class(button, "gds-r236mi", true);
},
i(local) {
if (current)
return;
if (switch_instance)
transition_in(switch_instance.$$.fragment, local);
current = true;
},
o(local) {
if (switch_instance)
transition_out(switch_instance.$$.fragment, local);
current = false;
},
d(detaching) {
if (detaching) {
detach(button);
}
if (switch_instance)
destroy_component(switch_instance);
mounted = false;
run_all(dispose);
}
};
}
function instance$e($$self, $$props, $$invalidate) {
const omit_props_names = ["label", "size"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { label = "Close alert notification" } = $$props;
let { size = CLOSE_ICON_SIZE.medium } = $$props;
function click_handler(event) {
bubble.call(this, $$self, event);
}
function mouseover_handler(event) {
bubble.call(this, $$self, event);
}
function mouseenter_handler(event) {
bubble.call(this, $$self, event);
}
function mouseleave_handler(event) {
bubble.call(this, $$self, event);
}
function focus_handler(event) {
bubble.call(this, $$self, event);
}
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(2, $$restProps = compute_rest_props($$props, omit_props_names));
if ("label" in $$new_props)
$$invalidate(1, label = $$new_props.label);
if ("size" in $$new_props)
$$invalidate(0, size = $$new_props.size);
};
$$self.$$.update = () => {
if ($$self.$$.dirty & /*size*/
1) {
$$invalidate(0, size = CLOSE_ICON_SIZE[size] || CLOSE_ICON_SIZE.medium);
}
};
return [
size,
label,
$$restProps,
click_handler,
mouseover_handler,
mouseenter_handler,
mouseleave_handler,
focus_handler
];
}
class AlertCloseButton extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$e, create_fragment$e, safe_not_equal, { label: 1, size: 0 }, add_css$4);
}
}
function create_if_block$b(ctx) {
let title_1;
let t;
return {
c() {
title_1 = svg_element("title");
t = text(
/*title*/
ctx[0]
);
},
l(nodes) {
title_1 = claim_svg_element(nodes, "title", {});
var title_1_nodes = children(title_1);
t = claim_text(
title_1_nodes,
/*title*/
ctx[0]
);
title_1_nodes.forEach(detach);
},
m(target, anchor) {
insert_hydration(target, title_1, anchor);
append_hydration(title_1, t);
},
p(ctx2, dirty) {
if (dirty & /*title*/
1)
set_data(
t,
/*title*/
ctx2[0]
);
},
d(detaching) {
if (detaching) {
detach(title_1);
}
}
};
}
function create_fragment$d(ctx) {
let svg;
let rect;
let g;
let path0;
let defs;
let clipPath;
let path1;
let if_block = (
/*title*/
ctx[0] && create_if_block$b(ctx)
);
let svg_levels = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
/*$$restProps*/
ctx[1]
];
let svg_data = {};
for (let i = 0; i < svg_levels.length; i += 1) {
svg_data = assign(svg_data, svg_levels[i]);
}
return {
c() {
svg = svg_element("svg");
if (if_block)
if_block.c();
rect = svg_element("rect");
g = svg_element("g");
path0 = svg_element("path");
defs = svg_element("defs");
clipPath = svg_element("clipPath");
path1 = svg_element("path");
this.h();
},
l(nodes) {
svg = claim_svg_element(nodes, "svg", { xmlns: true, fill: true, viewBox: true });
var svg_nodes = children(svg);
if (if_block)
if_block.l(svg_nodes);
rect = claim_svg_element(svg_nodes, "rect", {
width: true,
height: true,
fill: true,
rx: true
});
children(rect).forEach(detach);
g = claim_svg_element(svg_nodes, "g", { "clip-path": true });
var g_nodes = children(g);
path0 = claim_svg_element(g_nodes, "path", {
stroke: true,
"stroke-linecap": true,
"stroke-linejoin": true,
"stroke-width": true,
d: true
});
children(path0).forEach(detach);
g_nodes.forEach(detach);
defs = claim_svg_element(svg_nodes, "defs", {});
var defs_nodes = children(defs);
clipPath = claim_svg_element(defs_nodes, "clipPath", { id: true });
var clipPath_nodes = children(clipPath);
path1 = claim_svg_element(clipPath_nodes, "path", { fill: true, d: true });
children(path1).forEach(detach);
clipPath_nodes.forEach(detach);
defs_nodes.forEach(detach);
svg_nodes.forEach(detach);
this.h();
},
h() {
attr(rect, "width", "24");
attr(rect, "height", "24");
attr(rect, "fill", "#FEE2E2");
attr(rect, "rx", "12");
attr(path0, "stroke", "#DC2626");
attr(path0, "stroke-linecap", "round");
attr(path0, "stroke-linejoin", "round");
attr(path0, "stroke-width", "1.8");
attr(path0, "d", "M12 8.69V12m0 3.31h-.008M3.724 12a8.276 8.276 0 1 1 16.552 0 8.276 8.276 0 0 1-16.552 0");
attr(g, "clip-path", "url(#a)");
attr(path1, "fill", "#fff");
attr(path1, "d", "M2 2h20v20H2z");
attr(clipPath, "id", "a");
set_svg_attributes(svg, svg_data);
},
m(target, anchor) {
insert_hydration(target, svg, anchor);
if (if_block)
if_block.m(svg, null);
append_hydration(svg, rect);
append_hydration(svg, g);
append_hydration(g, path0);
append_hydration(svg, defs);
append_hydration(defs, clipPath);
append_hydration(clipPath, path1);
},
p(ctx2, [dirty]) {
if (
/*title*/
ctx2[0]
) {
if (if_block) {
if_block.p(ctx2, dirty);
} else {
if_block = create_if_block$b(ctx2);
if_block.c();
if_block.m(svg, rect);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
dirty & /*$$restProps*/
2 && /*$$restProps*/
ctx2[1]
]));
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(svg);
}
if (if_block)
if_block.d();
}
};
}
function instance$d($$self, $$props, $$invalidate) {
const omit_props_names = ["title"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { title = "" } = $$props;
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
if ("title" in $$new_props)
$$invalidate(0, title = $$new_props.title);
};
return [title, $$restProps];
}
class Alert_error_filled extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$d, create_fragment$d, safe_not_equal, { title: 0 });
}
}
function create_if_block$a(ctx) {
let title_1;
let t;
return {
c() {
title_1 = svg_element("title");
t = text(
/*title*/
ctx[0]
);
},
l(nodes) {
title_1 = claim_svg_element(nodes, "title", {});
var title_1_nodes = children(title_1);
t = claim_text(
title_1_nodes,
/*title*/
ctx[0]
);
title_1_nodes.forEach(detach);
},
m(target, anchor) {
insert_hydration(target, title_1, anchor);
append_hydration(title_1, t);
},
p(ctx2, dirty) {
if (dirty & /*title*/
1)
set_data(
t,
/*title*/
ctx2[0]
);
},
d(detaching) {
if (detaching) {
detach(title_1);
}
}
};
}
function create_fragment$c(ctx) {
let svg;
let rect;
let path;
let if_block = (
/*title*/
ctx[0] && create_if_block$a(ctx)
);
let svg_levels = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
/*$$restProps*/
ctx[1]
];
let svg_data = {};
for (let i = 0; i < svg_levels.length; i += 1) {
svg_data = assign(svg_data, svg_levels[i]);
}
return {
c() {
svg = svg_element("svg");
if (if_block)
if_block.c();
rect = svg_element("rect");
path = svg_element("path");
this.h();
},
l(nodes) {
svg = claim_svg_element(nodes, "svg", { xmlns: true, fill: true, viewBox: true });
var svg_nodes = children(svg);
if (if_block)
if_block.l(svg_nodes);
rect = claim_svg_element(svg_nodes, "rect", {
width: true,
height: true,
fill: true,
rx: true
});
children(rect).forEach(detach);
path = claim_svg_element(svg_nodes, "path", {
stroke: true,
"stroke-linecap": true,
"stroke-linejoin": true,
"stroke-width": true,
d: true
});
children(path).forEach(detach);
svg_nodes.forEach(detach);
this.h();
},
h() {
attr(rect, "width", "24");
attr(rect, "height", "24");
attr(rect, "fill", "#FFEDDA");
attr(rect, "rx", "12");
attr(path, "stroke", "#A34909");
attr(path, "stroke-linecap", "round");
attr(path, "stroke-linejoin", "round");
attr(path, "stroke-width", "1.8");
attr(path, "d", "M12 9.63v3.215m0 3.214h.008M10.646 5.5l-6.71 11.361a1.625 1.625 0 0 0 .569 2.189c.238.142.51.219.786.222h13.418c.277-.003.548-.08.786-.222s.436-.346.573-.59a1.63 1.63 0 0 0-.005-1.599L13.356 5.501a1.6 1.6 0 0 0-.578-.567 1.567 1.567 0 0 0-2.131.567");
set_svg_attributes(svg, svg_data);
},
m(target, anchor) {
insert_hydration(target, svg, anchor);
if (if_block)
if_block.m(svg, null);
append_hydration(svg, rect);
append_hydration(svg, path);
},
p(ctx2, [dirty]) {
if (
/*title*/
ctx2[0]
) {
if (if_block) {
if_block.p(ctx2, dirty);
} else {
if_block = create_if_block$a(ctx2);
if_block.c();
if_block.m(svg, rect);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
dirty & /*$$restProps*/
2 && /*$$restProps*/
ctx2[1]
]));
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(svg);
}
if (if_block)
if_block.d();
}
};
}
function instance$c($$self, $$props, $$invalidate) {
const omit_props_names = ["title"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { title = "" } = $$props;
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
if ("title" in $$new_props)
$$invalidate(0, title = $$new_props.title);
};
return [title, $$restProps];
}
class Alert_triangle_filled extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$c, create_fragment$c, safe_not_equal, { title: 0 });
}
}
function create_if_block$9(ctx) {
let title_1;
let t;
return {
c() {
title_1 = svg_element("title");
t = text(
/*title*/
ctx[0]
);
},
l(nodes) {
title_1 = claim_svg_element(nodes, "title", {});
var title_1_nodes = children(title_1);
t = claim_text(
title_1_nodes,
/*title*/
ctx[0]
);
title_1_nodes.forEach(detach);
},
m(target, anchor) {
insert_hydration(target, title_1, anchor);
append_hydration(title_1, t);
},
p(ctx2, dirty) {
if (dirty & /*title*/
1)
set_data(
t,
/*title*/
ctx2[0]
);
},
d(detaching) {
if (detaching) {
detach(title_1);
}
}
};
}
function create_fragment$b(ctx) {
let svg;
let rect;
let g;
let path0;
let defs;
let clipPath;
let path1;
let if_block = (
/*title*/
ctx[0] && create_if_block$9(ctx)
);
let svg_levels = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
/*$$restProps*/
ctx[1]
];
let svg_data = {};
for (let i = 0; i < svg_levels.length; i += 1) {
svg_data = assign(svg_data, svg_levels[i]);
}
return {
c() {
svg = svg_element("svg");
if (if_block)
if_block.c();
rect = svg_element("rect");
g = svg_element("g");
path0 = svg_element("path");
defs = svg_element("defs");
clipPath = svg_element("clipPath");
path1 = svg_element("path");
this.h();
},
l(nodes) {
svg = claim_svg_element(nodes, "svg", { xmlns: true, fill: true, viewBox: true });
var svg_nodes = children(svg);
if (if_block)
if_block.l(svg_nodes);
rect = claim_svg_element(svg_nodes, "rect", {
width: true,
height: true,
fill: true,
rx: true
});
children(rect).forEach(detach);
g = claim_svg_element(svg_nodes, "g", { "clip-path": true });
var g_nodes = children(g);
path0 = claim_svg_element(g_nodes, "path", {
stroke: true,
"stroke-linecap": true,
"stroke-linejoin": true,
"stroke-width": true,
d: true
});
children(path0).forEach(detach);
g_nodes.forEach(detach);
defs = claim_svg_element(svg_nodes, "defs", {});
var defs_nodes = children(defs);
clipPath = claim_svg_element(defs_nodes, "clipPath", { id: true });
var clipPath_nodes = children(clipPath);
path1 = claim_svg_element(clipPath_nodes, "path", { fill: true, d: true });
children(path1).forEach(detach);
clipPath_nodes.forEach(detach);
defs_nodes.forEach(detach);
svg_nodes.forEach(detach);
this.h();
},
h() {
attr(rect, "width", "24");
attr(rect, "height", "24");
attr(rect, "fill", "#DBEAFE");
attr(rect, "rx", "12");
attr(path0, "stroke", "#1D4ED8");
attr(path0, "stroke-linecap", "round");
attr(path0, "stroke-linejoin", "round");
attr(path0, "stroke-width", "1.8");
attr(path0, "d", "M12 15.31V12m0-3.31h.008M20.276 12a8.276 8.276 0 1 1-16.552 0 8.276 8.276 0 0 1 16.552 0");
attr(g, "clip-path", "url(#a)");
attr(path1, "fill", "#fff");
attr(path1, "d", "M2 2h20v20H2z");
attr(clipPath, "id", "a");
set_svg_attributes(svg, svg_data);
},
m(target, anchor) {
insert_hydration(target, svg, anchor);
if (if_block)
if_block.m(svg, null);
append_hydration(svg, rect);
append_hydration(svg, g);
append_hydration(g, path0);
append_hydration(svg, defs);
append_hydration(defs, clipPath);
append_hydration(clipPath, path1);
},
p(ctx2, [dirty]) {
if (
/*title*/
ctx2[0]
) {
if (if_block) {
if_block.p(ctx2, dirty);
} else {
if_block = create_if_block$9(ctx2);
if_block.c();
if_block.m(svg, rect);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
dirty & /*$$restProps*/
2 && /*$$restProps*/
ctx2[1]
]));
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(svg);
}
if (if_block)
if_block.d();
}
};
}
function instance$b($$self, $$props, $$invalidate) {
const omit_props_names = ["title"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { title = "" } = $$props;
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
if ("title" in $$new_props)
$$invalidate(0, title = $$new_props.title);
};
return [title, $$restProps];
}
class Alert_info_filled extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$b, create_fragment$b, safe_not_equal, { title: 0 });
}
}
function create_if_block$8(ctx) {
let title_1;
let t;
return {
c() {
title_1 = svg_element("title");
t = text(
/*title*/
ctx[0]
);
},
l(nodes) {
title_1 = claim_svg_element(nodes, "title", {});
var title_1_nodes = children(title_1);
t = claim_text(
title_1_nodes,
/*title*/
ctx[0]
);
title_1_nodes.forEach(detach);
},
m(target, anchor) {
insert_hydration(target, title_1, anchor);
append_hydration(title_1, t);
},
p(ctx2, dirty) {
if (dirty & /*title*/
1)
set_data(
t,
/*title*/
ctx2[0]
);
},
d(detaching) {
if (detaching) {
detach(title_1);
}
}
};
}
function create_fragment$a(ctx) {
let svg;
let rect;
let path;
let if_block = (
/*title*/
ctx[0] && create_if_block$8(ctx)
);
let svg_levels = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
/*$$restProps*/
ctx[1]
];
let svg_data = {};
for (let i = 0; i < svg_levels.length; i += 1) {
svg_data = assign(svg_data, svg_levels[i]);
}
return {
c() {
svg = svg_element("svg");
if (if_block)
if_block.c();
rect = svg_element("rect");
path = svg_element("path");
this.h();
},
l(nodes) {
svg = claim_svg_element(nodes, "svg", { xmlns: true, fill: true, viewBox: true });
var svg_nodes = children(svg);
if (if_block)
if_block.l(svg_nodes);
rect = claim_svg_element(svg_nodes, "rect", {
width: true,
height: true,
fill: true,
rx: true
});
children(rect).forEach(detach);
path = claim_svg_element(svg_nodes, "path", {
stroke: true,
"stroke-linecap": true,
"stroke-linejoin": true,
"stroke-width": true,
d: true
});
children(path).forEach(detach);
svg_nodes.forEach(detach);
this.h();
},
h() {
attr(rect, "width", "24");
attr(rect, "height", "24");
attr(rect, "fill", "#DCFCE7");
attr(rect, "rx", "12");
attr(path, "stroke", "#15803D");
attr(path, "stroke-linecap", "round");
attr(path, "stroke-linejoin", "round");
attr(path, "stroke-width", "1.8");
attr(path, "d", "M14.793 10.207 11 14l-1.293-1.293M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16");
set_svg_attributes(svg, svg_data);
},
m(target, anchor) {
insert_hydration(target, svg, anchor);
if (if_block)
if_block.m(svg, null);
append_hydration(svg, rect);
append_hydration(svg, path);
},
p(ctx2, [dirty]) {
if (
/*title*/
ctx2[0]
) {
if (if_block) {
if_block.p(ctx2, dirty);
} else {
if_block = create_if_block$8(ctx2);
if_block.c();
if_block.m(svg, rect);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
dirty & /*$$restProps*/
2 && /*$$restProps*/
ctx2[1]
]));
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(svg);
}
if (if_block)
if_block.d();
}
};
}
function instance$a($$self, $$props, $$invalidate) {
const omit_props_names = ["title"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { title = "" } = $$props;
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
if ("title" in $$new_props)
$$invalidate(0, title = $$new_props.title);
};
return [title, $$restProps];
}
class Alert_success_filled extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$a, create_fragment$a, safe_not_equal, { title: 0 });
}
}
function create_if_block$7(ctx) {
let title_1;
let t;
return {
c() {
title_1 = svg_element("title");
t = text(
/*title*/
ctx[0]
);
},
l(nodes) {
title_1 = claim_svg_element(nodes, "title", {});
var title_1_nodes = children(title_1);
t = claim_text(
title_1_nodes,
/*title*/
ctx[0]
);
title_1_nodes.forEach(detach);
},
m(target, anchor) {
insert_hydration(target, title_1, anchor);
append_hydration(title_1, t);
},
p(ctx2, dirty) {
if (dirty & /*title*/
1)
set_data(
t,
/*title*/
ctx2[0]
);
},
d(detaching) {
if (detaching) {
detach(title_1);
}
}
};
}
function create_fragment$9(ctx) {
let svg;
let g;
let path0;
let defs;
let clipPath;
let path1;
let if_block = (
/*title*/
ctx[0] && create_if_block$7(ctx)
);
let svg_levels = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
/*$$restProps*/
ctx[1]
];
let svg_data = {};
for (let i = 0; i < svg_levels.length; i += 1) {
svg_data = assign(svg_data, svg_levels[i]);
}
return {
c() {
svg = svg_element("svg");
if (if_block)
if_block.c();
g = svg_element("g");
path0 = svg_element("path");
defs = svg_element("defs");
clipPath = svg_element("clipPath");
path1 = svg_element("path");
this.h();
},
l(nodes) {
svg = claim_svg_element(nodes, "svg", { xmlns: true, fill: true, viewBox: true });
var svg_nodes = children(svg);
if (if_block)
if_block.l(svg_nodes);
g = claim_svg_element(svg_nodes, "g", { "clip-path": true });
var g_nodes = children(g);
path0 = claim_svg_element(g_nodes, "path", {
stroke: true,
"stroke-linecap": true,
"stroke-linejoin": true,
"stroke-width": true,
d: true
});
children(path0).forEach(detach);
g_nodes.forEach(detach);
defs = claim_svg_element(svg_nodes, "defs", {});
var defs_nodes = children(defs);
clipPath = claim_svg_element(defs_nodes, "clipPath", { id: true });
var clipPath_nodes = children(clipPath);
path1 = claim_svg_element(clipPath_nodes, "path", { fill: true, d: true });
children(path1).forEach(detach);
clipPath_nodes.forEach(detach);
defs_nodes.forEach(detach);
svg_nodes.forEach(detach);
this.h();
},
h() {
attr(path0, "stroke", "#2563EB");
attr(path0, "stroke-linecap", "round");
attr(path0, "stroke-linejoin", "round");
attr(path0, "stroke-width", "1.8");
attr(path0, "d", "M12 15.641V12m0-3.641h.01M21.102 12a9.103 9.103 0 1 1-18.206 0 9.103 9.103 0 0 1 18.206 0");
attr(g, "clip-path", "url(#a)");
attr(path1, "fill", "#fff");
attr(path1, "d", "M1 1h22v22H1z");
attr(clipPath, "id", "a");
set_svg_attributes(svg, svg_data);
},
m(target, anchor) {
insert_hydration(target, svg, anchor);
if (if_block)
if_block.m(svg, null);
append_hydration(svg, g);
append_hydration(g, path0);
append_hydration(svg, defs);
append_hydration(defs, clipPath);
append_hydration(clipPath, path1);
},
p(ctx2, [dirty]) {
if (
/*title*/
ctx2[0]
) {
if (if_block) {
if_block.p(ctx2, dirty);
} else {
if_block = create_if_block$7(ctx2);
if_block.c();
if_block.m(svg, g);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
dirty & /*$$restProps*/
2 && /*$$restProps*/
ctx2[1]
]));
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(svg);
}
if (if_block)
if_block.d();
}
};
}
function instance$9($$self, $$props, $$invalidate) {
const omit_props_names = ["title"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { title = "" } = $$props;
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
if ("title" in $$new_props)
$$invalidate(0, title = $$new_props.title);
};
return [title, $$restProps];
}
class AlertInfo extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$9, create_fragment$9, safe_not_equal, { title: 0 });
}
}
function create_if_block$6(ctx) {
let title_1;
let t;
return {
c() {
title_1 = svg_element("title");
t = text(
/*title*/
ctx[0]
);
},
l(nodes) {
title_1 = claim_svg_element(nodes, "title", {});
var title_1_nodes = children(title_1);
t = claim_text(
title_1_nodes,
/*title*/
ctx[0]
);
title_1_nodes.forEach(detach);
},
m(target, anchor) {
insert_hydration(target, title_1, anchor);
append_hydration(title_1, t);
},
p(ctx2, dirty) {
if (dirty & /*title*/
1)
set_data(
t,
/*title*/
ctx2[0]
);
},
d(detaching) {
if (detaching) {
detach(title_1);
}
}
};
}
function create_fragment$8(ctx) {
let svg;
let path;
let if_block = (
/*title*/
ctx[0] && create_if_block$6(ctx)
);
let svg_levels = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
/*$$restProps*/
ctx[1]
];
let svg_data = {};
for (let i = 0; i < svg_levels.length; i += 1) {
svg_data = assign(svg_data, svg_levels[i]);
}
return {
c() {
svg = svg_element("svg");
if (if_block)
if_block.c();
path = svg_element("path");
this.h();
},
l(nodes) {
svg = claim_svg_element(nodes, "svg", { xmlns: true, fill: true, viewBox: true });
var svg_nodes = children(svg);
if (if_block)
if_block.l(svg_nodes);
path = claim_svg_element(svg_nodes, "path", {
stroke: true,
"stroke-linecap": true,
"stroke-linejoin": true,
"stroke-width": true,
d: true
});
children(path).forEach(detach);
svg_nodes.forEach(detach);
this.h();
},
h() {
attr(path, "stroke", "#E27303");
attr(path, "stroke-linecap", "round");
attr(path, "stroke-linejoin", "round");
attr(path, "stroke-width", "1.8");
attr(path, "d", "M12 9.394v3.535m0 3.536h.009M10.51 4.85 3.13 17.349a1.79 1.79 0 0 0-.005 1.759c.15.268.368.491.63.648.263.157.56.24.865.244h14.76c.304-.003.602-.087.865-.244.262-.157.48-.38.63-.648a1.79 1.79 0 0 0-.005-1.76L13.49 4.852a1.75 1.75 0 0 0-.635-.624 1.72 1.72 0 0 0-1.71 0c-.26.15-.48.364-.635.624");
set_svg_attributes(svg, svg_data);
},
m(target, anchor) {
insert_hydration(target, svg, anchor);
if (if_block)
if_block.m(svg, null);
append_hydration(svg, path);
},
p(ctx2, [dirty]) {
if (
/*title*/
ctx2[0]
) {
if (if_block) {
if_block.p(ctx2, dirty);
} else {
if_block = create_if_block$6(ctx2);
if_block.c();
if_block.m(svg, path);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
dirty & /*$$restProps*/
2 && /*$$restProps*/
ctx2[1]
]));
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(svg);
}
if (if_block)
if_block.d();
}
};
}
function instance$8($$self, $$props, $$invalidate) {
const omit_props_names = ["title"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { title = "" } = $$props;
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
if ("title" in $$new_props)
$$invalidate(0, title = $$new_props.title);
};
return [title, $$restProps];
}
class AlertTriangle extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$8, create_fragment$8, safe_not_equal, { title: 0 });
}
}
function create_if_block$5(ctx) {
let title_1;
let t;
return {
c() {
title_1 = svg_element("title");
t = text(
/*title*/
ctx[0]
);
},
l(nodes) {
title_1 = claim_svg_element(nodes, "title", {});
var title_1_nodes = children(title_1);
t = claim_text(
title_1_nodes,
/*title*/
ctx[0]
);
title_1_nodes.forEach(detach);
},
m(target, anchor) {
insert_hydration(target, title_1, anchor);
append_hydration(title_1, t);
},
p(ctx2, dirty) {
if (dirty & /*title*/
1)
set_data(
t,
/*title*/
ctx2[0]
);
},
d(detaching) {
if (detaching) {
detach(title_1);
}
}
};
}
function create_fragment$7(ctx) {
let svg;
let g;
let path0;
let defs;
let clipPath;
let path1;
let if_block = (
/*title*/
ctx[0] && create_if_block$5(ctx)
);
let svg_levels = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
/*$$restProps*/
ctx[1]
];
let svg_data = {};
for (let i = 0; i < svg_levels.length; i += 1) {
svg_data = assign(svg_data, svg_levels[i]);
}
return {
c() {
svg = svg_element("svg");
if (if_block)
if_block.c();
g = svg_element("g");
path0 = svg_element("path");
defs = svg_element("defs");
clipPath = svg_element("clipPath");
path1 = svg_element("path");
this.h();
},
l(nodes) {
svg = claim_svg_element(nodes, "svg", { xmlns: true, fill: true, viewBox: true });
var svg_nodes = children(svg);
if (if_block)
if_block.l(svg_nodes);
g = claim_svg_element(svg_nodes, "g", { "clip-path": true });
var g_nodes = children(g);
path0 = claim_svg_element(g_nodes, "path", {
stroke: true,
"stroke-linecap": true,
"stroke-linejoin": true,
"stroke-width": true,
d: true
});
children(path0).forEach(detach);
g_nodes.forEach(detach);
defs = claim_svg_element(svg_nodes, "defs", {});
var defs_nodes = children(defs);
clipPath = claim_svg_element(defs_nodes, "clipPath", { id: true });
var clipPath_nodes = children(clipPath);
path1 = claim_svg_element(clipPath_nodes, "path", { fill: true, d: true });
children(path1).forEach(detach);
clipPath_nodes.forEach(detach);
defs_nodes.forEach(detach);
svg_nodes.forEach(detach);
this.h();
},
h() {
attr(path0, "stroke", "#B91C1C");
attr(path0, "stroke-linecap", "round");
attr(path0, "stroke-linejoin", "round");
attr(path0, "stroke-width", "1.8");
attr(path0, "d", "M12 8.359v3.64m0 3.642h-.01M2.898 12a9.103 9.103 0 1 1 18.206 0 9.103 9.103 0 0 1-18.206 0");
attr(g, "clip-path", "url(#a)");
attr(path1, "fill", "#fff");
attr(path1, "d", "M1 1h22v22H1z");
attr(clipPath, "id", "a");
set_svg_attributes(svg, svg_data);
},
m(target, anchor) {
insert_hydration(target, svg, anchor);
if (if_block)
if_block.m(svg, null);
append_hydration(svg, g);
append_hydration(g, path0);
append_hydration(svg, defs);
append_hydration(defs, clipPath);
append_hydration(clipPath, path1);
},
p(ctx2, [dirty]) {
if (
/*title*/
ctx2[0]
) {
if (if_block) {
if_block.p(ctx2, dirty);
} else {
if_block = create_if_block$5(ctx2);
if_block.c();
if_block.m(svg, g);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
dirty & /*$$restProps*/
2 && /*$$restProps*/
ctx2[1]
]));
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(svg);
}
if (if_block)
if_block.d();
}
};
}
function instance$7($$self, $$props, $$invalidate) {
const omit_props_names = ["title"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { title = "" } = $$props;
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
if ("title" in $$new_props)
$$invalidate(0, title = $$new_props.title);
};
return [title, $$restProps];
}
class AlertError extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$7, create_fragment$7, safe_not_equal, { title: 0 });
}
}
function create_if_block$4(ctx) {
let title_1;
let t;
return {
c() {
title_1 = svg_element("title");
t = text(
/*title*/
ctx[0]
);
},
l(nodes) {
title_1 = claim_svg_element(nodes, "title", {});
var title_1_nodes = children(title_1);
t = claim_text(
title_1_nodes,
/*title*/
ctx[0]
);
title_1_nodes.forEach(detach);
},
m(target, anchor) {
insert_hydration(target, title_1, anchor);
append_hydration(title_1, t);
},
p(ctx2, dirty) {
if (dirty & /*title*/
1)
set_data(
t,
/*title*/
ctx2[0]
);
},
d(detaching) {
if (detaching) {
detach(title_1);
}
}
};
}
function create_fragment$6(ctx) {
let svg;
let path;
let if_block = (
/*title*/
ctx[0] && create_if_block$4(ctx)
);
let svg_levels = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
/*$$restProps*/
ctx[1]
];
let svg_data = {};
for (let i = 0; i < svg_levels.length; i += 1) {
svg_data = assign(svg_data, svg_levels[i]);
}
return {
c() {
svg = svg_element("svg");
if (if_block)
if_block.c();
path = svg_element("path");
this.h();
},
l(nodes) {
svg = claim_svg_element(nodes, "svg", { xmlns: true, fill: true, viewBox: true });
var svg_nodes = children(svg);
if (if_block)
if_block.l(svg_nodes);
path = claim_svg_element(svg_nodes, "path", {
stroke: true,
"stroke-linecap": true,
"stroke-linejoin": true,
"stroke-width": true,
d: true
});
children(path).forEach(detach);
svg_nodes.forEach(detach);
this.h();
},
h() {
attr(path, "stroke", "#16A34A");
attr(path, "stroke-linecap", "round");
attr(path, "stroke-linejoin", "round");
attr(path, "stroke-width", "1.8");
attr(path, "d", "M15.072 10.028 10.9 14.2l-1.422-1.422M12 3.2a8.8 8.8 0 1 0 0 17.6 8.8 8.8 0 0 0 0-17.6");
set_svg_attributes(svg, svg_data);
},
m(target, anchor) {
insert_hydration(target, svg, anchor);
if (if_block)
if_block.m(svg, null);
append_hydration(svg, path);
},
p(ctx2, [dirty]) {
if (
/*title*/
ctx2[0]
) {
if (if_block) {
if_block.p(ctx2, dirty);
} else {
if_block = create_if_block$4(ctx2);
if_block.c();
if_block.m(svg, path);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [
{ xmlns: "http://www.w3.org/2000/svg" },
{ fill: "none" },
{ viewBox: "0 0 24 24" },
dirty & /*$$restProps*/
2 && /*$$restProps*/
ctx2[1]
]));
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(svg);
}
if (if_block)
if_block.d();
}
};
}
function instance$6($$self, $$props, $$invalidate) {
const omit_props_names = ["title"];
let $$restProps = compute_rest_props($$props, omit_props_names);
let { title = "" } = $$props;
$$self.$$set = ($$new_props) => {
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
if ("title" in $$new_props)
$$invalidate(0, title = $$new_props.title);
};
return [title, $$restProps];
}
class AlertSuccess extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$6, create_fragment$6, safe_not_equal, { title: 0 });
}
}
function getDefaultExportFromCjs(x2) {
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
}
var resolveConfig$3 = {};
var resolveConfig$2 = {};
var negateValue = {};
(function(exports) {
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return negateValue2;
}
});
function negateValue2(value) {
value = `${value}`;
if (value === "0") {
return "0";
}
if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(value)) {
return value.replace(/^[+-]?/, (sign) => sign === "-" ? "" : "-");
}
le