@syzy/apphost 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,412 @@
1
+ import { i as O } from "./_virtual___federation_fn_import-XZCKozko.js";
2
+ function it(t) {
3
+ var e, a, o = "";
4
+ if (typeof t == "string" || typeof t == "number") o += t;
5
+ else if (typeof t == "object") if (Array.isArray(t)) {
6
+ var r = t.length;
7
+ for (e = 0; e < r; e++) t[e] && (a = it(t[e])) && (o && (o += " "), o += a);
8
+ } else for (a in t) t[a] && (o && (o += " "), o += a);
9
+ return o;
10
+ }
11
+ function R() {
12
+ for (var t, e, a = 0, o = "", r = arguments.length; a < r; a++) (t = arguments[a]) && (e = it(t)) && (o && (o += " "), o += e);
13
+ return o;
14
+ }
15
+ function mt(t) {
16
+ if (typeof document > "u") return;
17
+ let e = document.head || document.getElementsByTagName("head")[0], a = document.createElement("style");
18
+ a.type = "text/css", e.firstChild ? e.insertBefore(a, e.firstChild) : e.appendChild(a), a.styleSheet ? a.styleSheet.cssText = t : a.appendChild(document.createTextNode(t));
19
+ }
20
+ mt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
21
+ `);
22
+ const { isValidElement: _t } = await O("react");
23
+ var B = (t) => typeof t == "number" && !isNaN(t), A = (t) => typeof t == "string", $ = (t) => typeof t == "function", gt = (t) => A(t) || B(t), Z = (t) => A(t) || $(t) ? t : null, vt = (t, e) => t === !1 || B(t) && t > 0 ? t : e, G = (t) => _t(t) || A(t) || $(t) || B(t);
24
+ const J = await O("react"), { useEffect: bt, useLayoutEffect: Tt, useRef: ht } = J;
25
+ function xt(t, e, a = 300) {
26
+ let { scrollHeight: o, style: r } = t;
27
+ requestAnimationFrame(() => {
28
+ r.minHeight = "initial", r.height = o + "px", r.transition = `all ${a}ms`, requestAnimationFrame(() => {
29
+ r.height = "0", r.padding = "0", r.margin = "0", setTimeout(e, a);
30
+ });
31
+ });
32
+ }
33
+ function H({ enter: t, exit: e, appendPosition: a = !1, collapse: o = !0, collapseDuration: r = 300 }) {
34
+ return function({ children: l, position: s, preventExitTransition: d, done: f, nodeRef: u, isIn: _, playToast: h }) {
35
+ let k = a ? `${t}--${s}` : t, x = a ? `${e}--${s}` : e, E = ht(0);
36
+ return Tt(() => {
37
+ let b = u.current, m = k.split(" "), p = (n) => {
38
+ n.target === u.current && (h(), b.removeEventListener("animationend", p), b.removeEventListener("animationcancel", p), E.current === 0 && n.type !== "animationcancel" && b.classList.remove(...m));
39
+ };
40
+ b.classList.add(...m), b.addEventListener("animationend", p), b.addEventListener("animationcancel", p);
41
+ }, []), bt(() => {
42
+ let b = u.current, m = () => {
43
+ b.removeEventListener("animationend", m), o ? xt(b, f, r) : f();
44
+ };
45
+ _ || (d ? m() : (E.current = 1, b.className += ` ${x}`, b.addEventListener("animationend", m)));
46
+ }, [_]), J.createElement(J.Fragment, null, l);
47
+ };
48
+ }
49
+ const { cloneElement: kt, isValidElement: wt } = await O("react");
50
+ function st(t, e) {
51
+ return { content: lt(t.content, t.props), containerId: t.props.containerId, id: t.props.toastId, theme: t.props.theme, type: t.props.type, data: t.props.data || {}, isLoading: t.props.isLoading, icon: t.props.icon, reason: t.removalReason, status: e };
52
+ }
53
+ function lt(t, e, a = !1) {
54
+ return wt(t) && !A(t.type) ? kt(t, { closeToast: e.closeToast, toastProps: e, data: e.data, isPaused: a }) : $(t) ? t({ closeToast: e.closeToast, toastProps: e, data: e.data, isPaused: a }) : t;
55
+ }
56
+ const j = await O("react");
57
+ function Et({ closeToast: t, theme: e, ariaLabel: a = "close" }) {
58
+ return j.createElement("button", { className: `Toastify__close-button Toastify__close-button--${e}`, type: "button", onClick: (o) => {
59
+ o.stopPropagation(), t(!0);
60
+ }, "aria-label": a }, j.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, j.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
61
+ }
62
+ const W = await O("react");
63
+ function It({ delay: t, isRunning: e, closeToast: a, type: o = "default", hide: r, className: l, controlledProgress: s, progress: d, rtl: f, isIn: u, theme: _ }) {
64
+ let h = r || s && d === 0, k = { animationDuration: `${t}ms`, animationPlayState: e ? "running" : "paused" };
65
+ s && (k.transform = `scaleX(${d})`);
66
+ let x = R("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${_}`, `Toastify__progress-bar--${o}`, { "Toastify__progress-bar--rtl": f }), E = $(l) ? l({ rtl: f, type: o, defaultClassName: x }) : R(x, l), b = { [s && d >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: s && d < 1 ? null : () => {
67
+ u && a();
68
+ } };
69
+ return W.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": h }, W.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${_} Toastify__progress-bar--${o}` }), W.createElement("div", { role: "progressbar", "aria-hidden": h ? "true" : "false", "aria-label": "notification timer", className: E, style: k, ...b }));
70
+ }
71
+ const F = await O("react"), { useEffect: Ct, useRef: Lt, useState: Ot } = F;
72
+ var zt = 1, ft = () => `${zt++}`;
73
+ function $t(t, e, a) {
74
+ let o = 1, r = 0, l = [], s = [], d = e, f = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), _ = (n) => (u.add(n), () => u.delete(n)), h = () => {
75
+ s = Array.from(f.values()), u.forEach((n) => n());
76
+ }, k = ({ containerId: n, toastId: i, updateId: c }) => {
77
+ let T = n ? n !== t : t !== 1, I = f.has(i) && c == null;
78
+ return T || I;
79
+ }, x = (n, i) => {
80
+ f.forEach((c) => {
81
+ var T;
82
+ (i == null || i === c.props.toastId) && ((T = c.toggle) == null || T.call(c, n));
83
+ });
84
+ }, E = (n) => {
85
+ var i, c;
86
+ (c = (i = n.props) == null ? void 0 : i.onClose) == null || c.call(i, n.removalReason), n.isActive = !1;
87
+ }, b = (n) => {
88
+ if (n == null) f.forEach(E);
89
+ else {
90
+ let i = f.get(n);
91
+ i && E(i);
92
+ }
93
+ h();
94
+ }, m = () => {
95
+ r -= l.length, l = [];
96
+ }, p = (n) => {
97
+ var i, c;
98
+ let { toastId: T, updateId: I } = n.props, y = I == null;
99
+ n.staleId && f.delete(n.staleId), n.isActive = !0, f.set(T, n), h(), a(st(n, y ? "added" : "updated")), y && ((c = (i = n.props).onOpen) == null || c.call(i));
100
+ };
101
+ return { id: t, props: d, observe: _, toggle: x, removeToast: b, toasts: f, clearQueue: m, buildToast: (n, i) => {
102
+ if (k(i)) return;
103
+ let { toastId: c, updateId: T, data: I, staleId: y, delay: v } = i, C = T == null;
104
+ C && r++;
105
+ let P = { ...d, style: d.toastStyle, key: o++, ...Object.fromEntries(Object.entries(i).filter(([N, X]) => X != null)), toastId: c, updateId: T, data: I, isIn: !1, className: Z(i.className || d.toastClassName), progressClassName: Z(i.progressClassName || d.progressClassName), autoClose: i.isLoading ? !1 : vt(i.autoClose, d.autoClose), closeToast(N) {
106
+ f.get(c).removalReason = N, b(c);
107
+ }, deleteToast() {
108
+ let N = f.get(c);
109
+ if (N != null) {
110
+ if (a(st(N, "removed")), f.delete(c), r--, r < 0 && (r = 0), l.length > 0) {
111
+ p(l.shift());
112
+ return;
113
+ }
114
+ h();
115
+ }
116
+ } };
117
+ P.closeButton = d.closeButton, i.closeButton === !1 || G(i.closeButton) ? P.closeButton = i.closeButton : i.closeButton === !0 && (P.closeButton = G(d.closeButton) ? d.closeButton : !0);
118
+ let z = { content: n, props: P, staleId: y };
119
+ d.limit && d.limit > 0 && r > d.limit && C ? l.push(z) : B(v) ? setTimeout(() => {
120
+ p(z);
121
+ }, v) : p(z);
122
+ }, setProps(n) {
123
+ d = n;
124
+ }, setToggle: (n, i) => {
125
+ let c = f.get(n);
126
+ c && (c.toggle = i);
127
+ }, isToastActive: (n) => {
128
+ var i;
129
+ return (i = f.get(n)) == null ? void 0 : i.isActive;
130
+ }, getSnapshot: () => s };
131
+ }
132
+ var w = /* @__PURE__ */ new Map(), S = [], tt = /* @__PURE__ */ new Set(), Pt = (t) => tt.forEach((e) => e(t)), ct = () => w.size > 0;
133
+ function Nt() {
134
+ S.forEach((t) => yt(t.content, t.options)), S = [];
135
+ }
136
+ var Rt = (t, { containerId: e }) => {
137
+ var a;
138
+ return (a = w.get(e || 1)) == null ? void 0 : a.toasts.get(t);
139
+ };
140
+ function dt(t, e) {
141
+ var a;
142
+ if (e) return !!((a = w.get(e)) != null && a.isToastActive(t));
143
+ let o = !1;
144
+ return w.forEach((r) => {
145
+ r.isToastActive(t) && (o = !0);
146
+ }), o;
147
+ }
148
+ function At(t) {
149
+ if (!ct()) {
150
+ S = S.filter((e) => t != null && e.options.toastId !== t);
151
+ return;
152
+ }
153
+ if (t == null || gt(t)) w.forEach((e) => {
154
+ e.removeToast(t);
155
+ });
156
+ else if (t && ("containerId" in t || "id" in t)) {
157
+ let e = w.get(t.containerId);
158
+ e ? e.removeToast(t.id) : w.forEach((a) => {
159
+ a.removeToast(t.id);
160
+ });
161
+ }
162
+ }
163
+ var Dt = (t = {}) => {
164
+ w.forEach((e) => {
165
+ e.props.limit && (!t.containerId || e.id === t.containerId) && e.clearQueue();
166
+ });
167
+ };
168
+ function yt(t, e) {
169
+ G(t) && (ct() || S.push({ content: t, options: e }), w.forEach((a) => {
170
+ a.buildToast(t, e);
171
+ }));
172
+ }
173
+ function St(t) {
174
+ var e;
175
+ (e = w.get(t.containerId || 1)) == null || e.setToggle(t.id, t.fn);
176
+ }
177
+ function ut(t, e) {
178
+ w.forEach((a) => {
179
+ (e == null || !(e != null && e.containerId) || e?.containerId === a.id) && a.toggle(t, e?.id);
180
+ });
181
+ }
182
+ function Bt(t) {
183
+ let e = t.containerId || 1;
184
+ return { subscribe(a) {
185
+ let o = $t(e, t, Pt);
186
+ w.set(e, o);
187
+ let r = o.observe(a);
188
+ return Nt(), () => {
189
+ r(), w.delete(e);
190
+ };
191
+ }, setProps(a) {
192
+ var o;
193
+ (o = w.get(e)) == null || o.setProps(a);
194
+ }, getSnapshot() {
195
+ var a;
196
+ return (a = w.get(e)) == null ? void 0 : a.getSnapshot();
197
+ } };
198
+ }
199
+ function Mt(t) {
200
+ return tt.add(t), () => {
201
+ tt.delete(t);
202
+ };
203
+ }
204
+ function Xt(t) {
205
+ return t && (A(t.toastId) || B(t.toastId)) ? t.toastId : ft();
206
+ }
207
+ function M(t, e) {
208
+ return yt(t, e), e.toastId;
209
+ }
210
+ function Y(t, e) {
211
+ return { ...e, type: e && e.type || t, toastId: Xt(e) };
212
+ }
213
+ function q(t) {
214
+ return (e, a) => M(e, Y(t, a));
215
+ }
216
+ function g(t, e) {
217
+ return M(t, Y("default", e));
218
+ }
219
+ g.loading = (t, e) => M(t, Y("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...e }));
220
+ function Ut(t, { pending: e, error: a, success: o }, r) {
221
+ let l;
222
+ e && (l = A(e) ? g.loading(e, r) : g.loading(e.render, { ...r, ...e }));
223
+ let s = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, d = (u, _, h) => {
224
+ if (_ == null) {
225
+ g.dismiss(l);
226
+ return;
227
+ }
228
+ let k = { type: u, ...s, ...r, data: h }, x = A(_) ? { render: _ } : _;
229
+ return l ? g.update(l, { ...k, ...x }) : g(x.render, { ...k, ...x }), h;
230
+ }, f = $(t) ? t() : t;
231
+ return f.then((u) => d("success", o, u)).catch((u) => d("error", a, u)), f;
232
+ }
233
+ g.promise = Ut;
234
+ g.success = q("success");
235
+ g.info = q("info");
236
+ g.error = q("error");
237
+ g.warning = q("warning");
238
+ g.warn = g.warning;
239
+ g.dark = (t, e) => M(t, Y("default", { theme: "dark", ...e }));
240
+ function Ft(t) {
241
+ At(t);
242
+ }
243
+ g.dismiss = Ft;
244
+ g.clearWaitingQueue = Dt;
245
+ g.isActive = dt;
246
+ g.update = (t, e = {}) => {
247
+ let a = Rt(t, e);
248
+ if (a) {
249
+ let { props: o, content: r } = a, l = { delay: 100, ...o, ...e, toastId: e.toastId || t, updateId: ft() };
250
+ l.toastId !== t && (l.staleId = t);
251
+ let s = l.render || r;
252
+ delete l.render, M(s, l);
253
+ }
254
+ };
255
+ g.done = (t) => {
256
+ g.update(t, { progress: 1 });
257
+ };
258
+ g.onChange = Mt;
259
+ g.play = (t) => ut(!0, t);
260
+ g.pause = (t) => ut(!1, t);
261
+ const { useRef: Ht, useSyncExternalStore: Yt } = await O("react");
262
+ function qt(t) {
263
+ var e;
264
+ let { subscribe: a, getSnapshot: o, setProps: r } = Ht(Bt(t)).current;
265
+ r(t);
266
+ let l = (e = Yt(a, o, o)) == null ? void 0 : e.slice();
267
+ function s(d) {
268
+ if (!l) return [];
269
+ let f = /* @__PURE__ */ new Map();
270
+ return t.newestOnTop && l.reverse(), l.forEach((u) => {
271
+ let { position: _ } = u.props;
272
+ f.has(_) || f.set(_, []), f.get(_).push(u);
273
+ }), Array.from(f, (u) => d(u[0], u[1]));
274
+ }
275
+ return { getToastToRender: s, isToastActive: dt, count: l?.length };
276
+ }
277
+ const { useEffect: Kt, useRef: rt, useState: nt } = await O("react");
278
+ function Vt(t) {
279
+ let [e, a] = nt(!1), [o, r] = nt(!1), l = rt(null), s = rt({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: d, pauseOnHover: f, closeToast: u, onClick: _, closeOnClick: h } = t;
280
+ St({ id: t.toastId, containerId: t.containerId, fn: a }), Kt(() => {
281
+ if (t.pauseOnFocusLoss) return k(), () => {
282
+ x();
283
+ };
284
+ }, [t.pauseOnFocusLoss]);
285
+ function k() {
286
+ document.hasFocus() || p(), window.addEventListener("focus", m), window.addEventListener("blur", p);
287
+ }
288
+ function x() {
289
+ window.removeEventListener("focus", m), window.removeEventListener("blur", p);
290
+ }
291
+ function E(y) {
292
+ if (t.draggable === !0 || t.draggable === y.pointerType) {
293
+ n();
294
+ let v = l.current;
295
+ s.canCloseOnClick = !0, s.canDrag = !0, v.style.transition = "none", t.draggableDirection === "x" ? (s.start = y.clientX, s.removalDistance = v.offsetWidth * (t.draggablePercent / 100)) : (s.start = y.clientY, s.removalDistance = v.offsetHeight * (t.draggablePercent === 80 ? t.draggablePercent * 1.5 : t.draggablePercent) / 100);
296
+ }
297
+ }
298
+ function b(y) {
299
+ let { top: v, bottom: C, left: P, right: z } = l.current.getBoundingClientRect();
300
+ y.nativeEvent.type !== "touchend" && t.pauseOnHover && y.clientX >= P && y.clientX <= z && y.clientY >= v && y.clientY <= C ? p() : m();
301
+ }
302
+ function m() {
303
+ a(!0);
304
+ }
305
+ function p() {
306
+ a(!1);
307
+ }
308
+ function n() {
309
+ s.didMove = !1, document.addEventListener("pointermove", c), document.addEventListener("pointerup", T);
310
+ }
311
+ function i() {
312
+ document.removeEventListener("pointermove", c), document.removeEventListener("pointerup", T);
313
+ }
314
+ function c(y) {
315
+ let v = l.current;
316
+ if (s.canDrag && v) {
317
+ s.didMove = !0, e && p(), t.draggableDirection === "x" ? s.delta = y.clientX - s.start : s.delta = y.clientY - s.start, s.start !== y.clientX && (s.canCloseOnClick = !1);
318
+ let C = t.draggableDirection === "x" ? `${s.delta}px, var(--y)` : `0, calc(${s.delta}px + var(--y))`;
319
+ v.style.transform = `translate3d(${C},0)`, v.style.opacity = `${1 - Math.abs(s.delta / s.removalDistance)}`;
320
+ }
321
+ }
322
+ function T() {
323
+ i();
324
+ let y = l.current;
325
+ if (s.canDrag && s.didMove && y) {
326
+ if (s.canDrag = !1, Math.abs(s.delta) > s.removalDistance) {
327
+ r(!0), t.closeToast(!0), t.collapseAll();
328
+ return;
329
+ }
330
+ y.style.transition = "transform 0.2s, opacity 0.2s", y.style.removeProperty("transform"), y.style.removeProperty("opacity");
331
+ }
332
+ }
333
+ let I = { onPointerDown: E, onPointerUp: b };
334
+ return d && f && (I.onMouseEnter = p, t.stacked || (I.onMouseLeave = m)), h && (I.onClick = (y) => {
335
+ _ && _(y), s.canCloseOnClick && u(!0);
336
+ }), { playToast: m, pauseToast: p, isRunning: e, preventExitTransition: o, toastRef: l, eventHandlers: I };
337
+ }
338
+ const { useEffect: Qt, useLayoutEffect: jt } = await O("react");
339
+ var Wt = typeof window < "u" ? jt : Qt;
340
+ const D = await O("react"), { cloneElement: Zt, isValidElement: Gt } = D, L = await O("react"), { cloneElement: Jt, isValidElement: te } = L;
341
+ var K = ({ theme: t, type: e, isLoading: a, ...o }) => L.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${e})`, ...o });
342
+ function ee(t) {
343
+ return L.createElement(K, { ...t }, L.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
344
+ }
345
+ function ae(t) {
346
+ return L.createElement(K, { ...t }, L.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
347
+ }
348
+ function oe(t) {
349
+ return L.createElement(K, { ...t }, L.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
350
+ }
351
+ function se(t) {
352
+ return L.createElement(K, { ...t }, L.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
353
+ }
354
+ function re() {
355
+ return L.createElement("div", { className: "Toastify__spinner" });
356
+ }
357
+ var et = { info: ae, warning: ee, success: oe, error: se, spinner: re }, ne = (t) => t in et;
358
+ function ie({ theme: t, type: e, isLoading: a, icon: o }) {
359
+ let r = null, l = { theme: t, type: e };
360
+ return o === !1 || ($(o) ? r = o({ ...l, isLoading: a }) : te(o) ? r = Jt(o, l) : a ? r = et.spinner() : ne(e) && (r = et[e](l))), r;
361
+ }
362
+ var le = (t) => {
363
+ let { isRunning: e, preventExitTransition: a, toastRef: o, eventHandlers: r, playToast: l } = Vt(t), { closeButton: s, children: d, autoClose: f, onClick: u, type: _, hideProgressBar: h, closeToast: k, transition: x, position: E, className: b, style: m, progressClassName: p, updateId: n, role: i, progress: c, rtl: T, toastId: I, deleteToast: y, isIn: v, isLoading: C, closeOnClick: P, theme: z, ariaLabel: N } = t, X = R("Toastify__toast", `Toastify__toast-theme--${z}`, `Toastify__toast--${_}`, { "Toastify__toast--rtl": T }, { "Toastify__toast--close-on-click": P }), pt = $(b) ? b({ rtl: T, position: E, type: _, defaultClassName: X }) : R(X, b), at = ie(t), ot = !!c || !f, Q = { closeToast: k, type: _, theme: z }, U = null;
364
+ return s === !1 || ($(s) ? U = s(Q) : Gt(s) ? U = Zt(s, Q) : U = Et(Q)), D.createElement(x, { isIn: v, done: y, position: E, preventExitTransition: a, nodeRef: o, playToast: l }, D.createElement("div", { id: I, tabIndex: 0, onClick: u, "data-in": v, className: pt, ...r, style: m, ref: o, ...v && { role: i, "aria-label": N } }, at != null && D.createElement("div", { className: R("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !C }) }, at), lt(d, t, !e), U, !t.customProgressBar && D.createElement(It, { ...n && !ot ? { key: `p-${n}` } : {}, rtl: T, theme: z, delay: f, isRunning: e, isIn: v, closeToast: k, hide: h, type: _, className: p, controlledProgress: ot, progress: c || 0 })));
365
+ }, V = (t, e = !1) => ({ enter: `Toastify--animate Toastify__${t}-enter`, exit: `Toastify--animate Toastify__${t}-exit`, appendPosition: e }), fe = H(V("bounce", !0)), ye = H(V("slide", !0)), ue = H(V("zoom")), pe = H(V("flip")), ce = { position: "top-right", transition: fe, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light", "aria-label": "Notifications Alt+T", hotKeys: (t) => t.altKey && t.code === "KeyT" };
366
+ function me(t) {
367
+ let e = { ...ce, ...t }, a = t.stacked, [o, r] = Ot(!0), l = Lt(null), { getToastToRender: s, isToastActive: d, count: f } = qt(e), { className: u, style: _, rtl: h, containerId: k, hotKeys: x } = e;
368
+ function E(m) {
369
+ let p = R("Toastify__toast-container", `Toastify__toast-container--${m}`, { "Toastify__toast-container--rtl": h });
370
+ return $(u) ? u({ position: m, rtl: h, defaultClassName: p }) : R(p, Z(u));
371
+ }
372
+ function b() {
373
+ a && (r(!0), g.play());
374
+ }
375
+ return Wt(() => {
376
+ var m;
377
+ if (a) {
378
+ let p = l.current.querySelectorAll('[data-in="true"]'), n = 12, i = (m = e.position) == null ? void 0 : m.includes("top"), c = 0, T = 0;
379
+ Array.from(p).reverse().forEach((I, y) => {
380
+ let v = I;
381
+ v.classList.add("Toastify__toast--stacked"), y > 0 && (v.dataset.collapsed = `${o}`), v.dataset.pos || (v.dataset.pos = i ? "top" : "bot");
382
+ let C = c * (o ? 0.2 : 1) + (o ? 0 : n * y);
383
+ v.style.setProperty("--y", `${i ? C : C * -1}px`), v.style.setProperty("--g", `${n}`), v.style.setProperty("--s", `${1 - (o ? T : 0)}`), c += v.offsetHeight, T += 0.025;
384
+ });
385
+ }
386
+ }, [o, f, a]), Ct(() => {
387
+ function m(p) {
388
+ var n;
389
+ let i = l.current;
390
+ x(p) && ((n = i.querySelector('[tabIndex="0"]')) == null || n.focus(), r(!1), g.pause()), p.key === "Escape" && (document.activeElement === i || i != null && i.contains(document.activeElement)) && (r(!0), g.play());
391
+ }
392
+ return document.addEventListener("keydown", m), () => {
393
+ document.removeEventListener("keydown", m);
394
+ };
395
+ }, [x]), F.createElement("section", { ref: l, className: "Toastify", id: k, onMouseEnter: () => {
396
+ a && (r(!1), g.pause());
397
+ }, onMouseLeave: b, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": e["aria-label"] }, s((m, p) => {
398
+ let n = p.length ? { ..._ } : { ..._, pointerEvents: "none" };
399
+ return F.createElement("div", { tabIndex: -1, className: E(m), "data-stacked": a, style: n, key: `c-${m}` }, p.map(({ content: i, props: c }) => F.createElement(le, { ...c, stacked: a, collapseAll: b, isIn: d(c.toastId, c.containerId), key: `t-${c.key}` }, i)));
400
+ }));
401
+ }
402
+ export {
403
+ fe as Bounce,
404
+ pe as Flip,
405
+ et as Icons,
406
+ ye as Slide,
407
+ me as ToastContainer,
408
+ ue as Zoom,
409
+ xt as collapseToast,
410
+ H as cssTransition,
411
+ g as toast
412
+ };
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
+ }
4
+ export {
5
+ e as g
6
+ };
@@ -0,0 +1,217 @@
1
+ const U = "[0-9A-Za-z-]+", x = `(?:\\+(${U}(?:\\.${U})*))`, R = "0|[1-9]\\d*", V = "[0-9]+", Z = "\\d*[a-zA-Z-][a-zA-Z0-9-]*", X = `(?:${V}|${Z})`, D = `(?:-?(${X}(?:\\.${X})*))`, E = `(?:${R}|${Z})`, F = `(?:-(${E}(?:\\.${E})*))`, y = `${R}|x|X|\\*`, _ = `[v=\\s]*(${y})(?:\\.(${y})(?:\\.(${y})(?:${F})?${x}?)?)?`, J = `^\\s*(${_})\\s+-\\s+(${_})\\s*$`, Q = `(${V})\\.(${V})\\.(${V})`, W = `[v=\\s]*${Q}${D}?${x}?`, C = "((?:<|>)?=?)", Y = `(\\s*)${C}\\s*(${W}|${_})`, K = "(?:~>?)", j = `(\\s*)${K}\\s+`, B = "(?:\\^)", A = `(\\s*)${B}\\s+`, m = "(<|>)?=?\\s*\\*", ee = `^${B}${_}$`, re = `(${R})\\.(${R})\\.(${R})`, te = `v?${re}${F}?${x}?`, ne = `^${K}${_}$`, se = `^${C}\\s*${_}$`, ie = `^${C}\\s*(${te})$|^$`, ue = "^\\s*>=\\s*0.0.0\\s*$";
2
+ function l(e) {
3
+ return new RegExp(e);
4
+ }
5
+ function $(e) {
6
+ return !e || e.toLowerCase() === "x" || e === "*";
7
+ }
8
+ function G(...e) {
9
+ return (n) => e.reduce((s, r) => r(s), n);
10
+ }
11
+ function k(e) {
12
+ return e.match(l(ie));
13
+ }
14
+ function S(e, n, s, r) {
15
+ const t = `${e}.${n}.${s}`;
16
+ return r ? `${t}-${r}` : t;
17
+ }
18
+ function ce(e) {
19
+ return e.replace(
20
+ l(J),
21
+ (n, s, r, t, i, u, c, a, f, o, h, p) => ($(r) ? s = "" : $(t) ? s = `>=${r}.0.0` : $(i) ? s = `>=${r}.${t}.0` : s = `>=${s}`, $(f) ? a = "" : $(o) ? a = `<${+f + 1}.0.0-0` : $(h) ? a = `<${f}.${+o + 1}.0-0` : p ? a = `<=${f}.${o}.${h}-${p}` : a = `<=${a}`, `${s} ${a}`.trim())
22
+ );
23
+ }
24
+ function $e(e) {
25
+ return e.replace(l(Y), "$1$2$3");
26
+ }
27
+ function ae(e) {
28
+ return e.replace(l(j), "$1~");
29
+ }
30
+ function fe(e) {
31
+ return e.replace(l(A), "$1^");
32
+ }
33
+ function oe(e) {
34
+ return e.trim().split(/\s+/).map((n) => n.replace(
35
+ l(ee),
36
+ (s, r, t, i, u) => $(r) ? "" : $(t) ? `>=${r}.0.0 <${+r + 1}.0.0-0` : $(i) ? r === "0" ? `>=${r}.${t}.0 <${r}.${+t + 1}.0-0` : `>=${r}.${t}.0 <${+r + 1}.0.0-0` : u ? r === "0" ? t === "0" ? `>=${r}.${t}.${i}-${u} <${r}.${t}.${+i + 1}-0` : `>=${r}.${t}.${i}-${u} <${r}.${+t + 1}.0-0` : `>=${r}.${t}.${i}-${u} <${+r + 1}.0.0-0` : r === "0" ? t === "0" ? `>=${r}.${t}.${i} <${r}.${t}.${+i + 1}-0` : `>=${r}.${t}.${i} <${r}.${+t + 1}.0-0` : `>=${r}.${t}.${i} <${+r + 1}.0.0-0`
37
+ )).join(" ");
38
+ }
39
+ function le(e) {
40
+ return e.trim().split(/\s+/).map((n) => n.replace(
41
+ l(ne),
42
+ (s, r, t, i, u) => $(r) ? "" : $(t) ? `>=${r}.0.0 <${+r + 1}.0.0-0` : $(i) ? `>=${r}.${t}.0 <${r}.${+t + 1}.0-0` : u ? `>=${r}.${t}.${i}-${u} <${r}.${+t + 1}.0-0` : `>=${r}.${t}.${i} <${r}.${+t + 1}.0-0`
43
+ )).join(" ");
44
+ }
45
+ function pe(e) {
46
+ return e.split(/\s+/).map((n) => n.trim().replace(
47
+ l(se),
48
+ (s, r, t, i, u, c) => {
49
+ const a = $(t), f = a || $(i), o = f || $(u);
50
+ return r === "=" && o && (r = ""), c = "", a ? r === ">" || r === "<" ? "<0.0.0-0" : "*" : r && o ? (f && (i = 0), u = 0, r === ">" ? (r = ">=", f ? (t = +t + 1, i = 0, u = 0) : (i = +i + 1, u = 0)) : r === "<=" && (r = "<", f ? t = +t + 1 : i = +i + 1), r === "<" && (c = "-0"), `${r + t}.${i}.${u}${c}`) : f ? `>=${t}.0.0${c} <${+t + 1}.0.0-0` : o ? `>=${t}.${i}.0${c} <${t}.${+i + 1}.0-0` : s;
51
+ }
52
+ )).join(" ");
53
+ }
54
+ function de(e) {
55
+ return e.trim().replace(l(m), "");
56
+ }
57
+ function _e(e) {
58
+ return e.trim().replace(l(ue), "");
59
+ }
60
+ function g(e, n) {
61
+ return e = +e || e, n = +n || n, e > n ? 1 : e === n ? 0 : -1;
62
+ }
63
+ function Re(e, n) {
64
+ const { preRelease: s } = e, { preRelease: r } = n;
65
+ if (s === void 0 && r)
66
+ return 1;
67
+ if (s && r === void 0)
68
+ return -1;
69
+ if (s === void 0 && r === void 0)
70
+ return 0;
71
+ for (let t = 0, i = s.length; t <= i; t++) {
72
+ const u = s[t], c = r[t];
73
+ if (u !== c)
74
+ return u === void 0 && c === void 0 ? 0 : u ? c ? g(u, c) : -1 : 1;
75
+ }
76
+ return 0;
77
+ }
78
+ function w(e, n) {
79
+ return g(e.major, n.major) || g(e.minor, n.minor) || g(e.patch, n.patch) || Re(e, n);
80
+ }
81
+ function L(e, n) {
82
+ return e.version === n.version;
83
+ }
84
+ function he(e, n) {
85
+ switch (e.operator) {
86
+ case "":
87
+ case "=":
88
+ return L(e, n);
89
+ case ">":
90
+ return w(e, n) < 0;
91
+ case ">=":
92
+ return L(e, n) || w(e, n) < 0;
93
+ case "<":
94
+ return w(e, n) > 0;
95
+ case "<=":
96
+ return L(e, n) || w(e, n) > 0;
97
+ case void 0:
98
+ return !0;
99
+ default:
100
+ return !1;
101
+ }
102
+ }
103
+ function we(e) {
104
+ return G(
105
+ oe,
106
+ le,
107
+ pe,
108
+ de
109
+ )(e);
110
+ }
111
+ function Ve(e) {
112
+ return G(
113
+ ce,
114
+ $e,
115
+ ae,
116
+ fe
117
+ )(e.trim()).split(/\s+/).join(" ");
118
+ }
119
+ function ge(e, n) {
120
+ if (!e)
121
+ return !1;
122
+ const t = Ve(n).split(" ").map((p) => we(p)).join(" ").split(/\s+/).map((p) => _e(p)), i = k(e);
123
+ if (!i)
124
+ return !1;
125
+ const [
126
+ ,
127
+ u,
128
+ ,
129
+ c,
130
+ a,
131
+ f,
132
+ o
133
+ ] = i, h = {
134
+ version: S(
135
+ c,
136
+ a,
137
+ f,
138
+ o
139
+ ),
140
+ major: c,
141
+ minor: a,
142
+ patch: f,
143
+ preRelease: o?.split(".")
144
+ };
145
+ for (const p of t) {
146
+ const P = k(p);
147
+ if (!P)
148
+ return !1;
149
+ const [
150
+ ,
151
+ M,
152
+ ,
153
+ q,
154
+ I,
155
+ O,
156
+ b
157
+ ] = P, N = {
158
+ operator: M,
159
+ version: S(
160
+ q,
161
+ I,
162
+ O,
163
+ b
164
+ ),
165
+ major: q,
166
+ minor: I,
167
+ patch: O,
168
+ preRelease: b?.split(".")
169
+ };
170
+ if (!he(N, h))
171
+ return !1;
172
+ }
173
+ return !0;
174
+ }
175
+ const z = {}, T = { react: { get: () => () => d(new URL("__federation_shared_react-CikWE6qG.js", import.meta.url).href), import: !0 }, "react-dom": { get: () => () => d(new URL("__federation_shared_react-dom-vrQ70Ay8.js", import.meta.url).href), import: !0 }, "react-router-dom": { get: () => () => d(new URL("__federation_shared_react-router-dom-BKminmS4.js", import.meta.url).href), import: !0 }, "react-bootstrap": { get: () => () => d(new URL("__federation_shared_react-bootstrap-BKlZRvMR.js", import.meta.url).href), import: !0 }, "react-select": { get: () => () => d(new URL("__federation_shared_react-select-B6kehBDI.js", import.meta.url).href), import: !0 }, "@tanstack/react-query": { get: () => () => d(new URL("__federation_shared_@tanstack/react-query-DHuUsaNz.js", import.meta.url).href), import: !0 }, "react-toastify": { get: () => () => d(new URL("__federation_shared_react-toastify-B0S0UGr3.js", import.meta.url).href), import: !0 } }, v = /* @__PURE__ */ Object.create(null);
176
+ async function ye(e, n = "default") {
177
+ return v[e] ? new Promise((s) => s(v[e])) : await ve(e, n) || be(e);
178
+ }
179
+ async function d(e) {
180
+ return z[e] ??= import(e), z[e];
181
+ }
182
+ async function ve(e, n) {
183
+ let s = null;
184
+ if (globalThis?.__federation_shared__?.[n]?.[e]) {
185
+ const r = globalThis.__federation_shared__[n][e], t = T[e]?.requiredVersion;
186
+ if (!!t) {
187
+ const u = Object.keys(r).find(
188
+ (c) => ge(c, t)
189
+ );
190
+ u ? s = await (await r[u].get())() : console.log(
191
+ `provider support ${e}(${u}) is not satisfied requiredVersion(\${moduleMap[name].requiredVersion})`
192
+ );
193
+ } else {
194
+ const u = Object.keys(r)[0];
195
+ s = await (await r[u].get())();
196
+ }
197
+ }
198
+ if (s)
199
+ return H(s, e);
200
+ }
201
+ async function be(e) {
202
+ if (T[e]?.import) {
203
+ let n = await (await T[e].get())();
204
+ return H(n, e);
205
+ } else
206
+ console.error(
207
+ "consumer config import=false,so cant use callback shared module"
208
+ );
209
+ }
210
+ function H(e, n) {
211
+ return typeof e.default == "function" ? (Object.keys(e).forEach((s) => {
212
+ s !== "default" && (e.default[s] = e[s]);
213
+ }), v[n] = e.default, e.default) : (e.default && (e = Object.assign({}, e.default, e)), v[n] = e, e);
214
+ }
215
+ export {
216
+ ye as i
217
+ };
Binary file